configure 404 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092
  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. BUILDARCH
  569. BUILDOS
  570. DISTCC
  571. CCACHE
  572. UNAME
  573. DIFF
  574. STRIP
  575. OBJCOPY
  576. BASENAME
  577. AWK
  578. HEAD_1
  579. SET_MAKE
  580. GCC4DEB
  581. GCC3DEB
  582. GCC3
  583. CCDEPMODE
  584. EGREP
  585. GREP
  586. CXXCPP
  587. OBJEXT
  588. EXEEXT
  589. ac_ct_CXX
  590. CPPFLAGS
  591. LDFLAGS
  592. CXXFLAGS
  593. CXX
  594. egg_ac_parameters
  595. target_alias
  596. host_alias
  597. build_alias
  598. LIBS
  599. ECHO_T
  600. ECHO_N
  601. ECHO_C
  602. DEFS
  603. mandir
  604. localedir
  605. libdir
  606. psdir
  607. pdfdir
  608. dvidir
  609. htmldir
  610. infodir
  611. docdir
  612. oldincludedir
  613. includedir
  614. localstatedir
  615. sharedstatedir
  616. sysconfdir
  617. datadir
  618. datarootdir
  619. libexecdir
  620. sbindir
  621. bindir
  622. program_transform_name
  623. prefix
  624. exec_prefix
  625. PACKAGE_BUGREPORT
  626. PACKAGE_STRING
  627. PACKAGE_VERSION
  628. PACKAGE_TARNAME
  629. PACKAGE_NAME
  630. PATH_SEPARATOR
  631. SHELL'
  632. ac_subst_files=''
  633. ac_user_opts='
  634. enable_option_checking
  635. enable_ipv6
  636. with_openssl
  637. '
  638. ac_precious_vars='build_alias
  639. host_alias
  640. target_alias
  641. CXX
  642. CXXFLAGS
  643. LDFLAGS
  644. LIBS
  645. CPPFLAGS
  646. CCC
  647. CXXCPP'
  648. # Initialize some variables set by options.
  649. ac_init_help=
  650. ac_init_version=false
  651. ac_unrecognized_opts=
  652. ac_unrecognized_sep=
  653. # The variables have the same names as the options, with
  654. # dashes changed to underlines.
  655. cache_file=./config.cache
  656. exec_prefix=NONE
  657. no_create=
  658. no_recursion=
  659. prefix=NONE
  660. program_prefix=NONE
  661. program_suffix=NONE
  662. program_transform_name=s,x,x,
  663. silent=
  664. site=
  665. srcdir=
  666. verbose=
  667. x_includes=NONE
  668. x_libraries=NONE
  669. # Installation directory options.
  670. # These are left unexpanded so users can "make install exec_prefix=/foo"
  671. # and all the variables that are supposed to be based on exec_prefix
  672. # by default will actually change.
  673. # Use braces instead of parens because sh, perl, etc. also accept them.
  674. # (The list follows the same order as the GNU Coding Standards.)
  675. bindir='${exec_prefix}/bin'
  676. sbindir='${exec_prefix}/sbin'
  677. libexecdir='${exec_prefix}/libexec'
  678. datarootdir='${prefix}/share'
  679. datadir='${datarootdir}'
  680. sysconfdir='${prefix}/etc'
  681. sharedstatedir='${prefix}/com'
  682. localstatedir='${prefix}/var'
  683. includedir='${prefix}/include'
  684. oldincludedir='/usr/include'
  685. docdir='${datarootdir}/doc/${PACKAGE}'
  686. infodir='${datarootdir}/info'
  687. htmldir='${docdir}'
  688. dvidir='${docdir}'
  689. pdfdir='${docdir}'
  690. psdir='${docdir}'
  691. libdir='${exec_prefix}/lib'
  692. localedir='${datarootdir}/locale'
  693. mandir='${datarootdir}/man'
  694. ac_prev=
  695. ac_dashdash=
  696. for ac_option
  697. do
  698. # If the previous option needs an argument, assign it.
  699. if test -n "$ac_prev"; then
  700. eval $ac_prev=\$ac_option
  701. ac_prev=
  702. continue
  703. fi
  704. case $ac_option in
  705. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  706. *) ac_optarg=yes ;;
  707. esac
  708. # Accept the important Cygnus configure options, so we can diagnose typos.
  709. case $ac_dashdash$ac_option in
  710. --)
  711. ac_dashdash=yes ;;
  712. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  713. ac_prev=bindir ;;
  714. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  715. bindir=$ac_optarg ;;
  716. -build | --build | --buil | --bui | --bu)
  717. ac_prev=build_alias ;;
  718. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  719. build_alias=$ac_optarg ;;
  720. -cache-file | --cache-file | --cache-fil | --cache-fi \
  721. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  722. ac_prev=cache_file ;;
  723. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  724. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  725. cache_file=$ac_optarg ;;
  726. --config-cache | -C)
  727. cache_file=config.cache ;;
  728. -datadir | --datadir | --datadi | --datad)
  729. ac_prev=datadir ;;
  730. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  731. datadir=$ac_optarg ;;
  732. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  733. | --dataroo | --dataro | --datar)
  734. ac_prev=datarootdir ;;
  735. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  736. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  737. datarootdir=$ac_optarg ;;
  738. -disable-* | --disable-*)
  739. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  740. # Reject names that are not valid shell variable names.
  741. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  742. { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  743. { (exit 1); exit 1; }; }
  744. ac_useropt_orig=$ac_useropt
  745. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  746. case $ac_user_opts in
  747. *"
  748. "enable_$ac_useropt"
  749. "*) ;;
  750. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  751. ac_unrecognized_sep=', ';;
  752. esac
  753. eval enable_$ac_useropt=no ;;
  754. -docdir | --docdir | --docdi | --doc | --do)
  755. ac_prev=docdir ;;
  756. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  757. docdir=$ac_optarg ;;
  758. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  759. ac_prev=dvidir ;;
  760. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  761. dvidir=$ac_optarg ;;
  762. -enable-* | --enable-*)
  763. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  764. # Reject names that are not valid shell variable names.
  765. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  766. { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  767. { (exit 1); exit 1; }; }
  768. ac_useropt_orig=$ac_useropt
  769. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  770. case $ac_user_opts in
  771. *"
  772. "enable_$ac_useropt"
  773. "*) ;;
  774. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  775. ac_unrecognized_sep=', ';;
  776. esac
  777. eval enable_$ac_useropt=\$ac_optarg ;;
  778. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  779. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  780. | --exec | --exe | --ex)
  781. ac_prev=exec_prefix ;;
  782. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  783. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  784. | --exec=* | --exe=* | --ex=*)
  785. exec_prefix=$ac_optarg ;;
  786. -gas | --gas | --ga | --g)
  787. # Obsolete; use --with-gas.
  788. with_gas=yes ;;
  789. -help | --help | --hel | --he | -h)
  790. ac_init_help=long ;;
  791. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  792. ac_init_help=recursive ;;
  793. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  794. ac_init_help=short ;;
  795. -host | --host | --hos | --ho)
  796. ac_prev=host_alias ;;
  797. -host=* | --host=* | --hos=* | --ho=*)
  798. host_alias=$ac_optarg ;;
  799. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  800. ac_prev=htmldir ;;
  801. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  802. | --ht=*)
  803. htmldir=$ac_optarg ;;
  804. -includedir | --includedir | --includedi | --included | --include \
  805. | --includ | --inclu | --incl | --inc)
  806. ac_prev=includedir ;;
  807. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  808. | --includ=* | --inclu=* | --incl=* | --inc=*)
  809. includedir=$ac_optarg ;;
  810. -infodir | --infodir | --infodi | --infod | --info | --inf)
  811. ac_prev=infodir ;;
  812. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  813. infodir=$ac_optarg ;;
  814. -libdir | --libdir | --libdi | --libd)
  815. ac_prev=libdir ;;
  816. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  817. libdir=$ac_optarg ;;
  818. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  819. | --libexe | --libex | --libe)
  820. ac_prev=libexecdir ;;
  821. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  822. | --libexe=* | --libex=* | --libe=*)
  823. libexecdir=$ac_optarg ;;
  824. -localedir | --localedir | --localedi | --localed | --locale)
  825. ac_prev=localedir ;;
  826. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  827. localedir=$ac_optarg ;;
  828. -localstatedir | --localstatedir | --localstatedi | --localstated \
  829. | --localstate | --localstat | --localsta | --localst | --locals)
  830. ac_prev=localstatedir ;;
  831. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  832. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  833. localstatedir=$ac_optarg ;;
  834. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  835. ac_prev=mandir ;;
  836. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  837. mandir=$ac_optarg ;;
  838. -nfp | --nfp | --nf)
  839. # Obsolete; use --without-fp.
  840. with_fp=no ;;
  841. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  842. | --no-cr | --no-c | -n)
  843. no_create=yes ;;
  844. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  845. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  846. no_recursion=yes ;;
  847. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  848. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  849. | --oldin | --oldi | --old | --ol | --o)
  850. ac_prev=oldincludedir ;;
  851. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  852. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  853. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  854. oldincludedir=$ac_optarg ;;
  855. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  856. ac_prev=prefix ;;
  857. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  858. prefix=$ac_optarg ;;
  859. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  860. | --program-pre | --program-pr | --program-p)
  861. ac_prev=program_prefix ;;
  862. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  863. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  864. program_prefix=$ac_optarg ;;
  865. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  866. | --program-suf | --program-su | --program-s)
  867. ac_prev=program_suffix ;;
  868. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  869. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  870. program_suffix=$ac_optarg ;;
  871. -program-transform-name | --program-transform-name \
  872. | --program-transform-nam | --program-transform-na \
  873. | --program-transform-n | --program-transform- \
  874. | --program-transform | --program-transfor \
  875. | --program-transfo | --program-transf \
  876. | --program-trans | --program-tran \
  877. | --progr-tra | --program-tr | --program-t)
  878. ac_prev=program_transform_name ;;
  879. -program-transform-name=* | --program-transform-name=* \
  880. | --program-transform-nam=* | --program-transform-na=* \
  881. | --program-transform-n=* | --program-transform-=* \
  882. | --program-transform=* | --program-transfor=* \
  883. | --program-transfo=* | --program-transf=* \
  884. | --program-trans=* | --program-tran=* \
  885. | --progr-tra=* | --program-tr=* | --program-t=*)
  886. program_transform_name=$ac_optarg ;;
  887. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  888. ac_prev=pdfdir ;;
  889. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  890. pdfdir=$ac_optarg ;;
  891. -psdir | --psdir | --psdi | --psd | --ps)
  892. ac_prev=psdir ;;
  893. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  894. psdir=$ac_optarg ;;
  895. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  896. | -silent | --silent | --silen | --sile | --sil)
  897. silent=yes ;;
  898. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  899. ac_prev=sbindir ;;
  900. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  901. | --sbi=* | --sb=*)
  902. sbindir=$ac_optarg ;;
  903. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  904. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  905. | --sharedst | --shareds | --shared | --share | --shar \
  906. | --sha | --sh)
  907. ac_prev=sharedstatedir ;;
  908. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  909. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  910. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  911. | --sha=* | --sh=*)
  912. sharedstatedir=$ac_optarg ;;
  913. -site | --site | --sit)
  914. ac_prev=site ;;
  915. -site=* | --site=* | --sit=*)
  916. site=$ac_optarg ;;
  917. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  918. ac_prev=srcdir ;;
  919. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  920. srcdir=$ac_optarg ;;
  921. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  922. | --syscon | --sysco | --sysc | --sys | --sy)
  923. ac_prev=sysconfdir ;;
  924. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  925. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  926. sysconfdir=$ac_optarg ;;
  927. -target | --target | --targe | --targ | --tar | --ta | --t)
  928. ac_prev=target_alias ;;
  929. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  930. target_alias=$ac_optarg ;;
  931. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  932. verbose=yes ;;
  933. -version | --version | --versio | --versi | --vers | -V)
  934. ac_init_version=: ;;
  935. -with-* | --with-*)
  936. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  937. # Reject names that are not valid shell variable names.
  938. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  939. { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  940. { (exit 1); exit 1; }; }
  941. ac_useropt_orig=$ac_useropt
  942. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  943. case $ac_user_opts in
  944. *"
  945. "with_$ac_useropt"
  946. "*) ;;
  947. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  948. ac_unrecognized_sep=', ';;
  949. esac
  950. eval with_$ac_useropt=\$ac_optarg ;;
  951. -without-* | --without-*)
  952. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  953. # Reject names that are not valid shell variable names.
  954. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  955. { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  956. { (exit 1); exit 1; }; }
  957. ac_useropt_orig=$ac_useropt
  958. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  959. case $ac_user_opts in
  960. *"
  961. "with_$ac_useropt"
  962. "*) ;;
  963. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  964. ac_unrecognized_sep=', ';;
  965. esac
  966. eval with_$ac_useropt=no ;;
  967. --x)
  968. # Obsolete; use --with-x.
  969. with_x=yes ;;
  970. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  971. | --x-incl | --x-inc | --x-in | --x-i)
  972. ac_prev=x_includes ;;
  973. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  974. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  975. x_includes=$ac_optarg ;;
  976. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  977. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  978. ac_prev=x_libraries ;;
  979. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  980. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  981. x_libraries=$ac_optarg ;;
  982. -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
  983. Try \`$0 --help' for more information." >&2
  984. { (exit 1); exit 1; }; }
  985. ;;
  986. *=*)
  987. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  988. # Reject names that are not valid shell variable names.
  989. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  990. { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  991. { (exit 1); exit 1; }; }
  992. eval $ac_envvar=\$ac_optarg
  993. export $ac_envvar ;;
  994. *)
  995. # FIXME: should be removed in autoconf 3.0.
  996. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  997. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  998. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  999. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1000. ;;
  1001. esac
  1002. done
  1003. if test -n "$ac_prev"; then
  1004. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1005. { $as_echo "$as_me: error: missing argument to $ac_option" >&2
  1006. { (exit 1); exit 1; }; }
  1007. fi
  1008. if test -n "$ac_unrecognized_opts"; then
  1009. case $enable_option_checking in
  1010. no) ;;
  1011. fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
  1012. { (exit 1); exit 1; }; } ;;
  1013. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1014. esac
  1015. fi
  1016. # Check all directory arguments for consistency.
  1017. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1018. datadir sysconfdir sharedstatedir localstatedir includedir \
  1019. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1020. libdir localedir mandir
  1021. do
  1022. eval ac_val=\$$ac_var
  1023. # Remove trailing slashes.
  1024. case $ac_val in
  1025. */ )
  1026. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1027. eval $ac_var=\$ac_val;;
  1028. esac
  1029. # Be sure to have absolute directory names.
  1030. case $ac_val in
  1031. [\\/$]* | ?:[\\/]* ) continue;;
  1032. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1033. esac
  1034. { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1035. { (exit 1); exit 1; }; }
  1036. done
  1037. # There might be people who depend on the old broken behavior: `$host'
  1038. # used to hold the argument of --host etc.
  1039. # FIXME: To remove some day.
  1040. build=$build_alias
  1041. host=$host_alias
  1042. target=$target_alias
  1043. # FIXME: To remove some day.
  1044. if test "x$host_alias" != x; then
  1045. if test "x$build_alias" = x; then
  1046. cross_compiling=maybe
  1047. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1048. If a cross compiler is detected then cross compile mode will be used." >&2
  1049. elif test "x$build_alias" != "x$host_alias"; then
  1050. cross_compiling=yes
  1051. fi
  1052. fi
  1053. ac_tool_prefix=
  1054. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1055. test "$silent" = yes && exec 6>/dev/null
  1056. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1057. ac_ls_di=`ls -di .` &&
  1058. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1059. { $as_echo "$as_me: error: working directory cannot be determined" >&2
  1060. { (exit 1); exit 1; }; }
  1061. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1062. { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
  1063. { (exit 1); exit 1; }; }
  1064. # Find the source files, if location was not specified.
  1065. if test -z "$srcdir"; then
  1066. ac_srcdir_defaulted=yes
  1067. # Try the directory containing this script, then the parent directory.
  1068. ac_confdir=`$as_dirname -- "$as_myself" ||
  1069. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1070. X"$as_myself" : 'X\(//\)[^/]' \| \
  1071. X"$as_myself" : 'X\(//\)$' \| \
  1072. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1073. $as_echo X"$as_myself" |
  1074. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1075. s//\1/
  1076. q
  1077. }
  1078. /^X\(\/\/\)[^/].*/{
  1079. s//\1/
  1080. q
  1081. }
  1082. /^X\(\/\/\)$/{
  1083. s//\1/
  1084. q
  1085. }
  1086. /^X\(\/\).*/{
  1087. s//\1/
  1088. q
  1089. }
  1090. s/.*/./; q'`
  1091. srcdir=$ac_confdir
  1092. if test ! -r "$srcdir/$ac_unique_file"; then
  1093. srcdir=..
  1094. fi
  1095. else
  1096. ac_srcdir_defaulted=no
  1097. fi
  1098. if test ! -r "$srcdir/$ac_unique_file"; then
  1099. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1100. { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1101. { (exit 1); exit 1; }; }
  1102. fi
  1103. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1104. ac_abs_confdir=`(
  1105. cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
  1106. { (exit 1); exit 1; }; }
  1107. pwd)`
  1108. # When building in place, set srcdir=.
  1109. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1110. srcdir=.
  1111. fi
  1112. # Remove unnecessary trailing slashes from srcdir.
  1113. # Double slashes in file names in object file debugging info
  1114. # mess up M-x gdb in Emacs.
  1115. case $srcdir in
  1116. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1117. esac
  1118. for ac_var in $ac_precious_vars; do
  1119. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1120. eval ac_env_${ac_var}_value=\$${ac_var}
  1121. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1122. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1123. done
  1124. #
  1125. # Report the --help message.
  1126. #
  1127. if test "$ac_init_help" = "long"; then
  1128. # Omit some internal or obsolete options to make the list less imposing.
  1129. # This message is too long to be a string in the A/UX 3.1 sh.
  1130. cat <<_ACEOF
  1131. \`configure' configures this package to adapt to many kinds of systems.
  1132. Usage: $0 [OPTION]... [VAR=VALUE]...
  1133. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1134. VAR=VALUE. See below for descriptions of some of the useful variables.
  1135. Defaults for the options are specified in brackets.
  1136. Configuration:
  1137. -h, --help display this help and exit
  1138. --help=short display options specific to this package
  1139. --help=recursive display the short help of all the included packages
  1140. -V, --version display version information and exit
  1141. -q, --quiet, --silent do not print \`checking...' messages
  1142. --cache-file=FILE cache test results in FILE [disabled]
  1143. -C, --config-cache alias for \`--cache-file=config.cache'
  1144. -n, --no-create do not create output files
  1145. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1146. Installation directories:
  1147. --prefix=PREFIX install architecture-independent files in PREFIX
  1148. [$ac_default_prefix]
  1149. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1150. [PREFIX]
  1151. By default, \`make install' will install all the files in
  1152. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1153. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1154. for instance \`--prefix=\$HOME'.
  1155. For better control, use the options below.
  1156. Fine tuning of the installation directories:
  1157. --bindir=DIR user executables [EPREFIX/bin]
  1158. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1159. --libexecdir=DIR program executables [EPREFIX/libexec]
  1160. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1161. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1162. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1163. --libdir=DIR object code libraries [EPREFIX/lib]
  1164. --includedir=DIR C header files [PREFIX/include]
  1165. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1166. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1167. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1168. --infodir=DIR info documentation [DATAROOTDIR/info]
  1169. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1170. --mandir=DIR man documentation [DATAROOTDIR/man]
  1171. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1172. --htmldir=DIR html documentation [DOCDIR]
  1173. --dvidir=DIR dvi documentation [DOCDIR]
  1174. --pdfdir=DIR pdf documentation [DOCDIR]
  1175. --psdir=DIR ps documentation [DOCDIR]
  1176. _ACEOF
  1177. cat <<\_ACEOF
  1178. _ACEOF
  1179. fi
  1180. if test -n "$ac_init_help"; then
  1181. cat <<\_ACEOF
  1182. Optional Features:
  1183. --disable-option-checking ignore unrecognized --enable/--with options
  1184. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1185. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1186. --disable-ipv6 disable IPv6 support
  1187. Optional Packages:
  1188. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1189. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1190. --with-openssl=DIR Path to OpenSSL
  1191. Some influential environment variables:
  1192. CXX C++ compiler command
  1193. CXXFLAGS C++ compiler flags
  1194. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1195. nonstandard directory <lib dir>
  1196. LIBS libraries to pass to the linker, e.g. -l<library>
  1197. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1198. you have headers in a nonstandard directory <include dir>
  1199. CXXCPP C++ preprocessor
  1200. Use these variables to override the choices made by `configure' or to help
  1201. it to find libraries and programs with nonstandard names/locations.
  1202. _ACEOF
  1203. ac_status=$?
  1204. fi
  1205. if test "$ac_init_help" = "recursive"; then
  1206. # If there are subdirs, report their specific --help.
  1207. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1208. test -d "$ac_dir" ||
  1209. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1210. continue
  1211. ac_builddir=.
  1212. case "$ac_dir" in
  1213. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1214. *)
  1215. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1216. # A ".." for each directory in $ac_dir_suffix.
  1217. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1218. case $ac_top_builddir_sub in
  1219. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1220. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1221. esac ;;
  1222. esac
  1223. ac_abs_top_builddir=$ac_pwd
  1224. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1225. # for backward compatibility:
  1226. ac_top_builddir=$ac_top_build_prefix
  1227. case $srcdir in
  1228. .) # We are building in place.
  1229. ac_srcdir=.
  1230. ac_top_srcdir=$ac_top_builddir_sub
  1231. ac_abs_top_srcdir=$ac_pwd ;;
  1232. [\\/]* | ?:[\\/]* ) # Absolute name.
  1233. ac_srcdir=$srcdir$ac_dir_suffix;
  1234. ac_top_srcdir=$srcdir
  1235. ac_abs_top_srcdir=$srcdir ;;
  1236. *) # Relative name.
  1237. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1238. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1239. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1240. esac
  1241. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1242. cd "$ac_dir" || { ac_status=$?; continue; }
  1243. # Check for guested configure.
  1244. if test -f "$ac_srcdir/configure.gnu"; then
  1245. echo &&
  1246. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1247. elif test -f "$ac_srcdir/configure"; then
  1248. echo &&
  1249. $SHELL "$ac_srcdir/configure" --help=recursive
  1250. else
  1251. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1252. fi || ac_status=$?
  1253. cd "$ac_pwd" || { ac_status=$?; break; }
  1254. done
  1255. fi
  1256. test -n "$ac_init_help" && exit $ac_status
  1257. if $ac_init_version; then
  1258. cat <<\_ACEOF
  1259. configure
  1260. generated by GNU Autoconf 2.63
  1261. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1262. 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  1263. This configure script is free software; the Free Software Foundation
  1264. gives unlimited permission to copy, distribute and modify it.
  1265. Copyright (c) 2003 - 2009 Bryan Drewery
  1266. _ACEOF
  1267. exit
  1268. fi
  1269. cat >config.log <<_ACEOF
  1270. This file contains any messages produced by compilers while
  1271. running configure, to aid debugging if configure makes a mistake.
  1272. It was created by $as_me, which was
  1273. generated by GNU Autoconf 2.63. Invocation command line was
  1274. $ $0 $@
  1275. _ACEOF
  1276. exec 5>>config.log
  1277. {
  1278. cat <<_ASUNAME
  1279. ## --------- ##
  1280. ## Platform. ##
  1281. ## --------- ##
  1282. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1283. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1284. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1285. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1286. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1287. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1288. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1289. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1290. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1291. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1292. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1293. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1294. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1295. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1296. _ASUNAME
  1297. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1298. for as_dir in $PATH
  1299. do
  1300. IFS=$as_save_IFS
  1301. test -z "$as_dir" && as_dir=.
  1302. $as_echo "PATH: $as_dir"
  1303. done
  1304. IFS=$as_save_IFS
  1305. } >&5
  1306. cat >&5 <<_ACEOF
  1307. ## ----------- ##
  1308. ## Core tests. ##
  1309. ## ----------- ##
  1310. _ACEOF
  1311. # Keep a trace of the command line.
  1312. # Strip out --no-create and --no-recursion so they do not pile up.
  1313. # Strip out --silent because we don't want to record it for future runs.
  1314. # Also quote any args containing shell meta-characters.
  1315. # Make two passes to allow for proper duplicate-argument suppression.
  1316. ac_configure_args=
  1317. ac_configure_args0=
  1318. ac_configure_args1=
  1319. ac_must_keep_next=false
  1320. for ac_pass in 1 2
  1321. do
  1322. for ac_arg
  1323. do
  1324. case $ac_arg in
  1325. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1326. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1327. | -silent | --silent | --silen | --sile | --sil)
  1328. continue ;;
  1329. *\'*)
  1330. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1331. esac
  1332. case $ac_pass in
  1333. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1334. 2)
  1335. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1336. if test $ac_must_keep_next = true; then
  1337. ac_must_keep_next=false # Got value, back to normal.
  1338. else
  1339. case $ac_arg in
  1340. *=* | --config-cache | -C | -disable-* | --disable-* \
  1341. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1342. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1343. | -with-* | --with-* | -without-* | --without-* | --x)
  1344. case "$ac_configure_args0 " in
  1345. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1346. esac
  1347. ;;
  1348. -* ) ac_must_keep_next=true ;;
  1349. esac
  1350. fi
  1351. ac_configure_args="$ac_configure_args '$ac_arg'"
  1352. ;;
  1353. esac
  1354. done
  1355. done
  1356. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1357. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1358. # When interrupted or exit'd, cleanup temporary files, and complete
  1359. # config.log. We remove comments because anyway the quotes in there
  1360. # would cause problems or look ugly.
  1361. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1362. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1363. trap 'exit_status=$?
  1364. # Save into config.log some information that might help in debugging.
  1365. {
  1366. echo
  1367. cat <<\_ASBOX
  1368. ## ---------------- ##
  1369. ## Cache variables. ##
  1370. ## ---------------- ##
  1371. _ASBOX
  1372. echo
  1373. # The following way of writing the cache mishandles newlines in values,
  1374. (
  1375. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1376. eval ac_val=\$$ac_var
  1377. case $ac_val in #(
  1378. *${as_nl}*)
  1379. case $ac_var in #(
  1380. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  1381. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1382. esac
  1383. case $ac_var in #(
  1384. _ | IFS | as_nl) ;; #(
  1385. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1386. *) $as_unset $ac_var ;;
  1387. esac ;;
  1388. esac
  1389. done
  1390. (set) 2>&1 |
  1391. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1392. *${as_nl}ac_space=\ *)
  1393. sed -n \
  1394. "s/'\''/'\''\\\\'\'''\''/g;
  1395. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1396. ;; #(
  1397. *)
  1398. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1399. ;;
  1400. esac |
  1401. sort
  1402. )
  1403. echo
  1404. cat <<\_ASBOX
  1405. ## ----------------- ##
  1406. ## Output variables. ##
  1407. ## ----------------- ##
  1408. _ASBOX
  1409. echo
  1410. for ac_var in $ac_subst_vars
  1411. do
  1412. eval ac_val=\$$ac_var
  1413. case $ac_val in
  1414. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1415. esac
  1416. $as_echo "$ac_var='\''$ac_val'\''"
  1417. done | sort
  1418. echo
  1419. if test -n "$ac_subst_files"; then
  1420. cat <<\_ASBOX
  1421. ## ------------------- ##
  1422. ## File substitutions. ##
  1423. ## ------------------- ##
  1424. _ASBOX
  1425. echo
  1426. for ac_var in $ac_subst_files
  1427. do
  1428. eval ac_val=\$$ac_var
  1429. case $ac_val in
  1430. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1431. esac
  1432. $as_echo "$ac_var='\''$ac_val'\''"
  1433. done | sort
  1434. echo
  1435. fi
  1436. if test -s confdefs.h; then
  1437. cat <<\_ASBOX
  1438. ## ----------- ##
  1439. ## confdefs.h. ##
  1440. ## ----------- ##
  1441. _ASBOX
  1442. echo
  1443. cat confdefs.h
  1444. echo
  1445. fi
  1446. test "$ac_signal" != 0 &&
  1447. $as_echo "$as_me: caught signal $ac_signal"
  1448. $as_echo "$as_me: exit $exit_status"
  1449. } >&5
  1450. rm -f core *.core core.conftest.* &&
  1451. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1452. exit $exit_status
  1453. ' 0
  1454. for ac_signal in 1 2 13 15; do
  1455. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1456. done
  1457. ac_signal=0
  1458. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1459. rm -f -r conftest* confdefs.h
  1460. # Predefined preprocessor variables.
  1461. cat >>confdefs.h <<_ACEOF
  1462. #define PACKAGE_NAME "$PACKAGE_NAME"
  1463. _ACEOF
  1464. cat >>confdefs.h <<_ACEOF
  1465. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1466. _ACEOF
  1467. cat >>confdefs.h <<_ACEOF
  1468. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1469. _ACEOF
  1470. cat >>confdefs.h <<_ACEOF
  1471. #define PACKAGE_STRING "$PACKAGE_STRING"
  1472. _ACEOF
  1473. cat >>confdefs.h <<_ACEOF
  1474. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1475. _ACEOF
  1476. # Let the site file select an alternate cache file if it wants to.
  1477. # Prefer an explicitly selected file to automatically selected ones.
  1478. ac_site_file1=NONE
  1479. ac_site_file2=NONE
  1480. if test -n "$CONFIG_SITE"; then
  1481. ac_site_file1=$CONFIG_SITE
  1482. elif test "x$prefix" != xNONE; then
  1483. ac_site_file1=$prefix/share/config.site
  1484. ac_site_file2=$prefix/etc/config.site
  1485. else
  1486. ac_site_file1=$ac_default_prefix/share/config.site
  1487. ac_site_file2=$ac_default_prefix/etc/config.site
  1488. fi
  1489. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1490. do
  1491. test "x$ac_site_file" = xNONE && continue
  1492. if test -r "$ac_site_file"; then
  1493. { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1494. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1495. sed 's/^/| /' "$ac_site_file" >&5
  1496. . "$ac_site_file"
  1497. fi
  1498. done
  1499. if test -r "$cache_file"; then
  1500. # Some versions of bash will fail to source /dev/null (special
  1501. # files actually), so we avoid doing that.
  1502. if test -f "$cache_file"; then
  1503. { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1504. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1505. case $cache_file in
  1506. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1507. *) . "./$cache_file";;
  1508. esac
  1509. fi
  1510. else
  1511. { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1512. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1513. >$cache_file
  1514. fi
  1515. ac_header_list="$ac_header_list sys/time.h"
  1516. ac_header_list="$ac_header_list unistd.h"
  1517. ac_func_list="$ac_func_list alarm"
  1518. # Check that the precious variables saved in the cache have kept the same
  1519. # value.
  1520. ac_cache_corrupted=false
  1521. for ac_var in $ac_precious_vars; do
  1522. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1523. eval ac_new_set=\$ac_env_${ac_var}_set
  1524. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1525. eval ac_new_val=\$ac_env_${ac_var}_value
  1526. case $ac_old_set,$ac_new_set in
  1527. set,)
  1528. { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1529. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1530. ac_cache_corrupted=: ;;
  1531. ,set)
  1532. { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1533. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1534. ac_cache_corrupted=: ;;
  1535. ,);;
  1536. *)
  1537. if test "x$ac_old_val" != "x$ac_new_val"; then
  1538. # differences in whitespace do not lead to failure.
  1539. ac_old_val_w=`echo x $ac_old_val`
  1540. ac_new_val_w=`echo x $ac_new_val`
  1541. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1542. { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1543. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1544. ac_cache_corrupted=:
  1545. else
  1546. { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1547. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1548. eval $ac_var=\$ac_old_val
  1549. fi
  1550. { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
  1551. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1552. { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
  1553. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1554. fi;;
  1555. esac
  1556. # Pass precious variables to config.status.
  1557. if test "$ac_new_set" = set; then
  1558. case $ac_new_val in
  1559. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1560. *) ac_arg=$ac_var=$ac_new_val ;;
  1561. esac
  1562. case " $ac_configure_args " in
  1563. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1564. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1565. esac
  1566. fi
  1567. done
  1568. if $ac_cache_corrupted; then
  1569. { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  1570. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1571. { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1572. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1573. { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1574. $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1575. { (exit 1); exit 1; }; }
  1576. fi
  1577. ac_ext=c
  1578. ac_cpp='$CPP $CPPFLAGS'
  1579. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1580. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1581. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1582. ac_config_headers="$ac_config_headers config.h"
  1583. # Remove --cache-file and --srcdir arguments so they do not pile up.
  1584. egg_ac_parameters=
  1585. ac_prev=
  1586. for ac_arg in $ac_configure_args; do
  1587. if test -n "$ac_prev"; then
  1588. ac_prev=
  1589. continue
  1590. fi
  1591. case $ac_arg in
  1592. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1593. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1594. ac_prev=cache_file ;;
  1595. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1596. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
  1597. | --c=*)
  1598. ;;
  1599. --config-cache | -C)
  1600. ;;
  1601. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1602. ac_prev=srcdir ;;
  1603. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1604. ;;
  1605. *) egg_ac_parameters="$egg_ac_parameters $ac_arg" ;;
  1606. esac
  1607. done
  1608. # Setup build environment
  1609. #AC_REQUIRE_CPP
  1610. ac_ext=cpp
  1611. ac_cpp='$CXXCPP $CPPFLAGS'
  1612. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1613. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1614. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  1615. ac_ext=cpp
  1616. ac_cpp='$CXXCPP $CPPFLAGS'
  1617. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1618. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1619. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  1620. if test -z "$CXX"; then
  1621. if test -n "$CCC"; then
  1622. CXX=$CCC
  1623. else
  1624. if test -n "$ac_tool_prefix"; then
  1625. 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
  1626. do
  1627. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1628. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1629. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  1630. $as_echo_n "checking for $ac_word... " >&6; }
  1631. if test "${ac_cv_prog_CXX+set}" = set; then
  1632. $as_echo_n "(cached) " >&6
  1633. else
  1634. if test -n "$CXX"; then
  1635. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  1636. else
  1637. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1638. for as_dir in $PATH
  1639. do
  1640. IFS=$as_save_IFS
  1641. test -z "$as_dir" && as_dir=.
  1642. for ac_exec_ext in '' $ac_executable_extensions; do
  1643. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1644. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  1645. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1646. break 2
  1647. fi
  1648. done
  1649. done
  1650. IFS=$as_save_IFS
  1651. fi
  1652. fi
  1653. CXX=$ac_cv_prog_CXX
  1654. if test -n "$CXX"; then
  1655. { $as_echo "$as_me:$LINENO: result: $CXX" >&5
  1656. $as_echo "$CXX" >&6; }
  1657. else
  1658. { $as_echo "$as_me:$LINENO: result: no" >&5
  1659. $as_echo "no" >&6; }
  1660. fi
  1661. test -n "$CXX" && break
  1662. done
  1663. fi
  1664. if test -z "$CXX"; then
  1665. ac_ct_CXX=$CXX
  1666. 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
  1667. do
  1668. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1669. set dummy $ac_prog; ac_word=$2
  1670. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  1671. $as_echo_n "checking for $ac_word... " >&6; }
  1672. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  1673. $as_echo_n "(cached) " >&6
  1674. else
  1675. if test -n "$ac_ct_CXX"; then
  1676. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  1677. else
  1678. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1679. for as_dir in $PATH
  1680. do
  1681. IFS=$as_save_IFS
  1682. test -z "$as_dir" && as_dir=.
  1683. for ac_exec_ext in '' $ac_executable_extensions; do
  1684. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1685. ac_cv_prog_ac_ct_CXX="$ac_prog"
  1686. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1687. break 2
  1688. fi
  1689. done
  1690. done
  1691. IFS=$as_save_IFS
  1692. fi
  1693. fi
  1694. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  1695. if test -n "$ac_ct_CXX"; then
  1696. { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  1697. $as_echo "$ac_ct_CXX" >&6; }
  1698. else
  1699. { $as_echo "$as_me:$LINENO: result: no" >&5
  1700. $as_echo "no" >&6; }
  1701. fi
  1702. test -n "$ac_ct_CXX" && break
  1703. done
  1704. if test "x$ac_ct_CXX" = x; then
  1705. CXX="g++"
  1706. else
  1707. case $cross_compiling:$ac_tool_warned in
  1708. yes:)
  1709. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  1710. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  1711. ac_tool_warned=yes ;;
  1712. esac
  1713. CXX=$ac_ct_CXX
  1714. fi
  1715. fi
  1716. fi
  1717. fi
  1718. # Provide some information about the compiler.
  1719. $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  1720. set X $ac_compile
  1721. ac_compiler=$2
  1722. { (ac_try="$ac_compiler --version >&5"
  1723. case "(($ac_try" in
  1724. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1725. *) ac_try_echo=$ac_try;;
  1726. esac
  1727. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  1728. $as_echo "$ac_try_echo") >&5
  1729. (eval "$ac_compiler --version >&5") 2>&5
  1730. ac_status=$?
  1731. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1732. (exit $ac_status); }
  1733. { (ac_try="$ac_compiler -v >&5"
  1734. case "(($ac_try" in
  1735. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1736. *) ac_try_echo=$ac_try;;
  1737. esac
  1738. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  1739. $as_echo "$ac_try_echo") >&5
  1740. (eval "$ac_compiler -v >&5") 2>&5
  1741. ac_status=$?
  1742. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1743. (exit $ac_status); }
  1744. { (ac_try="$ac_compiler -V >&5"
  1745. case "(($ac_try" in
  1746. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1747. *) ac_try_echo=$ac_try;;
  1748. esac
  1749. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  1750. $as_echo "$ac_try_echo") >&5
  1751. (eval "$ac_compiler -V >&5") 2>&5
  1752. ac_status=$?
  1753. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1754. (exit $ac_status); }
  1755. cat >conftest.$ac_ext <<_ACEOF
  1756. /* confdefs.h. */
  1757. _ACEOF
  1758. cat confdefs.h >>conftest.$ac_ext
  1759. cat >>conftest.$ac_ext <<_ACEOF
  1760. /* end confdefs.h. */
  1761. int
  1762. main ()
  1763. {
  1764. ;
  1765. return 0;
  1766. }
  1767. _ACEOF
  1768. ac_clean_files_save=$ac_clean_files
  1769. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  1770. # Try to create an executable without -o first, disregard a.out.
  1771. # It will help us diagnose broken compilers, and finding out an intuition
  1772. # of exeext.
  1773. { $as_echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
  1774. $as_echo_n "checking for C++ compiler default output file name... " >&6; }
  1775. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1776. # The possible output files:
  1777. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  1778. ac_rmfiles=
  1779. for ac_file in $ac_files
  1780. do
  1781. case $ac_file in
  1782. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  1783. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  1784. esac
  1785. done
  1786. rm -f $ac_rmfiles
  1787. if { (ac_try="$ac_link_default"
  1788. case "(($ac_try" in
  1789. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1790. *) ac_try_echo=$ac_try;;
  1791. esac
  1792. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  1793. $as_echo "$ac_try_echo") >&5
  1794. (eval "$ac_link_default") 2>&5
  1795. ac_status=$?
  1796. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1797. (exit $ac_status); }; then
  1798. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  1799. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  1800. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  1801. # so that the user can short-circuit this test for compilers unknown to
  1802. # Autoconf.
  1803. for ac_file in $ac_files ''
  1804. do
  1805. test -f "$ac_file" || continue
  1806. case $ac_file in
  1807. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  1808. ;;
  1809. [ab].out )
  1810. # We found the default executable, but exeext='' is most
  1811. # certainly right.
  1812. break;;
  1813. *.* )
  1814. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  1815. then :; else
  1816. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1817. fi
  1818. # We set ac_cv_exeext here because the later test for it is not
  1819. # safe: cross compilers may not add the suffix if given an `-o'
  1820. # argument, so we may need to know it at that point already.
  1821. # Even if this section looks crufty: it has the advantage of
  1822. # actually working.
  1823. break;;
  1824. * )
  1825. break;;
  1826. esac
  1827. done
  1828. test "$ac_cv_exeext" = no && ac_cv_exeext=
  1829. else
  1830. ac_file=''
  1831. fi
  1832. { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
  1833. $as_echo "$ac_file" >&6; }
  1834. if test -z "$ac_file"; then
  1835. $as_echo "$as_me: failed program was:" >&5
  1836. sed 's/^/| /' conftest.$ac_ext >&5
  1837. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  1838. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1839. { { $as_echo "$as_me:$LINENO: error: C++ compiler cannot create executables
  1840. See \`config.log' for more details." >&5
  1841. $as_echo "$as_me: error: C++ compiler cannot create executables
  1842. See \`config.log' for more details." >&2;}
  1843. { (exit 77); exit 77; }; }; }
  1844. fi
  1845. ac_exeext=$ac_cv_exeext
  1846. # Check that the compiler produces executables we can run. If not, either
  1847. # the compiler is broken, or we cross compile.
  1848. { $as_echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
  1849. $as_echo_n "checking whether the C++ compiler works... " >&6; }
  1850. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  1851. # If not cross compiling, check that we can run a simple program.
  1852. if test "$cross_compiling" != yes; then
  1853. if { ac_try='./$ac_file'
  1854. { (case "(($ac_try" in
  1855. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1856. *) ac_try_echo=$ac_try;;
  1857. esac
  1858. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  1859. $as_echo "$ac_try_echo") >&5
  1860. (eval "$ac_try") 2>&5
  1861. ac_status=$?
  1862. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1863. (exit $ac_status); }; }; then
  1864. cross_compiling=no
  1865. else
  1866. if test "$cross_compiling" = maybe; then
  1867. cross_compiling=yes
  1868. else
  1869. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  1870. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1871. { { $as_echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
  1872. If you meant to cross compile, use \`--host'.
  1873. See \`config.log' for more details." >&5
  1874. $as_echo "$as_me: error: cannot run C++ compiled programs.
  1875. If you meant to cross compile, use \`--host'.
  1876. See \`config.log' for more details." >&2;}
  1877. { (exit 1); exit 1; }; }; }
  1878. fi
  1879. fi
  1880. fi
  1881. { $as_echo "$as_me:$LINENO: result: yes" >&5
  1882. $as_echo "yes" >&6; }
  1883. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  1884. ac_clean_files=$ac_clean_files_save
  1885. # Check that the compiler produces executables we can run. If not, either
  1886. # the compiler is broken, or we cross compile.
  1887. { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  1888. $as_echo_n "checking whether we are cross compiling... " >&6; }
  1889. { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
  1890. $as_echo "$cross_compiling" >&6; }
  1891. { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
  1892. $as_echo_n "checking for suffix of executables... " >&6; }
  1893. if { (ac_try="$ac_link"
  1894. case "(($ac_try" in
  1895. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1896. *) ac_try_echo=$ac_try;;
  1897. esac
  1898. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  1899. $as_echo "$ac_try_echo") >&5
  1900. (eval "$ac_link") 2>&5
  1901. ac_status=$?
  1902. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1903. (exit $ac_status); }; then
  1904. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  1905. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  1906. # work properly (i.e., refer to `conftest.exe'), while it won't with
  1907. # `rm'.
  1908. for ac_file in conftest.exe conftest conftest.*; do
  1909. test -f "$ac_file" || continue
  1910. case $ac_file in
  1911. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  1912. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1913. break;;
  1914. * ) break;;
  1915. esac
  1916. done
  1917. else
  1918. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  1919. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1920. { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  1921. See \`config.log' for more details." >&5
  1922. $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  1923. See \`config.log' for more details." >&2;}
  1924. { (exit 1); exit 1; }; }; }
  1925. fi
  1926. rm -f conftest$ac_cv_exeext
  1927. { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  1928. $as_echo "$ac_cv_exeext" >&6; }
  1929. rm -f conftest.$ac_ext
  1930. EXEEXT=$ac_cv_exeext
  1931. ac_exeext=$EXEEXT
  1932. { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
  1933. $as_echo_n "checking for suffix of object files... " >&6; }
  1934. if test "${ac_cv_objext+set}" = set; then
  1935. $as_echo_n "(cached) " >&6
  1936. else
  1937. cat >conftest.$ac_ext <<_ACEOF
  1938. /* confdefs.h. */
  1939. _ACEOF
  1940. cat confdefs.h >>conftest.$ac_ext
  1941. cat >>conftest.$ac_ext <<_ACEOF
  1942. /* end confdefs.h. */
  1943. int
  1944. main ()
  1945. {
  1946. ;
  1947. return 0;
  1948. }
  1949. _ACEOF
  1950. rm -f conftest.o conftest.obj
  1951. if { (ac_try="$ac_compile"
  1952. case "(($ac_try" in
  1953. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1954. *) ac_try_echo=$ac_try;;
  1955. esac
  1956. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  1957. $as_echo "$ac_try_echo") >&5
  1958. (eval "$ac_compile") 2>&5
  1959. ac_status=$?
  1960. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1961. (exit $ac_status); }; then
  1962. for ac_file in conftest.o conftest.obj conftest.*; do
  1963. test -f "$ac_file" || continue;
  1964. case $ac_file in
  1965. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  1966. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  1967. break;;
  1968. esac
  1969. done
  1970. else
  1971. $as_echo "$as_me: failed program was:" >&5
  1972. sed 's/^/| /' conftest.$ac_ext >&5
  1973. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  1974. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1975. { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  1976. See \`config.log' for more details." >&5
  1977. $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
  1978. See \`config.log' for more details." >&2;}
  1979. { (exit 1); exit 1; }; }; }
  1980. fi
  1981. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  1982. fi
  1983. { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  1984. $as_echo "$ac_cv_objext" >&6; }
  1985. OBJEXT=$ac_cv_objext
  1986. ac_objext=$OBJEXT
  1987. { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  1988. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  1989. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  1990. $as_echo_n "(cached) " >&6
  1991. else
  1992. cat >conftest.$ac_ext <<_ACEOF
  1993. /* confdefs.h. */
  1994. _ACEOF
  1995. cat confdefs.h >>conftest.$ac_ext
  1996. cat >>conftest.$ac_ext <<_ACEOF
  1997. /* end confdefs.h. */
  1998. int
  1999. main ()
  2000. {
  2001. #ifndef __GNUC__
  2002. choke me
  2003. #endif
  2004. ;
  2005. return 0;
  2006. }
  2007. _ACEOF
  2008. rm -f conftest.$ac_objext
  2009. if { (ac_try="$ac_compile"
  2010. case "(($ac_try" in
  2011. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2012. *) ac_try_echo=$ac_try;;
  2013. esac
  2014. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2015. $as_echo "$ac_try_echo") >&5
  2016. (eval "$ac_compile") 2>conftest.er1
  2017. ac_status=$?
  2018. grep -v '^ *+' conftest.er1 >conftest.err
  2019. rm -f conftest.er1
  2020. cat conftest.err >&5
  2021. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2022. (exit $ac_status); } && {
  2023. test -z "$ac_cxx_werror_flag" ||
  2024. test ! -s conftest.err
  2025. } && test -s conftest.$ac_objext; then
  2026. ac_compiler_gnu=yes
  2027. else
  2028. $as_echo "$as_me: failed program was:" >&5
  2029. sed 's/^/| /' conftest.$ac_ext >&5
  2030. ac_compiler_gnu=no
  2031. fi
  2032. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2033. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  2034. fi
  2035. { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  2036. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  2037. if test $ac_compiler_gnu = yes; then
  2038. GXX=yes
  2039. else
  2040. GXX=
  2041. fi
  2042. ac_test_CXXFLAGS=${CXXFLAGS+set}
  2043. ac_save_CXXFLAGS=$CXXFLAGS
  2044. { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  2045. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  2046. if test "${ac_cv_prog_cxx_g+set}" = set; then
  2047. $as_echo_n "(cached) " >&6
  2048. else
  2049. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  2050. ac_cxx_werror_flag=yes
  2051. ac_cv_prog_cxx_g=no
  2052. CXXFLAGS="-g"
  2053. cat >conftest.$ac_ext <<_ACEOF
  2054. /* confdefs.h. */
  2055. _ACEOF
  2056. cat confdefs.h >>conftest.$ac_ext
  2057. cat >>conftest.$ac_ext <<_ACEOF
  2058. /* end confdefs.h. */
  2059. int
  2060. main ()
  2061. {
  2062. ;
  2063. return 0;
  2064. }
  2065. _ACEOF
  2066. rm -f conftest.$ac_objext
  2067. if { (ac_try="$ac_compile"
  2068. case "(($ac_try" in
  2069. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2070. *) ac_try_echo=$ac_try;;
  2071. esac
  2072. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2073. $as_echo "$ac_try_echo") >&5
  2074. (eval "$ac_compile") 2>conftest.er1
  2075. ac_status=$?
  2076. grep -v '^ *+' conftest.er1 >conftest.err
  2077. rm -f conftest.er1
  2078. cat conftest.err >&5
  2079. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2080. (exit $ac_status); } && {
  2081. test -z "$ac_cxx_werror_flag" ||
  2082. test ! -s conftest.err
  2083. } && test -s conftest.$ac_objext; then
  2084. ac_cv_prog_cxx_g=yes
  2085. else
  2086. $as_echo "$as_me: failed program was:" >&5
  2087. sed 's/^/| /' conftest.$ac_ext >&5
  2088. CXXFLAGS=""
  2089. cat >conftest.$ac_ext <<_ACEOF
  2090. /* confdefs.h. */
  2091. _ACEOF
  2092. cat confdefs.h >>conftest.$ac_ext
  2093. cat >>conftest.$ac_ext <<_ACEOF
  2094. /* end confdefs.h. */
  2095. int
  2096. main ()
  2097. {
  2098. ;
  2099. return 0;
  2100. }
  2101. _ACEOF
  2102. rm -f conftest.$ac_objext
  2103. if { (ac_try="$ac_compile"
  2104. case "(($ac_try" in
  2105. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2106. *) ac_try_echo=$ac_try;;
  2107. esac
  2108. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2109. $as_echo "$ac_try_echo") >&5
  2110. (eval "$ac_compile") 2>conftest.er1
  2111. ac_status=$?
  2112. grep -v '^ *+' conftest.er1 >conftest.err
  2113. rm -f conftest.er1
  2114. cat conftest.err >&5
  2115. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2116. (exit $ac_status); } && {
  2117. test -z "$ac_cxx_werror_flag" ||
  2118. test ! -s conftest.err
  2119. } && test -s conftest.$ac_objext; then
  2120. :
  2121. else
  2122. $as_echo "$as_me: failed program was:" >&5
  2123. sed 's/^/| /' conftest.$ac_ext >&5
  2124. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2125. CXXFLAGS="-g"
  2126. cat >conftest.$ac_ext <<_ACEOF
  2127. /* confdefs.h. */
  2128. _ACEOF
  2129. cat confdefs.h >>conftest.$ac_ext
  2130. cat >>conftest.$ac_ext <<_ACEOF
  2131. /* end confdefs.h. */
  2132. int
  2133. main ()
  2134. {
  2135. ;
  2136. return 0;
  2137. }
  2138. _ACEOF
  2139. rm -f conftest.$ac_objext
  2140. if { (ac_try="$ac_compile"
  2141. case "(($ac_try" in
  2142. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2143. *) ac_try_echo=$ac_try;;
  2144. esac
  2145. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2146. $as_echo "$ac_try_echo") >&5
  2147. (eval "$ac_compile") 2>conftest.er1
  2148. ac_status=$?
  2149. grep -v '^ *+' conftest.er1 >conftest.err
  2150. rm -f conftest.er1
  2151. cat conftest.err >&5
  2152. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2153. (exit $ac_status); } && {
  2154. test -z "$ac_cxx_werror_flag" ||
  2155. test ! -s conftest.err
  2156. } && test -s conftest.$ac_objext; then
  2157. ac_cv_prog_cxx_g=yes
  2158. else
  2159. $as_echo "$as_me: failed program was:" >&5
  2160. sed 's/^/| /' conftest.$ac_ext >&5
  2161. fi
  2162. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2163. fi
  2164. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2165. fi
  2166. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2167. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2168. fi
  2169. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  2170. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  2171. if test "$ac_test_CXXFLAGS" = set; then
  2172. CXXFLAGS=$ac_save_CXXFLAGS
  2173. elif test $ac_cv_prog_cxx_g = yes; then
  2174. if test "$GXX" = yes; then
  2175. CXXFLAGS="-g -O2"
  2176. else
  2177. CXXFLAGS="-g"
  2178. fi
  2179. else
  2180. if test "$GXX" = yes; then
  2181. CXXFLAGS="-O2"
  2182. else
  2183. CXXFLAGS=
  2184. fi
  2185. fi
  2186. ac_ext=cpp
  2187. ac_cpp='$CXXCPP $CPPFLAGS'
  2188. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2189. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2190. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2191. if test "${cross_compiling-x}" = "x"
  2192. then
  2193. cat << 'EOF' >&2
  2194. configure: error:
  2195. This system does not appear to have a working C compiler.
  2196. A working C compiler is required to compile Eggdrop.
  2197. EOF
  2198. exit 1
  2199. fi
  2200. if test -n "$GXX"; then
  2201. CXXFLAGS="$CXXFLAGS -O3"
  2202. fi
  2203. # Crazy machines
  2204. ac_ext=cpp
  2205. ac_cpp='$CXXCPP $CPPFLAGS'
  2206. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2207. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2208. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2209. { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  2210. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  2211. if test -z "$CXXCPP"; then
  2212. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  2213. $as_echo_n "(cached) " >&6
  2214. else
  2215. # Double quotes because CXXCPP needs to be expanded
  2216. for CXXCPP in "$CXX -E" "/lib/cpp"
  2217. do
  2218. ac_preproc_ok=false
  2219. for ac_cxx_preproc_warn_flag in '' yes
  2220. do
  2221. # Use a header file that comes with gcc, so configuring glibc
  2222. # with a fresh cross-compiler works.
  2223. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2224. # <limits.h> exists even on freestanding compilers.
  2225. # On the NeXT, cc -E runs the code through the compiler's parser,
  2226. # not just through cpp. "Syntax error" is here to catch this case.
  2227. cat >conftest.$ac_ext <<_ACEOF
  2228. /* confdefs.h. */
  2229. _ACEOF
  2230. cat confdefs.h >>conftest.$ac_ext
  2231. cat >>conftest.$ac_ext <<_ACEOF
  2232. /* end confdefs.h. */
  2233. #ifdef __STDC__
  2234. # include <limits.h>
  2235. #else
  2236. # include <assert.h>
  2237. #endif
  2238. Syntax error
  2239. _ACEOF
  2240. if { (ac_try="$ac_cpp conftest.$ac_ext"
  2241. case "(($ac_try" in
  2242. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2243. *) ac_try_echo=$ac_try;;
  2244. esac
  2245. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2246. $as_echo "$ac_try_echo") >&5
  2247. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  2248. ac_status=$?
  2249. grep -v '^ *+' conftest.er1 >conftest.err
  2250. rm -f conftest.er1
  2251. cat conftest.err >&5
  2252. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2253. (exit $ac_status); } >/dev/null && {
  2254. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2255. test ! -s conftest.err
  2256. }; then
  2257. :
  2258. else
  2259. $as_echo "$as_me: failed program was:" >&5
  2260. sed 's/^/| /' conftest.$ac_ext >&5
  2261. # Broken: fails on valid input.
  2262. continue
  2263. fi
  2264. rm -f conftest.err conftest.$ac_ext
  2265. # OK, works on sane cases. Now check whether nonexistent headers
  2266. # can be detected and how.
  2267. cat >conftest.$ac_ext <<_ACEOF
  2268. /* confdefs.h. */
  2269. _ACEOF
  2270. cat confdefs.h >>conftest.$ac_ext
  2271. cat >>conftest.$ac_ext <<_ACEOF
  2272. /* end confdefs.h. */
  2273. #include <ac_nonexistent.h>
  2274. _ACEOF
  2275. if { (ac_try="$ac_cpp conftest.$ac_ext"
  2276. case "(($ac_try" in
  2277. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2278. *) ac_try_echo=$ac_try;;
  2279. esac
  2280. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2281. $as_echo "$ac_try_echo") >&5
  2282. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  2283. ac_status=$?
  2284. grep -v '^ *+' conftest.er1 >conftest.err
  2285. rm -f conftest.er1
  2286. cat conftest.err >&5
  2287. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2288. (exit $ac_status); } >/dev/null && {
  2289. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2290. test ! -s conftest.err
  2291. }; then
  2292. # Broken: success on invalid input.
  2293. continue
  2294. else
  2295. $as_echo "$as_me: failed program was:" >&5
  2296. sed 's/^/| /' conftest.$ac_ext >&5
  2297. # Passes both tests.
  2298. ac_preproc_ok=:
  2299. break
  2300. fi
  2301. rm -f conftest.err conftest.$ac_ext
  2302. done
  2303. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2304. rm -f conftest.err conftest.$ac_ext
  2305. if $ac_preproc_ok; then
  2306. break
  2307. fi
  2308. done
  2309. ac_cv_prog_CXXCPP=$CXXCPP
  2310. fi
  2311. CXXCPP=$ac_cv_prog_CXXCPP
  2312. else
  2313. ac_cv_prog_CXXCPP=$CXXCPP
  2314. fi
  2315. { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
  2316. $as_echo "$CXXCPP" >&6; }
  2317. ac_preproc_ok=false
  2318. for ac_cxx_preproc_warn_flag in '' yes
  2319. do
  2320. # Use a header file that comes with gcc, so configuring glibc
  2321. # with a fresh cross-compiler works.
  2322. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2323. # <limits.h> exists even on freestanding compilers.
  2324. # On the NeXT, cc -E runs the code through the compiler's parser,
  2325. # not just through cpp. "Syntax error" is here to catch this case.
  2326. cat >conftest.$ac_ext <<_ACEOF
  2327. /* confdefs.h. */
  2328. _ACEOF
  2329. cat confdefs.h >>conftest.$ac_ext
  2330. cat >>conftest.$ac_ext <<_ACEOF
  2331. /* end confdefs.h. */
  2332. #ifdef __STDC__
  2333. # include <limits.h>
  2334. #else
  2335. # include <assert.h>
  2336. #endif
  2337. Syntax error
  2338. _ACEOF
  2339. if { (ac_try="$ac_cpp conftest.$ac_ext"
  2340. case "(($ac_try" in
  2341. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2342. *) ac_try_echo=$ac_try;;
  2343. esac
  2344. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2345. $as_echo "$ac_try_echo") >&5
  2346. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  2347. ac_status=$?
  2348. grep -v '^ *+' conftest.er1 >conftest.err
  2349. rm -f conftest.er1
  2350. cat conftest.err >&5
  2351. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2352. (exit $ac_status); } >/dev/null && {
  2353. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2354. test ! -s conftest.err
  2355. }; then
  2356. :
  2357. else
  2358. $as_echo "$as_me: failed program was:" >&5
  2359. sed 's/^/| /' conftest.$ac_ext >&5
  2360. # Broken: fails on valid input.
  2361. continue
  2362. fi
  2363. rm -f conftest.err conftest.$ac_ext
  2364. # OK, works on sane cases. Now check whether nonexistent headers
  2365. # can be detected and how.
  2366. cat >conftest.$ac_ext <<_ACEOF
  2367. /* confdefs.h. */
  2368. _ACEOF
  2369. cat confdefs.h >>conftest.$ac_ext
  2370. cat >>conftest.$ac_ext <<_ACEOF
  2371. /* end confdefs.h. */
  2372. #include <ac_nonexistent.h>
  2373. _ACEOF
  2374. if { (ac_try="$ac_cpp conftest.$ac_ext"
  2375. case "(($ac_try" in
  2376. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2377. *) ac_try_echo=$ac_try;;
  2378. esac
  2379. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2380. $as_echo "$ac_try_echo") >&5
  2381. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  2382. ac_status=$?
  2383. grep -v '^ *+' conftest.er1 >conftest.err
  2384. rm -f conftest.er1
  2385. cat conftest.err >&5
  2386. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2387. (exit $ac_status); } >/dev/null && {
  2388. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2389. test ! -s conftest.err
  2390. }; then
  2391. # Broken: success on invalid input.
  2392. continue
  2393. else
  2394. $as_echo "$as_me: failed program was:" >&5
  2395. sed 's/^/| /' conftest.$ac_ext >&5
  2396. # Passes both tests.
  2397. ac_preproc_ok=:
  2398. break
  2399. fi
  2400. rm -f conftest.err conftest.$ac_ext
  2401. done
  2402. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2403. rm -f conftest.err conftest.$ac_ext
  2404. if $ac_preproc_ok; then
  2405. :
  2406. else
  2407. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2408. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2409. { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  2410. See \`config.log' for more details." >&5
  2411. $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  2412. See \`config.log' for more details." >&2;}
  2413. { (exit 1); exit 1; }; }; }
  2414. fi
  2415. ac_ext=cpp
  2416. ac_cpp='$CXXCPP $CPPFLAGS'
  2417. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2418. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2419. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2420. { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  2421. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  2422. if test "${ac_cv_path_GREP+set}" = set; then
  2423. $as_echo_n "(cached) " >&6
  2424. else
  2425. if test -z "$GREP"; then
  2426. ac_path_GREP_found=false
  2427. # Loop through the user's path and test for each of PROGNAME-LIST
  2428. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2429. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  2430. do
  2431. IFS=$as_save_IFS
  2432. test -z "$as_dir" && as_dir=.
  2433. for ac_prog in grep ggrep; do
  2434. for ac_exec_ext in '' $ac_executable_extensions; do
  2435. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  2436. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  2437. # Check for GNU ac_path_GREP and select it if it is found.
  2438. # Check for GNU $ac_path_GREP
  2439. case `"$ac_path_GREP" --version 2>&1` in
  2440. *GNU*)
  2441. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  2442. *)
  2443. ac_count=0
  2444. $as_echo_n 0123456789 >"conftest.in"
  2445. while :
  2446. do
  2447. cat "conftest.in" "conftest.in" >"conftest.tmp"
  2448. mv "conftest.tmp" "conftest.in"
  2449. cp "conftest.in" "conftest.nl"
  2450. $as_echo 'GREP' >> "conftest.nl"
  2451. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  2452. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  2453. ac_count=`expr $ac_count + 1`
  2454. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  2455. # Best one so far, save it but keep looking for a better one
  2456. ac_cv_path_GREP="$ac_path_GREP"
  2457. ac_path_GREP_max=$ac_count
  2458. fi
  2459. # 10*(2^10) chars as input seems more than enough
  2460. test $ac_count -gt 10 && break
  2461. done
  2462. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  2463. esac
  2464. $ac_path_GREP_found && break 3
  2465. done
  2466. done
  2467. done
  2468. IFS=$as_save_IFS
  2469. if test -z "$ac_cv_path_GREP"; then
  2470. { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  2471. $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  2472. { (exit 1); exit 1; }; }
  2473. fi
  2474. else
  2475. ac_cv_path_GREP=$GREP
  2476. fi
  2477. fi
  2478. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  2479. $as_echo "$ac_cv_path_GREP" >&6; }
  2480. GREP="$ac_cv_path_GREP"
  2481. { $as_echo "$as_me:$LINENO: checking for egrep" >&5
  2482. $as_echo_n "checking for egrep... " >&6; }
  2483. if test "${ac_cv_path_EGREP+set}" = set; then
  2484. $as_echo_n "(cached) " >&6
  2485. else
  2486. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  2487. then ac_cv_path_EGREP="$GREP -E"
  2488. else
  2489. if test -z "$EGREP"; then
  2490. ac_path_EGREP_found=false
  2491. # Loop through the user's path and test for each of PROGNAME-LIST
  2492. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2493. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  2494. do
  2495. IFS=$as_save_IFS
  2496. test -z "$as_dir" && as_dir=.
  2497. for ac_prog in egrep; do
  2498. for ac_exec_ext in '' $ac_executable_extensions; do
  2499. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  2500. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  2501. # Check for GNU ac_path_EGREP and select it if it is found.
  2502. # Check for GNU $ac_path_EGREP
  2503. case `"$ac_path_EGREP" --version 2>&1` in
  2504. *GNU*)
  2505. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  2506. *)
  2507. ac_count=0
  2508. $as_echo_n 0123456789 >"conftest.in"
  2509. while :
  2510. do
  2511. cat "conftest.in" "conftest.in" >"conftest.tmp"
  2512. mv "conftest.tmp" "conftest.in"
  2513. cp "conftest.in" "conftest.nl"
  2514. $as_echo 'EGREP' >> "conftest.nl"
  2515. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  2516. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  2517. ac_count=`expr $ac_count + 1`
  2518. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  2519. # Best one so far, save it but keep looking for a better one
  2520. ac_cv_path_EGREP="$ac_path_EGREP"
  2521. ac_path_EGREP_max=$ac_count
  2522. fi
  2523. # 10*(2^10) chars as input seems more than enough
  2524. test $ac_count -gt 10 && break
  2525. done
  2526. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  2527. esac
  2528. $ac_path_EGREP_found && break 3
  2529. done
  2530. done
  2531. done
  2532. IFS=$as_save_IFS
  2533. if test -z "$ac_cv_path_EGREP"; then
  2534. { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  2535. $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  2536. { (exit 1); exit 1; }; }
  2537. fi
  2538. else
  2539. ac_cv_path_EGREP=$EGREP
  2540. fi
  2541. fi
  2542. fi
  2543. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  2544. $as_echo "$ac_cv_path_EGREP" >&6; }
  2545. EGREP="$ac_cv_path_EGREP"
  2546. { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  2547. $as_echo_n "checking for ANSI C header files... " >&6; }
  2548. if test "${ac_cv_header_stdc+set}" = set; then
  2549. $as_echo_n "(cached) " >&6
  2550. else
  2551. cat >conftest.$ac_ext <<_ACEOF
  2552. /* confdefs.h. */
  2553. _ACEOF
  2554. cat confdefs.h >>conftest.$ac_ext
  2555. cat >>conftest.$ac_ext <<_ACEOF
  2556. /* end confdefs.h. */
  2557. #include <stdlib.h>
  2558. #include <stdarg.h>
  2559. #include <string.h>
  2560. #include <float.h>
  2561. int
  2562. main ()
  2563. {
  2564. ;
  2565. return 0;
  2566. }
  2567. _ACEOF
  2568. rm -f conftest.$ac_objext
  2569. if { (ac_try="$ac_compile"
  2570. case "(($ac_try" in
  2571. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2572. *) ac_try_echo=$ac_try;;
  2573. esac
  2574. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2575. $as_echo "$ac_try_echo") >&5
  2576. (eval "$ac_compile") 2>conftest.er1
  2577. ac_status=$?
  2578. grep -v '^ *+' conftest.er1 >conftest.err
  2579. rm -f conftest.er1
  2580. cat conftest.err >&5
  2581. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2582. (exit $ac_status); } && {
  2583. test -z "$ac_cxx_werror_flag" ||
  2584. test ! -s conftest.err
  2585. } && test -s conftest.$ac_objext; then
  2586. ac_cv_header_stdc=yes
  2587. else
  2588. $as_echo "$as_me: failed program was:" >&5
  2589. sed 's/^/| /' conftest.$ac_ext >&5
  2590. ac_cv_header_stdc=no
  2591. fi
  2592. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2593. if test $ac_cv_header_stdc = yes; then
  2594. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  2595. cat >conftest.$ac_ext <<_ACEOF
  2596. /* confdefs.h. */
  2597. _ACEOF
  2598. cat confdefs.h >>conftest.$ac_ext
  2599. cat >>conftest.$ac_ext <<_ACEOF
  2600. /* end confdefs.h. */
  2601. #include <string.h>
  2602. _ACEOF
  2603. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2604. $EGREP "memchr" >/dev/null 2>&1; then
  2605. :
  2606. else
  2607. ac_cv_header_stdc=no
  2608. fi
  2609. rm -f conftest*
  2610. fi
  2611. if test $ac_cv_header_stdc = yes; then
  2612. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  2613. cat >conftest.$ac_ext <<_ACEOF
  2614. /* confdefs.h. */
  2615. _ACEOF
  2616. cat confdefs.h >>conftest.$ac_ext
  2617. cat >>conftest.$ac_ext <<_ACEOF
  2618. /* end confdefs.h. */
  2619. #include <stdlib.h>
  2620. _ACEOF
  2621. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2622. $EGREP "free" >/dev/null 2>&1; then
  2623. :
  2624. else
  2625. ac_cv_header_stdc=no
  2626. fi
  2627. rm -f conftest*
  2628. fi
  2629. if test $ac_cv_header_stdc = yes; then
  2630. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  2631. if test "$cross_compiling" = yes; then
  2632. :
  2633. else
  2634. cat >conftest.$ac_ext <<_ACEOF
  2635. /* confdefs.h. */
  2636. _ACEOF
  2637. cat confdefs.h >>conftest.$ac_ext
  2638. cat >>conftest.$ac_ext <<_ACEOF
  2639. /* end confdefs.h. */
  2640. #include <ctype.h>
  2641. #include <stdlib.h>
  2642. #if ((' ' & 0x0FF) == 0x020)
  2643. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  2644. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  2645. #else
  2646. # define ISLOWER(c) \
  2647. (('a' <= (c) && (c) <= 'i') \
  2648. || ('j' <= (c) && (c) <= 'r') \
  2649. || ('s' <= (c) && (c) <= 'z'))
  2650. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  2651. #endif
  2652. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  2653. int
  2654. main ()
  2655. {
  2656. int i;
  2657. for (i = 0; i < 256; i++)
  2658. if (XOR (islower (i), ISLOWER (i))
  2659. || toupper (i) != TOUPPER (i))
  2660. return 2;
  2661. return 0;
  2662. }
  2663. _ACEOF
  2664. rm -f conftest$ac_exeext
  2665. if { (ac_try="$ac_link"
  2666. case "(($ac_try" in
  2667. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2668. *) ac_try_echo=$ac_try;;
  2669. esac
  2670. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2671. $as_echo "$ac_try_echo") >&5
  2672. (eval "$ac_link") 2>&5
  2673. ac_status=$?
  2674. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2675. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  2676. { (case "(($ac_try" in
  2677. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2678. *) ac_try_echo=$ac_try;;
  2679. esac
  2680. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2681. $as_echo "$ac_try_echo") >&5
  2682. (eval "$ac_try") 2>&5
  2683. ac_status=$?
  2684. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2685. (exit $ac_status); }; }; then
  2686. :
  2687. else
  2688. $as_echo "$as_me: program exited with status $ac_status" >&5
  2689. $as_echo "$as_me: failed program was:" >&5
  2690. sed 's/^/| /' conftest.$ac_ext >&5
  2691. ( exit $ac_status )
  2692. ac_cv_header_stdc=no
  2693. fi
  2694. rm -rf conftest.dSYM
  2695. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  2696. fi
  2697. fi
  2698. fi
  2699. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  2700. $as_echo "$ac_cv_header_stdc" >&6; }
  2701. if test $ac_cv_header_stdc = yes; then
  2702. cat >>confdefs.h <<\_ACEOF
  2703. #define STDC_HEADERS 1
  2704. _ACEOF
  2705. fi
  2706. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  2707. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  2708. inttypes.h stdint.h unistd.h
  2709. do
  2710. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  2711. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  2712. $as_echo_n "checking for $ac_header... " >&6; }
  2713. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  2714. $as_echo_n "(cached) " >&6
  2715. else
  2716. cat >conftest.$ac_ext <<_ACEOF
  2717. /* confdefs.h. */
  2718. _ACEOF
  2719. cat confdefs.h >>conftest.$ac_ext
  2720. cat >>conftest.$ac_ext <<_ACEOF
  2721. /* end confdefs.h. */
  2722. $ac_includes_default
  2723. #include <$ac_header>
  2724. _ACEOF
  2725. rm -f conftest.$ac_objext
  2726. if { (ac_try="$ac_compile"
  2727. case "(($ac_try" in
  2728. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2729. *) ac_try_echo=$ac_try;;
  2730. esac
  2731. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2732. $as_echo "$ac_try_echo") >&5
  2733. (eval "$ac_compile") 2>conftest.er1
  2734. ac_status=$?
  2735. grep -v '^ *+' conftest.er1 >conftest.err
  2736. rm -f conftest.er1
  2737. cat conftest.err >&5
  2738. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2739. (exit $ac_status); } && {
  2740. test -z "$ac_cxx_werror_flag" ||
  2741. test ! -s conftest.err
  2742. } && test -s conftest.$ac_objext; then
  2743. eval "$as_ac_Header=yes"
  2744. else
  2745. $as_echo "$as_me: failed program was:" >&5
  2746. sed 's/^/| /' conftest.$ac_ext >&5
  2747. eval "$as_ac_Header=no"
  2748. fi
  2749. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2750. fi
  2751. ac_res=`eval 'as_val=${'$as_ac_Header'}
  2752. $as_echo "$as_val"'`
  2753. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  2754. $as_echo "$ac_res" >&6; }
  2755. as_val=`eval 'as_val=${'$as_ac_Header'}
  2756. $as_echo "$as_val"'`
  2757. if test "x$as_val" = x""yes; then
  2758. cat >>confdefs.h <<_ACEOF
  2759. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  2760. _ACEOF
  2761. fi
  2762. done
  2763. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2764. { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
  2765. $as_echo_n "checking for minix/config.h... " >&6; }
  2766. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2767. $as_echo_n "(cached) " >&6
  2768. fi
  2769. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  2770. $as_echo "$ac_cv_header_minix_config_h" >&6; }
  2771. else
  2772. # Is the header compilable?
  2773. { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
  2774. $as_echo_n "checking minix/config.h usability... " >&6; }
  2775. cat >conftest.$ac_ext <<_ACEOF
  2776. /* confdefs.h. */
  2777. _ACEOF
  2778. cat confdefs.h >>conftest.$ac_ext
  2779. cat >>conftest.$ac_ext <<_ACEOF
  2780. /* end confdefs.h. */
  2781. $ac_includes_default
  2782. #include <minix/config.h>
  2783. _ACEOF
  2784. rm -f conftest.$ac_objext
  2785. if { (ac_try="$ac_compile"
  2786. case "(($ac_try" in
  2787. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2788. *) ac_try_echo=$ac_try;;
  2789. esac
  2790. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2791. $as_echo "$ac_try_echo") >&5
  2792. (eval "$ac_compile") 2>conftest.er1
  2793. ac_status=$?
  2794. grep -v '^ *+' conftest.er1 >conftest.err
  2795. rm -f conftest.er1
  2796. cat conftest.err >&5
  2797. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2798. (exit $ac_status); } && {
  2799. test -z "$ac_cxx_werror_flag" ||
  2800. test ! -s conftest.err
  2801. } && test -s conftest.$ac_objext; then
  2802. ac_header_compiler=yes
  2803. else
  2804. $as_echo "$as_me: failed program was:" >&5
  2805. sed 's/^/| /' conftest.$ac_ext >&5
  2806. ac_header_compiler=no
  2807. fi
  2808. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2809. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  2810. $as_echo "$ac_header_compiler" >&6; }
  2811. # Is the header present?
  2812. { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
  2813. $as_echo_n "checking minix/config.h presence... " >&6; }
  2814. cat >conftest.$ac_ext <<_ACEOF
  2815. /* confdefs.h. */
  2816. _ACEOF
  2817. cat confdefs.h >>conftest.$ac_ext
  2818. cat >>conftest.$ac_ext <<_ACEOF
  2819. /* end confdefs.h. */
  2820. #include <minix/config.h>
  2821. _ACEOF
  2822. if { (ac_try="$ac_cpp conftest.$ac_ext"
  2823. case "(($ac_try" in
  2824. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2825. *) ac_try_echo=$ac_try;;
  2826. esac
  2827. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2828. $as_echo "$ac_try_echo") >&5
  2829. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  2830. ac_status=$?
  2831. grep -v '^ *+' conftest.er1 >conftest.err
  2832. rm -f conftest.er1
  2833. cat conftest.err >&5
  2834. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2835. (exit $ac_status); } >/dev/null && {
  2836. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2837. test ! -s conftest.err
  2838. }; then
  2839. ac_header_preproc=yes
  2840. else
  2841. $as_echo "$as_me: failed program was:" >&5
  2842. sed 's/^/| /' conftest.$ac_ext >&5
  2843. ac_header_preproc=no
  2844. fi
  2845. rm -f conftest.err conftest.$ac_ext
  2846. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  2847. $as_echo "$ac_header_preproc" >&6; }
  2848. # So? What about this header?
  2849. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  2850. yes:no: )
  2851. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
  2852. $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2853. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
  2854. $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
  2855. ac_header_preproc=yes
  2856. ;;
  2857. no:yes:* )
  2858. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
  2859. $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
  2860. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
  2861. $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
  2862. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
  2863. $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
  2864. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
  2865. $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
  2866. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
  2867. $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
  2868. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
  2869. $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
  2870. ;;
  2871. esac
  2872. { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
  2873. $as_echo_n "checking for minix/config.h... " >&6; }
  2874. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2875. $as_echo_n "(cached) " >&6
  2876. else
  2877. ac_cv_header_minix_config_h=$ac_header_preproc
  2878. fi
  2879. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  2880. $as_echo "$ac_cv_header_minix_config_h" >&6; }
  2881. fi
  2882. if test "x$ac_cv_header_minix_config_h" = x""yes; then
  2883. MINIX=yes
  2884. else
  2885. MINIX=
  2886. fi
  2887. if test "$MINIX" = yes; then
  2888. cat >>confdefs.h <<\_ACEOF
  2889. #define _POSIX_SOURCE 1
  2890. _ACEOF
  2891. cat >>confdefs.h <<\_ACEOF
  2892. #define _POSIX_1_SOURCE 2
  2893. _ACEOF
  2894. cat >>confdefs.h <<\_ACEOF
  2895. #define _MINIX 1
  2896. _ACEOF
  2897. fi
  2898. { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
  2899. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  2900. if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
  2901. $as_echo_n "(cached) " >&6
  2902. else
  2903. cat >conftest.$ac_ext <<_ACEOF
  2904. /* confdefs.h. */
  2905. _ACEOF
  2906. cat confdefs.h >>conftest.$ac_ext
  2907. cat >>conftest.$ac_ext <<_ACEOF
  2908. /* end confdefs.h. */
  2909. # define __EXTENSIONS__ 1
  2910. $ac_includes_default
  2911. int
  2912. main ()
  2913. {
  2914. ;
  2915. return 0;
  2916. }
  2917. _ACEOF
  2918. rm -f conftest.$ac_objext
  2919. if { (ac_try="$ac_compile"
  2920. case "(($ac_try" in
  2921. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2922. *) ac_try_echo=$ac_try;;
  2923. esac
  2924. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2925. $as_echo "$ac_try_echo") >&5
  2926. (eval "$ac_compile") 2>conftest.er1
  2927. ac_status=$?
  2928. grep -v '^ *+' conftest.er1 >conftest.err
  2929. rm -f conftest.er1
  2930. cat conftest.err >&5
  2931. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2932. (exit $ac_status); } && {
  2933. test -z "$ac_cxx_werror_flag" ||
  2934. test ! -s conftest.err
  2935. } && test -s conftest.$ac_objext; then
  2936. ac_cv_safe_to_define___extensions__=yes
  2937. else
  2938. $as_echo "$as_me: failed program was:" >&5
  2939. sed 's/^/| /' conftest.$ac_ext >&5
  2940. ac_cv_safe_to_define___extensions__=no
  2941. fi
  2942. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2943. fi
  2944. { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
  2945. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  2946. test $ac_cv_safe_to_define___extensions__ = yes &&
  2947. cat >>confdefs.h <<\_ACEOF
  2948. #define __EXTENSIONS__ 1
  2949. _ACEOF
  2950. cat >>confdefs.h <<\_ACEOF
  2951. #define _ALL_SOURCE 1
  2952. _ACEOF
  2953. cat >>confdefs.h <<\_ACEOF
  2954. #define _GNU_SOURCE 1
  2955. _ACEOF
  2956. cat >>confdefs.h <<\_ACEOF
  2957. #define _POSIX_PTHREAD_SEMANTICS 1
  2958. _ACEOF
  2959. cat >>confdefs.h <<\_ACEOF
  2960. #define _TANDEM_SOURCE 1
  2961. _ACEOF
  2962. { $as_echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
  2963. $as_echo_n "checking for strerror in -lcposix... " >&6; }
  2964. if test "${ac_cv_lib_cposix_strerror+set}" = set; then
  2965. $as_echo_n "(cached) " >&6
  2966. else
  2967. ac_check_lib_save_LIBS=$LIBS
  2968. LIBS="-lcposix $LIBS"
  2969. cat >conftest.$ac_ext <<_ACEOF
  2970. /* confdefs.h. */
  2971. _ACEOF
  2972. cat confdefs.h >>conftest.$ac_ext
  2973. cat >>conftest.$ac_ext <<_ACEOF
  2974. /* end confdefs.h. */
  2975. /* Override any GCC internal prototype to avoid an error.
  2976. Use char because int might match the return type of a GCC
  2977. builtin and then its argument prototype would still apply. */
  2978. #ifdef __cplusplus
  2979. extern "C"
  2980. #endif
  2981. char strerror ();
  2982. int
  2983. main ()
  2984. {
  2985. return strerror ();
  2986. ;
  2987. return 0;
  2988. }
  2989. _ACEOF
  2990. rm -f conftest.$ac_objext conftest$ac_exeext
  2991. if { (ac_try="$ac_link"
  2992. case "(($ac_try" in
  2993. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2994. *) ac_try_echo=$ac_try;;
  2995. esac
  2996. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2997. $as_echo "$ac_try_echo") >&5
  2998. (eval "$ac_link") 2>conftest.er1
  2999. ac_status=$?
  3000. grep -v '^ *+' conftest.er1 >conftest.err
  3001. rm -f conftest.er1
  3002. cat conftest.err >&5
  3003. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3004. (exit $ac_status); } && {
  3005. test -z "$ac_cxx_werror_flag" ||
  3006. test ! -s conftest.err
  3007. } && test -s conftest$ac_exeext && {
  3008. test "$cross_compiling" = yes ||
  3009. $as_test_x conftest$ac_exeext
  3010. }; then
  3011. ac_cv_lib_cposix_strerror=yes
  3012. else
  3013. $as_echo "$as_me: failed program was:" >&5
  3014. sed 's/^/| /' conftest.$ac_ext >&5
  3015. ac_cv_lib_cposix_strerror=no
  3016. fi
  3017. rm -rf conftest.dSYM
  3018. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  3019. conftest$ac_exeext conftest.$ac_ext
  3020. LIBS=$ac_check_lib_save_LIBS
  3021. fi
  3022. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
  3023. $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
  3024. if test "x$ac_cv_lib_cposix_strerror" = x""yes; then
  3025. LIBS="$LIBS -lcposix"
  3026. fi
  3027. if test "${ac_cv_header_minix_config_h+set}" = set; then
  3028. { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
  3029. $as_echo_n "checking for minix/config.h... " >&6; }
  3030. if test "${ac_cv_header_minix_config_h+set}" = set; then
  3031. $as_echo_n "(cached) " >&6
  3032. fi
  3033. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  3034. $as_echo "$ac_cv_header_minix_config_h" >&6; }
  3035. else
  3036. # Is the header compilable?
  3037. { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
  3038. $as_echo_n "checking minix/config.h usability... " >&6; }
  3039. cat >conftest.$ac_ext <<_ACEOF
  3040. /* confdefs.h. */
  3041. _ACEOF
  3042. cat confdefs.h >>conftest.$ac_ext
  3043. cat >>conftest.$ac_ext <<_ACEOF
  3044. /* end confdefs.h. */
  3045. $ac_includes_default
  3046. #include <minix/config.h>
  3047. _ACEOF
  3048. rm -f conftest.$ac_objext
  3049. if { (ac_try="$ac_compile"
  3050. case "(($ac_try" in
  3051. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3052. *) ac_try_echo=$ac_try;;
  3053. esac
  3054. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3055. $as_echo "$ac_try_echo") >&5
  3056. (eval "$ac_compile") 2>conftest.er1
  3057. ac_status=$?
  3058. grep -v '^ *+' conftest.er1 >conftest.err
  3059. rm -f conftest.er1
  3060. cat conftest.err >&5
  3061. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3062. (exit $ac_status); } && {
  3063. test -z "$ac_cxx_werror_flag" ||
  3064. test ! -s conftest.err
  3065. } && test -s conftest.$ac_objext; then
  3066. ac_header_compiler=yes
  3067. else
  3068. $as_echo "$as_me: failed program was:" >&5
  3069. sed 's/^/| /' conftest.$ac_ext >&5
  3070. ac_header_compiler=no
  3071. fi
  3072. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3073. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  3074. $as_echo "$ac_header_compiler" >&6; }
  3075. # Is the header present?
  3076. { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
  3077. $as_echo_n "checking minix/config.h presence... " >&6; }
  3078. cat >conftest.$ac_ext <<_ACEOF
  3079. /* confdefs.h. */
  3080. _ACEOF
  3081. cat confdefs.h >>conftest.$ac_ext
  3082. cat >>conftest.$ac_ext <<_ACEOF
  3083. /* end confdefs.h. */
  3084. #include <minix/config.h>
  3085. _ACEOF
  3086. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3087. case "(($ac_try" in
  3088. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3089. *) ac_try_echo=$ac_try;;
  3090. esac
  3091. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3092. $as_echo "$ac_try_echo") >&5
  3093. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3094. ac_status=$?
  3095. grep -v '^ *+' conftest.er1 >conftest.err
  3096. rm -f conftest.er1
  3097. cat conftest.err >&5
  3098. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3099. (exit $ac_status); } >/dev/null && {
  3100. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  3101. test ! -s conftest.err
  3102. }; then
  3103. ac_header_preproc=yes
  3104. else
  3105. $as_echo "$as_me: failed program was:" >&5
  3106. sed 's/^/| /' conftest.$ac_ext >&5
  3107. ac_header_preproc=no
  3108. fi
  3109. rm -f conftest.err conftest.$ac_ext
  3110. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  3111. $as_echo "$ac_header_preproc" >&6; }
  3112. # So? What about this header?
  3113. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  3114. yes:no: )
  3115. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
  3116. $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  3117. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
  3118. $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
  3119. ac_header_preproc=yes
  3120. ;;
  3121. no:yes:* )
  3122. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
  3123. $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
  3124. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
  3125. $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
  3126. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
  3127. $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
  3128. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
  3129. $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
  3130. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
  3131. $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
  3132. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
  3133. $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
  3134. ;;
  3135. esac
  3136. { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
  3137. $as_echo_n "checking for minix/config.h... " >&6; }
  3138. if test "${ac_cv_header_minix_config_h+set}" = set; then
  3139. $as_echo_n "(cached) " >&6
  3140. else
  3141. ac_cv_header_minix_config_h=$ac_header_preproc
  3142. fi
  3143. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  3144. $as_echo "$ac_cv_header_minix_config_h" >&6; }
  3145. fi
  3146. if test "x$ac_cv_header_minix_config_h" = x""yes; then
  3147. MINIX=yes
  3148. else
  3149. MINIX=
  3150. fi
  3151. if test "$MINIX" = yes; then
  3152. cat >>confdefs.h <<\_ACEOF
  3153. #define _POSIX_SOURCE 1
  3154. _ACEOF
  3155. cat >>confdefs.h <<\_ACEOF
  3156. #define _POSIX_1_SOURCE 2
  3157. _ACEOF
  3158. cat >>confdefs.h <<\_ACEOF
  3159. #define _MINIX 1
  3160. _ACEOF
  3161. fi
  3162. { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
  3163. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  3164. if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
  3165. $as_echo_n "(cached) " >&6
  3166. else
  3167. cat >conftest.$ac_ext <<_ACEOF
  3168. /* confdefs.h. */
  3169. _ACEOF
  3170. cat confdefs.h >>conftest.$ac_ext
  3171. cat >>conftest.$ac_ext <<_ACEOF
  3172. /* end confdefs.h. */
  3173. # define __EXTENSIONS__ 1
  3174. $ac_includes_default
  3175. int
  3176. main ()
  3177. {
  3178. ;
  3179. return 0;
  3180. }
  3181. _ACEOF
  3182. rm -f conftest.$ac_objext
  3183. if { (ac_try="$ac_compile"
  3184. case "(($ac_try" in
  3185. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3186. *) ac_try_echo=$ac_try;;
  3187. esac
  3188. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3189. $as_echo "$ac_try_echo") >&5
  3190. (eval "$ac_compile") 2>conftest.er1
  3191. ac_status=$?
  3192. grep -v '^ *+' conftest.er1 >conftest.err
  3193. rm -f conftest.er1
  3194. cat conftest.err >&5
  3195. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3196. (exit $ac_status); } && {
  3197. test -z "$ac_cxx_werror_flag" ||
  3198. test ! -s conftest.err
  3199. } && test -s conftest.$ac_objext; then
  3200. ac_cv_safe_to_define___extensions__=yes
  3201. else
  3202. $as_echo "$as_me: failed program was:" >&5
  3203. sed 's/^/| /' conftest.$ac_ext >&5
  3204. ac_cv_safe_to_define___extensions__=no
  3205. fi
  3206. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3207. fi
  3208. { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
  3209. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  3210. test $ac_cv_safe_to_define___extensions__ = yes &&
  3211. cat >>confdefs.h <<\_ACEOF
  3212. #define __EXTENSIONS__ 1
  3213. _ACEOF
  3214. cat >>confdefs.h <<\_ACEOF
  3215. #define _ALL_SOURCE 1
  3216. _ACEOF
  3217. cat >>confdefs.h <<\_ACEOF
  3218. #define _GNU_SOURCE 1
  3219. _ACEOF
  3220. cat >>confdefs.h <<\_ACEOF
  3221. #define _POSIX_PTHREAD_SEMANTICS 1
  3222. _ACEOF
  3223. cat >>confdefs.h <<\_ACEOF
  3224. #define _TANDEM_SOURCE 1
  3225. _ACEOF
  3226. #checkpoint
  3227. cat >confcache <<\_ACEOF
  3228. # This file is a shell script that caches the results of configure
  3229. # tests run on this system so they can be shared between configure
  3230. # scripts and configure runs, see configure's option --config-cache.
  3231. # It is not useful on other systems. If it contains results you don't
  3232. # want to keep, you may remove or edit it.
  3233. #
  3234. # config.status only pays attention to the cache file if you give it
  3235. # the --recheck option to rerun configure.
  3236. #
  3237. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  3238. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  3239. # following values.
  3240. _ACEOF
  3241. # The following way of writing the cache mishandles newlines in values,
  3242. # but we know of no workaround that is simple, portable, and efficient.
  3243. # So, we kill variables containing newlines.
  3244. # Ultrix sh set writes to stderr and can't be redirected directly,
  3245. # and sets the high bit in the cache file unless we assign to the vars.
  3246. (
  3247. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  3248. eval ac_val=\$$ac_var
  3249. case $ac_val in #(
  3250. *${as_nl}*)
  3251. case $ac_var in #(
  3252. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  3253. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  3254. esac
  3255. case $ac_var in #(
  3256. _ | IFS | as_nl) ;; #(
  3257. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  3258. *) $as_unset $ac_var ;;
  3259. esac ;;
  3260. esac
  3261. done
  3262. (set) 2>&1 |
  3263. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  3264. *${as_nl}ac_space=\ *)
  3265. # `set' does not quote correctly, so add quotes (double-quote
  3266. # substitution turns \\\\ into \\, and sed turns \\ into \).
  3267. sed -n \
  3268. "s/'/'\\\\''/g;
  3269. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  3270. ;; #(
  3271. *)
  3272. # `set' quotes correctly as required by POSIX, so do not add quotes.
  3273. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  3274. ;;
  3275. esac |
  3276. sort
  3277. ) |
  3278. sed '
  3279. /^ac_cv_env_/b end
  3280. t clear
  3281. :clear
  3282. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  3283. t end
  3284. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  3285. :end' >>confcache
  3286. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  3287. if test -w "$cache_file"; then
  3288. test "x$cache_file" != "x/dev/null" &&
  3289. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  3290. $as_echo "$as_me: updating cache $cache_file" >&6;}
  3291. cat confcache >$cache_file
  3292. else
  3293. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  3294. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  3295. fi
  3296. fi
  3297. rm -f confcache
  3298. # Speedup compile
  3299. if test -n "$GXX" && test -z "$no_wall"; then
  3300. { $as_echo "$as_me:$LINENO: checking whether the compiler understands -Wall" >&5
  3301. $as_echo_n "checking whether the compiler understands -Wall... " >&6; }
  3302. if test "${egg_cv_var_ccwall+set}" = set; then
  3303. $as_echo_n "(cached) " >&6
  3304. else
  3305. ac_old_CXXFLAGS="$CXXFLAGS"
  3306. CXXFLAGS="$CXXFLAGS -Wall"
  3307. cat >conftest.$ac_ext <<_ACEOF
  3308. int main ()
  3309. {
  3310. return(0);
  3311. }
  3312. _ACEOF
  3313. rm -f conftest.$ac_objext
  3314. if { (ac_try="$ac_compile"
  3315. case "(($ac_try" in
  3316. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3317. *) ac_try_echo=$ac_try;;
  3318. esac
  3319. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3320. $as_echo "$ac_try_echo") >&5
  3321. (eval "$ac_compile") 2>conftest.er1
  3322. ac_status=$?
  3323. grep -v '^ *+' conftest.er1 >conftest.err
  3324. rm -f conftest.er1
  3325. cat conftest.err >&5
  3326. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3327. (exit $ac_status); } && {
  3328. test -z "$ac_cxx_werror_flag" ||
  3329. test ! -s conftest.err
  3330. } && test -s conftest.$ac_objext; then
  3331. egg_cv_var_ccwall="yes"
  3332. else
  3333. $as_echo "$as_me: failed program was:" >&5
  3334. sed 's/^/| /' conftest.$ac_ext >&5
  3335. egg_cv_var_ccwall="no"
  3336. fi
  3337. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3338. CXXFLAGS="$ac_old_CXXFLAGS"
  3339. fi
  3340. { $as_echo "$as_me:$LINENO: result: $egg_cv_var_ccwall" >&5
  3341. $as_echo "$egg_cv_var_ccwall" >&6; }
  3342. if test "$egg_cv_var_ccwall" = "yes"; then
  3343. CXXFLAGS="$CXXFLAGS -Wall"
  3344. fi
  3345. fi
  3346. if test -n "$GXX" && test -z "$no_pipe"; then
  3347. { $as_echo "$as_me:$LINENO: checking whether the compiler understands -pipe" >&5
  3348. $as_echo_n "checking whether the compiler understands -pipe... " >&6; }
  3349. if test "${egg_cv_var_ccpipe+set}" = set; then
  3350. $as_echo_n "(cached) " >&6
  3351. else
  3352. ac_old_CXX="$CXX"
  3353. CXX="$CXX -pipe"
  3354. cat >conftest.$ac_ext <<_ACEOF
  3355. int main ()
  3356. {
  3357. return(0);
  3358. }
  3359. _ACEOF
  3360. rm -f conftest.$ac_objext
  3361. if { (ac_try="$ac_compile"
  3362. case "(($ac_try" in
  3363. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3364. *) ac_try_echo=$ac_try;;
  3365. esac
  3366. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3367. $as_echo "$ac_try_echo") >&5
  3368. (eval "$ac_compile") 2>conftest.er1
  3369. ac_status=$?
  3370. grep -v '^ *+' conftest.er1 >conftest.err
  3371. rm -f conftest.er1
  3372. cat conftest.err >&5
  3373. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3374. (exit $ac_status); } && {
  3375. test -z "$ac_cxx_werror_flag" ||
  3376. test ! -s conftest.err
  3377. } && test -s conftest.$ac_objext; then
  3378. egg_cv_var_ccpipe="yes"
  3379. else
  3380. $as_echo "$as_me: failed program was:" >&5
  3381. sed 's/^/| /' conftest.$ac_ext >&5
  3382. egg_cv_var_ccpipe="no"
  3383. fi
  3384. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3385. CXX="$ac_old_CXX"
  3386. fi
  3387. { $as_echo "$as_me:$LINENO: result: $egg_cv_var_ccpipe" >&5
  3388. $as_echo "$egg_cv_var_ccpipe" >&6; }
  3389. if test "$egg_cv_var_ccpipe" = "yes"; then
  3390. CXX="$CXX -pipe"
  3391. fi
  3392. fi
  3393. CCDEPMODE=gcc
  3394. num=`$CXX -dumpversion | sed "s/^\\\(.\\\).*/\\\1/"`
  3395. if test $num -ge "3"; then
  3396. CCDEPMODE=gcc3
  3397. # GCC3="-Wpadded -Wpacked -Wno-unused-parameter -Wmissing-format-attribute -Wdisabled-optimization"
  3398. GCC3="-W -Wno-unused-parameter -Wdisabled-optimization -Wno-write-strings -Wno-format-security -fno-strict-aliasing"
  3399. GCC3DEB="-Wno-disabled-optimization -Wmissing-format-attribute"
  3400. fi
  3401. if test $num -ge "4"; then
  3402. GCC4DEB="-fstack-protector-all"
  3403. fi
  3404. #checkpoint
  3405. cat >confcache <<\_ACEOF
  3406. # This file is a shell script that caches the results of configure
  3407. # tests run on this system so they can be shared between configure
  3408. # scripts and configure runs, see configure's option --config-cache.
  3409. # It is not useful on other systems. If it contains results you don't
  3410. # want to keep, you may remove or edit it.
  3411. #
  3412. # config.status only pays attention to the cache file if you give it
  3413. # the --recheck option to rerun configure.
  3414. #
  3415. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  3416. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  3417. # following values.
  3418. _ACEOF
  3419. # The following way of writing the cache mishandles newlines in values,
  3420. # but we know of no workaround that is simple, portable, and efficient.
  3421. # So, we kill variables containing newlines.
  3422. # Ultrix sh set writes to stderr and can't be redirected directly,
  3423. # and sets the high bit in the cache file unless we assign to the vars.
  3424. (
  3425. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  3426. eval ac_val=\$$ac_var
  3427. case $ac_val in #(
  3428. *${as_nl}*)
  3429. case $ac_var in #(
  3430. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  3431. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  3432. esac
  3433. case $ac_var in #(
  3434. _ | IFS | as_nl) ;; #(
  3435. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  3436. *) $as_unset $ac_var ;;
  3437. esac ;;
  3438. esac
  3439. done
  3440. (set) 2>&1 |
  3441. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  3442. *${as_nl}ac_space=\ *)
  3443. # `set' does not quote correctly, so add quotes (double-quote
  3444. # substitution turns \\\\ into \\, and sed turns \\ into \).
  3445. sed -n \
  3446. "s/'/'\\\\''/g;
  3447. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  3448. ;; #(
  3449. *)
  3450. # `set' quotes correctly as required by POSIX, so do not add quotes.
  3451. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  3452. ;;
  3453. esac |
  3454. sort
  3455. ) |
  3456. sed '
  3457. /^ac_cv_env_/b end
  3458. t clear
  3459. :clear
  3460. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  3461. t end
  3462. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  3463. :end' >>confcache
  3464. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  3465. if test -w "$cache_file"; then
  3466. test "x$cache_file" != "x/dev/null" &&
  3467. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  3468. $as_echo "$as_me: updating cache $cache_file" >&6;}
  3469. cat confcache >$cache_file
  3470. else
  3471. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  3472. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  3473. fi
  3474. fi
  3475. rm -f confcache
  3476. # Checks for programs
  3477. { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3478. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3479. set x ${MAKE-make}
  3480. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3481. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  3482. $as_echo_n "(cached) " >&6
  3483. else
  3484. cat >conftest.make <<\_ACEOF
  3485. SHELL = /bin/sh
  3486. all:
  3487. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3488. _ACEOF
  3489. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  3490. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3491. *@@@%%%=?*=@@@%%%*)
  3492. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3493. *)
  3494. eval ac_cv_prog_make_${ac_make}_set=no;;
  3495. esac
  3496. rm -f conftest.make
  3497. fi
  3498. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3499. { $as_echo "$as_me:$LINENO: result: yes" >&5
  3500. $as_echo "yes" >&6; }
  3501. SET_MAKE=
  3502. else
  3503. { $as_echo "$as_me:$LINENO: result: no" >&5
  3504. $as_echo "no" >&6; }
  3505. SET_MAKE="MAKE=${MAKE-make}"
  3506. fi
  3507. cat << 'EOF' > conftest.head
  3508. a
  3509. b
  3510. c
  3511. EOF
  3512. for ac_prog in 'head -1' 'head -n 1' 'sed 1q';
  3513. do
  3514. { $as_echo "$as_me:$LINENO: checking whether $ac_prog works" >&5
  3515. $as_echo_n "checking whether $ac_prog works... " >&6; }
  3516. if test "${ac_cv_prog_HEAD_1+set}" = set; then
  3517. $as_echo_n "(cached) " >&6
  3518. else
  3519. if test -n "$HEAD_1"
  3520. then
  3521. ac_cv_prog_HEAD_1="$HEAD_1" # Let the user override the test.
  3522. else
  3523. if test "`cat conftest.head | $ac_prog`" = "a";
  3524. then
  3525. { $as_echo "$as_me:$LINENO: result: yes" >&5
  3526. $as_echo "yes" >&6; }
  3527. ac_cv_prog_HEAD_1=$ac_prog
  3528. else
  3529. { $as_echo "$as_me:$LINENO: result: no" >&5
  3530. $as_echo "no" >&6; }
  3531. fi
  3532. fi
  3533. fi
  3534. test -n "$ac_cv_prog_HEAD_1" && break
  3535. done
  3536. if test "${ac_cv_prog_HEAD_1-x}" = "x"
  3537. then
  3538. cat << 'EOF' >&2
  3539. configure: error:
  3540. This system seems to lack a working 'head -1' or 'head -n 1' command.
  3541. A working 'head -1' (or equivalent) command is required to compile Eggdrop.
  3542. EOF
  3543. exit 1
  3544. fi
  3545. rm -f conftest.head
  3546. HEAD_1=$ac_cv_prog_HEAD_1
  3547. # awk is needed for Tcl library and header checks, and eggdrop version subst
  3548. for ac_prog in gawk mawk nawk awk
  3549. do
  3550. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3551. set dummy $ac_prog; ac_word=$2
  3552. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3553. $as_echo_n "checking for $ac_word... " >&6; }
  3554. if test "${ac_cv_prog_AWK+set}" = set; then
  3555. $as_echo_n "(cached) " >&6
  3556. else
  3557. if test -n "$AWK"; then
  3558. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3559. else
  3560. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3561. for as_dir in $PATH
  3562. do
  3563. IFS=$as_save_IFS
  3564. test -z "$as_dir" && as_dir=.
  3565. for ac_exec_ext in '' $ac_executable_extensions; do
  3566. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3567. ac_cv_prog_AWK="$ac_prog"
  3568. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3569. break 2
  3570. fi
  3571. done
  3572. done
  3573. IFS=$as_save_IFS
  3574. fi
  3575. fi
  3576. AWK=$ac_cv_prog_AWK
  3577. if test -n "$AWK"; then
  3578. { $as_echo "$as_me:$LINENO: result: $AWK" >&5
  3579. $as_echo "$AWK" >&6; }
  3580. else
  3581. { $as_echo "$as_me:$LINENO: result: no" >&5
  3582. $as_echo "no" >&6; }
  3583. fi
  3584. test -n "$AWK" && break
  3585. done
  3586. if test "${AWK-x}" = "x"
  3587. then
  3588. cat << 'EOF' >&2
  3589. configure: error:
  3590. This system seems to lack a working 'awk' command.
  3591. A working 'awk' command is required to compile Eggdrop.
  3592. EOF
  3593. exit 1
  3594. fi
  3595. # basename is needed for Tcl library and header checks
  3596. # Extract the first word of "basename", so it can be a program name with args.
  3597. set dummy basename; ac_word=$2
  3598. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3599. $as_echo_n "checking for $ac_word... " >&6; }
  3600. if test "${ac_cv_prog_BASENAME+set}" = set; then
  3601. $as_echo_n "(cached) " >&6
  3602. else
  3603. if test -n "$BASENAME"; then
  3604. ac_cv_prog_BASENAME="$BASENAME" # Let the user override the test.
  3605. else
  3606. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3607. for as_dir in $PATH
  3608. do
  3609. IFS=$as_save_IFS
  3610. test -z "$as_dir" && as_dir=.
  3611. for ac_exec_ext in '' $ac_executable_extensions; do
  3612. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3613. ac_cv_prog_BASENAME="basename"
  3614. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3615. break 2
  3616. fi
  3617. done
  3618. done
  3619. IFS=$as_save_IFS
  3620. fi
  3621. fi
  3622. BASENAME=$ac_cv_prog_BASENAME
  3623. if test -n "$BASENAME"; then
  3624. { $as_echo "$as_me:$LINENO: result: $BASENAME" >&5
  3625. $as_echo "$BASENAME" >&6; }
  3626. else
  3627. { $as_echo "$as_me:$LINENO: result: no" >&5
  3628. $as_echo "no" >&6; }
  3629. fi
  3630. if test "${BASENAME-x}" = "x"
  3631. then
  3632. cat << 'EOF' >&2
  3633. configure: error:
  3634. This system seems to lack a working 'basename' command.
  3635. A working 'basename' command is required to compile Eggdrop.
  3636. EOF
  3637. exit 1
  3638. fi
  3639. # Extract the first word of "objcopy", so it can be a program name with args.
  3640. set dummy objcopy; ac_word=$2
  3641. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3642. $as_echo_n "checking for $ac_word... " >&6; }
  3643. if test "${ac_cv_prog_OBJCOPY+set}" = set; then
  3644. $as_echo_n "(cached) " >&6
  3645. else
  3646. if test -n "$OBJCOPY"; then
  3647. ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
  3648. else
  3649. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3650. for as_dir in $PATH
  3651. do
  3652. IFS=$as_save_IFS
  3653. test -z "$as_dir" && as_dir=.
  3654. for ac_exec_ext in '' $ac_executable_extensions; do
  3655. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3656. ac_cv_prog_OBJCOPY="objcopy --remove-section=.note --remove-section=.comment"
  3657. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3658. break 2
  3659. fi
  3660. done
  3661. done
  3662. IFS=$as_save_IFS
  3663. test -z "$ac_cv_prog_OBJCOPY" && ac_cv_prog_OBJCOPY="touch"
  3664. fi
  3665. fi
  3666. OBJCOPY=$ac_cv_prog_OBJCOPY
  3667. if test -n "$OBJCOPY"; then
  3668. { $as_echo "$as_me:$LINENO: result: $OBJCOPY" >&5
  3669. $as_echo "$OBJCOPY" >&6; }
  3670. else
  3671. { $as_echo "$as_me:$LINENO: result: no" >&5
  3672. $as_echo "no" >&6; }
  3673. fi
  3674. # Extract the first word of "strip", so it can be a program name with args.
  3675. set dummy strip; ac_word=$2
  3676. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3677. $as_echo_n "checking for $ac_word... " >&6; }
  3678. if test "${ac_cv_prog_STRIP+set}" = set; then
  3679. $as_echo_n "(cached) " >&6
  3680. else
  3681. if test -n "$STRIP"; then
  3682. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  3683. else
  3684. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3685. for as_dir in $PATH
  3686. do
  3687. IFS=$as_save_IFS
  3688. test -z "$as_dir" && as_dir=.
  3689. for ac_exec_ext in '' $ac_executable_extensions; do
  3690. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3691. ac_cv_prog_STRIP="strip"
  3692. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3693. break 2
  3694. fi
  3695. done
  3696. done
  3697. IFS=$as_save_IFS
  3698. test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="touch"
  3699. fi
  3700. fi
  3701. STRIP=$ac_cv_prog_STRIP
  3702. if test -n "$STRIP"; then
  3703. { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
  3704. $as_echo "$STRIP" >&6; }
  3705. else
  3706. { $as_echo "$as_me:$LINENO: result: no" >&5
  3707. $as_echo "no" >&6; }
  3708. fi
  3709. # Extract the first word of "gdiff", so it can be a program name with args.
  3710. set dummy gdiff; ac_word=$2
  3711. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3712. $as_echo_n "checking for $ac_word... " >&6; }
  3713. if test "${ac_cv_prog_DIFF+set}" = set; then
  3714. $as_echo_n "(cached) " >&6
  3715. else
  3716. if test -n "$DIFF"; then
  3717. ac_cv_prog_DIFF="$DIFF" # Let the user override the test.
  3718. else
  3719. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3720. for as_dir in $PATH
  3721. do
  3722. IFS=$as_save_IFS
  3723. test -z "$as_dir" && as_dir=.
  3724. for ac_exec_ext in '' $ac_executable_extensions; do
  3725. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3726. ac_cv_prog_DIFF="gdiff"
  3727. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3728. break 2
  3729. fi
  3730. done
  3731. done
  3732. IFS=$as_save_IFS
  3733. test -z "$ac_cv_prog_DIFF" && ac_cv_prog_DIFF="diff"
  3734. fi
  3735. fi
  3736. DIFF=$ac_cv_prog_DIFF
  3737. if test -n "$DIFF"; then
  3738. { $as_echo "$as_me:$LINENO: result: $DIFF" >&5
  3739. $as_echo "$DIFF" >&6; }
  3740. else
  3741. { $as_echo "$as_me:$LINENO: result: no" >&5
  3742. $as_echo "no" >&6; }
  3743. fi
  3744. # Extract the first word of "uname", so it can be a program name with args.
  3745. set dummy uname; ac_word=$2
  3746. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3747. $as_echo_n "checking for $ac_word... " >&6; }
  3748. if test "${ac_cv_prog_UNAME+set}" = set; then
  3749. $as_echo_n "(cached) " >&6
  3750. else
  3751. if test -n "$UNAME"; then
  3752. ac_cv_prog_UNAME="$UNAME" # Let the user override the test.
  3753. else
  3754. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3755. for as_dir in $PATH
  3756. do
  3757. IFS=$as_save_IFS
  3758. test -z "$as_dir" && as_dir=.
  3759. for ac_exec_ext in '' $ac_executable_extensions; do
  3760. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3761. ac_cv_prog_UNAME="uname"
  3762. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3763. break 2
  3764. fi
  3765. done
  3766. done
  3767. IFS=$as_save_IFS
  3768. fi
  3769. fi
  3770. UNAME=$ac_cv_prog_UNAME
  3771. if test -n "$UNAME"; then
  3772. { $as_echo "$as_me:$LINENO: result: $UNAME" >&5
  3773. $as_echo "$UNAME" >&6; }
  3774. else
  3775. { $as_echo "$as_me:$LINENO: result: no" >&5
  3776. $as_echo "no" >&6; }
  3777. fi
  3778. # Extract the first word of "ccache", so it can be a program name with args.
  3779. set dummy ccache; ac_word=$2
  3780. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3781. $as_echo_n "checking for $ac_word... " >&6; }
  3782. if test "${ac_cv_prog_CCACHE+set}" = set; then
  3783. $as_echo_n "(cached) " >&6
  3784. else
  3785. if test -n "$CCACHE"; then
  3786. ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
  3787. else
  3788. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3789. for as_dir in $PATH
  3790. do
  3791. IFS=$as_save_IFS
  3792. test -z "$as_dir" && as_dir=.
  3793. for ac_exec_ext in '' $ac_executable_extensions; do
  3794. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3795. ac_cv_prog_CCACHE="ccache"
  3796. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3797. break 2
  3798. fi
  3799. done
  3800. done
  3801. IFS=$as_save_IFS
  3802. fi
  3803. fi
  3804. CCACHE=$ac_cv_prog_CCACHE
  3805. if test -n "$CCACHE"; then
  3806. { $as_echo "$as_me:$LINENO: result: $CCACHE" >&5
  3807. $as_echo "$CCACHE" >&6; }
  3808. else
  3809. { $as_echo "$as_me:$LINENO: result: no" >&5
  3810. $as_echo "no" >&6; }
  3811. fi
  3812. # Extract the first word of "distcc", so it can be a program name with args.
  3813. set dummy distcc; ac_word=$2
  3814. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3815. $as_echo_n "checking for $ac_word... " >&6; }
  3816. if test "${ac_cv_prog_DISTCC+set}" = set; then
  3817. $as_echo_n "(cached) " >&6
  3818. else
  3819. if test -n "$DISTCC"; then
  3820. ac_cv_prog_DISTCC="$DISTCC" # Let the user override the test.
  3821. else
  3822. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3823. for as_dir in $PATH
  3824. do
  3825. IFS=$as_save_IFS
  3826. test -z "$as_dir" && as_dir=.
  3827. for ac_exec_ext in '' $ac_executable_extensions; do
  3828. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3829. ac_cv_prog_DISTCC="distcc"
  3830. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3831. break 2
  3832. fi
  3833. done
  3834. done
  3835. IFS=$as_save_IFS
  3836. fi
  3837. fi
  3838. DISTCC=$ac_cv_prog_DISTCC
  3839. if test -n "$DISTCC"; then
  3840. { $as_echo "$as_me:$LINENO: result: $DISTCC" >&5
  3841. $as_echo "$DISTCC" >&6; }
  3842. else
  3843. { $as_echo "$as_me:$LINENO: result: no" >&5
  3844. $as_echo "no" >&6; }
  3845. fi
  3846. # Test the os and set the module linking settings
  3847. EGG_CYGWIN=no
  3848. { $as_echo "$as_me:$LINENO: checking system type" >&5
  3849. $as_echo_n "checking system type... " >&6; }
  3850. if test "${egg_cv_var_system_type+set}" = set; then
  3851. $as_echo_n "(cached) " >&6
  3852. else
  3853. egg_cv_var_system_type=`$UNAME -s`
  3854. fi
  3855. { $as_echo "$as_me:$LINENO: result: $egg_cv_var_system_type" >&5
  3856. $as_echo "$egg_cv_var_system_type" >&6; }
  3857. { $as_echo "$as_me:$LINENO: checking system release" >&5
  3858. $as_echo_n "checking system release... " >&6; }
  3859. if test "${egg_cv_var_system_release+set}" = set; then
  3860. $as_echo_n "(cached) " >&6
  3861. else
  3862. egg_cv_var_system_release=`$UNAME -r`
  3863. fi
  3864. { $as_echo "$as_me:$LINENO: result: $egg_cv_var_system_release" >&5
  3865. $as_echo "$egg_cv_var_system_release" >&6; }
  3866. { $as_echo "$as_me:$LINENO: checking system machine" >&5
  3867. $as_echo_n "checking system machine... " >&6; }
  3868. if test "${egg_cv_var_system_machine+set}" = set; then
  3869. $as_echo_n "(cached) " >&6
  3870. else
  3871. egg_cv_var_system_machine=`$UNAME -m`
  3872. fi
  3873. { $as_echo "$as_me:$LINENO: result: $egg_cv_var_system_machine" >&5
  3874. $as_echo "$egg_cv_var_system_machine" >&6; }
  3875. BUILDOS="$egg_cv_var_system_type"
  3876. BUILDARCH="$egg_cv_var_system_machine"
  3877. case "$egg_cv_var_system_machine" in
  3878. i*)
  3879. CXX="$CXX -march=i486"
  3880. BUILDARCH="i486"
  3881. ;;
  3882. *)
  3883. ;;
  3884. esac
  3885. case "$egg_cv_var_system_type" in
  3886. BSD/OS)
  3887. ;;
  3888. CYGWI*)
  3889. { $as_echo "$as_me:$LINENO: checking how to access the Win32 API" >&5
  3890. $as_echo_n "checking how to access the Win32 API... " >&6; }
  3891. WIN32FLAGS=
  3892. cat >conftest.$ac_ext <<_ACEOF
  3893. /* confdefs.h. */
  3894. _ACEOF
  3895. cat confdefs.h >>conftest.$ac_ext
  3896. cat >>conftest.$ac_ext <<_ACEOF
  3897. /* end confdefs.h. */
  3898. int
  3899. main ()
  3900. {
  3901. #ifndef WIN32
  3902. # ifndef _WIN32
  3903. # error WIN32 or _WIN32 not defined
  3904. # endif
  3905. #endif
  3906. ;
  3907. return 0;
  3908. }
  3909. _ACEOF
  3910. rm -f conftest.$ac_objext
  3911. if { (ac_try="$ac_compile"
  3912. case "(($ac_try" in
  3913. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3914. *) ac_try_echo=$ac_try;;
  3915. esac
  3916. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3917. $as_echo "$ac_try_echo") >&5
  3918. (eval "$ac_compile") 2>conftest.er1
  3919. ac_status=$?
  3920. grep -v '^ *+' conftest.er1 >conftest.err
  3921. rm -f conftest.er1
  3922. cat conftest.err >&5
  3923. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3924. (exit $ac_status); } && {
  3925. test -z "$ac_cxx_werror_flag" ||
  3926. test ! -s conftest.err
  3927. } && test -s conftest.$ac_objext; then
  3928. { $as_echo "$as_me:$LINENO: result: present by default" >&5
  3929. $as_echo "present by default" >&6; }
  3930. else
  3931. $as_echo "$as_me: failed program was:" >&5
  3932. sed 's/^/| /' conftest.$ac_ext >&5
  3933. ac_compile_save="$ac_compile"
  3934. save_CXX="$CXX"
  3935. ac_compile="$ac_compile -mwin32"
  3936. CXX="$CXX -mwin32"
  3937. cat >conftest.$ac_ext <<_ACEOF
  3938. /* confdefs.h. */
  3939. _ACEOF
  3940. cat confdefs.h >>conftest.$ac_ext
  3941. cat >>conftest.$ac_ext <<_ACEOF
  3942. /* end confdefs.h. */
  3943. int
  3944. main ()
  3945. {
  3946. #ifndef WIN32
  3947. # ifndef _WIN32
  3948. # error WIN32 or _WIN32 not defined
  3949. # endif
  3950. #endif
  3951. ;
  3952. return 0;
  3953. }
  3954. _ACEOF
  3955. rm -f conftest.$ac_objext
  3956. if { (ac_try="$ac_compile"
  3957. case "(($ac_try" in
  3958. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3959. *) ac_try_echo=$ac_try;;
  3960. esac
  3961. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3962. $as_echo "$ac_try_echo") >&5
  3963. (eval "$ac_compile") 2>conftest.er1
  3964. ac_status=$?
  3965. grep -v '^ *+' conftest.er1 >conftest.err
  3966. rm -f conftest.er1
  3967. cat conftest.err >&5
  3968. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3969. (exit $ac_status); } && {
  3970. test -z "$ac_cxx_werror_flag" ||
  3971. test ! -s conftest.err
  3972. } && test -s conftest.$ac_objext; then
  3973. { $as_echo "$as_me:$LINENO: result: found via -mwin32" >&5
  3974. $as_echo "found via -mwin32" >&6; }
  3975. ac_compile="$ac_compile_save"
  3976. CXX="$save_CXX"
  3977. WIN32FLAGS="-mwin32"
  3978. else
  3979. $as_echo "$as_me: failed program was:" >&5
  3980. sed 's/^/| /' conftest.$ac_ext >&5
  3981. ac_compile="$ac_compile_save"
  3982. CXX="$save_CXX"
  3983. { $as_echo "$as_me:$LINENO: result: not found" >&5
  3984. $as_echo "not found" >&6; }
  3985. fi
  3986. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3987. fi
  3988. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3989. CXX="$CXX $WIN32FLAGS"
  3990. EGG_CYGWIN="yes"
  3991. if test $EGG_CYGWIN = "yes"; then
  3992. { $as_echo "$as_me:$LINENO: checking for /usr/lib/binmode.o" >&5
  3993. $as_echo_n "checking for /usr/lib/binmode.o... " >&6; }
  3994. if test -r /usr/lib/binmode.o; then
  3995. { $as_echo "$as_me:$LINENO: result: yes" >&5
  3996. $as_echo "yes" >&6; }
  3997. LIBS="$LIBS /usr/lib/binmode.o"
  3998. else
  3999. { $as_echo "$as_me:$LINENO: result: no" >&5
  4000. $as_echo "no" >&6; }
  4001. { $as_echo "$as_me:$LINENO: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&5
  4002. $as_echo "$as_me: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&2;}
  4003. fi
  4004. fi
  4005. cat >>confdefs.h <<\_ACEOF
  4006. #define CYGWIN_HACKS 1
  4007. _ACEOF
  4008. cat >>confdefs.h <<\_ACEOF
  4009. #define WIN32_LEAN_AND_MEAN 1
  4010. _ACEOF
  4011. ;;
  4012. IRIX)
  4013. ;;
  4014. HP-UX)
  4015. cat >>confdefs.h <<\_ACEOF
  4016. #define MD32_XARRAY 1
  4017. _ACEOF
  4018. ;;
  4019. Ultrix)
  4020. SHELL=/bin/sh5
  4021. ;;
  4022. SINIX*)
  4023. ;;
  4024. BeOS)
  4025. ;;
  4026. Linux)
  4027. ;;
  4028. Lynx)
  4029. ;;
  4030. QNX)
  4031. ;;
  4032. OSF1)
  4033. case "`echo $egg_cv_var_system_release | cut -d . -f 1`" in
  4034. V*)
  4035. if test "$AWK" = "gawk"
  4036. then
  4037. AWK=awk
  4038. fi
  4039. ;;
  4040. 1.0|1.1|1.2)
  4041. cat >>confdefs.h <<\_ACEOF
  4042. #define OSF1_HACKS 1
  4043. _ACEOF
  4044. ;;
  4045. 1.*)
  4046. cat >>confdefs.h <<\_ACEOF
  4047. #define OSF1_HACKS 1
  4048. _ACEOF
  4049. ;;
  4050. *)
  4051. ;;
  4052. esac
  4053. cat >>confdefs.h <<\_ACEOF
  4054. #define STOP_UAC 1
  4055. _ACEOF
  4056. cat >>confdefs.h <<\_ACEOF
  4057. #define BROKEN_SNPRINTF 1
  4058. _ACEOF
  4059. ;;
  4060. SunOS)
  4061. SUNOS="yes"
  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. { $as_echo "$as_me:$LINENO: result: If you get dynamic modules to work, be sure to let the devel team know HOW :)" >&5
  4091. $as_echo "If you get dynamic modules to work, be sure to let the devel team know HOW :)" >&6; }
  4092. fi
  4093. fi
  4094. ;;
  4095. esac
  4096. # Check for IPv6 support
  4097. #EGG_IPV6_SUPPORTED
  4098. { $as_echo "$as_me:$LINENO: checking whether or not you disabled IPv6 support" >&5
  4099. $as_echo_n "checking whether or not you disabled IPv6 support... " >&6; }
  4100. # Check whether --enable-ipv6 was given.
  4101. if test "${enable_ipv6+set}" = set; then
  4102. enableval=$enable_ipv6; ac_cv_dipv6="yes"
  4103. { $as_echo "$as_me:$LINENO: result: yes" >&5
  4104. $as_echo "yes" >&6; }
  4105. else
  4106. ac_cv_dipv6="no"
  4107. if test "$egg_cv_ipv6_supported" = "no"; then
  4108. ac_cv_dipv6="no"
  4109. fi
  4110. { $as_echo "$as_me:$LINENO: result: $ac_cv_dipv6" >&5
  4111. $as_echo "$ac_cv_dipv6" >&6; }
  4112. fi
  4113. if ! test "$EGG_CYGWIN" = "yes"; then
  4114. if test "$ac_cv_dipv6" = "no"; then
  4115. cat >>confdefs.h <<\_ACEOF
  4116. #define USE_IPV6 1
  4117. _ACEOF
  4118. fi
  4119. fi
  4120. { $as_echo "$as_me:$LINENO: checking for socklen_t" >&5
  4121. $as_echo_n "checking for socklen_t... " >&6; }
  4122. if test "${egg_cv_socklen_t+set}" = set; then
  4123. $as_echo_n "(cached) " >&6
  4124. else
  4125. if test "$cross_compiling" = yes; then
  4126. egg_cv_socklen_t=no
  4127. else
  4128. cat >conftest.$ac_ext <<_ACEOF
  4129. /* confdefs.h. */
  4130. _ACEOF
  4131. cat confdefs.h >>conftest.$ac_ext
  4132. cat >>conftest.$ac_ext <<_ACEOF
  4133. /* end confdefs.h. */
  4134. #include <unistd.h>
  4135. #include <sys/types.h>
  4136. #include <sys/socket.h>
  4137. #include <netinet/in.h>
  4138. #include <arpa/inet.h>
  4139. int main()
  4140. {
  4141. socklen_t test = sizeof(int);
  4142. return 0;
  4143. }
  4144. _ACEOF
  4145. rm -f conftest$ac_exeext
  4146. if { (ac_try="$ac_link"
  4147. case "(($ac_try" in
  4148. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4149. *) ac_try_echo=$ac_try;;
  4150. esac
  4151. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4152. $as_echo "$ac_try_echo") >&5
  4153. (eval "$ac_link") 2>&5
  4154. ac_status=$?
  4155. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4156. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4157. { (case "(($ac_try" in
  4158. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4159. *) ac_try_echo=$ac_try;;
  4160. esac
  4161. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4162. $as_echo "$ac_try_echo") >&5
  4163. (eval "$ac_try") 2>&5
  4164. ac_status=$?
  4165. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4166. (exit $ac_status); }; }; then
  4167. egg_cv_socklen_t=yes
  4168. else
  4169. $as_echo "$as_me: program exited with status $ac_status" >&5
  4170. $as_echo "$as_me: failed program was:" >&5
  4171. sed 's/^/| /' conftest.$ac_ext >&5
  4172. ( exit $ac_status )
  4173. egg_cv_socklen_t=no
  4174. fi
  4175. rm -rf conftest.dSYM
  4176. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4177. fi
  4178. fi
  4179. if test "$egg_cv_socklen_t" = "yes"; then
  4180. cat >>confdefs.h <<\_ACEOF
  4181. #define HAVE_SOCKLEN_T 1
  4182. _ACEOF
  4183. { $as_echo "$as_me:$LINENO: result: yes" >&5
  4184. $as_echo "yes" >&6; }
  4185. else
  4186. { $as_echo "$as_me:$LINENO: result: no" >&5
  4187. $as_echo "no" >&6; }
  4188. fi
  4189. # Check for inconsistent random() functions
  4190. { $as_echo "$as_me:$LINENO: checking for random limit" >&5
  4191. $as_echo_n "checking for random limit... " >&6; }
  4192. case "$egg_cv_var_system_type" in
  4193. SunOS) RMAX=0x7FFFFFFF
  4194. ;;
  4195. *) RMAX=RAND_MAX
  4196. ;;
  4197. esac
  4198. { $as_echo "$as_me:$LINENO: result: $RMAX" >&5
  4199. $as_echo "$RMAX" >&6; }
  4200. cat >>confdefs.h <<_ACEOF
  4201. #define RANDOM_MAX $RMAX
  4202. _ACEOF
  4203. # Create static binaries
  4204. if test -z "$no_static"
  4205. then
  4206. if test -n "$GXX"
  4207. then
  4208. { $as_echo "$as_me:$LINENO: checking whether the compiler understands -static" >&5
  4209. $as_echo_n "checking whether the compiler understands -static... " >&6; }
  4210. if test "${egg_cv_var_ccstatic+set}" = set; then
  4211. $as_echo_n "(cached) " >&6
  4212. else
  4213. ac_old_CXX="$CXX"
  4214. CXX="$CXX -static"
  4215. cat >conftest.$ac_ext <<_ACEOF
  4216. /* confdefs.h. */
  4217. _ACEOF
  4218. cat confdefs.h >>conftest.$ac_ext
  4219. cat >>conftest.$ac_ext <<_ACEOF
  4220. /* end confdefs.h. */
  4221. int
  4222. main ()
  4223. {
  4224. ;
  4225. return 0;
  4226. }
  4227. _ACEOF
  4228. rm -f conftest.$ac_objext
  4229. if { (ac_try="$ac_compile"
  4230. case "(($ac_try" in
  4231. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4232. *) ac_try_echo=$ac_try;;
  4233. esac
  4234. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4235. $as_echo "$ac_try_echo") >&5
  4236. (eval "$ac_compile") 2>conftest.er1
  4237. ac_status=$?
  4238. grep -v '^ *+' conftest.er1 >conftest.err
  4239. rm -f conftest.er1
  4240. cat conftest.err >&5
  4241. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4242. (exit $ac_status); } && {
  4243. test -z "$ac_cxx_werror_flag" ||
  4244. test ! -s conftest.err
  4245. } && test -s conftest.$ac_objext; then
  4246. egg_cv_var_ccstatic="yes"
  4247. else
  4248. $as_echo "$as_me: failed program was:" >&5
  4249. sed 's/^/| /' conftest.$ac_ext >&5
  4250. egg_cv_var_ccstatic="no"
  4251. fi
  4252. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4253. CXX="$ac_old_CXX"
  4254. fi
  4255. { $as_echo "$as_me:$LINENO: result: $egg_cv_var_ccstatic" >&5
  4256. $as_echo "$egg_cv_var_ccstatic" >&6; }
  4257. if test "$egg_cv_var_ccstatic" = "yes"
  4258. then
  4259. CCDEBUG="$CXX"
  4260. # CXX="$CXX -static"
  4261. else
  4262. cat << 'EOF' >&2
  4263. configure: error:
  4264. Your C compiler does not support -static.
  4265. This compile flag is required for the botpack.
  4266. EOF
  4267. exit 1
  4268. fi
  4269. fi
  4270. fi
  4271. #checkpoint
  4272. cat >confcache <<\_ACEOF
  4273. # This file is a shell script that caches the results of configure
  4274. # tests run on this system so they can be shared between configure
  4275. # scripts and configure runs, see configure's option --config-cache.
  4276. # It is not useful on other systems. If it contains results you don't
  4277. # want to keep, you may remove or edit it.
  4278. #
  4279. # config.status only pays attention to the cache file if you give it
  4280. # the --recheck option to rerun configure.
  4281. #
  4282. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4283. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4284. # following values.
  4285. _ACEOF
  4286. # The following way of writing the cache mishandles newlines in values,
  4287. # but we know of no workaround that is simple, portable, and efficient.
  4288. # So, we kill variables containing newlines.
  4289. # Ultrix sh set writes to stderr and can't be redirected directly,
  4290. # and sets the high bit in the cache file unless we assign to the vars.
  4291. (
  4292. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  4293. eval ac_val=\$$ac_var
  4294. case $ac_val in #(
  4295. *${as_nl}*)
  4296. case $ac_var in #(
  4297. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  4298. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  4299. esac
  4300. case $ac_var in #(
  4301. _ | IFS | as_nl) ;; #(
  4302. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  4303. *) $as_unset $ac_var ;;
  4304. esac ;;
  4305. esac
  4306. done
  4307. (set) 2>&1 |
  4308. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  4309. *${as_nl}ac_space=\ *)
  4310. # `set' does not quote correctly, so add quotes (double-quote
  4311. # substitution turns \\\\ into \\, and sed turns \\ into \).
  4312. sed -n \
  4313. "s/'/'\\\\''/g;
  4314. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4315. ;; #(
  4316. *)
  4317. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4318. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  4319. ;;
  4320. esac |
  4321. sort
  4322. ) |
  4323. sed '
  4324. /^ac_cv_env_/b end
  4325. t clear
  4326. :clear
  4327. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4328. t end
  4329. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4330. :end' >>confcache
  4331. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  4332. if test -w "$cache_file"; then
  4333. test "x$cache_file" != "x/dev/null" &&
  4334. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  4335. $as_echo "$as_me: updating cache $cache_file" >&6;}
  4336. cat confcache >$cache_file
  4337. else
  4338. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  4339. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  4340. fi
  4341. fi
  4342. rm -f confcache
  4343. # Checks for system libraries
  4344. { $as_echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
  4345. $as_echo_n "checking for socket in -lsocket... " >&6; }
  4346. if test "${ac_cv_lib_socket_socket+set}" = set; then
  4347. $as_echo_n "(cached) " >&6
  4348. else
  4349. ac_check_lib_save_LIBS=$LIBS
  4350. LIBS="-lsocket $LIBS"
  4351. cat >conftest.$ac_ext <<_ACEOF
  4352. /* confdefs.h. */
  4353. _ACEOF
  4354. cat confdefs.h >>conftest.$ac_ext
  4355. cat >>conftest.$ac_ext <<_ACEOF
  4356. /* end confdefs.h. */
  4357. /* Override any GCC internal prototype to avoid an error.
  4358. Use char because int might match the return type of a GCC
  4359. builtin and then its argument prototype would still apply. */
  4360. #ifdef __cplusplus
  4361. extern "C"
  4362. #endif
  4363. char socket ();
  4364. int
  4365. main ()
  4366. {
  4367. return socket ();
  4368. ;
  4369. return 0;
  4370. }
  4371. _ACEOF
  4372. rm -f conftest.$ac_objext conftest$ac_exeext
  4373. if { (ac_try="$ac_link"
  4374. case "(($ac_try" in
  4375. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4376. *) ac_try_echo=$ac_try;;
  4377. esac
  4378. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4379. $as_echo "$ac_try_echo") >&5
  4380. (eval "$ac_link") 2>conftest.er1
  4381. ac_status=$?
  4382. grep -v '^ *+' conftest.er1 >conftest.err
  4383. rm -f conftest.er1
  4384. cat conftest.err >&5
  4385. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4386. (exit $ac_status); } && {
  4387. test -z "$ac_cxx_werror_flag" ||
  4388. test ! -s conftest.err
  4389. } && test -s conftest$ac_exeext && {
  4390. test "$cross_compiling" = yes ||
  4391. $as_test_x conftest$ac_exeext
  4392. }; then
  4393. ac_cv_lib_socket_socket=yes
  4394. else
  4395. $as_echo "$as_me: failed program was:" >&5
  4396. sed 's/^/| /' conftest.$ac_ext >&5
  4397. ac_cv_lib_socket_socket=no
  4398. fi
  4399. rm -rf conftest.dSYM
  4400. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4401. conftest$ac_exeext conftest.$ac_ext
  4402. LIBS=$ac_check_lib_save_LIBS
  4403. fi
  4404. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
  4405. $as_echo "$ac_cv_lib_socket_socket" >&6; }
  4406. if test "x$ac_cv_lib_socket_socket" = x""yes; then
  4407. cat >>confdefs.h <<_ACEOF
  4408. #define HAVE_LIBSOCKET 1
  4409. _ACEOF
  4410. LIBS="-lsocket $LIBS"
  4411. fi
  4412. # AC_CHECK_LIB(nsl, connect)
  4413. # AC_CHECK_LIB(dl, dlopen)
  4414. # AC_CHECK_LIB(nsl, gethostbyname)
  4415. # AC_CHECK_LIB(dns, gethostbyname)
  4416. # AC_CHECK_LIB(z, gzopen, ZLIB="-lz")
  4417. # This is needed for Tcl libraries compiled with thread support
  4418. # AC_CHECK_LIB(pthread, pthread_mutex_init, [dnl
  4419. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4420. # ac_cv_lib_pthread="-lpthread"], [dnl
  4421. # AC_CHECK_LIB(pthread, __pthread_mutex_init, [dnl
  4422. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4423. # ac_cv_lib_pthread="-lpthread"], [dnl
  4424. # AC_CHECK_LIB(pthreads, pthread_mutex_init, [dnl
  4425. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4426. # ac_cv_lib_pthread="-lpthreads"], [dnl
  4427. # AC_CHECK_FUNC(pthread_mutex_init, [dnl
  4428. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4429. # ac_cv_lib_pthread=""],
  4430. # ac_cv_lib_pthread_pthread_mutex_init=no)])])])
  4431. if test "$SUNOS" = "yes"; then
  4432. # For suns without yp
  4433. { $as_echo "$as_me:$LINENO: checking for main in -ldl" >&5
  4434. $as_echo_n "checking for main in -ldl... " >&6; }
  4435. if test "${ac_cv_lib_dl_main+set}" = set; then
  4436. $as_echo_n "(cached) " >&6
  4437. else
  4438. ac_check_lib_save_LIBS=$LIBS
  4439. LIBS="-ldl $LIBS"
  4440. cat >conftest.$ac_ext <<_ACEOF
  4441. /* confdefs.h. */
  4442. _ACEOF
  4443. cat confdefs.h >>conftest.$ac_ext
  4444. cat >>conftest.$ac_ext <<_ACEOF
  4445. /* end confdefs.h. */
  4446. int
  4447. main ()
  4448. {
  4449. return main ();
  4450. ;
  4451. return 0;
  4452. }
  4453. _ACEOF
  4454. rm -f conftest.$ac_objext conftest$ac_exeext
  4455. if { (ac_try="$ac_link"
  4456. case "(($ac_try" in
  4457. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4458. *) ac_try_echo=$ac_try;;
  4459. esac
  4460. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4461. $as_echo "$ac_try_echo") >&5
  4462. (eval "$ac_link") 2>conftest.er1
  4463. ac_status=$?
  4464. grep -v '^ *+' conftest.er1 >conftest.err
  4465. rm -f conftest.er1
  4466. cat conftest.err >&5
  4467. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4468. (exit $ac_status); } && {
  4469. test -z "$ac_cxx_werror_flag" ||
  4470. test ! -s conftest.err
  4471. } && test -s conftest$ac_exeext && {
  4472. test "$cross_compiling" = yes ||
  4473. $as_test_x conftest$ac_exeext
  4474. }; then
  4475. ac_cv_lib_dl_main=yes
  4476. else
  4477. $as_echo "$as_me: failed program was:" >&5
  4478. sed 's/^/| /' conftest.$ac_ext >&5
  4479. ac_cv_lib_dl_main=no
  4480. fi
  4481. rm -rf conftest.dSYM
  4482. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4483. conftest$ac_exeext conftest.$ac_ext
  4484. LIBS=$ac_check_lib_save_LIBS
  4485. fi
  4486. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
  4487. $as_echo "$ac_cv_lib_dl_main" >&6; }
  4488. if test "x$ac_cv_lib_dl_main" = x""yes; then
  4489. cat >>confdefs.h <<_ACEOF
  4490. #define HAVE_LIBDL 1
  4491. _ACEOF
  4492. LIBS="-ldl $LIBS"
  4493. fi
  4494. { $as_echo "$as_me:$LINENO: checking for main in -lsocket" >&5
  4495. $as_echo_n "checking for main in -lsocket... " >&6; }
  4496. if test "${ac_cv_lib_socket_main+set}" = set; then
  4497. $as_echo_n "(cached) " >&6
  4498. else
  4499. ac_check_lib_save_LIBS=$LIBS
  4500. LIBS="-lsocket $LIBS"
  4501. cat >conftest.$ac_ext <<_ACEOF
  4502. /* confdefs.h. */
  4503. _ACEOF
  4504. cat confdefs.h >>conftest.$ac_ext
  4505. cat >>conftest.$ac_ext <<_ACEOF
  4506. /* end confdefs.h. */
  4507. int
  4508. main ()
  4509. {
  4510. return main ();
  4511. ;
  4512. return 0;
  4513. }
  4514. _ACEOF
  4515. rm -f conftest.$ac_objext conftest$ac_exeext
  4516. if { (ac_try="$ac_link"
  4517. case "(($ac_try" in
  4518. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4519. *) ac_try_echo=$ac_try;;
  4520. esac
  4521. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4522. $as_echo "$ac_try_echo") >&5
  4523. (eval "$ac_link") 2>conftest.er1
  4524. ac_status=$?
  4525. grep -v '^ *+' conftest.er1 >conftest.err
  4526. rm -f conftest.er1
  4527. cat conftest.err >&5
  4528. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4529. (exit $ac_status); } && {
  4530. test -z "$ac_cxx_werror_flag" ||
  4531. test ! -s conftest.err
  4532. } && test -s conftest$ac_exeext && {
  4533. test "$cross_compiling" = yes ||
  4534. $as_test_x conftest$ac_exeext
  4535. }; then
  4536. ac_cv_lib_socket_main=yes
  4537. else
  4538. $as_echo "$as_me: failed program was:" >&5
  4539. sed 's/^/| /' conftest.$ac_ext >&5
  4540. ac_cv_lib_socket_main=no
  4541. fi
  4542. rm -rf conftest.dSYM
  4543. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4544. conftest$ac_exeext conftest.$ac_ext
  4545. LIBS=$ac_check_lib_save_LIBS
  4546. fi
  4547. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
  4548. $as_echo "$ac_cv_lib_socket_main" >&6; }
  4549. if test "x$ac_cv_lib_socket_main" = x""yes; then
  4550. cat >>confdefs.h <<_ACEOF
  4551. #define HAVE_LIBSOCKET 1
  4552. _ACEOF
  4553. LIBS="-lsocket $LIBS"
  4554. fi
  4555. { $as_echo "$as_me:$LINENO: checking for main in -lnsl" >&5
  4556. $as_echo_n "checking for main in -lnsl... " >&6; }
  4557. if test "${ac_cv_lib_nsl_main+set}" = set; then
  4558. $as_echo_n "(cached) " >&6
  4559. else
  4560. ac_check_lib_save_LIBS=$LIBS
  4561. LIBS="-lnsl $LIBS"
  4562. cat >conftest.$ac_ext <<_ACEOF
  4563. /* confdefs.h. */
  4564. _ACEOF
  4565. cat confdefs.h >>conftest.$ac_ext
  4566. cat >>conftest.$ac_ext <<_ACEOF
  4567. /* end confdefs.h. */
  4568. int
  4569. main ()
  4570. {
  4571. return main ();
  4572. ;
  4573. return 0;
  4574. }
  4575. _ACEOF
  4576. rm -f conftest.$ac_objext conftest$ac_exeext
  4577. if { (ac_try="$ac_link"
  4578. case "(($ac_try" in
  4579. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4580. *) ac_try_echo=$ac_try;;
  4581. esac
  4582. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4583. $as_echo "$ac_try_echo") >&5
  4584. (eval "$ac_link") 2>conftest.er1
  4585. ac_status=$?
  4586. grep -v '^ *+' conftest.er1 >conftest.err
  4587. rm -f conftest.er1
  4588. cat conftest.err >&5
  4589. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4590. (exit $ac_status); } && {
  4591. test -z "$ac_cxx_werror_flag" ||
  4592. test ! -s conftest.err
  4593. } && test -s conftest$ac_exeext && {
  4594. test "$cross_compiling" = yes ||
  4595. $as_test_x conftest$ac_exeext
  4596. }; then
  4597. ac_cv_lib_nsl_main=yes
  4598. else
  4599. $as_echo "$as_me: failed program was:" >&5
  4600. sed 's/^/| /' conftest.$ac_ext >&5
  4601. ac_cv_lib_nsl_main=no
  4602. fi
  4603. rm -rf conftest.dSYM
  4604. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4605. conftest$ac_exeext conftest.$ac_ext
  4606. LIBS=$ac_check_lib_save_LIBS
  4607. fi
  4608. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
  4609. $as_echo "$ac_cv_lib_nsl_main" >&6; }
  4610. if test "x$ac_cv_lib_nsl_main" = x""yes; then
  4611. cat >>confdefs.h <<_ACEOF
  4612. #define HAVE_LIBNSL 1
  4613. _ACEOF
  4614. LIBS="-lnsl $LIBS"
  4615. fi
  4616. fi
  4617. # Checks for header files
  4618. ac_header_dirent=no
  4619. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  4620. as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  4621. { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  4622. $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
  4623. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4624. $as_echo_n "(cached) " >&6
  4625. else
  4626. cat >conftest.$ac_ext <<_ACEOF
  4627. /* confdefs.h. */
  4628. _ACEOF
  4629. cat confdefs.h >>conftest.$ac_ext
  4630. cat >>conftest.$ac_ext <<_ACEOF
  4631. /* end confdefs.h. */
  4632. #include <sys/types.h>
  4633. #include <$ac_hdr>
  4634. int
  4635. main ()
  4636. {
  4637. if ((DIR *) 0)
  4638. return 0;
  4639. ;
  4640. return 0;
  4641. }
  4642. _ACEOF
  4643. rm -f conftest.$ac_objext
  4644. if { (ac_try="$ac_compile"
  4645. case "(($ac_try" in
  4646. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4647. *) ac_try_echo=$ac_try;;
  4648. esac
  4649. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4650. $as_echo "$ac_try_echo") >&5
  4651. (eval "$ac_compile") 2>conftest.er1
  4652. ac_status=$?
  4653. grep -v '^ *+' conftest.er1 >conftest.err
  4654. rm -f conftest.er1
  4655. cat conftest.err >&5
  4656. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4657. (exit $ac_status); } && {
  4658. test -z "$ac_cxx_werror_flag" ||
  4659. test ! -s conftest.err
  4660. } && test -s conftest.$ac_objext; then
  4661. eval "$as_ac_Header=yes"
  4662. else
  4663. $as_echo "$as_me: failed program was:" >&5
  4664. sed 's/^/| /' conftest.$ac_ext >&5
  4665. eval "$as_ac_Header=no"
  4666. fi
  4667. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4668. fi
  4669. ac_res=`eval 'as_val=${'$as_ac_Header'}
  4670. $as_echo "$as_val"'`
  4671. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  4672. $as_echo "$ac_res" >&6; }
  4673. as_val=`eval 'as_val=${'$as_ac_Header'}
  4674. $as_echo "$as_val"'`
  4675. if test "x$as_val" = x""yes; then
  4676. cat >>confdefs.h <<_ACEOF
  4677. #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  4678. _ACEOF
  4679. ac_header_dirent=$ac_hdr; break
  4680. fi
  4681. done
  4682. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  4683. if test $ac_header_dirent = dirent.h; then
  4684. { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
  4685. $as_echo_n "checking for library containing opendir... " >&6; }
  4686. if test "${ac_cv_search_opendir+set}" = set; then
  4687. $as_echo_n "(cached) " >&6
  4688. else
  4689. ac_func_search_save_LIBS=$LIBS
  4690. cat >conftest.$ac_ext <<_ACEOF
  4691. /* confdefs.h. */
  4692. _ACEOF
  4693. cat confdefs.h >>conftest.$ac_ext
  4694. cat >>conftest.$ac_ext <<_ACEOF
  4695. /* end confdefs.h. */
  4696. /* Override any GCC internal prototype to avoid an error.
  4697. Use char because int might match the return type of a GCC
  4698. builtin and then its argument prototype would still apply. */
  4699. #ifdef __cplusplus
  4700. extern "C"
  4701. #endif
  4702. char opendir ();
  4703. int
  4704. main ()
  4705. {
  4706. return opendir ();
  4707. ;
  4708. return 0;
  4709. }
  4710. _ACEOF
  4711. for ac_lib in '' dir; do
  4712. if test -z "$ac_lib"; then
  4713. ac_res="none required"
  4714. else
  4715. ac_res=-l$ac_lib
  4716. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4717. fi
  4718. rm -f conftest.$ac_objext conftest$ac_exeext
  4719. if { (ac_try="$ac_link"
  4720. case "(($ac_try" in
  4721. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4722. *) ac_try_echo=$ac_try;;
  4723. esac
  4724. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4725. $as_echo "$ac_try_echo") >&5
  4726. (eval "$ac_link") 2>conftest.er1
  4727. ac_status=$?
  4728. grep -v '^ *+' conftest.er1 >conftest.err
  4729. rm -f conftest.er1
  4730. cat conftest.err >&5
  4731. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4732. (exit $ac_status); } && {
  4733. test -z "$ac_cxx_werror_flag" ||
  4734. test ! -s conftest.err
  4735. } && test -s conftest$ac_exeext && {
  4736. test "$cross_compiling" = yes ||
  4737. $as_test_x conftest$ac_exeext
  4738. }; then
  4739. ac_cv_search_opendir=$ac_res
  4740. else
  4741. $as_echo "$as_me: failed program was:" >&5
  4742. sed 's/^/| /' conftest.$ac_ext >&5
  4743. fi
  4744. rm -rf conftest.dSYM
  4745. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4746. conftest$ac_exeext
  4747. if test "${ac_cv_search_opendir+set}" = set; then
  4748. break
  4749. fi
  4750. done
  4751. if test "${ac_cv_search_opendir+set}" = set; then
  4752. :
  4753. else
  4754. ac_cv_search_opendir=no
  4755. fi
  4756. rm conftest.$ac_ext
  4757. LIBS=$ac_func_search_save_LIBS
  4758. fi
  4759. { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  4760. $as_echo "$ac_cv_search_opendir" >&6; }
  4761. ac_res=$ac_cv_search_opendir
  4762. if test "$ac_res" != no; then
  4763. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  4764. fi
  4765. else
  4766. { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
  4767. $as_echo_n "checking for library containing opendir... " >&6; }
  4768. if test "${ac_cv_search_opendir+set}" = set; then
  4769. $as_echo_n "(cached) " >&6
  4770. else
  4771. ac_func_search_save_LIBS=$LIBS
  4772. cat >conftest.$ac_ext <<_ACEOF
  4773. /* confdefs.h. */
  4774. _ACEOF
  4775. cat confdefs.h >>conftest.$ac_ext
  4776. cat >>conftest.$ac_ext <<_ACEOF
  4777. /* end confdefs.h. */
  4778. /* Override any GCC internal prototype to avoid an error.
  4779. Use char because int might match the return type of a GCC
  4780. builtin and then its argument prototype would still apply. */
  4781. #ifdef __cplusplus
  4782. extern "C"
  4783. #endif
  4784. char opendir ();
  4785. int
  4786. main ()
  4787. {
  4788. return opendir ();
  4789. ;
  4790. return 0;
  4791. }
  4792. _ACEOF
  4793. for ac_lib in '' x; do
  4794. if test -z "$ac_lib"; then
  4795. ac_res="none required"
  4796. else
  4797. ac_res=-l$ac_lib
  4798. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4799. fi
  4800. rm -f conftest.$ac_objext conftest$ac_exeext
  4801. if { (ac_try="$ac_link"
  4802. case "(($ac_try" in
  4803. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4804. *) ac_try_echo=$ac_try;;
  4805. esac
  4806. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4807. $as_echo "$ac_try_echo") >&5
  4808. (eval "$ac_link") 2>conftest.er1
  4809. ac_status=$?
  4810. grep -v '^ *+' conftest.er1 >conftest.err
  4811. rm -f conftest.er1
  4812. cat conftest.err >&5
  4813. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4814. (exit $ac_status); } && {
  4815. test -z "$ac_cxx_werror_flag" ||
  4816. test ! -s conftest.err
  4817. } && test -s conftest$ac_exeext && {
  4818. test "$cross_compiling" = yes ||
  4819. $as_test_x conftest$ac_exeext
  4820. }; then
  4821. ac_cv_search_opendir=$ac_res
  4822. else
  4823. $as_echo "$as_me: failed program was:" >&5
  4824. sed 's/^/| /' conftest.$ac_ext >&5
  4825. fi
  4826. rm -rf conftest.dSYM
  4827. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4828. conftest$ac_exeext
  4829. if test "${ac_cv_search_opendir+set}" = set; then
  4830. break
  4831. fi
  4832. done
  4833. if test "${ac_cv_search_opendir+set}" = set; then
  4834. :
  4835. else
  4836. ac_cv_search_opendir=no
  4837. fi
  4838. rm conftest.$ac_ext
  4839. LIBS=$ac_func_search_save_LIBS
  4840. fi
  4841. { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  4842. $as_echo "$ac_cv_search_opendir" >&6; }
  4843. ac_res=$ac_cv_search_opendir
  4844. if test "$ac_res" != no; then
  4845. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  4846. fi
  4847. fi
  4848. { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
  4849. $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
  4850. if test "${ac_cv_header_sys_wait_h+set}" = set; then
  4851. $as_echo_n "(cached) " >&6
  4852. else
  4853. cat >conftest.$ac_ext <<_ACEOF
  4854. /* confdefs.h. */
  4855. _ACEOF
  4856. cat confdefs.h >>conftest.$ac_ext
  4857. cat >>conftest.$ac_ext <<_ACEOF
  4858. /* end confdefs.h. */
  4859. #include <sys/types.h>
  4860. #include <sys/wait.h>
  4861. #ifndef WEXITSTATUS
  4862. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  4863. #endif
  4864. #ifndef WIFEXITED
  4865. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  4866. #endif
  4867. int
  4868. main ()
  4869. {
  4870. int s;
  4871. wait (&s);
  4872. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  4873. ;
  4874. return 0;
  4875. }
  4876. _ACEOF
  4877. rm -f conftest.$ac_objext
  4878. if { (ac_try="$ac_compile"
  4879. case "(($ac_try" in
  4880. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4881. *) ac_try_echo=$ac_try;;
  4882. esac
  4883. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4884. $as_echo "$ac_try_echo") >&5
  4885. (eval "$ac_compile") 2>conftest.er1
  4886. ac_status=$?
  4887. grep -v '^ *+' conftest.er1 >conftest.err
  4888. rm -f conftest.er1
  4889. cat conftest.err >&5
  4890. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4891. (exit $ac_status); } && {
  4892. test -z "$ac_cxx_werror_flag" ||
  4893. test ! -s conftest.err
  4894. } && test -s conftest.$ac_objext; then
  4895. ac_cv_header_sys_wait_h=yes
  4896. else
  4897. $as_echo "$as_me: failed program was:" >&5
  4898. sed 's/^/| /' conftest.$ac_ext >&5
  4899. ac_cv_header_sys_wait_h=no
  4900. fi
  4901. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4902. fi
  4903. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
  4904. $as_echo "$ac_cv_header_sys_wait_h" >&6; }
  4905. if test $ac_cv_header_sys_wait_h = yes; then
  4906. cat >>confdefs.h <<\_ACEOF
  4907. #define HAVE_SYS_WAIT_H 1
  4908. _ACEOF
  4909. fi
  4910. { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  4911. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  4912. if test "${ac_cv_header_time+set}" = set; then
  4913. $as_echo_n "(cached) " >&6
  4914. else
  4915. cat >conftest.$ac_ext <<_ACEOF
  4916. /* confdefs.h. */
  4917. _ACEOF
  4918. cat confdefs.h >>conftest.$ac_ext
  4919. cat >>conftest.$ac_ext <<_ACEOF
  4920. /* end confdefs.h. */
  4921. #include <sys/types.h>
  4922. #include <sys/time.h>
  4923. #include <time.h>
  4924. int
  4925. main ()
  4926. {
  4927. if ((struct tm *) 0)
  4928. return 0;
  4929. ;
  4930. return 0;
  4931. }
  4932. _ACEOF
  4933. rm -f conftest.$ac_objext
  4934. if { (ac_try="$ac_compile"
  4935. case "(($ac_try" in
  4936. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4937. *) ac_try_echo=$ac_try;;
  4938. esac
  4939. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4940. $as_echo "$ac_try_echo") >&5
  4941. (eval "$ac_compile") 2>conftest.er1
  4942. ac_status=$?
  4943. grep -v '^ *+' conftest.er1 >conftest.err
  4944. rm -f conftest.er1
  4945. cat conftest.err >&5
  4946. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4947. (exit $ac_status); } && {
  4948. test -z "$ac_cxx_werror_flag" ||
  4949. test ! -s conftest.err
  4950. } && test -s conftest.$ac_objext; then
  4951. ac_cv_header_time=yes
  4952. else
  4953. $as_echo "$as_me: failed program was:" >&5
  4954. sed 's/^/| /' conftest.$ac_ext >&5
  4955. ac_cv_header_time=no
  4956. fi
  4957. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4958. fi
  4959. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  4960. $as_echo "$ac_cv_header_time" >&6; }
  4961. if test $ac_cv_header_time = yes; then
  4962. cat >>confdefs.h <<\_ACEOF
  4963. #define TIME_WITH_SYS_TIME 1
  4964. _ACEOF
  4965. fi
  4966. { $as_echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
  4967. $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
  4968. if test "${ac_cv_header_stat_broken+set}" = set; then
  4969. $as_echo_n "(cached) " >&6
  4970. else
  4971. cat >conftest.$ac_ext <<_ACEOF
  4972. /* confdefs.h. */
  4973. _ACEOF
  4974. cat confdefs.h >>conftest.$ac_ext
  4975. cat >>conftest.$ac_ext <<_ACEOF
  4976. /* end confdefs.h. */
  4977. #include <sys/types.h>
  4978. #include <sys/stat.h>
  4979. #if defined S_ISBLK && defined S_IFDIR
  4980. extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
  4981. #endif
  4982. #if defined S_ISBLK && defined S_IFCHR
  4983. extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
  4984. #endif
  4985. #if defined S_ISLNK && defined S_IFREG
  4986. extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
  4987. #endif
  4988. #if defined S_ISSOCK && defined S_IFREG
  4989. extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
  4990. #endif
  4991. _ACEOF
  4992. rm -f conftest.$ac_objext
  4993. if { (ac_try="$ac_compile"
  4994. case "(($ac_try" in
  4995. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4996. *) ac_try_echo=$ac_try;;
  4997. esac
  4998. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4999. $as_echo "$ac_try_echo") >&5
  5000. (eval "$ac_compile") 2>conftest.er1
  5001. ac_status=$?
  5002. grep -v '^ *+' conftest.er1 >conftest.err
  5003. rm -f conftest.er1
  5004. cat conftest.err >&5
  5005. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5006. (exit $ac_status); } && {
  5007. test -z "$ac_cxx_werror_flag" ||
  5008. test ! -s conftest.err
  5009. } && test -s conftest.$ac_objext; then
  5010. ac_cv_header_stat_broken=no
  5011. else
  5012. $as_echo "$as_me: failed program was:" >&5
  5013. sed 's/^/| /' conftest.$ac_ext >&5
  5014. ac_cv_header_stat_broken=yes
  5015. fi
  5016. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5017. fi
  5018. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
  5019. $as_echo "$ac_cv_header_stat_broken" >&6; }
  5020. if test $ac_cv_header_stat_broken = yes; then
  5021. cat >>confdefs.h <<\_ACEOF
  5022. #define STAT_MACROS_BROKEN 1
  5023. _ACEOF
  5024. fi
  5025. #checkpoint
  5026. cat >confcache <<\_ACEOF
  5027. # This file is a shell script that caches the results of configure
  5028. # tests run on this system so they can be shared between configure
  5029. # scripts and configure runs, see configure's option --config-cache.
  5030. # It is not useful on other systems. If it contains results you don't
  5031. # want to keep, you may remove or edit it.
  5032. #
  5033. # config.status only pays attention to the cache file if you give it
  5034. # the --recheck option to rerun configure.
  5035. #
  5036. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5037. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5038. # following values.
  5039. _ACEOF
  5040. # The following way of writing the cache mishandles newlines in values,
  5041. # but we know of no workaround that is simple, portable, and efficient.
  5042. # So, we kill variables containing newlines.
  5043. # Ultrix sh set writes to stderr and can't be redirected directly,
  5044. # and sets the high bit in the cache file unless we assign to the vars.
  5045. (
  5046. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  5047. eval ac_val=\$$ac_var
  5048. case $ac_val in #(
  5049. *${as_nl}*)
  5050. case $ac_var in #(
  5051. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  5052. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  5053. esac
  5054. case $ac_var in #(
  5055. _ | IFS | as_nl) ;; #(
  5056. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  5057. *) $as_unset $ac_var ;;
  5058. esac ;;
  5059. esac
  5060. done
  5061. (set) 2>&1 |
  5062. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  5063. *${as_nl}ac_space=\ *)
  5064. # `set' does not quote correctly, so add quotes (double-quote
  5065. # substitution turns \\\\ into \\, and sed turns \\ into \).
  5066. sed -n \
  5067. "s/'/'\\\\''/g;
  5068. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5069. ;; #(
  5070. *)
  5071. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5072. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  5073. ;;
  5074. esac |
  5075. sort
  5076. ) |
  5077. sed '
  5078. /^ac_cv_env_/b end
  5079. t clear
  5080. :clear
  5081. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5082. t end
  5083. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5084. :end' >>confcache
  5085. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  5086. if test -w "$cache_file"; then
  5087. test "x$cache_file" != "x/dev/null" &&
  5088. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  5089. $as_echo "$as_me: updating cache $cache_file" >&6;}
  5090. cat confcache >$cache_file
  5091. else
  5092. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  5093. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  5094. fi
  5095. fi
  5096. rm -f confcache
  5097. for ac_header in stdarg.h std_arg.h arpa/inet.h fcntl.h limits.h locale.h netdb.h netinet/in.h
  5098. do
  5099. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5100. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5101. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  5102. $as_echo_n "checking for $ac_header... " >&6; }
  5103. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5104. $as_echo_n "(cached) " >&6
  5105. fi
  5106. ac_res=`eval 'as_val=${'$as_ac_Header'}
  5107. $as_echo "$as_val"'`
  5108. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  5109. $as_echo "$ac_res" >&6; }
  5110. else
  5111. # Is the header compilable?
  5112. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5113. $as_echo_n "checking $ac_header usability... " >&6; }
  5114. cat >conftest.$ac_ext <<_ACEOF
  5115. /* confdefs.h. */
  5116. _ACEOF
  5117. cat confdefs.h >>conftest.$ac_ext
  5118. cat >>conftest.$ac_ext <<_ACEOF
  5119. /* end confdefs.h. */
  5120. $ac_includes_default
  5121. #include <$ac_header>
  5122. _ACEOF
  5123. rm -f conftest.$ac_objext
  5124. if { (ac_try="$ac_compile"
  5125. case "(($ac_try" in
  5126. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5127. *) ac_try_echo=$ac_try;;
  5128. esac
  5129. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5130. $as_echo "$ac_try_echo") >&5
  5131. (eval "$ac_compile") 2>conftest.er1
  5132. ac_status=$?
  5133. grep -v '^ *+' conftest.er1 >conftest.err
  5134. rm -f conftest.er1
  5135. cat conftest.err >&5
  5136. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5137. (exit $ac_status); } && {
  5138. test -z "$ac_cxx_werror_flag" ||
  5139. test ! -s conftest.err
  5140. } && test -s conftest.$ac_objext; then
  5141. ac_header_compiler=yes
  5142. else
  5143. $as_echo "$as_me: failed program was:" >&5
  5144. sed 's/^/| /' conftest.$ac_ext >&5
  5145. ac_header_compiler=no
  5146. fi
  5147. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5148. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5149. $as_echo "$ac_header_compiler" >&6; }
  5150. # Is the header present?
  5151. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5152. $as_echo_n "checking $ac_header presence... " >&6; }
  5153. cat >conftest.$ac_ext <<_ACEOF
  5154. /* confdefs.h. */
  5155. _ACEOF
  5156. cat confdefs.h >>conftest.$ac_ext
  5157. cat >>conftest.$ac_ext <<_ACEOF
  5158. /* end confdefs.h. */
  5159. #include <$ac_header>
  5160. _ACEOF
  5161. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5162. case "(($ac_try" in
  5163. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5164. *) ac_try_echo=$ac_try;;
  5165. esac
  5166. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5167. $as_echo "$ac_try_echo") >&5
  5168. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5169. ac_status=$?
  5170. grep -v '^ *+' conftest.er1 >conftest.err
  5171. rm -f conftest.er1
  5172. cat conftest.err >&5
  5173. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5174. (exit $ac_status); } >/dev/null && {
  5175. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  5176. test ! -s conftest.err
  5177. }; then
  5178. ac_header_preproc=yes
  5179. else
  5180. $as_echo "$as_me: failed program was:" >&5
  5181. sed 's/^/| /' conftest.$ac_ext >&5
  5182. ac_header_preproc=no
  5183. fi
  5184. rm -f conftest.err conftest.$ac_ext
  5185. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5186. $as_echo "$ac_header_preproc" >&6; }
  5187. # So? What about this header?
  5188. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  5189. yes:no: )
  5190. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5191. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5192. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5193. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5194. ac_header_preproc=yes
  5195. ;;
  5196. no:yes:* )
  5197. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5198. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5199. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5200. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5201. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5202. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5203. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5204. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5205. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5206. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5207. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5208. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5209. ;;
  5210. esac
  5211. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  5212. $as_echo_n "checking for $ac_header... " >&6; }
  5213. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5214. $as_echo_n "(cached) " >&6
  5215. else
  5216. eval "$as_ac_Header=\$ac_header_preproc"
  5217. fi
  5218. ac_res=`eval 'as_val=${'$as_ac_Header'}
  5219. $as_echo "$as_val"'`
  5220. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  5221. $as_echo "$ac_res" >&6; }
  5222. fi
  5223. as_val=`eval 'as_val=${'$as_ac_Header'}
  5224. $as_echo "$as_val"'`
  5225. if test "x$as_val" = x""yes; then
  5226. cat >>confdefs.h <<_ACEOF
  5227. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5228. _ACEOF
  5229. fi
  5230. done
  5231. for ac_header in sys/file.h sys/ioctl.h sys/param.h sys/socket.h wchar.h sys/ptrace.h paths.h
  5232. do
  5233. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5234. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5235. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  5236. $as_echo_n "checking for $ac_header... " >&6; }
  5237. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5238. $as_echo_n "(cached) " >&6
  5239. fi
  5240. ac_res=`eval 'as_val=${'$as_ac_Header'}
  5241. $as_echo "$as_val"'`
  5242. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  5243. $as_echo "$ac_res" >&6; }
  5244. else
  5245. # Is the header compilable?
  5246. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5247. $as_echo_n "checking $ac_header usability... " >&6; }
  5248. cat >conftest.$ac_ext <<_ACEOF
  5249. /* confdefs.h. */
  5250. _ACEOF
  5251. cat confdefs.h >>conftest.$ac_ext
  5252. cat >>conftest.$ac_ext <<_ACEOF
  5253. /* end confdefs.h. */
  5254. $ac_includes_default
  5255. #include <$ac_header>
  5256. _ACEOF
  5257. rm -f conftest.$ac_objext
  5258. if { (ac_try="$ac_compile"
  5259. case "(($ac_try" in
  5260. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5261. *) ac_try_echo=$ac_try;;
  5262. esac
  5263. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5264. $as_echo "$ac_try_echo") >&5
  5265. (eval "$ac_compile") 2>conftest.er1
  5266. ac_status=$?
  5267. grep -v '^ *+' conftest.er1 >conftest.err
  5268. rm -f conftest.er1
  5269. cat conftest.err >&5
  5270. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5271. (exit $ac_status); } && {
  5272. test -z "$ac_cxx_werror_flag" ||
  5273. test ! -s conftest.err
  5274. } && test -s conftest.$ac_objext; then
  5275. ac_header_compiler=yes
  5276. else
  5277. $as_echo "$as_me: failed program was:" >&5
  5278. sed 's/^/| /' conftest.$ac_ext >&5
  5279. ac_header_compiler=no
  5280. fi
  5281. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5282. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5283. $as_echo "$ac_header_compiler" >&6; }
  5284. # Is the header present?
  5285. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5286. $as_echo_n "checking $ac_header presence... " >&6; }
  5287. cat >conftest.$ac_ext <<_ACEOF
  5288. /* confdefs.h. */
  5289. _ACEOF
  5290. cat confdefs.h >>conftest.$ac_ext
  5291. cat >>conftest.$ac_ext <<_ACEOF
  5292. /* end confdefs.h. */
  5293. #include <$ac_header>
  5294. _ACEOF
  5295. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5296. case "(($ac_try" in
  5297. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5298. *) ac_try_echo=$ac_try;;
  5299. esac
  5300. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5301. $as_echo "$ac_try_echo") >&5
  5302. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5303. ac_status=$?
  5304. grep -v '^ *+' conftest.er1 >conftest.err
  5305. rm -f conftest.er1
  5306. cat conftest.err >&5
  5307. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5308. (exit $ac_status); } >/dev/null && {
  5309. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  5310. test ! -s conftest.err
  5311. }; then
  5312. ac_header_preproc=yes
  5313. else
  5314. $as_echo "$as_me: failed program was:" >&5
  5315. sed 's/^/| /' conftest.$ac_ext >&5
  5316. ac_header_preproc=no
  5317. fi
  5318. rm -f conftest.err conftest.$ac_ext
  5319. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5320. $as_echo "$ac_header_preproc" >&6; }
  5321. # So? What about this header?
  5322. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  5323. yes:no: )
  5324. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5325. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5326. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5327. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5328. ac_header_preproc=yes
  5329. ;;
  5330. no:yes:* )
  5331. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5332. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5333. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5334. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5335. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5336. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5337. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5338. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5339. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5340. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5341. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5342. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5343. ;;
  5344. esac
  5345. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  5346. $as_echo_n "checking for $ac_header... " >&6; }
  5347. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5348. $as_echo_n "(cached) " >&6
  5349. else
  5350. eval "$as_ac_Header=\$ac_header_preproc"
  5351. fi
  5352. ac_res=`eval 'as_val=${'$as_ac_Header'}
  5353. $as_echo "$as_val"'`
  5354. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  5355. $as_echo "$ac_res" >&6; }
  5356. fi
  5357. as_val=`eval 'as_val=${'$as_ac_Header'}
  5358. $as_echo "$as_val"'`
  5359. if test "x$as_val" = x""yes; then
  5360. cat >>confdefs.h <<_ACEOF
  5361. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5362. _ACEOF
  5363. fi
  5364. done
  5365. #checkpoint
  5366. cat >confcache <<\_ACEOF
  5367. # This file is a shell script that caches the results of configure
  5368. # tests run on this system so they can be shared between configure
  5369. # scripts and configure runs, see configure's option --config-cache.
  5370. # It is not useful on other systems. If it contains results you don't
  5371. # want to keep, you may remove or edit it.
  5372. #
  5373. # config.status only pays attention to the cache file if you give it
  5374. # the --recheck option to rerun configure.
  5375. #
  5376. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5377. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5378. # following values.
  5379. _ACEOF
  5380. # The following way of writing the cache mishandles newlines in values,
  5381. # but we know of no workaround that is simple, portable, and efficient.
  5382. # So, we kill variables containing newlines.
  5383. # Ultrix sh set writes to stderr and can't be redirected directly,
  5384. # and sets the high bit in the cache file unless we assign to the vars.
  5385. (
  5386. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  5387. eval ac_val=\$$ac_var
  5388. case $ac_val in #(
  5389. *${as_nl}*)
  5390. case $ac_var in #(
  5391. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  5392. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  5393. esac
  5394. case $ac_var in #(
  5395. _ | IFS | as_nl) ;; #(
  5396. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  5397. *) $as_unset $ac_var ;;
  5398. esac ;;
  5399. esac
  5400. done
  5401. (set) 2>&1 |
  5402. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  5403. *${as_nl}ac_space=\ *)
  5404. # `set' does not quote correctly, so add quotes (double-quote
  5405. # substitution turns \\\\ into \\, and sed turns \\ into \).
  5406. sed -n \
  5407. "s/'/'\\\\''/g;
  5408. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5409. ;; #(
  5410. *)
  5411. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5412. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  5413. ;;
  5414. esac |
  5415. sort
  5416. ) |
  5417. sed '
  5418. /^ac_cv_env_/b end
  5419. t clear
  5420. :clear
  5421. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5422. t end
  5423. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5424. :end' >>confcache
  5425. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  5426. if test -w "$cache_file"; then
  5427. test "x$cache_file" != "x/dev/null" &&
  5428. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  5429. $as_echo "$as_me: updating cache $cache_file" >&6;}
  5430. cat confcache >$cache_file
  5431. else
  5432. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  5433. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  5434. fi
  5435. fi
  5436. rm -f confcache
  5437. #AC_CHECK_HEADERS(openssl/ssl.h openssl/crypto.h)
  5438. #AC_CHECK_HEADERS(zlib.h)
  5439. #EGG_CHECK_ZLIB
  5440. { $as_echo "$as_me:$LINENO: checking for path to OpenSSL" >&5
  5441. $as_echo_n "checking for path to OpenSSL... " >&6; }
  5442. # Check whether --with-openssl was given.
  5443. if test "${with_openssl+set}" = set; then
  5444. withval=$with_openssl; cf_with_openssl=$withval
  5445. else
  5446. cf_with_openssl="auto"
  5447. fi
  5448. cf_openssl_basedir=""
  5449. if test "$cf_with_openssl" != "auto"; then
  5450. cf_openssl_basedir="`echo ${cf_with_openssl} | sed 's/\/$//'`"
  5451. else
  5452. for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/local/openssl; do
  5453. if test -f "${dirs}/include/openssl/opensslv.h" ; then
  5454. cf_openssl_basedir="${dirs}"
  5455. break
  5456. fi
  5457. done
  5458. unset dirs
  5459. fi
  5460. if test ! -z "$cf_openssl_basedir"; then
  5461. if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then
  5462. SSL_INCLUDES="-I${cf_openssl_basedir}/include"
  5463. SSL_LIBS="-L${cf_openssl_basedir}/lib"
  5464. else
  5465. cf_openssl_basedir=""
  5466. fi
  5467. else
  5468. if test -f "/usr/include/openssl/opensslv.h" ; then
  5469. cf_openssl_basedir="/usr"
  5470. fi
  5471. fi
  5472. if test ! -z "$cf_openssl_basedir"; then
  5473. { $as_echo "$as_me:$LINENO: result: $cf_openssl_basedir" >&5
  5474. $as_echo "$cf_openssl_basedir" >&6; }
  5475. else
  5476. { $as_echo "$as_me:$LINENO: result: not found" >&5
  5477. $as_echo "not found" >&6; }
  5478. { { $as_echo "$as_me:$LINENO: error: OpenSSL is required." >&5
  5479. $as_echo "$as_me: error: OpenSSL is required." >&2;}
  5480. { (exit 1); exit 1; }; }
  5481. fi
  5482. unset cf_openssl_basedir
  5483. save_CXX="$CXX"
  5484. CXX="$CXX $SSL_INCLUDES"
  5485. save_LIBS="$LIBS"
  5486. LIBS="$LIBS $SSL_LIBS"
  5487. { $as_echo "$as_me:$LINENO: checking for OpenSSL version" >&5
  5488. $as_echo_n "checking for OpenSSL version... " >&6; }
  5489. cat >conftest.$ac_ext <<_ACEOF
  5490. /* confdefs.h. */
  5491. _ACEOF
  5492. cat confdefs.h >>conftest.$ac_ext
  5493. cat >>conftest.$ac_ext <<_ACEOF
  5494. /* end confdefs.h. */
  5495. #include <openssl/opensslv.h>
  5496. int
  5497. main ()
  5498. {
  5499. #if !defined(OPENSSL_VERSION_NUMBER)
  5500. #error "Missing openssl version"
  5501. #endif
  5502. #if (OPENSSL_VERSION_NUMBER < 0x009060af) \
  5503. || ((OPENSSL_VERSION_NUMBER > 0x00907000) && (OPENSSL_VERSION_NUMBER < 0x0090702f))
  5504. #error "Insecure openssl version " OPENSSL_VERSION_TEXT
  5505. #endif
  5506. ;
  5507. return 0;
  5508. }
  5509. _ACEOF
  5510. rm -f conftest.$ac_objext
  5511. if { (ac_try="$ac_compile"
  5512. case "(($ac_try" in
  5513. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5514. *) ac_try_echo=$ac_try;;
  5515. esac
  5516. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5517. $as_echo "$ac_try_echo") >&5
  5518. (eval "$ac_compile") 2>conftest.er1
  5519. ac_status=$?
  5520. grep -v '^ *+' conftest.er1 >conftest.err
  5521. rm -f conftest.er1
  5522. cat conftest.err >&5
  5523. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5524. (exit $ac_status); } && {
  5525. test -z "$ac_cxx_werror_flag" ||
  5526. test ! -s conftest.err
  5527. } && test -s conftest.$ac_objext; then
  5528. { $as_echo "$as_me:$LINENO: result: OK" >&5
  5529. $as_echo "OK" >&6; }
  5530. else
  5531. $as_echo "$as_me: failed program was:" >&5
  5532. sed 's/^/| /' conftest.$ac_ext >&5
  5533. { $as_echo "$as_me:$LINENO: result: too old." >&5
  5534. $as_echo "too old." >&6; }
  5535. { { $as_echo "$as_me:$LINENO: error: OpenSSL version is too old." >&5
  5536. $as_echo "$as_me: error: OpenSSL version is too old." >&2;}
  5537. { (exit 1); exit 1; }; }
  5538. fi
  5539. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5540. CXX="$CXX $SSL_LIBS"
  5541. { $as_echo "$as_me:$LINENO: checking for AES_encrypt in -lcrypto" >&5
  5542. $as_echo_n "checking for AES_encrypt in -lcrypto... " >&6; }
  5543. if test "${ac_cv_lib_crypto_AES_encrypt+set}" = set; then
  5544. $as_echo_n "(cached) " >&6
  5545. else
  5546. ac_check_lib_save_LIBS=$LIBS
  5547. LIBS="-lcrypto $LIBS"
  5548. cat >conftest.$ac_ext <<_ACEOF
  5549. /* confdefs.h. */
  5550. _ACEOF
  5551. cat confdefs.h >>conftest.$ac_ext
  5552. cat >>conftest.$ac_ext <<_ACEOF
  5553. /* end confdefs.h. */
  5554. /* Override any GCC internal prototype to avoid an error.
  5555. Use char because int might match the return type of a GCC
  5556. builtin and then its argument prototype would still apply. */
  5557. #ifdef __cplusplus
  5558. extern "C"
  5559. #endif
  5560. char AES_encrypt ();
  5561. int
  5562. main ()
  5563. {
  5564. return AES_encrypt ();
  5565. ;
  5566. return 0;
  5567. }
  5568. _ACEOF
  5569. rm -f conftest.$ac_objext conftest$ac_exeext
  5570. if { (ac_try="$ac_link"
  5571. case "(($ac_try" in
  5572. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5573. *) ac_try_echo=$ac_try;;
  5574. esac
  5575. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5576. $as_echo "$ac_try_echo") >&5
  5577. (eval "$ac_link") 2>conftest.er1
  5578. ac_status=$?
  5579. grep -v '^ *+' conftest.er1 >conftest.err
  5580. rm -f conftest.er1
  5581. cat conftest.err >&5
  5582. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5583. (exit $ac_status); } && {
  5584. test -z "$ac_cxx_werror_flag" ||
  5585. test ! -s conftest.err
  5586. } && test -s conftest$ac_exeext && {
  5587. test "$cross_compiling" = yes ||
  5588. $as_test_x conftest$ac_exeext
  5589. }; then
  5590. ac_cv_lib_crypto_AES_encrypt=yes
  5591. else
  5592. $as_echo "$as_me: failed program was:" >&5
  5593. sed 's/^/| /' conftest.$ac_ext >&5
  5594. ac_cv_lib_crypto_AES_encrypt=no
  5595. fi
  5596. rm -rf conftest.dSYM
  5597. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5598. conftest$ac_exeext conftest.$ac_ext
  5599. LIBS=$ac_check_lib_save_LIBS
  5600. fi
  5601. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_AES_encrypt" >&5
  5602. $as_echo "$ac_cv_lib_crypto_AES_encrypt" >&6; }
  5603. if test "x$ac_cv_lib_crypto_AES_encrypt" = x""yes; then
  5604. SSL_LIBS="$SSL_LIBS -lcrypto"
  5605. else
  5606. { $as_echo "$as_me:$LINENO: result: not found." >&5
  5607. $as_echo "not found." >&6; }
  5608. { { $as_echo "$as_me:$LINENO: error: Libcrypto/openssl is required." >&5
  5609. $as_echo "$as_me: error: Libcrypto/openssl is required." >&2;}
  5610. { (exit 1); exit 1; }; }
  5611. fi
  5612. CXX="$save_CXX"
  5613. LIBS="$save_LIBS"
  5614. #AC_SUBST(ZLIB)dnl
  5615. # Checks for typedefs, structures, and compiler characteristics
  5616. { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
  5617. $as_echo_n "checking for pid_t... " >&6; }
  5618. if test "${ac_cv_type_pid_t+set}" = set; then
  5619. $as_echo_n "(cached) " >&6
  5620. else
  5621. ac_cv_type_pid_t=no
  5622. cat >conftest.$ac_ext <<_ACEOF
  5623. /* confdefs.h. */
  5624. _ACEOF
  5625. cat confdefs.h >>conftest.$ac_ext
  5626. cat >>conftest.$ac_ext <<_ACEOF
  5627. /* end confdefs.h. */
  5628. $ac_includes_default
  5629. int
  5630. main ()
  5631. {
  5632. if (sizeof (pid_t))
  5633. return 0;
  5634. ;
  5635. return 0;
  5636. }
  5637. _ACEOF
  5638. rm -f conftest.$ac_objext
  5639. if { (ac_try="$ac_compile"
  5640. case "(($ac_try" in
  5641. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5642. *) ac_try_echo=$ac_try;;
  5643. esac
  5644. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5645. $as_echo "$ac_try_echo") >&5
  5646. (eval "$ac_compile") 2>conftest.er1
  5647. ac_status=$?
  5648. grep -v '^ *+' conftest.er1 >conftest.err
  5649. rm -f conftest.er1
  5650. cat conftest.err >&5
  5651. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5652. (exit $ac_status); } && {
  5653. test -z "$ac_cxx_werror_flag" ||
  5654. test ! -s conftest.err
  5655. } && test -s conftest.$ac_objext; then
  5656. cat >conftest.$ac_ext <<_ACEOF
  5657. /* confdefs.h. */
  5658. _ACEOF
  5659. cat confdefs.h >>conftest.$ac_ext
  5660. cat >>conftest.$ac_ext <<_ACEOF
  5661. /* end confdefs.h. */
  5662. $ac_includes_default
  5663. int
  5664. main ()
  5665. {
  5666. if (sizeof ((pid_t)))
  5667. return 0;
  5668. ;
  5669. return 0;
  5670. }
  5671. _ACEOF
  5672. rm -f conftest.$ac_objext
  5673. if { (ac_try="$ac_compile"
  5674. case "(($ac_try" in
  5675. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5676. *) ac_try_echo=$ac_try;;
  5677. esac
  5678. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5679. $as_echo "$ac_try_echo") >&5
  5680. (eval "$ac_compile") 2>conftest.er1
  5681. ac_status=$?
  5682. grep -v '^ *+' conftest.er1 >conftest.err
  5683. rm -f conftest.er1
  5684. cat conftest.err >&5
  5685. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5686. (exit $ac_status); } && {
  5687. test -z "$ac_cxx_werror_flag" ||
  5688. test ! -s conftest.err
  5689. } && test -s conftest.$ac_objext; then
  5690. :
  5691. else
  5692. $as_echo "$as_me: failed program was:" >&5
  5693. sed 's/^/| /' conftest.$ac_ext >&5
  5694. ac_cv_type_pid_t=yes
  5695. fi
  5696. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5697. else
  5698. $as_echo "$as_me: failed program was:" >&5
  5699. sed 's/^/| /' conftest.$ac_ext >&5
  5700. fi
  5701. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5702. fi
  5703. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
  5704. $as_echo "$ac_cv_type_pid_t" >&6; }
  5705. if test "x$ac_cv_type_pid_t" = x""yes; then
  5706. :
  5707. else
  5708. cat >>confdefs.h <<_ACEOF
  5709. #define pid_t int
  5710. _ACEOF
  5711. fi
  5712. { $as_echo "$as_me:$LINENO: checking for size_t" >&5
  5713. $as_echo_n "checking for size_t... " >&6; }
  5714. if test "${ac_cv_type_size_t+set}" = set; then
  5715. $as_echo_n "(cached) " >&6
  5716. else
  5717. ac_cv_type_size_t=no
  5718. cat >conftest.$ac_ext <<_ACEOF
  5719. /* confdefs.h. */
  5720. _ACEOF
  5721. cat confdefs.h >>conftest.$ac_ext
  5722. cat >>conftest.$ac_ext <<_ACEOF
  5723. /* end confdefs.h. */
  5724. $ac_includes_default
  5725. int
  5726. main ()
  5727. {
  5728. if (sizeof (size_t))
  5729. return 0;
  5730. ;
  5731. return 0;
  5732. }
  5733. _ACEOF
  5734. rm -f conftest.$ac_objext
  5735. if { (ac_try="$ac_compile"
  5736. case "(($ac_try" in
  5737. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5738. *) ac_try_echo=$ac_try;;
  5739. esac
  5740. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5741. $as_echo "$ac_try_echo") >&5
  5742. (eval "$ac_compile") 2>conftest.er1
  5743. ac_status=$?
  5744. grep -v '^ *+' conftest.er1 >conftest.err
  5745. rm -f conftest.er1
  5746. cat conftest.err >&5
  5747. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5748. (exit $ac_status); } && {
  5749. test -z "$ac_cxx_werror_flag" ||
  5750. test ! -s conftest.err
  5751. } && test -s conftest.$ac_objext; then
  5752. cat >conftest.$ac_ext <<_ACEOF
  5753. /* confdefs.h. */
  5754. _ACEOF
  5755. cat confdefs.h >>conftest.$ac_ext
  5756. cat >>conftest.$ac_ext <<_ACEOF
  5757. /* end confdefs.h. */
  5758. $ac_includes_default
  5759. int
  5760. main ()
  5761. {
  5762. if (sizeof ((size_t)))
  5763. return 0;
  5764. ;
  5765. return 0;
  5766. }
  5767. _ACEOF
  5768. rm -f conftest.$ac_objext
  5769. if { (ac_try="$ac_compile"
  5770. case "(($ac_try" in
  5771. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5772. *) ac_try_echo=$ac_try;;
  5773. esac
  5774. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5775. $as_echo "$ac_try_echo") >&5
  5776. (eval "$ac_compile") 2>conftest.er1
  5777. ac_status=$?
  5778. grep -v '^ *+' conftest.er1 >conftest.err
  5779. rm -f conftest.er1
  5780. cat conftest.err >&5
  5781. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5782. (exit $ac_status); } && {
  5783. test -z "$ac_cxx_werror_flag" ||
  5784. test ! -s conftest.err
  5785. } && test -s conftest.$ac_objext; then
  5786. :
  5787. else
  5788. $as_echo "$as_me: failed program was:" >&5
  5789. sed 's/^/| /' conftest.$ac_ext >&5
  5790. ac_cv_type_size_t=yes
  5791. fi
  5792. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5793. else
  5794. $as_echo "$as_me: failed program was:" >&5
  5795. sed 's/^/| /' conftest.$ac_ext >&5
  5796. fi
  5797. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5798. fi
  5799. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  5800. $as_echo "$ac_cv_type_size_t" >&6; }
  5801. if test "x$ac_cv_type_size_t" = x""yes; then
  5802. :
  5803. else
  5804. cat >>confdefs.h <<_ACEOF
  5805. #define size_t unsigned int
  5806. _ACEOF
  5807. fi
  5808. { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
  5809. $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
  5810. if test "${ac_cv_type_uid_t+set}" = set; then
  5811. $as_echo_n "(cached) " >&6
  5812. else
  5813. cat >conftest.$ac_ext <<_ACEOF
  5814. /* confdefs.h. */
  5815. _ACEOF
  5816. cat confdefs.h >>conftest.$ac_ext
  5817. cat >>conftest.$ac_ext <<_ACEOF
  5818. /* end confdefs.h. */
  5819. #include <sys/types.h>
  5820. _ACEOF
  5821. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5822. $EGREP "uid_t" >/dev/null 2>&1; then
  5823. ac_cv_type_uid_t=yes
  5824. else
  5825. ac_cv_type_uid_t=no
  5826. fi
  5827. rm -f conftest*
  5828. fi
  5829. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
  5830. $as_echo "$ac_cv_type_uid_t" >&6; }
  5831. if test $ac_cv_type_uid_t = no; then
  5832. cat >>confdefs.h <<\_ACEOF
  5833. #define uid_t int
  5834. _ACEOF
  5835. cat >>confdefs.h <<\_ACEOF
  5836. #define gid_t int
  5837. _ACEOF
  5838. fi
  5839. #AC_C_CONST
  5840. { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
  5841. $as_echo_n "checking for working volatile... " >&6; }
  5842. if test "${ac_cv_c_volatile+set}" = set; then
  5843. $as_echo_n "(cached) " >&6
  5844. else
  5845. cat >conftest.$ac_ext <<_ACEOF
  5846. /* confdefs.h. */
  5847. _ACEOF
  5848. cat confdefs.h >>conftest.$ac_ext
  5849. cat >>conftest.$ac_ext <<_ACEOF
  5850. /* end confdefs.h. */
  5851. int
  5852. main ()
  5853. {
  5854. volatile int x;
  5855. int * volatile y = (int *) 0;
  5856. return !x && !y;
  5857. ;
  5858. return 0;
  5859. }
  5860. _ACEOF
  5861. rm -f conftest.$ac_objext
  5862. if { (ac_try="$ac_compile"
  5863. case "(($ac_try" in
  5864. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5865. *) ac_try_echo=$ac_try;;
  5866. esac
  5867. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5868. $as_echo "$ac_try_echo") >&5
  5869. (eval "$ac_compile") 2>conftest.er1
  5870. ac_status=$?
  5871. grep -v '^ *+' conftest.er1 >conftest.err
  5872. rm -f conftest.er1
  5873. cat conftest.err >&5
  5874. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5875. (exit $ac_status); } && {
  5876. test -z "$ac_cxx_werror_flag" ||
  5877. test ! -s conftest.err
  5878. } && test -s conftest.$ac_objext; then
  5879. ac_cv_c_volatile=yes
  5880. else
  5881. $as_echo "$as_me: failed program was:" >&5
  5882. sed 's/^/| /' conftest.$ac_ext >&5
  5883. ac_cv_c_volatile=no
  5884. fi
  5885. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5886. fi
  5887. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
  5888. $as_echo "$ac_cv_c_volatile" >&6; }
  5889. if test $ac_cv_c_volatile = no; then
  5890. cat >>confdefs.h <<\_ACEOF
  5891. #define volatile /**/
  5892. _ACEOF
  5893. fi
  5894. { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  5895. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  5896. if test "${ac_cv_c_bigendian+set}" = set; then
  5897. $as_echo_n "(cached) " >&6
  5898. else
  5899. ac_cv_c_bigendian=unknown
  5900. # See if we're dealing with a universal compiler.
  5901. cat >conftest.$ac_ext <<_ACEOF
  5902. /* confdefs.h. */
  5903. _ACEOF
  5904. cat confdefs.h >>conftest.$ac_ext
  5905. cat >>conftest.$ac_ext <<_ACEOF
  5906. /* end confdefs.h. */
  5907. #ifndef __APPLE_CC__
  5908. not a universal capable compiler
  5909. #endif
  5910. typedef int dummy;
  5911. _ACEOF
  5912. rm -f conftest.$ac_objext
  5913. if { (ac_try="$ac_compile"
  5914. case "(($ac_try" in
  5915. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5916. *) ac_try_echo=$ac_try;;
  5917. esac
  5918. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5919. $as_echo "$ac_try_echo") >&5
  5920. (eval "$ac_compile") 2>conftest.er1
  5921. ac_status=$?
  5922. grep -v '^ *+' conftest.er1 >conftest.err
  5923. rm -f conftest.er1
  5924. cat conftest.err >&5
  5925. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5926. (exit $ac_status); } && {
  5927. test -z "$ac_cxx_werror_flag" ||
  5928. test ! -s conftest.err
  5929. } && test -s conftest.$ac_objext; then
  5930. # Check for potential -arch flags. It is not universal unless
  5931. # there are some -arch flags. Note that *ppc* also matches
  5932. # ppc64. This check is also rather less than ideal.
  5933. case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
  5934. *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
  5935. esac
  5936. else
  5937. $as_echo "$as_me: failed program was:" >&5
  5938. sed 's/^/| /' conftest.$ac_ext >&5
  5939. fi
  5940. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5941. if test $ac_cv_c_bigendian = unknown; then
  5942. # See if sys/param.h defines the BYTE_ORDER macro.
  5943. cat >conftest.$ac_ext <<_ACEOF
  5944. /* confdefs.h. */
  5945. _ACEOF
  5946. cat confdefs.h >>conftest.$ac_ext
  5947. cat >>conftest.$ac_ext <<_ACEOF
  5948. /* end confdefs.h. */
  5949. #include <sys/types.h>
  5950. #include <sys/param.h>
  5951. int
  5952. main ()
  5953. {
  5954. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  5955. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  5956. && LITTLE_ENDIAN)
  5957. bogus endian macros
  5958. #endif
  5959. ;
  5960. return 0;
  5961. }
  5962. _ACEOF
  5963. rm -f conftest.$ac_objext
  5964. if { (ac_try="$ac_compile"
  5965. case "(($ac_try" in
  5966. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5967. *) ac_try_echo=$ac_try;;
  5968. esac
  5969. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5970. $as_echo "$ac_try_echo") >&5
  5971. (eval "$ac_compile") 2>conftest.er1
  5972. ac_status=$?
  5973. grep -v '^ *+' conftest.er1 >conftest.err
  5974. rm -f conftest.er1
  5975. cat conftest.err >&5
  5976. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5977. (exit $ac_status); } && {
  5978. test -z "$ac_cxx_werror_flag" ||
  5979. test ! -s conftest.err
  5980. } && test -s conftest.$ac_objext; then
  5981. # It does; now see whether it defined to BIG_ENDIAN or not.
  5982. cat >conftest.$ac_ext <<_ACEOF
  5983. /* confdefs.h. */
  5984. _ACEOF
  5985. cat confdefs.h >>conftest.$ac_ext
  5986. cat >>conftest.$ac_ext <<_ACEOF
  5987. /* end confdefs.h. */
  5988. #include <sys/types.h>
  5989. #include <sys/param.h>
  5990. int
  5991. main ()
  5992. {
  5993. #if BYTE_ORDER != BIG_ENDIAN
  5994. not big endian
  5995. #endif
  5996. ;
  5997. return 0;
  5998. }
  5999. _ACEOF
  6000. rm -f conftest.$ac_objext
  6001. if { (ac_try="$ac_compile"
  6002. case "(($ac_try" in
  6003. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6004. *) ac_try_echo=$ac_try;;
  6005. esac
  6006. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6007. $as_echo "$ac_try_echo") >&5
  6008. (eval "$ac_compile") 2>conftest.er1
  6009. ac_status=$?
  6010. grep -v '^ *+' conftest.er1 >conftest.err
  6011. rm -f conftest.er1
  6012. cat conftest.err >&5
  6013. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6014. (exit $ac_status); } && {
  6015. test -z "$ac_cxx_werror_flag" ||
  6016. test ! -s conftest.err
  6017. } && test -s conftest.$ac_objext; then
  6018. ac_cv_c_bigendian=yes
  6019. else
  6020. $as_echo "$as_me: failed program was:" >&5
  6021. sed 's/^/| /' conftest.$ac_ext >&5
  6022. ac_cv_c_bigendian=no
  6023. fi
  6024. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6025. else
  6026. $as_echo "$as_me: failed program was:" >&5
  6027. sed 's/^/| /' conftest.$ac_ext >&5
  6028. fi
  6029. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6030. fi
  6031. if test $ac_cv_c_bigendian = unknown; then
  6032. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  6033. cat >conftest.$ac_ext <<_ACEOF
  6034. /* confdefs.h. */
  6035. _ACEOF
  6036. cat confdefs.h >>conftest.$ac_ext
  6037. cat >>conftest.$ac_ext <<_ACEOF
  6038. /* end confdefs.h. */
  6039. #include <limits.h>
  6040. int
  6041. main ()
  6042. {
  6043. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  6044. bogus endian macros
  6045. #endif
  6046. ;
  6047. return 0;
  6048. }
  6049. _ACEOF
  6050. rm -f conftest.$ac_objext
  6051. if { (ac_try="$ac_compile"
  6052. case "(($ac_try" in
  6053. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6054. *) ac_try_echo=$ac_try;;
  6055. esac
  6056. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6057. $as_echo "$ac_try_echo") >&5
  6058. (eval "$ac_compile") 2>conftest.er1
  6059. ac_status=$?
  6060. grep -v '^ *+' conftest.er1 >conftest.err
  6061. rm -f conftest.er1
  6062. cat conftest.err >&5
  6063. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6064. (exit $ac_status); } && {
  6065. test -z "$ac_cxx_werror_flag" ||
  6066. test ! -s conftest.err
  6067. } && test -s conftest.$ac_objext; then
  6068. # It does; now see whether it defined to _BIG_ENDIAN or not.
  6069. cat >conftest.$ac_ext <<_ACEOF
  6070. /* confdefs.h. */
  6071. _ACEOF
  6072. cat confdefs.h >>conftest.$ac_ext
  6073. cat >>conftest.$ac_ext <<_ACEOF
  6074. /* end confdefs.h. */
  6075. #include <limits.h>
  6076. int
  6077. main ()
  6078. {
  6079. #ifndef _BIG_ENDIAN
  6080. not big endian
  6081. #endif
  6082. ;
  6083. return 0;
  6084. }
  6085. _ACEOF
  6086. rm -f conftest.$ac_objext
  6087. if { (ac_try="$ac_compile"
  6088. case "(($ac_try" in
  6089. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6090. *) ac_try_echo=$ac_try;;
  6091. esac
  6092. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6093. $as_echo "$ac_try_echo") >&5
  6094. (eval "$ac_compile") 2>conftest.er1
  6095. ac_status=$?
  6096. grep -v '^ *+' conftest.er1 >conftest.err
  6097. rm -f conftest.er1
  6098. cat conftest.err >&5
  6099. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6100. (exit $ac_status); } && {
  6101. test -z "$ac_cxx_werror_flag" ||
  6102. test ! -s conftest.err
  6103. } && test -s conftest.$ac_objext; then
  6104. ac_cv_c_bigendian=yes
  6105. else
  6106. $as_echo "$as_me: failed program was:" >&5
  6107. sed 's/^/| /' conftest.$ac_ext >&5
  6108. ac_cv_c_bigendian=no
  6109. fi
  6110. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6111. else
  6112. $as_echo "$as_me: failed program was:" >&5
  6113. sed 's/^/| /' conftest.$ac_ext >&5
  6114. fi
  6115. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6116. fi
  6117. if test $ac_cv_c_bigendian = unknown; then
  6118. # Compile a test program.
  6119. if test "$cross_compiling" = yes; then
  6120. # Try to guess by grepping values from an object file.
  6121. cat >conftest.$ac_ext <<_ACEOF
  6122. /* confdefs.h. */
  6123. _ACEOF
  6124. cat confdefs.h >>conftest.$ac_ext
  6125. cat >>conftest.$ac_ext <<_ACEOF
  6126. /* end confdefs.h. */
  6127. short int ascii_mm[] =
  6128. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  6129. short int ascii_ii[] =
  6130. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  6131. int use_ascii (int i) {
  6132. return ascii_mm[i] + ascii_ii[i];
  6133. }
  6134. short int ebcdic_ii[] =
  6135. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  6136. short int ebcdic_mm[] =
  6137. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  6138. int use_ebcdic (int i) {
  6139. return ebcdic_mm[i] + ebcdic_ii[i];
  6140. }
  6141. extern int foo;
  6142. int
  6143. main ()
  6144. {
  6145. return use_ascii (foo) == use_ebcdic (foo);
  6146. ;
  6147. return 0;
  6148. }
  6149. _ACEOF
  6150. rm -f conftest.$ac_objext
  6151. if { (ac_try="$ac_compile"
  6152. case "(($ac_try" in
  6153. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6154. *) ac_try_echo=$ac_try;;
  6155. esac
  6156. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6157. $as_echo "$ac_try_echo") >&5
  6158. (eval "$ac_compile") 2>conftest.er1
  6159. ac_status=$?
  6160. grep -v '^ *+' conftest.er1 >conftest.err
  6161. rm -f conftest.er1
  6162. cat conftest.err >&5
  6163. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6164. (exit $ac_status); } && {
  6165. test -z "$ac_cxx_werror_flag" ||
  6166. test ! -s conftest.err
  6167. } && test -s conftest.$ac_objext; then
  6168. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  6169. ac_cv_c_bigendian=yes
  6170. fi
  6171. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  6172. if test "$ac_cv_c_bigendian" = unknown; then
  6173. ac_cv_c_bigendian=no
  6174. else
  6175. # finding both strings is unlikely to happen, but who knows?
  6176. ac_cv_c_bigendian=unknown
  6177. fi
  6178. fi
  6179. else
  6180. $as_echo "$as_me: failed program was:" >&5
  6181. sed 's/^/| /' conftest.$ac_ext >&5
  6182. fi
  6183. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6184. else
  6185. cat >conftest.$ac_ext <<_ACEOF
  6186. /* confdefs.h. */
  6187. _ACEOF
  6188. cat confdefs.h >>conftest.$ac_ext
  6189. cat >>conftest.$ac_ext <<_ACEOF
  6190. /* end confdefs.h. */
  6191. $ac_includes_default
  6192. int
  6193. main ()
  6194. {
  6195. /* Are we little or big endian? From Harbison&Steele. */
  6196. union
  6197. {
  6198. long int l;
  6199. char c[sizeof (long int)];
  6200. } u;
  6201. u.l = 1;
  6202. return u.c[sizeof (long int) - 1] == 1;
  6203. ;
  6204. return 0;
  6205. }
  6206. _ACEOF
  6207. rm -f conftest$ac_exeext
  6208. if { (ac_try="$ac_link"
  6209. case "(($ac_try" in
  6210. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6211. *) ac_try_echo=$ac_try;;
  6212. esac
  6213. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6214. $as_echo "$ac_try_echo") >&5
  6215. (eval "$ac_link") 2>&5
  6216. ac_status=$?
  6217. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6218. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6219. { (case "(($ac_try" in
  6220. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6221. *) ac_try_echo=$ac_try;;
  6222. esac
  6223. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6224. $as_echo "$ac_try_echo") >&5
  6225. (eval "$ac_try") 2>&5
  6226. ac_status=$?
  6227. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6228. (exit $ac_status); }; }; then
  6229. ac_cv_c_bigendian=no
  6230. else
  6231. $as_echo "$as_me: program exited with status $ac_status" >&5
  6232. $as_echo "$as_me: failed program was:" >&5
  6233. sed 's/^/| /' conftest.$ac_ext >&5
  6234. ( exit $ac_status )
  6235. ac_cv_c_bigendian=yes
  6236. fi
  6237. rm -rf conftest.dSYM
  6238. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6239. fi
  6240. fi
  6241. fi
  6242. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  6243. $as_echo "$ac_cv_c_bigendian" >&6; }
  6244. case $ac_cv_c_bigendian in #(
  6245. yes)
  6246. cat >>confdefs.h <<\_ACEOF
  6247. #define B_ENDIAN 1
  6248. _ACEOF
  6249. ;; #(
  6250. no)
  6251. cat >>confdefs.h <<\_ACEOF
  6252. #define L_ENDIAN 1
  6253. _ACEOF
  6254. ;; #(
  6255. universal)
  6256. cat >>confdefs.h <<\_ACEOF
  6257. #define AC_APPLE_UNIVERSAL_BUILD 1
  6258. _ACEOF
  6259. ;; #(
  6260. *)
  6261. { { $as_echo "$as_me:$LINENO: error: unknown endianness
  6262. presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  6263. $as_echo "$as_me: error: unknown endianness
  6264. presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  6265. { (exit 1); exit 1; }; } ;;
  6266. esac
  6267. #AC_C_INLINE
  6268. { $as_echo "$as_me:$LINENO: checking whether char is unsigned" >&5
  6269. $as_echo_n "checking whether char is unsigned... " >&6; }
  6270. if test "${ac_cv_c_char_unsigned+set}" = set; then
  6271. $as_echo_n "(cached) " >&6
  6272. else
  6273. cat >conftest.$ac_ext <<_ACEOF
  6274. /* confdefs.h. */
  6275. _ACEOF
  6276. cat confdefs.h >>conftest.$ac_ext
  6277. cat >>conftest.$ac_ext <<_ACEOF
  6278. /* end confdefs.h. */
  6279. $ac_includes_default
  6280. int
  6281. main ()
  6282. {
  6283. static int test_array [1 - 2 * !(((char) -1) < 0)];
  6284. test_array [0] = 0
  6285. ;
  6286. return 0;
  6287. }
  6288. _ACEOF
  6289. rm -f conftest.$ac_objext
  6290. if { (ac_try="$ac_compile"
  6291. case "(($ac_try" in
  6292. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6293. *) ac_try_echo=$ac_try;;
  6294. esac
  6295. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6296. $as_echo "$ac_try_echo") >&5
  6297. (eval "$ac_compile") 2>conftest.er1
  6298. ac_status=$?
  6299. grep -v '^ *+' conftest.er1 >conftest.err
  6300. rm -f conftest.er1
  6301. cat conftest.err >&5
  6302. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6303. (exit $ac_status); } && {
  6304. test -z "$ac_cxx_werror_flag" ||
  6305. test ! -s conftest.err
  6306. } && test -s conftest.$ac_objext; then
  6307. ac_cv_c_char_unsigned=no
  6308. else
  6309. $as_echo "$as_me: failed program was:" >&5
  6310. sed 's/^/| /' conftest.$ac_ext >&5
  6311. ac_cv_c_char_unsigned=yes
  6312. fi
  6313. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6314. fi
  6315. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
  6316. $as_echo "$ac_cv_c_char_unsigned" >&6; }
  6317. if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
  6318. cat >>confdefs.h <<\_ACEOF
  6319. #define __CHAR_UNSIGNED__ 1
  6320. _ACEOF
  6321. fi
  6322. #AC_C_STRINGIZE
  6323. #AC_C_PROTOTYPES
  6324. #checkpoint
  6325. cat >confcache <<\_ACEOF
  6326. # This file is a shell script that caches the results of configure
  6327. # tests run on this system so they can be shared between configure
  6328. # scripts and configure runs, see configure's option --config-cache.
  6329. # It is not useful on other systems. If it contains results you don't
  6330. # want to keep, you may remove or edit it.
  6331. #
  6332. # config.status only pays attention to the cache file if you give it
  6333. # the --recheck option to rerun configure.
  6334. #
  6335. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  6336. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  6337. # following values.
  6338. _ACEOF
  6339. # The following way of writing the cache mishandles newlines in values,
  6340. # but we know of no workaround that is simple, portable, and efficient.
  6341. # So, we kill variables containing newlines.
  6342. # Ultrix sh set writes to stderr and can't be redirected directly,
  6343. # and sets the high bit in the cache file unless we assign to the vars.
  6344. (
  6345. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  6346. eval ac_val=\$$ac_var
  6347. case $ac_val in #(
  6348. *${as_nl}*)
  6349. case $ac_var in #(
  6350. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  6351. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  6352. esac
  6353. case $ac_var in #(
  6354. _ | IFS | as_nl) ;; #(
  6355. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  6356. *) $as_unset $ac_var ;;
  6357. esac ;;
  6358. esac
  6359. done
  6360. (set) 2>&1 |
  6361. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  6362. *${as_nl}ac_space=\ *)
  6363. # `set' does not quote correctly, so add quotes (double-quote
  6364. # substitution turns \\\\ into \\, and sed turns \\ into \).
  6365. sed -n \
  6366. "s/'/'\\\\''/g;
  6367. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  6368. ;; #(
  6369. *)
  6370. # `set' quotes correctly as required by POSIX, so do not add quotes.
  6371. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  6372. ;;
  6373. esac |
  6374. sort
  6375. ) |
  6376. sed '
  6377. /^ac_cv_env_/b end
  6378. t clear
  6379. :clear
  6380. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  6381. t end
  6382. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  6383. :end' >>confcache
  6384. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  6385. if test -w "$cache_file"; then
  6386. test "x$cache_file" != "x/dev/null" &&
  6387. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  6388. $as_echo "$as_me: updating cache $cache_file" >&6;}
  6389. cat confcache >$cache_file
  6390. else
  6391. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  6392. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  6393. fi
  6394. fi
  6395. rm -f confcache
  6396. # The cast to long int works around a bug in the HP C Compiler
  6397. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6398. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6399. # This bug is HP SR number 8606223364.
  6400. { $as_echo "$as_me:$LINENO: checking size of short" >&5
  6401. $as_echo_n "checking size of short... " >&6; }
  6402. if test "${ac_cv_sizeof_short+set}" = set; then
  6403. $as_echo_n "(cached) " >&6
  6404. else
  6405. if test "$cross_compiling" = yes; then
  6406. # Depending upon the size, compute the lo and hi bounds.
  6407. cat >conftest.$ac_ext <<_ACEOF
  6408. /* confdefs.h. */
  6409. _ACEOF
  6410. cat confdefs.h >>conftest.$ac_ext
  6411. cat >>conftest.$ac_ext <<_ACEOF
  6412. /* end confdefs.h. */
  6413. $ac_includes_default
  6414. int
  6415. main ()
  6416. {
  6417. static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= 0)];
  6418. test_array [0] = 0
  6419. ;
  6420. return 0;
  6421. }
  6422. _ACEOF
  6423. rm -f conftest.$ac_objext
  6424. if { (ac_try="$ac_compile"
  6425. case "(($ac_try" in
  6426. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6427. *) ac_try_echo=$ac_try;;
  6428. esac
  6429. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6430. $as_echo "$ac_try_echo") >&5
  6431. (eval "$ac_compile") 2>conftest.er1
  6432. ac_status=$?
  6433. grep -v '^ *+' conftest.er1 >conftest.err
  6434. rm -f conftest.er1
  6435. cat conftest.err >&5
  6436. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6437. (exit $ac_status); } && {
  6438. test -z "$ac_cxx_werror_flag" ||
  6439. test ! -s conftest.err
  6440. } && test -s conftest.$ac_objext; then
  6441. ac_lo=0 ac_mid=0
  6442. while :; do
  6443. cat >conftest.$ac_ext <<_ACEOF
  6444. /* confdefs.h. */
  6445. _ACEOF
  6446. cat confdefs.h >>conftest.$ac_ext
  6447. cat >>conftest.$ac_ext <<_ACEOF
  6448. /* end confdefs.h. */
  6449. $ac_includes_default
  6450. int
  6451. main ()
  6452. {
  6453. static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
  6454. test_array [0] = 0
  6455. ;
  6456. return 0;
  6457. }
  6458. _ACEOF
  6459. rm -f conftest.$ac_objext
  6460. if { (ac_try="$ac_compile"
  6461. case "(($ac_try" in
  6462. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6463. *) ac_try_echo=$ac_try;;
  6464. esac
  6465. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6466. $as_echo "$ac_try_echo") >&5
  6467. (eval "$ac_compile") 2>conftest.er1
  6468. ac_status=$?
  6469. grep -v '^ *+' conftest.er1 >conftest.err
  6470. rm -f conftest.er1
  6471. cat conftest.err >&5
  6472. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6473. (exit $ac_status); } && {
  6474. test -z "$ac_cxx_werror_flag" ||
  6475. test ! -s conftest.err
  6476. } && test -s conftest.$ac_objext; then
  6477. ac_hi=$ac_mid; break
  6478. else
  6479. $as_echo "$as_me: failed program was:" >&5
  6480. sed 's/^/| /' conftest.$ac_ext >&5
  6481. ac_lo=`expr $ac_mid + 1`
  6482. if test $ac_lo -le $ac_mid; then
  6483. ac_lo= ac_hi=
  6484. break
  6485. fi
  6486. ac_mid=`expr 2 '*' $ac_mid + 1`
  6487. fi
  6488. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6489. done
  6490. else
  6491. $as_echo "$as_me: failed program was:" >&5
  6492. sed 's/^/| /' conftest.$ac_ext >&5
  6493. cat >conftest.$ac_ext <<_ACEOF
  6494. /* confdefs.h. */
  6495. _ACEOF
  6496. cat confdefs.h >>conftest.$ac_ext
  6497. cat >>conftest.$ac_ext <<_ACEOF
  6498. /* end confdefs.h. */
  6499. $ac_includes_default
  6500. int
  6501. main ()
  6502. {
  6503. static int test_array [1 - 2 * !(((long int) (sizeof (short))) < 0)];
  6504. test_array [0] = 0
  6505. ;
  6506. return 0;
  6507. }
  6508. _ACEOF
  6509. rm -f conftest.$ac_objext
  6510. if { (ac_try="$ac_compile"
  6511. case "(($ac_try" in
  6512. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6513. *) ac_try_echo=$ac_try;;
  6514. esac
  6515. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6516. $as_echo "$ac_try_echo") >&5
  6517. (eval "$ac_compile") 2>conftest.er1
  6518. ac_status=$?
  6519. grep -v '^ *+' conftest.er1 >conftest.err
  6520. rm -f conftest.er1
  6521. cat conftest.err >&5
  6522. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6523. (exit $ac_status); } && {
  6524. test -z "$ac_cxx_werror_flag" ||
  6525. test ! -s conftest.err
  6526. } && test -s conftest.$ac_objext; then
  6527. ac_hi=-1 ac_mid=-1
  6528. while :; do
  6529. cat >conftest.$ac_ext <<_ACEOF
  6530. /* confdefs.h. */
  6531. _ACEOF
  6532. cat confdefs.h >>conftest.$ac_ext
  6533. cat >>conftest.$ac_ext <<_ACEOF
  6534. /* end confdefs.h. */
  6535. $ac_includes_default
  6536. int
  6537. main ()
  6538. {
  6539. static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)];
  6540. test_array [0] = 0
  6541. ;
  6542. return 0;
  6543. }
  6544. _ACEOF
  6545. rm -f conftest.$ac_objext
  6546. if { (ac_try="$ac_compile"
  6547. case "(($ac_try" in
  6548. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6549. *) ac_try_echo=$ac_try;;
  6550. esac
  6551. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6552. $as_echo "$ac_try_echo") >&5
  6553. (eval "$ac_compile") 2>conftest.er1
  6554. ac_status=$?
  6555. grep -v '^ *+' conftest.er1 >conftest.err
  6556. rm -f conftest.er1
  6557. cat conftest.err >&5
  6558. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6559. (exit $ac_status); } && {
  6560. test -z "$ac_cxx_werror_flag" ||
  6561. test ! -s conftest.err
  6562. } && test -s conftest.$ac_objext; then
  6563. ac_lo=$ac_mid; break
  6564. else
  6565. $as_echo "$as_me: failed program was:" >&5
  6566. sed 's/^/| /' conftest.$ac_ext >&5
  6567. ac_hi=`expr '(' $ac_mid ')' - 1`
  6568. if test $ac_mid -le $ac_hi; then
  6569. ac_lo= ac_hi=
  6570. break
  6571. fi
  6572. ac_mid=`expr 2 '*' $ac_mid`
  6573. fi
  6574. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6575. done
  6576. else
  6577. $as_echo "$as_me: failed program was:" >&5
  6578. sed 's/^/| /' conftest.$ac_ext >&5
  6579. ac_lo= ac_hi=
  6580. fi
  6581. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6582. fi
  6583. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6584. # Binary search between lo and hi bounds.
  6585. while test "x$ac_lo" != "x$ac_hi"; do
  6586. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  6587. cat >conftest.$ac_ext <<_ACEOF
  6588. /* confdefs.h. */
  6589. _ACEOF
  6590. cat confdefs.h >>conftest.$ac_ext
  6591. cat >>conftest.$ac_ext <<_ACEOF
  6592. /* end confdefs.h. */
  6593. $ac_includes_default
  6594. int
  6595. main ()
  6596. {
  6597. static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
  6598. test_array [0] = 0
  6599. ;
  6600. return 0;
  6601. }
  6602. _ACEOF
  6603. rm -f conftest.$ac_objext
  6604. if { (ac_try="$ac_compile"
  6605. case "(($ac_try" in
  6606. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6607. *) ac_try_echo=$ac_try;;
  6608. esac
  6609. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6610. $as_echo "$ac_try_echo") >&5
  6611. (eval "$ac_compile") 2>conftest.er1
  6612. ac_status=$?
  6613. grep -v '^ *+' conftest.er1 >conftest.err
  6614. rm -f conftest.er1
  6615. cat conftest.err >&5
  6616. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6617. (exit $ac_status); } && {
  6618. test -z "$ac_cxx_werror_flag" ||
  6619. test ! -s conftest.err
  6620. } && test -s conftest.$ac_objext; then
  6621. ac_hi=$ac_mid
  6622. else
  6623. $as_echo "$as_me: failed program was:" >&5
  6624. sed 's/^/| /' conftest.$ac_ext >&5
  6625. ac_lo=`expr '(' $ac_mid ')' + 1`
  6626. fi
  6627. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6628. done
  6629. case $ac_lo in
  6630. ?*) ac_cv_sizeof_short=$ac_lo;;
  6631. '') if test "$ac_cv_type_short" = yes; then
  6632. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  6633. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6634. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
  6635. See \`config.log' for more details." >&5
  6636. $as_echo "$as_me: error: cannot compute sizeof (short)
  6637. See \`config.log' for more details." >&2;}
  6638. { (exit 77); exit 77; }; }; }
  6639. else
  6640. ac_cv_sizeof_short=0
  6641. fi ;;
  6642. esac
  6643. else
  6644. cat >conftest.$ac_ext <<_ACEOF
  6645. /* confdefs.h. */
  6646. _ACEOF
  6647. cat confdefs.h >>conftest.$ac_ext
  6648. cat >>conftest.$ac_ext <<_ACEOF
  6649. /* end confdefs.h. */
  6650. $ac_includes_default
  6651. static long int longval () { return (long int) (sizeof (short)); }
  6652. static unsigned long int ulongval () { return (long int) (sizeof (short)); }
  6653. #include <stdio.h>
  6654. #include <stdlib.h>
  6655. int
  6656. main ()
  6657. {
  6658. FILE *f = fopen ("conftest.val", "w");
  6659. if (! f)
  6660. return 1;
  6661. if (((long int) (sizeof (short))) < 0)
  6662. {
  6663. long int i = longval ();
  6664. if (i != ((long int) (sizeof (short))))
  6665. return 1;
  6666. fprintf (f, "%ld", i);
  6667. }
  6668. else
  6669. {
  6670. unsigned long int i = ulongval ();
  6671. if (i != ((long int) (sizeof (short))))
  6672. return 1;
  6673. fprintf (f, "%lu", i);
  6674. }
  6675. /* Do not output a trailing newline, as this causes \r\n confusion
  6676. on some platforms. */
  6677. return ferror (f) || fclose (f) != 0;
  6678. ;
  6679. return 0;
  6680. }
  6681. _ACEOF
  6682. rm -f conftest$ac_exeext
  6683. if { (ac_try="$ac_link"
  6684. case "(($ac_try" in
  6685. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6686. *) ac_try_echo=$ac_try;;
  6687. esac
  6688. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6689. $as_echo "$ac_try_echo") >&5
  6690. (eval "$ac_link") 2>&5
  6691. ac_status=$?
  6692. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6693. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6694. { (case "(($ac_try" in
  6695. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6696. *) ac_try_echo=$ac_try;;
  6697. esac
  6698. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6699. $as_echo "$ac_try_echo") >&5
  6700. (eval "$ac_try") 2>&5
  6701. ac_status=$?
  6702. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6703. (exit $ac_status); }; }; then
  6704. ac_cv_sizeof_short=`cat conftest.val`
  6705. else
  6706. $as_echo "$as_me: program exited with status $ac_status" >&5
  6707. $as_echo "$as_me: failed program was:" >&5
  6708. sed 's/^/| /' conftest.$ac_ext >&5
  6709. ( exit $ac_status )
  6710. if test "$ac_cv_type_short" = yes; then
  6711. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  6712. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6713. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
  6714. See \`config.log' for more details." >&5
  6715. $as_echo "$as_me: error: cannot compute sizeof (short)
  6716. See \`config.log' for more details." >&2;}
  6717. { (exit 77); exit 77; }; }; }
  6718. else
  6719. ac_cv_sizeof_short=0
  6720. fi
  6721. fi
  6722. rm -rf conftest.dSYM
  6723. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6724. fi
  6725. rm -f conftest.val
  6726. fi
  6727. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
  6728. $as_echo "$ac_cv_sizeof_short" >&6; }
  6729. cat >>confdefs.h <<_ACEOF
  6730. #define SIZEOF_SHORT $ac_cv_sizeof_short
  6731. _ACEOF
  6732. # The cast to long int works around a bug in the HP C Compiler
  6733. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6734. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6735. # This bug is HP SR number 8606223364.
  6736. { $as_echo "$as_me:$LINENO: checking size of int" >&5
  6737. $as_echo_n "checking size of int... " >&6; }
  6738. if test "${ac_cv_sizeof_int+set}" = set; then
  6739. $as_echo_n "(cached) " >&6
  6740. else
  6741. if test "$cross_compiling" = yes; then
  6742. # Depending upon the size, compute the lo and hi bounds.
  6743. cat >conftest.$ac_ext <<_ACEOF
  6744. /* confdefs.h. */
  6745. _ACEOF
  6746. cat confdefs.h >>conftest.$ac_ext
  6747. cat >>conftest.$ac_ext <<_ACEOF
  6748. /* end confdefs.h. */
  6749. $ac_includes_default
  6750. int
  6751. main ()
  6752. {
  6753. static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
  6754. test_array [0] = 0
  6755. ;
  6756. return 0;
  6757. }
  6758. _ACEOF
  6759. rm -f conftest.$ac_objext
  6760. if { (ac_try="$ac_compile"
  6761. case "(($ac_try" in
  6762. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6763. *) ac_try_echo=$ac_try;;
  6764. esac
  6765. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6766. $as_echo "$ac_try_echo") >&5
  6767. (eval "$ac_compile") 2>conftest.er1
  6768. ac_status=$?
  6769. grep -v '^ *+' conftest.er1 >conftest.err
  6770. rm -f conftest.er1
  6771. cat conftest.err >&5
  6772. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6773. (exit $ac_status); } && {
  6774. test -z "$ac_cxx_werror_flag" ||
  6775. test ! -s conftest.err
  6776. } && test -s conftest.$ac_objext; then
  6777. ac_lo=0 ac_mid=0
  6778. while :; do
  6779. cat >conftest.$ac_ext <<_ACEOF
  6780. /* confdefs.h. */
  6781. _ACEOF
  6782. cat confdefs.h >>conftest.$ac_ext
  6783. cat >>conftest.$ac_ext <<_ACEOF
  6784. /* end confdefs.h. */
  6785. $ac_includes_default
  6786. int
  6787. main ()
  6788. {
  6789. static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
  6790. test_array [0] = 0
  6791. ;
  6792. return 0;
  6793. }
  6794. _ACEOF
  6795. rm -f conftest.$ac_objext
  6796. if { (ac_try="$ac_compile"
  6797. case "(($ac_try" in
  6798. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6799. *) ac_try_echo=$ac_try;;
  6800. esac
  6801. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6802. $as_echo "$ac_try_echo") >&5
  6803. (eval "$ac_compile") 2>conftest.er1
  6804. ac_status=$?
  6805. grep -v '^ *+' conftest.er1 >conftest.err
  6806. rm -f conftest.er1
  6807. cat conftest.err >&5
  6808. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6809. (exit $ac_status); } && {
  6810. test -z "$ac_cxx_werror_flag" ||
  6811. test ! -s conftest.err
  6812. } && test -s conftest.$ac_objext; then
  6813. ac_hi=$ac_mid; break
  6814. else
  6815. $as_echo "$as_me: failed program was:" >&5
  6816. sed 's/^/| /' conftest.$ac_ext >&5
  6817. ac_lo=`expr $ac_mid + 1`
  6818. if test $ac_lo -le $ac_mid; then
  6819. ac_lo= ac_hi=
  6820. break
  6821. fi
  6822. ac_mid=`expr 2 '*' $ac_mid + 1`
  6823. fi
  6824. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6825. done
  6826. else
  6827. $as_echo "$as_me: failed program was:" >&5
  6828. sed 's/^/| /' conftest.$ac_ext >&5
  6829. cat >conftest.$ac_ext <<_ACEOF
  6830. /* confdefs.h. */
  6831. _ACEOF
  6832. cat confdefs.h >>conftest.$ac_ext
  6833. cat >>conftest.$ac_ext <<_ACEOF
  6834. /* end confdefs.h. */
  6835. $ac_includes_default
  6836. int
  6837. main ()
  6838. {
  6839. static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
  6840. test_array [0] = 0
  6841. ;
  6842. return 0;
  6843. }
  6844. _ACEOF
  6845. rm -f conftest.$ac_objext
  6846. if { (ac_try="$ac_compile"
  6847. case "(($ac_try" in
  6848. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6849. *) ac_try_echo=$ac_try;;
  6850. esac
  6851. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6852. $as_echo "$ac_try_echo") >&5
  6853. (eval "$ac_compile") 2>conftest.er1
  6854. ac_status=$?
  6855. grep -v '^ *+' conftest.er1 >conftest.err
  6856. rm -f conftest.er1
  6857. cat conftest.err >&5
  6858. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6859. (exit $ac_status); } && {
  6860. test -z "$ac_cxx_werror_flag" ||
  6861. test ! -s conftest.err
  6862. } && test -s conftest.$ac_objext; then
  6863. ac_hi=-1 ac_mid=-1
  6864. while :; do
  6865. cat >conftest.$ac_ext <<_ACEOF
  6866. /* confdefs.h. */
  6867. _ACEOF
  6868. cat confdefs.h >>conftest.$ac_ext
  6869. cat >>conftest.$ac_ext <<_ACEOF
  6870. /* end confdefs.h. */
  6871. $ac_includes_default
  6872. int
  6873. main ()
  6874. {
  6875. static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
  6876. test_array [0] = 0
  6877. ;
  6878. return 0;
  6879. }
  6880. _ACEOF
  6881. rm -f conftest.$ac_objext
  6882. if { (ac_try="$ac_compile"
  6883. case "(($ac_try" in
  6884. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6885. *) ac_try_echo=$ac_try;;
  6886. esac
  6887. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6888. $as_echo "$ac_try_echo") >&5
  6889. (eval "$ac_compile") 2>conftest.er1
  6890. ac_status=$?
  6891. grep -v '^ *+' conftest.er1 >conftest.err
  6892. rm -f conftest.er1
  6893. cat conftest.err >&5
  6894. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6895. (exit $ac_status); } && {
  6896. test -z "$ac_cxx_werror_flag" ||
  6897. test ! -s conftest.err
  6898. } && test -s conftest.$ac_objext; then
  6899. ac_lo=$ac_mid; break
  6900. else
  6901. $as_echo "$as_me: failed program was:" >&5
  6902. sed 's/^/| /' conftest.$ac_ext >&5
  6903. ac_hi=`expr '(' $ac_mid ')' - 1`
  6904. if test $ac_mid -le $ac_hi; then
  6905. ac_lo= ac_hi=
  6906. break
  6907. fi
  6908. ac_mid=`expr 2 '*' $ac_mid`
  6909. fi
  6910. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6911. done
  6912. else
  6913. $as_echo "$as_me: failed program was:" >&5
  6914. sed 's/^/| /' conftest.$ac_ext >&5
  6915. ac_lo= ac_hi=
  6916. fi
  6917. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6918. fi
  6919. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6920. # Binary search between lo and hi bounds.
  6921. while test "x$ac_lo" != "x$ac_hi"; do
  6922. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  6923. cat >conftest.$ac_ext <<_ACEOF
  6924. /* confdefs.h. */
  6925. _ACEOF
  6926. cat confdefs.h >>conftest.$ac_ext
  6927. cat >>conftest.$ac_ext <<_ACEOF
  6928. /* end confdefs.h. */
  6929. $ac_includes_default
  6930. int
  6931. main ()
  6932. {
  6933. static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
  6934. test_array [0] = 0
  6935. ;
  6936. return 0;
  6937. }
  6938. _ACEOF
  6939. rm -f conftest.$ac_objext
  6940. if { (ac_try="$ac_compile"
  6941. case "(($ac_try" in
  6942. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6943. *) ac_try_echo=$ac_try;;
  6944. esac
  6945. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6946. $as_echo "$ac_try_echo") >&5
  6947. (eval "$ac_compile") 2>conftest.er1
  6948. ac_status=$?
  6949. grep -v '^ *+' conftest.er1 >conftest.err
  6950. rm -f conftest.er1
  6951. cat conftest.err >&5
  6952. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6953. (exit $ac_status); } && {
  6954. test -z "$ac_cxx_werror_flag" ||
  6955. test ! -s conftest.err
  6956. } && test -s conftest.$ac_objext; then
  6957. ac_hi=$ac_mid
  6958. else
  6959. $as_echo "$as_me: failed program was:" >&5
  6960. sed 's/^/| /' conftest.$ac_ext >&5
  6961. ac_lo=`expr '(' $ac_mid ')' + 1`
  6962. fi
  6963. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6964. done
  6965. case $ac_lo in
  6966. ?*) ac_cv_sizeof_int=$ac_lo;;
  6967. '') if test "$ac_cv_type_int" = yes; then
  6968. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  6969. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6970. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
  6971. See \`config.log' for more details." >&5
  6972. $as_echo "$as_me: error: cannot compute sizeof (int)
  6973. See \`config.log' for more details." >&2;}
  6974. { (exit 77); exit 77; }; }; }
  6975. else
  6976. ac_cv_sizeof_int=0
  6977. fi ;;
  6978. esac
  6979. else
  6980. cat >conftest.$ac_ext <<_ACEOF
  6981. /* confdefs.h. */
  6982. _ACEOF
  6983. cat confdefs.h >>conftest.$ac_ext
  6984. cat >>conftest.$ac_ext <<_ACEOF
  6985. /* end confdefs.h. */
  6986. $ac_includes_default
  6987. static long int longval () { return (long int) (sizeof (int)); }
  6988. static unsigned long int ulongval () { return (long int) (sizeof (int)); }
  6989. #include <stdio.h>
  6990. #include <stdlib.h>
  6991. int
  6992. main ()
  6993. {
  6994. FILE *f = fopen ("conftest.val", "w");
  6995. if (! f)
  6996. return 1;
  6997. if (((long int) (sizeof (int))) < 0)
  6998. {
  6999. long int i = longval ();
  7000. if (i != ((long int) (sizeof (int))))
  7001. return 1;
  7002. fprintf (f, "%ld", i);
  7003. }
  7004. else
  7005. {
  7006. unsigned long int i = ulongval ();
  7007. if (i != ((long int) (sizeof (int))))
  7008. return 1;
  7009. fprintf (f, "%lu", i);
  7010. }
  7011. /* Do not output a trailing newline, as this causes \r\n confusion
  7012. on some platforms. */
  7013. return ferror (f) || fclose (f) != 0;
  7014. ;
  7015. return 0;
  7016. }
  7017. _ACEOF
  7018. rm -f conftest$ac_exeext
  7019. if { (ac_try="$ac_link"
  7020. case "(($ac_try" in
  7021. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7022. *) ac_try_echo=$ac_try;;
  7023. esac
  7024. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7025. $as_echo "$ac_try_echo") >&5
  7026. (eval "$ac_link") 2>&5
  7027. ac_status=$?
  7028. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7029. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7030. { (case "(($ac_try" in
  7031. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7032. *) ac_try_echo=$ac_try;;
  7033. esac
  7034. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7035. $as_echo "$ac_try_echo") >&5
  7036. (eval "$ac_try") 2>&5
  7037. ac_status=$?
  7038. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7039. (exit $ac_status); }; }; then
  7040. ac_cv_sizeof_int=`cat conftest.val`
  7041. else
  7042. $as_echo "$as_me: program exited with status $ac_status" >&5
  7043. $as_echo "$as_me: failed program was:" >&5
  7044. sed 's/^/| /' conftest.$ac_ext >&5
  7045. ( exit $ac_status )
  7046. if test "$ac_cv_type_int" = yes; then
  7047. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  7048. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7049. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
  7050. See \`config.log' for more details." >&5
  7051. $as_echo "$as_me: error: cannot compute sizeof (int)
  7052. See \`config.log' for more details." >&2;}
  7053. { (exit 77); exit 77; }; }; }
  7054. else
  7055. ac_cv_sizeof_int=0
  7056. fi
  7057. fi
  7058. rm -rf conftest.dSYM
  7059. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7060. fi
  7061. rm -f conftest.val
  7062. fi
  7063. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
  7064. $as_echo "$ac_cv_sizeof_int" >&6; }
  7065. cat >>confdefs.h <<_ACEOF
  7066. #define SIZEOF_INT $ac_cv_sizeof_int
  7067. _ACEOF
  7068. # The cast to long int works around a bug in the HP C Compiler
  7069. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  7070. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  7071. # This bug is HP SR number 8606223364.
  7072. { $as_echo "$as_me:$LINENO: checking size of long" >&5
  7073. $as_echo_n "checking size of long... " >&6; }
  7074. if test "${ac_cv_sizeof_long+set}" = set; then
  7075. $as_echo_n "(cached) " >&6
  7076. else
  7077. if test "$cross_compiling" = yes; then
  7078. # Depending upon the size, compute the lo and hi bounds.
  7079. cat >conftest.$ac_ext <<_ACEOF
  7080. /* confdefs.h. */
  7081. _ACEOF
  7082. cat confdefs.h >>conftest.$ac_ext
  7083. cat >>conftest.$ac_ext <<_ACEOF
  7084. /* end confdefs.h. */
  7085. $ac_includes_default
  7086. int
  7087. main ()
  7088. {
  7089. static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
  7090. test_array [0] = 0
  7091. ;
  7092. return 0;
  7093. }
  7094. _ACEOF
  7095. rm -f conftest.$ac_objext
  7096. if { (ac_try="$ac_compile"
  7097. case "(($ac_try" in
  7098. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7099. *) ac_try_echo=$ac_try;;
  7100. esac
  7101. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7102. $as_echo "$ac_try_echo") >&5
  7103. (eval "$ac_compile") 2>conftest.er1
  7104. ac_status=$?
  7105. grep -v '^ *+' conftest.er1 >conftest.err
  7106. rm -f conftest.er1
  7107. cat conftest.err >&5
  7108. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7109. (exit $ac_status); } && {
  7110. test -z "$ac_cxx_werror_flag" ||
  7111. test ! -s conftest.err
  7112. } && test -s conftest.$ac_objext; then
  7113. ac_lo=0 ac_mid=0
  7114. while :; do
  7115. cat >conftest.$ac_ext <<_ACEOF
  7116. /* confdefs.h. */
  7117. _ACEOF
  7118. cat confdefs.h >>conftest.$ac_ext
  7119. cat >>conftest.$ac_ext <<_ACEOF
  7120. /* end confdefs.h. */
  7121. $ac_includes_default
  7122. int
  7123. main ()
  7124. {
  7125. static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
  7126. test_array [0] = 0
  7127. ;
  7128. return 0;
  7129. }
  7130. _ACEOF
  7131. rm -f conftest.$ac_objext
  7132. if { (ac_try="$ac_compile"
  7133. case "(($ac_try" in
  7134. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7135. *) ac_try_echo=$ac_try;;
  7136. esac
  7137. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7138. $as_echo "$ac_try_echo") >&5
  7139. (eval "$ac_compile") 2>conftest.er1
  7140. ac_status=$?
  7141. grep -v '^ *+' conftest.er1 >conftest.err
  7142. rm -f conftest.er1
  7143. cat conftest.err >&5
  7144. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7145. (exit $ac_status); } && {
  7146. test -z "$ac_cxx_werror_flag" ||
  7147. test ! -s conftest.err
  7148. } && test -s conftest.$ac_objext; then
  7149. ac_hi=$ac_mid; break
  7150. else
  7151. $as_echo "$as_me: failed program was:" >&5
  7152. sed 's/^/| /' conftest.$ac_ext >&5
  7153. ac_lo=`expr $ac_mid + 1`
  7154. if test $ac_lo -le $ac_mid; then
  7155. ac_lo= ac_hi=
  7156. break
  7157. fi
  7158. ac_mid=`expr 2 '*' $ac_mid + 1`
  7159. fi
  7160. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7161. done
  7162. else
  7163. $as_echo "$as_me: failed program was:" >&5
  7164. sed 's/^/| /' conftest.$ac_ext >&5
  7165. cat >conftest.$ac_ext <<_ACEOF
  7166. /* confdefs.h. */
  7167. _ACEOF
  7168. cat confdefs.h >>conftest.$ac_ext
  7169. cat >>conftest.$ac_ext <<_ACEOF
  7170. /* end confdefs.h. */
  7171. $ac_includes_default
  7172. int
  7173. main ()
  7174. {
  7175. static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
  7176. test_array [0] = 0
  7177. ;
  7178. return 0;
  7179. }
  7180. _ACEOF
  7181. rm -f conftest.$ac_objext
  7182. if { (ac_try="$ac_compile"
  7183. case "(($ac_try" in
  7184. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7185. *) ac_try_echo=$ac_try;;
  7186. esac
  7187. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7188. $as_echo "$ac_try_echo") >&5
  7189. (eval "$ac_compile") 2>conftest.er1
  7190. ac_status=$?
  7191. grep -v '^ *+' conftest.er1 >conftest.err
  7192. rm -f conftest.er1
  7193. cat conftest.err >&5
  7194. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7195. (exit $ac_status); } && {
  7196. test -z "$ac_cxx_werror_flag" ||
  7197. test ! -s conftest.err
  7198. } && test -s conftest.$ac_objext; then
  7199. ac_hi=-1 ac_mid=-1
  7200. while :; do
  7201. cat >conftest.$ac_ext <<_ACEOF
  7202. /* confdefs.h. */
  7203. _ACEOF
  7204. cat confdefs.h >>conftest.$ac_ext
  7205. cat >>conftest.$ac_ext <<_ACEOF
  7206. /* end confdefs.h. */
  7207. $ac_includes_default
  7208. int
  7209. main ()
  7210. {
  7211. static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
  7212. test_array [0] = 0
  7213. ;
  7214. return 0;
  7215. }
  7216. _ACEOF
  7217. rm -f conftest.$ac_objext
  7218. if { (ac_try="$ac_compile"
  7219. case "(($ac_try" in
  7220. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7221. *) ac_try_echo=$ac_try;;
  7222. esac
  7223. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7224. $as_echo "$ac_try_echo") >&5
  7225. (eval "$ac_compile") 2>conftest.er1
  7226. ac_status=$?
  7227. grep -v '^ *+' conftest.er1 >conftest.err
  7228. rm -f conftest.er1
  7229. cat conftest.err >&5
  7230. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7231. (exit $ac_status); } && {
  7232. test -z "$ac_cxx_werror_flag" ||
  7233. test ! -s conftest.err
  7234. } && test -s conftest.$ac_objext; then
  7235. ac_lo=$ac_mid; break
  7236. else
  7237. $as_echo "$as_me: failed program was:" >&5
  7238. sed 's/^/| /' conftest.$ac_ext >&5
  7239. ac_hi=`expr '(' $ac_mid ')' - 1`
  7240. if test $ac_mid -le $ac_hi; then
  7241. ac_lo= ac_hi=
  7242. break
  7243. fi
  7244. ac_mid=`expr 2 '*' $ac_mid`
  7245. fi
  7246. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7247. done
  7248. else
  7249. $as_echo "$as_me: failed program was:" >&5
  7250. sed 's/^/| /' conftest.$ac_ext >&5
  7251. ac_lo= ac_hi=
  7252. fi
  7253. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7254. fi
  7255. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7256. # Binary search between lo and hi bounds.
  7257. while test "x$ac_lo" != "x$ac_hi"; do
  7258. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  7259. cat >conftest.$ac_ext <<_ACEOF
  7260. /* confdefs.h. */
  7261. _ACEOF
  7262. cat confdefs.h >>conftest.$ac_ext
  7263. cat >>conftest.$ac_ext <<_ACEOF
  7264. /* end confdefs.h. */
  7265. $ac_includes_default
  7266. int
  7267. main ()
  7268. {
  7269. static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
  7270. test_array [0] = 0
  7271. ;
  7272. return 0;
  7273. }
  7274. _ACEOF
  7275. rm -f conftest.$ac_objext
  7276. if { (ac_try="$ac_compile"
  7277. case "(($ac_try" in
  7278. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7279. *) ac_try_echo=$ac_try;;
  7280. esac
  7281. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7282. $as_echo "$ac_try_echo") >&5
  7283. (eval "$ac_compile") 2>conftest.er1
  7284. ac_status=$?
  7285. grep -v '^ *+' conftest.er1 >conftest.err
  7286. rm -f conftest.er1
  7287. cat conftest.err >&5
  7288. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7289. (exit $ac_status); } && {
  7290. test -z "$ac_cxx_werror_flag" ||
  7291. test ! -s conftest.err
  7292. } && test -s conftest.$ac_objext; then
  7293. ac_hi=$ac_mid
  7294. else
  7295. $as_echo "$as_me: failed program was:" >&5
  7296. sed 's/^/| /' conftest.$ac_ext >&5
  7297. ac_lo=`expr '(' $ac_mid ')' + 1`
  7298. fi
  7299. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7300. done
  7301. case $ac_lo in
  7302. ?*) ac_cv_sizeof_long=$ac_lo;;
  7303. '') if test "$ac_cv_type_long" = yes; then
  7304. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  7305. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7306. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
  7307. See \`config.log' for more details." >&5
  7308. $as_echo "$as_me: error: cannot compute sizeof (long)
  7309. See \`config.log' for more details." >&2;}
  7310. { (exit 77); exit 77; }; }; }
  7311. else
  7312. ac_cv_sizeof_long=0
  7313. fi ;;
  7314. esac
  7315. else
  7316. cat >conftest.$ac_ext <<_ACEOF
  7317. /* confdefs.h. */
  7318. _ACEOF
  7319. cat confdefs.h >>conftest.$ac_ext
  7320. cat >>conftest.$ac_ext <<_ACEOF
  7321. /* end confdefs.h. */
  7322. $ac_includes_default
  7323. static long int longval () { return (long int) (sizeof (long)); }
  7324. static unsigned long int ulongval () { return (long int) (sizeof (long)); }
  7325. #include <stdio.h>
  7326. #include <stdlib.h>
  7327. int
  7328. main ()
  7329. {
  7330. FILE *f = fopen ("conftest.val", "w");
  7331. if (! f)
  7332. return 1;
  7333. if (((long int) (sizeof (long))) < 0)
  7334. {
  7335. long int i = longval ();
  7336. if (i != ((long int) (sizeof (long))))
  7337. return 1;
  7338. fprintf (f, "%ld", i);
  7339. }
  7340. else
  7341. {
  7342. unsigned long int i = ulongval ();
  7343. if (i != ((long int) (sizeof (long))))
  7344. return 1;
  7345. fprintf (f, "%lu", i);
  7346. }
  7347. /* Do not output a trailing newline, as this causes \r\n confusion
  7348. on some platforms. */
  7349. return ferror (f) || fclose (f) != 0;
  7350. ;
  7351. return 0;
  7352. }
  7353. _ACEOF
  7354. rm -f conftest$ac_exeext
  7355. if { (ac_try="$ac_link"
  7356. case "(($ac_try" in
  7357. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7358. *) ac_try_echo=$ac_try;;
  7359. esac
  7360. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7361. $as_echo "$ac_try_echo") >&5
  7362. (eval "$ac_link") 2>&5
  7363. ac_status=$?
  7364. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7365. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7366. { (case "(($ac_try" in
  7367. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7368. *) ac_try_echo=$ac_try;;
  7369. esac
  7370. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7371. $as_echo "$ac_try_echo") >&5
  7372. (eval "$ac_try") 2>&5
  7373. ac_status=$?
  7374. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7375. (exit $ac_status); }; }; then
  7376. ac_cv_sizeof_long=`cat conftest.val`
  7377. else
  7378. $as_echo "$as_me: program exited with status $ac_status" >&5
  7379. $as_echo "$as_me: failed program was:" >&5
  7380. sed 's/^/| /' conftest.$ac_ext >&5
  7381. ( exit $ac_status )
  7382. if test "$ac_cv_type_long" = yes; then
  7383. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  7384. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7385. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
  7386. See \`config.log' for more details." >&5
  7387. $as_echo "$as_me: error: cannot compute sizeof (long)
  7388. See \`config.log' for more details." >&2;}
  7389. { (exit 77); exit 77; }; }; }
  7390. else
  7391. ac_cv_sizeof_long=0
  7392. fi
  7393. fi
  7394. rm -rf conftest.dSYM
  7395. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7396. fi
  7397. rm -f conftest.val
  7398. fi
  7399. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
  7400. $as_echo "$ac_cv_sizeof_long" >&6; }
  7401. cat >>confdefs.h <<_ACEOF
  7402. #define SIZEOF_LONG $ac_cv_sizeof_long
  7403. _ACEOF
  7404. # The cast to long int works around a bug in the HP C Compiler
  7405. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  7406. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  7407. # This bug is HP SR number 8606223364.
  7408. { $as_echo "$as_me:$LINENO: checking size of long long" >&5
  7409. $as_echo_n "checking size of long long... " >&6; }
  7410. if test "${ac_cv_sizeof_long_long+set}" = set; then
  7411. $as_echo_n "(cached) " >&6
  7412. else
  7413. if test "$cross_compiling" = yes; then
  7414. # Depending upon the size, compute the lo and hi bounds.
  7415. cat >conftest.$ac_ext <<_ACEOF
  7416. /* confdefs.h. */
  7417. _ACEOF
  7418. cat confdefs.h >>conftest.$ac_ext
  7419. cat >>conftest.$ac_ext <<_ACEOF
  7420. /* end confdefs.h. */
  7421. $ac_includes_default
  7422. int
  7423. main ()
  7424. {
  7425. static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= 0)];
  7426. test_array [0] = 0
  7427. ;
  7428. return 0;
  7429. }
  7430. _ACEOF
  7431. rm -f conftest.$ac_objext
  7432. if { (ac_try="$ac_compile"
  7433. case "(($ac_try" in
  7434. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7435. *) ac_try_echo=$ac_try;;
  7436. esac
  7437. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7438. $as_echo "$ac_try_echo") >&5
  7439. (eval "$ac_compile") 2>conftest.er1
  7440. ac_status=$?
  7441. grep -v '^ *+' conftest.er1 >conftest.err
  7442. rm -f conftest.er1
  7443. cat conftest.err >&5
  7444. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7445. (exit $ac_status); } && {
  7446. test -z "$ac_cxx_werror_flag" ||
  7447. test ! -s conftest.err
  7448. } && test -s conftest.$ac_objext; then
  7449. ac_lo=0 ac_mid=0
  7450. while :; do
  7451. cat >conftest.$ac_ext <<_ACEOF
  7452. /* confdefs.h. */
  7453. _ACEOF
  7454. cat confdefs.h >>conftest.$ac_ext
  7455. cat >>conftest.$ac_ext <<_ACEOF
  7456. /* end confdefs.h. */
  7457. $ac_includes_default
  7458. int
  7459. main ()
  7460. {
  7461. static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
  7462. test_array [0] = 0
  7463. ;
  7464. return 0;
  7465. }
  7466. _ACEOF
  7467. rm -f conftest.$ac_objext
  7468. if { (ac_try="$ac_compile"
  7469. case "(($ac_try" in
  7470. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7471. *) ac_try_echo=$ac_try;;
  7472. esac
  7473. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7474. $as_echo "$ac_try_echo") >&5
  7475. (eval "$ac_compile") 2>conftest.er1
  7476. ac_status=$?
  7477. grep -v '^ *+' conftest.er1 >conftest.err
  7478. rm -f conftest.er1
  7479. cat conftest.err >&5
  7480. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7481. (exit $ac_status); } && {
  7482. test -z "$ac_cxx_werror_flag" ||
  7483. test ! -s conftest.err
  7484. } && test -s conftest.$ac_objext; then
  7485. ac_hi=$ac_mid; break
  7486. else
  7487. $as_echo "$as_me: failed program was:" >&5
  7488. sed 's/^/| /' conftest.$ac_ext >&5
  7489. ac_lo=`expr $ac_mid + 1`
  7490. if test $ac_lo -le $ac_mid; then
  7491. ac_lo= ac_hi=
  7492. break
  7493. fi
  7494. ac_mid=`expr 2 '*' $ac_mid + 1`
  7495. fi
  7496. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7497. done
  7498. else
  7499. $as_echo "$as_me: failed program was:" >&5
  7500. sed 's/^/| /' conftest.$ac_ext >&5
  7501. cat >conftest.$ac_ext <<_ACEOF
  7502. /* confdefs.h. */
  7503. _ACEOF
  7504. cat confdefs.h >>conftest.$ac_ext
  7505. cat >>conftest.$ac_ext <<_ACEOF
  7506. /* end confdefs.h. */
  7507. $ac_includes_default
  7508. int
  7509. main ()
  7510. {
  7511. static int test_array [1 - 2 * !(((long int) (sizeof (long long))) < 0)];
  7512. test_array [0] = 0
  7513. ;
  7514. return 0;
  7515. }
  7516. _ACEOF
  7517. rm -f conftest.$ac_objext
  7518. if { (ac_try="$ac_compile"
  7519. case "(($ac_try" in
  7520. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7521. *) ac_try_echo=$ac_try;;
  7522. esac
  7523. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7524. $as_echo "$ac_try_echo") >&5
  7525. (eval "$ac_compile") 2>conftest.er1
  7526. ac_status=$?
  7527. grep -v '^ *+' conftest.er1 >conftest.err
  7528. rm -f conftest.er1
  7529. cat conftest.err >&5
  7530. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7531. (exit $ac_status); } && {
  7532. test -z "$ac_cxx_werror_flag" ||
  7533. test ! -s conftest.err
  7534. } && test -s conftest.$ac_objext; then
  7535. ac_hi=-1 ac_mid=-1
  7536. while :; do
  7537. cat >conftest.$ac_ext <<_ACEOF
  7538. /* confdefs.h. */
  7539. _ACEOF
  7540. cat confdefs.h >>conftest.$ac_ext
  7541. cat >>conftest.$ac_ext <<_ACEOF
  7542. /* end confdefs.h. */
  7543. $ac_includes_default
  7544. int
  7545. main ()
  7546. {
  7547. static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= $ac_mid)];
  7548. test_array [0] = 0
  7549. ;
  7550. return 0;
  7551. }
  7552. _ACEOF
  7553. rm -f conftest.$ac_objext
  7554. if { (ac_try="$ac_compile"
  7555. case "(($ac_try" in
  7556. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7557. *) ac_try_echo=$ac_try;;
  7558. esac
  7559. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7560. $as_echo "$ac_try_echo") >&5
  7561. (eval "$ac_compile") 2>conftest.er1
  7562. ac_status=$?
  7563. grep -v '^ *+' conftest.er1 >conftest.err
  7564. rm -f conftest.er1
  7565. cat conftest.err >&5
  7566. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7567. (exit $ac_status); } && {
  7568. test -z "$ac_cxx_werror_flag" ||
  7569. test ! -s conftest.err
  7570. } && test -s conftest.$ac_objext; then
  7571. ac_lo=$ac_mid; break
  7572. else
  7573. $as_echo "$as_me: failed program was:" >&5
  7574. sed 's/^/| /' conftest.$ac_ext >&5
  7575. ac_hi=`expr '(' $ac_mid ')' - 1`
  7576. if test $ac_mid -le $ac_hi; then
  7577. ac_lo= ac_hi=
  7578. break
  7579. fi
  7580. ac_mid=`expr 2 '*' $ac_mid`
  7581. fi
  7582. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7583. done
  7584. else
  7585. $as_echo "$as_me: failed program was:" >&5
  7586. sed 's/^/| /' conftest.$ac_ext >&5
  7587. ac_lo= ac_hi=
  7588. fi
  7589. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7590. fi
  7591. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7592. # Binary search between lo and hi bounds.
  7593. while test "x$ac_lo" != "x$ac_hi"; do
  7594. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  7595. cat >conftest.$ac_ext <<_ACEOF
  7596. /* confdefs.h. */
  7597. _ACEOF
  7598. cat confdefs.h >>conftest.$ac_ext
  7599. cat >>conftest.$ac_ext <<_ACEOF
  7600. /* end confdefs.h. */
  7601. $ac_includes_default
  7602. int
  7603. main ()
  7604. {
  7605. static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
  7606. test_array [0] = 0
  7607. ;
  7608. return 0;
  7609. }
  7610. _ACEOF
  7611. rm -f conftest.$ac_objext
  7612. if { (ac_try="$ac_compile"
  7613. case "(($ac_try" in
  7614. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7615. *) ac_try_echo=$ac_try;;
  7616. esac
  7617. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7618. $as_echo "$ac_try_echo") >&5
  7619. (eval "$ac_compile") 2>conftest.er1
  7620. ac_status=$?
  7621. grep -v '^ *+' conftest.er1 >conftest.err
  7622. rm -f conftest.er1
  7623. cat conftest.err >&5
  7624. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7625. (exit $ac_status); } && {
  7626. test -z "$ac_cxx_werror_flag" ||
  7627. test ! -s conftest.err
  7628. } && test -s conftest.$ac_objext; then
  7629. ac_hi=$ac_mid
  7630. else
  7631. $as_echo "$as_me: failed program was:" >&5
  7632. sed 's/^/| /' conftest.$ac_ext >&5
  7633. ac_lo=`expr '(' $ac_mid ')' + 1`
  7634. fi
  7635. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7636. done
  7637. case $ac_lo in
  7638. ?*) ac_cv_sizeof_long_long=$ac_lo;;
  7639. '') if test "$ac_cv_type_long_long" = yes; then
  7640. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  7641. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7642. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
  7643. See \`config.log' for more details." >&5
  7644. $as_echo "$as_me: error: cannot compute sizeof (long long)
  7645. See \`config.log' for more details." >&2;}
  7646. { (exit 77); exit 77; }; }; }
  7647. else
  7648. ac_cv_sizeof_long_long=0
  7649. fi ;;
  7650. esac
  7651. else
  7652. cat >conftest.$ac_ext <<_ACEOF
  7653. /* confdefs.h. */
  7654. _ACEOF
  7655. cat confdefs.h >>conftest.$ac_ext
  7656. cat >>conftest.$ac_ext <<_ACEOF
  7657. /* end confdefs.h. */
  7658. $ac_includes_default
  7659. static long int longval () { return (long int) (sizeof (long long)); }
  7660. static unsigned long int ulongval () { return (long int) (sizeof (long long)); }
  7661. #include <stdio.h>
  7662. #include <stdlib.h>
  7663. int
  7664. main ()
  7665. {
  7666. FILE *f = fopen ("conftest.val", "w");
  7667. if (! f)
  7668. return 1;
  7669. if (((long int) (sizeof (long long))) < 0)
  7670. {
  7671. long int i = longval ();
  7672. if (i != ((long int) (sizeof (long long))))
  7673. return 1;
  7674. fprintf (f, "%ld", i);
  7675. }
  7676. else
  7677. {
  7678. unsigned long int i = ulongval ();
  7679. if (i != ((long int) (sizeof (long long))))
  7680. return 1;
  7681. fprintf (f, "%lu", i);
  7682. }
  7683. /* Do not output a trailing newline, as this causes \r\n confusion
  7684. on some platforms. */
  7685. return ferror (f) || fclose (f) != 0;
  7686. ;
  7687. return 0;
  7688. }
  7689. _ACEOF
  7690. rm -f conftest$ac_exeext
  7691. if { (ac_try="$ac_link"
  7692. case "(($ac_try" in
  7693. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7694. *) ac_try_echo=$ac_try;;
  7695. esac
  7696. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7697. $as_echo "$ac_try_echo") >&5
  7698. (eval "$ac_link") 2>&5
  7699. ac_status=$?
  7700. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7701. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7702. { (case "(($ac_try" in
  7703. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7704. *) ac_try_echo=$ac_try;;
  7705. esac
  7706. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7707. $as_echo "$ac_try_echo") >&5
  7708. (eval "$ac_try") 2>&5
  7709. ac_status=$?
  7710. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7711. (exit $ac_status); }; }; then
  7712. ac_cv_sizeof_long_long=`cat conftest.val`
  7713. else
  7714. $as_echo "$as_me: program exited with status $ac_status" >&5
  7715. $as_echo "$as_me: failed program was:" >&5
  7716. sed 's/^/| /' conftest.$ac_ext >&5
  7717. ( exit $ac_status )
  7718. if test "$ac_cv_type_long_long" = yes; then
  7719. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  7720. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7721. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
  7722. See \`config.log' for more details." >&5
  7723. $as_echo "$as_me: error: cannot compute sizeof (long long)
  7724. See \`config.log' for more details." >&2;}
  7725. { (exit 77); exit 77; }; }; }
  7726. else
  7727. ac_cv_sizeof_long_long=0
  7728. fi
  7729. fi
  7730. rm -rf conftest.dSYM
  7731. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7732. fi
  7733. rm -f conftest.val
  7734. fi
  7735. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
  7736. $as_echo "$ac_cv_sizeof_long_long" >&6; }
  7737. cat >>confdefs.h <<_ACEOF
  7738. #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  7739. _ACEOF
  7740. # The cast to long int works around a bug in the HP C Compiler
  7741. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  7742. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  7743. # This bug is HP SR number 8606223364.
  7744. { $as_echo "$as_me:$LINENO: checking size of size_t" >&5
  7745. $as_echo_n "checking size of size_t... " >&6; }
  7746. if test "${ac_cv_sizeof_size_t+set}" = set; then
  7747. $as_echo_n "(cached) " >&6
  7748. else
  7749. if test "$cross_compiling" = yes; then
  7750. # Depending upon the size, compute the lo and hi bounds.
  7751. cat >conftest.$ac_ext <<_ACEOF
  7752. /* confdefs.h. */
  7753. _ACEOF
  7754. cat confdefs.h >>conftest.$ac_ext
  7755. cat >>conftest.$ac_ext <<_ACEOF
  7756. /* end confdefs.h. */
  7757. $ac_includes_default
  7758. int
  7759. main ()
  7760. {
  7761. static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
  7762. test_array [0] = 0
  7763. ;
  7764. return 0;
  7765. }
  7766. _ACEOF
  7767. rm -f conftest.$ac_objext
  7768. if { (ac_try="$ac_compile"
  7769. case "(($ac_try" in
  7770. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7771. *) ac_try_echo=$ac_try;;
  7772. esac
  7773. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7774. $as_echo "$ac_try_echo") >&5
  7775. (eval "$ac_compile") 2>conftest.er1
  7776. ac_status=$?
  7777. grep -v '^ *+' conftest.er1 >conftest.err
  7778. rm -f conftest.er1
  7779. cat conftest.err >&5
  7780. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7781. (exit $ac_status); } && {
  7782. test -z "$ac_cxx_werror_flag" ||
  7783. test ! -s conftest.err
  7784. } && test -s conftest.$ac_objext; then
  7785. ac_lo=0 ac_mid=0
  7786. while :; do
  7787. cat >conftest.$ac_ext <<_ACEOF
  7788. /* confdefs.h. */
  7789. _ACEOF
  7790. cat confdefs.h >>conftest.$ac_ext
  7791. cat >>conftest.$ac_ext <<_ACEOF
  7792. /* end confdefs.h. */
  7793. $ac_includes_default
  7794. int
  7795. main ()
  7796. {
  7797. static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
  7798. test_array [0] = 0
  7799. ;
  7800. return 0;
  7801. }
  7802. _ACEOF
  7803. rm -f conftest.$ac_objext
  7804. if { (ac_try="$ac_compile"
  7805. case "(($ac_try" in
  7806. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7807. *) ac_try_echo=$ac_try;;
  7808. esac
  7809. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7810. $as_echo "$ac_try_echo") >&5
  7811. (eval "$ac_compile") 2>conftest.er1
  7812. ac_status=$?
  7813. grep -v '^ *+' conftest.er1 >conftest.err
  7814. rm -f conftest.er1
  7815. cat conftest.err >&5
  7816. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7817. (exit $ac_status); } && {
  7818. test -z "$ac_cxx_werror_flag" ||
  7819. test ! -s conftest.err
  7820. } && test -s conftest.$ac_objext; then
  7821. ac_hi=$ac_mid; break
  7822. else
  7823. $as_echo "$as_me: failed program was:" >&5
  7824. sed 's/^/| /' conftest.$ac_ext >&5
  7825. ac_lo=`expr $ac_mid + 1`
  7826. if test $ac_lo -le $ac_mid; then
  7827. ac_lo= ac_hi=
  7828. break
  7829. fi
  7830. ac_mid=`expr 2 '*' $ac_mid + 1`
  7831. fi
  7832. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7833. done
  7834. else
  7835. $as_echo "$as_me: failed program was:" >&5
  7836. sed 's/^/| /' conftest.$ac_ext >&5
  7837. cat >conftest.$ac_ext <<_ACEOF
  7838. /* confdefs.h. */
  7839. _ACEOF
  7840. cat confdefs.h >>conftest.$ac_ext
  7841. cat >>conftest.$ac_ext <<_ACEOF
  7842. /* end confdefs.h. */
  7843. $ac_includes_default
  7844. int
  7845. main ()
  7846. {
  7847. static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
  7848. test_array [0] = 0
  7849. ;
  7850. return 0;
  7851. }
  7852. _ACEOF
  7853. rm -f conftest.$ac_objext
  7854. if { (ac_try="$ac_compile"
  7855. case "(($ac_try" in
  7856. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7857. *) ac_try_echo=$ac_try;;
  7858. esac
  7859. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7860. $as_echo "$ac_try_echo") >&5
  7861. (eval "$ac_compile") 2>conftest.er1
  7862. ac_status=$?
  7863. grep -v '^ *+' conftest.er1 >conftest.err
  7864. rm -f conftest.er1
  7865. cat conftest.err >&5
  7866. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7867. (exit $ac_status); } && {
  7868. test -z "$ac_cxx_werror_flag" ||
  7869. test ! -s conftest.err
  7870. } && test -s conftest.$ac_objext; then
  7871. ac_hi=-1 ac_mid=-1
  7872. while :; do
  7873. cat >conftest.$ac_ext <<_ACEOF
  7874. /* confdefs.h. */
  7875. _ACEOF
  7876. cat confdefs.h >>conftest.$ac_ext
  7877. cat >>conftest.$ac_ext <<_ACEOF
  7878. /* end confdefs.h. */
  7879. $ac_includes_default
  7880. int
  7881. main ()
  7882. {
  7883. static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
  7884. test_array [0] = 0
  7885. ;
  7886. return 0;
  7887. }
  7888. _ACEOF
  7889. rm -f conftest.$ac_objext
  7890. if { (ac_try="$ac_compile"
  7891. case "(($ac_try" in
  7892. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7893. *) ac_try_echo=$ac_try;;
  7894. esac
  7895. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7896. $as_echo "$ac_try_echo") >&5
  7897. (eval "$ac_compile") 2>conftest.er1
  7898. ac_status=$?
  7899. grep -v '^ *+' conftest.er1 >conftest.err
  7900. rm -f conftest.er1
  7901. cat conftest.err >&5
  7902. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7903. (exit $ac_status); } && {
  7904. test -z "$ac_cxx_werror_flag" ||
  7905. test ! -s conftest.err
  7906. } && test -s conftest.$ac_objext; then
  7907. ac_lo=$ac_mid; break
  7908. else
  7909. $as_echo "$as_me: failed program was:" >&5
  7910. sed 's/^/| /' conftest.$ac_ext >&5
  7911. ac_hi=`expr '(' $ac_mid ')' - 1`
  7912. if test $ac_mid -le $ac_hi; then
  7913. ac_lo= ac_hi=
  7914. break
  7915. fi
  7916. ac_mid=`expr 2 '*' $ac_mid`
  7917. fi
  7918. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7919. done
  7920. else
  7921. $as_echo "$as_me: failed program was:" >&5
  7922. sed 's/^/| /' conftest.$ac_ext >&5
  7923. ac_lo= ac_hi=
  7924. fi
  7925. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7926. fi
  7927. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7928. # Binary search between lo and hi bounds.
  7929. while test "x$ac_lo" != "x$ac_hi"; do
  7930. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  7931. cat >conftest.$ac_ext <<_ACEOF
  7932. /* confdefs.h. */
  7933. _ACEOF
  7934. cat confdefs.h >>conftest.$ac_ext
  7935. cat >>conftest.$ac_ext <<_ACEOF
  7936. /* end confdefs.h. */
  7937. $ac_includes_default
  7938. int
  7939. main ()
  7940. {
  7941. static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
  7942. test_array [0] = 0
  7943. ;
  7944. return 0;
  7945. }
  7946. _ACEOF
  7947. rm -f conftest.$ac_objext
  7948. if { (ac_try="$ac_compile"
  7949. case "(($ac_try" in
  7950. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7951. *) ac_try_echo=$ac_try;;
  7952. esac
  7953. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7954. $as_echo "$ac_try_echo") >&5
  7955. (eval "$ac_compile") 2>conftest.er1
  7956. ac_status=$?
  7957. grep -v '^ *+' conftest.er1 >conftest.err
  7958. rm -f conftest.er1
  7959. cat conftest.err >&5
  7960. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7961. (exit $ac_status); } && {
  7962. test -z "$ac_cxx_werror_flag" ||
  7963. test ! -s conftest.err
  7964. } && test -s conftest.$ac_objext; then
  7965. ac_hi=$ac_mid
  7966. else
  7967. $as_echo "$as_me: failed program was:" >&5
  7968. sed 's/^/| /' conftest.$ac_ext >&5
  7969. ac_lo=`expr '(' $ac_mid ')' + 1`
  7970. fi
  7971. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7972. done
  7973. case $ac_lo in
  7974. ?*) ac_cv_sizeof_size_t=$ac_lo;;
  7975. '') if test "$ac_cv_type_size_t" = yes; then
  7976. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  7977. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7978. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
  7979. See \`config.log' for more details." >&5
  7980. $as_echo "$as_me: error: cannot compute sizeof (size_t)
  7981. See \`config.log' for more details." >&2;}
  7982. { (exit 77); exit 77; }; }; }
  7983. else
  7984. ac_cv_sizeof_size_t=0
  7985. fi ;;
  7986. esac
  7987. else
  7988. cat >conftest.$ac_ext <<_ACEOF
  7989. /* confdefs.h. */
  7990. _ACEOF
  7991. cat confdefs.h >>conftest.$ac_ext
  7992. cat >>conftest.$ac_ext <<_ACEOF
  7993. /* end confdefs.h. */
  7994. $ac_includes_default
  7995. static long int longval () { return (long int) (sizeof (size_t)); }
  7996. static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
  7997. #include <stdio.h>
  7998. #include <stdlib.h>
  7999. int
  8000. main ()
  8001. {
  8002. FILE *f = fopen ("conftest.val", "w");
  8003. if (! f)
  8004. return 1;
  8005. if (((long int) (sizeof (size_t))) < 0)
  8006. {
  8007. long int i = longval ();
  8008. if (i != ((long int) (sizeof (size_t))))
  8009. return 1;
  8010. fprintf (f, "%ld", i);
  8011. }
  8012. else
  8013. {
  8014. unsigned long int i = ulongval ();
  8015. if (i != ((long int) (sizeof (size_t))))
  8016. return 1;
  8017. fprintf (f, "%lu", i);
  8018. }
  8019. /* Do not output a trailing newline, as this causes \r\n confusion
  8020. on some platforms. */
  8021. return ferror (f) || fclose (f) != 0;
  8022. ;
  8023. return 0;
  8024. }
  8025. _ACEOF
  8026. rm -f conftest$ac_exeext
  8027. if { (ac_try="$ac_link"
  8028. case "(($ac_try" in
  8029. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8030. *) ac_try_echo=$ac_try;;
  8031. esac
  8032. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8033. $as_echo "$ac_try_echo") >&5
  8034. (eval "$ac_link") 2>&5
  8035. ac_status=$?
  8036. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8037. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8038. { (case "(($ac_try" in
  8039. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8040. *) ac_try_echo=$ac_try;;
  8041. esac
  8042. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8043. $as_echo "$ac_try_echo") >&5
  8044. (eval "$ac_try") 2>&5
  8045. ac_status=$?
  8046. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8047. (exit $ac_status); }; }; then
  8048. ac_cv_sizeof_size_t=`cat conftest.val`
  8049. else
  8050. $as_echo "$as_me: program exited with status $ac_status" >&5
  8051. $as_echo "$as_me: failed program was:" >&5
  8052. sed 's/^/| /' conftest.$ac_ext >&5
  8053. ( exit $ac_status )
  8054. if test "$ac_cv_type_size_t" = yes; then
  8055. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  8056. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  8057. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
  8058. See \`config.log' for more details." >&5
  8059. $as_echo "$as_me: error: cannot compute sizeof (size_t)
  8060. See \`config.log' for more details." >&2;}
  8061. { (exit 77); exit 77; }; }; }
  8062. else
  8063. ac_cv_sizeof_size_t=0
  8064. fi
  8065. fi
  8066. rm -rf conftest.dSYM
  8067. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8068. fi
  8069. rm -f conftest.val
  8070. fi
  8071. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
  8072. $as_echo "$ac_cv_sizeof_size_t" >&6; }
  8073. cat >>confdefs.h <<_ACEOF
  8074. #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
  8075. _ACEOF
  8076. # The cast to long int works around a bug in the HP C Compiler
  8077. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  8078. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  8079. # This bug is HP SR number 8606223364.
  8080. { $as_echo "$as_me:$LINENO: checking size of ptrdiff_t" >&5
  8081. $as_echo_n "checking size of ptrdiff_t... " >&6; }
  8082. if test "${ac_cv_sizeof_ptrdiff_t+set}" = set; then
  8083. $as_echo_n "(cached) " >&6
  8084. else
  8085. if test "$cross_compiling" = yes; then
  8086. # Depending upon the size, compute the lo and hi bounds.
  8087. cat >conftest.$ac_ext <<_ACEOF
  8088. /* confdefs.h. */
  8089. _ACEOF
  8090. cat confdefs.h >>conftest.$ac_ext
  8091. cat >>conftest.$ac_ext <<_ACEOF
  8092. /* end confdefs.h. */
  8093. $ac_includes_default
  8094. int
  8095. main ()
  8096. {
  8097. static int test_array [1 - 2 * !(((long int) (sizeof (ptrdiff_t))) >= 0)];
  8098. test_array [0] = 0
  8099. ;
  8100. return 0;
  8101. }
  8102. _ACEOF
  8103. rm -f conftest.$ac_objext
  8104. if { (ac_try="$ac_compile"
  8105. case "(($ac_try" in
  8106. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8107. *) ac_try_echo=$ac_try;;
  8108. esac
  8109. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8110. $as_echo "$ac_try_echo") >&5
  8111. (eval "$ac_compile") 2>conftest.er1
  8112. ac_status=$?
  8113. grep -v '^ *+' conftest.er1 >conftest.err
  8114. rm -f conftest.er1
  8115. cat conftest.err >&5
  8116. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8117. (exit $ac_status); } && {
  8118. test -z "$ac_cxx_werror_flag" ||
  8119. test ! -s conftest.err
  8120. } && test -s conftest.$ac_objext; then
  8121. ac_lo=0 ac_mid=0
  8122. while :; do
  8123. cat >conftest.$ac_ext <<_ACEOF
  8124. /* confdefs.h. */
  8125. _ACEOF
  8126. cat confdefs.h >>conftest.$ac_ext
  8127. cat >>conftest.$ac_ext <<_ACEOF
  8128. /* end confdefs.h. */
  8129. $ac_includes_default
  8130. int
  8131. main ()
  8132. {
  8133. static int test_array [1 - 2 * !(((long int) (sizeof (ptrdiff_t))) <= $ac_mid)];
  8134. test_array [0] = 0
  8135. ;
  8136. return 0;
  8137. }
  8138. _ACEOF
  8139. rm -f conftest.$ac_objext
  8140. if { (ac_try="$ac_compile"
  8141. case "(($ac_try" in
  8142. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8143. *) ac_try_echo=$ac_try;;
  8144. esac
  8145. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8146. $as_echo "$ac_try_echo") >&5
  8147. (eval "$ac_compile") 2>conftest.er1
  8148. ac_status=$?
  8149. grep -v '^ *+' conftest.er1 >conftest.err
  8150. rm -f conftest.er1
  8151. cat conftest.err >&5
  8152. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8153. (exit $ac_status); } && {
  8154. test -z "$ac_cxx_werror_flag" ||
  8155. test ! -s conftest.err
  8156. } && test -s conftest.$ac_objext; then
  8157. ac_hi=$ac_mid; break
  8158. else
  8159. $as_echo "$as_me: failed program was:" >&5
  8160. sed 's/^/| /' conftest.$ac_ext >&5
  8161. ac_lo=`expr $ac_mid + 1`
  8162. if test $ac_lo -le $ac_mid; then
  8163. ac_lo= ac_hi=
  8164. break
  8165. fi
  8166. ac_mid=`expr 2 '*' $ac_mid + 1`
  8167. fi
  8168. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8169. done
  8170. else
  8171. $as_echo "$as_me: failed program was:" >&5
  8172. sed 's/^/| /' conftest.$ac_ext >&5
  8173. cat >conftest.$ac_ext <<_ACEOF
  8174. /* confdefs.h. */
  8175. _ACEOF
  8176. cat confdefs.h >>conftest.$ac_ext
  8177. cat >>conftest.$ac_ext <<_ACEOF
  8178. /* end confdefs.h. */
  8179. $ac_includes_default
  8180. int
  8181. main ()
  8182. {
  8183. static int test_array [1 - 2 * !(((long int) (sizeof (ptrdiff_t))) < 0)];
  8184. test_array [0] = 0
  8185. ;
  8186. return 0;
  8187. }
  8188. _ACEOF
  8189. rm -f conftest.$ac_objext
  8190. if { (ac_try="$ac_compile"
  8191. case "(($ac_try" in
  8192. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8193. *) ac_try_echo=$ac_try;;
  8194. esac
  8195. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8196. $as_echo "$ac_try_echo") >&5
  8197. (eval "$ac_compile") 2>conftest.er1
  8198. ac_status=$?
  8199. grep -v '^ *+' conftest.er1 >conftest.err
  8200. rm -f conftest.er1
  8201. cat conftest.err >&5
  8202. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8203. (exit $ac_status); } && {
  8204. test -z "$ac_cxx_werror_flag" ||
  8205. test ! -s conftest.err
  8206. } && test -s conftest.$ac_objext; then
  8207. ac_hi=-1 ac_mid=-1
  8208. while :; do
  8209. cat >conftest.$ac_ext <<_ACEOF
  8210. /* confdefs.h. */
  8211. _ACEOF
  8212. cat confdefs.h >>conftest.$ac_ext
  8213. cat >>conftest.$ac_ext <<_ACEOF
  8214. /* end confdefs.h. */
  8215. $ac_includes_default
  8216. int
  8217. main ()
  8218. {
  8219. static int test_array [1 - 2 * !(((long int) (sizeof (ptrdiff_t))) >= $ac_mid)];
  8220. test_array [0] = 0
  8221. ;
  8222. return 0;
  8223. }
  8224. _ACEOF
  8225. rm -f conftest.$ac_objext
  8226. if { (ac_try="$ac_compile"
  8227. case "(($ac_try" in
  8228. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8229. *) ac_try_echo=$ac_try;;
  8230. esac
  8231. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8232. $as_echo "$ac_try_echo") >&5
  8233. (eval "$ac_compile") 2>conftest.er1
  8234. ac_status=$?
  8235. grep -v '^ *+' conftest.er1 >conftest.err
  8236. rm -f conftest.er1
  8237. cat conftest.err >&5
  8238. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8239. (exit $ac_status); } && {
  8240. test -z "$ac_cxx_werror_flag" ||
  8241. test ! -s conftest.err
  8242. } && test -s conftest.$ac_objext; then
  8243. ac_lo=$ac_mid; break
  8244. else
  8245. $as_echo "$as_me: failed program was:" >&5
  8246. sed 's/^/| /' conftest.$ac_ext >&5
  8247. ac_hi=`expr '(' $ac_mid ')' - 1`
  8248. if test $ac_mid -le $ac_hi; then
  8249. ac_lo= ac_hi=
  8250. break
  8251. fi
  8252. ac_mid=`expr 2 '*' $ac_mid`
  8253. fi
  8254. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8255. done
  8256. else
  8257. $as_echo "$as_me: failed program was:" >&5
  8258. sed 's/^/| /' conftest.$ac_ext >&5
  8259. ac_lo= ac_hi=
  8260. fi
  8261. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8262. fi
  8263. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8264. # Binary search between lo and hi bounds.
  8265. while test "x$ac_lo" != "x$ac_hi"; do
  8266. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  8267. cat >conftest.$ac_ext <<_ACEOF
  8268. /* confdefs.h. */
  8269. _ACEOF
  8270. cat confdefs.h >>conftest.$ac_ext
  8271. cat >>conftest.$ac_ext <<_ACEOF
  8272. /* end confdefs.h. */
  8273. $ac_includes_default
  8274. int
  8275. main ()
  8276. {
  8277. static int test_array [1 - 2 * !(((long int) (sizeof (ptrdiff_t))) <= $ac_mid)];
  8278. test_array [0] = 0
  8279. ;
  8280. return 0;
  8281. }
  8282. _ACEOF
  8283. rm -f conftest.$ac_objext
  8284. if { (ac_try="$ac_compile"
  8285. case "(($ac_try" in
  8286. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8287. *) ac_try_echo=$ac_try;;
  8288. esac
  8289. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8290. $as_echo "$ac_try_echo") >&5
  8291. (eval "$ac_compile") 2>conftest.er1
  8292. ac_status=$?
  8293. grep -v '^ *+' conftest.er1 >conftest.err
  8294. rm -f conftest.er1
  8295. cat conftest.err >&5
  8296. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8297. (exit $ac_status); } && {
  8298. test -z "$ac_cxx_werror_flag" ||
  8299. test ! -s conftest.err
  8300. } && test -s conftest.$ac_objext; then
  8301. ac_hi=$ac_mid
  8302. else
  8303. $as_echo "$as_me: failed program was:" >&5
  8304. sed 's/^/| /' conftest.$ac_ext >&5
  8305. ac_lo=`expr '(' $ac_mid ')' + 1`
  8306. fi
  8307. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8308. done
  8309. case $ac_lo in
  8310. ?*) ac_cv_sizeof_ptrdiff_t=$ac_lo;;
  8311. '') if test "$ac_cv_type_ptrdiff_t" = yes; then
  8312. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  8313. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  8314. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (ptrdiff_t)
  8315. See \`config.log' for more details." >&5
  8316. $as_echo "$as_me: error: cannot compute sizeof (ptrdiff_t)
  8317. See \`config.log' for more details." >&2;}
  8318. { (exit 77); exit 77; }; }; }
  8319. else
  8320. ac_cv_sizeof_ptrdiff_t=0
  8321. fi ;;
  8322. esac
  8323. else
  8324. cat >conftest.$ac_ext <<_ACEOF
  8325. /* confdefs.h. */
  8326. _ACEOF
  8327. cat confdefs.h >>conftest.$ac_ext
  8328. cat >>conftest.$ac_ext <<_ACEOF
  8329. /* end confdefs.h. */
  8330. $ac_includes_default
  8331. static long int longval () { return (long int) (sizeof (ptrdiff_t)); }
  8332. static unsigned long int ulongval () { return (long int) (sizeof (ptrdiff_t)); }
  8333. #include <stdio.h>
  8334. #include <stdlib.h>
  8335. int
  8336. main ()
  8337. {
  8338. FILE *f = fopen ("conftest.val", "w");
  8339. if (! f)
  8340. return 1;
  8341. if (((long int) (sizeof (ptrdiff_t))) < 0)
  8342. {
  8343. long int i = longval ();
  8344. if (i != ((long int) (sizeof (ptrdiff_t))))
  8345. return 1;
  8346. fprintf (f, "%ld", i);
  8347. }
  8348. else
  8349. {
  8350. unsigned long int i = ulongval ();
  8351. if (i != ((long int) (sizeof (ptrdiff_t))))
  8352. return 1;
  8353. fprintf (f, "%lu", i);
  8354. }
  8355. /* Do not output a trailing newline, as this causes \r\n confusion
  8356. on some platforms. */
  8357. return ferror (f) || fclose (f) != 0;
  8358. ;
  8359. return 0;
  8360. }
  8361. _ACEOF
  8362. rm -f conftest$ac_exeext
  8363. if { (ac_try="$ac_link"
  8364. case "(($ac_try" in
  8365. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8366. *) ac_try_echo=$ac_try;;
  8367. esac
  8368. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8369. $as_echo "$ac_try_echo") >&5
  8370. (eval "$ac_link") 2>&5
  8371. ac_status=$?
  8372. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8373. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8374. { (case "(($ac_try" in
  8375. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8376. *) ac_try_echo=$ac_try;;
  8377. esac
  8378. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8379. $as_echo "$ac_try_echo") >&5
  8380. (eval "$ac_try") 2>&5
  8381. ac_status=$?
  8382. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8383. (exit $ac_status); }; }; then
  8384. ac_cv_sizeof_ptrdiff_t=`cat conftest.val`
  8385. else
  8386. $as_echo "$as_me: program exited with status $ac_status" >&5
  8387. $as_echo "$as_me: failed program was:" >&5
  8388. sed 's/^/| /' conftest.$ac_ext >&5
  8389. ( exit $ac_status )
  8390. if test "$ac_cv_type_ptrdiff_t" = yes; then
  8391. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  8392. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  8393. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (ptrdiff_t)
  8394. See \`config.log' for more details." >&5
  8395. $as_echo "$as_me: error: cannot compute sizeof (ptrdiff_t)
  8396. See \`config.log' for more details." >&2;}
  8397. { (exit 77); exit 77; }; }; }
  8398. else
  8399. ac_cv_sizeof_ptrdiff_t=0
  8400. fi
  8401. fi
  8402. rm -rf conftest.dSYM
  8403. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8404. fi
  8405. rm -f conftest.val
  8406. fi
  8407. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_ptrdiff_t" >&5
  8408. $as_echo "$ac_cv_sizeof_ptrdiff_t" >&6; }
  8409. cat >>confdefs.h <<_ACEOF
  8410. #define SIZEOF_PTRDIFF_T $ac_cv_sizeof_ptrdiff_t
  8411. _ACEOF
  8412. # The cast to long int works around a bug in the HP C Compiler
  8413. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  8414. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  8415. # This bug is HP SR number 8606223364.
  8416. { $as_echo "$as_me:$LINENO: checking size of time_t" >&5
  8417. $as_echo_n "checking size of time_t... " >&6; }
  8418. if test "${ac_cv_sizeof_time_t+set}" = set; then
  8419. $as_echo_n "(cached) " >&6
  8420. else
  8421. if test "$cross_compiling" = yes; then
  8422. # Depending upon the size, compute the lo and hi bounds.
  8423. cat >conftest.$ac_ext <<_ACEOF
  8424. /* confdefs.h. */
  8425. _ACEOF
  8426. cat confdefs.h >>conftest.$ac_ext
  8427. cat >>conftest.$ac_ext <<_ACEOF
  8428. /* end confdefs.h. */
  8429. $ac_includes_default
  8430. int
  8431. main ()
  8432. {
  8433. static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) >= 0)];
  8434. test_array [0] = 0
  8435. ;
  8436. return 0;
  8437. }
  8438. _ACEOF
  8439. rm -f conftest.$ac_objext
  8440. if { (ac_try="$ac_compile"
  8441. case "(($ac_try" in
  8442. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8443. *) ac_try_echo=$ac_try;;
  8444. esac
  8445. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8446. $as_echo "$ac_try_echo") >&5
  8447. (eval "$ac_compile") 2>conftest.er1
  8448. ac_status=$?
  8449. grep -v '^ *+' conftest.er1 >conftest.err
  8450. rm -f conftest.er1
  8451. cat conftest.err >&5
  8452. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8453. (exit $ac_status); } && {
  8454. test -z "$ac_cxx_werror_flag" ||
  8455. test ! -s conftest.err
  8456. } && test -s conftest.$ac_objext; then
  8457. ac_lo=0 ac_mid=0
  8458. while :; do
  8459. cat >conftest.$ac_ext <<_ACEOF
  8460. /* confdefs.h. */
  8461. _ACEOF
  8462. cat confdefs.h >>conftest.$ac_ext
  8463. cat >>conftest.$ac_ext <<_ACEOF
  8464. /* end confdefs.h. */
  8465. $ac_includes_default
  8466. int
  8467. main ()
  8468. {
  8469. static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) <= $ac_mid)];
  8470. test_array [0] = 0
  8471. ;
  8472. return 0;
  8473. }
  8474. _ACEOF
  8475. rm -f conftest.$ac_objext
  8476. if { (ac_try="$ac_compile"
  8477. case "(($ac_try" in
  8478. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8479. *) ac_try_echo=$ac_try;;
  8480. esac
  8481. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8482. $as_echo "$ac_try_echo") >&5
  8483. (eval "$ac_compile") 2>conftest.er1
  8484. ac_status=$?
  8485. grep -v '^ *+' conftest.er1 >conftest.err
  8486. rm -f conftest.er1
  8487. cat conftest.err >&5
  8488. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8489. (exit $ac_status); } && {
  8490. test -z "$ac_cxx_werror_flag" ||
  8491. test ! -s conftest.err
  8492. } && test -s conftest.$ac_objext; then
  8493. ac_hi=$ac_mid; break
  8494. else
  8495. $as_echo "$as_me: failed program was:" >&5
  8496. sed 's/^/| /' conftest.$ac_ext >&5
  8497. ac_lo=`expr $ac_mid + 1`
  8498. if test $ac_lo -le $ac_mid; then
  8499. ac_lo= ac_hi=
  8500. break
  8501. fi
  8502. ac_mid=`expr 2 '*' $ac_mid + 1`
  8503. fi
  8504. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8505. done
  8506. else
  8507. $as_echo "$as_me: failed program was:" >&5
  8508. sed 's/^/| /' conftest.$ac_ext >&5
  8509. cat >conftest.$ac_ext <<_ACEOF
  8510. /* confdefs.h. */
  8511. _ACEOF
  8512. cat confdefs.h >>conftest.$ac_ext
  8513. cat >>conftest.$ac_ext <<_ACEOF
  8514. /* end confdefs.h. */
  8515. $ac_includes_default
  8516. int
  8517. main ()
  8518. {
  8519. static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) < 0)];
  8520. test_array [0] = 0
  8521. ;
  8522. return 0;
  8523. }
  8524. _ACEOF
  8525. rm -f conftest.$ac_objext
  8526. if { (ac_try="$ac_compile"
  8527. case "(($ac_try" in
  8528. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8529. *) ac_try_echo=$ac_try;;
  8530. esac
  8531. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8532. $as_echo "$ac_try_echo") >&5
  8533. (eval "$ac_compile") 2>conftest.er1
  8534. ac_status=$?
  8535. grep -v '^ *+' conftest.er1 >conftest.err
  8536. rm -f conftest.er1
  8537. cat conftest.err >&5
  8538. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8539. (exit $ac_status); } && {
  8540. test -z "$ac_cxx_werror_flag" ||
  8541. test ! -s conftest.err
  8542. } && test -s conftest.$ac_objext; then
  8543. ac_hi=-1 ac_mid=-1
  8544. while :; do
  8545. cat >conftest.$ac_ext <<_ACEOF
  8546. /* confdefs.h. */
  8547. _ACEOF
  8548. cat confdefs.h >>conftest.$ac_ext
  8549. cat >>conftest.$ac_ext <<_ACEOF
  8550. /* end confdefs.h. */
  8551. $ac_includes_default
  8552. int
  8553. main ()
  8554. {
  8555. static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) >= $ac_mid)];
  8556. test_array [0] = 0
  8557. ;
  8558. return 0;
  8559. }
  8560. _ACEOF
  8561. rm -f conftest.$ac_objext
  8562. if { (ac_try="$ac_compile"
  8563. case "(($ac_try" in
  8564. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8565. *) ac_try_echo=$ac_try;;
  8566. esac
  8567. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8568. $as_echo "$ac_try_echo") >&5
  8569. (eval "$ac_compile") 2>conftest.er1
  8570. ac_status=$?
  8571. grep -v '^ *+' conftest.er1 >conftest.err
  8572. rm -f conftest.er1
  8573. cat conftest.err >&5
  8574. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8575. (exit $ac_status); } && {
  8576. test -z "$ac_cxx_werror_flag" ||
  8577. test ! -s conftest.err
  8578. } && test -s conftest.$ac_objext; then
  8579. ac_lo=$ac_mid; break
  8580. else
  8581. $as_echo "$as_me: failed program was:" >&5
  8582. sed 's/^/| /' conftest.$ac_ext >&5
  8583. ac_hi=`expr '(' $ac_mid ')' - 1`
  8584. if test $ac_mid -le $ac_hi; then
  8585. ac_lo= ac_hi=
  8586. break
  8587. fi
  8588. ac_mid=`expr 2 '*' $ac_mid`
  8589. fi
  8590. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8591. done
  8592. else
  8593. $as_echo "$as_me: failed program was:" >&5
  8594. sed 's/^/| /' conftest.$ac_ext >&5
  8595. ac_lo= ac_hi=
  8596. fi
  8597. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8598. fi
  8599. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8600. # Binary search between lo and hi bounds.
  8601. while test "x$ac_lo" != "x$ac_hi"; do
  8602. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  8603. cat >conftest.$ac_ext <<_ACEOF
  8604. /* confdefs.h. */
  8605. _ACEOF
  8606. cat confdefs.h >>conftest.$ac_ext
  8607. cat >>conftest.$ac_ext <<_ACEOF
  8608. /* end confdefs.h. */
  8609. $ac_includes_default
  8610. int
  8611. main ()
  8612. {
  8613. static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) <= $ac_mid)];
  8614. test_array [0] = 0
  8615. ;
  8616. return 0;
  8617. }
  8618. _ACEOF
  8619. rm -f conftest.$ac_objext
  8620. if { (ac_try="$ac_compile"
  8621. case "(($ac_try" in
  8622. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8623. *) ac_try_echo=$ac_try;;
  8624. esac
  8625. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8626. $as_echo "$ac_try_echo") >&5
  8627. (eval "$ac_compile") 2>conftest.er1
  8628. ac_status=$?
  8629. grep -v '^ *+' conftest.er1 >conftest.err
  8630. rm -f conftest.er1
  8631. cat conftest.err >&5
  8632. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8633. (exit $ac_status); } && {
  8634. test -z "$ac_cxx_werror_flag" ||
  8635. test ! -s conftest.err
  8636. } && test -s conftest.$ac_objext; then
  8637. ac_hi=$ac_mid
  8638. else
  8639. $as_echo "$as_me: failed program was:" >&5
  8640. sed 's/^/| /' conftest.$ac_ext >&5
  8641. ac_lo=`expr '(' $ac_mid ')' + 1`
  8642. fi
  8643. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8644. done
  8645. case $ac_lo in
  8646. ?*) ac_cv_sizeof_time_t=$ac_lo;;
  8647. '') if test "$ac_cv_type_time_t" = yes; then
  8648. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  8649. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  8650. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (time_t)
  8651. See \`config.log' for more details." >&5
  8652. $as_echo "$as_me: error: cannot compute sizeof (time_t)
  8653. See \`config.log' for more details." >&2;}
  8654. { (exit 77); exit 77; }; }; }
  8655. else
  8656. ac_cv_sizeof_time_t=0
  8657. fi ;;
  8658. esac
  8659. else
  8660. cat >conftest.$ac_ext <<_ACEOF
  8661. /* confdefs.h. */
  8662. _ACEOF
  8663. cat confdefs.h >>conftest.$ac_ext
  8664. cat >>conftest.$ac_ext <<_ACEOF
  8665. /* end confdefs.h. */
  8666. $ac_includes_default
  8667. static long int longval () { return (long int) (sizeof (time_t)); }
  8668. static unsigned long int ulongval () { return (long int) (sizeof (time_t)); }
  8669. #include <stdio.h>
  8670. #include <stdlib.h>
  8671. int
  8672. main ()
  8673. {
  8674. FILE *f = fopen ("conftest.val", "w");
  8675. if (! f)
  8676. return 1;
  8677. if (((long int) (sizeof (time_t))) < 0)
  8678. {
  8679. long int i = longval ();
  8680. if (i != ((long int) (sizeof (time_t))))
  8681. return 1;
  8682. fprintf (f, "%ld", i);
  8683. }
  8684. else
  8685. {
  8686. unsigned long int i = ulongval ();
  8687. if (i != ((long int) (sizeof (time_t))))
  8688. return 1;
  8689. fprintf (f, "%lu", i);
  8690. }
  8691. /* Do not output a trailing newline, as this causes \r\n confusion
  8692. on some platforms. */
  8693. return ferror (f) || fclose (f) != 0;
  8694. ;
  8695. return 0;
  8696. }
  8697. _ACEOF
  8698. rm -f conftest$ac_exeext
  8699. if { (ac_try="$ac_link"
  8700. case "(($ac_try" in
  8701. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8702. *) ac_try_echo=$ac_try;;
  8703. esac
  8704. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8705. $as_echo "$ac_try_echo") >&5
  8706. (eval "$ac_link") 2>&5
  8707. ac_status=$?
  8708. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8709. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8710. { (case "(($ac_try" in
  8711. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8712. *) ac_try_echo=$ac_try;;
  8713. esac
  8714. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8715. $as_echo "$ac_try_echo") >&5
  8716. (eval "$ac_try") 2>&5
  8717. ac_status=$?
  8718. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8719. (exit $ac_status); }; }; then
  8720. ac_cv_sizeof_time_t=`cat conftest.val`
  8721. else
  8722. $as_echo "$as_me: program exited with status $ac_status" >&5
  8723. $as_echo "$as_me: failed program was:" >&5
  8724. sed 's/^/| /' conftest.$ac_ext >&5
  8725. ( exit $ac_status )
  8726. if test "$ac_cv_type_time_t" = yes; then
  8727. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  8728. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  8729. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (time_t)
  8730. See \`config.log' for more details." >&5
  8731. $as_echo "$as_me: error: cannot compute sizeof (time_t)
  8732. See \`config.log' for more details." >&2;}
  8733. { (exit 77); exit 77; }; }; }
  8734. else
  8735. ac_cv_sizeof_time_t=0
  8736. fi
  8737. fi
  8738. rm -rf conftest.dSYM
  8739. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8740. fi
  8741. rm -f conftest.val
  8742. fi
  8743. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
  8744. $as_echo "$ac_cv_sizeof_time_t" >&6; }
  8745. cat >>confdefs.h <<_ACEOF
  8746. #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
  8747. _ACEOF
  8748. { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  8749. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  8750. if test "${ac_cv_struct_tm+set}" = set; then
  8751. $as_echo_n "(cached) " >&6
  8752. else
  8753. cat >conftest.$ac_ext <<_ACEOF
  8754. /* confdefs.h. */
  8755. _ACEOF
  8756. cat confdefs.h >>conftest.$ac_ext
  8757. cat >>conftest.$ac_ext <<_ACEOF
  8758. /* end confdefs.h. */
  8759. #include <sys/types.h>
  8760. #include <time.h>
  8761. int
  8762. main ()
  8763. {
  8764. struct tm tm;
  8765. int *p = &tm.tm_sec;
  8766. return !p;
  8767. ;
  8768. return 0;
  8769. }
  8770. _ACEOF
  8771. rm -f conftest.$ac_objext
  8772. if { (ac_try="$ac_compile"
  8773. case "(($ac_try" in
  8774. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8775. *) ac_try_echo=$ac_try;;
  8776. esac
  8777. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8778. $as_echo "$ac_try_echo") >&5
  8779. (eval "$ac_compile") 2>conftest.er1
  8780. ac_status=$?
  8781. grep -v '^ *+' conftest.er1 >conftest.err
  8782. rm -f conftest.er1
  8783. cat conftest.err >&5
  8784. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8785. (exit $ac_status); } && {
  8786. test -z "$ac_cxx_werror_flag" ||
  8787. test ! -s conftest.err
  8788. } && test -s conftest.$ac_objext; then
  8789. ac_cv_struct_tm=time.h
  8790. else
  8791. $as_echo "$as_me: failed program was:" >&5
  8792. sed 's/^/| /' conftest.$ac_ext >&5
  8793. ac_cv_struct_tm=sys/time.h
  8794. fi
  8795. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8796. fi
  8797. { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  8798. $as_echo "$ac_cv_struct_tm" >&6; }
  8799. if test $ac_cv_struct_tm = sys/time.h; then
  8800. cat >>confdefs.h <<\_ACEOF
  8801. #define TM_IN_SYS_TIME 1
  8802. _ACEOF
  8803. fi
  8804. { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
  8805. $as_echo_n "checking for struct tm.tm_zone... " >&6; }
  8806. if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
  8807. $as_echo_n "(cached) " >&6
  8808. else
  8809. cat >conftest.$ac_ext <<_ACEOF
  8810. /* confdefs.h. */
  8811. _ACEOF
  8812. cat confdefs.h >>conftest.$ac_ext
  8813. cat >>conftest.$ac_ext <<_ACEOF
  8814. /* end confdefs.h. */
  8815. #include <sys/types.h>
  8816. #include <$ac_cv_struct_tm>
  8817. int
  8818. main ()
  8819. {
  8820. static struct tm ac_aggr;
  8821. if (ac_aggr.tm_zone)
  8822. return 0;
  8823. ;
  8824. return 0;
  8825. }
  8826. _ACEOF
  8827. rm -f conftest.$ac_objext
  8828. if { (ac_try="$ac_compile"
  8829. case "(($ac_try" in
  8830. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8831. *) ac_try_echo=$ac_try;;
  8832. esac
  8833. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8834. $as_echo "$ac_try_echo") >&5
  8835. (eval "$ac_compile") 2>conftest.er1
  8836. ac_status=$?
  8837. grep -v '^ *+' conftest.er1 >conftest.err
  8838. rm -f conftest.er1
  8839. cat conftest.err >&5
  8840. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8841. (exit $ac_status); } && {
  8842. test -z "$ac_cxx_werror_flag" ||
  8843. test ! -s conftest.err
  8844. } && test -s conftest.$ac_objext; then
  8845. ac_cv_member_struct_tm_tm_zone=yes
  8846. else
  8847. $as_echo "$as_me: failed program was:" >&5
  8848. sed 's/^/| /' conftest.$ac_ext >&5
  8849. cat >conftest.$ac_ext <<_ACEOF
  8850. /* confdefs.h. */
  8851. _ACEOF
  8852. cat confdefs.h >>conftest.$ac_ext
  8853. cat >>conftest.$ac_ext <<_ACEOF
  8854. /* end confdefs.h. */
  8855. #include <sys/types.h>
  8856. #include <$ac_cv_struct_tm>
  8857. int
  8858. main ()
  8859. {
  8860. static struct tm ac_aggr;
  8861. if (sizeof ac_aggr.tm_zone)
  8862. return 0;
  8863. ;
  8864. return 0;
  8865. }
  8866. _ACEOF
  8867. rm -f conftest.$ac_objext
  8868. if { (ac_try="$ac_compile"
  8869. case "(($ac_try" in
  8870. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8871. *) ac_try_echo=$ac_try;;
  8872. esac
  8873. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8874. $as_echo "$ac_try_echo") >&5
  8875. (eval "$ac_compile") 2>conftest.er1
  8876. ac_status=$?
  8877. grep -v '^ *+' conftest.er1 >conftest.err
  8878. rm -f conftest.er1
  8879. cat conftest.err >&5
  8880. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8881. (exit $ac_status); } && {
  8882. test -z "$ac_cxx_werror_flag" ||
  8883. test ! -s conftest.err
  8884. } && test -s conftest.$ac_objext; then
  8885. ac_cv_member_struct_tm_tm_zone=yes
  8886. else
  8887. $as_echo "$as_me: failed program was:" >&5
  8888. sed 's/^/| /' conftest.$ac_ext >&5
  8889. ac_cv_member_struct_tm_tm_zone=no
  8890. fi
  8891. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8892. fi
  8893. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8894. fi
  8895. { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
  8896. $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
  8897. if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then
  8898. cat >>confdefs.h <<_ACEOF
  8899. #define HAVE_STRUCT_TM_TM_ZONE 1
  8900. _ACEOF
  8901. fi
  8902. if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
  8903. cat >>confdefs.h <<\_ACEOF
  8904. #define HAVE_TM_ZONE 1
  8905. _ACEOF
  8906. else
  8907. { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
  8908. $as_echo_n "checking whether tzname is declared... " >&6; }
  8909. if test "${ac_cv_have_decl_tzname+set}" = set; then
  8910. $as_echo_n "(cached) " >&6
  8911. else
  8912. cat >conftest.$ac_ext <<_ACEOF
  8913. /* confdefs.h. */
  8914. _ACEOF
  8915. cat confdefs.h >>conftest.$ac_ext
  8916. cat >>conftest.$ac_ext <<_ACEOF
  8917. /* end confdefs.h. */
  8918. #include <time.h>
  8919. int
  8920. main ()
  8921. {
  8922. #ifndef tzname
  8923. (void) tzname;
  8924. #endif
  8925. ;
  8926. return 0;
  8927. }
  8928. _ACEOF
  8929. rm -f conftest.$ac_objext
  8930. if { (ac_try="$ac_compile"
  8931. case "(($ac_try" in
  8932. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8933. *) ac_try_echo=$ac_try;;
  8934. esac
  8935. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8936. $as_echo "$ac_try_echo") >&5
  8937. (eval "$ac_compile") 2>conftest.er1
  8938. ac_status=$?
  8939. grep -v '^ *+' conftest.er1 >conftest.err
  8940. rm -f conftest.er1
  8941. cat conftest.err >&5
  8942. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8943. (exit $ac_status); } && {
  8944. test -z "$ac_cxx_werror_flag" ||
  8945. test ! -s conftest.err
  8946. } && test -s conftest.$ac_objext; then
  8947. ac_cv_have_decl_tzname=yes
  8948. else
  8949. $as_echo "$as_me: failed program was:" >&5
  8950. sed 's/^/| /' conftest.$ac_ext >&5
  8951. ac_cv_have_decl_tzname=no
  8952. fi
  8953. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8954. fi
  8955. { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
  8956. $as_echo "$ac_cv_have_decl_tzname" >&6; }
  8957. if test "x$ac_cv_have_decl_tzname" = x""yes; then
  8958. cat >>confdefs.h <<_ACEOF
  8959. #define HAVE_DECL_TZNAME 1
  8960. _ACEOF
  8961. else
  8962. cat >>confdefs.h <<_ACEOF
  8963. #define HAVE_DECL_TZNAME 0
  8964. _ACEOF
  8965. fi
  8966. { $as_echo "$as_me:$LINENO: checking for tzname" >&5
  8967. $as_echo_n "checking for tzname... " >&6; }
  8968. if test "${ac_cv_var_tzname+set}" = set; then
  8969. $as_echo_n "(cached) " >&6
  8970. else
  8971. cat >conftest.$ac_ext <<_ACEOF
  8972. /* confdefs.h. */
  8973. _ACEOF
  8974. cat confdefs.h >>conftest.$ac_ext
  8975. cat >>conftest.$ac_ext <<_ACEOF
  8976. /* end confdefs.h. */
  8977. #include <time.h>
  8978. #if !HAVE_DECL_TZNAME
  8979. extern char *tzname[];
  8980. #endif
  8981. int
  8982. main ()
  8983. {
  8984. return tzname[0][0];
  8985. ;
  8986. return 0;
  8987. }
  8988. _ACEOF
  8989. rm -f conftest.$ac_objext conftest$ac_exeext
  8990. if { (ac_try="$ac_link"
  8991. case "(($ac_try" in
  8992. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8993. *) ac_try_echo=$ac_try;;
  8994. esac
  8995. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8996. $as_echo "$ac_try_echo") >&5
  8997. (eval "$ac_link") 2>conftest.er1
  8998. ac_status=$?
  8999. grep -v '^ *+' conftest.er1 >conftest.err
  9000. rm -f conftest.er1
  9001. cat conftest.err >&5
  9002. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9003. (exit $ac_status); } && {
  9004. test -z "$ac_cxx_werror_flag" ||
  9005. test ! -s conftest.err
  9006. } && test -s conftest$ac_exeext && {
  9007. test "$cross_compiling" = yes ||
  9008. $as_test_x conftest$ac_exeext
  9009. }; then
  9010. ac_cv_var_tzname=yes
  9011. else
  9012. $as_echo "$as_me: failed program was:" >&5
  9013. sed 's/^/| /' conftest.$ac_ext >&5
  9014. ac_cv_var_tzname=no
  9015. fi
  9016. rm -rf conftest.dSYM
  9017. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9018. conftest$ac_exeext conftest.$ac_ext
  9019. fi
  9020. { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
  9021. $as_echo "$ac_cv_var_tzname" >&6; }
  9022. if test $ac_cv_var_tzname = yes; then
  9023. cat >>confdefs.h <<\_ACEOF
  9024. #define HAVE_TZNAME 1
  9025. _ACEOF
  9026. fi
  9027. fi
  9028. { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  9029. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  9030. if test "${ac_cv_struct_tm+set}" = set; then
  9031. $as_echo_n "(cached) " >&6
  9032. else
  9033. cat >conftest.$ac_ext <<_ACEOF
  9034. /* confdefs.h. */
  9035. _ACEOF
  9036. cat confdefs.h >>conftest.$ac_ext
  9037. cat >>conftest.$ac_ext <<_ACEOF
  9038. /* end confdefs.h. */
  9039. #include <sys/types.h>
  9040. #include <time.h>
  9041. int
  9042. main ()
  9043. {
  9044. struct tm tm;
  9045. int *p = &tm.tm_sec;
  9046. return !p;
  9047. ;
  9048. return 0;
  9049. }
  9050. _ACEOF
  9051. rm -f conftest.$ac_objext
  9052. if { (ac_try="$ac_compile"
  9053. case "(($ac_try" in
  9054. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9055. *) ac_try_echo=$ac_try;;
  9056. esac
  9057. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9058. $as_echo "$ac_try_echo") >&5
  9059. (eval "$ac_compile") 2>conftest.er1
  9060. ac_status=$?
  9061. grep -v '^ *+' conftest.er1 >conftest.err
  9062. rm -f conftest.er1
  9063. cat conftest.err >&5
  9064. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9065. (exit $ac_status); } && {
  9066. test -z "$ac_cxx_werror_flag" ||
  9067. test ! -s conftest.err
  9068. } && test -s conftest.$ac_objext; then
  9069. ac_cv_struct_tm=time.h
  9070. else
  9071. $as_echo "$as_me: failed program was:" >&5
  9072. sed 's/^/| /' conftest.$ac_ext >&5
  9073. ac_cv_struct_tm=sys/time.h
  9074. fi
  9075. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9076. fi
  9077. { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  9078. $as_echo "$ac_cv_struct_tm" >&6; }
  9079. if test $ac_cv_struct_tm = sys/time.h; then
  9080. cat >>confdefs.h <<\_ACEOF
  9081. #define TM_IN_SYS_TIME 1
  9082. _ACEOF
  9083. fi
  9084. # Checks for library functions
  9085. for ac_header in vfork.h
  9086. do
  9087. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9088. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9089. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  9090. $as_echo_n "checking for $ac_header... " >&6; }
  9091. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9092. $as_echo_n "(cached) " >&6
  9093. fi
  9094. ac_res=`eval 'as_val=${'$as_ac_Header'}
  9095. $as_echo "$as_val"'`
  9096. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  9097. $as_echo "$ac_res" >&6; }
  9098. else
  9099. # Is the header compilable?
  9100. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9101. $as_echo_n "checking $ac_header usability... " >&6; }
  9102. cat >conftest.$ac_ext <<_ACEOF
  9103. /* confdefs.h. */
  9104. _ACEOF
  9105. cat confdefs.h >>conftest.$ac_ext
  9106. cat >>conftest.$ac_ext <<_ACEOF
  9107. /* end confdefs.h. */
  9108. $ac_includes_default
  9109. #include <$ac_header>
  9110. _ACEOF
  9111. rm -f conftest.$ac_objext
  9112. if { (ac_try="$ac_compile"
  9113. case "(($ac_try" in
  9114. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9115. *) ac_try_echo=$ac_try;;
  9116. esac
  9117. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9118. $as_echo "$ac_try_echo") >&5
  9119. (eval "$ac_compile") 2>conftest.er1
  9120. ac_status=$?
  9121. grep -v '^ *+' conftest.er1 >conftest.err
  9122. rm -f conftest.er1
  9123. cat conftest.err >&5
  9124. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9125. (exit $ac_status); } && {
  9126. test -z "$ac_cxx_werror_flag" ||
  9127. test ! -s conftest.err
  9128. } && test -s conftest.$ac_objext; then
  9129. ac_header_compiler=yes
  9130. else
  9131. $as_echo "$as_me: failed program was:" >&5
  9132. sed 's/^/| /' conftest.$ac_ext >&5
  9133. ac_header_compiler=no
  9134. fi
  9135. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9136. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9137. $as_echo "$ac_header_compiler" >&6; }
  9138. # Is the header present?
  9139. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9140. $as_echo_n "checking $ac_header presence... " >&6; }
  9141. cat >conftest.$ac_ext <<_ACEOF
  9142. /* confdefs.h. */
  9143. _ACEOF
  9144. cat confdefs.h >>conftest.$ac_ext
  9145. cat >>conftest.$ac_ext <<_ACEOF
  9146. /* end confdefs.h. */
  9147. #include <$ac_header>
  9148. _ACEOF
  9149. if { (ac_try="$ac_cpp conftest.$ac_ext"
  9150. case "(($ac_try" in
  9151. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9152. *) ac_try_echo=$ac_try;;
  9153. esac
  9154. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9155. $as_echo "$ac_try_echo") >&5
  9156. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9157. ac_status=$?
  9158. grep -v '^ *+' conftest.er1 >conftest.err
  9159. rm -f conftest.er1
  9160. cat conftest.err >&5
  9161. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9162. (exit $ac_status); } >/dev/null && {
  9163. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  9164. test ! -s conftest.err
  9165. }; then
  9166. ac_header_preproc=yes
  9167. else
  9168. $as_echo "$as_me: failed program was:" >&5
  9169. sed 's/^/| /' conftest.$ac_ext >&5
  9170. ac_header_preproc=no
  9171. fi
  9172. rm -f conftest.err conftest.$ac_ext
  9173. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9174. $as_echo "$ac_header_preproc" >&6; }
  9175. # So? What about this header?
  9176. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  9177. yes:no: )
  9178. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9179. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9180. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9181. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9182. ac_header_preproc=yes
  9183. ;;
  9184. no:yes:* )
  9185. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9186. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9187. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9188. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9189. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9190. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9191. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9192. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9193. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9194. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9195. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9196. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9197. ;;
  9198. esac
  9199. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  9200. $as_echo_n "checking for $ac_header... " >&6; }
  9201. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9202. $as_echo_n "(cached) " >&6
  9203. else
  9204. eval "$as_ac_Header=\$ac_header_preproc"
  9205. fi
  9206. ac_res=`eval 'as_val=${'$as_ac_Header'}
  9207. $as_echo "$as_val"'`
  9208. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  9209. $as_echo "$ac_res" >&6; }
  9210. fi
  9211. as_val=`eval 'as_val=${'$as_ac_Header'}
  9212. $as_echo "$as_val"'`
  9213. if test "x$as_val" = x""yes; then
  9214. cat >>confdefs.h <<_ACEOF
  9215. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9216. _ACEOF
  9217. fi
  9218. done
  9219. for ac_func in fork vfork
  9220. do
  9221. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9222. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  9223. $as_echo_n "checking for $ac_func... " >&6; }
  9224. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  9225. $as_echo_n "(cached) " >&6
  9226. else
  9227. cat >conftest.$ac_ext <<_ACEOF
  9228. /* confdefs.h. */
  9229. _ACEOF
  9230. cat confdefs.h >>conftest.$ac_ext
  9231. cat >>conftest.$ac_ext <<_ACEOF
  9232. /* end confdefs.h. */
  9233. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9234. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9235. #define $ac_func innocuous_$ac_func
  9236. /* System header to define __stub macros and hopefully few prototypes,
  9237. which can conflict with char $ac_func (); below.
  9238. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9239. <limits.h> exists even on freestanding compilers. */
  9240. #ifdef __STDC__
  9241. # include <limits.h>
  9242. #else
  9243. # include <assert.h>
  9244. #endif
  9245. #undef $ac_func
  9246. /* Override any GCC internal prototype to avoid an error.
  9247. Use char because int might match the return type of a GCC
  9248. builtin and then its argument prototype would still apply. */
  9249. #ifdef __cplusplus
  9250. extern "C"
  9251. #endif
  9252. char $ac_func ();
  9253. /* The GNU C library defines this for functions which it implements
  9254. to always fail with ENOSYS. Some functions are actually named
  9255. something starting with __ and the normal name is an alias. */
  9256. #if defined __stub_$ac_func || defined __stub___$ac_func
  9257. choke me
  9258. #endif
  9259. int
  9260. main ()
  9261. {
  9262. return $ac_func ();
  9263. ;
  9264. return 0;
  9265. }
  9266. _ACEOF
  9267. rm -f conftest.$ac_objext conftest$ac_exeext
  9268. if { (ac_try="$ac_link"
  9269. case "(($ac_try" in
  9270. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9271. *) ac_try_echo=$ac_try;;
  9272. esac
  9273. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9274. $as_echo "$ac_try_echo") >&5
  9275. (eval "$ac_link") 2>conftest.er1
  9276. ac_status=$?
  9277. grep -v '^ *+' conftest.er1 >conftest.err
  9278. rm -f conftest.er1
  9279. cat conftest.err >&5
  9280. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9281. (exit $ac_status); } && {
  9282. test -z "$ac_cxx_werror_flag" ||
  9283. test ! -s conftest.err
  9284. } && test -s conftest$ac_exeext && {
  9285. test "$cross_compiling" = yes ||
  9286. $as_test_x conftest$ac_exeext
  9287. }; then
  9288. eval "$as_ac_var=yes"
  9289. else
  9290. $as_echo "$as_me: failed program was:" >&5
  9291. sed 's/^/| /' conftest.$ac_ext >&5
  9292. eval "$as_ac_var=no"
  9293. fi
  9294. rm -rf conftest.dSYM
  9295. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9296. conftest$ac_exeext conftest.$ac_ext
  9297. fi
  9298. ac_res=`eval 'as_val=${'$as_ac_var'}
  9299. $as_echo "$as_val"'`
  9300. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  9301. $as_echo "$ac_res" >&6; }
  9302. as_val=`eval 'as_val=${'$as_ac_var'}
  9303. $as_echo "$as_val"'`
  9304. if test "x$as_val" = x""yes; then
  9305. cat >>confdefs.h <<_ACEOF
  9306. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9307. _ACEOF
  9308. fi
  9309. done
  9310. if test "x$ac_cv_func_fork" = xyes; then
  9311. { $as_echo "$as_me:$LINENO: checking for working fork" >&5
  9312. $as_echo_n "checking for working fork... " >&6; }
  9313. if test "${ac_cv_func_fork_works+set}" = set; then
  9314. $as_echo_n "(cached) " >&6
  9315. else
  9316. if test "$cross_compiling" = yes; then
  9317. ac_cv_func_fork_works=cross
  9318. else
  9319. cat >conftest.$ac_ext <<_ACEOF
  9320. /* confdefs.h. */
  9321. _ACEOF
  9322. cat confdefs.h >>conftest.$ac_ext
  9323. cat >>conftest.$ac_ext <<_ACEOF
  9324. /* end confdefs.h. */
  9325. $ac_includes_default
  9326. int
  9327. main ()
  9328. {
  9329. /* By Ruediger Kuhlmann. */
  9330. return fork () < 0;
  9331. ;
  9332. return 0;
  9333. }
  9334. _ACEOF
  9335. rm -f conftest$ac_exeext
  9336. if { (ac_try="$ac_link"
  9337. case "(($ac_try" in
  9338. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9339. *) ac_try_echo=$ac_try;;
  9340. esac
  9341. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9342. $as_echo "$ac_try_echo") >&5
  9343. (eval "$ac_link") 2>&5
  9344. ac_status=$?
  9345. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9346. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9347. { (case "(($ac_try" in
  9348. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9349. *) ac_try_echo=$ac_try;;
  9350. esac
  9351. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9352. $as_echo "$ac_try_echo") >&5
  9353. (eval "$ac_try") 2>&5
  9354. ac_status=$?
  9355. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9356. (exit $ac_status); }; }; then
  9357. ac_cv_func_fork_works=yes
  9358. else
  9359. $as_echo "$as_me: program exited with status $ac_status" >&5
  9360. $as_echo "$as_me: failed program was:" >&5
  9361. sed 's/^/| /' conftest.$ac_ext >&5
  9362. ( exit $ac_status )
  9363. ac_cv_func_fork_works=no
  9364. fi
  9365. rm -rf conftest.dSYM
  9366. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9367. fi
  9368. fi
  9369. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
  9370. $as_echo "$ac_cv_func_fork_works" >&6; }
  9371. else
  9372. ac_cv_func_fork_works=$ac_cv_func_fork
  9373. fi
  9374. if test "x$ac_cv_func_fork_works" = xcross; then
  9375. case $host in
  9376. *-*-amigaos* | *-*-msdosdjgpp*)
  9377. # Override, as these systems have only a dummy fork() stub
  9378. ac_cv_func_fork_works=no
  9379. ;;
  9380. *)
  9381. ac_cv_func_fork_works=yes
  9382. ;;
  9383. esac
  9384. { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  9385. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  9386. fi
  9387. ac_cv_func_vfork_works=$ac_cv_func_vfork
  9388. if test "x$ac_cv_func_vfork" = xyes; then
  9389. { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
  9390. $as_echo_n "checking for working vfork... " >&6; }
  9391. if test "${ac_cv_func_vfork_works+set}" = set; then
  9392. $as_echo_n "(cached) " >&6
  9393. else
  9394. if test "$cross_compiling" = yes; then
  9395. ac_cv_func_vfork_works=cross
  9396. else
  9397. cat >conftest.$ac_ext <<_ACEOF
  9398. /* confdefs.h. */
  9399. _ACEOF
  9400. cat confdefs.h >>conftest.$ac_ext
  9401. cat >>conftest.$ac_ext <<_ACEOF
  9402. /* end confdefs.h. */
  9403. /* Thanks to Paul Eggert for this test. */
  9404. $ac_includes_default
  9405. #include <sys/wait.h>
  9406. #ifdef HAVE_VFORK_H
  9407. # include <vfork.h>
  9408. #endif
  9409. /* On some sparc systems, changes by the child to local and incoming
  9410. argument registers are propagated back to the parent. The compiler
  9411. is told about this with #include <vfork.h>, but some compilers
  9412. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  9413. static variable whose address is put into a register that is
  9414. clobbered by the vfork. */
  9415. static void
  9416. #ifdef __cplusplus
  9417. sparc_address_test (int arg)
  9418. # else
  9419. sparc_address_test (arg) int arg;
  9420. #endif
  9421. {
  9422. static pid_t child;
  9423. if (!child) {
  9424. child = vfork ();
  9425. if (child < 0) {
  9426. perror ("vfork");
  9427. _exit(2);
  9428. }
  9429. if (!child) {
  9430. arg = getpid();
  9431. write(-1, "", 0);
  9432. _exit (arg);
  9433. }
  9434. }
  9435. }
  9436. int
  9437. main ()
  9438. {
  9439. pid_t parent = getpid ();
  9440. pid_t child;
  9441. sparc_address_test (0);
  9442. child = vfork ();
  9443. if (child == 0) {
  9444. /* Here is another test for sparc vfork register problems. This
  9445. test uses lots of local variables, at least as many local
  9446. variables as main has allocated so far including compiler
  9447. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  9448. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  9449. reuse the register of parent for one of the local variables,
  9450. since it will think that parent can't possibly be used any more
  9451. in this routine. Assigning to the local variable will thus
  9452. munge parent in the parent process. */
  9453. pid_t
  9454. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  9455. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  9456. /* Convince the compiler that p..p7 are live; otherwise, it might
  9457. use the same hardware register for all 8 local variables. */
  9458. if (p != p1 || p != p2 || p != p3 || p != p4
  9459. || p != p5 || p != p6 || p != p7)
  9460. _exit(1);
  9461. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  9462. from child file descriptors. If the child closes a descriptor
  9463. before it execs or exits, this munges the parent's descriptor
  9464. as well. Test for this by closing stdout in the child. */
  9465. _exit(close(fileno(stdout)) != 0);
  9466. } else {
  9467. int status;
  9468. struct stat st;
  9469. while (wait(&status) != child)
  9470. ;
  9471. return (
  9472. /* Was there some problem with vforking? */
  9473. child < 0
  9474. /* Did the child fail? (This shouldn't happen.) */
  9475. || status
  9476. /* Did the vfork/compiler bug occur? */
  9477. || parent != getpid()
  9478. /* Did the file descriptor bug occur? */
  9479. || fstat(fileno(stdout), &st) != 0
  9480. );
  9481. }
  9482. }
  9483. _ACEOF
  9484. rm -f conftest$ac_exeext
  9485. if { (ac_try="$ac_link"
  9486. case "(($ac_try" in
  9487. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9488. *) ac_try_echo=$ac_try;;
  9489. esac
  9490. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9491. $as_echo "$ac_try_echo") >&5
  9492. (eval "$ac_link") 2>&5
  9493. ac_status=$?
  9494. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9495. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9496. { (case "(($ac_try" in
  9497. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9498. *) ac_try_echo=$ac_try;;
  9499. esac
  9500. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9501. $as_echo "$ac_try_echo") >&5
  9502. (eval "$ac_try") 2>&5
  9503. ac_status=$?
  9504. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9505. (exit $ac_status); }; }; then
  9506. ac_cv_func_vfork_works=yes
  9507. else
  9508. $as_echo "$as_me: program exited with status $ac_status" >&5
  9509. $as_echo "$as_me: failed program was:" >&5
  9510. sed 's/^/| /' conftest.$ac_ext >&5
  9511. ( exit $ac_status )
  9512. ac_cv_func_vfork_works=no
  9513. fi
  9514. rm -rf conftest.dSYM
  9515. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9516. fi
  9517. fi
  9518. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
  9519. $as_echo "$ac_cv_func_vfork_works" >&6; }
  9520. fi;
  9521. if test "x$ac_cv_func_fork_works" = xcross; then
  9522. ac_cv_func_vfork_works=$ac_cv_func_vfork
  9523. { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  9524. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  9525. fi
  9526. if test "x$ac_cv_func_vfork_works" = xyes; then
  9527. cat >>confdefs.h <<\_ACEOF
  9528. #define HAVE_WORKING_VFORK 1
  9529. _ACEOF
  9530. else
  9531. cat >>confdefs.h <<\_ACEOF
  9532. #define vfork fork
  9533. _ACEOF
  9534. fi
  9535. if test "x$ac_cv_func_fork_works" = xyes; then
  9536. cat >>confdefs.h <<\_ACEOF
  9537. #define HAVE_WORKING_FORK 1
  9538. _ACEOF
  9539. fi
  9540. { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  9541. $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
  9542. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  9543. $as_echo_n "(cached) " >&6
  9544. else
  9545. rm -f conftest.sym conftest.file
  9546. echo >conftest.file
  9547. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  9548. if test "$cross_compiling" = yes; then
  9549. ac_cv_func_lstat_dereferences_slashed_symlink=no
  9550. else
  9551. cat >conftest.$ac_ext <<_ACEOF
  9552. /* confdefs.h. */
  9553. _ACEOF
  9554. cat confdefs.h >>conftest.$ac_ext
  9555. cat >>conftest.$ac_ext <<_ACEOF
  9556. /* end confdefs.h. */
  9557. $ac_includes_default
  9558. int
  9559. main ()
  9560. {
  9561. struct stat sbuf;
  9562. /* Linux will dereference the symlink and fail.
  9563. That is better in the sense that it means we will not
  9564. have to compile and use the lstat wrapper. */
  9565. return lstat ("conftest.sym/", &sbuf) == 0;
  9566. ;
  9567. return 0;
  9568. }
  9569. _ACEOF
  9570. rm -f conftest$ac_exeext
  9571. if { (ac_try="$ac_link"
  9572. case "(($ac_try" in
  9573. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9574. *) ac_try_echo=$ac_try;;
  9575. esac
  9576. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9577. $as_echo "$ac_try_echo") >&5
  9578. (eval "$ac_link") 2>&5
  9579. ac_status=$?
  9580. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9581. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9582. { (case "(($ac_try" in
  9583. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9584. *) ac_try_echo=$ac_try;;
  9585. esac
  9586. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9587. $as_echo "$ac_try_echo") >&5
  9588. (eval "$ac_try") 2>&5
  9589. ac_status=$?
  9590. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9591. (exit $ac_status); }; }; then
  9592. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  9593. else
  9594. $as_echo "$as_me: program exited with status $ac_status" >&5
  9595. $as_echo "$as_me: failed program was:" >&5
  9596. sed 's/^/| /' conftest.$ac_ext >&5
  9597. ( exit $ac_status )
  9598. ac_cv_func_lstat_dereferences_slashed_symlink=no
  9599. fi
  9600. rm -rf conftest.dSYM
  9601. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9602. fi
  9603. else
  9604. # If the `ln -s' command failed, then we probably don't even
  9605. # have an lstat function.
  9606. ac_cv_func_lstat_dereferences_slashed_symlink=no
  9607. fi
  9608. rm -f conftest.sym conftest.file
  9609. fi
  9610. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  9611. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  9612. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  9613. cat >>confdefs.h <<_ACEOF
  9614. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  9615. _ACEOF
  9616. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  9617. case " $LIBOBJS " in
  9618. *" lstat.$ac_objext "* ) ;;
  9619. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  9620. ;;
  9621. esac
  9622. fi
  9623. { $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
  9624. $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
  9625. if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
  9626. $as_echo_n "(cached) " >&6
  9627. else
  9628. if test "$cross_compiling" = yes; then
  9629. ac_cv_func_lstat_empty_string_bug=yes
  9630. else
  9631. cat >conftest.$ac_ext <<_ACEOF
  9632. /* confdefs.h. */
  9633. _ACEOF
  9634. cat confdefs.h >>conftest.$ac_ext
  9635. cat >>conftest.$ac_ext <<_ACEOF
  9636. /* end confdefs.h. */
  9637. $ac_includes_default
  9638. int
  9639. main ()
  9640. {
  9641. struct stat sbuf;
  9642. return lstat ("", &sbuf) == 0;
  9643. ;
  9644. return 0;
  9645. }
  9646. _ACEOF
  9647. rm -f conftest$ac_exeext
  9648. if { (ac_try="$ac_link"
  9649. case "(($ac_try" in
  9650. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9651. *) ac_try_echo=$ac_try;;
  9652. esac
  9653. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9654. $as_echo "$ac_try_echo") >&5
  9655. (eval "$ac_link") 2>&5
  9656. ac_status=$?
  9657. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9658. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9659. { (case "(($ac_try" in
  9660. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9661. *) ac_try_echo=$ac_try;;
  9662. esac
  9663. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9664. $as_echo "$ac_try_echo") >&5
  9665. (eval "$ac_try") 2>&5
  9666. ac_status=$?
  9667. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9668. (exit $ac_status); }; }; then
  9669. ac_cv_func_lstat_empty_string_bug=no
  9670. else
  9671. $as_echo "$as_me: program exited with status $ac_status" >&5
  9672. $as_echo "$as_me: failed program was:" >&5
  9673. sed 's/^/| /' conftest.$ac_ext >&5
  9674. ( exit $ac_status )
  9675. ac_cv_func_lstat_empty_string_bug=yes
  9676. fi
  9677. rm -rf conftest.dSYM
  9678. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9679. fi
  9680. fi
  9681. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
  9682. $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
  9683. if test $ac_cv_func_lstat_empty_string_bug = yes; then
  9684. case " $LIBOBJS " in
  9685. *" lstat.$ac_objext "* ) ;;
  9686. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  9687. ;;
  9688. esac
  9689. cat >>confdefs.h <<_ACEOF
  9690. #define HAVE_LSTAT_EMPTY_STRING_BUG 1
  9691. _ACEOF
  9692. fi
  9693. { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  9694. $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
  9695. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  9696. $as_echo_n "(cached) " >&6
  9697. else
  9698. rm -f conftest.sym conftest.file
  9699. echo >conftest.file
  9700. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  9701. if test "$cross_compiling" = yes; then
  9702. ac_cv_func_lstat_dereferences_slashed_symlink=no
  9703. else
  9704. cat >conftest.$ac_ext <<_ACEOF
  9705. /* confdefs.h. */
  9706. _ACEOF
  9707. cat confdefs.h >>conftest.$ac_ext
  9708. cat >>conftest.$ac_ext <<_ACEOF
  9709. /* end confdefs.h. */
  9710. $ac_includes_default
  9711. int
  9712. main ()
  9713. {
  9714. struct stat sbuf;
  9715. /* Linux will dereference the symlink and fail.
  9716. That is better in the sense that it means we will not
  9717. have to compile and use the lstat wrapper. */
  9718. return lstat ("conftest.sym/", &sbuf) == 0;
  9719. ;
  9720. return 0;
  9721. }
  9722. _ACEOF
  9723. rm -f conftest$ac_exeext
  9724. if { (ac_try="$ac_link"
  9725. case "(($ac_try" in
  9726. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9727. *) ac_try_echo=$ac_try;;
  9728. esac
  9729. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9730. $as_echo "$ac_try_echo") >&5
  9731. (eval "$ac_link") 2>&5
  9732. ac_status=$?
  9733. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9734. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9735. { (case "(($ac_try" in
  9736. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9737. *) ac_try_echo=$ac_try;;
  9738. esac
  9739. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9740. $as_echo "$ac_try_echo") >&5
  9741. (eval "$ac_try") 2>&5
  9742. ac_status=$?
  9743. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9744. (exit $ac_status); }; }; then
  9745. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  9746. else
  9747. $as_echo "$as_me: program exited with status $ac_status" >&5
  9748. $as_echo "$as_me: failed program was:" >&5
  9749. sed 's/^/| /' conftest.$ac_ext >&5
  9750. ( exit $ac_status )
  9751. ac_cv_func_lstat_dereferences_slashed_symlink=no
  9752. fi
  9753. rm -rf conftest.dSYM
  9754. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9755. fi
  9756. else
  9757. # If the `ln -s' command failed, then we probably don't even
  9758. # have an lstat function.
  9759. ac_cv_func_lstat_dereferences_slashed_symlink=no
  9760. fi
  9761. rm -f conftest.sym conftest.file
  9762. fi
  9763. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  9764. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  9765. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  9766. cat >>confdefs.h <<_ACEOF
  9767. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  9768. _ACEOF
  9769. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  9770. case " $LIBOBJS " in
  9771. *" lstat.$ac_objext "* ) ;;
  9772. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  9773. ;;
  9774. esac
  9775. fi
  9776. for ac_header in stdlib.h
  9777. do
  9778. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9779. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9780. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  9781. $as_echo_n "checking for $ac_header... " >&6; }
  9782. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9783. $as_echo_n "(cached) " >&6
  9784. fi
  9785. ac_res=`eval 'as_val=${'$as_ac_Header'}
  9786. $as_echo "$as_val"'`
  9787. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  9788. $as_echo "$ac_res" >&6; }
  9789. else
  9790. # Is the header compilable?
  9791. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9792. $as_echo_n "checking $ac_header usability... " >&6; }
  9793. cat >conftest.$ac_ext <<_ACEOF
  9794. /* confdefs.h. */
  9795. _ACEOF
  9796. cat confdefs.h >>conftest.$ac_ext
  9797. cat >>conftest.$ac_ext <<_ACEOF
  9798. /* end confdefs.h. */
  9799. $ac_includes_default
  9800. #include <$ac_header>
  9801. _ACEOF
  9802. rm -f conftest.$ac_objext
  9803. if { (ac_try="$ac_compile"
  9804. case "(($ac_try" in
  9805. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9806. *) ac_try_echo=$ac_try;;
  9807. esac
  9808. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9809. $as_echo "$ac_try_echo") >&5
  9810. (eval "$ac_compile") 2>conftest.er1
  9811. ac_status=$?
  9812. grep -v '^ *+' conftest.er1 >conftest.err
  9813. rm -f conftest.er1
  9814. cat conftest.err >&5
  9815. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9816. (exit $ac_status); } && {
  9817. test -z "$ac_cxx_werror_flag" ||
  9818. test ! -s conftest.err
  9819. } && test -s conftest.$ac_objext; then
  9820. ac_header_compiler=yes
  9821. else
  9822. $as_echo "$as_me: failed program was:" >&5
  9823. sed 's/^/| /' conftest.$ac_ext >&5
  9824. ac_header_compiler=no
  9825. fi
  9826. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9827. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9828. $as_echo "$ac_header_compiler" >&6; }
  9829. # Is the header present?
  9830. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9831. $as_echo_n "checking $ac_header presence... " >&6; }
  9832. cat >conftest.$ac_ext <<_ACEOF
  9833. /* confdefs.h. */
  9834. _ACEOF
  9835. cat confdefs.h >>conftest.$ac_ext
  9836. cat >>conftest.$ac_ext <<_ACEOF
  9837. /* end confdefs.h. */
  9838. #include <$ac_header>
  9839. _ACEOF
  9840. if { (ac_try="$ac_cpp conftest.$ac_ext"
  9841. case "(($ac_try" in
  9842. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9843. *) ac_try_echo=$ac_try;;
  9844. esac
  9845. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9846. $as_echo "$ac_try_echo") >&5
  9847. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9848. ac_status=$?
  9849. grep -v '^ *+' conftest.er1 >conftest.err
  9850. rm -f conftest.er1
  9851. cat conftest.err >&5
  9852. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9853. (exit $ac_status); } >/dev/null && {
  9854. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  9855. test ! -s conftest.err
  9856. }; then
  9857. ac_header_preproc=yes
  9858. else
  9859. $as_echo "$as_me: failed program was:" >&5
  9860. sed 's/^/| /' conftest.$ac_ext >&5
  9861. ac_header_preproc=no
  9862. fi
  9863. rm -f conftest.err conftest.$ac_ext
  9864. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9865. $as_echo "$ac_header_preproc" >&6; }
  9866. # So? What about this header?
  9867. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  9868. yes:no: )
  9869. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9870. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9871. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9872. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9873. ac_header_preproc=yes
  9874. ;;
  9875. no:yes:* )
  9876. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9877. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9878. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9879. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9880. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9881. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9882. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9883. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9884. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9885. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9886. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9887. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9888. ;;
  9889. esac
  9890. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  9891. $as_echo_n "checking for $ac_header... " >&6; }
  9892. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9893. $as_echo_n "(cached) " >&6
  9894. else
  9895. eval "$as_ac_Header=\$ac_header_preproc"
  9896. fi
  9897. ac_res=`eval 'as_val=${'$as_ac_Header'}
  9898. $as_echo "$as_val"'`
  9899. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  9900. $as_echo "$ac_res" >&6; }
  9901. fi
  9902. as_val=`eval 'as_val=${'$as_ac_Header'}
  9903. $as_echo "$as_val"'`
  9904. if test "x$as_val" = x""yes; then
  9905. cat >>confdefs.h <<_ACEOF
  9906. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9907. _ACEOF
  9908. fi
  9909. done
  9910. { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  9911. $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
  9912. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  9913. $as_echo_n "(cached) " >&6
  9914. else
  9915. if test "$cross_compiling" = yes; then
  9916. ac_cv_func_malloc_0_nonnull=no
  9917. else
  9918. cat >conftest.$ac_ext <<_ACEOF
  9919. /* confdefs.h. */
  9920. _ACEOF
  9921. cat confdefs.h >>conftest.$ac_ext
  9922. cat >>conftest.$ac_ext <<_ACEOF
  9923. /* end confdefs.h. */
  9924. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  9925. # include <stdlib.h>
  9926. #else
  9927. char *malloc ();
  9928. #endif
  9929. int
  9930. main ()
  9931. {
  9932. return ! malloc (0);
  9933. ;
  9934. return 0;
  9935. }
  9936. _ACEOF
  9937. rm -f conftest$ac_exeext
  9938. if { (ac_try="$ac_link"
  9939. case "(($ac_try" in
  9940. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9941. *) ac_try_echo=$ac_try;;
  9942. esac
  9943. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9944. $as_echo "$ac_try_echo") >&5
  9945. (eval "$ac_link") 2>&5
  9946. ac_status=$?
  9947. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9948. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9949. { (case "(($ac_try" in
  9950. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9951. *) ac_try_echo=$ac_try;;
  9952. esac
  9953. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9954. $as_echo "$ac_try_echo") >&5
  9955. (eval "$ac_try") 2>&5
  9956. ac_status=$?
  9957. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9958. (exit $ac_status); }; }; then
  9959. ac_cv_func_malloc_0_nonnull=yes
  9960. else
  9961. $as_echo "$as_me: program exited with status $ac_status" >&5
  9962. $as_echo "$as_me: failed program was:" >&5
  9963. sed 's/^/| /' conftest.$ac_ext >&5
  9964. ( exit $ac_status )
  9965. ac_cv_func_malloc_0_nonnull=no
  9966. fi
  9967. rm -rf conftest.dSYM
  9968. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9969. fi
  9970. fi
  9971. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  9972. $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
  9973. if test $ac_cv_func_malloc_0_nonnull = yes; then
  9974. cat >>confdefs.h <<\_ACEOF
  9975. #define HAVE_MALLOC 1
  9976. _ACEOF
  9977. else
  9978. cat >>confdefs.h <<\_ACEOF
  9979. #define HAVE_MALLOC 0
  9980. _ACEOF
  9981. case " $LIBOBJS " in
  9982. *" malloc.$ac_objext "* ) ;;
  9983. *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
  9984. ;;
  9985. esac
  9986. cat >>confdefs.h <<\_ACEOF
  9987. #define malloc rpl_malloc
  9988. _ACEOF
  9989. fi
  9990. for ac_header in $ac_header_list
  9991. do
  9992. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9993. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9994. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  9995. $as_echo_n "checking for $ac_header... " >&6; }
  9996. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9997. $as_echo_n "(cached) " >&6
  9998. fi
  9999. ac_res=`eval 'as_val=${'$as_ac_Header'}
  10000. $as_echo "$as_val"'`
  10001. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  10002. $as_echo "$ac_res" >&6; }
  10003. else
  10004. # Is the header compilable?
  10005. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  10006. $as_echo_n "checking $ac_header usability... " >&6; }
  10007. cat >conftest.$ac_ext <<_ACEOF
  10008. /* confdefs.h. */
  10009. _ACEOF
  10010. cat confdefs.h >>conftest.$ac_ext
  10011. cat >>conftest.$ac_ext <<_ACEOF
  10012. /* end confdefs.h. */
  10013. $ac_includes_default
  10014. #include <$ac_header>
  10015. _ACEOF
  10016. rm -f conftest.$ac_objext
  10017. if { (ac_try="$ac_compile"
  10018. case "(($ac_try" in
  10019. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10020. *) ac_try_echo=$ac_try;;
  10021. esac
  10022. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10023. $as_echo "$ac_try_echo") >&5
  10024. (eval "$ac_compile") 2>conftest.er1
  10025. ac_status=$?
  10026. grep -v '^ *+' conftest.er1 >conftest.err
  10027. rm -f conftest.er1
  10028. cat conftest.err >&5
  10029. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10030. (exit $ac_status); } && {
  10031. test -z "$ac_cxx_werror_flag" ||
  10032. test ! -s conftest.err
  10033. } && test -s conftest.$ac_objext; then
  10034. ac_header_compiler=yes
  10035. else
  10036. $as_echo "$as_me: failed program was:" >&5
  10037. sed 's/^/| /' conftest.$ac_ext >&5
  10038. ac_header_compiler=no
  10039. fi
  10040. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10041. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10042. $as_echo "$ac_header_compiler" >&6; }
  10043. # Is the header present?
  10044. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10045. $as_echo_n "checking $ac_header presence... " >&6; }
  10046. cat >conftest.$ac_ext <<_ACEOF
  10047. /* confdefs.h. */
  10048. _ACEOF
  10049. cat confdefs.h >>conftest.$ac_ext
  10050. cat >>conftest.$ac_ext <<_ACEOF
  10051. /* end confdefs.h. */
  10052. #include <$ac_header>
  10053. _ACEOF
  10054. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10055. case "(($ac_try" in
  10056. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10057. *) ac_try_echo=$ac_try;;
  10058. esac
  10059. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10060. $as_echo "$ac_try_echo") >&5
  10061. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10062. ac_status=$?
  10063. grep -v '^ *+' conftest.er1 >conftest.err
  10064. rm -f conftest.er1
  10065. cat conftest.err >&5
  10066. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10067. (exit $ac_status); } >/dev/null && {
  10068. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  10069. test ! -s conftest.err
  10070. }; then
  10071. ac_header_preproc=yes
  10072. else
  10073. $as_echo "$as_me: failed program was:" >&5
  10074. sed 's/^/| /' conftest.$ac_ext >&5
  10075. ac_header_preproc=no
  10076. fi
  10077. rm -f conftest.err conftest.$ac_ext
  10078. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10079. $as_echo "$ac_header_preproc" >&6; }
  10080. # So? What about this header?
  10081. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  10082. yes:no: )
  10083. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10084. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10085. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10086. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10087. ac_header_preproc=yes
  10088. ;;
  10089. no:yes:* )
  10090. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10091. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10092. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10093. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10094. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10095. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10096. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10097. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10098. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10099. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10100. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10101. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10102. ;;
  10103. esac
  10104. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  10105. $as_echo_n "checking for $ac_header... " >&6; }
  10106. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10107. $as_echo_n "(cached) " >&6
  10108. else
  10109. eval "$as_ac_Header=\$ac_header_preproc"
  10110. fi
  10111. ac_res=`eval 'as_val=${'$as_ac_Header'}
  10112. $as_echo "$as_val"'`
  10113. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  10114. $as_echo "$ac_res" >&6; }
  10115. fi
  10116. as_val=`eval 'as_val=${'$as_ac_Header'}
  10117. $as_echo "$as_val"'`
  10118. if test "x$as_val" = x""yes; then
  10119. cat >>confdefs.h <<_ACEOF
  10120. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10121. _ACEOF
  10122. fi
  10123. done
  10124. for ac_func in $ac_func_list
  10125. do
  10126. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10127. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  10128. $as_echo_n "checking for $ac_func... " >&6; }
  10129. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  10130. $as_echo_n "(cached) " >&6
  10131. else
  10132. cat >conftest.$ac_ext <<_ACEOF
  10133. /* confdefs.h. */
  10134. _ACEOF
  10135. cat confdefs.h >>conftest.$ac_ext
  10136. cat >>conftest.$ac_ext <<_ACEOF
  10137. /* end confdefs.h. */
  10138. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10139. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10140. #define $ac_func innocuous_$ac_func
  10141. /* System header to define __stub macros and hopefully few prototypes,
  10142. which can conflict with char $ac_func (); below.
  10143. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10144. <limits.h> exists even on freestanding compilers. */
  10145. #ifdef __STDC__
  10146. # include <limits.h>
  10147. #else
  10148. # include <assert.h>
  10149. #endif
  10150. #undef $ac_func
  10151. /* Override any GCC internal prototype to avoid an error.
  10152. Use char because int might match the return type of a GCC
  10153. builtin and then its argument prototype would still apply. */
  10154. #ifdef __cplusplus
  10155. extern "C"
  10156. #endif
  10157. char $ac_func ();
  10158. /* The GNU C library defines this for functions which it implements
  10159. to always fail with ENOSYS. Some functions are actually named
  10160. something starting with __ and the normal name is an alias. */
  10161. #if defined __stub_$ac_func || defined __stub___$ac_func
  10162. choke me
  10163. #endif
  10164. int
  10165. main ()
  10166. {
  10167. return $ac_func ();
  10168. ;
  10169. return 0;
  10170. }
  10171. _ACEOF
  10172. rm -f conftest.$ac_objext conftest$ac_exeext
  10173. if { (ac_try="$ac_link"
  10174. case "(($ac_try" in
  10175. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10176. *) ac_try_echo=$ac_try;;
  10177. esac
  10178. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10179. $as_echo "$ac_try_echo") >&5
  10180. (eval "$ac_link") 2>conftest.er1
  10181. ac_status=$?
  10182. grep -v '^ *+' conftest.er1 >conftest.err
  10183. rm -f conftest.er1
  10184. cat conftest.err >&5
  10185. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10186. (exit $ac_status); } && {
  10187. test -z "$ac_cxx_werror_flag" ||
  10188. test ! -s conftest.err
  10189. } && test -s conftest$ac_exeext && {
  10190. test "$cross_compiling" = yes ||
  10191. $as_test_x conftest$ac_exeext
  10192. }; then
  10193. eval "$as_ac_var=yes"
  10194. else
  10195. $as_echo "$as_me: failed program was:" >&5
  10196. sed 's/^/| /' conftest.$ac_ext >&5
  10197. eval "$as_ac_var=no"
  10198. fi
  10199. rm -rf conftest.dSYM
  10200. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10201. conftest$ac_exeext conftest.$ac_ext
  10202. fi
  10203. ac_res=`eval 'as_val=${'$as_ac_var'}
  10204. $as_echo "$as_val"'`
  10205. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  10206. $as_echo "$ac_res" >&6; }
  10207. as_val=`eval 'as_val=${'$as_ac_var'}
  10208. $as_echo "$as_val"'`
  10209. if test "x$as_val" = x""yes; then
  10210. cat >>confdefs.h <<_ACEOF
  10211. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10212. _ACEOF
  10213. fi
  10214. done
  10215. { $as_echo "$as_me:$LINENO: checking for working mktime" >&5
  10216. $as_echo_n "checking for working mktime... " >&6; }
  10217. if test "${ac_cv_func_working_mktime+set}" = set; then
  10218. $as_echo_n "(cached) " >&6
  10219. else
  10220. if test "$cross_compiling" = yes; then
  10221. ac_cv_func_working_mktime=no
  10222. else
  10223. cat >conftest.$ac_ext <<_ACEOF
  10224. /* confdefs.h. */
  10225. _ACEOF
  10226. cat confdefs.h >>conftest.$ac_ext
  10227. cat >>conftest.$ac_ext <<_ACEOF
  10228. /* end confdefs.h. */
  10229. /* Test program from Paul Eggert and Tony Leneis. */
  10230. #ifdef TIME_WITH_SYS_TIME
  10231. # include <sys/time.h>
  10232. # include <time.h>
  10233. #else
  10234. # ifdef HAVE_SYS_TIME_H
  10235. # include <sys/time.h>
  10236. # else
  10237. # include <time.h>
  10238. # endif
  10239. #endif
  10240. #include <limits.h>
  10241. #include <stdlib.h>
  10242. #ifdef HAVE_UNISTD_H
  10243. # include <unistd.h>
  10244. #endif
  10245. #ifndef HAVE_ALARM
  10246. # define alarm(X) /* empty */
  10247. #endif
  10248. /* Work around redefinition to rpl_putenv by other config tests. */
  10249. #undef putenv
  10250. static time_t time_t_max;
  10251. static time_t time_t_min;
  10252. /* Values we'll use to set the TZ environment variable. */
  10253. static char *tz_strings[] = {
  10254. (char *) 0, "TZ=GMT0", "TZ=JST-9",
  10255. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  10256. };
  10257. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  10258. /* Return 0 if mktime fails to convert a date in the spring-forward gap.
  10259. Based on a problem report from Andreas Jaeger. */
  10260. static int
  10261. spring_forward_gap ()
  10262. {
  10263. /* glibc (up to about 1998-10-07) failed this test. */
  10264. struct tm tm;
  10265. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  10266. instead of "TZ=America/Vancouver" in order to detect the bug even
  10267. on systems that don't support the Olson extension, or don't have the
  10268. full zoneinfo tables installed. */
  10269. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  10270. tm.tm_year = 98;
  10271. tm.tm_mon = 3;
  10272. tm.tm_mday = 5;
  10273. tm.tm_hour = 2;
  10274. tm.tm_min = 0;
  10275. tm.tm_sec = 0;
  10276. tm.tm_isdst = -1;
  10277. return mktime (&tm) != (time_t) -1;
  10278. }
  10279. static int
  10280. mktime_test1 (now)
  10281. time_t now;
  10282. {
  10283. struct tm *lt;
  10284. return ! (lt = localtime (&now)) || mktime (lt) == now;
  10285. }
  10286. static int
  10287. mktime_test (now)
  10288. time_t now;
  10289. {
  10290. return (mktime_test1 (now)
  10291. && mktime_test1 ((time_t) (time_t_max - now))
  10292. && mktime_test1 ((time_t) (time_t_min + now)));
  10293. }
  10294. static int
  10295. irix_6_4_bug ()
  10296. {
  10297. /* Based on code from Ariel Faigon. */
  10298. struct tm tm;
  10299. tm.tm_year = 96;
  10300. tm.tm_mon = 3;
  10301. tm.tm_mday = 0;
  10302. tm.tm_hour = 0;
  10303. tm.tm_min = 0;
  10304. tm.tm_sec = 0;
  10305. tm.tm_isdst = -1;
  10306. mktime (&tm);
  10307. return tm.tm_mon == 2 && tm.tm_mday == 31;
  10308. }
  10309. static int
  10310. bigtime_test (j)
  10311. int j;
  10312. {
  10313. struct tm tm;
  10314. time_t now;
  10315. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  10316. now = mktime (&tm);
  10317. if (now != (time_t) -1)
  10318. {
  10319. struct tm *lt = localtime (&now);
  10320. if (! (lt
  10321. && lt->tm_year == tm.tm_year
  10322. && lt->tm_mon == tm.tm_mon
  10323. && lt->tm_mday == tm.tm_mday
  10324. && lt->tm_hour == tm.tm_hour
  10325. && lt->tm_min == tm.tm_min
  10326. && lt->tm_sec == tm.tm_sec
  10327. && lt->tm_yday == tm.tm_yday
  10328. && lt->tm_wday == tm.tm_wday
  10329. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  10330. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  10331. return 0;
  10332. }
  10333. return 1;
  10334. }
  10335. static int
  10336. year_2050_test ()
  10337. {
  10338. /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
  10339. ignoring leap seconds. */
  10340. unsigned long int answer = 2527315200UL;
  10341. struct tm tm;
  10342. time_t t;
  10343. tm.tm_year = 2050 - 1900;
  10344. tm.tm_mon = 2 - 1;
  10345. tm.tm_mday = 1;
  10346. tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
  10347. tm.tm_isdst = -1;
  10348. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  10349. instead of "TZ=America/Vancouver" in order to detect the bug even
  10350. on systems that don't support the Olson extension, or don't have the
  10351. full zoneinfo tables installed. */
  10352. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  10353. t = mktime (&tm);
  10354. /* Check that the result is either a failure, or close enough
  10355. to the correct answer that we can assume the discrepancy is
  10356. due to leap seconds. */
  10357. return (t == (time_t) -1
  10358. || (0 < t && answer - 120 <= t && t <= answer + 120));
  10359. }
  10360. int
  10361. main ()
  10362. {
  10363. time_t t, delta;
  10364. int i, j;
  10365. /* This test makes some buggy mktime implementations loop.
  10366. Give up after 60 seconds; a mktime slower than that
  10367. isn't worth using anyway. */
  10368. alarm (60);
  10369. for (;;)
  10370. {
  10371. t = (time_t_max << 1) + 1;
  10372. if (t <= time_t_max)
  10373. break;
  10374. time_t_max = t;
  10375. }
  10376. time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
  10377. delta = time_t_max / 997; /* a suitable prime number */
  10378. for (i = 0; i < N_STRINGS; i++)
  10379. {
  10380. if (tz_strings[i])
  10381. putenv (tz_strings[i]);
  10382. for (t = 0; t <= time_t_max - delta; t += delta)
  10383. if (! mktime_test (t))
  10384. return 1;
  10385. if (! (mktime_test ((time_t) 1)
  10386. && mktime_test ((time_t) (60 * 60))
  10387. && mktime_test ((time_t) (60 * 60 * 24))))
  10388. return 1;
  10389. for (j = 1; ; j <<= 1)
  10390. if (! bigtime_test (j))
  10391. return 1;
  10392. else if (INT_MAX / 2 < j)
  10393. break;
  10394. if (! bigtime_test (INT_MAX))
  10395. return 1;
  10396. }
  10397. return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
  10398. }
  10399. _ACEOF
  10400. rm -f conftest$ac_exeext
  10401. if { (ac_try="$ac_link"
  10402. case "(($ac_try" in
  10403. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10404. *) ac_try_echo=$ac_try;;
  10405. esac
  10406. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10407. $as_echo "$ac_try_echo") >&5
  10408. (eval "$ac_link") 2>&5
  10409. ac_status=$?
  10410. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10411. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10412. { (case "(($ac_try" in
  10413. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10414. *) ac_try_echo=$ac_try;;
  10415. esac
  10416. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10417. $as_echo "$ac_try_echo") >&5
  10418. (eval "$ac_try") 2>&5
  10419. ac_status=$?
  10420. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10421. (exit $ac_status); }; }; then
  10422. ac_cv_func_working_mktime=yes
  10423. else
  10424. $as_echo "$as_me: program exited with status $ac_status" >&5
  10425. $as_echo "$as_me: failed program was:" >&5
  10426. sed 's/^/| /' conftest.$ac_ext >&5
  10427. ( exit $ac_status )
  10428. ac_cv_func_working_mktime=no
  10429. fi
  10430. rm -rf conftest.dSYM
  10431. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10432. fi
  10433. fi
  10434. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
  10435. $as_echo "$ac_cv_func_working_mktime" >&6; }
  10436. if test $ac_cv_func_working_mktime = no; then
  10437. case " $LIBOBJS " in
  10438. *" mktime.$ac_objext "* ) ;;
  10439. *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
  10440. ;;
  10441. esac
  10442. fi
  10443. for ac_header in stdlib.h unistd.h
  10444. do
  10445. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10446. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10447. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  10448. $as_echo_n "checking for $ac_header... " >&6; }
  10449. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10450. $as_echo_n "(cached) " >&6
  10451. fi
  10452. ac_res=`eval 'as_val=${'$as_ac_Header'}
  10453. $as_echo "$as_val"'`
  10454. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  10455. $as_echo "$ac_res" >&6; }
  10456. else
  10457. # Is the header compilable?
  10458. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  10459. $as_echo_n "checking $ac_header usability... " >&6; }
  10460. cat >conftest.$ac_ext <<_ACEOF
  10461. /* confdefs.h. */
  10462. _ACEOF
  10463. cat confdefs.h >>conftest.$ac_ext
  10464. cat >>conftest.$ac_ext <<_ACEOF
  10465. /* end confdefs.h. */
  10466. $ac_includes_default
  10467. #include <$ac_header>
  10468. _ACEOF
  10469. rm -f conftest.$ac_objext
  10470. if { (ac_try="$ac_compile"
  10471. case "(($ac_try" in
  10472. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10473. *) ac_try_echo=$ac_try;;
  10474. esac
  10475. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10476. $as_echo "$ac_try_echo") >&5
  10477. (eval "$ac_compile") 2>conftest.er1
  10478. ac_status=$?
  10479. grep -v '^ *+' conftest.er1 >conftest.err
  10480. rm -f conftest.er1
  10481. cat conftest.err >&5
  10482. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10483. (exit $ac_status); } && {
  10484. test -z "$ac_cxx_werror_flag" ||
  10485. test ! -s conftest.err
  10486. } && test -s conftest.$ac_objext; then
  10487. ac_header_compiler=yes
  10488. else
  10489. $as_echo "$as_me: failed program was:" >&5
  10490. sed 's/^/| /' conftest.$ac_ext >&5
  10491. ac_header_compiler=no
  10492. fi
  10493. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10494. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10495. $as_echo "$ac_header_compiler" >&6; }
  10496. # Is the header present?
  10497. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10498. $as_echo_n "checking $ac_header presence... " >&6; }
  10499. cat >conftest.$ac_ext <<_ACEOF
  10500. /* confdefs.h. */
  10501. _ACEOF
  10502. cat confdefs.h >>conftest.$ac_ext
  10503. cat >>conftest.$ac_ext <<_ACEOF
  10504. /* end confdefs.h. */
  10505. #include <$ac_header>
  10506. _ACEOF
  10507. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10508. case "(($ac_try" in
  10509. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10510. *) ac_try_echo=$ac_try;;
  10511. esac
  10512. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10513. $as_echo "$ac_try_echo") >&5
  10514. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10515. ac_status=$?
  10516. grep -v '^ *+' conftest.er1 >conftest.err
  10517. rm -f conftest.er1
  10518. cat conftest.err >&5
  10519. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10520. (exit $ac_status); } >/dev/null && {
  10521. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  10522. test ! -s conftest.err
  10523. }; then
  10524. ac_header_preproc=yes
  10525. else
  10526. $as_echo "$as_me: failed program was:" >&5
  10527. sed 's/^/| /' conftest.$ac_ext >&5
  10528. ac_header_preproc=no
  10529. fi
  10530. rm -f conftest.err conftest.$ac_ext
  10531. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10532. $as_echo "$ac_header_preproc" >&6; }
  10533. # So? What about this header?
  10534. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  10535. yes:no: )
  10536. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10537. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10538. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10539. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10540. ac_header_preproc=yes
  10541. ;;
  10542. no:yes:* )
  10543. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10544. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10545. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10546. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10547. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10548. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10549. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10550. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10551. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10552. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10553. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10554. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10555. ;;
  10556. esac
  10557. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  10558. $as_echo_n "checking for $ac_header... " >&6; }
  10559. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10560. $as_echo_n "(cached) " >&6
  10561. else
  10562. eval "$as_ac_Header=\$ac_header_preproc"
  10563. fi
  10564. ac_res=`eval 'as_val=${'$as_ac_Header'}
  10565. $as_echo "$as_val"'`
  10566. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  10567. $as_echo "$ac_res" >&6; }
  10568. fi
  10569. as_val=`eval 'as_val=${'$as_ac_Header'}
  10570. $as_echo "$as_val"'`
  10571. if test "x$as_val" = x""yes; then
  10572. cat >>confdefs.h <<_ACEOF
  10573. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10574. _ACEOF
  10575. fi
  10576. done
  10577. for ac_func in getpagesize
  10578. do
  10579. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10580. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  10581. $as_echo_n "checking for $ac_func... " >&6; }
  10582. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  10583. $as_echo_n "(cached) " >&6
  10584. else
  10585. cat >conftest.$ac_ext <<_ACEOF
  10586. /* confdefs.h. */
  10587. _ACEOF
  10588. cat confdefs.h >>conftest.$ac_ext
  10589. cat >>conftest.$ac_ext <<_ACEOF
  10590. /* end confdefs.h. */
  10591. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10592. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10593. #define $ac_func innocuous_$ac_func
  10594. /* System header to define __stub macros and hopefully few prototypes,
  10595. which can conflict with char $ac_func (); below.
  10596. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10597. <limits.h> exists even on freestanding compilers. */
  10598. #ifdef __STDC__
  10599. # include <limits.h>
  10600. #else
  10601. # include <assert.h>
  10602. #endif
  10603. #undef $ac_func
  10604. /* Override any GCC internal prototype to avoid an error.
  10605. Use char because int might match the return type of a GCC
  10606. builtin and then its argument prototype would still apply. */
  10607. #ifdef __cplusplus
  10608. extern "C"
  10609. #endif
  10610. char $ac_func ();
  10611. /* The GNU C library defines this for functions which it implements
  10612. to always fail with ENOSYS. Some functions are actually named
  10613. something starting with __ and the normal name is an alias. */
  10614. #if defined __stub_$ac_func || defined __stub___$ac_func
  10615. choke me
  10616. #endif
  10617. int
  10618. main ()
  10619. {
  10620. return $ac_func ();
  10621. ;
  10622. return 0;
  10623. }
  10624. _ACEOF
  10625. rm -f conftest.$ac_objext conftest$ac_exeext
  10626. if { (ac_try="$ac_link"
  10627. case "(($ac_try" in
  10628. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10629. *) ac_try_echo=$ac_try;;
  10630. esac
  10631. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10632. $as_echo "$ac_try_echo") >&5
  10633. (eval "$ac_link") 2>conftest.er1
  10634. ac_status=$?
  10635. grep -v '^ *+' conftest.er1 >conftest.err
  10636. rm -f conftest.er1
  10637. cat conftest.err >&5
  10638. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10639. (exit $ac_status); } && {
  10640. test -z "$ac_cxx_werror_flag" ||
  10641. test ! -s conftest.err
  10642. } && test -s conftest$ac_exeext && {
  10643. test "$cross_compiling" = yes ||
  10644. $as_test_x conftest$ac_exeext
  10645. }; then
  10646. eval "$as_ac_var=yes"
  10647. else
  10648. $as_echo "$as_me: failed program was:" >&5
  10649. sed 's/^/| /' conftest.$ac_ext >&5
  10650. eval "$as_ac_var=no"
  10651. fi
  10652. rm -rf conftest.dSYM
  10653. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10654. conftest$ac_exeext conftest.$ac_ext
  10655. fi
  10656. ac_res=`eval 'as_val=${'$as_ac_var'}
  10657. $as_echo "$as_val"'`
  10658. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  10659. $as_echo "$ac_res" >&6; }
  10660. as_val=`eval 'as_val=${'$as_ac_var'}
  10661. $as_echo "$as_val"'`
  10662. if test "x$as_val" = x""yes; then
  10663. cat >>confdefs.h <<_ACEOF
  10664. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10665. _ACEOF
  10666. fi
  10667. done
  10668. { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
  10669. $as_echo_n "checking for working mmap... " >&6; }
  10670. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  10671. $as_echo_n "(cached) " >&6
  10672. else
  10673. if test "$cross_compiling" = yes; then
  10674. ac_cv_func_mmap_fixed_mapped=no
  10675. else
  10676. cat >conftest.$ac_ext <<_ACEOF
  10677. /* confdefs.h. */
  10678. _ACEOF
  10679. cat confdefs.h >>conftest.$ac_ext
  10680. cat >>conftest.$ac_ext <<_ACEOF
  10681. /* end confdefs.h. */
  10682. $ac_includes_default
  10683. /* malloc might have been renamed as rpl_malloc. */
  10684. #undef malloc
  10685. /* Thanks to Mike Haertel and Jim Avera for this test.
  10686. Here is a matrix of mmap possibilities:
  10687. mmap private not fixed
  10688. mmap private fixed at somewhere currently unmapped
  10689. mmap private fixed at somewhere already mapped
  10690. mmap shared not fixed
  10691. mmap shared fixed at somewhere currently unmapped
  10692. mmap shared fixed at somewhere already mapped
  10693. For private mappings, we should verify that changes cannot be read()
  10694. back from the file, nor mmap's back from the file at a different
  10695. address. (There have been systems where private was not correctly
  10696. implemented like the infamous i386 svr4.0, and systems where the
  10697. VM page cache was not coherent with the file system buffer cache
  10698. like early versions of FreeBSD and possibly contemporary NetBSD.)
  10699. For shared mappings, we should conversely verify that changes get
  10700. propagated back to all the places they're supposed to be.
  10701. Grep wants private fixed already mapped.
  10702. The main things grep needs to know about mmap are:
  10703. * does it exist and is it safe to write into the mmap'd area
  10704. * how to use it (BSD variants) */
  10705. #include <fcntl.h>
  10706. #include <sys/mman.h>
  10707. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  10708. char *malloc ();
  10709. #endif
  10710. /* This mess was copied from the GNU getpagesize.h. */
  10711. #ifndef HAVE_GETPAGESIZE
  10712. /* Assume that all systems that can run configure have sys/param.h. */
  10713. # ifndef HAVE_SYS_PARAM_H
  10714. # define HAVE_SYS_PARAM_H 1
  10715. # endif
  10716. # ifdef _SC_PAGESIZE
  10717. # define getpagesize() sysconf(_SC_PAGESIZE)
  10718. # else /* no _SC_PAGESIZE */
  10719. # ifdef HAVE_SYS_PARAM_H
  10720. # include <sys/param.h>
  10721. # ifdef EXEC_PAGESIZE
  10722. # define getpagesize() EXEC_PAGESIZE
  10723. # else /* no EXEC_PAGESIZE */
  10724. # ifdef NBPG
  10725. # define getpagesize() NBPG * CLSIZE
  10726. # ifndef CLSIZE
  10727. # define CLSIZE 1
  10728. # endif /* no CLSIZE */
  10729. # else /* no NBPG */
  10730. # ifdef NBPC
  10731. # define getpagesize() NBPC
  10732. # else /* no NBPC */
  10733. # ifdef PAGESIZE
  10734. # define getpagesize() PAGESIZE
  10735. # endif /* PAGESIZE */
  10736. # endif /* no NBPC */
  10737. # endif /* no NBPG */
  10738. # endif /* no EXEC_PAGESIZE */
  10739. # else /* no HAVE_SYS_PARAM_H */
  10740. # define getpagesize() 8192 /* punt totally */
  10741. # endif /* no HAVE_SYS_PARAM_H */
  10742. # endif /* no _SC_PAGESIZE */
  10743. #endif /* no HAVE_GETPAGESIZE */
  10744. int
  10745. main ()
  10746. {
  10747. char *data, *data2, *data3;
  10748. int i, pagesize;
  10749. int fd;
  10750. pagesize = getpagesize ();
  10751. /* First, make a file with some known garbage in it. */
  10752. data = (char *) malloc (pagesize);
  10753. if (!data)
  10754. return 1;
  10755. for (i = 0; i < pagesize; ++i)
  10756. *(data + i) = rand ();
  10757. umask (0);
  10758. fd = creat ("conftest.mmap", 0600);
  10759. if (fd < 0)
  10760. return 1;
  10761. if (write (fd, data, pagesize) != pagesize)
  10762. return 1;
  10763. close (fd);
  10764. /* Next, try to mmap the file at a fixed address which already has
  10765. something else allocated at it. If we can, also make sure that
  10766. we see the same garbage. */
  10767. fd = open ("conftest.mmap", O_RDWR);
  10768. if (fd < 0)
  10769. return 1;
  10770. data2 = (char *) malloc (2 * pagesize);
  10771. if (!data2)
  10772. return 1;
  10773. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  10774. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  10775. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  10776. return 1;
  10777. for (i = 0; i < pagesize; ++i)
  10778. if (*(data + i) != *(data2 + i))
  10779. return 1;
  10780. /* Finally, make sure that changes to the mapped area do not
  10781. percolate back to the file as seen by read(). (This is a bug on
  10782. some variants of i386 svr4.0.) */
  10783. for (i = 0; i < pagesize; ++i)
  10784. *(data2 + i) = *(data2 + i) + 1;
  10785. data3 = (char *) malloc (pagesize);
  10786. if (!data3)
  10787. return 1;
  10788. if (read (fd, data3, pagesize) != pagesize)
  10789. return 1;
  10790. for (i = 0; i < pagesize; ++i)
  10791. if (*(data + i) != *(data3 + i))
  10792. return 1;
  10793. close (fd);
  10794. return 0;
  10795. }
  10796. _ACEOF
  10797. rm -f conftest$ac_exeext
  10798. if { (ac_try="$ac_link"
  10799. case "(($ac_try" in
  10800. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10801. *) ac_try_echo=$ac_try;;
  10802. esac
  10803. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10804. $as_echo "$ac_try_echo") >&5
  10805. (eval "$ac_link") 2>&5
  10806. ac_status=$?
  10807. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10808. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10809. { (case "(($ac_try" in
  10810. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10811. *) ac_try_echo=$ac_try;;
  10812. esac
  10813. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10814. $as_echo "$ac_try_echo") >&5
  10815. (eval "$ac_try") 2>&5
  10816. ac_status=$?
  10817. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10818. (exit $ac_status); }; }; then
  10819. ac_cv_func_mmap_fixed_mapped=yes
  10820. else
  10821. $as_echo "$as_me: program exited with status $ac_status" >&5
  10822. $as_echo "$as_me: failed program was:" >&5
  10823. sed 's/^/| /' conftest.$ac_ext >&5
  10824. ( exit $ac_status )
  10825. ac_cv_func_mmap_fixed_mapped=no
  10826. fi
  10827. rm -rf conftest.dSYM
  10828. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10829. fi
  10830. fi
  10831. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  10832. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  10833. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  10834. cat >>confdefs.h <<\_ACEOF
  10835. #define HAVE_MMAP 1
  10836. _ACEOF
  10837. fi
  10838. rm -f conftest.mmap
  10839. for ac_header in stdlib.h
  10840. do
  10841. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10842. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10843. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  10844. $as_echo_n "checking for $ac_header... " >&6; }
  10845. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10846. $as_echo_n "(cached) " >&6
  10847. fi
  10848. ac_res=`eval 'as_val=${'$as_ac_Header'}
  10849. $as_echo "$as_val"'`
  10850. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  10851. $as_echo "$ac_res" >&6; }
  10852. else
  10853. # Is the header compilable?
  10854. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  10855. $as_echo_n "checking $ac_header usability... " >&6; }
  10856. cat >conftest.$ac_ext <<_ACEOF
  10857. /* confdefs.h. */
  10858. _ACEOF
  10859. cat confdefs.h >>conftest.$ac_ext
  10860. cat >>conftest.$ac_ext <<_ACEOF
  10861. /* end confdefs.h. */
  10862. $ac_includes_default
  10863. #include <$ac_header>
  10864. _ACEOF
  10865. rm -f conftest.$ac_objext
  10866. if { (ac_try="$ac_compile"
  10867. case "(($ac_try" in
  10868. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10869. *) ac_try_echo=$ac_try;;
  10870. esac
  10871. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10872. $as_echo "$ac_try_echo") >&5
  10873. (eval "$ac_compile") 2>conftest.er1
  10874. ac_status=$?
  10875. grep -v '^ *+' conftest.er1 >conftest.err
  10876. rm -f conftest.er1
  10877. cat conftest.err >&5
  10878. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10879. (exit $ac_status); } && {
  10880. test -z "$ac_cxx_werror_flag" ||
  10881. test ! -s conftest.err
  10882. } && test -s conftest.$ac_objext; then
  10883. ac_header_compiler=yes
  10884. else
  10885. $as_echo "$as_me: failed program was:" >&5
  10886. sed 's/^/| /' conftest.$ac_ext >&5
  10887. ac_header_compiler=no
  10888. fi
  10889. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10890. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10891. $as_echo "$ac_header_compiler" >&6; }
  10892. # Is the header present?
  10893. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10894. $as_echo_n "checking $ac_header presence... " >&6; }
  10895. cat >conftest.$ac_ext <<_ACEOF
  10896. /* confdefs.h. */
  10897. _ACEOF
  10898. cat confdefs.h >>conftest.$ac_ext
  10899. cat >>conftest.$ac_ext <<_ACEOF
  10900. /* end confdefs.h. */
  10901. #include <$ac_header>
  10902. _ACEOF
  10903. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10904. case "(($ac_try" in
  10905. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10906. *) ac_try_echo=$ac_try;;
  10907. esac
  10908. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10909. $as_echo "$ac_try_echo") >&5
  10910. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10911. ac_status=$?
  10912. grep -v '^ *+' conftest.er1 >conftest.err
  10913. rm -f conftest.er1
  10914. cat conftest.err >&5
  10915. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10916. (exit $ac_status); } >/dev/null && {
  10917. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  10918. test ! -s conftest.err
  10919. }; then
  10920. ac_header_preproc=yes
  10921. else
  10922. $as_echo "$as_me: failed program was:" >&5
  10923. sed 's/^/| /' conftest.$ac_ext >&5
  10924. ac_header_preproc=no
  10925. fi
  10926. rm -f conftest.err conftest.$ac_ext
  10927. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10928. $as_echo "$ac_header_preproc" >&6; }
  10929. # So? What about this header?
  10930. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  10931. yes:no: )
  10932. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10933. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10934. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10935. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10936. ac_header_preproc=yes
  10937. ;;
  10938. no:yes:* )
  10939. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10940. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10941. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10942. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10943. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10944. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10945. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10946. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10947. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10948. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10949. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10950. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10951. ;;
  10952. esac
  10953. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  10954. $as_echo_n "checking for $ac_header... " >&6; }
  10955. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10956. $as_echo_n "(cached) " >&6
  10957. else
  10958. eval "$as_ac_Header=\$ac_header_preproc"
  10959. fi
  10960. ac_res=`eval 'as_val=${'$as_ac_Header'}
  10961. $as_echo "$as_val"'`
  10962. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  10963. $as_echo "$ac_res" >&6; }
  10964. fi
  10965. as_val=`eval 'as_val=${'$as_ac_Header'}
  10966. $as_echo "$as_val"'`
  10967. if test "x$as_val" = x""yes; then
  10968. cat >>confdefs.h <<_ACEOF
  10969. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10970. _ACEOF
  10971. fi
  10972. done
  10973. { $as_echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
  10974. $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
  10975. if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
  10976. $as_echo_n "(cached) " >&6
  10977. else
  10978. if test "$cross_compiling" = yes; then
  10979. ac_cv_func_realloc_0_nonnull=no
  10980. else
  10981. cat >conftest.$ac_ext <<_ACEOF
  10982. /* confdefs.h. */
  10983. _ACEOF
  10984. cat confdefs.h >>conftest.$ac_ext
  10985. cat >>conftest.$ac_ext <<_ACEOF
  10986. /* end confdefs.h. */
  10987. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  10988. # include <stdlib.h>
  10989. #else
  10990. char *realloc ();
  10991. #endif
  10992. int
  10993. main ()
  10994. {
  10995. return ! realloc (0, 0);
  10996. ;
  10997. return 0;
  10998. }
  10999. _ACEOF
  11000. rm -f conftest$ac_exeext
  11001. if { (ac_try="$ac_link"
  11002. case "(($ac_try" in
  11003. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11004. *) ac_try_echo=$ac_try;;
  11005. esac
  11006. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11007. $as_echo "$ac_try_echo") >&5
  11008. (eval "$ac_link") 2>&5
  11009. ac_status=$?
  11010. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11011. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  11012. { (case "(($ac_try" in
  11013. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11014. *) ac_try_echo=$ac_try;;
  11015. esac
  11016. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11017. $as_echo "$ac_try_echo") >&5
  11018. (eval "$ac_try") 2>&5
  11019. ac_status=$?
  11020. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11021. (exit $ac_status); }; }; then
  11022. ac_cv_func_realloc_0_nonnull=yes
  11023. else
  11024. $as_echo "$as_me: program exited with status $ac_status" >&5
  11025. $as_echo "$as_me: failed program was:" >&5
  11026. sed 's/^/| /' conftest.$ac_ext >&5
  11027. ( exit $ac_status )
  11028. ac_cv_func_realloc_0_nonnull=no
  11029. fi
  11030. rm -rf conftest.dSYM
  11031. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  11032. fi
  11033. fi
  11034. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
  11035. $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
  11036. if test $ac_cv_func_realloc_0_nonnull = yes; then
  11037. cat >>confdefs.h <<\_ACEOF
  11038. #define HAVE_REALLOC 1
  11039. _ACEOF
  11040. else
  11041. cat >>confdefs.h <<\_ACEOF
  11042. #define HAVE_REALLOC 0
  11043. _ACEOF
  11044. case " $LIBOBJS " in
  11045. *" realloc.$ac_objext "* ) ;;
  11046. *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
  11047. ;;
  11048. esac
  11049. cat >>confdefs.h <<\_ACEOF
  11050. #define realloc rpl_realloc
  11051. _ACEOF
  11052. fi
  11053. { $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  11054. $as_echo_n "checking whether stat accepts an empty string... " >&6; }
  11055. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  11056. $as_echo_n "(cached) " >&6
  11057. else
  11058. if test "$cross_compiling" = yes; then
  11059. ac_cv_func_stat_empty_string_bug=yes
  11060. else
  11061. cat >conftest.$ac_ext <<_ACEOF
  11062. /* confdefs.h. */
  11063. _ACEOF
  11064. cat confdefs.h >>conftest.$ac_ext
  11065. cat >>conftest.$ac_ext <<_ACEOF
  11066. /* end confdefs.h. */
  11067. $ac_includes_default
  11068. int
  11069. main ()
  11070. {
  11071. struct stat sbuf;
  11072. return stat ("", &sbuf) == 0;
  11073. ;
  11074. return 0;
  11075. }
  11076. _ACEOF
  11077. rm -f conftest$ac_exeext
  11078. if { (ac_try="$ac_link"
  11079. case "(($ac_try" in
  11080. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11081. *) ac_try_echo=$ac_try;;
  11082. esac
  11083. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11084. $as_echo "$ac_try_echo") >&5
  11085. (eval "$ac_link") 2>&5
  11086. ac_status=$?
  11087. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11088. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  11089. { (case "(($ac_try" in
  11090. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11091. *) ac_try_echo=$ac_try;;
  11092. esac
  11093. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11094. $as_echo "$ac_try_echo") >&5
  11095. (eval "$ac_try") 2>&5
  11096. ac_status=$?
  11097. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11098. (exit $ac_status); }; }; then
  11099. ac_cv_func_stat_empty_string_bug=no
  11100. else
  11101. $as_echo "$as_me: program exited with status $ac_status" >&5
  11102. $as_echo "$as_me: failed program was:" >&5
  11103. sed 's/^/| /' conftest.$ac_ext >&5
  11104. ( exit $ac_status )
  11105. ac_cv_func_stat_empty_string_bug=yes
  11106. fi
  11107. rm -rf conftest.dSYM
  11108. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  11109. fi
  11110. fi
  11111. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  11112. $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
  11113. if test $ac_cv_func_stat_empty_string_bug = yes; then
  11114. case " $LIBOBJS " in
  11115. *" stat.$ac_objext "* ) ;;
  11116. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  11117. ;;
  11118. esac
  11119. cat >>confdefs.h <<_ACEOF
  11120. #define HAVE_STAT_EMPTY_STRING_BUG 1
  11121. _ACEOF
  11122. fi
  11123. { $as_echo "$as_me:$LINENO: checking for struct timespec" >&5
  11124. $as_echo_n "checking for struct timespec... " >&6; }
  11125. if test "${ac_cv_type_struct_timespec+set}" = set; then
  11126. $as_echo_n "(cached) " >&6
  11127. else
  11128. ac_cv_type_struct_timespec=no
  11129. cat >conftest.$ac_ext <<_ACEOF
  11130. /* confdefs.h. */
  11131. _ACEOF
  11132. cat confdefs.h >>conftest.$ac_ext
  11133. cat >>conftest.$ac_ext <<_ACEOF
  11134. /* end confdefs.h. */
  11135. #include <sys/types.h>
  11136. #include <sys/time.h>
  11137. #include <time.h>
  11138. int
  11139. main ()
  11140. {
  11141. if (sizeof (struct timespec))
  11142. return 0;
  11143. ;
  11144. return 0;
  11145. }
  11146. _ACEOF
  11147. rm -f conftest.$ac_objext
  11148. if { (ac_try="$ac_compile"
  11149. case "(($ac_try" in
  11150. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11151. *) ac_try_echo=$ac_try;;
  11152. esac
  11153. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11154. $as_echo "$ac_try_echo") >&5
  11155. (eval "$ac_compile") 2>conftest.er1
  11156. ac_status=$?
  11157. grep -v '^ *+' conftest.er1 >conftest.err
  11158. rm -f conftest.er1
  11159. cat conftest.err >&5
  11160. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11161. (exit $ac_status); } && {
  11162. test -z "$ac_cxx_werror_flag" ||
  11163. test ! -s conftest.err
  11164. } && test -s conftest.$ac_objext; then
  11165. cat >conftest.$ac_ext <<_ACEOF
  11166. /* confdefs.h. */
  11167. _ACEOF
  11168. cat confdefs.h >>conftest.$ac_ext
  11169. cat >>conftest.$ac_ext <<_ACEOF
  11170. /* end confdefs.h. */
  11171. #include <sys/types.h>
  11172. #include <sys/time.h>
  11173. #include <time.h>
  11174. int
  11175. main ()
  11176. {
  11177. if (sizeof ((struct timespec)))
  11178. return 0;
  11179. ;
  11180. return 0;
  11181. }
  11182. _ACEOF
  11183. rm -f conftest.$ac_objext
  11184. if { (ac_try="$ac_compile"
  11185. case "(($ac_try" in
  11186. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11187. *) ac_try_echo=$ac_try;;
  11188. esac
  11189. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11190. $as_echo "$ac_try_echo") >&5
  11191. (eval "$ac_compile") 2>conftest.er1
  11192. ac_status=$?
  11193. grep -v '^ *+' conftest.er1 >conftest.err
  11194. rm -f conftest.er1
  11195. cat conftest.err >&5
  11196. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11197. (exit $ac_status); } && {
  11198. test -z "$ac_cxx_werror_flag" ||
  11199. test ! -s conftest.err
  11200. } && test -s conftest.$ac_objext; then
  11201. :
  11202. else
  11203. $as_echo "$as_me: failed program was:" >&5
  11204. sed 's/^/| /' conftest.$ac_ext >&5
  11205. ac_cv_type_struct_timespec=yes
  11206. fi
  11207. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11208. else
  11209. $as_echo "$as_me: failed program was:" >&5
  11210. sed 's/^/| /' conftest.$ac_ext >&5
  11211. fi
  11212. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11213. fi
  11214. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_timespec" >&5
  11215. $as_echo "$ac_cv_type_struct_timespec" >&6; }
  11216. if test "x$ac_cv_type_struct_timespec" = x""yes; then
  11217. cat >>confdefs.h <<\_ACEOF
  11218. #define HAVE_TIMESPEC 1
  11219. _ACEOF
  11220. fi
  11221. if test X"$ac_cv_type_struct_timespec" != X"no"; then
  11222. { $as_echo "$as_me:$LINENO: checking for struct stat.st_mtim" >&5
  11223. $as_echo_n "checking for struct stat.st_mtim... " >&6; }
  11224. if test "${ac_cv_member_struct_stat_st_mtim+set}" = set; then
  11225. $as_echo_n "(cached) " >&6
  11226. else
  11227. cat >conftest.$ac_ext <<_ACEOF
  11228. /* confdefs.h. */
  11229. _ACEOF
  11230. cat confdefs.h >>conftest.$ac_ext
  11231. cat >>conftest.$ac_ext <<_ACEOF
  11232. /* end confdefs.h. */
  11233. $ac_includes_default
  11234. int
  11235. main ()
  11236. {
  11237. static struct stat ac_aggr;
  11238. if (ac_aggr.st_mtim)
  11239. return 0;
  11240. ;
  11241. return 0;
  11242. }
  11243. _ACEOF
  11244. rm -f conftest.$ac_objext
  11245. if { (ac_try="$ac_compile"
  11246. case "(($ac_try" in
  11247. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11248. *) ac_try_echo=$ac_try;;
  11249. esac
  11250. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11251. $as_echo "$ac_try_echo") >&5
  11252. (eval "$ac_compile") 2>conftest.er1
  11253. ac_status=$?
  11254. grep -v '^ *+' conftest.er1 >conftest.err
  11255. rm -f conftest.er1
  11256. cat conftest.err >&5
  11257. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11258. (exit $ac_status); } && {
  11259. test -z "$ac_cxx_werror_flag" ||
  11260. test ! -s conftest.err
  11261. } && test -s conftest.$ac_objext; then
  11262. ac_cv_member_struct_stat_st_mtim=yes
  11263. else
  11264. $as_echo "$as_me: failed program was:" >&5
  11265. sed 's/^/| /' conftest.$ac_ext >&5
  11266. cat >conftest.$ac_ext <<_ACEOF
  11267. /* confdefs.h. */
  11268. _ACEOF
  11269. cat confdefs.h >>conftest.$ac_ext
  11270. cat >>conftest.$ac_ext <<_ACEOF
  11271. /* end confdefs.h. */
  11272. $ac_includes_default
  11273. int
  11274. main ()
  11275. {
  11276. static struct stat ac_aggr;
  11277. if (sizeof ac_aggr.st_mtim)
  11278. return 0;
  11279. ;
  11280. return 0;
  11281. }
  11282. _ACEOF
  11283. rm -f conftest.$ac_objext
  11284. if { (ac_try="$ac_compile"
  11285. case "(($ac_try" in
  11286. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11287. *) ac_try_echo=$ac_try;;
  11288. esac
  11289. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11290. $as_echo "$ac_try_echo") >&5
  11291. (eval "$ac_compile") 2>conftest.er1
  11292. ac_status=$?
  11293. grep -v '^ *+' conftest.er1 >conftest.err
  11294. rm -f conftest.er1
  11295. cat conftest.err >&5
  11296. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11297. (exit $ac_status); } && {
  11298. test -z "$ac_cxx_werror_flag" ||
  11299. test ! -s conftest.err
  11300. } && test -s conftest.$ac_objext; then
  11301. ac_cv_member_struct_stat_st_mtim=yes
  11302. else
  11303. $as_echo "$as_me: failed program was:" >&5
  11304. sed 's/^/| /' conftest.$ac_ext >&5
  11305. ac_cv_member_struct_stat_st_mtim=no
  11306. fi
  11307. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11308. fi
  11309. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11310. fi
  11311. { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtim" >&5
  11312. $as_echo "$ac_cv_member_struct_stat_st_mtim" >&6; }
  11313. if test "x$ac_cv_member_struct_stat_st_mtim" = x""yes; then
  11314. cat >>confdefs.h <<\_ACEOF
  11315. #define HAVE_ST_MTIM 1
  11316. _ACEOF
  11317. else
  11318. { $as_echo "$as_me:$LINENO: checking for struct stat.st_mtimespec" >&5
  11319. $as_echo_n "checking for struct stat.st_mtimespec... " >&6; }
  11320. if test "${ac_cv_member_struct_stat_st_mtimespec+set}" = set; then
  11321. $as_echo_n "(cached) " >&6
  11322. else
  11323. cat >conftest.$ac_ext <<_ACEOF
  11324. /* confdefs.h. */
  11325. _ACEOF
  11326. cat confdefs.h >>conftest.$ac_ext
  11327. cat >>conftest.$ac_ext <<_ACEOF
  11328. /* end confdefs.h. */
  11329. $ac_includes_default
  11330. int
  11331. main ()
  11332. {
  11333. static struct stat ac_aggr;
  11334. if (ac_aggr.st_mtimespec)
  11335. return 0;
  11336. ;
  11337. return 0;
  11338. }
  11339. _ACEOF
  11340. rm -f conftest.$ac_objext
  11341. if { (ac_try="$ac_compile"
  11342. case "(($ac_try" in
  11343. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11344. *) ac_try_echo=$ac_try;;
  11345. esac
  11346. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11347. $as_echo "$ac_try_echo") >&5
  11348. (eval "$ac_compile") 2>conftest.er1
  11349. ac_status=$?
  11350. grep -v '^ *+' conftest.er1 >conftest.err
  11351. rm -f conftest.er1
  11352. cat conftest.err >&5
  11353. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11354. (exit $ac_status); } && {
  11355. test -z "$ac_cxx_werror_flag" ||
  11356. test ! -s conftest.err
  11357. } && test -s conftest.$ac_objext; then
  11358. ac_cv_member_struct_stat_st_mtimespec=yes
  11359. else
  11360. $as_echo "$as_me: failed program was:" >&5
  11361. sed 's/^/| /' conftest.$ac_ext >&5
  11362. cat >conftest.$ac_ext <<_ACEOF
  11363. /* confdefs.h. */
  11364. _ACEOF
  11365. cat confdefs.h >>conftest.$ac_ext
  11366. cat >>conftest.$ac_ext <<_ACEOF
  11367. /* end confdefs.h. */
  11368. $ac_includes_default
  11369. int
  11370. main ()
  11371. {
  11372. static struct stat ac_aggr;
  11373. if (sizeof ac_aggr.st_mtimespec)
  11374. return 0;
  11375. ;
  11376. return 0;
  11377. }
  11378. _ACEOF
  11379. rm -f conftest.$ac_objext
  11380. if { (ac_try="$ac_compile"
  11381. case "(($ac_try" in
  11382. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11383. *) ac_try_echo=$ac_try;;
  11384. esac
  11385. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11386. $as_echo "$ac_try_echo") >&5
  11387. (eval "$ac_compile") 2>conftest.er1
  11388. ac_status=$?
  11389. grep -v '^ *+' conftest.er1 >conftest.err
  11390. rm -f conftest.er1
  11391. cat conftest.err >&5
  11392. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11393. (exit $ac_status); } && {
  11394. test -z "$ac_cxx_werror_flag" ||
  11395. test ! -s conftest.err
  11396. } && test -s conftest.$ac_objext; then
  11397. ac_cv_member_struct_stat_st_mtimespec=yes
  11398. else
  11399. $as_echo "$as_me: failed program was:" >&5
  11400. sed 's/^/| /' conftest.$ac_ext >&5
  11401. ac_cv_member_struct_stat_st_mtimespec=no
  11402. fi
  11403. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11404. fi
  11405. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11406. fi
  11407. { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtimespec" >&5
  11408. $as_echo "$ac_cv_member_struct_stat_st_mtimespec" >&6; }
  11409. if test "x$ac_cv_member_struct_stat_st_mtimespec" = x""yes; then
  11410. cat >>confdefs.h <<\_ACEOF
  11411. #define HAVE_ST_MTIMESPEC 1
  11412. _ACEOF
  11413. fi
  11414. fi
  11415. { $as_echo "$as_me:$LINENO: checking for two-parameter timespecsub" >&5
  11416. $as_echo_n "checking for two-parameter timespecsub... " >&6; }
  11417. cat >conftest.$ac_ext <<_ACEOF
  11418. /* confdefs.h. */
  11419. _ACEOF
  11420. cat confdefs.h >>conftest.$ac_ext
  11421. cat >>conftest.$ac_ext <<_ACEOF
  11422. /* end confdefs.h. */
  11423. #include <sys/types.h>
  11424. #include <sys/time.h>
  11425. int
  11426. main ()
  11427. {
  11428. struct timespec ts1, ts2;
  11429. ts1.tv_sec = 1; ts1.tv_nsec = 0; ts2.tv_sec = 0; ts2.tv_nsec = 0;
  11430. #ifndef timespecsub
  11431. #error missing timespecsub
  11432. #endif
  11433. timespecsub(&ts1, &ts2);
  11434. ;
  11435. return 0;
  11436. }
  11437. _ACEOF
  11438. rm -f conftest.$ac_objext
  11439. if { (ac_try="$ac_compile"
  11440. case "(($ac_try" in
  11441. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11442. *) ac_try_echo=$ac_try;;
  11443. esac
  11444. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11445. $as_echo "$ac_try_echo") >&5
  11446. (eval "$ac_compile") 2>conftest.er1
  11447. ac_status=$?
  11448. grep -v '^ *+' conftest.er1 >conftest.err
  11449. rm -f conftest.er1
  11450. cat conftest.err >&5
  11451. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11452. (exit $ac_status); } && {
  11453. test -z "$ac_cxx_werror_flag" ||
  11454. test ! -s conftest.err
  11455. } && test -s conftest.$ac_objext; then
  11456. cat >>confdefs.h <<\_ACEOF
  11457. #define HAVE_TIMESPECSUB2 1
  11458. _ACEOF
  11459. { $as_echo "$as_me:$LINENO: result: yes" >&5
  11460. $as_echo "yes" >&6; }
  11461. else
  11462. $as_echo "$as_me: failed program was:" >&5
  11463. sed 's/^/| /' conftest.$ac_ext >&5
  11464. { $as_echo "$as_me:$LINENO: result: no" >&5
  11465. $as_echo "no" >&6; }
  11466. fi
  11467. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11468. fi
  11469. for ac_func in strftime
  11470. do
  11471. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11472. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  11473. $as_echo_n "checking for $ac_func... " >&6; }
  11474. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11475. $as_echo_n "(cached) " >&6
  11476. else
  11477. cat >conftest.$ac_ext <<_ACEOF
  11478. /* confdefs.h. */
  11479. _ACEOF
  11480. cat confdefs.h >>conftest.$ac_ext
  11481. cat >>conftest.$ac_ext <<_ACEOF
  11482. /* end confdefs.h. */
  11483. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11484. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11485. #define $ac_func innocuous_$ac_func
  11486. /* System header to define __stub macros and hopefully few prototypes,
  11487. which can conflict with char $ac_func (); below.
  11488. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11489. <limits.h> exists even on freestanding compilers. */
  11490. #ifdef __STDC__
  11491. # include <limits.h>
  11492. #else
  11493. # include <assert.h>
  11494. #endif
  11495. #undef $ac_func
  11496. /* Override any GCC internal prototype to avoid an error.
  11497. Use char because int might match the return type of a GCC
  11498. builtin and then its argument prototype would still apply. */
  11499. #ifdef __cplusplus
  11500. extern "C"
  11501. #endif
  11502. char $ac_func ();
  11503. /* The GNU C library defines this for functions which it implements
  11504. to always fail with ENOSYS. Some functions are actually named
  11505. something starting with __ and the normal name is an alias. */
  11506. #if defined __stub_$ac_func || defined __stub___$ac_func
  11507. choke me
  11508. #endif
  11509. int
  11510. main ()
  11511. {
  11512. return $ac_func ();
  11513. ;
  11514. return 0;
  11515. }
  11516. _ACEOF
  11517. rm -f conftest.$ac_objext conftest$ac_exeext
  11518. if { (ac_try="$ac_link"
  11519. case "(($ac_try" in
  11520. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11521. *) ac_try_echo=$ac_try;;
  11522. esac
  11523. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11524. $as_echo "$ac_try_echo") >&5
  11525. (eval "$ac_link") 2>conftest.er1
  11526. ac_status=$?
  11527. grep -v '^ *+' conftest.er1 >conftest.err
  11528. rm -f conftest.er1
  11529. cat conftest.err >&5
  11530. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11531. (exit $ac_status); } && {
  11532. test -z "$ac_cxx_werror_flag" ||
  11533. test ! -s conftest.err
  11534. } && test -s conftest$ac_exeext && {
  11535. test "$cross_compiling" = yes ||
  11536. $as_test_x conftest$ac_exeext
  11537. }; then
  11538. eval "$as_ac_var=yes"
  11539. else
  11540. $as_echo "$as_me: failed program was:" >&5
  11541. sed 's/^/| /' conftest.$ac_ext >&5
  11542. eval "$as_ac_var=no"
  11543. fi
  11544. rm -rf conftest.dSYM
  11545. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11546. conftest$ac_exeext conftest.$ac_ext
  11547. fi
  11548. ac_res=`eval 'as_val=${'$as_ac_var'}
  11549. $as_echo "$as_val"'`
  11550. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  11551. $as_echo "$ac_res" >&6; }
  11552. as_val=`eval 'as_val=${'$as_ac_var'}
  11553. $as_echo "$as_val"'`
  11554. if test "x$as_val" = x""yes; then
  11555. cat >>confdefs.h <<_ACEOF
  11556. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11557. _ACEOF
  11558. else
  11559. # strftime is in -lintl on SCO UNIX.
  11560. { $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
  11561. $as_echo_n "checking for strftime in -lintl... " >&6; }
  11562. if test "${ac_cv_lib_intl_strftime+set}" = set; then
  11563. $as_echo_n "(cached) " >&6
  11564. else
  11565. ac_check_lib_save_LIBS=$LIBS
  11566. LIBS="-lintl $LIBS"
  11567. cat >conftest.$ac_ext <<_ACEOF
  11568. /* confdefs.h. */
  11569. _ACEOF
  11570. cat confdefs.h >>conftest.$ac_ext
  11571. cat >>conftest.$ac_ext <<_ACEOF
  11572. /* end confdefs.h. */
  11573. /* Override any GCC internal prototype to avoid an error.
  11574. Use char because int might match the return type of a GCC
  11575. builtin and then its argument prototype would still apply. */
  11576. #ifdef __cplusplus
  11577. extern "C"
  11578. #endif
  11579. char strftime ();
  11580. int
  11581. main ()
  11582. {
  11583. return strftime ();
  11584. ;
  11585. return 0;
  11586. }
  11587. _ACEOF
  11588. rm -f conftest.$ac_objext conftest$ac_exeext
  11589. if { (ac_try="$ac_link"
  11590. case "(($ac_try" in
  11591. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11592. *) ac_try_echo=$ac_try;;
  11593. esac
  11594. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11595. $as_echo "$ac_try_echo") >&5
  11596. (eval "$ac_link") 2>conftest.er1
  11597. ac_status=$?
  11598. grep -v '^ *+' conftest.er1 >conftest.err
  11599. rm -f conftest.er1
  11600. cat conftest.err >&5
  11601. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11602. (exit $ac_status); } && {
  11603. test -z "$ac_cxx_werror_flag" ||
  11604. test ! -s conftest.err
  11605. } && test -s conftest$ac_exeext && {
  11606. test "$cross_compiling" = yes ||
  11607. $as_test_x conftest$ac_exeext
  11608. }; then
  11609. ac_cv_lib_intl_strftime=yes
  11610. else
  11611. $as_echo "$as_me: failed program was:" >&5
  11612. sed 's/^/| /' conftest.$ac_ext >&5
  11613. ac_cv_lib_intl_strftime=no
  11614. fi
  11615. rm -rf conftest.dSYM
  11616. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11617. conftest$ac_exeext conftest.$ac_ext
  11618. LIBS=$ac_check_lib_save_LIBS
  11619. fi
  11620. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
  11621. $as_echo "$ac_cv_lib_intl_strftime" >&6; }
  11622. if test "x$ac_cv_lib_intl_strftime" = x""yes; then
  11623. cat >>confdefs.h <<\_ACEOF
  11624. #define HAVE_STRFTIME 1
  11625. _ACEOF
  11626. LIBS="-lintl $LIBS"
  11627. fi
  11628. fi
  11629. done
  11630. #checkpoint
  11631. cat >confcache <<\_ACEOF
  11632. # This file is a shell script that caches the results of configure
  11633. # tests run on this system so they can be shared between configure
  11634. # scripts and configure runs, see configure's option --config-cache.
  11635. # It is not useful on other systems. If it contains results you don't
  11636. # want to keep, you may remove or edit it.
  11637. #
  11638. # config.status only pays attention to the cache file if you give it
  11639. # the --recheck option to rerun configure.
  11640. #
  11641. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11642. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11643. # following values.
  11644. _ACEOF
  11645. # The following way of writing the cache mishandles newlines in values,
  11646. # but we know of no workaround that is simple, portable, and efficient.
  11647. # So, we kill variables containing newlines.
  11648. # Ultrix sh set writes to stderr and can't be redirected directly,
  11649. # and sets the high bit in the cache file unless we assign to the vars.
  11650. (
  11651. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  11652. eval ac_val=\$$ac_var
  11653. case $ac_val in #(
  11654. *${as_nl}*)
  11655. case $ac_var in #(
  11656. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  11657. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  11658. esac
  11659. case $ac_var in #(
  11660. _ | IFS | as_nl) ;; #(
  11661. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  11662. *) $as_unset $ac_var ;;
  11663. esac ;;
  11664. esac
  11665. done
  11666. (set) 2>&1 |
  11667. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  11668. *${as_nl}ac_space=\ *)
  11669. # `set' does not quote correctly, so add quotes (double-quote
  11670. # substitution turns \\\\ into \\, and sed turns \\ into \).
  11671. sed -n \
  11672. "s/'/'\\\\''/g;
  11673. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11674. ;; #(
  11675. *)
  11676. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11677. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  11678. ;;
  11679. esac |
  11680. sort
  11681. ) |
  11682. sed '
  11683. /^ac_cv_env_/b end
  11684. t clear
  11685. :clear
  11686. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11687. t end
  11688. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11689. :end' >>confcache
  11690. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  11691. if test -w "$cache_file"; then
  11692. test "x$cache_file" != "x/dev/null" &&
  11693. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  11694. $as_echo "$as_me: updating cache $cache_file" >&6;}
  11695. cat confcache >$cache_file
  11696. else
  11697. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  11698. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  11699. fi
  11700. fi
  11701. rm -f confcache
  11702. for ac_func in clock fsync getrusage isascii getpassphrase
  11703. do
  11704. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11705. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  11706. $as_echo_n "checking for $ac_func... " >&6; }
  11707. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11708. $as_echo_n "(cached) " >&6
  11709. else
  11710. cat >conftest.$ac_ext <<_ACEOF
  11711. /* confdefs.h. */
  11712. _ACEOF
  11713. cat confdefs.h >>conftest.$ac_ext
  11714. cat >>conftest.$ac_ext <<_ACEOF
  11715. /* end confdefs.h. */
  11716. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11717. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11718. #define $ac_func innocuous_$ac_func
  11719. /* System header to define __stub macros and hopefully few prototypes,
  11720. which can conflict with char $ac_func (); below.
  11721. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11722. <limits.h> exists even on freestanding compilers. */
  11723. #ifdef __STDC__
  11724. # include <limits.h>
  11725. #else
  11726. # include <assert.h>
  11727. #endif
  11728. #undef $ac_func
  11729. /* Override any GCC internal prototype to avoid an error.
  11730. Use char because int might match the return type of a GCC
  11731. builtin and then its argument prototype would still apply. */
  11732. #ifdef __cplusplus
  11733. extern "C"
  11734. #endif
  11735. char $ac_func ();
  11736. /* The GNU C library defines this for functions which it implements
  11737. to always fail with ENOSYS. Some functions are actually named
  11738. something starting with __ and the normal name is an alias. */
  11739. #if defined __stub_$ac_func || defined __stub___$ac_func
  11740. choke me
  11741. #endif
  11742. int
  11743. main ()
  11744. {
  11745. return $ac_func ();
  11746. ;
  11747. return 0;
  11748. }
  11749. _ACEOF
  11750. rm -f conftest.$ac_objext conftest$ac_exeext
  11751. if { (ac_try="$ac_link"
  11752. case "(($ac_try" in
  11753. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11754. *) ac_try_echo=$ac_try;;
  11755. esac
  11756. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11757. $as_echo "$ac_try_echo") >&5
  11758. (eval "$ac_link") 2>conftest.er1
  11759. ac_status=$?
  11760. grep -v '^ *+' conftest.er1 >conftest.err
  11761. rm -f conftest.er1
  11762. cat conftest.err >&5
  11763. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11764. (exit $ac_status); } && {
  11765. test -z "$ac_cxx_werror_flag" ||
  11766. test ! -s conftest.err
  11767. } && test -s conftest$ac_exeext && {
  11768. test "$cross_compiling" = yes ||
  11769. $as_test_x conftest$ac_exeext
  11770. }; then
  11771. eval "$as_ac_var=yes"
  11772. else
  11773. $as_echo "$as_me: failed program was:" >&5
  11774. sed 's/^/| /' conftest.$ac_ext >&5
  11775. eval "$as_ac_var=no"
  11776. fi
  11777. rm -rf conftest.dSYM
  11778. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11779. conftest$ac_exeext conftest.$ac_ext
  11780. fi
  11781. ac_res=`eval 'as_val=${'$as_ac_var'}
  11782. $as_echo "$as_val"'`
  11783. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  11784. $as_echo "$ac_res" >&6; }
  11785. as_val=`eval 'as_val=${'$as_ac_var'}
  11786. $as_echo "$as_val"'`
  11787. if test "x$as_val" = x""yes; then
  11788. cat >>confdefs.h <<_ACEOF
  11789. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11790. _ACEOF
  11791. fi
  11792. done
  11793. for ac_func in memcpy memset random rename snprintf srandom gettime
  11794. do
  11795. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11796. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  11797. $as_echo_n "checking for $ac_func... " >&6; }
  11798. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11799. $as_echo_n "(cached) " >&6
  11800. else
  11801. cat >conftest.$ac_ext <<_ACEOF
  11802. /* confdefs.h. */
  11803. _ACEOF
  11804. cat confdefs.h >>conftest.$ac_ext
  11805. cat >>conftest.$ac_ext <<_ACEOF
  11806. /* end confdefs.h. */
  11807. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11808. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11809. #define $ac_func innocuous_$ac_func
  11810. /* System header to define __stub macros and hopefully few prototypes,
  11811. which can conflict with char $ac_func (); below.
  11812. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11813. <limits.h> exists even on freestanding compilers. */
  11814. #ifdef __STDC__
  11815. # include <limits.h>
  11816. #else
  11817. # include <assert.h>
  11818. #endif
  11819. #undef $ac_func
  11820. /* Override any GCC internal prototype to avoid an error.
  11821. Use char because int might match the return type of a GCC
  11822. builtin and then its argument prototype would still apply. */
  11823. #ifdef __cplusplus
  11824. extern "C"
  11825. #endif
  11826. char $ac_func ();
  11827. /* The GNU C library defines this for functions which it implements
  11828. to always fail with ENOSYS. Some functions are actually named
  11829. something starting with __ and the normal name is an alias. */
  11830. #if defined __stub_$ac_func || defined __stub___$ac_func
  11831. choke me
  11832. #endif
  11833. int
  11834. main ()
  11835. {
  11836. return $ac_func ();
  11837. ;
  11838. return 0;
  11839. }
  11840. _ACEOF
  11841. rm -f conftest.$ac_objext conftest$ac_exeext
  11842. if { (ac_try="$ac_link"
  11843. case "(($ac_try" in
  11844. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11845. *) ac_try_echo=$ac_try;;
  11846. esac
  11847. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11848. $as_echo "$ac_try_echo") >&5
  11849. (eval "$ac_link") 2>conftest.er1
  11850. ac_status=$?
  11851. grep -v '^ *+' conftest.er1 >conftest.err
  11852. rm -f conftest.er1
  11853. cat conftest.err >&5
  11854. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11855. (exit $ac_status); } && {
  11856. test -z "$ac_cxx_werror_flag" ||
  11857. test ! -s conftest.err
  11858. } && test -s conftest$ac_exeext && {
  11859. test "$cross_compiling" = yes ||
  11860. $as_test_x conftest$ac_exeext
  11861. }; then
  11862. eval "$as_ac_var=yes"
  11863. else
  11864. $as_echo "$as_me: failed program was:" >&5
  11865. sed 's/^/| /' conftest.$ac_ext >&5
  11866. eval "$as_ac_var=no"
  11867. fi
  11868. rm -rf conftest.dSYM
  11869. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11870. conftest$ac_exeext conftest.$ac_ext
  11871. fi
  11872. ac_res=`eval 'as_val=${'$as_ac_var'}
  11873. $as_echo "$as_val"'`
  11874. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  11875. $as_echo "$ac_res" >&6; }
  11876. as_val=`eval 'as_val=${'$as_ac_var'}
  11877. $as_echo "$as_val"'`
  11878. if test "x$as_val" = x""yes; then
  11879. cat >>confdefs.h <<_ACEOF
  11880. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11881. _ACEOF
  11882. fi
  11883. done
  11884. #checkpoint
  11885. cat >confcache <<\_ACEOF
  11886. # This file is a shell script that caches the results of configure
  11887. # tests run on this system so they can be shared between configure
  11888. # scripts and configure runs, see configure's option --config-cache.
  11889. # It is not useful on other systems. If it contains results you don't
  11890. # want to keep, you may remove or edit it.
  11891. #
  11892. # config.status only pays attention to the cache file if you give it
  11893. # the --recheck option to rerun configure.
  11894. #
  11895. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11896. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11897. # following values.
  11898. _ACEOF
  11899. # The following way of writing the cache mishandles newlines in values,
  11900. # but we know of no workaround that is simple, portable, and efficient.
  11901. # So, we kill variables containing newlines.
  11902. # Ultrix sh set writes to stderr and can't be redirected directly,
  11903. # and sets the high bit in the cache file unless we assign to the vars.
  11904. (
  11905. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  11906. eval ac_val=\$$ac_var
  11907. case $ac_val in #(
  11908. *${as_nl}*)
  11909. case $ac_var in #(
  11910. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  11911. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  11912. esac
  11913. case $ac_var in #(
  11914. _ | IFS | as_nl) ;; #(
  11915. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  11916. *) $as_unset $ac_var ;;
  11917. esac ;;
  11918. esac
  11919. done
  11920. (set) 2>&1 |
  11921. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  11922. *${as_nl}ac_space=\ *)
  11923. # `set' does not quote correctly, so add quotes (double-quote
  11924. # substitution turns \\\\ into \\, and sed turns \\ into \).
  11925. sed -n \
  11926. "s/'/'\\\\''/g;
  11927. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11928. ;; #(
  11929. *)
  11930. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11931. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  11932. ;;
  11933. esac |
  11934. sort
  11935. ) |
  11936. sed '
  11937. /^ac_cv_env_/b end
  11938. t clear
  11939. :clear
  11940. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11941. t end
  11942. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11943. :end' >>confcache
  11944. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  11945. if test -w "$cache_file"; then
  11946. test "x$cache_file" != "x/dev/null" &&
  11947. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  11948. $as_echo "$as_me: updating cache $cache_file" >&6;}
  11949. cat confcache >$cache_file
  11950. else
  11951. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  11952. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  11953. fi
  11954. fi
  11955. rm -f confcache
  11956. for ac_func in strcasecmp strncasecmp vsnprintf
  11957. do
  11958. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11959. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  11960. $as_echo_n "checking for $ac_func... " >&6; }
  11961. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11962. $as_echo_n "(cached) " >&6
  11963. else
  11964. cat >conftest.$ac_ext <<_ACEOF
  11965. /* confdefs.h. */
  11966. _ACEOF
  11967. cat confdefs.h >>conftest.$ac_ext
  11968. cat >>conftest.$ac_ext <<_ACEOF
  11969. /* end confdefs.h. */
  11970. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11971. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11972. #define $ac_func innocuous_$ac_func
  11973. /* System header to define __stub macros and hopefully few prototypes,
  11974. which can conflict with char $ac_func (); below.
  11975. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11976. <limits.h> exists even on freestanding compilers. */
  11977. #ifdef __STDC__
  11978. # include <limits.h>
  11979. #else
  11980. # include <assert.h>
  11981. #endif
  11982. #undef $ac_func
  11983. /* Override any GCC internal prototype to avoid an error.
  11984. Use char because int might match the return type of a GCC
  11985. builtin and then its argument prototype would still apply. */
  11986. #ifdef __cplusplus
  11987. extern "C"
  11988. #endif
  11989. char $ac_func ();
  11990. /* The GNU C library defines this for functions which it implements
  11991. to always fail with ENOSYS. Some functions are actually named
  11992. something starting with __ and the normal name is an alias. */
  11993. #if defined __stub_$ac_func || defined __stub___$ac_func
  11994. choke me
  11995. #endif
  11996. int
  11997. main ()
  11998. {
  11999. return $ac_func ();
  12000. ;
  12001. return 0;
  12002. }
  12003. _ACEOF
  12004. rm -f conftest.$ac_objext conftest$ac_exeext
  12005. if { (ac_try="$ac_link"
  12006. case "(($ac_try" in
  12007. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12008. *) ac_try_echo=$ac_try;;
  12009. esac
  12010. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12011. $as_echo "$ac_try_echo") >&5
  12012. (eval "$ac_link") 2>conftest.er1
  12013. ac_status=$?
  12014. grep -v '^ *+' conftest.er1 >conftest.err
  12015. rm -f conftest.er1
  12016. cat conftest.err >&5
  12017. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12018. (exit $ac_status); } && {
  12019. test -z "$ac_cxx_werror_flag" ||
  12020. test ! -s conftest.err
  12021. } && test -s conftest$ac_exeext && {
  12022. test "$cross_compiling" = yes ||
  12023. $as_test_x conftest$ac_exeext
  12024. }; then
  12025. eval "$as_ac_var=yes"
  12026. else
  12027. $as_echo "$as_me: failed program was:" >&5
  12028. sed 's/^/| /' conftest.$ac_ext >&5
  12029. eval "$as_ac_var=no"
  12030. fi
  12031. rm -rf conftest.dSYM
  12032. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12033. conftest$ac_exeext conftest.$ac_ext
  12034. fi
  12035. ac_res=`eval 'as_val=${'$as_ac_var'}
  12036. $as_echo "$as_val"'`
  12037. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  12038. $as_echo "$ac_res" >&6; }
  12039. as_val=`eval 'as_val=${'$as_ac_var'}
  12040. $as_echo "$as_val"'`
  12041. if test "x$as_val" = x""yes; then
  12042. cat >>confdefs.h <<_ACEOF
  12043. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12044. _ACEOF
  12045. fi
  12046. done
  12047. #autoscan suggested this....
  12048. #These are recommended by autoscan, but no code supports it currently
  12049. #AC_CHECK_FUNCS([alarm bzero dup2 getcwd gethostbyaddr gethostbyname gethostname getpass gettimeofday mbrlen
  12050. #mkdir munmap realpath select setlocale socket strchr strerror strpbrk strrchr strstr strtol tzset])
  12051. for ac_func in vsprintf
  12052. do
  12053. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12054. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  12055. $as_echo_n "checking for $ac_func... " >&6; }
  12056. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  12057. $as_echo_n "(cached) " >&6
  12058. else
  12059. cat >conftest.$ac_ext <<_ACEOF
  12060. /* confdefs.h. */
  12061. _ACEOF
  12062. cat confdefs.h >>conftest.$ac_ext
  12063. cat >>conftest.$ac_ext <<_ACEOF
  12064. /* end confdefs.h. */
  12065. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  12066. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  12067. #define $ac_func innocuous_$ac_func
  12068. /* System header to define __stub macros and hopefully few prototypes,
  12069. which can conflict with char $ac_func (); below.
  12070. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  12071. <limits.h> exists even on freestanding compilers. */
  12072. #ifdef __STDC__
  12073. # include <limits.h>
  12074. #else
  12075. # include <assert.h>
  12076. #endif
  12077. #undef $ac_func
  12078. /* Override any GCC internal prototype to avoid an error.
  12079. Use char because int might match the return type of a GCC
  12080. builtin and then its argument prototype would still apply. */
  12081. #ifdef __cplusplus
  12082. extern "C"
  12083. #endif
  12084. char $ac_func ();
  12085. /* The GNU C library defines this for functions which it implements
  12086. to always fail with ENOSYS. Some functions are actually named
  12087. something starting with __ and the normal name is an alias. */
  12088. #if defined __stub_$ac_func || defined __stub___$ac_func
  12089. choke me
  12090. #endif
  12091. int
  12092. main ()
  12093. {
  12094. return $ac_func ();
  12095. ;
  12096. return 0;
  12097. }
  12098. _ACEOF
  12099. rm -f conftest.$ac_objext conftest$ac_exeext
  12100. if { (ac_try="$ac_link"
  12101. case "(($ac_try" in
  12102. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12103. *) ac_try_echo=$ac_try;;
  12104. esac
  12105. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12106. $as_echo "$ac_try_echo") >&5
  12107. (eval "$ac_link") 2>conftest.er1
  12108. ac_status=$?
  12109. grep -v '^ *+' conftest.er1 >conftest.err
  12110. rm -f conftest.er1
  12111. cat conftest.err >&5
  12112. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12113. (exit $ac_status); } && {
  12114. test -z "$ac_cxx_werror_flag" ||
  12115. test ! -s conftest.err
  12116. } && test -s conftest$ac_exeext && {
  12117. test "$cross_compiling" = yes ||
  12118. $as_test_x conftest$ac_exeext
  12119. }; then
  12120. eval "$as_ac_var=yes"
  12121. else
  12122. $as_echo "$as_me: failed program was:" >&5
  12123. sed 's/^/| /' conftest.$ac_ext >&5
  12124. eval "$as_ac_var=no"
  12125. fi
  12126. rm -rf conftest.dSYM
  12127. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12128. conftest$ac_exeext conftest.$ac_ext
  12129. fi
  12130. ac_res=`eval 'as_val=${'$as_ac_var'}
  12131. $as_echo "$as_val"'`
  12132. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  12133. $as_echo "$ac_res" >&6; }
  12134. as_val=`eval 'as_val=${'$as_ac_var'}
  12135. $as_echo "$as_val"'`
  12136. if test "x$as_val" = x""yes; then
  12137. cat >>confdefs.h <<_ACEOF
  12138. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12139. _ACEOF
  12140. fi
  12141. done
  12142. if test "$ac_cv_func_vsprintf" = "no"
  12143. then
  12144. cat << 'EOF' >&2
  12145. configure: error:
  12146. Your system does not have the sprintf/vsprintf libraries.
  12147. These are required to compile almost anything. Sorry.
  12148. EOF
  12149. exit 1
  12150. fi
  12151. for ac_func in uname
  12152. do
  12153. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12154. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  12155. $as_echo_n "checking for $ac_func... " >&6; }
  12156. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  12157. $as_echo_n "(cached) " >&6
  12158. else
  12159. cat >conftest.$ac_ext <<_ACEOF
  12160. /* confdefs.h. */
  12161. _ACEOF
  12162. cat confdefs.h >>conftest.$ac_ext
  12163. cat >>conftest.$ac_ext <<_ACEOF
  12164. /* end confdefs.h. */
  12165. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  12166. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  12167. #define $ac_func innocuous_$ac_func
  12168. /* System header to define __stub macros and hopefully few prototypes,
  12169. which can conflict with char $ac_func (); below.
  12170. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  12171. <limits.h> exists even on freestanding compilers. */
  12172. #ifdef __STDC__
  12173. # include <limits.h>
  12174. #else
  12175. # include <assert.h>
  12176. #endif
  12177. #undef $ac_func
  12178. /* Override any GCC internal prototype to avoid an error.
  12179. Use char because int might match the return type of a GCC
  12180. builtin and then its argument prototype would still apply. */
  12181. #ifdef __cplusplus
  12182. extern "C"
  12183. #endif
  12184. char $ac_func ();
  12185. /* The GNU C library defines this for functions which it implements
  12186. to always fail with ENOSYS. Some functions are actually named
  12187. something starting with __ and the normal name is an alias. */
  12188. #if defined __stub_$ac_func || defined __stub___$ac_func
  12189. choke me
  12190. #endif
  12191. int
  12192. main ()
  12193. {
  12194. return $ac_func ();
  12195. ;
  12196. return 0;
  12197. }
  12198. _ACEOF
  12199. rm -f conftest.$ac_objext conftest$ac_exeext
  12200. if { (ac_try="$ac_link"
  12201. case "(($ac_try" in
  12202. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12203. *) ac_try_echo=$ac_try;;
  12204. esac
  12205. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12206. $as_echo "$ac_try_echo") >&5
  12207. (eval "$ac_link") 2>conftest.er1
  12208. ac_status=$?
  12209. grep -v '^ *+' conftest.er1 >conftest.err
  12210. rm -f conftest.er1
  12211. cat conftest.err >&5
  12212. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12213. (exit $ac_status); } && {
  12214. test -z "$ac_cxx_werror_flag" ||
  12215. test ! -s conftest.err
  12216. } && test -s conftest$ac_exeext && {
  12217. test "$cross_compiling" = yes ||
  12218. $as_test_x conftest$ac_exeext
  12219. }; then
  12220. eval "$as_ac_var=yes"
  12221. else
  12222. $as_echo "$as_me: failed program was:" >&5
  12223. sed 's/^/| /' conftest.$ac_ext >&5
  12224. eval "$as_ac_var=no"
  12225. fi
  12226. rm -rf conftest.dSYM
  12227. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12228. conftest$ac_exeext conftest.$ac_ext
  12229. fi
  12230. ac_res=`eval 'as_val=${'$as_ac_var'}
  12231. $as_echo "$as_val"'`
  12232. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  12233. $as_echo "$ac_res" >&6; }
  12234. as_val=`eval 'as_val=${'$as_ac_var'}
  12235. $as_echo "$as_val"'`
  12236. if test "x$as_val" = x""yes; then
  12237. cat >>confdefs.h <<_ACEOF
  12238. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12239. _ACEOF
  12240. fi
  12241. done
  12242. if test "$ac_cv_func_uname" = "no"
  12243. then
  12244. cat << 'EOF' >&2
  12245. configure: error:
  12246. Your system does not have the uname() function.
  12247. This is required for the botpack.
  12248. EOF
  12249. exit 1
  12250. fi
  12251. # Make sure we have stdc headers, since we can't compile without them
  12252. if test "$ac_cv_header_stdc" = "no"
  12253. then
  12254. cat << 'EOF' >&2
  12255. configure: error:
  12256. Your system must support ANSI C Header files.
  12257. These are required for the language support. Sorry.
  12258. EOF
  12259. exit 1
  12260. fi
  12261. #checkpoint
  12262. cat >confcache <<\_ACEOF
  12263. # This file is a shell script that caches the results of configure
  12264. # tests run on this system so they can be shared between configure
  12265. # scripts and configure runs, see configure's option --config-cache.
  12266. # It is not useful on other systems. If it contains results you don't
  12267. # want to keep, you may remove or edit it.
  12268. #
  12269. # config.status only pays attention to the cache file if you give it
  12270. # the --recheck option to rerun configure.
  12271. #
  12272. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  12273. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  12274. # following values.
  12275. _ACEOF
  12276. # The following way of writing the cache mishandles newlines in values,
  12277. # but we know of no workaround that is simple, portable, and efficient.
  12278. # So, we kill variables containing newlines.
  12279. # Ultrix sh set writes to stderr and can't be redirected directly,
  12280. # and sets the high bit in the cache file unless we assign to the vars.
  12281. (
  12282. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  12283. eval ac_val=\$$ac_var
  12284. case $ac_val in #(
  12285. *${as_nl}*)
  12286. case $ac_var in #(
  12287. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  12288. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  12289. esac
  12290. case $ac_var in #(
  12291. _ | IFS | as_nl) ;; #(
  12292. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  12293. *) $as_unset $ac_var ;;
  12294. esac ;;
  12295. esac
  12296. done
  12297. (set) 2>&1 |
  12298. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  12299. *${as_nl}ac_space=\ *)
  12300. # `set' does not quote correctly, so add quotes (double-quote
  12301. # substitution turns \\\\ into \\, and sed turns \\ into \).
  12302. sed -n \
  12303. "s/'/'\\\\''/g;
  12304. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  12305. ;; #(
  12306. *)
  12307. # `set' quotes correctly as required by POSIX, so do not add quotes.
  12308. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  12309. ;;
  12310. esac |
  12311. sort
  12312. ) |
  12313. sed '
  12314. /^ac_cv_env_/b end
  12315. t clear
  12316. :clear
  12317. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  12318. t end
  12319. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  12320. :end' >>confcache
  12321. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  12322. if test -w "$cache_file"; then
  12323. test "x$cache_file" != "x/dev/null" &&
  12324. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  12325. $as_echo "$as_me: updating cache $cache_file" >&6;}
  12326. cat confcache >$cache_file
  12327. else
  12328. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  12329. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  12330. fi
  12331. fi
  12332. rm -f confcache
  12333. VERSION=`grep "char" $srcdir/src/main.c | $AWK '/egg_version/ {print $5}' | sed -e 's/\"//g' | sed -e 's/\;//g'`
  12334. version_num=`echo $VERSION | $AWK 'BEGIN {FS = "."} {printf("%d%02d%02d", $1, $2, $3)}'`
  12335. cat >>confdefs.h <<_ACEOF
  12336. #define EGG_VERSION $version_num
  12337. _ACEOF
  12338. #FIND_WRAPS
  12339. case "$srcdir" in
  12340. [\\/]* | ?:[\\/]*)
  12341. MOD_UPDIR=""
  12342. ;;
  12343. *)
  12344. MOD_UPDIR="../"
  12345. ;;
  12346. esac
  12347. 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"
  12348. for mf in $files; do
  12349. # Strip MF so we end up with the name of the file.
  12350. # echo "MF: $mf"
  12351. mf=`echo "$mf" | sed -e 's/:.*$//'`
  12352. dirpart=`$as_dirname -- "$mf" ||
  12353. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12354. X"$mf" : 'X\(//\)[^/]' \| \
  12355. X"$mf" : 'X\(//\)$' \| \
  12356. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  12357. $as_echo X"$mf" |
  12358. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12359. s//\1/
  12360. q
  12361. }
  12362. /^X\(\/\/\)[^/].*/{
  12363. s//\1/
  12364. q
  12365. }
  12366. /^X\(\/\/\)$/{
  12367. s//\1/
  12368. q
  12369. }
  12370. /^X\(\/\).*/{
  12371. s//\1/
  12372. q
  12373. }
  12374. s/.*/./; q'`
  12375. # echo "dirpart: $dirpart mf: $mf"
  12376. # rm -rf "$dirpart/.deps/"
  12377. rm -f "$dirpart/.deps/includes"
  12378. test -d "$dirpart/.deps" || mkdir "$dirpart/.deps"
  12379. for file in `sed -n -e '
  12380. /^OBJS = .*\\\\$/ {
  12381. s/^OBJS = //
  12382. :loop
  12383. s/\\\\$//
  12384. p
  12385. n
  12386. /\\\\$/ b loop
  12387. p
  12388. }
  12389. /^OBJS = / s/^OBJS = //p' < "$mf"`;
  12390. do
  12391. base=`basename $file .o`
  12392. test -f "$dirpart/$base.c" || continue
  12393. if ! test -f "$dirpart/.deps/$base.Po"; then
  12394. echo '# dummy' > "$dirpart/.deps/$base.Po"
  12395. #Remove the .o file, because it needs to be recompiled for its dependancies.
  12396. if test -f "$dirpart/$base.o"; then
  12397. rm -f "$dirpart/$base.o"
  12398. fi
  12399. fi
  12400. echo "include .deps/$base.Po" >> "$dirpart/.deps/includes"
  12401. echo "_$base.c:" >> "$dirpart/.deps/includes"
  12402. done
  12403. done
  12404. ac_config_files="$ac_config_files Makefile lib/Makefile src/Makefile src/compat/Makefile src/crypto/Makefile src/mod/Makefile src/buildinfo.h"
  12405. cat >confcache <<\_ACEOF
  12406. # This file is a shell script that caches the results of configure
  12407. # tests run on this system so they can be shared between configure
  12408. # scripts and configure runs, see configure's option --config-cache.
  12409. # It is not useful on other systems. If it contains results you don't
  12410. # want to keep, you may remove or edit it.
  12411. #
  12412. # config.status only pays attention to the cache file if you give it
  12413. # the --recheck option to rerun configure.
  12414. #
  12415. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  12416. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  12417. # following values.
  12418. _ACEOF
  12419. # The following way of writing the cache mishandles newlines in values,
  12420. # but we know of no workaround that is simple, portable, and efficient.
  12421. # So, we kill variables containing newlines.
  12422. # Ultrix sh set writes to stderr and can't be redirected directly,
  12423. # and sets the high bit in the cache file unless we assign to the vars.
  12424. (
  12425. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  12426. eval ac_val=\$$ac_var
  12427. case $ac_val in #(
  12428. *${as_nl}*)
  12429. case $ac_var in #(
  12430. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  12431. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  12432. esac
  12433. case $ac_var in #(
  12434. _ | IFS | as_nl) ;; #(
  12435. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  12436. *) $as_unset $ac_var ;;
  12437. esac ;;
  12438. esac
  12439. done
  12440. (set) 2>&1 |
  12441. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  12442. *${as_nl}ac_space=\ *)
  12443. # `set' does not quote correctly, so add quotes (double-quote
  12444. # substitution turns \\\\ into \\, and sed turns \\ into \).
  12445. sed -n \
  12446. "s/'/'\\\\''/g;
  12447. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  12448. ;; #(
  12449. *)
  12450. # `set' quotes correctly as required by POSIX, so do not add quotes.
  12451. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  12452. ;;
  12453. esac |
  12454. sort
  12455. ) |
  12456. sed '
  12457. /^ac_cv_env_/b end
  12458. t clear
  12459. :clear
  12460. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  12461. t end
  12462. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  12463. :end' >>confcache
  12464. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  12465. if test -w "$cache_file"; then
  12466. test "x$cache_file" != "x/dev/null" &&
  12467. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  12468. $as_echo "$as_me: updating cache $cache_file" >&6;}
  12469. cat confcache >$cache_file
  12470. else
  12471. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  12472. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  12473. fi
  12474. fi
  12475. rm -f confcache
  12476. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  12477. # Let make expand exec_prefix.
  12478. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  12479. DEFS=-DHAVE_CONFIG_H
  12480. ac_libobjs=
  12481. ac_ltlibobjs=
  12482. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  12483. # 1. Remove the extension, and $U if already installed.
  12484. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  12485. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  12486. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  12487. # will be set to the directory where LIBOBJS objects are built.
  12488. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  12489. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  12490. done
  12491. LIBOBJS=$ac_libobjs
  12492. LTLIBOBJS=$ac_ltlibobjs
  12493. : ${CONFIG_STATUS=./config.status}
  12494. ac_write_fail=0
  12495. ac_clean_files_save=$ac_clean_files
  12496. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  12497. { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  12498. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  12499. cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12500. #! $SHELL
  12501. # Generated by $as_me.
  12502. # Run this file to recreate the current configuration.
  12503. # Compiler output produced by configure, useful for debugging
  12504. # configure, is in config.log if it exists.
  12505. debug=false
  12506. ac_cs_recheck=false
  12507. ac_cs_silent=false
  12508. SHELL=\${CONFIG_SHELL-$SHELL}
  12509. _ACEOF
  12510. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12511. ## --------------------- ##
  12512. ## M4sh Initialization. ##
  12513. ## --------------------- ##
  12514. # Be more Bourne compatible
  12515. DUALCASE=1; export DUALCASE # for MKS sh
  12516. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  12517. emulate sh
  12518. NULLCMD=:
  12519. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  12520. # is contrary to our usage. Disable this feature.
  12521. alias -g '${1+"$@"}'='"$@"'
  12522. setopt NO_GLOB_SUBST
  12523. else
  12524. case `(set -o) 2>/dev/null` in
  12525. *posix*) set -o posix ;;
  12526. esac
  12527. fi
  12528. # PATH needs CR
  12529. # Avoid depending upon Character Ranges.
  12530. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  12531. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  12532. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  12533. as_cr_digits='0123456789'
  12534. as_cr_alnum=$as_cr_Letters$as_cr_digits
  12535. as_nl='
  12536. '
  12537. export as_nl
  12538. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  12539. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  12540. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  12541. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  12542. if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  12543. as_echo='printf %s\n'
  12544. as_echo_n='printf %s'
  12545. else
  12546. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  12547. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  12548. as_echo_n='/usr/ucb/echo -n'
  12549. else
  12550. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  12551. as_echo_n_body='eval
  12552. arg=$1;
  12553. case $arg in
  12554. *"$as_nl"*)
  12555. expr "X$arg" : "X\\(.*\\)$as_nl";
  12556. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  12557. esac;
  12558. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  12559. '
  12560. export as_echo_n_body
  12561. as_echo_n='sh -c $as_echo_n_body as_echo'
  12562. fi
  12563. export as_echo_body
  12564. as_echo='sh -c $as_echo_body as_echo'
  12565. fi
  12566. # The user is always right.
  12567. if test "${PATH_SEPARATOR+set}" != set; then
  12568. PATH_SEPARATOR=:
  12569. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  12570. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  12571. PATH_SEPARATOR=';'
  12572. }
  12573. fi
  12574. # Support unset when possible.
  12575. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  12576. as_unset=unset
  12577. else
  12578. as_unset=false
  12579. fi
  12580. # IFS
  12581. # We need space, tab and new line, in precisely that order. Quoting is
  12582. # there to prevent editors from complaining about space-tab.
  12583. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  12584. # splitting by setting IFS to empty value.)
  12585. IFS=" "" $as_nl"
  12586. # Find who we are. Look in the path if we contain no directory separator.
  12587. case $0 in
  12588. *[\\/]* ) as_myself=$0 ;;
  12589. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12590. for as_dir in $PATH
  12591. do
  12592. IFS=$as_save_IFS
  12593. test -z "$as_dir" && as_dir=.
  12594. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  12595. done
  12596. IFS=$as_save_IFS
  12597. ;;
  12598. esac
  12599. # We did not find ourselves, most probably we were run as `sh COMMAND'
  12600. # in which case we are not to be found in the path.
  12601. if test "x$as_myself" = x; then
  12602. as_myself=$0
  12603. fi
  12604. if test ! -f "$as_myself"; then
  12605. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  12606. { (exit 1); exit 1; }
  12607. fi
  12608. # Work around bugs in pre-3.0 UWIN ksh.
  12609. for as_var in ENV MAIL MAILPATH
  12610. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  12611. done
  12612. PS1='$ '
  12613. PS2='> '
  12614. PS4='+ '
  12615. # NLS nuisances.
  12616. LC_ALL=C
  12617. export LC_ALL
  12618. LANGUAGE=C
  12619. export LANGUAGE
  12620. # Required to use basename.
  12621. if expr a : '\(a\)' >/dev/null 2>&1 &&
  12622. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  12623. as_expr=expr
  12624. else
  12625. as_expr=false
  12626. fi
  12627. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  12628. as_basename=basename
  12629. else
  12630. as_basename=false
  12631. fi
  12632. # Name of the executable.
  12633. as_me=`$as_basename -- "$0" ||
  12634. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  12635. X"$0" : 'X\(//\)$' \| \
  12636. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  12637. $as_echo X/"$0" |
  12638. sed '/^.*\/\([^/][^/]*\)\/*$/{
  12639. s//\1/
  12640. q
  12641. }
  12642. /^X\/\(\/\/\)$/{
  12643. s//\1/
  12644. q
  12645. }
  12646. /^X\/\(\/\).*/{
  12647. s//\1/
  12648. q
  12649. }
  12650. s/.*/./; q'`
  12651. # CDPATH.
  12652. $as_unset CDPATH
  12653. as_lineno_1=$LINENO
  12654. as_lineno_2=$LINENO
  12655. test "x$as_lineno_1" != "x$as_lineno_2" &&
  12656. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  12657. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  12658. # uniformly replaced by the line number. The first 'sed' inserts a
  12659. # line-number line after each line using $LINENO; the second 'sed'
  12660. # does the real work. The second script uses 'N' to pair each
  12661. # line-number line with the line containing $LINENO, and appends
  12662. # trailing '-' during substitution so that $LINENO is not a special
  12663. # case at line end.
  12664. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  12665. # scripts with optimization help from Paolo Bonzini. Blame Lee
  12666. # E. McMahon (1931-1989) for sed's syntax. :-)
  12667. sed -n '
  12668. p
  12669. /[$]LINENO/=
  12670. ' <$as_myself |
  12671. sed '
  12672. s/[$]LINENO.*/&-/
  12673. t lineno
  12674. b
  12675. :lineno
  12676. N
  12677. :loop
  12678. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  12679. t loop
  12680. s/-\n.*//
  12681. ' >$as_me.lineno &&
  12682. chmod +x "$as_me.lineno" ||
  12683. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  12684. { (exit 1); exit 1; }; }
  12685. # Don't try to exec as it changes $[0], causing all sort of problems
  12686. # (the dirname of $[0] is not the place where we might find the
  12687. # original and so on. Autoconf is especially sensitive to this).
  12688. . "./$as_me.lineno"
  12689. # Exit status is that of the last command.
  12690. exit
  12691. }
  12692. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  12693. as_dirname=dirname
  12694. else
  12695. as_dirname=false
  12696. fi
  12697. ECHO_C= ECHO_N= ECHO_T=
  12698. case `echo -n x` in
  12699. -n*)
  12700. case `echo 'x\c'` in
  12701. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  12702. *) ECHO_C='\c';;
  12703. esac;;
  12704. *)
  12705. ECHO_N='-n';;
  12706. esac
  12707. if expr a : '\(a\)' >/dev/null 2>&1 &&
  12708. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  12709. as_expr=expr
  12710. else
  12711. as_expr=false
  12712. fi
  12713. rm -f conf$$ conf$$.exe conf$$.file
  12714. if test -d conf$$.dir; then
  12715. rm -f conf$$.dir/conf$$.file
  12716. else
  12717. rm -f conf$$.dir
  12718. mkdir conf$$.dir 2>/dev/null
  12719. fi
  12720. if (echo >conf$$.file) 2>/dev/null; then
  12721. if ln -s conf$$.file conf$$ 2>/dev/null; then
  12722. as_ln_s='ln -s'
  12723. # ... but there are two gotchas:
  12724. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  12725. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  12726. # In both cases, we have to default to `cp -p'.
  12727. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  12728. as_ln_s='cp -p'
  12729. elif ln conf$$.file conf$$ 2>/dev/null; then
  12730. as_ln_s=ln
  12731. else
  12732. as_ln_s='cp -p'
  12733. fi
  12734. else
  12735. as_ln_s='cp -p'
  12736. fi
  12737. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  12738. rmdir conf$$.dir 2>/dev/null
  12739. if mkdir -p . 2>/dev/null; then
  12740. as_mkdir_p=:
  12741. else
  12742. test -d ./-p && rmdir ./-p
  12743. as_mkdir_p=false
  12744. fi
  12745. if test -x / >/dev/null 2>&1; then
  12746. as_test_x='test -x'
  12747. else
  12748. if ls -dL / >/dev/null 2>&1; then
  12749. as_ls_L_option=L
  12750. else
  12751. as_ls_L_option=
  12752. fi
  12753. as_test_x='
  12754. eval sh -c '\''
  12755. if test -d "$1"; then
  12756. test -d "$1/.";
  12757. else
  12758. case $1 in
  12759. -*)set "./$1";;
  12760. esac;
  12761. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  12762. ???[sx]*):;;*)false;;esac;fi
  12763. '\'' sh
  12764. '
  12765. fi
  12766. as_executable_p=$as_test_x
  12767. # Sed expression to map a string onto a valid CPP name.
  12768. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  12769. # Sed expression to map a string onto a valid variable name.
  12770. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  12771. exec 6>&1
  12772. # Save the log message, to keep $[0] and so on meaningful, and to
  12773. # report actual input values of CONFIG_FILES etc. instead of their
  12774. # values after options handling.
  12775. ac_log="
  12776. This file was extended by $as_me, which was
  12777. generated by GNU Autoconf 2.63. Invocation command line was
  12778. CONFIG_FILES = $CONFIG_FILES
  12779. CONFIG_HEADERS = $CONFIG_HEADERS
  12780. CONFIG_LINKS = $CONFIG_LINKS
  12781. CONFIG_COMMANDS = $CONFIG_COMMANDS
  12782. $ $0 $@
  12783. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  12784. "
  12785. _ACEOF
  12786. case $ac_config_files in *"
  12787. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  12788. esac
  12789. case $ac_config_headers in *"
  12790. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  12791. esac
  12792. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12793. # Files that config.status was made for.
  12794. config_files="$ac_config_files"
  12795. config_headers="$ac_config_headers"
  12796. _ACEOF
  12797. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12798. ac_cs_usage="\
  12799. \`$as_me' instantiates files from templates according to the
  12800. current configuration.
  12801. Usage: $0 [OPTION]... [FILE]...
  12802. -h, --help print this help, then exit
  12803. -V, --version print version number and configuration settings, then exit
  12804. -q, --quiet, --silent
  12805. do not print progress messages
  12806. -d, --debug don't remove temporary files
  12807. --recheck update $as_me by reconfiguring in the same conditions
  12808. --file=FILE[:TEMPLATE]
  12809. instantiate the configuration file FILE
  12810. --header=FILE[:TEMPLATE]
  12811. instantiate the configuration header FILE
  12812. Configuration files:
  12813. $config_files
  12814. Configuration headers:
  12815. $config_headers
  12816. Report bugs to <bug-autoconf@gnu.org>."
  12817. _ACEOF
  12818. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12819. ac_cs_version="\\
  12820. config.status
  12821. configured by $0, generated by GNU Autoconf 2.63,
  12822. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  12823. Copyright (C) 2008 Free Software Foundation, Inc.
  12824. This config.status script is free software; the Free Software Foundation
  12825. gives unlimited permission to copy, distribute and modify it."
  12826. ac_pwd='$ac_pwd'
  12827. srcdir='$srcdir'
  12828. AWK='$AWK'
  12829. test -n "\$AWK" || AWK=awk
  12830. _ACEOF
  12831. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12832. # The default lists apply if the user does not specify any file.
  12833. ac_need_defaults=:
  12834. while test $# != 0
  12835. do
  12836. case $1 in
  12837. --*=*)
  12838. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  12839. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  12840. ac_shift=:
  12841. ;;
  12842. *)
  12843. ac_option=$1
  12844. ac_optarg=$2
  12845. ac_shift=shift
  12846. ;;
  12847. esac
  12848. case $ac_option in
  12849. # Handling of the options.
  12850. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  12851. ac_cs_recheck=: ;;
  12852. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  12853. $as_echo "$ac_cs_version"; exit ;;
  12854. --debug | --debu | --deb | --de | --d | -d )
  12855. debug=: ;;
  12856. --file | --fil | --fi | --f )
  12857. $ac_shift
  12858. case $ac_optarg in
  12859. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  12860. esac
  12861. CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
  12862. ac_need_defaults=false;;
  12863. --header | --heade | --head | --hea )
  12864. $ac_shift
  12865. case $ac_optarg in
  12866. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  12867. esac
  12868. CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
  12869. ac_need_defaults=false;;
  12870. --he | --h)
  12871. # Conflict between --help and --header
  12872. { $as_echo "$as_me: error: ambiguous option: $1
  12873. Try \`$0 --help' for more information." >&2
  12874. { (exit 1); exit 1; }; };;
  12875. --help | --hel | -h )
  12876. $as_echo "$ac_cs_usage"; exit ;;
  12877. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  12878. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  12879. ac_cs_silent=: ;;
  12880. # This is an error.
  12881. -*) { $as_echo "$as_me: error: unrecognized option: $1
  12882. Try \`$0 --help' for more information." >&2
  12883. { (exit 1); exit 1; }; } ;;
  12884. *) ac_config_targets="$ac_config_targets $1"
  12885. ac_need_defaults=false ;;
  12886. esac
  12887. shift
  12888. done
  12889. ac_configure_extra_args=
  12890. if $ac_cs_silent; then
  12891. exec 6>/dev/null
  12892. ac_configure_extra_args="$ac_configure_extra_args --silent"
  12893. fi
  12894. _ACEOF
  12895. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12896. if \$ac_cs_recheck; then
  12897. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  12898. shift
  12899. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  12900. CONFIG_SHELL='$SHELL'
  12901. export CONFIG_SHELL
  12902. exec "\$@"
  12903. fi
  12904. _ACEOF
  12905. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12906. exec 5>>config.log
  12907. {
  12908. echo
  12909. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  12910. ## Running $as_me. ##
  12911. _ASBOX
  12912. $as_echo "$ac_log"
  12913. } >&5
  12914. _ACEOF
  12915. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12916. _ACEOF
  12917. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12918. # Handling of arguments.
  12919. for ac_config_target in $ac_config_targets
  12920. do
  12921. case $ac_config_target in
  12922. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  12923. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  12924. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  12925. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  12926. "src/compat/Makefile") CONFIG_FILES="$CONFIG_FILES src/compat/Makefile" ;;
  12927. "src/crypto/Makefile") CONFIG_FILES="$CONFIG_FILES src/crypto/Makefile" ;;
  12928. "src/mod/Makefile") CONFIG_FILES="$CONFIG_FILES src/mod/Makefile" ;;
  12929. "src/buildinfo.h") CONFIG_FILES="$CONFIG_FILES src/buildinfo.h" ;;
  12930. *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  12931. $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  12932. { (exit 1); exit 1; }; };;
  12933. esac
  12934. done
  12935. # If the user did not use the arguments to specify the items to instantiate,
  12936. # then the envvar interface is used. Set only those that are not.
  12937. # We use the long form for the default assignment because of an extremely
  12938. # bizarre bug on SunOS 4.1.3.
  12939. if $ac_need_defaults; then
  12940. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  12941. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  12942. fi
  12943. # Have a temporary directory for convenience. Make it in the build tree
  12944. # simply because there is no reason against having it here, and in addition,
  12945. # creating and moving files from /tmp can sometimes cause problems.
  12946. # Hook for its removal unless debugging.
  12947. # Note that there is a small window in which the directory will not be cleaned:
  12948. # after its creation but before its name has been assigned to `$tmp'.
  12949. $debug ||
  12950. {
  12951. tmp=
  12952. trap 'exit_status=$?
  12953. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  12954. ' 0
  12955. trap '{ (exit 1); exit 1; }' 1 2 13 15
  12956. }
  12957. # Create a (secure) tmp directory for tmp files.
  12958. {
  12959. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  12960. test -n "$tmp" && test -d "$tmp"
  12961. } ||
  12962. {
  12963. tmp=./conf$$-$RANDOM
  12964. (umask 077 && mkdir "$tmp")
  12965. } ||
  12966. {
  12967. $as_echo "$as_me: cannot create a temporary directory in ." >&2
  12968. { (exit 1); exit 1; }
  12969. }
  12970. # Set up the scripts for CONFIG_FILES section.
  12971. # No need to generate them if there are no CONFIG_FILES.
  12972. # This happens for instance with `./config.status config.h'.
  12973. if test -n "$CONFIG_FILES"; then
  12974. ac_cr=' '
  12975. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  12976. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  12977. ac_cs_awk_cr='\\r'
  12978. else
  12979. ac_cs_awk_cr=$ac_cr
  12980. fi
  12981. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  12982. _ACEOF
  12983. {
  12984. echo "cat >conf$$subs.awk <<_ACEOF" &&
  12985. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  12986. echo "_ACEOF"
  12987. } >conf$$subs.sh ||
  12988. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  12989. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  12990. { (exit 1); exit 1; }; }
  12991. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  12992. ac_delim='%!_!# '
  12993. for ac_last_try in false false false false false :; do
  12994. . ./conf$$subs.sh ||
  12995. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  12996. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  12997. { (exit 1); exit 1; }; }
  12998. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  12999. if test $ac_delim_n = $ac_delim_num; then
  13000. break
  13001. elif $ac_last_try; then
  13002. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  13003. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  13004. { (exit 1); exit 1; }; }
  13005. else
  13006. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  13007. fi
  13008. done
  13009. rm -f conf$$subs.sh
  13010. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13011. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  13012. _ACEOF
  13013. sed -n '
  13014. h
  13015. s/^/S["/; s/!.*/"]=/
  13016. p
  13017. g
  13018. s/^[^!]*!//
  13019. :repl
  13020. t repl
  13021. s/'"$ac_delim"'$//
  13022. t delim
  13023. :nl
  13024. h
  13025. s/\(.\{148\}\).*/\1/
  13026. t more1
  13027. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  13028. p
  13029. n
  13030. b repl
  13031. :more1
  13032. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  13033. p
  13034. g
  13035. s/.\{148\}//
  13036. t nl
  13037. :delim
  13038. h
  13039. s/\(.\{148\}\).*/\1/
  13040. t more2
  13041. s/["\\]/\\&/g; s/^/"/; s/$/"/
  13042. p
  13043. b
  13044. :more2
  13045. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  13046. p
  13047. g
  13048. s/.\{148\}//
  13049. t delim
  13050. ' <conf$$subs.awk | sed '
  13051. /^[^""]/{
  13052. N
  13053. s/\n//
  13054. }
  13055. ' >>$CONFIG_STATUS || ac_write_fail=1
  13056. rm -f conf$$subs.awk
  13057. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13058. _ACAWK
  13059. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  13060. for (key in S) S_is_set[key] = 1
  13061. FS = ""
  13062. }
  13063. {
  13064. line = $ 0
  13065. nfields = split(line, field, "@")
  13066. substed = 0
  13067. len = length(field[1])
  13068. for (i = 2; i < nfields; i++) {
  13069. key = field[i]
  13070. keylen = length(key)
  13071. if (S_is_set[key]) {
  13072. value = S[key]
  13073. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  13074. len += length(value) + length(field[++i])
  13075. substed = 1
  13076. } else
  13077. len += 1 + keylen
  13078. }
  13079. print line
  13080. }
  13081. _ACAWK
  13082. _ACEOF
  13083. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13084. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  13085. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  13086. else
  13087. cat
  13088. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  13089. || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
  13090. $as_echo "$as_me: error: could not setup config files machinery" >&2;}
  13091. { (exit 1); exit 1; }; }
  13092. _ACEOF
  13093. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  13094. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  13095. # trailing colons and then remove the whole line if VPATH becomes empty
  13096. # (actually we leave an empty line to preserve line numbers).
  13097. if test "x$srcdir" = x.; then
  13098. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  13099. s/:*\$(srcdir):*/:/
  13100. s/:*\${srcdir}:*/:/
  13101. s/:*@srcdir@:*/:/
  13102. s/^\([^=]*=[ ]*\):*/\1/
  13103. s/:*$//
  13104. s/^[^=]*=[ ]*$//
  13105. }'
  13106. fi
  13107. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13108. fi # test -n "$CONFIG_FILES"
  13109. # Set up the scripts for CONFIG_HEADERS section.
  13110. # No need to generate them if there are no CONFIG_HEADERS.
  13111. # This happens for instance with `./config.status Makefile'.
  13112. if test -n "$CONFIG_HEADERS"; then
  13113. cat >"$tmp/defines.awk" <<\_ACAWK ||
  13114. BEGIN {
  13115. _ACEOF
  13116. # Transform confdefs.h into an awk script `defines.awk', embedded as
  13117. # here-document in config.status, that substitutes the proper values into
  13118. # config.h.in to produce config.h.
  13119. # Create a delimiter string that does not exist in confdefs.h, to ease
  13120. # handling of long lines.
  13121. ac_delim='%!_!# '
  13122. for ac_last_try in false false :; do
  13123. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  13124. if test -z "$ac_t"; then
  13125. break
  13126. elif $ac_last_try; then
  13127. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
  13128. $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
  13129. { (exit 1); exit 1; }; }
  13130. else
  13131. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  13132. fi
  13133. done
  13134. # For the awk script, D is an array of macro values keyed by name,
  13135. # likewise P contains macro parameters if any. Preserve backslash
  13136. # newline sequences.
  13137. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  13138. sed -n '
  13139. s/.\{148\}/&'"$ac_delim"'/g
  13140. t rset
  13141. :rset
  13142. s/^[ ]*#[ ]*define[ ][ ]*/ /
  13143. t def
  13144. d
  13145. :def
  13146. s/\\$//
  13147. t bsnl
  13148. s/["\\]/\\&/g
  13149. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  13150. D["\1"]=" \3"/p
  13151. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  13152. d
  13153. :bsnl
  13154. s/["\\]/\\&/g
  13155. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  13156. D["\1"]=" \3\\\\\\n"\\/p
  13157. t cont
  13158. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  13159. t cont
  13160. d
  13161. :cont
  13162. n
  13163. s/.\{148\}/&'"$ac_delim"'/g
  13164. t clear
  13165. :clear
  13166. s/\\$//
  13167. t bsnlc
  13168. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  13169. d
  13170. :bsnlc
  13171. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  13172. b cont
  13173. ' <confdefs.h | sed '
  13174. s/'"$ac_delim"'/"\\\
  13175. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  13176. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13177. for (key in D) D_is_set[key] = 1
  13178. FS = ""
  13179. }
  13180. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  13181. line = \$ 0
  13182. split(line, arg, " ")
  13183. if (arg[1] == "#") {
  13184. defundef = arg[2]
  13185. mac1 = arg[3]
  13186. } else {
  13187. defundef = substr(arg[1], 2)
  13188. mac1 = arg[2]
  13189. }
  13190. split(mac1, mac2, "(") #)
  13191. macro = mac2[1]
  13192. prefix = substr(line, 1, index(line, defundef) - 1)
  13193. if (D_is_set[macro]) {
  13194. # Preserve the white space surrounding the "#".
  13195. print prefix "define", macro P[macro] D[macro]
  13196. next
  13197. } else {
  13198. # Replace #undef with comments. This is necessary, for example,
  13199. # in the case of _POSIX_SOURCE, which is predefined and required
  13200. # on some systems where configure will not decide to define it.
  13201. if (defundef == "undef") {
  13202. print "/*", prefix defundef, macro, "*/"
  13203. next
  13204. }
  13205. }
  13206. }
  13207. { print }
  13208. _ACAWK
  13209. _ACEOF
  13210. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13211. { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
  13212. $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
  13213. { (exit 1); exit 1; }; }
  13214. fi # test -n "$CONFIG_HEADERS"
  13215. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
  13216. shift
  13217. for ac_tag
  13218. do
  13219. case $ac_tag in
  13220. :[FHLC]) ac_mode=$ac_tag; continue;;
  13221. esac
  13222. case $ac_mode$ac_tag in
  13223. :[FHL]*:*);;
  13224. :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
  13225. $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
  13226. { (exit 1); exit 1; }; };;
  13227. :[FH]-) ac_tag=-:-;;
  13228. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  13229. esac
  13230. ac_save_IFS=$IFS
  13231. IFS=:
  13232. set x $ac_tag
  13233. IFS=$ac_save_IFS
  13234. shift
  13235. ac_file=$1
  13236. shift
  13237. case $ac_mode in
  13238. :L) ac_source=$1;;
  13239. :[FH])
  13240. ac_file_inputs=
  13241. for ac_f
  13242. do
  13243. case $ac_f in
  13244. -) ac_f="$tmp/stdin";;
  13245. *) # Look for the file first in the build tree, then in the source tree
  13246. # (if the path is not absolute). The absolute path cannot be DOS-style,
  13247. # because $ac_f cannot contain `:'.
  13248. test -f "$ac_f" ||
  13249. case $ac_f in
  13250. [\\/$]*) false;;
  13251. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  13252. esac ||
  13253. { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  13254. $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  13255. { (exit 1); exit 1; }; };;
  13256. esac
  13257. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  13258. ac_file_inputs="$ac_file_inputs '$ac_f'"
  13259. done
  13260. # Let's still pretend it is `configure' which instantiates (i.e., don't
  13261. # use $as_me), people would be surprised to read:
  13262. # /* config.h. Generated by config.status. */
  13263. configure_input='Generated from '`
  13264. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  13265. `' by configure.'
  13266. if test x"$ac_file" != x-; then
  13267. configure_input="$ac_file. $configure_input"
  13268. { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
  13269. $as_echo "$as_me: creating $ac_file" >&6;}
  13270. fi
  13271. # Neutralize special characters interpreted by sed in replacement strings.
  13272. case $configure_input in #(
  13273. *\&* | *\|* | *\\* )
  13274. ac_sed_conf_input=`$as_echo "$configure_input" |
  13275. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  13276. *) ac_sed_conf_input=$configure_input;;
  13277. esac
  13278. case $ac_tag in
  13279. *:-:* | *:-) cat >"$tmp/stdin" \
  13280. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  13281. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  13282. { (exit 1); exit 1; }; } ;;
  13283. esac
  13284. ;;
  13285. esac
  13286. ac_dir=`$as_dirname -- "$ac_file" ||
  13287. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13288. X"$ac_file" : 'X\(//\)[^/]' \| \
  13289. X"$ac_file" : 'X\(//\)$' \| \
  13290. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  13291. $as_echo X"$ac_file" |
  13292. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13293. s//\1/
  13294. q
  13295. }
  13296. /^X\(\/\/\)[^/].*/{
  13297. s//\1/
  13298. q
  13299. }
  13300. /^X\(\/\/\)$/{
  13301. s//\1/
  13302. q
  13303. }
  13304. /^X\(\/\).*/{
  13305. s//\1/
  13306. q
  13307. }
  13308. s/.*/./; q'`
  13309. { as_dir="$ac_dir"
  13310. case $as_dir in #(
  13311. -*) as_dir=./$as_dir;;
  13312. esac
  13313. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  13314. as_dirs=
  13315. while :; do
  13316. case $as_dir in #(
  13317. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  13318. *) as_qdir=$as_dir;;
  13319. esac
  13320. as_dirs="'$as_qdir' $as_dirs"
  13321. as_dir=`$as_dirname -- "$as_dir" ||
  13322. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13323. X"$as_dir" : 'X\(//\)[^/]' \| \
  13324. X"$as_dir" : 'X\(//\)$' \| \
  13325. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  13326. $as_echo X"$as_dir" |
  13327. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13328. s//\1/
  13329. q
  13330. }
  13331. /^X\(\/\/\)[^/].*/{
  13332. s//\1/
  13333. q
  13334. }
  13335. /^X\(\/\/\)$/{
  13336. s//\1/
  13337. q
  13338. }
  13339. /^X\(\/\).*/{
  13340. s//\1/
  13341. q
  13342. }
  13343. s/.*/./; q'`
  13344. test -d "$as_dir" && break
  13345. done
  13346. test -z "$as_dirs" || eval "mkdir $as_dirs"
  13347. } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  13348. $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
  13349. { (exit 1); exit 1; }; }; }
  13350. ac_builddir=.
  13351. case "$ac_dir" in
  13352. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13353. *)
  13354. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  13355. # A ".." for each directory in $ac_dir_suffix.
  13356. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  13357. case $ac_top_builddir_sub in
  13358. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13359. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  13360. esac ;;
  13361. esac
  13362. ac_abs_top_builddir=$ac_pwd
  13363. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  13364. # for backward compatibility:
  13365. ac_top_builddir=$ac_top_build_prefix
  13366. case $srcdir in
  13367. .) # We are building in place.
  13368. ac_srcdir=.
  13369. ac_top_srcdir=$ac_top_builddir_sub
  13370. ac_abs_top_srcdir=$ac_pwd ;;
  13371. [\\/]* | ?:[\\/]* ) # Absolute name.
  13372. ac_srcdir=$srcdir$ac_dir_suffix;
  13373. ac_top_srcdir=$srcdir
  13374. ac_abs_top_srcdir=$srcdir ;;
  13375. *) # Relative name.
  13376. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  13377. ac_top_srcdir=$ac_top_build_prefix$srcdir
  13378. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  13379. esac
  13380. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  13381. case $ac_mode in
  13382. :F)
  13383. #
  13384. # CONFIG_FILE
  13385. #
  13386. _ACEOF
  13387. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13388. # If the template does not know about datarootdir, expand it.
  13389. # FIXME: This hack should be removed a few years after 2.60.
  13390. ac_datarootdir_hack=; ac_datarootdir_seen=
  13391. ac_sed_dataroot='
  13392. /datarootdir/ {
  13393. p
  13394. q
  13395. }
  13396. /@datadir@/p
  13397. /@docdir@/p
  13398. /@infodir@/p
  13399. /@localedir@/p
  13400. /@mandir@/p
  13401. '
  13402. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  13403. *datarootdir*) ac_datarootdir_seen=yes;;
  13404. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  13405. { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  13406. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  13407. _ACEOF
  13408. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13409. ac_datarootdir_hack='
  13410. s&@datadir@&$datadir&g
  13411. s&@docdir@&$docdir&g
  13412. s&@infodir@&$infodir&g
  13413. s&@localedir@&$localedir&g
  13414. s&@mandir@&$mandir&g
  13415. s&\\\${datarootdir}&$datarootdir&g' ;;
  13416. esac
  13417. _ACEOF
  13418. # Neutralize VPATH when `$srcdir' = `.'.
  13419. # Shell code in configure.ac might set extrasub.
  13420. # FIXME: do we really want to maintain this feature?
  13421. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13422. ac_sed_extra="$ac_vpsub
  13423. $extrasub
  13424. _ACEOF
  13425. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13426. :t
  13427. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  13428. s|@configure_input@|$ac_sed_conf_input|;t t
  13429. s&@top_builddir@&$ac_top_builddir_sub&;t t
  13430. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  13431. s&@srcdir@&$ac_srcdir&;t t
  13432. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  13433. s&@top_srcdir@&$ac_top_srcdir&;t t
  13434. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  13435. s&@builddir@&$ac_builddir&;t t
  13436. s&@abs_builddir@&$ac_abs_builddir&;t t
  13437. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  13438. $ac_datarootdir_hack
  13439. "
  13440. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  13441. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  13442. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  13443. { (exit 1); exit 1; }; }
  13444. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  13445. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  13446. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  13447. { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  13448. which seems to be undefined. Please make sure it is defined." >&5
  13449. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  13450. which seems to be undefined. Please make sure it is defined." >&2;}
  13451. rm -f "$tmp/stdin"
  13452. case $ac_file in
  13453. -) cat "$tmp/out" && rm -f "$tmp/out";;
  13454. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  13455. esac \
  13456. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  13457. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  13458. { (exit 1); exit 1; }; }
  13459. ;;
  13460. :H)
  13461. #
  13462. # CONFIG_HEADER
  13463. #
  13464. if test x"$ac_file" != x-; then
  13465. {
  13466. $as_echo "/* $configure_input */" \
  13467. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  13468. } >"$tmp/config.h" \
  13469. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  13470. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  13471. { (exit 1); exit 1; }; }
  13472. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  13473. { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  13474. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  13475. else
  13476. rm -f "$ac_file"
  13477. mv "$tmp/config.h" "$ac_file" \
  13478. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  13479. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  13480. { (exit 1); exit 1; }; }
  13481. fi
  13482. else
  13483. $as_echo "/* $configure_input */" \
  13484. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  13485. || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
  13486. $as_echo "$as_me: error: could not create -" >&2;}
  13487. { (exit 1); exit 1; }; }
  13488. fi
  13489. ;;
  13490. esac
  13491. done # for ac_tag
  13492. { (exit 0); exit 0; }
  13493. _ACEOF
  13494. chmod +x $CONFIG_STATUS
  13495. ac_clean_files=$ac_clean_files_save
  13496. test $ac_write_fail = 0 ||
  13497. { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
  13498. $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
  13499. { (exit 1); exit 1; }; }
  13500. # configure is writing to config.log, and then calls config.status.
  13501. # config.status does its own redirection, appending to config.log.
  13502. # Unfortunately, on DOS this fails, as config.log is still kept open
  13503. # by configure, so config.status won't be able to write to it; its
  13504. # output is simply discarded. So we exec the FD to /dev/null,
  13505. # effectively closing config.log, so it can be properly (re)opened and
  13506. # appended to by config.status. When coming back to configure, we
  13507. # need to make the FD available again.
  13508. if test "$no_create" != yes; then
  13509. ac_cs_success=:
  13510. ac_config_status_args=
  13511. test "$silent" = yes &&
  13512. ac_config_status_args="$ac_config_status_args --quiet"
  13513. exec 5>/dev/null
  13514. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  13515. exec 5>>config.log
  13516. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  13517. # would make configure fail if this is the last instruction.
  13518. $ac_cs_success || { (exit 1); exit 1; }
  13519. fi
  13520. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  13521. { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  13522. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  13523. fi
  13524. echo ""
  13525. echo ""
  13526. echo "------------ Configuring BDLIB ------------"
  13527. if test -d .git; then
  13528. git submodule init
  13529. git submodule update
  13530. fi
  13531. test -f lib/bdlib/configure && cd lib/bdlib && ./configure