configure 258 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520
  1. #! /bin/sh
  2. # From configure.ac Revision.
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated by GNU Autoconf 2.68.
  5. #
  6. #
  7. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  8. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
  9. # Foundation, Inc.
  10. #
  11. #
  12. # This configure script is free software; the Free Software Foundation
  13. # gives unlimited permission to copy, distribute and modify it.
  14. #
  15. # Copyright (c) 2003 - 2010 Bryan Drewery
  16. ## -------------------- ##
  17. ## M4sh Initialization. ##
  18. ## -------------------- ##
  19. # Be more Bourne compatible
  20. DUALCASE=1; export DUALCASE # for MKS sh
  21. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  22. emulate sh
  23. NULLCMD=:
  24. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  25. # is contrary to our usage. Disable this feature.
  26. alias -g '${1+"$@"}'='"$@"'
  27. setopt NO_GLOB_SUBST
  28. else
  29. case `(set -o) 2>/dev/null` in #(
  30. *posix*) :
  31. set -o posix ;; #(
  32. *) :
  33. ;;
  34. esac
  35. fi
  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. # Prefer a ksh shell builtin over an external printf program on Solaris,
  44. # but without wasting forks for bash or zsh.
  45. if test -z "$BASH_VERSION$ZSH_VERSION" \
  46. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='print -r --'
  48. as_echo_n='print -rn --'
  49. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  50. as_echo='printf %s\n'
  51. as_echo_n='printf %s'
  52. else
  53. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  54. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  55. as_echo_n='/usr/ucb/echo -n'
  56. else
  57. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  58. as_echo_n_body='eval
  59. arg=$1;
  60. case $arg in #(
  61. *"$as_nl"*)
  62. expr "X$arg" : "X\\(.*\\)$as_nl";
  63. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  64. esac;
  65. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  66. '
  67. export as_echo_n_body
  68. as_echo_n='sh -c $as_echo_n_body as_echo'
  69. fi
  70. export as_echo_body
  71. as_echo='sh -c $as_echo_body as_echo'
  72. fi
  73. # The user is always right.
  74. if test "${PATH_SEPARATOR+set}" != set; then
  75. PATH_SEPARATOR=:
  76. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  77. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  78. PATH_SEPARATOR=';'
  79. }
  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. as_myself=
  89. case $0 in #((
  90. *[\\/]* ) as_myself=$0 ;;
  91. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  92. for as_dir in $PATH
  93. do
  94. IFS=$as_save_IFS
  95. test -z "$as_dir" && as_dir=.
  96. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  97. done
  98. IFS=$as_save_IFS
  99. ;;
  100. esac
  101. # We did not find ourselves, most probably we were run as `sh COMMAND'
  102. # in which case we are not to be found in the path.
  103. if test "x$as_myself" = x; then
  104. as_myself=$0
  105. fi
  106. if test ! -f "$as_myself"; then
  107. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  108. exit 1
  109. fi
  110. # Unset variables that we do not need and which cause bugs (e.g. in
  111. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  112. # suppresses any "Segmentation fault" message there. '((' could
  113. # trigger a bug in pdksh 5.2.14.
  114. for as_var in BASH_ENV ENV MAIL MAILPATH
  115. do eval test x\${$as_var+set} = xset \
  116. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  117. done
  118. PS1='$ '
  119. PS2='> '
  120. PS4='+ '
  121. # NLS nuisances.
  122. LC_ALL=C
  123. export LC_ALL
  124. LANGUAGE=C
  125. export LANGUAGE
  126. # CDPATH.
  127. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  128. if test "x$CONFIG_SHELL" = x; then
  129. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  130. emulate sh
  131. NULLCMD=:
  132. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  133. # is contrary to our usage. Disable this feature.
  134. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  135. setopt NO_GLOB_SUBST
  136. else
  137. case \`(set -o) 2>/dev/null\` in #(
  138. *posix*) :
  139. set -o posix ;; #(
  140. *) :
  141. ;;
  142. esac
  143. fi
  144. "
  145. as_required="as_fn_return () { (exit \$1); }
  146. as_fn_success () { as_fn_return 0; }
  147. as_fn_failure () { as_fn_return 1; }
  148. as_fn_ret_success () { return 0; }
  149. as_fn_ret_failure () { return 1; }
  150. exitcode=0
  151. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  152. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  153. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  154. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  155. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  156. else
  157. exitcode=1; echo positional parameters were not saved.
  158. fi
  159. test x\$exitcode = x0 || exit 1"
  160. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  161. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  162. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  163. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  164. test \$(( 1 + 1 )) = 2 || exit 1"
  165. if (eval "$as_required") 2>/dev/null; then :
  166. as_have_required=yes
  167. else
  168. as_have_required=no
  169. fi
  170. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  171. else
  172. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  173. as_found=false
  174. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  175. do
  176. IFS=$as_save_IFS
  177. test -z "$as_dir" && as_dir=.
  178. as_found=:
  179. case $as_dir in #(
  180. /*)
  181. for as_base in sh bash ksh sh5; do
  182. # Try only shells that exist, to save several forks.
  183. as_shell=$as_dir/$as_base
  184. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  185. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  186. CONFIG_SHELL=$as_shell as_have_required=yes
  187. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  188. break 2
  189. fi
  190. fi
  191. done;;
  192. esac
  193. as_found=false
  194. done
  195. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  196. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  197. CONFIG_SHELL=$SHELL as_have_required=yes
  198. fi; }
  199. IFS=$as_save_IFS
  200. if test "x$CONFIG_SHELL" != x; then :
  201. # We cannot yet assume a decent shell, so we have to provide a
  202. # neutralization value for shells without unset; and this also
  203. # works around shells that cannot unset nonexistent variables.
  204. # Preserve -v and -x to the replacement shell.
  205. BASH_ENV=/dev/null
  206. ENV=/dev/null
  207. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  208. export CONFIG_SHELL
  209. case $- in # ((((
  210. *v*x* | *x*v* ) as_opts=-vx ;;
  211. *v* ) as_opts=-v ;;
  212. *x* ) as_opts=-x ;;
  213. * ) as_opts= ;;
  214. esac
  215. exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
  216. fi
  217. if test x$as_have_required = xno; then :
  218. $as_echo "$0: This script requires a shell more modern than all"
  219. $as_echo "$0: the shells that I found on your system."
  220. if test x${ZSH_VERSION+set} = xset ; then
  221. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  222. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  223. else
  224. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  225. $0: including any error possibly output before this
  226. $0: message. Then install a modern shell, or manually run
  227. $0: the script under such a shell if you do have one."
  228. fi
  229. exit 1
  230. fi
  231. fi
  232. fi
  233. SHELL=${CONFIG_SHELL-/bin/sh}
  234. export SHELL
  235. # Unset more variables known to interfere with behavior of common tools.
  236. CLICOLOR_FORCE= GREP_OPTIONS=
  237. unset CLICOLOR_FORCE GREP_OPTIONS
  238. ## --------------------- ##
  239. ## M4sh Shell Functions. ##
  240. ## --------------------- ##
  241. # as_fn_unset VAR
  242. # ---------------
  243. # Portably unset VAR.
  244. as_fn_unset ()
  245. {
  246. { eval $1=; unset $1;}
  247. }
  248. as_unset=as_fn_unset
  249. # as_fn_set_status STATUS
  250. # -----------------------
  251. # Set $? to STATUS, without forking.
  252. as_fn_set_status ()
  253. {
  254. return $1
  255. } # as_fn_set_status
  256. # as_fn_exit STATUS
  257. # -----------------
  258. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  259. as_fn_exit ()
  260. {
  261. set +e
  262. as_fn_set_status $1
  263. exit $1
  264. } # as_fn_exit
  265. # as_fn_mkdir_p
  266. # -------------
  267. # Create "$as_dir" as a directory, including parents if necessary.
  268. as_fn_mkdir_p ()
  269. {
  270. case $as_dir in #(
  271. -*) as_dir=./$as_dir;;
  272. esac
  273. test -d "$as_dir" || eval $as_mkdir_p || {
  274. as_dirs=
  275. while :; do
  276. case $as_dir in #(
  277. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  278. *) as_qdir=$as_dir;;
  279. esac
  280. as_dirs="'$as_qdir' $as_dirs"
  281. as_dir=`$as_dirname -- "$as_dir" ||
  282. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  283. X"$as_dir" : 'X\(//\)[^/]' \| \
  284. X"$as_dir" : 'X\(//\)$' \| \
  285. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  286. $as_echo X"$as_dir" |
  287. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  288. s//\1/
  289. q
  290. }
  291. /^X\(\/\/\)[^/].*/{
  292. s//\1/
  293. q
  294. }
  295. /^X\(\/\/\)$/{
  296. s//\1/
  297. q
  298. }
  299. /^X\(\/\).*/{
  300. s//\1/
  301. q
  302. }
  303. s/.*/./; q'`
  304. test -d "$as_dir" && break
  305. done
  306. test -z "$as_dirs" || eval "mkdir $as_dirs"
  307. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  308. } # as_fn_mkdir_p
  309. # as_fn_append VAR VALUE
  310. # ----------------------
  311. # Append the text in VALUE to the end of the definition contained in VAR. Take
  312. # advantage of any shell optimizations that allow amortized linear growth over
  313. # repeated appends, instead of the typical quadratic growth present in naive
  314. # implementations.
  315. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  316. eval 'as_fn_append ()
  317. {
  318. eval $1+=\$2
  319. }'
  320. else
  321. as_fn_append ()
  322. {
  323. eval $1=\$$1\$2
  324. }
  325. fi # as_fn_append
  326. # as_fn_arith ARG...
  327. # ------------------
  328. # Perform arithmetic evaluation on the ARGs, and store the result in the
  329. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  330. # must be portable across $(()) and expr.
  331. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  332. eval 'as_fn_arith ()
  333. {
  334. as_val=$(( $* ))
  335. }'
  336. else
  337. as_fn_arith ()
  338. {
  339. as_val=`expr "$@" || test $? -eq 1`
  340. }
  341. fi # as_fn_arith
  342. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  343. # ----------------------------------------
  344. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  345. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  346. # script with STATUS, using 1 if that was 0.
  347. as_fn_error ()
  348. {
  349. as_status=$1; test $as_status -eq 0 && as_status=1
  350. if test "$4"; then
  351. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  352. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  353. fi
  354. $as_echo "$as_me: error: $2" >&2
  355. as_fn_exit $as_status
  356. } # as_fn_error
  357. if expr a : '\(a\)' >/dev/null 2>&1 &&
  358. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  359. as_expr=expr
  360. else
  361. as_expr=false
  362. fi
  363. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  364. as_basename=basename
  365. else
  366. as_basename=false
  367. fi
  368. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  369. as_dirname=dirname
  370. else
  371. as_dirname=false
  372. fi
  373. as_me=`$as_basename -- "$0" ||
  374. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  375. X"$0" : 'X\(//\)$' \| \
  376. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  377. $as_echo X/"$0" |
  378. sed '/^.*\/\([^/][^/]*\)\/*$/{
  379. s//\1/
  380. q
  381. }
  382. /^X\/\(\/\/\)$/{
  383. s//\1/
  384. q
  385. }
  386. /^X\/\(\/\).*/{
  387. s//\1/
  388. q
  389. }
  390. s/.*/./; q'`
  391. # Avoid depending upon Character Ranges.
  392. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  393. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  394. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  395. as_cr_digits='0123456789'
  396. as_cr_alnum=$as_cr_Letters$as_cr_digits
  397. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  398. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  399. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  400. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  401. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  402. sed -n '
  403. p
  404. /[$]LINENO/=
  405. ' <$as_myself |
  406. sed '
  407. s/[$]LINENO.*/&-/
  408. t lineno
  409. b
  410. :lineno
  411. N
  412. :loop
  413. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  414. t loop
  415. s/-\n.*//
  416. ' >$as_me.lineno &&
  417. chmod +x "$as_me.lineno" ||
  418. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  419. # Don't try to exec as it changes $[0], causing all sort of problems
  420. # (the dirname of $[0] is not the place where we might find the
  421. # original and so on. Autoconf is especially sensitive to this).
  422. . "./$as_me.lineno"
  423. # Exit status is that of the last command.
  424. exit
  425. }
  426. ECHO_C= ECHO_N= ECHO_T=
  427. case `echo -n x` in #(((((
  428. -n*)
  429. case `echo 'xy\c'` in
  430. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  431. xy) ECHO_C='\c';;
  432. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  433. ECHO_T=' ';;
  434. esac;;
  435. *)
  436. ECHO_N='-n';;
  437. esac
  438. rm -f conf$$ conf$$.exe conf$$.file
  439. if test -d conf$$.dir; then
  440. rm -f conf$$.dir/conf$$.file
  441. else
  442. rm -f conf$$.dir
  443. mkdir conf$$.dir 2>/dev/null
  444. fi
  445. if (echo >conf$$.file) 2>/dev/null; then
  446. if ln -s conf$$.file conf$$ 2>/dev/null; then
  447. as_ln_s='ln -s'
  448. # ... but there are two gotchas:
  449. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  450. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  451. # In both cases, we have to default to `cp -p'.
  452. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  453. as_ln_s='cp -p'
  454. elif ln conf$$.file conf$$ 2>/dev/null; then
  455. as_ln_s=ln
  456. else
  457. as_ln_s='cp -p'
  458. fi
  459. else
  460. as_ln_s='cp -p'
  461. fi
  462. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  463. rmdir conf$$.dir 2>/dev/null
  464. if mkdir -p . 2>/dev/null; then
  465. as_mkdir_p='mkdir -p "$as_dir"'
  466. else
  467. test -d ./-p && rmdir ./-p
  468. as_mkdir_p=false
  469. fi
  470. if test -x / >/dev/null 2>&1; then
  471. as_test_x='test -x'
  472. else
  473. if ls -dL / >/dev/null 2>&1; then
  474. as_ls_L_option=L
  475. else
  476. as_ls_L_option=
  477. fi
  478. as_test_x='
  479. eval sh -c '\''
  480. if test -d "$1"; then
  481. test -d "$1/.";
  482. else
  483. case $1 in #(
  484. -*)set "./$1";;
  485. esac;
  486. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  487. ???[sx]*):;;*)false;;esac;fi
  488. '\'' sh
  489. '
  490. fi
  491. as_executable_p=$as_test_x
  492. # Sed expression to map a string onto a valid CPP name.
  493. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  494. # Sed expression to map a string onto a valid variable name.
  495. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  496. test -n "$DJDIR" || exec 7<&0 </dev/null
  497. exec 6>&1
  498. # Name of the host.
  499. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  500. # so uname gets run too.
  501. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  502. #
  503. # Initializations.
  504. #
  505. ac_default_prefix=/usr/local
  506. ac_clean_files=
  507. ac_config_libobj_dir=.
  508. LIBOBJS=
  509. cross_compiling=no
  510. subdirs=
  511. MFLAGS=
  512. MAKEFLAGS=
  513. # Identity of this package.
  514. PACKAGE_NAME=
  515. PACKAGE_TARNAME=
  516. PACKAGE_VERSION=
  517. PACKAGE_STRING=
  518. PACKAGE_BUGREPORT=
  519. PACKAGE_URL=
  520. ac_unique_file="wraith"
  521. ac_unique_file="src/eggdrop.h"
  522. # Factoring default headers for most tests.
  523. ac_includes_default="\
  524. #include <stdio.h>
  525. #ifdef HAVE_SYS_TYPES_H
  526. # include <sys/types.h>
  527. #endif
  528. #ifdef HAVE_SYS_STAT_H
  529. # include <sys/stat.h>
  530. #endif
  531. #ifdef STDC_HEADERS
  532. # include <stdlib.h>
  533. # include <stddef.h>
  534. #else
  535. # ifdef HAVE_STDLIB_H
  536. # include <stdlib.h>
  537. # endif
  538. #endif
  539. #ifdef HAVE_STRING_H
  540. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  541. # include <memory.h>
  542. # endif
  543. # include <string.h>
  544. #endif
  545. #ifdef HAVE_STRINGS_H
  546. # include <strings.h>
  547. #endif
  548. #ifdef HAVE_INTTYPES_H
  549. # include <inttypes.h>
  550. #endif
  551. #ifdef HAVE_STDINT_H
  552. # include <stdint.h>
  553. #endif
  554. #ifdef HAVE_UNISTD_H
  555. # include <unistd.h>
  556. #endif"
  557. ac_header_list=
  558. ac_func_list=
  559. ac_subst_vars='LTLIBOBJS
  560. MOD_UPDIR
  561. NUMVER
  562. VERSION
  563. LIBOBJS
  564. SSL_LIBS
  565. SSL_INCLUDES
  566. MAKEJOBS
  567. CCDEBUG
  568. STATIC
  569. BUILDARCH
  570. BUILDOS
  571. DISTCC
  572. CCACHE
  573. UNAME
  574. DIFF
  575. STRIP
  576. OBJCOPY
  577. BASENAME
  578. AWK
  579. HEAD_1
  580. SET_MAKE
  581. GCC4DEB
  582. GCC3DEB
  583. GCC3
  584. CCDEPMODE
  585. EGREP
  586. GREP
  587. CXXCPP
  588. OBJEXT
  589. EXEEXT
  590. ac_ct_CXX
  591. CPPFLAGS
  592. LDFLAGS
  593. CXXFLAGS
  594. CXX
  595. egg_ac_parameters
  596. target_alias
  597. host_alias
  598. build_alias
  599. LIBS
  600. ECHO_T
  601. ECHO_N
  602. ECHO_C
  603. DEFS
  604. mandir
  605. localedir
  606. libdir
  607. psdir
  608. pdfdir
  609. dvidir
  610. htmldir
  611. infodir
  612. docdir
  613. oldincludedir
  614. includedir
  615. localstatedir
  616. sharedstatedir
  617. sysconfdir
  618. datadir
  619. datarootdir
  620. libexecdir
  621. sbindir
  622. bindir
  623. program_transform_name
  624. prefix
  625. exec_prefix
  626. PACKAGE_URL
  627. PACKAGE_BUGREPORT
  628. PACKAGE_STRING
  629. PACKAGE_VERSION
  630. PACKAGE_TARNAME
  631. PACKAGE_NAME
  632. PATH_SEPARATOR
  633. SHELL'
  634. ac_subst_files=''
  635. ac_user_opts='
  636. enable_option_checking
  637. enable_ipv6
  638. with_openssl
  639. '
  640. ac_precious_vars='build_alias
  641. host_alias
  642. target_alias
  643. CXX
  644. CXXFLAGS
  645. LDFLAGS
  646. LIBS
  647. CPPFLAGS
  648. CCC
  649. CXXCPP'
  650. # Initialize some variables set by options.
  651. ac_init_help=
  652. ac_init_version=false
  653. ac_unrecognized_opts=
  654. ac_unrecognized_sep=
  655. # The variables have the same names as the options, with
  656. # dashes changed to underlines.
  657. cache_file=./config.cache
  658. exec_prefix=NONE
  659. no_create=
  660. no_recursion=
  661. prefix=NONE
  662. program_prefix=NONE
  663. program_suffix=NONE
  664. program_transform_name=s,x,x,
  665. silent=
  666. site=
  667. srcdir=
  668. verbose=
  669. x_includes=NONE
  670. x_libraries=NONE
  671. # Installation directory options.
  672. # These are left unexpanded so users can "make install exec_prefix=/foo"
  673. # and all the variables that are supposed to be based on exec_prefix
  674. # by default will actually change.
  675. # Use braces instead of parens because sh, perl, etc. also accept them.
  676. # (The list follows the same order as the GNU Coding Standards.)
  677. bindir='${exec_prefix}/bin'
  678. sbindir='${exec_prefix}/sbin'
  679. libexecdir='${exec_prefix}/libexec'
  680. datarootdir='${prefix}/share'
  681. datadir='${datarootdir}'
  682. sysconfdir='${prefix}/etc'
  683. sharedstatedir='${prefix}/com'
  684. localstatedir='${prefix}/var'
  685. includedir='${prefix}/include'
  686. oldincludedir='/usr/include'
  687. docdir='${datarootdir}/doc/${PACKAGE}'
  688. infodir='${datarootdir}/info'
  689. htmldir='${docdir}'
  690. dvidir='${docdir}'
  691. pdfdir='${docdir}'
  692. psdir='${docdir}'
  693. libdir='${exec_prefix}/lib'
  694. localedir='${datarootdir}/locale'
  695. mandir='${datarootdir}/man'
  696. ac_prev=
  697. ac_dashdash=
  698. for ac_option
  699. do
  700. # If the previous option needs an argument, assign it.
  701. if test -n "$ac_prev"; then
  702. eval $ac_prev=\$ac_option
  703. ac_prev=
  704. continue
  705. fi
  706. case $ac_option in
  707. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  708. *=) ac_optarg= ;;
  709. *) ac_optarg=yes ;;
  710. esac
  711. # Accept the important Cygnus configure options, so we can diagnose typos.
  712. case $ac_dashdash$ac_option in
  713. --)
  714. ac_dashdash=yes ;;
  715. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  716. ac_prev=bindir ;;
  717. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  718. bindir=$ac_optarg ;;
  719. -build | --build | --buil | --bui | --bu)
  720. ac_prev=build_alias ;;
  721. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  722. build_alias=$ac_optarg ;;
  723. -cache-file | --cache-file | --cache-fil | --cache-fi \
  724. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  725. ac_prev=cache_file ;;
  726. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  727. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  728. cache_file=$ac_optarg ;;
  729. --config-cache | -C)
  730. cache_file=config.cache ;;
  731. -datadir | --datadir | --datadi | --datad)
  732. ac_prev=datadir ;;
  733. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  734. datadir=$ac_optarg ;;
  735. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  736. | --dataroo | --dataro | --datar)
  737. ac_prev=datarootdir ;;
  738. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  739. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  740. datarootdir=$ac_optarg ;;
  741. -disable-* | --disable-*)
  742. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  743. # Reject names that are not valid shell variable names.
  744. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  745. as_fn_error $? "invalid feature name: $ac_useropt"
  746. ac_useropt_orig=$ac_useropt
  747. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  748. case $ac_user_opts in
  749. *"
  750. "enable_$ac_useropt"
  751. "*) ;;
  752. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  753. ac_unrecognized_sep=', ';;
  754. esac
  755. eval enable_$ac_useropt=no ;;
  756. -docdir | --docdir | --docdi | --doc | --do)
  757. ac_prev=docdir ;;
  758. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  759. docdir=$ac_optarg ;;
  760. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  761. ac_prev=dvidir ;;
  762. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  763. dvidir=$ac_optarg ;;
  764. -enable-* | --enable-*)
  765. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  766. # Reject names that are not valid shell variable names.
  767. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  768. as_fn_error $? "invalid feature name: $ac_useropt"
  769. ac_useropt_orig=$ac_useropt
  770. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  771. case $ac_user_opts in
  772. *"
  773. "enable_$ac_useropt"
  774. "*) ;;
  775. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  776. ac_unrecognized_sep=', ';;
  777. esac
  778. eval enable_$ac_useropt=\$ac_optarg ;;
  779. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  780. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  781. | --exec | --exe | --ex)
  782. ac_prev=exec_prefix ;;
  783. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  784. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  785. | --exec=* | --exe=* | --ex=*)
  786. exec_prefix=$ac_optarg ;;
  787. -gas | --gas | --ga | --g)
  788. # Obsolete; use --with-gas.
  789. with_gas=yes ;;
  790. -help | --help | --hel | --he | -h)
  791. ac_init_help=long ;;
  792. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  793. ac_init_help=recursive ;;
  794. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  795. ac_init_help=short ;;
  796. -host | --host | --hos | --ho)
  797. ac_prev=host_alias ;;
  798. -host=* | --host=* | --hos=* | --ho=*)
  799. host_alias=$ac_optarg ;;
  800. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  801. ac_prev=htmldir ;;
  802. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  803. | --ht=*)
  804. htmldir=$ac_optarg ;;
  805. -includedir | --includedir | --includedi | --included | --include \
  806. | --includ | --inclu | --incl | --inc)
  807. ac_prev=includedir ;;
  808. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  809. | --includ=* | --inclu=* | --incl=* | --inc=*)
  810. includedir=$ac_optarg ;;
  811. -infodir | --infodir | --infodi | --infod | --info | --inf)
  812. ac_prev=infodir ;;
  813. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  814. infodir=$ac_optarg ;;
  815. -libdir | --libdir | --libdi | --libd)
  816. ac_prev=libdir ;;
  817. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  818. libdir=$ac_optarg ;;
  819. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  820. | --libexe | --libex | --libe)
  821. ac_prev=libexecdir ;;
  822. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  823. | --libexe=* | --libex=* | --libe=*)
  824. libexecdir=$ac_optarg ;;
  825. -localedir | --localedir | --localedi | --localed | --locale)
  826. ac_prev=localedir ;;
  827. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  828. localedir=$ac_optarg ;;
  829. -localstatedir | --localstatedir | --localstatedi | --localstated \
  830. | --localstate | --localstat | --localsta | --localst | --locals)
  831. ac_prev=localstatedir ;;
  832. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  833. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  834. localstatedir=$ac_optarg ;;
  835. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  836. ac_prev=mandir ;;
  837. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  838. mandir=$ac_optarg ;;
  839. -nfp | --nfp | --nf)
  840. # Obsolete; use --without-fp.
  841. with_fp=no ;;
  842. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  843. | --no-cr | --no-c | -n)
  844. no_create=yes ;;
  845. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  846. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  847. no_recursion=yes ;;
  848. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  849. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  850. | --oldin | --oldi | --old | --ol | --o)
  851. ac_prev=oldincludedir ;;
  852. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  853. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  854. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  855. oldincludedir=$ac_optarg ;;
  856. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  857. ac_prev=prefix ;;
  858. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  859. prefix=$ac_optarg ;;
  860. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  861. | --program-pre | --program-pr | --program-p)
  862. ac_prev=program_prefix ;;
  863. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  864. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  865. program_prefix=$ac_optarg ;;
  866. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  867. | --program-suf | --program-su | --program-s)
  868. ac_prev=program_suffix ;;
  869. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  870. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  871. program_suffix=$ac_optarg ;;
  872. -program-transform-name | --program-transform-name \
  873. | --program-transform-nam | --program-transform-na \
  874. | --program-transform-n | --program-transform- \
  875. | --program-transform | --program-transfor \
  876. | --program-transfo | --program-transf \
  877. | --program-trans | --program-tran \
  878. | --progr-tra | --program-tr | --program-t)
  879. ac_prev=program_transform_name ;;
  880. -program-transform-name=* | --program-transform-name=* \
  881. | --program-transform-nam=* | --program-transform-na=* \
  882. | --program-transform-n=* | --program-transform-=* \
  883. | --program-transform=* | --program-transfor=* \
  884. | --program-transfo=* | --program-transf=* \
  885. | --program-trans=* | --program-tran=* \
  886. | --progr-tra=* | --program-tr=* | --program-t=*)
  887. program_transform_name=$ac_optarg ;;
  888. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  889. ac_prev=pdfdir ;;
  890. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  891. pdfdir=$ac_optarg ;;
  892. -psdir | --psdir | --psdi | --psd | --ps)
  893. ac_prev=psdir ;;
  894. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  895. psdir=$ac_optarg ;;
  896. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  897. | -silent | --silent | --silen | --sile | --sil)
  898. silent=yes ;;
  899. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  900. ac_prev=sbindir ;;
  901. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  902. | --sbi=* | --sb=*)
  903. sbindir=$ac_optarg ;;
  904. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  905. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  906. | --sharedst | --shareds | --shared | --share | --shar \
  907. | --sha | --sh)
  908. ac_prev=sharedstatedir ;;
  909. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  910. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  911. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  912. | --sha=* | --sh=*)
  913. sharedstatedir=$ac_optarg ;;
  914. -site | --site | --sit)
  915. ac_prev=site ;;
  916. -site=* | --site=* | --sit=*)
  917. site=$ac_optarg ;;
  918. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  919. ac_prev=srcdir ;;
  920. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  921. srcdir=$ac_optarg ;;
  922. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  923. | --syscon | --sysco | --sysc | --sys | --sy)
  924. ac_prev=sysconfdir ;;
  925. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  926. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  927. sysconfdir=$ac_optarg ;;
  928. -target | --target | --targe | --targ | --tar | --ta | --t)
  929. ac_prev=target_alias ;;
  930. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  931. target_alias=$ac_optarg ;;
  932. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  933. verbose=yes ;;
  934. -version | --version | --versio | --versi | --vers | -V)
  935. ac_init_version=: ;;
  936. -with-* | --with-*)
  937. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  938. # Reject names that are not valid shell variable names.
  939. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  940. as_fn_error $? "invalid package name: $ac_useropt"
  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_fn_error $? "invalid package name: $ac_useropt"
  956. ac_useropt_orig=$ac_useropt
  957. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  958. case $ac_user_opts in
  959. *"
  960. "with_$ac_useropt"
  961. "*) ;;
  962. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  963. ac_unrecognized_sep=', ';;
  964. esac
  965. eval with_$ac_useropt=no ;;
  966. --x)
  967. # Obsolete; use --with-x.
  968. with_x=yes ;;
  969. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  970. | --x-incl | --x-inc | --x-in | --x-i)
  971. ac_prev=x_includes ;;
  972. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  973. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  974. x_includes=$ac_optarg ;;
  975. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  976. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  977. ac_prev=x_libraries ;;
  978. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  979. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  980. x_libraries=$ac_optarg ;;
  981. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  982. Try \`$0 --help' for more information"
  983. ;;
  984. *=*)
  985. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  986. # Reject names that are not valid shell variable names.
  987. case $ac_envvar in #(
  988. '' | [0-9]* | *[!_$as_cr_alnum]* )
  989. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  990. esac
  991. eval $ac_envvar=\$ac_optarg
  992. export $ac_envvar ;;
  993. *)
  994. # FIXME: should be removed in autoconf 3.0.
  995. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  996. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  997. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  998. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  999. ;;
  1000. esac
  1001. done
  1002. if test -n "$ac_prev"; then
  1003. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1004. as_fn_error $? "missing argument to $ac_option"
  1005. fi
  1006. if test -n "$ac_unrecognized_opts"; then
  1007. case $enable_option_checking in
  1008. no) ;;
  1009. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1010. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1011. esac
  1012. fi
  1013. # Check all directory arguments for consistency.
  1014. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1015. datadir sysconfdir sharedstatedir localstatedir includedir \
  1016. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1017. libdir localedir mandir
  1018. do
  1019. eval ac_val=\$$ac_var
  1020. # Remove trailing slashes.
  1021. case $ac_val in
  1022. */ )
  1023. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1024. eval $ac_var=\$ac_val;;
  1025. esac
  1026. # Be sure to have absolute directory names.
  1027. case $ac_val in
  1028. [\\/$]* | ?:[\\/]* ) continue;;
  1029. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1030. esac
  1031. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1032. done
  1033. # There might be people who depend on the old broken behavior: `$host'
  1034. # used to hold the argument of --host etc.
  1035. # FIXME: To remove some day.
  1036. build=$build_alias
  1037. host=$host_alias
  1038. target=$target_alias
  1039. # FIXME: To remove some day.
  1040. if test "x$host_alias" != x; then
  1041. if test "x$build_alias" = x; then
  1042. cross_compiling=maybe
  1043. $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
  1044. If a cross compiler is detected then cross compile mode will be used" >&2
  1045. elif test "x$build_alias" != "x$host_alias"; then
  1046. cross_compiling=yes
  1047. fi
  1048. fi
  1049. ac_tool_prefix=
  1050. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1051. test "$silent" = yes && exec 6>/dev/null
  1052. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1053. ac_ls_di=`ls -di .` &&
  1054. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1055. as_fn_error $? "working directory cannot be determined"
  1056. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1057. as_fn_error $? "pwd does not report name of working directory"
  1058. # Find the source files, if location was not specified.
  1059. if test -z "$srcdir"; then
  1060. ac_srcdir_defaulted=yes
  1061. # Try the directory containing this script, then the parent directory.
  1062. ac_confdir=`$as_dirname -- "$as_myself" ||
  1063. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1064. X"$as_myself" : 'X\(//\)[^/]' \| \
  1065. X"$as_myself" : 'X\(//\)$' \| \
  1066. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1067. $as_echo X"$as_myself" |
  1068. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1069. s//\1/
  1070. q
  1071. }
  1072. /^X\(\/\/\)[^/].*/{
  1073. s//\1/
  1074. q
  1075. }
  1076. /^X\(\/\/\)$/{
  1077. s//\1/
  1078. q
  1079. }
  1080. /^X\(\/\).*/{
  1081. s//\1/
  1082. q
  1083. }
  1084. s/.*/./; q'`
  1085. srcdir=$ac_confdir
  1086. if test ! -r "$srcdir/$ac_unique_file"; then
  1087. srcdir=..
  1088. fi
  1089. else
  1090. ac_srcdir_defaulted=no
  1091. fi
  1092. if test ! -r "$srcdir/$ac_unique_file"; then
  1093. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1094. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1095. fi
  1096. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1097. ac_abs_confdir=`(
  1098. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1099. pwd)`
  1100. # When building in place, set srcdir=.
  1101. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1102. srcdir=.
  1103. fi
  1104. # Remove unnecessary trailing slashes from srcdir.
  1105. # Double slashes in file names in object file debugging info
  1106. # mess up M-x gdb in Emacs.
  1107. case $srcdir in
  1108. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1109. esac
  1110. for ac_var in $ac_precious_vars; do
  1111. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1112. eval ac_env_${ac_var}_value=\$${ac_var}
  1113. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1114. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1115. done
  1116. #
  1117. # Report the --help message.
  1118. #
  1119. if test "$ac_init_help" = "long"; then
  1120. # Omit some internal or obsolete options to make the list less imposing.
  1121. # This message is too long to be a string in the A/UX 3.1 sh.
  1122. cat <<_ACEOF
  1123. \`configure' configures this package to adapt to many kinds of systems.
  1124. Usage: $0 [OPTION]... [VAR=VALUE]...
  1125. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1126. VAR=VALUE. See below for descriptions of some of the useful variables.
  1127. Defaults for the options are specified in brackets.
  1128. Configuration:
  1129. -h, --help display this help and exit
  1130. --help=short display options specific to this package
  1131. --help=recursive display the short help of all the included packages
  1132. -V, --version display version information and exit
  1133. -q, --quiet, --silent do not print \`checking ...' messages
  1134. --cache-file=FILE cache test results in FILE [disabled]
  1135. -C, --config-cache alias for \`--cache-file=config.cache'
  1136. -n, --no-create do not create output files
  1137. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1138. Installation directories:
  1139. --prefix=PREFIX install architecture-independent files in PREFIX
  1140. [$ac_default_prefix]
  1141. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1142. [PREFIX]
  1143. By default, \`make install' will install all the files in
  1144. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1145. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1146. for instance \`--prefix=\$HOME'.
  1147. For better control, use the options below.
  1148. Fine tuning of the installation directories:
  1149. --bindir=DIR user executables [EPREFIX/bin]
  1150. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1151. --libexecdir=DIR program executables [EPREFIX/libexec]
  1152. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1153. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1154. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1155. --libdir=DIR object code libraries [EPREFIX/lib]
  1156. --includedir=DIR C header files [PREFIX/include]
  1157. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1158. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1159. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1160. --infodir=DIR info documentation [DATAROOTDIR/info]
  1161. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1162. --mandir=DIR man documentation [DATAROOTDIR/man]
  1163. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1164. --htmldir=DIR html documentation [DOCDIR]
  1165. --dvidir=DIR dvi documentation [DOCDIR]
  1166. --pdfdir=DIR pdf documentation [DOCDIR]
  1167. --psdir=DIR ps documentation [DOCDIR]
  1168. _ACEOF
  1169. cat <<\_ACEOF
  1170. _ACEOF
  1171. fi
  1172. if test -n "$ac_init_help"; then
  1173. cat <<\_ACEOF
  1174. Optional Features:
  1175. --disable-option-checking ignore unrecognized --enable/--with options
  1176. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1177. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1178. --disable-ipv6 disable IPv6 support
  1179. Optional Packages:
  1180. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1181. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1182. --with-openssl=DIR Path to OpenSSL
  1183. Some influential environment variables:
  1184. CXX C++ compiler command
  1185. CXXFLAGS C++ compiler flags
  1186. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1187. nonstandard directory <lib dir>
  1188. LIBS libraries to pass to the linker, e.g. -l<library>
  1189. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1190. you have headers in a nonstandard directory <include dir>
  1191. CXXCPP C++ preprocessor
  1192. Use these variables to override the choices made by `configure' or to help
  1193. it to find libraries and programs with nonstandard names/locations.
  1194. Report bugs to the package provider.
  1195. _ACEOF
  1196. ac_status=$?
  1197. fi
  1198. if test "$ac_init_help" = "recursive"; then
  1199. # If there are subdirs, report their specific --help.
  1200. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1201. test -d "$ac_dir" ||
  1202. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1203. continue
  1204. ac_builddir=.
  1205. case "$ac_dir" in
  1206. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1207. *)
  1208. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1209. # A ".." for each directory in $ac_dir_suffix.
  1210. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1211. case $ac_top_builddir_sub in
  1212. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1213. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1214. esac ;;
  1215. esac
  1216. ac_abs_top_builddir=$ac_pwd
  1217. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1218. # for backward compatibility:
  1219. ac_top_builddir=$ac_top_build_prefix
  1220. case $srcdir in
  1221. .) # We are building in place.
  1222. ac_srcdir=.
  1223. ac_top_srcdir=$ac_top_builddir_sub
  1224. ac_abs_top_srcdir=$ac_pwd ;;
  1225. [\\/]* | ?:[\\/]* ) # Absolute name.
  1226. ac_srcdir=$srcdir$ac_dir_suffix;
  1227. ac_top_srcdir=$srcdir
  1228. ac_abs_top_srcdir=$srcdir ;;
  1229. *) # Relative name.
  1230. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1231. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1232. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1233. esac
  1234. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1235. cd "$ac_dir" || { ac_status=$?; continue; }
  1236. # Check for guested configure.
  1237. if test -f "$ac_srcdir/configure.gnu"; then
  1238. echo &&
  1239. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1240. elif test -f "$ac_srcdir/configure"; then
  1241. echo &&
  1242. $SHELL "$ac_srcdir/configure" --help=recursive
  1243. else
  1244. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1245. fi || ac_status=$?
  1246. cd "$ac_pwd" || { ac_status=$?; break; }
  1247. done
  1248. fi
  1249. test -n "$ac_init_help" && exit $ac_status
  1250. if $ac_init_version; then
  1251. cat <<\_ACEOF
  1252. configure
  1253. generated by GNU Autoconf 2.68
  1254. Copyright (C) 2010 Free Software Foundation, Inc.
  1255. This configure script is free software; the Free Software Foundation
  1256. gives unlimited permission to copy, distribute and modify it.
  1257. Copyright (c) 2003 - 2010 Bryan Drewery
  1258. _ACEOF
  1259. exit
  1260. fi
  1261. ## ------------------------ ##
  1262. ## Autoconf initialization. ##
  1263. ## ------------------------ ##
  1264. # ac_fn_cxx_try_compile LINENO
  1265. # ----------------------------
  1266. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1267. ac_fn_cxx_try_compile ()
  1268. {
  1269. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1270. rm -f conftest.$ac_objext
  1271. if { { ac_try="$ac_compile"
  1272. case "(($ac_try" in
  1273. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1274. *) ac_try_echo=$ac_try;;
  1275. esac
  1276. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1277. $as_echo "$ac_try_echo"; } >&5
  1278. (eval "$ac_compile") 2>conftest.err
  1279. ac_status=$?
  1280. if test -s conftest.err; then
  1281. grep -v '^ *+' conftest.err >conftest.er1
  1282. cat conftest.er1 >&5
  1283. mv -f conftest.er1 conftest.err
  1284. fi
  1285. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1286. test $ac_status = 0; } && {
  1287. test -z "$ac_cxx_werror_flag" ||
  1288. test ! -s conftest.err
  1289. } && test -s conftest.$ac_objext; then :
  1290. ac_retval=0
  1291. else
  1292. $as_echo "$as_me: failed program was:" >&5
  1293. sed 's/^/| /' conftest.$ac_ext >&5
  1294. ac_retval=1
  1295. fi
  1296. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1297. as_fn_set_status $ac_retval
  1298. } # ac_fn_cxx_try_compile
  1299. # ac_fn_cxx_try_cpp LINENO
  1300. # ------------------------
  1301. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1302. ac_fn_cxx_try_cpp ()
  1303. {
  1304. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1305. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1306. case "(($ac_try" in
  1307. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1308. *) ac_try_echo=$ac_try;;
  1309. esac
  1310. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1311. $as_echo "$ac_try_echo"; } >&5
  1312. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1313. ac_status=$?
  1314. if test -s conftest.err; then
  1315. grep -v '^ *+' conftest.err >conftest.er1
  1316. cat conftest.er1 >&5
  1317. mv -f conftest.er1 conftest.err
  1318. fi
  1319. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1320. test $ac_status = 0; } > conftest.i && {
  1321. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1322. test ! -s conftest.err
  1323. }; then :
  1324. ac_retval=0
  1325. else
  1326. $as_echo "$as_me: failed program was:" >&5
  1327. sed 's/^/| /' conftest.$ac_ext >&5
  1328. ac_retval=1
  1329. fi
  1330. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1331. as_fn_set_status $ac_retval
  1332. } # ac_fn_cxx_try_cpp
  1333. # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
  1334. # ---------------------------------------------------------
  1335. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1336. # the include files in INCLUDES and setting the cache variable VAR
  1337. # accordingly.
  1338. ac_fn_cxx_check_header_mongrel ()
  1339. {
  1340. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1341. if eval \${$3+:} false; then :
  1342. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1343. $as_echo_n "checking for $2... " >&6; }
  1344. if eval \${$3+:} false; then :
  1345. $as_echo_n "(cached) " >&6
  1346. fi
  1347. eval ac_res=\$$3
  1348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1349. $as_echo "$ac_res" >&6; }
  1350. else
  1351. # Is the header compilable?
  1352. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1353. $as_echo_n "checking $2 usability... " >&6; }
  1354. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1355. /* end confdefs.h. */
  1356. $4
  1357. #include <$2>
  1358. _ACEOF
  1359. if ac_fn_cxx_try_compile "$LINENO"; then :
  1360. ac_header_compiler=yes
  1361. else
  1362. ac_header_compiler=no
  1363. fi
  1364. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1366. $as_echo "$ac_header_compiler" >&6; }
  1367. # Is the header present?
  1368. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1369. $as_echo_n "checking $2 presence... " >&6; }
  1370. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1371. /* end confdefs.h. */
  1372. #include <$2>
  1373. _ACEOF
  1374. if ac_fn_cxx_try_cpp "$LINENO"; then :
  1375. ac_header_preproc=yes
  1376. else
  1377. ac_header_preproc=no
  1378. fi
  1379. rm -f conftest.err conftest.i conftest.$ac_ext
  1380. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1381. $as_echo "$ac_header_preproc" >&6; }
  1382. # So? What about this header?
  1383. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
  1384. yes:no: )
  1385. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1386. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1387. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1388. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1389. ;;
  1390. no:yes:* )
  1391. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1392. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1393. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1394. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1395. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1396. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1397. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1398. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1399. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1400. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1401. ;;
  1402. esac
  1403. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1404. $as_echo_n "checking for $2... " >&6; }
  1405. if eval \${$3+:} false; then :
  1406. $as_echo_n "(cached) " >&6
  1407. else
  1408. eval "$3=\$ac_header_compiler"
  1409. fi
  1410. eval ac_res=\$$3
  1411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1412. $as_echo "$ac_res" >&6; }
  1413. fi
  1414. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1415. } # ac_fn_cxx_check_header_mongrel
  1416. # ac_fn_cxx_try_run LINENO
  1417. # ------------------------
  1418. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1419. # that executables *can* be run.
  1420. ac_fn_cxx_try_run ()
  1421. {
  1422. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1423. if { { ac_try="$ac_link"
  1424. case "(($ac_try" in
  1425. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1426. *) ac_try_echo=$ac_try;;
  1427. esac
  1428. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1429. $as_echo "$ac_try_echo"; } >&5
  1430. (eval "$ac_link") 2>&5
  1431. ac_status=$?
  1432. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1433. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1434. { { case "(($ac_try" in
  1435. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1436. *) ac_try_echo=$ac_try;;
  1437. esac
  1438. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1439. $as_echo "$ac_try_echo"; } >&5
  1440. (eval "$ac_try") 2>&5
  1441. ac_status=$?
  1442. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1443. test $ac_status = 0; }; }; then :
  1444. ac_retval=0
  1445. else
  1446. $as_echo "$as_me: program exited with status $ac_status" >&5
  1447. $as_echo "$as_me: failed program was:" >&5
  1448. sed 's/^/| /' conftest.$ac_ext >&5
  1449. ac_retval=$ac_status
  1450. fi
  1451. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1452. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1453. as_fn_set_status $ac_retval
  1454. } # ac_fn_cxx_try_run
  1455. # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
  1456. # ---------------------------------------------------------
  1457. # Tests whether HEADER exists and can be compiled using the include files in
  1458. # INCLUDES, setting the cache variable VAR accordingly.
  1459. ac_fn_cxx_check_header_compile ()
  1460. {
  1461. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1462. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1463. $as_echo_n "checking for $2... " >&6; }
  1464. if eval \${$3+:} false; then :
  1465. $as_echo_n "(cached) " >&6
  1466. else
  1467. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1468. /* end confdefs.h. */
  1469. $4
  1470. #include <$2>
  1471. _ACEOF
  1472. if ac_fn_cxx_try_compile "$LINENO"; then :
  1473. eval "$3=yes"
  1474. else
  1475. eval "$3=no"
  1476. fi
  1477. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1478. fi
  1479. eval ac_res=\$$3
  1480. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1481. $as_echo "$ac_res" >&6; }
  1482. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1483. } # ac_fn_cxx_check_header_compile
  1484. # ac_fn_cxx_try_link LINENO
  1485. # -------------------------
  1486. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1487. ac_fn_cxx_try_link ()
  1488. {
  1489. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1490. rm -f conftest.$ac_objext conftest$ac_exeext
  1491. if { { ac_try="$ac_link"
  1492. case "(($ac_try" in
  1493. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1494. *) ac_try_echo=$ac_try;;
  1495. esac
  1496. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1497. $as_echo "$ac_try_echo"; } >&5
  1498. (eval "$ac_link") 2>conftest.err
  1499. ac_status=$?
  1500. if test -s conftest.err; then
  1501. grep -v '^ *+' conftest.err >conftest.er1
  1502. cat conftest.er1 >&5
  1503. mv -f conftest.er1 conftest.err
  1504. fi
  1505. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1506. test $ac_status = 0; } && {
  1507. test -z "$ac_cxx_werror_flag" ||
  1508. test ! -s conftest.err
  1509. } && test -s conftest$ac_exeext && {
  1510. test "$cross_compiling" = yes ||
  1511. $as_test_x conftest$ac_exeext
  1512. }; then :
  1513. ac_retval=0
  1514. else
  1515. $as_echo "$as_me: failed program was:" >&5
  1516. sed 's/^/| /' conftest.$ac_ext >&5
  1517. ac_retval=1
  1518. fi
  1519. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1520. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1521. # interfere with the next link command; also delete a directory that is
  1522. # left behind by Apple's compiler. We do this before executing the actions.
  1523. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1524. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1525. as_fn_set_status $ac_retval
  1526. } # ac_fn_cxx_try_link
  1527. # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
  1528. # ---------------------------------------------
  1529. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1530. # variable VAR accordingly.
  1531. ac_fn_cxx_check_type ()
  1532. {
  1533. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1534. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1535. $as_echo_n "checking for $2... " >&6; }
  1536. if eval \${$3+:} false; then :
  1537. $as_echo_n "(cached) " >&6
  1538. else
  1539. eval "$3=no"
  1540. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1541. /* end confdefs.h. */
  1542. $4
  1543. int
  1544. main ()
  1545. {
  1546. if (sizeof ($2))
  1547. return 0;
  1548. ;
  1549. return 0;
  1550. }
  1551. _ACEOF
  1552. if ac_fn_cxx_try_compile "$LINENO"; then :
  1553. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1554. /* end confdefs.h. */
  1555. $4
  1556. int
  1557. main ()
  1558. {
  1559. if (sizeof (($2)))
  1560. return 0;
  1561. ;
  1562. return 0;
  1563. }
  1564. _ACEOF
  1565. if ac_fn_cxx_try_compile "$LINENO"; then :
  1566. else
  1567. eval "$3=yes"
  1568. fi
  1569. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1570. fi
  1571. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1572. fi
  1573. eval ac_res=\$$3
  1574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1575. $as_echo "$ac_res" >&6; }
  1576. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1577. } # ac_fn_cxx_check_type
  1578. # ac_fn_c_find_intX_t LINENO BITS VAR
  1579. # -----------------------------------
  1580. # Finds a signed integer type with width BITS, setting cache variable VAR
  1581. # accordingly.
  1582. ac_fn_c_find_intX_t ()
  1583. {
  1584. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1585. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
  1586. $as_echo_n "checking for int$2_t... " >&6; }
  1587. if eval \${$3+:} false; then :
  1588. $as_echo_n "(cached) " >&6
  1589. else
  1590. eval "$3=no"
  1591. # Order is important - never check a type that is potentially smaller
  1592. # than half of the expected target width.
  1593. for ac_type in int$2_t 'int' 'long int' \
  1594. 'long long int' 'short int' 'signed char'; do
  1595. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1596. /* end confdefs.h. */
  1597. $ac_includes_default
  1598. enum { N = $2 / 2 - 1 };
  1599. int
  1600. main ()
  1601. {
  1602. static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
  1603. test_array [0] = 0
  1604. ;
  1605. return 0;
  1606. }
  1607. _ACEOF
  1608. if ac_fn_cxx_try_compile "$LINENO"; then :
  1609. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1610. /* end confdefs.h. */
  1611. $ac_includes_default
  1612. enum { N = $2 / 2 - 1 };
  1613. int
  1614. main ()
  1615. {
  1616. static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
  1617. < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
  1618. test_array [0] = 0
  1619. ;
  1620. return 0;
  1621. }
  1622. _ACEOF
  1623. if ac_fn_cxx_try_compile "$LINENO"; then :
  1624. else
  1625. case $ac_type in #(
  1626. int$2_t) :
  1627. eval "$3=yes" ;; #(
  1628. *) :
  1629. eval "$3=\$ac_type" ;;
  1630. esac
  1631. fi
  1632. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1633. fi
  1634. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1635. if eval test \"x\$"$3"\" = x"no"; then :
  1636. else
  1637. break
  1638. fi
  1639. done
  1640. fi
  1641. eval ac_res=\$$3
  1642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1643. $as_echo "$ac_res" >&6; }
  1644. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1645. } # ac_fn_c_find_intX_t
  1646. # ac_fn_c_find_uintX_t LINENO BITS VAR
  1647. # ------------------------------------
  1648. # Finds an unsigned integer type with width BITS, setting cache variable VAR
  1649. # accordingly.
  1650. ac_fn_c_find_uintX_t ()
  1651. {
  1652. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
  1654. $as_echo_n "checking for uint$2_t... " >&6; }
  1655. if eval \${$3+:} false; then :
  1656. $as_echo_n "(cached) " >&6
  1657. else
  1658. eval "$3=no"
  1659. # Order is important - never check a type that is potentially smaller
  1660. # than half of the expected target width.
  1661. for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
  1662. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  1663. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1664. /* end confdefs.h. */
  1665. $ac_includes_default
  1666. int
  1667. main ()
  1668. {
  1669. static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
  1670. test_array [0] = 0
  1671. ;
  1672. return 0;
  1673. }
  1674. _ACEOF
  1675. if ac_fn_cxx_try_compile "$LINENO"; then :
  1676. case $ac_type in #(
  1677. uint$2_t) :
  1678. eval "$3=yes" ;; #(
  1679. *) :
  1680. eval "$3=\$ac_type" ;;
  1681. esac
  1682. fi
  1683. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1684. if eval test \"x\$"$3"\" = x"no"; then :
  1685. else
  1686. break
  1687. fi
  1688. done
  1689. fi
  1690. eval ac_res=\$$3
  1691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1692. $as_echo "$ac_res" >&6; }
  1693. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1694. } # ac_fn_c_find_uintX_t
  1695. # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
  1696. # ----------------------------------------------
  1697. # Tries to find the compile-time value of EXPR in a program that includes
  1698. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  1699. # computed
  1700. ac_fn_cxx_compute_int ()
  1701. {
  1702. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1703. if test "$cross_compiling" = yes; then
  1704. # Depending upon the size, compute the lo and hi bounds.
  1705. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1706. /* end confdefs.h. */
  1707. $4
  1708. int
  1709. main ()
  1710. {
  1711. static int test_array [1 - 2 * !(($2) >= 0)];
  1712. test_array [0] = 0
  1713. ;
  1714. return 0;
  1715. }
  1716. _ACEOF
  1717. if ac_fn_cxx_try_compile "$LINENO"; then :
  1718. ac_lo=0 ac_mid=0
  1719. while :; do
  1720. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1721. /* end confdefs.h. */
  1722. $4
  1723. int
  1724. main ()
  1725. {
  1726. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1727. test_array [0] = 0
  1728. ;
  1729. return 0;
  1730. }
  1731. _ACEOF
  1732. if ac_fn_cxx_try_compile "$LINENO"; then :
  1733. ac_hi=$ac_mid; break
  1734. else
  1735. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  1736. if test $ac_lo -le $ac_mid; then
  1737. ac_lo= ac_hi=
  1738. break
  1739. fi
  1740. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  1741. fi
  1742. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1743. done
  1744. else
  1745. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1746. /* end confdefs.h. */
  1747. $4
  1748. int
  1749. main ()
  1750. {
  1751. static int test_array [1 - 2 * !(($2) < 0)];
  1752. test_array [0] = 0
  1753. ;
  1754. return 0;
  1755. }
  1756. _ACEOF
  1757. if ac_fn_cxx_try_compile "$LINENO"; then :
  1758. ac_hi=-1 ac_mid=-1
  1759. while :; do
  1760. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1761. /* end confdefs.h. */
  1762. $4
  1763. int
  1764. main ()
  1765. {
  1766. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  1767. test_array [0] = 0
  1768. ;
  1769. return 0;
  1770. }
  1771. _ACEOF
  1772. if ac_fn_cxx_try_compile "$LINENO"; then :
  1773. ac_lo=$ac_mid; break
  1774. else
  1775. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  1776. if test $ac_mid -le $ac_hi; then
  1777. ac_lo= ac_hi=
  1778. break
  1779. fi
  1780. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  1781. fi
  1782. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1783. done
  1784. else
  1785. ac_lo= ac_hi=
  1786. fi
  1787. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1788. fi
  1789. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1790. # Binary search between lo and hi bounds.
  1791. while test "x$ac_lo" != "x$ac_hi"; do
  1792. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  1793. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1794. /* end confdefs.h. */
  1795. $4
  1796. int
  1797. main ()
  1798. {
  1799. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1800. test_array [0] = 0
  1801. ;
  1802. return 0;
  1803. }
  1804. _ACEOF
  1805. if ac_fn_cxx_try_compile "$LINENO"; then :
  1806. ac_hi=$ac_mid
  1807. else
  1808. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  1809. fi
  1810. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1811. done
  1812. case $ac_lo in #((
  1813. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  1814. '') ac_retval=1 ;;
  1815. esac
  1816. else
  1817. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1818. /* end confdefs.h. */
  1819. $4
  1820. static long int longval () { return $2; }
  1821. static unsigned long int ulongval () { return $2; }
  1822. #include <stdio.h>
  1823. #include <stdlib.h>
  1824. int
  1825. main ()
  1826. {
  1827. FILE *f = fopen ("conftest.val", "w");
  1828. if (! f)
  1829. return 1;
  1830. if (($2) < 0)
  1831. {
  1832. long int i = longval ();
  1833. if (i != ($2))
  1834. return 1;
  1835. fprintf (f, "%ld", i);
  1836. }
  1837. else
  1838. {
  1839. unsigned long int i = ulongval ();
  1840. if (i != ($2))
  1841. return 1;
  1842. fprintf (f, "%lu", i);
  1843. }
  1844. /* Do not output a trailing newline, as this causes \r\n confusion
  1845. on some platforms. */
  1846. return ferror (f) || fclose (f) != 0;
  1847. ;
  1848. return 0;
  1849. }
  1850. _ACEOF
  1851. if ac_fn_cxx_try_run "$LINENO"; then :
  1852. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  1853. else
  1854. ac_retval=1
  1855. fi
  1856. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  1857. conftest.$ac_objext conftest.beam conftest.$ac_ext
  1858. rm -f conftest.val
  1859. fi
  1860. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1861. as_fn_set_status $ac_retval
  1862. } # ac_fn_cxx_compute_int
  1863. # ac_fn_cxx_check_member LINENO AGGR MEMBER VAR INCLUDES
  1864. # ------------------------------------------------------
  1865. # Tries to find if the field MEMBER exists in type AGGR, after including
  1866. # INCLUDES, setting cache variable VAR accordingly.
  1867. ac_fn_cxx_check_member ()
  1868. {
  1869. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1870. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  1871. $as_echo_n "checking for $2.$3... " >&6; }
  1872. if eval \${$4+:} false; then :
  1873. $as_echo_n "(cached) " >&6
  1874. else
  1875. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1876. /* end confdefs.h. */
  1877. $5
  1878. int
  1879. main ()
  1880. {
  1881. static $2 ac_aggr;
  1882. if (ac_aggr.$3)
  1883. return 0;
  1884. ;
  1885. return 0;
  1886. }
  1887. _ACEOF
  1888. if ac_fn_cxx_try_compile "$LINENO"; then :
  1889. eval "$4=yes"
  1890. else
  1891. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1892. /* end confdefs.h. */
  1893. $5
  1894. int
  1895. main ()
  1896. {
  1897. static $2 ac_aggr;
  1898. if (sizeof ac_aggr.$3)
  1899. return 0;
  1900. ;
  1901. return 0;
  1902. }
  1903. _ACEOF
  1904. if ac_fn_cxx_try_compile "$LINENO"; then :
  1905. eval "$4=yes"
  1906. else
  1907. eval "$4=no"
  1908. fi
  1909. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1910. fi
  1911. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1912. fi
  1913. eval ac_res=\$$4
  1914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1915. $as_echo "$ac_res" >&6; }
  1916. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1917. } # ac_fn_cxx_check_member
  1918. # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
  1919. # -----------------------------------------------
  1920. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  1921. # accordingly.
  1922. ac_fn_cxx_check_decl ()
  1923. {
  1924. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1925. as_decl_name=`echo $2|sed 's/ *(.*//'`
  1926. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  1927. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  1928. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  1929. if eval \${$3+:} false; then :
  1930. $as_echo_n "(cached) " >&6
  1931. else
  1932. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1933. /* end confdefs.h. */
  1934. $4
  1935. int
  1936. main ()
  1937. {
  1938. #ifndef $as_decl_name
  1939. #ifdef __cplusplus
  1940. (void) $as_decl_use;
  1941. #else
  1942. (void) $as_decl_name;
  1943. #endif
  1944. #endif
  1945. ;
  1946. return 0;
  1947. }
  1948. _ACEOF
  1949. if ac_fn_cxx_try_compile "$LINENO"; then :
  1950. eval "$3=yes"
  1951. else
  1952. eval "$3=no"
  1953. fi
  1954. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1955. fi
  1956. eval ac_res=\$$3
  1957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1958. $as_echo "$ac_res" >&6; }
  1959. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1960. } # ac_fn_cxx_check_decl
  1961. # ac_fn_cxx_check_func LINENO FUNC VAR
  1962. # ------------------------------------
  1963. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1964. ac_fn_cxx_check_func ()
  1965. {
  1966. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1967. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1968. $as_echo_n "checking for $2... " >&6; }
  1969. if eval \${$3+:} false; then :
  1970. $as_echo_n "(cached) " >&6
  1971. else
  1972. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1973. /* end confdefs.h. */
  1974. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1975. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1976. #define $2 innocuous_$2
  1977. /* System header to define __stub macros and hopefully few prototypes,
  1978. which can conflict with char $2 (); below.
  1979. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1980. <limits.h> exists even on freestanding compilers. */
  1981. #ifdef __STDC__
  1982. # include <limits.h>
  1983. #else
  1984. # include <assert.h>
  1985. #endif
  1986. #undef $2
  1987. /* Override any GCC internal prototype to avoid an error.
  1988. Use char because int might match the return type of a GCC
  1989. builtin and then its argument prototype would still apply. */
  1990. #ifdef __cplusplus
  1991. extern "C"
  1992. #endif
  1993. char $2 ();
  1994. /* The GNU C library defines this for functions which it implements
  1995. to always fail with ENOSYS. Some functions are actually named
  1996. something starting with __ and the normal name is an alias. */
  1997. #if defined __stub_$2 || defined __stub___$2
  1998. choke me
  1999. #endif
  2000. int
  2001. main ()
  2002. {
  2003. return $2 ();
  2004. ;
  2005. return 0;
  2006. }
  2007. _ACEOF
  2008. if ac_fn_cxx_try_link "$LINENO"; then :
  2009. eval "$3=yes"
  2010. else
  2011. eval "$3=no"
  2012. fi
  2013. rm -f core conftest.err conftest.$ac_objext \
  2014. conftest$ac_exeext conftest.$ac_ext
  2015. fi
  2016. eval ac_res=\$$3
  2017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2018. $as_echo "$ac_res" >&6; }
  2019. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2020. } # ac_fn_cxx_check_func
  2021. cat >config.log <<_ACEOF
  2022. This file contains any messages produced by compilers while
  2023. running configure, to aid debugging if configure makes a mistake.
  2024. It was created by $as_me, which was
  2025. generated by GNU Autoconf 2.68. Invocation command line was
  2026. $ $0 $@
  2027. _ACEOF
  2028. exec 5>>config.log
  2029. {
  2030. cat <<_ASUNAME
  2031. ## --------- ##
  2032. ## Platform. ##
  2033. ## --------- ##
  2034. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2035. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2036. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2037. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2038. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2039. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2040. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2041. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2042. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2043. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2044. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2045. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2046. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2047. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2048. _ASUNAME
  2049. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2050. for as_dir in $PATH
  2051. do
  2052. IFS=$as_save_IFS
  2053. test -z "$as_dir" && as_dir=.
  2054. $as_echo "PATH: $as_dir"
  2055. done
  2056. IFS=$as_save_IFS
  2057. } >&5
  2058. cat >&5 <<_ACEOF
  2059. ## ----------- ##
  2060. ## Core tests. ##
  2061. ## ----------- ##
  2062. _ACEOF
  2063. # Keep a trace of the command line.
  2064. # Strip out --no-create and --no-recursion so they do not pile up.
  2065. # Strip out --silent because we don't want to record it for future runs.
  2066. # Also quote any args containing shell meta-characters.
  2067. # Make two passes to allow for proper duplicate-argument suppression.
  2068. ac_configure_args=
  2069. ac_configure_args0=
  2070. ac_configure_args1=
  2071. ac_must_keep_next=false
  2072. for ac_pass in 1 2
  2073. do
  2074. for ac_arg
  2075. do
  2076. case $ac_arg in
  2077. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2078. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2079. | -silent | --silent | --silen | --sile | --sil)
  2080. continue ;;
  2081. *\'*)
  2082. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2083. esac
  2084. case $ac_pass in
  2085. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2086. 2)
  2087. as_fn_append ac_configure_args1 " '$ac_arg'"
  2088. if test $ac_must_keep_next = true; then
  2089. ac_must_keep_next=false # Got value, back to normal.
  2090. else
  2091. case $ac_arg in
  2092. *=* | --config-cache | -C | -disable-* | --disable-* \
  2093. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2094. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2095. | -with-* | --with-* | -without-* | --without-* | --x)
  2096. case "$ac_configure_args0 " in
  2097. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2098. esac
  2099. ;;
  2100. -* ) ac_must_keep_next=true ;;
  2101. esac
  2102. fi
  2103. as_fn_append ac_configure_args " '$ac_arg'"
  2104. ;;
  2105. esac
  2106. done
  2107. done
  2108. { ac_configure_args0=; unset ac_configure_args0;}
  2109. { ac_configure_args1=; unset ac_configure_args1;}
  2110. # When interrupted or exit'd, cleanup temporary files, and complete
  2111. # config.log. We remove comments because anyway the quotes in there
  2112. # would cause problems or look ugly.
  2113. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2114. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2115. trap 'exit_status=$?
  2116. # Save into config.log some information that might help in debugging.
  2117. {
  2118. echo
  2119. $as_echo "## ---------------- ##
  2120. ## Cache variables. ##
  2121. ## ---------------- ##"
  2122. echo
  2123. # The following way of writing the cache mishandles newlines in values,
  2124. (
  2125. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2126. eval ac_val=\$$ac_var
  2127. case $ac_val in #(
  2128. *${as_nl}*)
  2129. case $ac_var in #(
  2130. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2131. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2132. esac
  2133. case $ac_var in #(
  2134. _ | IFS | as_nl) ;; #(
  2135. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2136. *) { eval $ac_var=; unset $ac_var;} ;;
  2137. esac ;;
  2138. esac
  2139. done
  2140. (set) 2>&1 |
  2141. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2142. *${as_nl}ac_space=\ *)
  2143. sed -n \
  2144. "s/'\''/'\''\\\\'\'''\''/g;
  2145. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2146. ;; #(
  2147. *)
  2148. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2149. ;;
  2150. esac |
  2151. sort
  2152. )
  2153. echo
  2154. $as_echo "## ----------------- ##
  2155. ## Output variables. ##
  2156. ## ----------------- ##"
  2157. echo
  2158. for ac_var in $ac_subst_vars
  2159. do
  2160. eval ac_val=\$$ac_var
  2161. case $ac_val in
  2162. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2163. esac
  2164. $as_echo "$ac_var='\''$ac_val'\''"
  2165. done | sort
  2166. echo
  2167. if test -n "$ac_subst_files"; then
  2168. $as_echo "## ------------------- ##
  2169. ## File substitutions. ##
  2170. ## ------------------- ##"
  2171. echo
  2172. for ac_var in $ac_subst_files
  2173. do
  2174. eval ac_val=\$$ac_var
  2175. case $ac_val in
  2176. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2177. esac
  2178. $as_echo "$ac_var='\''$ac_val'\''"
  2179. done | sort
  2180. echo
  2181. fi
  2182. if test -s confdefs.h; then
  2183. $as_echo "## ----------- ##
  2184. ## confdefs.h. ##
  2185. ## ----------- ##"
  2186. echo
  2187. cat confdefs.h
  2188. echo
  2189. fi
  2190. test "$ac_signal" != 0 &&
  2191. $as_echo "$as_me: caught signal $ac_signal"
  2192. $as_echo "$as_me: exit $exit_status"
  2193. } >&5
  2194. rm -f core *.core core.conftest.* &&
  2195. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2196. exit $exit_status
  2197. ' 0
  2198. for ac_signal in 1 2 13 15; do
  2199. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2200. done
  2201. ac_signal=0
  2202. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2203. rm -f -r conftest* confdefs.h
  2204. $as_echo "/* confdefs.h */" > confdefs.h
  2205. # Predefined preprocessor variables.
  2206. cat >>confdefs.h <<_ACEOF
  2207. #define PACKAGE_NAME "$PACKAGE_NAME"
  2208. _ACEOF
  2209. cat >>confdefs.h <<_ACEOF
  2210. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2211. _ACEOF
  2212. cat >>confdefs.h <<_ACEOF
  2213. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2214. _ACEOF
  2215. cat >>confdefs.h <<_ACEOF
  2216. #define PACKAGE_STRING "$PACKAGE_STRING"
  2217. _ACEOF
  2218. cat >>confdefs.h <<_ACEOF
  2219. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2220. _ACEOF
  2221. cat >>confdefs.h <<_ACEOF
  2222. #define PACKAGE_URL "$PACKAGE_URL"
  2223. _ACEOF
  2224. # Let the site file select an alternate cache file if it wants to.
  2225. # Prefer an explicitly selected file to automatically selected ones.
  2226. ac_site_file1=NONE
  2227. ac_site_file2=NONE
  2228. if test -n "$CONFIG_SITE"; then
  2229. # We do not want a PATH search for config.site.
  2230. case $CONFIG_SITE in #((
  2231. -*) ac_site_file1=./$CONFIG_SITE;;
  2232. */*) ac_site_file1=$CONFIG_SITE;;
  2233. *) ac_site_file1=./$CONFIG_SITE;;
  2234. esac
  2235. elif test "x$prefix" != xNONE; then
  2236. ac_site_file1=$prefix/share/config.site
  2237. ac_site_file2=$prefix/etc/config.site
  2238. else
  2239. ac_site_file1=$ac_default_prefix/share/config.site
  2240. ac_site_file2=$ac_default_prefix/etc/config.site
  2241. fi
  2242. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2243. do
  2244. test "x$ac_site_file" = xNONE && continue
  2245. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2246. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2247. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2248. sed 's/^/| /' "$ac_site_file" >&5
  2249. . "$ac_site_file" \
  2250. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2251. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2252. as_fn_error $? "failed to load site script $ac_site_file
  2253. See \`config.log' for more details" "$LINENO" 5; }
  2254. fi
  2255. done
  2256. if test -r "$cache_file"; then
  2257. # Some versions of bash will fail to source /dev/null (special files
  2258. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2259. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2260. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2261. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2262. case $cache_file in
  2263. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2264. *) . "./$cache_file";;
  2265. esac
  2266. fi
  2267. else
  2268. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2269. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2270. >$cache_file
  2271. fi
  2272. as_fn_append ac_header_list " sys/time.h"
  2273. as_fn_append ac_header_list " unistd.h"
  2274. as_fn_append ac_func_list " alarm"
  2275. as_fn_append ac_header_list " stdlib.h"
  2276. as_fn_append ac_header_list " sys/param.h"
  2277. # Check that the precious variables saved in the cache have kept the same
  2278. # value.
  2279. ac_cache_corrupted=false
  2280. for ac_var in $ac_precious_vars; do
  2281. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2282. eval ac_new_set=\$ac_env_${ac_var}_set
  2283. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2284. eval ac_new_val=\$ac_env_${ac_var}_value
  2285. case $ac_old_set,$ac_new_set in
  2286. set,)
  2287. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2288. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2289. ac_cache_corrupted=: ;;
  2290. ,set)
  2291. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2292. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2293. ac_cache_corrupted=: ;;
  2294. ,);;
  2295. *)
  2296. if test "x$ac_old_val" != "x$ac_new_val"; then
  2297. # differences in whitespace do not lead to failure.
  2298. ac_old_val_w=`echo x $ac_old_val`
  2299. ac_new_val_w=`echo x $ac_new_val`
  2300. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2301. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2302. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2303. ac_cache_corrupted=:
  2304. else
  2305. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2306. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2307. eval $ac_var=\$ac_old_val
  2308. fi
  2309. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2310. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2311. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2312. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2313. fi;;
  2314. esac
  2315. # Pass precious variables to config.status.
  2316. if test "$ac_new_set" = set; then
  2317. case $ac_new_val in
  2318. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2319. *) ac_arg=$ac_var=$ac_new_val ;;
  2320. esac
  2321. case " $ac_configure_args " in
  2322. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2323. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2324. esac
  2325. fi
  2326. done
  2327. if $ac_cache_corrupted; then
  2328. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2329. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2330. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2331. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2332. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2333. fi
  2334. ## -------------------- ##
  2335. ## Main body of script. ##
  2336. ## -------------------- ##
  2337. ac_ext=c
  2338. ac_cpp='$CPP $CPPFLAGS'
  2339. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2340. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2341. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2342. ac_config_headers="$ac_config_headers config.h"
  2343. # Remove --cache-file and --srcdir arguments so they do not pile up.
  2344. egg_ac_parameters=
  2345. ac_prev=
  2346. for ac_arg in $ac_configure_args; do
  2347. if test -n "$ac_prev"; then
  2348. ac_prev=
  2349. continue
  2350. fi
  2351. case $ac_arg in
  2352. -cache-file | --cache-file | --cache-fil | --cache-fi \
  2353. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  2354. ac_prev=cache_file ;;
  2355. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  2356. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
  2357. | --c=*)
  2358. ;;
  2359. --config-cache | -C)
  2360. ;;
  2361. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  2362. ac_prev=srcdir ;;
  2363. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  2364. ;;
  2365. *) egg_ac_parameters="$egg_ac_parameters $ac_arg" ;;
  2366. esac
  2367. done
  2368. # Setup build environment
  2369. #AC_REQUIRE_CPP
  2370. ac_ext=cpp
  2371. ac_cpp='$CXXCPP $CPPFLAGS'
  2372. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2373. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2374. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2375. ac_ext=cpp
  2376. ac_cpp='$CXXCPP $CPPFLAGS'
  2377. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2378. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2379. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2380. if test -z "$CXX"; then
  2381. if test -n "$CCC"; then
  2382. CXX=$CCC
  2383. else
  2384. if test -n "$ac_tool_prefix"; then
  2385. for ac_prog in g++45 g++-4.5 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
  2386. do
  2387. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2388. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2389. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2390. $as_echo_n "checking for $ac_word... " >&6; }
  2391. if ${ac_cv_prog_CXX+:} false; then :
  2392. $as_echo_n "(cached) " >&6
  2393. else
  2394. if test -n "$CXX"; then
  2395. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2396. else
  2397. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2398. for as_dir in $PATH
  2399. do
  2400. IFS=$as_save_IFS
  2401. test -z "$as_dir" && as_dir=.
  2402. for ac_exec_ext in '' $ac_executable_extensions; do
  2403. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2404. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  2405. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2406. break 2
  2407. fi
  2408. done
  2409. done
  2410. IFS=$as_save_IFS
  2411. fi
  2412. fi
  2413. CXX=$ac_cv_prog_CXX
  2414. if test -n "$CXX"; then
  2415. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  2416. $as_echo "$CXX" >&6; }
  2417. else
  2418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2419. $as_echo "no" >&6; }
  2420. fi
  2421. test -n "$CXX" && break
  2422. done
  2423. fi
  2424. if test -z "$CXX"; then
  2425. ac_ct_CXX=$CXX
  2426. for ac_prog in g++45 g++-4.5 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
  2427. do
  2428. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2429. set dummy $ac_prog; ac_word=$2
  2430. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2431. $as_echo_n "checking for $ac_word... " >&6; }
  2432. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  2433. $as_echo_n "(cached) " >&6
  2434. else
  2435. if test -n "$ac_ct_CXX"; then
  2436. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  2437. else
  2438. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2439. for as_dir in $PATH
  2440. do
  2441. IFS=$as_save_IFS
  2442. test -z "$as_dir" && as_dir=.
  2443. for ac_exec_ext in '' $ac_executable_extensions; do
  2444. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2445. ac_cv_prog_ac_ct_CXX="$ac_prog"
  2446. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2447. break 2
  2448. fi
  2449. done
  2450. done
  2451. IFS=$as_save_IFS
  2452. fi
  2453. fi
  2454. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  2455. if test -n "$ac_ct_CXX"; then
  2456. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  2457. $as_echo "$ac_ct_CXX" >&6; }
  2458. else
  2459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2460. $as_echo "no" >&6; }
  2461. fi
  2462. test -n "$ac_ct_CXX" && break
  2463. done
  2464. if test "x$ac_ct_CXX" = x; then
  2465. CXX="g++"
  2466. else
  2467. case $cross_compiling:$ac_tool_warned in
  2468. yes:)
  2469. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2470. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2471. ac_tool_warned=yes ;;
  2472. esac
  2473. CXX=$ac_ct_CXX
  2474. fi
  2475. fi
  2476. fi
  2477. fi
  2478. # Provide some information about the compiler.
  2479. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  2480. set X $ac_compile
  2481. ac_compiler=$2
  2482. for ac_option in --version -v -V -qversion; do
  2483. { { ac_try="$ac_compiler $ac_option >&5"
  2484. case "(($ac_try" in
  2485. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2486. *) ac_try_echo=$ac_try;;
  2487. esac
  2488. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2489. $as_echo "$ac_try_echo"; } >&5
  2490. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2491. ac_status=$?
  2492. if test -s conftest.err; then
  2493. sed '10a\
  2494. ... rest of stderr output deleted ...
  2495. 10q' conftest.err >conftest.er1
  2496. cat conftest.er1 >&5
  2497. fi
  2498. rm -f conftest.er1 conftest.err
  2499. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2500. test $ac_status = 0; }
  2501. done
  2502. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2503. /* end confdefs.h. */
  2504. int
  2505. main ()
  2506. {
  2507. ;
  2508. return 0;
  2509. }
  2510. _ACEOF
  2511. ac_clean_files_save=$ac_clean_files
  2512. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2513. # Try to create an executable without -o first, disregard a.out.
  2514. # It will help us diagnose broken compilers, and finding out an intuition
  2515. # of exeext.
  2516. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
  2517. $as_echo_n "checking whether the C++ compiler works... " >&6; }
  2518. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2519. # The possible output files:
  2520. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2521. ac_rmfiles=
  2522. for ac_file in $ac_files
  2523. do
  2524. case $ac_file in
  2525. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2526. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2527. esac
  2528. done
  2529. rm -f $ac_rmfiles
  2530. if { { ac_try="$ac_link_default"
  2531. case "(($ac_try" in
  2532. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2533. *) ac_try_echo=$ac_try;;
  2534. esac
  2535. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2536. $as_echo "$ac_try_echo"; } >&5
  2537. (eval "$ac_link_default") 2>&5
  2538. ac_status=$?
  2539. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2540. test $ac_status = 0; }; then :
  2541. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2542. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2543. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2544. # so that the user can short-circuit this test for compilers unknown to
  2545. # Autoconf.
  2546. for ac_file in $ac_files ''
  2547. do
  2548. test -f "$ac_file" || continue
  2549. case $ac_file in
  2550. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2551. ;;
  2552. [ab].out )
  2553. # We found the default executable, but exeext='' is most
  2554. # certainly right.
  2555. break;;
  2556. *.* )
  2557. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2558. then :; else
  2559. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2560. fi
  2561. # We set ac_cv_exeext here because the later test for it is not
  2562. # safe: cross compilers may not add the suffix if given an `-o'
  2563. # argument, so we may need to know it at that point already.
  2564. # Even if this section looks crufty: it has the advantage of
  2565. # actually working.
  2566. break;;
  2567. * )
  2568. break;;
  2569. esac
  2570. done
  2571. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2572. else
  2573. ac_file=''
  2574. fi
  2575. if test -z "$ac_file"; then :
  2576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2577. $as_echo "no" >&6; }
  2578. $as_echo "$as_me: failed program was:" >&5
  2579. sed 's/^/| /' conftest.$ac_ext >&5
  2580. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2581. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2582. as_fn_error 77 "C++ compiler cannot create executables
  2583. See \`config.log' for more details" "$LINENO" 5; }
  2584. else
  2585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2586. $as_echo "yes" >&6; }
  2587. fi
  2588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
  2589. $as_echo_n "checking for C++ compiler default output file name... " >&6; }
  2590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2591. $as_echo "$ac_file" >&6; }
  2592. ac_exeext=$ac_cv_exeext
  2593. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2594. ac_clean_files=$ac_clean_files_save
  2595. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2596. $as_echo_n "checking for suffix of executables... " >&6; }
  2597. if { { ac_try="$ac_link"
  2598. case "(($ac_try" in
  2599. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2600. *) ac_try_echo=$ac_try;;
  2601. esac
  2602. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2603. $as_echo "$ac_try_echo"; } >&5
  2604. (eval "$ac_link") 2>&5
  2605. ac_status=$?
  2606. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2607. test $ac_status = 0; }; then :
  2608. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2609. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2610. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2611. # `rm'.
  2612. for ac_file in conftest.exe conftest conftest.*; do
  2613. test -f "$ac_file" || continue
  2614. case $ac_file in
  2615. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2616. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2617. break;;
  2618. * ) break;;
  2619. esac
  2620. done
  2621. else
  2622. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2623. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2624. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2625. See \`config.log' for more details" "$LINENO" 5; }
  2626. fi
  2627. rm -f conftest conftest$ac_cv_exeext
  2628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2629. $as_echo "$ac_cv_exeext" >&6; }
  2630. rm -f conftest.$ac_ext
  2631. EXEEXT=$ac_cv_exeext
  2632. ac_exeext=$EXEEXT
  2633. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2634. /* end confdefs.h. */
  2635. #include <stdio.h>
  2636. int
  2637. main ()
  2638. {
  2639. FILE *f = fopen ("conftest.out", "w");
  2640. return ferror (f) || fclose (f) != 0;
  2641. ;
  2642. return 0;
  2643. }
  2644. _ACEOF
  2645. ac_clean_files="$ac_clean_files conftest.out"
  2646. # Check that the compiler produces executables we can run. If not, either
  2647. # the compiler is broken, or we cross compile.
  2648. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2649. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2650. if test "$cross_compiling" != yes; then
  2651. { { ac_try="$ac_link"
  2652. case "(($ac_try" in
  2653. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2654. *) ac_try_echo=$ac_try;;
  2655. esac
  2656. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2657. $as_echo "$ac_try_echo"; } >&5
  2658. (eval "$ac_link") 2>&5
  2659. ac_status=$?
  2660. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2661. test $ac_status = 0; }
  2662. if { ac_try='./conftest$ac_cv_exeext'
  2663. { { case "(($ac_try" in
  2664. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2665. *) ac_try_echo=$ac_try;;
  2666. esac
  2667. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2668. $as_echo "$ac_try_echo"; } >&5
  2669. (eval "$ac_try") 2>&5
  2670. ac_status=$?
  2671. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2672. test $ac_status = 0; }; }; then
  2673. cross_compiling=no
  2674. else
  2675. if test "$cross_compiling" = maybe; then
  2676. cross_compiling=yes
  2677. else
  2678. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2679. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2680. as_fn_error $? "cannot run C++ compiled programs.
  2681. If you meant to cross compile, use \`--host'.
  2682. See \`config.log' for more details" "$LINENO" 5; }
  2683. fi
  2684. fi
  2685. fi
  2686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2687. $as_echo "$cross_compiling" >&6; }
  2688. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2689. ac_clean_files=$ac_clean_files_save
  2690. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2691. $as_echo_n "checking for suffix of object files... " >&6; }
  2692. if ${ac_cv_objext+:} false; then :
  2693. $as_echo_n "(cached) " >&6
  2694. else
  2695. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2696. /* end confdefs.h. */
  2697. int
  2698. main ()
  2699. {
  2700. ;
  2701. return 0;
  2702. }
  2703. _ACEOF
  2704. rm -f conftest.o conftest.obj
  2705. if { { ac_try="$ac_compile"
  2706. case "(($ac_try" in
  2707. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2708. *) ac_try_echo=$ac_try;;
  2709. esac
  2710. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2711. $as_echo "$ac_try_echo"; } >&5
  2712. (eval "$ac_compile") 2>&5
  2713. ac_status=$?
  2714. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2715. test $ac_status = 0; }; then :
  2716. for ac_file in conftest.o conftest.obj conftest.*; do
  2717. test -f "$ac_file" || continue;
  2718. case $ac_file in
  2719. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2720. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2721. break;;
  2722. esac
  2723. done
  2724. else
  2725. $as_echo "$as_me: failed program was:" >&5
  2726. sed 's/^/| /' conftest.$ac_ext >&5
  2727. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2728. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2729. as_fn_error $? "cannot compute suffix of object files: cannot compile
  2730. See \`config.log' for more details" "$LINENO" 5; }
  2731. fi
  2732. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2733. fi
  2734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2735. $as_echo "$ac_cv_objext" >&6; }
  2736. OBJEXT=$ac_cv_objext
  2737. ac_objext=$OBJEXT
  2738. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  2739. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  2740. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  2741. $as_echo_n "(cached) " >&6
  2742. else
  2743. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2744. /* end confdefs.h. */
  2745. int
  2746. main ()
  2747. {
  2748. #ifndef __GNUC__
  2749. choke me
  2750. #endif
  2751. ;
  2752. return 0;
  2753. }
  2754. _ACEOF
  2755. if ac_fn_cxx_try_compile "$LINENO"; then :
  2756. ac_compiler_gnu=yes
  2757. else
  2758. ac_compiler_gnu=no
  2759. fi
  2760. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2761. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  2762. fi
  2763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  2764. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  2765. if test $ac_compiler_gnu = yes; then
  2766. GXX=yes
  2767. else
  2768. GXX=
  2769. fi
  2770. ac_test_CXXFLAGS=${CXXFLAGS+set}
  2771. ac_save_CXXFLAGS=$CXXFLAGS
  2772. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  2773. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  2774. if ${ac_cv_prog_cxx_g+:} false; then :
  2775. $as_echo_n "(cached) " >&6
  2776. else
  2777. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  2778. ac_cxx_werror_flag=yes
  2779. ac_cv_prog_cxx_g=no
  2780. CXXFLAGS="-g"
  2781. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2782. /* end confdefs.h. */
  2783. int
  2784. main ()
  2785. {
  2786. ;
  2787. return 0;
  2788. }
  2789. _ACEOF
  2790. if ac_fn_cxx_try_compile "$LINENO"; then :
  2791. ac_cv_prog_cxx_g=yes
  2792. else
  2793. CXXFLAGS=""
  2794. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2795. /* end confdefs.h. */
  2796. int
  2797. main ()
  2798. {
  2799. ;
  2800. return 0;
  2801. }
  2802. _ACEOF
  2803. if ac_fn_cxx_try_compile "$LINENO"; then :
  2804. else
  2805. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2806. CXXFLAGS="-g"
  2807. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2808. /* end confdefs.h. */
  2809. int
  2810. main ()
  2811. {
  2812. ;
  2813. return 0;
  2814. }
  2815. _ACEOF
  2816. if ac_fn_cxx_try_compile "$LINENO"; then :
  2817. ac_cv_prog_cxx_g=yes
  2818. fi
  2819. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2820. fi
  2821. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2822. fi
  2823. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2824. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2825. fi
  2826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  2827. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  2828. if test "$ac_test_CXXFLAGS" = set; then
  2829. CXXFLAGS=$ac_save_CXXFLAGS
  2830. elif test $ac_cv_prog_cxx_g = yes; then
  2831. if test "$GXX" = yes; then
  2832. CXXFLAGS="-g -O2"
  2833. else
  2834. CXXFLAGS="-g"
  2835. fi
  2836. else
  2837. if test "$GXX" = yes; then
  2838. CXXFLAGS="-O2"
  2839. else
  2840. CXXFLAGS=
  2841. fi
  2842. fi
  2843. ac_ext=cpp
  2844. ac_cpp='$CXXCPP $CPPFLAGS'
  2845. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2846. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2847. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2848. if test "${cross_compiling-x}" = "x"
  2849. then
  2850. cat << 'EOF' >&2
  2851. configure: error:
  2852. This system does not appear to have a working C compiler.
  2853. A working C compiler is required to compile Eggdrop.
  2854. EOF
  2855. exit 1
  2856. fi
  2857. if test -n "$GXX"; then
  2858. CXXFLAGS="$CXXFLAGS"
  2859. fi
  2860. # Crazy machines
  2861. ac_ext=cpp
  2862. ac_cpp='$CXXCPP $CPPFLAGS'
  2863. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2864. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2865. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2866. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  2867. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  2868. if test -z "$CXXCPP"; then
  2869. if ${ac_cv_prog_CXXCPP+:} false; then :
  2870. $as_echo_n "(cached) " >&6
  2871. else
  2872. # Double quotes because CXXCPP needs to be expanded
  2873. for CXXCPP in "$CXX -E" "/lib/cpp"
  2874. do
  2875. ac_preproc_ok=false
  2876. for ac_cxx_preproc_warn_flag in '' yes
  2877. do
  2878. # Use a header file that comes with gcc, so configuring glibc
  2879. # with a fresh cross-compiler works.
  2880. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2881. # <limits.h> exists even on freestanding compilers.
  2882. # On the NeXT, cc -E runs the code through the compiler's parser,
  2883. # not just through cpp. "Syntax error" is here to catch this case.
  2884. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2885. /* end confdefs.h. */
  2886. #ifdef __STDC__
  2887. # include <limits.h>
  2888. #else
  2889. # include <assert.h>
  2890. #endif
  2891. Syntax error
  2892. _ACEOF
  2893. if ac_fn_cxx_try_cpp "$LINENO"; then :
  2894. else
  2895. # Broken: fails on valid input.
  2896. continue
  2897. fi
  2898. rm -f conftest.err conftest.i conftest.$ac_ext
  2899. # OK, works on sane cases. Now check whether nonexistent headers
  2900. # can be detected and how.
  2901. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2902. /* end confdefs.h. */
  2903. #include <ac_nonexistent.h>
  2904. _ACEOF
  2905. if ac_fn_cxx_try_cpp "$LINENO"; then :
  2906. # Broken: success on invalid input.
  2907. continue
  2908. else
  2909. # Passes both tests.
  2910. ac_preproc_ok=:
  2911. break
  2912. fi
  2913. rm -f conftest.err conftest.i conftest.$ac_ext
  2914. done
  2915. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2916. rm -f conftest.i conftest.err conftest.$ac_ext
  2917. if $ac_preproc_ok; then :
  2918. break
  2919. fi
  2920. done
  2921. ac_cv_prog_CXXCPP=$CXXCPP
  2922. fi
  2923. CXXCPP=$ac_cv_prog_CXXCPP
  2924. else
  2925. ac_cv_prog_CXXCPP=$CXXCPP
  2926. fi
  2927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  2928. $as_echo "$CXXCPP" >&6; }
  2929. ac_preproc_ok=false
  2930. for ac_cxx_preproc_warn_flag in '' yes
  2931. do
  2932. # Use a header file that comes with gcc, so configuring glibc
  2933. # with a fresh cross-compiler works.
  2934. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2935. # <limits.h> exists even on freestanding compilers.
  2936. # On the NeXT, cc -E runs the code through the compiler's parser,
  2937. # not just through cpp. "Syntax error" is here to catch this case.
  2938. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2939. /* end confdefs.h. */
  2940. #ifdef __STDC__
  2941. # include <limits.h>
  2942. #else
  2943. # include <assert.h>
  2944. #endif
  2945. Syntax error
  2946. _ACEOF
  2947. if ac_fn_cxx_try_cpp "$LINENO"; then :
  2948. else
  2949. # Broken: fails on valid input.
  2950. continue
  2951. fi
  2952. rm -f conftest.err conftest.i conftest.$ac_ext
  2953. # OK, works on sane cases. Now check whether nonexistent headers
  2954. # can be detected and how.
  2955. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2956. /* end confdefs.h. */
  2957. #include <ac_nonexistent.h>
  2958. _ACEOF
  2959. if ac_fn_cxx_try_cpp "$LINENO"; then :
  2960. # Broken: success on invalid input.
  2961. continue
  2962. else
  2963. # Passes both tests.
  2964. ac_preproc_ok=:
  2965. break
  2966. fi
  2967. rm -f conftest.err conftest.i conftest.$ac_ext
  2968. done
  2969. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2970. rm -f conftest.i conftest.err conftest.$ac_ext
  2971. if $ac_preproc_ok; then :
  2972. else
  2973. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2974. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2975. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  2976. See \`config.log' for more details" "$LINENO" 5; }
  2977. fi
  2978. ac_ext=cpp
  2979. ac_cpp='$CXXCPP $CPPFLAGS'
  2980. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2981. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2982. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2983. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  2984. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  2985. if ${ac_cv_path_GREP+:} false; then :
  2986. $as_echo_n "(cached) " >&6
  2987. else
  2988. if test -z "$GREP"; then
  2989. ac_path_GREP_found=false
  2990. # Loop through the user's path and test for each of PROGNAME-LIST
  2991. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2992. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  2993. do
  2994. IFS=$as_save_IFS
  2995. test -z "$as_dir" && as_dir=.
  2996. for ac_prog in grep ggrep; do
  2997. for ac_exec_ext in '' $ac_executable_extensions; do
  2998. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  2999. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3000. # Check for GNU ac_path_GREP and select it if it is found.
  3001. # Check for GNU $ac_path_GREP
  3002. case `"$ac_path_GREP" --version 2>&1` in
  3003. *GNU*)
  3004. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3005. *)
  3006. ac_count=0
  3007. $as_echo_n 0123456789 >"conftest.in"
  3008. while :
  3009. do
  3010. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3011. mv "conftest.tmp" "conftest.in"
  3012. cp "conftest.in" "conftest.nl"
  3013. $as_echo 'GREP' >> "conftest.nl"
  3014. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3015. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3016. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3017. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3018. # Best one so far, save it but keep looking for a better one
  3019. ac_cv_path_GREP="$ac_path_GREP"
  3020. ac_path_GREP_max=$ac_count
  3021. fi
  3022. # 10*(2^10) chars as input seems more than enough
  3023. test $ac_count -gt 10 && break
  3024. done
  3025. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3026. esac
  3027. $ac_path_GREP_found && break 3
  3028. done
  3029. done
  3030. done
  3031. IFS=$as_save_IFS
  3032. if test -z "$ac_cv_path_GREP"; then
  3033. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3034. fi
  3035. else
  3036. ac_cv_path_GREP=$GREP
  3037. fi
  3038. fi
  3039. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3040. $as_echo "$ac_cv_path_GREP" >&6; }
  3041. GREP="$ac_cv_path_GREP"
  3042. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3043. $as_echo_n "checking for egrep... " >&6; }
  3044. if ${ac_cv_path_EGREP+:} false; then :
  3045. $as_echo_n "(cached) " >&6
  3046. else
  3047. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3048. then ac_cv_path_EGREP="$GREP -E"
  3049. else
  3050. if test -z "$EGREP"; then
  3051. ac_path_EGREP_found=false
  3052. # Loop through the user's path and test for each of PROGNAME-LIST
  3053. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3054. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3055. do
  3056. IFS=$as_save_IFS
  3057. test -z "$as_dir" && as_dir=.
  3058. for ac_prog in egrep; do
  3059. for ac_exec_ext in '' $ac_executable_extensions; do
  3060. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3061. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  3062. # Check for GNU ac_path_EGREP and select it if it is found.
  3063. # Check for GNU $ac_path_EGREP
  3064. case `"$ac_path_EGREP" --version 2>&1` in
  3065. *GNU*)
  3066. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3067. *)
  3068. ac_count=0
  3069. $as_echo_n 0123456789 >"conftest.in"
  3070. while :
  3071. do
  3072. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3073. mv "conftest.tmp" "conftest.in"
  3074. cp "conftest.in" "conftest.nl"
  3075. $as_echo 'EGREP' >> "conftest.nl"
  3076. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3077. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3078. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3079. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3080. # Best one so far, save it but keep looking for a better one
  3081. ac_cv_path_EGREP="$ac_path_EGREP"
  3082. ac_path_EGREP_max=$ac_count
  3083. fi
  3084. # 10*(2^10) chars as input seems more than enough
  3085. test $ac_count -gt 10 && break
  3086. done
  3087. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3088. esac
  3089. $ac_path_EGREP_found && break 3
  3090. done
  3091. done
  3092. done
  3093. IFS=$as_save_IFS
  3094. if test -z "$ac_cv_path_EGREP"; then
  3095. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3096. fi
  3097. else
  3098. ac_cv_path_EGREP=$EGREP
  3099. fi
  3100. fi
  3101. fi
  3102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3103. $as_echo "$ac_cv_path_EGREP" >&6; }
  3104. EGREP="$ac_cv_path_EGREP"
  3105. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  3106. $as_echo_n "checking for ANSI C header files... " >&6; }
  3107. if ${ac_cv_header_stdc+:} false; then :
  3108. $as_echo_n "(cached) " >&6
  3109. else
  3110. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3111. /* end confdefs.h. */
  3112. #include <stdlib.h>
  3113. #include <stdarg.h>
  3114. #include <string.h>
  3115. #include <float.h>
  3116. int
  3117. main ()
  3118. {
  3119. ;
  3120. return 0;
  3121. }
  3122. _ACEOF
  3123. if ac_fn_cxx_try_compile "$LINENO"; then :
  3124. ac_cv_header_stdc=yes
  3125. else
  3126. ac_cv_header_stdc=no
  3127. fi
  3128. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3129. if test $ac_cv_header_stdc = yes; then
  3130. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3131. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3132. /* end confdefs.h. */
  3133. #include <string.h>
  3134. _ACEOF
  3135. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3136. $EGREP "memchr" >/dev/null 2>&1; then :
  3137. else
  3138. ac_cv_header_stdc=no
  3139. fi
  3140. rm -f conftest*
  3141. fi
  3142. if test $ac_cv_header_stdc = yes; then
  3143. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3144. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3145. /* end confdefs.h. */
  3146. #include <stdlib.h>
  3147. _ACEOF
  3148. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3149. $EGREP "free" >/dev/null 2>&1; then :
  3150. else
  3151. ac_cv_header_stdc=no
  3152. fi
  3153. rm -f conftest*
  3154. fi
  3155. if test $ac_cv_header_stdc = yes; then
  3156. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3157. if test "$cross_compiling" = yes; then :
  3158. :
  3159. else
  3160. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3161. /* end confdefs.h. */
  3162. #include <ctype.h>
  3163. #include <stdlib.h>
  3164. #if ((' ' & 0x0FF) == 0x020)
  3165. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3166. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3167. #else
  3168. # define ISLOWER(c) \
  3169. (('a' <= (c) && (c) <= 'i') \
  3170. || ('j' <= (c) && (c) <= 'r') \
  3171. || ('s' <= (c) && (c) <= 'z'))
  3172. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3173. #endif
  3174. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3175. int
  3176. main ()
  3177. {
  3178. int i;
  3179. for (i = 0; i < 256; i++)
  3180. if (XOR (islower (i), ISLOWER (i))
  3181. || toupper (i) != TOUPPER (i))
  3182. return 2;
  3183. return 0;
  3184. }
  3185. _ACEOF
  3186. if ac_fn_cxx_try_run "$LINENO"; then :
  3187. else
  3188. ac_cv_header_stdc=no
  3189. fi
  3190. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3191. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3192. fi
  3193. fi
  3194. fi
  3195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  3196. $as_echo "$ac_cv_header_stdc" >&6; }
  3197. if test $ac_cv_header_stdc = yes; then
  3198. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  3199. fi
  3200. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3201. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3202. inttypes.h stdint.h unistd.h
  3203. do :
  3204. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3205. ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  3206. "
  3207. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  3208. cat >>confdefs.h <<_ACEOF
  3209. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3210. _ACEOF
  3211. fi
  3212. done
  3213. ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  3214. if test "x$ac_cv_header_minix_config_h" = xyes; then :
  3215. MINIX=yes
  3216. else
  3217. MINIX=
  3218. fi
  3219. if test "$MINIX" = yes; then
  3220. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  3221. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  3222. $as_echo "#define _MINIX 1" >>confdefs.h
  3223. fi
  3224. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  3225. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  3226. if ${ac_cv_safe_to_define___extensions__+:} false; then :
  3227. $as_echo_n "(cached) " >&6
  3228. else
  3229. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3230. /* end confdefs.h. */
  3231. # define __EXTENSIONS__ 1
  3232. $ac_includes_default
  3233. int
  3234. main ()
  3235. {
  3236. ;
  3237. return 0;
  3238. }
  3239. _ACEOF
  3240. if ac_fn_cxx_try_compile "$LINENO"; then :
  3241. ac_cv_safe_to_define___extensions__=yes
  3242. else
  3243. ac_cv_safe_to_define___extensions__=no
  3244. fi
  3245. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3246. fi
  3247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  3248. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  3249. test $ac_cv_safe_to_define___extensions__ = yes &&
  3250. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  3251. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  3252. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  3253. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  3254. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  3255. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
  3256. $as_echo_n "checking for library containing strerror... " >&6; }
  3257. if ${ac_cv_search_strerror+:} false; then :
  3258. $as_echo_n "(cached) " >&6
  3259. else
  3260. ac_func_search_save_LIBS=$LIBS
  3261. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3262. /* end confdefs.h. */
  3263. /* Override any GCC internal prototype to avoid an error.
  3264. Use char because int might match the return type of a GCC
  3265. builtin and then its argument prototype would still apply. */
  3266. #ifdef __cplusplus
  3267. extern "C"
  3268. #endif
  3269. char strerror ();
  3270. int
  3271. main ()
  3272. {
  3273. return strerror ();
  3274. ;
  3275. return 0;
  3276. }
  3277. _ACEOF
  3278. for ac_lib in '' cposix; do
  3279. if test -z "$ac_lib"; then
  3280. ac_res="none required"
  3281. else
  3282. ac_res=-l$ac_lib
  3283. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  3284. fi
  3285. if ac_fn_cxx_try_link "$LINENO"; then :
  3286. ac_cv_search_strerror=$ac_res
  3287. fi
  3288. rm -f core conftest.err conftest.$ac_objext \
  3289. conftest$ac_exeext
  3290. if ${ac_cv_search_strerror+:} false; then :
  3291. break
  3292. fi
  3293. done
  3294. if ${ac_cv_search_strerror+:} false; then :
  3295. else
  3296. ac_cv_search_strerror=no
  3297. fi
  3298. rm conftest.$ac_ext
  3299. LIBS=$ac_func_search_save_LIBS
  3300. fi
  3301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
  3302. $as_echo "$ac_cv_search_strerror" >&6; }
  3303. ac_res=$ac_cv_search_strerror
  3304. if test "$ac_res" != no; then :
  3305. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  3306. fi
  3307. #checkpoint
  3308. cat >confcache <<\_ACEOF
  3309. # This file is a shell script that caches the results of configure
  3310. # tests run on this system so they can be shared between configure
  3311. # scripts and configure runs, see configure's option --config-cache.
  3312. # It is not useful on other systems. If it contains results you don't
  3313. # want to keep, you may remove or edit it.
  3314. #
  3315. # config.status only pays attention to the cache file if you give it
  3316. # the --recheck option to rerun configure.
  3317. #
  3318. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  3319. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  3320. # following values.
  3321. _ACEOF
  3322. # The following way of writing the cache mishandles newlines in values,
  3323. # but we know of no workaround that is simple, portable, and efficient.
  3324. # So, we kill variables containing newlines.
  3325. # Ultrix sh set writes to stderr and can't be redirected directly,
  3326. # and sets the high bit in the cache file unless we assign to the vars.
  3327. (
  3328. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  3329. eval ac_val=\$$ac_var
  3330. case $ac_val in #(
  3331. *${as_nl}*)
  3332. case $ac_var in #(
  3333. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  3334. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  3335. esac
  3336. case $ac_var in #(
  3337. _ | IFS | as_nl) ;; #(
  3338. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  3339. *) { eval $ac_var=; unset $ac_var;} ;;
  3340. esac ;;
  3341. esac
  3342. done
  3343. (set) 2>&1 |
  3344. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  3345. *${as_nl}ac_space=\ *)
  3346. # `set' does not quote correctly, so add quotes: double-quote
  3347. # substitution turns \\\\ into \\, and sed turns \\ into \.
  3348. sed -n \
  3349. "s/'/'\\\\''/g;
  3350. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  3351. ;; #(
  3352. *)
  3353. # `set' quotes correctly as required by POSIX, so do not add quotes.
  3354. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  3355. ;;
  3356. esac |
  3357. sort
  3358. ) |
  3359. sed '
  3360. /^ac_cv_env_/b end
  3361. t clear
  3362. :clear
  3363. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  3364. t end
  3365. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  3366. :end' >>confcache
  3367. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  3368. if test -w "$cache_file"; then
  3369. if test "x$cache_file" != "x/dev/null"; then
  3370. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  3371. $as_echo "$as_me: updating cache $cache_file" >&6;}
  3372. if test ! -f "$cache_file" || test -h "$cache_file"; then
  3373. cat confcache >"$cache_file"
  3374. else
  3375. case $cache_file in #(
  3376. */* | ?:*)
  3377. mv -f confcache "$cache_file"$$ &&
  3378. mv -f "$cache_file"$$ "$cache_file" ;; #(
  3379. *)
  3380. mv -f confcache "$cache_file" ;;
  3381. esac
  3382. fi
  3383. fi
  3384. else
  3385. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  3386. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  3387. fi
  3388. fi
  3389. rm -f confcache
  3390. # Speedup compile
  3391. if test -n "$GXX" && test -z "$no_wall"; then
  3392. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -Wall" >&5
  3393. $as_echo_n "checking whether the compiler understands -Wall... " >&6; }
  3394. if ${egg_cv_var_ccwall+:} false; then :
  3395. $as_echo_n "(cached) " >&6
  3396. else
  3397. ac_old_CXXFLAGS="$CXXFLAGS"
  3398. CXXFLAGS="$CXXFLAGS -Wall"
  3399. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3400. /* end confdefs.h. */
  3401. int main ()
  3402. {
  3403. return(0);
  3404. }
  3405. _ACEOF
  3406. if ac_fn_cxx_try_compile "$LINENO"; then :
  3407. egg_cv_var_ccwall="yes"
  3408. else
  3409. egg_cv_var_ccwall="no"
  3410. fi
  3411. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3412. CXXFLAGS="$ac_old_CXXFLAGS"
  3413. fi
  3414. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_ccwall" >&5
  3415. $as_echo "$egg_cv_var_ccwall" >&6; }
  3416. if test "$egg_cv_var_ccwall" = "yes"; then
  3417. CXXFLAGS="$CXXFLAGS -Wall"
  3418. fi
  3419. fi
  3420. if test -n "$GXX" && test -z "$no_pipe"; then
  3421. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -pipe" >&5
  3422. $as_echo_n "checking whether the compiler understands -pipe... " >&6; }
  3423. if ${egg_cv_var_ccpipe+:} false; then :
  3424. $as_echo_n "(cached) " >&6
  3425. else
  3426. ac_old_CXX="$CXX"
  3427. CXX="$CXX -pipe"
  3428. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3429. /* end confdefs.h. */
  3430. int main ()
  3431. {
  3432. return(0);
  3433. }
  3434. _ACEOF
  3435. if ac_fn_cxx_try_compile "$LINENO"; then :
  3436. egg_cv_var_ccpipe="yes"
  3437. else
  3438. egg_cv_var_ccpipe="no"
  3439. fi
  3440. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3441. CXX="$ac_old_CXX"
  3442. fi
  3443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_ccpipe" >&5
  3444. $as_echo "$egg_cv_var_ccpipe" >&6; }
  3445. if test "$egg_cv_var_ccpipe" = "yes"; then
  3446. CXX="$CXX -pipe"
  3447. fi
  3448. fi
  3449. CCDEPMODE=gcc
  3450. num=`$CXX -dumpversion | sed "s/^\\\(.\\\).*/\\\1/"`
  3451. if test $num -ge "3"; then
  3452. CCDEPMODE=gcc3
  3453. # GCC3="-Wpadded -Wpacked -Wno-unused-parameter -Wmissing-format-attribute -Wdisabled-optimization"
  3454. GCC3="-W -Wno-unused-parameter -Wdisabled-optimization -Wno-write-strings -Wno-format-security -fno-strict-aliasing -Woverloaded-virtual -Wno-format-y2k"
  3455. GCC3DEB="-Wno-disabled-optimization -Wmissing-format-attribute"
  3456. fi
  3457. if test $num -ge "4"; then
  3458. GCC4DEB="-fstack-protector-all"
  3459. fi
  3460. #checkpoint
  3461. cat >confcache <<\_ACEOF
  3462. # This file is a shell script that caches the results of configure
  3463. # tests run on this system so they can be shared between configure
  3464. # scripts and configure runs, see configure's option --config-cache.
  3465. # It is not useful on other systems. If it contains results you don't
  3466. # want to keep, you may remove or edit it.
  3467. #
  3468. # config.status only pays attention to the cache file if you give it
  3469. # the --recheck option to rerun configure.
  3470. #
  3471. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  3472. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  3473. # following values.
  3474. _ACEOF
  3475. # The following way of writing the cache mishandles newlines in values,
  3476. # but we know of no workaround that is simple, portable, and efficient.
  3477. # So, we kill variables containing newlines.
  3478. # Ultrix sh set writes to stderr and can't be redirected directly,
  3479. # and sets the high bit in the cache file unless we assign to the vars.
  3480. (
  3481. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  3482. eval ac_val=\$$ac_var
  3483. case $ac_val in #(
  3484. *${as_nl}*)
  3485. case $ac_var in #(
  3486. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  3487. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  3488. esac
  3489. case $ac_var in #(
  3490. _ | IFS | as_nl) ;; #(
  3491. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  3492. *) { eval $ac_var=; unset $ac_var;} ;;
  3493. esac ;;
  3494. esac
  3495. done
  3496. (set) 2>&1 |
  3497. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  3498. *${as_nl}ac_space=\ *)
  3499. # `set' does not quote correctly, so add quotes: double-quote
  3500. # substitution turns \\\\ into \\, and sed turns \\ into \.
  3501. sed -n \
  3502. "s/'/'\\\\''/g;
  3503. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  3504. ;; #(
  3505. *)
  3506. # `set' quotes correctly as required by POSIX, so do not add quotes.
  3507. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  3508. ;;
  3509. esac |
  3510. sort
  3511. ) |
  3512. sed '
  3513. /^ac_cv_env_/b end
  3514. t clear
  3515. :clear
  3516. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  3517. t end
  3518. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  3519. :end' >>confcache
  3520. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  3521. if test -w "$cache_file"; then
  3522. if test "x$cache_file" != "x/dev/null"; then
  3523. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  3524. $as_echo "$as_me: updating cache $cache_file" >&6;}
  3525. if test ! -f "$cache_file" || test -h "$cache_file"; then
  3526. cat confcache >"$cache_file"
  3527. else
  3528. case $cache_file in #(
  3529. */* | ?:*)
  3530. mv -f confcache "$cache_file"$$ &&
  3531. mv -f "$cache_file"$$ "$cache_file" ;; #(
  3532. *)
  3533. mv -f confcache "$cache_file" ;;
  3534. esac
  3535. fi
  3536. fi
  3537. else
  3538. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  3539. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  3540. fi
  3541. fi
  3542. rm -f confcache
  3543. # Checks for programs
  3544. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3545. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3546. set x ${MAKE-make}
  3547. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3548. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  3549. $as_echo_n "(cached) " >&6
  3550. else
  3551. cat >conftest.make <<\_ACEOF
  3552. SHELL = /bin/sh
  3553. all:
  3554. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3555. _ACEOF
  3556. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  3557. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3558. *@@@%%%=?*=@@@%%%*)
  3559. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3560. *)
  3561. eval ac_cv_prog_make_${ac_make}_set=no;;
  3562. esac
  3563. rm -f conftest.make
  3564. fi
  3565. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3567. $as_echo "yes" >&6; }
  3568. SET_MAKE=
  3569. else
  3570. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3571. $as_echo "no" >&6; }
  3572. SET_MAKE="MAKE=${MAKE-make}"
  3573. fi
  3574. cat << 'EOF' > conftest.head
  3575. a
  3576. b
  3577. c
  3578. EOF
  3579. for ac_prog in 'head -1' 'head -n 1' 'sed 1q';
  3580. do
  3581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_prog works" >&5
  3582. $as_echo_n "checking whether $ac_prog works... " >&6; }
  3583. if ${ac_cv_prog_HEAD_1+:} false; then :
  3584. $as_echo_n "(cached) " >&6
  3585. else
  3586. if test -n "$HEAD_1"
  3587. then
  3588. ac_cv_prog_HEAD_1="$HEAD_1" # Let the user override the test.
  3589. else
  3590. if test "`cat conftest.head | $ac_prog`" = "a";
  3591. then
  3592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3593. $as_echo "yes" >&6; }
  3594. ac_cv_prog_HEAD_1=$ac_prog
  3595. else
  3596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3597. $as_echo "no" >&6; }
  3598. fi
  3599. fi
  3600. fi
  3601. test -n "$ac_cv_prog_HEAD_1" && break
  3602. done
  3603. if test "${ac_cv_prog_HEAD_1-x}" = "x"
  3604. then
  3605. cat << 'EOF' >&2
  3606. configure: error:
  3607. This system seems to lack a working 'head -1' or 'head -n 1' command.
  3608. A working 'head -1' (or equivalent) command is required to compile Eggdrop.
  3609. EOF
  3610. exit 1
  3611. fi
  3612. rm -f conftest.head
  3613. HEAD_1=$ac_cv_prog_HEAD_1
  3614. # awk is needed for Tcl library and header checks, and eggdrop version subst
  3615. for ac_prog in gawk mawk nawk awk
  3616. do
  3617. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3618. set dummy $ac_prog; ac_word=$2
  3619. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3620. $as_echo_n "checking for $ac_word... " >&6; }
  3621. if ${ac_cv_prog_AWK+:} false; then :
  3622. $as_echo_n "(cached) " >&6
  3623. else
  3624. if test -n "$AWK"; then
  3625. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3626. else
  3627. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3628. for as_dir in $PATH
  3629. do
  3630. IFS=$as_save_IFS
  3631. test -z "$as_dir" && as_dir=.
  3632. for ac_exec_ext in '' $ac_executable_extensions; do
  3633. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3634. ac_cv_prog_AWK="$ac_prog"
  3635. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3636. break 2
  3637. fi
  3638. done
  3639. done
  3640. IFS=$as_save_IFS
  3641. fi
  3642. fi
  3643. AWK=$ac_cv_prog_AWK
  3644. if test -n "$AWK"; then
  3645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  3646. $as_echo "$AWK" >&6; }
  3647. else
  3648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3649. $as_echo "no" >&6; }
  3650. fi
  3651. test -n "$AWK" && break
  3652. done
  3653. if test "${AWK-x}" = "x"
  3654. then
  3655. cat << 'EOF' >&2
  3656. configure: error:
  3657. This system seems to lack a working 'awk' command.
  3658. A working 'awk' command is required to compile Eggdrop.
  3659. EOF
  3660. exit 1
  3661. fi
  3662. # basename is needed for Tcl library and header checks
  3663. # Extract the first word of "basename", so it can be a program name with args.
  3664. set dummy basename; ac_word=$2
  3665. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3666. $as_echo_n "checking for $ac_word... " >&6; }
  3667. if ${ac_cv_prog_BASENAME+:} false; then :
  3668. $as_echo_n "(cached) " >&6
  3669. else
  3670. if test -n "$BASENAME"; then
  3671. ac_cv_prog_BASENAME="$BASENAME" # Let the user override the test.
  3672. else
  3673. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3674. for as_dir in $PATH
  3675. do
  3676. IFS=$as_save_IFS
  3677. test -z "$as_dir" && as_dir=.
  3678. for ac_exec_ext in '' $ac_executable_extensions; do
  3679. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3680. ac_cv_prog_BASENAME="basename"
  3681. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3682. break 2
  3683. fi
  3684. done
  3685. done
  3686. IFS=$as_save_IFS
  3687. fi
  3688. fi
  3689. BASENAME=$ac_cv_prog_BASENAME
  3690. if test -n "$BASENAME"; then
  3691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
  3692. $as_echo "$BASENAME" >&6; }
  3693. else
  3694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3695. $as_echo "no" >&6; }
  3696. fi
  3697. if test "${BASENAME-x}" = "x"
  3698. then
  3699. cat << 'EOF' >&2
  3700. configure: error:
  3701. This system seems to lack a working 'basename' command.
  3702. A working 'basename' command is required to compile Eggdrop.
  3703. EOF
  3704. exit 1
  3705. fi
  3706. # Extract the first word of "objcopy", so it can be a program name with args.
  3707. set dummy objcopy; ac_word=$2
  3708. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3709. $as_echo_n "checking for $ac_word... " >&6; }
  3710. if ${ac_cv_prog_OBJCOPY+:} false; then :
  3711. $as_echo_n "(cached) " >&6
  3712. else
  3713. if test -n "$OBJCOPY"; then
  3714. ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
  3715. else
  3716. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3717. for as_dir in $PATH
  3718. do
  3719. IFS=$as_save_IFS
  3720. test -z "$as_dir" && as_dir=.
  3721. for ac_exec_ext in '' $ac_executable_extensions; do
  3722. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3723. ac_cv_prog_OBJCOPY="objcopy --remove-section=.note --remove-section=.comment"
  3724. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3725. break 2
  3726. fi
  3727. done
  3728. done
  3729. IFS=$as_save_IFS
  3730. test -z "$ac_cv_prog_OBJCOPY" && ac_cv_prog_OBJCOPY="touch"
  3731. fi
  3732. fi
  3733. OBJCOPY=$ac_cv_prog_OBJCOPY
  3734. if test -n "$OBJCOPY"; then
  3735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
  3736. $as_echo "$OBJCOPY" >&6; }
  3737. else
  3738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3739. $as_echo "no" >&6; }
  3740. fi
  3741. # Extract the first word of "strip", so it can be a program name with args.
  3742. set dummy strip; ac_word=$2
  3743. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3744. $as_echo_n "checking for $ac_word... " >&6; }
  3745. if ${ac_cv_prog_STRIP+:} false; then :
  3746. $as_echo_n "(cached) " >&6
  3747. else
  3748. if test -n "$STRIP"; then
  3749. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  3750. else
  3751. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3752. for as_dir in $PATH
  3753. do
  3754. IFS=$as_save_IFS
  3755. test -z "$as_dir" && as_dir=.
  3756. for ac_exec_ext in '' $ac_executable_extensions; do
  3757. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3758. ac_cv_prog_STRIP="strip"
  3759. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3760. break 2
  3761. fi
  3762. done
  3763. done
  3764. IFS=$as_save_IFS
  3765. test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="touch"
  3766. fi
  3767. fi
  3768. STRIP=$ac_cv_prog_STRIP
  3769. if test -n "$STRIP"; then
  3770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  3771. $as_echo "$STRIP" >&6; }
  3772. else
  3773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3774. $as_echo "no" >&6; }
  3775. fi
  3776. # Extract the first word of "gdiff", so it can be a program name with args.
  3777. set dummy gdiff; ac_word=$2
  3778. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3779. $as_echo_n "checking for $ac_word... " >&6; }
  3780. if ${ac_cv_prog_DIFF+:} false; then :
  3781. $as_echo_n "(cached) " >&6
  3782. else
  3783. if test -n "$DIFF"; then
  3784. ac_cv_prog_DIFF="$DIFF" # Let the user override the test.
  3785. else
  3786. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3787. for as_dir in $PATH
  3788. do
  3789. IFS=$as_save_IFS
  3790. test -z "$as_dir" && as_dir=.
  3791. for ac_exec_ext in '' $ac_executable_extensions; do
  3792. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3793. ac_cv_prog_DIFF="gdiff"
  3794. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3795. break 2
  3796. fi
  3797. done
  3798. done
  3799. IFS=$as_save_IFS
  3800. test -z "$ac_cv_prog_DIFF" && ac_cv_prog_DIFF="diff"
  3801. fi
  3802. fi
  3803. DIFF=$ac_cv_prog_DIFF
  3804. if test -n "$DIFF"; then
  3805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
  3806. $as_echo "$DIFF" >&6; }
  3807. else
  3808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3809. $as_echo "no" >&6; }
  3810. fi
  3811. # Extract the first word of "uname", so it can be a program name with args.
  3812. set dummy uname; ac_word=$2
  3813. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3814. $as_echo_n "checking for $ac_word... " >&6; }
  3815. if ${ac_cv_prog_UNAME+:} false; then :
  3816. $as_echo_n "(cached) " >&6
  3817. else
  3818. if test -n "$UNAME"; then
  3819. ac_cv_prog_UNAME="$UNAME" # Let the user override the test.
  3820. else
  3821. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3822. for as_dir in $PATH
  3823. do
  3824. IFS=$as_save_IFS
  3825. test -z "$as_dir" && as_dir=.
  3826. for ac_exec_ext in '' $ac_executable_extensions; do
  3827. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3828. ac_cv_prog_UNAME="uname"
  3829. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3830. break 2
  3831. fi
  3832. done
  3833. done
  3834. IFS=$as_save_IFS
  3835. fi
  3836. fi
  3837. UNAME=$ac_cv_prog_UNAME
  3838. if test -n "$UNAME"; then
  3839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
  3840. $as_echo "$UNAME" >&6; }
  3841. else
  3842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3843. $as_echo "no" >&6; }
  3844. fi
  3845. # Extract the first word of "ccache", so it can be a program name with args.
  3846. set dummy ccache; ac_word=$2
  3847. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3848. $as_echo_n "checking for $ac_word... " >&6; }
  3849. if ${ac_cv_prog_CCACHE+:} false; then :
  3850. $as_echo_n "(cached) " >&6
  3851. else
  3852. if test -n "$CCACHE"; then
  3853. ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
  3854. else
  3855. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3856. for as_dir in $PATH
  3857. do
  3858. IFS=$as_save_IFS
  3859. test -z "$as_dir" && as_dir=.
  3860. for ac_exec_ext in '' $ac_executable_extensions; do
  3861. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3862. ac_cv_prog_CCACHE="ccache"
  3863. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3864. break 2
  3865. fi
  3866. done
  3867. done
  3868. IFS=$as_save_IFS
  3869. fi
  3870. fi
  3871. CCACHE=$ac_cv_prog_CCACHE
  3872. if test -n "$CCACHE"; then
  3873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
  3874. $as_echo "$CCACHE" >&6; }
  3875. else
  3876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3877. $as_echo "no" >&6; }
  3878. fi
  3879. # Extract the first word of "distcc", so it can be a program name with args.
  3880. set dummy distcc; ac_word=$2
  3881. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3882. $as_echo_n "checking for $ac_word... " >&6; }
  3883. if ${ac_cv_prog_DISTCC+:} false; then :
  3884. $as_echo_n "(cached) " >&6
  3885. else
  3886. if test -n "$DISTCC"; then
  3887. ac_cv_prog_DISTCC="$DISTCC" # Let the user override the test.
  3888. else
  3889. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3890. for as_dir in $PATH
  3891. do
  3892. IFS=$as_save_IFS
  3893. test -z "$as_dir" && as_dir=.
  3894. for ac_exec_ext in '' $ac_executable_extensions; do
  3895. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3896. ac_cv_prog_DISTCC="distcc"
  3897. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3898. break 2
  3899. fi
  3900. done
  3901. done
  3902. IFS=$as_save_IFS
  3903. fi
  3904. fi
  3905. DISTCC=$ac_cv_prog_DISTCC
  3906. if test -n "$DISTCC"; then
  3907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
  3908. $as_echo "$DISTCC" >&6; }
  3909. else
  3910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3911. $as_echo "no" >&6; }
  3912. fi
  3913. # Test the os and set the module linking settings
  3914. USE_STATIC=yes
  3915. { $as_echo "$as_me:${as_lineno-$LINENO}: checking system type" >&5
  3916. $as_echo_n "checking system type... " >&6; }
  3917. if ${egg_cv_var_system_type+:} false; then :
  3918. $as_echo_n "(cached) " >&6
  3919. else
  3920. egg_cv_var_system_type=`$UNAME -s`
  3921. fi
  3922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_system_type" >&5
  3923. $as_echo "$egg_cv_var_system_type" >&6; }
  3924. { $as_echo "$as_me:${as_lineno-$LINENO}: checking system release" >&5
  3925. $as_echo_n "checking system release... " >&6; }
  3926. if ${egg_cv_var_system_release+:} false; then :
  3927. $as_echo_n "(cached) " >&6
  3928. else
  3929. egg_cv_var_system_release=`$UNAME -r`
  3930. fi
  3931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_system_release" >&5
  3932. $as_echo "$egg_cv_var_system_release" >&6; }
  3933. { $as_echo "$as_me:${as_lineno-$LINENO}: checking system machine" >&5
  3934. $as_echo_n "checking system machine... " >&6; }
  3935. if ${egg_cv_var_system_machine+:} false; then :
  3936. $as_echo_n "(cached) " >&6
  3937. else
  3938. egg_cv_var_system_machine=`$UNAME -m`
  3939. fi
  3940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_system_machine" >&5
  3941. $as_echo "$egg_cv_var_system_machine" >&6; }
  3942. BUILDOS="$egg_cv_var_system_type"
  3943. BUILDARCH="$egg_cv_var_system_machine"
  3944. USE_GENERIC_I486="yes"
  3945. case "$egg_cv_var_system_type" in
  3946. BSD/OS)
  3947. ;;
  3948. IRIX)
  3949. ;;
  3950. HP-UX)
  3951. $as_echo "#define MD32_XARRAY 1" >>confdefs.h
  3952. ;;
  3953. Ultrix)
  3954. SHELL=/bin/sh5
  3955. ;;
  3956. SINIX*)
  3957. ;;
  3958. BeOS)
  3959. ;;
  3960. Linux)
  3961. ;;
  3962. Lynx)
  3963. ;;
  3964. QNX)
  3965. ;;
  3966. OSF1)
  3967. case "`echo $egg_cv_var_system_release | cut -d . -f 1`" in
  3968. V*)
  3969. if test "$AWK" = "gawk"
  3970. then
  3971. AWK=awk
  3972. fi
  3973. ;;
  3974. 1.0|1.1|1.2)
  3975. $as_echo "#define OSF1_HACKS 1" >>confdefs.h
  3976. ;;
  3977. 1.*)
  3978. $as_echo "#define OSF1_HACKS 1" >>confdefs.h
  3979. ;;
  3980. *)
  3981. ;;
  3982. esac
  3983. $as_echo "#define STOP_UAC 1" >>confdefs.h
  3984. $as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h
  3985. ;;
  3986. SunOS)
  3987. SUNOS="yes"
  3988. USE_STATIC="no"
  3989. ;;
  3990. Darwin)
  3991. USE_STATIC="no"
  3992. USE_GENERIC_I486="no"
  3993. ;;
  3994. *BSD)
  3995. # FreeBSD/OpenBSD/NetBSD
  3996. ;;
  3997. *)
  3998. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if system is Mach based" >&5
  3999. $as_echo_n "checking if system is Mach based... " >&6; }
  4000. if test -r /mach
  4001. then
  4002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4003. $as_echo "yes" >&6; }
  4004. $as_echo "#define BORGCUBES 1" >>confdefs.h
  4005. else
  4006. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4007. $as_echo "no" >&6; }
  4008. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if system is QNX" >&5
  4009. $as_echo_n "checking if system is QNX... " >&6; }
  4010. if test -r /cmds
  4011. then
  4012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4013. $as_echo "yes" >&6; }
  4014. else
  4015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4016. $as_echo "no" >&6; }
  4017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Something unknown!" >&5
  4018. $as_echo "Something unknown!" >&6; }
  4019. fi
  4020. fi
  4021. ;;
  4022. esac
  4023. case "$egg_cv_var_system_machine" in
  4024. i*)
  4025. if test "$USE_GENERIC_I486" = "yes"; then
  4026. CXX="$CXX -march=i486"
  4027. BUILDARCH="i486"
  4028. fi
  4029. ;;
  4030. *)
  4031. ;;
  4032. esac
  4033. # Check for IPv6 support
  4034. #EGG_IPV6_SUPPORTED
  4035. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not you disabled IPv6 support" >&5
  4036. $as_echo_n "checking whether or not you disabled IPv6 support... " >&6; }
  4037. # Check whether --enable-ipv6 was given.
  4038. if test "${enable_ipv6+set}" = set; then :
  4039. enableval=$enable_ipv6; ac_cv_dipv6="yes"
  4040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4041. $as_echo "yes" >&6; }
  4042. else
  4043. ac_cv_dipv6="no"
  4044. if test "$egg_cv_ipv6_supported" = "no"; then
  4045. ac_cv_dipv6="no"
  4046. fi
  4047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_dipv6" >&5
  4048. $as_echo "$ac_cv_dipv6" >&6; }
  4049. fi
  4050. if test "$ac_cv_dipv6" = "no"; then
  4051. $as_echo "#define USE_IPV6 1" >>confdefs.h
  4052. fi
  4053. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
  4054. $as_echo_n "checking for socklen_t... " >&6; }
  4055. if ${egg_cv_socklen_t+:} false; then :
  4056. $as_echo_n "(cached) " >&6
  4057. else
  4058. if test "$cross_compiling" = yes; then :
  4059. egg_cv_socklen_t=no
  4060. else
  4061. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4062. /* end confdefs.h. */
  4063. #include <unistd.h>
  4064. #include <sys/types.h>
  4065. #include <sys/socket.h>
  4066. #include <netinet/in.h>
  4067. #include <arpa/inet.h>
  4068. int main()
  4069. {
  4070. socklen_t test = sizeof(int);
  4071. return 0;
  4072. }
  4073. _ACEOF
  4074. if ac_fn_cxx_try_run "$LINENO"; then :
  4075. egg_cv_socklen_t=yes
  4076. else
  4077. egg_cv_socklen_t=no
  4078. fi
  4079. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4080. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4081. fi
  4082. fi
  4083. if test "$egg_cv_socklen_t" = "yes"; then
  4084. $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
  4085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4086. $as_echo "yes" >&6; }
  4087. else
  4088. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4089. $as_echo "no" >&6; }
  4090. fi
  4091. # Check for inconsistent random() functions
  4092. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for random limit" >&5
  4093. $as_echo_n "checking for random limit... " >&6; }
  4094. case "$egg_cv_var_system_type" in
  4095. SunOS) RMAX=0x7FFFFFFF
  4096. ;;
  4097. *) RMAX=RAND_MAX
  4098. ;;
  4099. esac
  4100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMAX" >&5
  4101. $as_echo "$RMAX" >&6; }
  4102. cat >>confdefs.h <<_ACEOF
  4103. #define RANDOM_MAX $RMAX
  4104. _ACEOF
  4105. # Create static binaries
  4106. if test "$USE_STATIC" = "yes"
  4107. then
  4108. if test -n "$GXX"
  4109. then
  4110. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -static" >&5
  4111. $as_echo_n "checking whether the compiler understands -static... " >&6; }
  4112. if ${egg_cv_var_ccstatic+:} false; then :
  4113. $as_echo_n "(cached) " >&6
  4114. else
  4115. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4116. /* end confdefs.h. */
  4117. int
  4118. main ()
  4119. {
  4120. ;
  4121. return 0;
  4122. }
  4123. _ACEOF
  4124. if ac_fn_cxx_try_compile "$LINENO"; then :
  4125. egg_cv_var_ccstatic="yes"
  4126. else
  4127. egg_cv_var_ccstatic="no"
  4128. fi
  4129. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4130. fi
  4131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_ccstatic" >&5
  4132. $as_echo "$egg_cv_var_ccstatic" >&6; }
  4133. if ! test "$egg_cv_var_ccstatic" = "yes"
  4134. then
  4135. cat << 'EOF' >&2
  4136. configure: error:
  4137. Your OS or C++ compiler does not support -static.
  4138. This compile flag is required for the botpack on this OS.
  4139. EOF
  4140. exit 1
  4141. fi
  4142. fi
  4143. STATIC="-static"
  4144. else
  4145. STATIC=""
  4146. fi
  4147. #checkpoint
  4148. cat >confcache <<\_ACEOF
  4149. # This file is a shell script that caches the results of configure
  4150. # tests run on this system so they can be shared between configure
  4151. # scripts and configure runs, see configure's option --config-cache.
  4152. # It is not useful on other systems. If it contains results you don't
  4153. # want to keep, you may remove or edit it.
  4154. #
  4155. # config.status only pays attention to the cache file if you give it
  4156. # the --recheck option to rerun configure.
  4157. #
  4158. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4159. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4160. # following values.
  4161. _ACEOF
  4162. # The following way of writing the cache mishandles newlines in values,
  4163. # but we know of no workaround that is simple, portable, and efficient.
  4164. # So, we kill variables containing newlines.
  4165. # Ultrix sh set writes to stderr and can't be redirected directly,
  4166. # and sets the high bit in the cache file unless we assign to the vars.
  4167. (
  4168. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  4169. eval ac_val=\$$ac_var
  4170. case $ac_val in #(
  4171. *${as_nl}*)
  4172. case $ac_var in #(
  4173. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  4174. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  4175. esac
  4176. case $ac_var in #(
  4177. _ | IFS | as_nl) ;; #(
  4178. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  4179. *) { eval $ac_var=; unset $ac_var;} ;;
  4180. esac ;;
  4181. esac
  4182. done
  4183. (set) 2>&1 |
  4184. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  4185. *${as_nl}ac_space=\ *)
  4186. # `set' does not quote correctly, so add quotes: double-quote
  4187. # substitution turns \\\\ into \\, and sed turns \\ into \.
  4188. sed -n \
  4189. "s/'/'\\\\''/g;
  4190. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4191. ;; #(
  4192. *)
  4193. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4194. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  4195. ;;
  4196. esac |
  4197. sort
  4198. ) |
  4199. sed '
  4200. /^ac_cv_env_/b end
  4201. t clear
  4202. :clear
  4203. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4204. t end
  4205. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4206. :end' >>confcache
  4207. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  4208. if test -w "$cache_file"; then
  4209. if test "x$cache_file" != "x/dev/null"; then
  4210. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  4211. $as_echo "$as_me: updating cache $cache_file" >&6;}
  4212. if test ! -f "$cache_file" || test -h "$cache_file"; then
  4213. cat confcache >"$cache_file"
  4214. else
  4215. case $cache_file in #(
  4216. */* | ?:*)
  4217. mv -f confcache "$cache_file"$$ &&
  4218. mv -f "$cache_file"$$ "$cache_file" ;; #(
  4219. *)
  4220. mv -f confcache "$cache_file" ;;
  4221. esac
  4222. fi
  4223. fi
  4224. else
  4225. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  4226. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  4227. fi
  4228. fi
  4229. rm -f confcache
  4230. # Checks for system libraries
  4231. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
  4232. $as_echo_n "checking for socket in -lsocket... " >&6; }
  4233. if ${ac_cv_lib_socket_socket+:} false; then :
  4234. $as_echo_n "(cached) " >&6
  4235. else
  4236. ac_check_lib_save_LIBS=$LIBS
  4237. LIBS="-lsocket $LIBS"
  4238. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4239. /* end confdefs.h. */
  4240. /* Override any GCC internal prototype to avoid an error.
  4241. Use char because int might match the return type of a GCC
  4242. builtin and then its argument prototype would still apply. */
  4243. #ifdef __cplusplus
  4244. extern "C"
  4245. #endif
  4246. char socket ();
  4247. int
  4248. main ()
  4249. {
  4250. return socket ();
  4251. ;
  4252. return 0;
  4253. }
  4254. _ACEOF
  4255. if ac_fn_cxx_try_link "$LINENO"; then :
  4256. ac_cv_lib_socket_socket=yes
  4257. else
  4258. ac_cv_lib_socket_socket=no
  4259. fi
  4260. rm -f core conftest.err conftest.$ac_objext \
  4261. conftest$ac_exeext conftest.$ac_ext
  4262. LIBS=$ac_check_lib_save_LIBS
  4263. fi
  4264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
  4265. $as_echo "$ac_cv_lib_socket_socket" >&6; }
  4266. if test "x$ac_cv_lib_socket_socket" = xyes; then :
  4267. cat >>confdefs.h <<_ACEOF
  4268. #define HAVE_LIBSOCKET 1
  4269. _ACEOF
  4270. LIBS="-lsocket $LIBS"
  4271. fi
  4272. # AC_CHECK_LIB(nsl, connect)
  4273. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  4274. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  4275. if ${ac_cv_lib_dl_dlopen+:} false; then :
  4276. $as_echo_n "(cached) " >&6
  4277. else
  4278. ac_check_lib_save_LIBS=$LIBS
  4279. LIBS="-ldl $LIBS"
  4280. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4281. /* end confdefs.h. */
  4282. /* Override any GCC internal prototype to avoid an error.
  4283. Use char because int might match the return type of a GCC
  4284. builtin and then its argument prototype would still apply. */
  4285. #ifdef __cplusplus
  4286. extern "C"
  4287. #endif
  4288. char dlopen ();
  4289. int
  4290. main ()
  4291. {
  4292. return dlopen ();
  4293. ;
  4294. return 0;
  4295. }
  4296. _ACEOF
  4297. if ac_fn_cxx_try_link "$LINENO"; then :
  4298. ac_cv_lib_dl_dlopen=yes
  4299. else
  4300. ac_cv_lib_dl_dlopen=no
  4301. fi
  4302. rm -f core conftest.err conftest.$ac_objext \
  4303. conftest$ac_exeext conftest.$ac_ext
  4304. LIBS=$ac_check_lib_save_LIBS
  4305. fi
  4306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  4307. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  4308. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  4309. cat >>confdefs.h <<_ACEOF
  4310. #define HAVE_LIBDL 1
  4311. _ACEOF
  4312. LIBS="-ldl $LIBS"
  4313. fi
  4314. # AC_CHECK_LIB(nsl, gethostbyname)
  4315. # AC_CHECK_LIB(dns, gethostbyname)
  4316. # AC_CHECK_LIB(z, gzopen, ZLIB="-lz")
  4317. # This is needed for Tcl libraries compiled with thread support
  4318. # AC_CHECK_LIB(pthread, pthread_mutex_init, [dnl
  4319. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4320. # ac_cv_lib_pthread="-lpthread"], [dnl
  4321. # AC_CHECK_LIB(pthread, __pthread_mutex_init, [dnl
  4322. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4323. # ac_cv_lib_pthread="-lpthread"], [dnl
  4324. # AC_CHECK_LIB(pthreads, pthread_mutex_init, [dnl
  4325. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4326. # ac_cv_lib_pthread="-lpthreads"], [dnl
  4327. # AC_CHECK_FUNC(pthread_mutex_init, [dnl
  4328. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4329. # ac_cv_lib_pthread=""],
  4330. # ac_cv_lib_pthread_pthread_mutex_init=no)])])])
  4331. if test "$SUNOS" = "yes"; then
  4332. # For suns without yp
  4333. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldl" >&5
  4334. $as_echo_n "checking for main in -ldl... " >&6; }
  4335. if ${ac_cv_lib_dl_main+:} false; then :
  4336. $as_echo_n "(cached) " >&6
  4337. else
  4338. ac_check_lib_save_LIBS=$LIBS
  4339. LIBS="-ldl $LIBS"
  4340. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4341. /* end confdefs.h. */
  4342. int
  4343. main ()
  4344. {
  4345. return main ();
  4346. ;
  4347. return 0;
  4348. }
  4349. _ACEOF
  4350. if ac_fn_cxx_try_link "$LINENO"; then :
  4351. ac_cv_lib_dl_main=yes
  4352. else
  4353. ac_cv_lib_dl_main=no
  4354. fi
  4355. rm -f core conftest.err conftest.$ac_objext \
  4356. conftest$ac_exeext conftest.$ac_ext
  4357. LIBS=$ac_check_lib_save_LIBS
  4358. fi
  4359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_main" >&5
  4360. $as_echo "$ac_cv_lib_dl_main" >&6; }
  4361. if test "x$ac_cv_lib_dl_main" = xyes; then :
  4362. cat >>confdefs.h <<_ACEOF
  4363. #define HAVE_LIBDL 1
  4364. _ACEOF
  4365. LIBS="-ldl $LIBS"
  4366. fi
  4367. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
  4368. $as_echo_n "checking for main in -lsocket... " >&6; }
  4369. if ${ac_cv_lib_socket_main+:} false; then :
  4370. $as_echo_n "(cached) " >&6
  4371. else
  4372. ac_check_lib_save_LIBS=$LIBS
  4373. LIBS="-lsocket $LIBS"
  4374. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4375. /* end confdefs.h. */
  4376. int
  4377. main ()
  4378. {
  4379. return main ();
  4380. ;
  4381. return 0;
  4382. }
  4383. _ACEOF
  4384. if ac_fn_cxx_try_link "$LINENO"; then :
  4385. ac_cv_lib_socket_main=yes
  4386. else
  4387. ac_cv_lib_socket_main=no
  4388. fi
  4389. rm -f core conftest.err conftest.$ac_objext \
  4390. conftest$ac_exeext conftest.$ac_ext
  4391. LIBS=$ac_check_lib_save_LIBS
  4392. fi
  4393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
  4394. $as_echo "$ac_cv_lib_socket_main" >&6; }
  4395. if test "x$ac_cv_lib_socket_main" = xyes; then :
  4396. cat >>confdefs.h <<_ACEOF
  4397. #define HAVE_LIBSOCKET 1
  4398. _ACEOF
  4399. LIBS="-lsocket $LIBS"
  4400. fi
  4401. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
  4402. $as_echo_n "checking for main in -lnsl... " >&6; }
  4403. if ${ac_cv_lib_nsl_main+:} false; then :
  4404. $as_echo_n "(cached) " >&6
  4405. else
  4406. ac_check_lib_save_LIBS=$LIBS
  4407. LIBS="-lnsl $LIBS"
  4408. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4409. /* end confdefs.h. */
  4410. int
  4411. main ()
  4412. {
  4413. return main ();
  4414. ;
  4415. return 0;
  4416. }
  4417. _ACEOF
  4418. if ac_fn_cxx_try_link "$LINENO"; then :
  4419. ac_cv_lib_nsl_main=yes
  4420. else
  4421. ac_cv_lib_nsl_main=no
  4422. fi
  4423. rm -f core conftest.err conftest.$ac_objext \
  4424. conftest$ac_exeext conftest.$ac_ext
  4425. LIBS=$ac_check_lib_save_LIBS
  4426. fi
  4427. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
  4428. $as_echo "$ac_cv_lib_nsl_main" >&6; }
  4429. if test "x$ac_cv_lib_nsl_main" = xyes; then :
  4430. cat >>confdefs.h <<_ACEOF
  4431. #define HAVE_LIBNSL 1
  4432. _ACEOF
  4433. LIBS="-lnsl $LIBS"
  4434. fi
  4435. fi
  4436. # Checks for header files
  4437. ac_header_dirent=no
  4438. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  4439. as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  4440. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
  4441. $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
  4442. if eval \${$as_ac_Header+:} false; then :
  4443. $as_echo_n "(cached) " >&6
  4444. else
  4445. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4446. /* end confdefs.h. */
  4447. #include <sys/types.h>
  4448. #include <$ac_hdr>
  4449. int
  4450. main ()
  4451. {
  4452. if ((DIR *) 0)
  4453. return 0;
  4454. ;
  4455. return 0;
  4456. }
  4457. _ACEOF
  4458. if ac_fn_cxx_try_compile "$LINENO"; then :
  4459. eval "$as_ac_Header=yes"
  4460. else
  4461. eval "$as_ac_Header=no"
  4462. fi
  4463. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4464. fi
  4465. eval ac_res=\$$as_ac_Header
  4466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  4467. $as_echo "$ac_res" >&6; }
  4468. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4469. cat >>confdefs.h <<_ACEOF
  4470. #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  4471. _ACEOF
  4472. ac_header_dirent=$ac_hdr; break
  4473. fi
  4474. done
  4475. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  4476. if test $ac_header_dirent = dirent.h; then
  4477. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  4478. $as_echo_n "checking for library containing opendir... " >&6; }
  4479. if ${ac_cv_search_opendir+:} false; then :
  4480. $as_echo_n "(cached) " >&6
  4481. else
  4482. ac_func_search_save_LIBS=$LIBS
  4483. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4484. /* end confdefs.h. */
  4485. /* Override any GCC internal prototype to avoid an error.
  4486. Use char because int might match the return type of a GCC
  4487. builtin and then its argument prototype would still apply. */
  4488. #ifdef __cplusplus
  4489. extern "C"
  4490. #endif
  4491. char opendir ();
  4492. int
  4493. main ()
  4494. {
  4495. return opendir ();
  4496. ;
  4497. return 0;
  4498. }
  4499. _ACEOF
  4500. for ac_lib in '' dir; do
  4501. if test -z "$ac_lib"; then
  4502. ac_res="none required"
  4503. else
  4504. ac_res=-l$ac_lib
  4505. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4506. fi
  4507. if ac_fn_cxx_try_link "$LINENO"; then :
  4508. ac_cv_search_opendir=$ac_res
  4509. fi
  4510. rm -f core conftest.err conftest.$ac_objext \
  4511. conftest$ac_exeext
  4512. if ${ac_cv_search_opendir+:} false; then :
  4513. break
  4514. fi
  4515. done
  4516. if ${ac_cv_search_opendir+:} false; then :
  4517. else
  4518. ac_cv_search_opendir=no
  4519. fi
  4520. rm conftest.$ac_ext
  4521. LIBS=$ac_func_search_save_LIBS
  4522. fi
  4523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  4524. $as_echo "$ac_cv_search_opendir" >&6; }
  4525. ac_res=$ac_cv_search_opendir
  4526. if test "$ac_res" != no; then :
  4527. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  4528. fi
  4529. else
  4530. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  4531. $as_echo_n "checking for library containing opendir... " >&6; }
  4532. if ${ac_cv_search_opendir+:} false; then :
  4533. $as_echo_n "(cached) " >&6
  4534. else
  4535. ac_func_search_save_LIBS=$LIBS
  4536. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4537. /* end confdefs.h. */
  4538. /* Override any GCC internal prototype to avoid an error.
  4539. Use char because int might match the return type of a GCC
  4540. builtin and then its argument prototype would still apply. */
  4541. #ifdef __cplusplus
  4542. extern "C"
  4543. #endif
  4544. char opendir ();
  4545. int
  4546. main ()
  4547. {
  4548. return opendir ();
  4549. ;
  4550. return 0;
  4551. }
  4552. _ACEOF
  4553. for ac_lib in '' x; do
  4554. if test -z "$ac_lib"; then
  4555. ac_res="none required"
  4556. else
  4557. ac_res=-l$ac_lib
  4558. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4559. fi
  4560. if ac_fn_cxx_try_link "$LINENO"; then :
  4561. ac_cv_search_opendir=$ac_res
  4562. fi
  4563. rm -f core conftest.err conftest.$ac_objext \
  4564. conftest$ac_exeext
  4565. if ${ac_cv_search_opendir+:} false; then :
  4566. break
  4567. fi
  4568. done
  4569. if ${ac_cv_search_opendir+:} false; then :
  4570. else
  4571. ac_cv_search_opendir=no
  4572. fi
  4573. rm conftest.$ac_ext
  4574. LIBS=$ac_func_search_save_LIBS
  4575. fi
  4576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  4577. $as_echo "$ac_cv_search_opendir" >&6; }
  4578. ac_res=$ac_cv_search_opendir
  4579. if test "$ac_res" != no; then :
  4580. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  4581. fi
  4582. fi
  4583. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
  4584. $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
  4585. if ${ac_cv_header_sys_wait_h+:} false; then :
  4586. $as_echo_n "(cached) " >&6
  4587. else
  4588. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4589. /* end confdefs.h. */
  4590. #include <sys/types.h>
  4591. #include <sys/wait.h>
  4592. #ifndef WEXITSTATUS
  4593. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  4594. #endif
  4595. #ifndef WIFEXITED
  4596. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  4597. #endif
  4598. int
  4599. main ()
  4600. {
  4601. int s;
  4602. wait (&s);
  4603. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  4604. ;
  4605. return 0;
  4606. }
  4607. _ACEOF
  4608. if ac_fn_cxx_try_compile "$LINENO"; then :
  4609. ac_cv_header_sys_wait_h=yes
  4610. else
  4611. ac_cv_header_sys_wait_h=no
  4612. fi
  4613. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4614. fi
  4615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
  4616. $as_echo "$ac_cv_header_sys_wait_h" >&6; }
  4617. if test $ac_cv_header_sys_wait_h = yes; then
  4618. $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
  4619. fi
  4620. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  4621. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  4622. if ${ac_cv_header_time+:} false; then :
  4623. $as_echo_n "(cached) " >&6
  4624. else
  4625. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4626. /* end confdefs.h. */
  4627. #include <sys/types.h>
  4628. #include <sys/time.h>
  4629. #include <time.h>
  4630. int
  4631. main ()
  4632. {
  4633. if ((struct tm *) 0)
  4634. return 0;
  4635. ;
  4636. return 0;
  4637. }
  4638. _ACEOF
  4639. if ac_fn_cxx_try_compile "$LINENO"; then :
  4640. ac_cv_header_time=yes
  4641. else
  4642. ac_cv_header_time=no
  4643. fi
  4644. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4645. fi
  4646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  4647. $as_echo "$ac_cv_header_time" >&6; }
  4648. if test $ac_cv_header_time = yes; then
  4649. $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  4650. fi
  4651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
  4652. $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
  4653. if ${ac_cv_header_stat_broken+:} false; then :
  4654. $as_echo_n "(cached) " >&6
  4655. else
  4656. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4657. /* end confdefs.h. */
  4658. #include <sys/types.h>
  4659. #include <sys/stat.h>
  4660. #if defined S_ISBLK && defined S_IFDIR
  4661. extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
  4662. #endif
  4663. #if defined S_ISBLK && defined S_IFCHR
  4664. extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
  4665. #endif
  4666. #if defined S_ISLNK && defined S_IFREG
  4667. extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
  4668. #endif
  4669. #if defined S_ISSOCK && defined S_IFREG
  4670. extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
  4671. #endif
  4672. _ACEOF
  4673. if ac_fn_cxx_try_compile "$LINENO"; then :
  4674. ac_cv_header_stat_broken=no
  4675. else
  4676. ac_cv_header_stat_broken=yes
  4677. fi
  4678. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4679. fi
  4680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
  4681. $as_echo "$ac_cv_header_stat_broken" >&6; }
  4682. if test $ac_cv_header_stat_broken = yes; then
  4683. $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
  4684. fi
  4685. #checkpoint
  4686. cat >confcache <<\_ACEOF
  4687. # This file is a shell script that caches the results of configure
  4688. # tests run on this system so they can be shared between configure
  4689. # scripts and configure runs, see configure's option --config-cache.
  4690. # It is not useful on other systems. If it contains results you don't
  4691. # want to keep, you may remove or edit it.
  4692. #
  4693. # config.status only pays attention to the cache file if you give it
  4694. # the --recheck option to rerun configure.
  4695. #
  4696. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4697. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4698. # following values.
  4699. _ACEOF
  4700. # The following way of writing the cache mishandles newlines in values,
  4701. # but we know of no workaround that is simple, portable, and efficient.
  4702. # So, we kill variables containing newlines.
  4703. # Ultrix sh set writes to stderr and can't be redirected directly,
  4704. # and sets the high bit in the cache file unless we assign to the vars.
  4705. (
  4706. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  4707. eval ac_val=\$$ac_var
  4708. case $ac_val in #(
  4709. *${as_nl}*)
  4710. case $ac_var in #(
  4711. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  4712. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  4713. esac
  4714. case $ac_var in #(
  4715. _ | IFS | as_nl) ;; #(
  4716. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  4717. *) { eval $ac_var=; unset $ac_var;} ;;
  4718. esac ;;
  4719. esac
  4720. done
  4721. (set) 2>&1 |
  4722. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  4723. *${as_nl}ac_space=\ *)
  4724. # `set' does not quote correctly, so add quotes: double-quote
  4725. # substitution turns \\\\ into \\, and sed turns \\ into \.
  4726. sed -n \
  4727. "s/'/'\\\\''/g;
  4728. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4729. ;; #(
  4730. *)
  4731. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4732. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  4733. ;;
  4734. esac |
  4735. sort
  4736. ) |
  4737. sed '
  4738. /^ac_cv_env_/b end
  4739. t clear
  4740. :clear
  4741. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4742. t end
  4743. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4744. :end' >>confcache
  4745. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  4746. if test -w "$cache_file"; then
  4747. if test "x$cache_file" != "x/dev/null"; then
  4748. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  4749. $as_echo "$as_me: updating cache $cache_file" >&6;}
  4750. if test ! -f "$cache_file" || test -h "$cache_file"; then
  4751. cat confcache >"$cache_file"
  4752. else
  4753. case $cache_file in #(
  4754. */* | ?:*)
  4755. mv -f confcache "$cache_file"$$ &&
  4756. mv -f "$cache_file"$$ "$cache_file" ;; #(
  4757. *)
  4758. mv -f confcache "$cache_file" ;;
  4759. esac
  4760. fi
  4761. fi
  4762. else
  4763. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  4764. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  4765. fi
  4766. fi
  4767. rm -f confcache
  4768. for ac_header in stdarg.h std_arg.h arpa/inet.h fcntl.h limits.h locale.h netdb.h netinet/in.h
  4769. do :
  4770. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4771. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  4772. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4773. cat >>confdefs.h <<_ACEOF
  4774. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4775. _ACEOF
  4776. fi
  4777. done
  4778. for ac_header in sys/file.h sys/ioctl.h sys/param.h sys/socket.h wchar.h sys/ptrace.h paths.h
  4779. do :
  4780. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4781. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  4782. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4783. cat >>confdefs.h <<_ACEOF
  4784. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4785. _ACEOF
  4786. fi
  4787. done
  4788. #checkpoint
  4789. cat >confcache <<\_ACEOF
  4790. # This file is a shell script that caches the results of configure
  4791. # tests run on this system so they can be shared between configure
  4792. # scripts and configure runs, see configure's option --config-cache.
  4793. # It is not useful on other systems. If it contains results you don't
  4794. # want to keep, you may remove or edit it.
  4795. #
  4796. # config.status only pays attention to the cache file if you give it
  4797. # the --recheck option to rerun configure.
  4798. #
  4799. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4800. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4801. # following values.
  4802. _ACEOF
  4803. # The following way of writing the cache mishandles newlines in values,
  4804. # but we know of no workaround that is simple, portable, and efficient.
  4805. # So, we kill variables containing newlines.
  4806. # Ultrix sh set writes to stderr and can't be redirected directly,
  4807. # and sets the high bit in the cache file unless we assign to the vars.
  4808. (
  4809. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  4810. eval ac_val=\$$ac_var
  4811. case $ac_val in #(
  4812. *${as_nl}*)
  4813. case $ac_var in #(
  4814. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  4815. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  4816. esac
  4817. case $ac_var in #(
  4818. _ | IFS | as_nl) ;; #(
  4819. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  4820. *) { eval $ac_var=; unset $ac_var;} ;;
  4821. esac ;;
  4822. esac
  4823. done
  4824. (set) 2>&1 |
  4825. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  4826. *${as_nl}ac_space=\ *)
  4827. # `set' does not quote correctly, so add quotes: double-quote
  4828. # substitution turns \\\\ into \\, and sed turns \\ into \.
  4829. sed -n \
  4830. "s/'/'\\\\''/g;
  4831. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4832. ;; #(
  4833. *)
  4834. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4835. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  4836. ;;
  4837. esac |
  4838. sort
  4839. ) |
  4840. sed '
  4841. /^ac_cv_env_/b end
  4842. t clear
  4843. :clear
  4844. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4845. t end
  4846. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4847. :end' >>confcache
  4848. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  4849. if test -w "$cache_file"; then
  4850. if test "x$cache_file" != "x/dev/null"; then
  4851. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  4852. $as_echo "$as_me: updating cache $cache_file" >&6;}
  4853. if test ! -f "$cache_file" || test -h "$cache_file"; then
  4854. cat confcache >"$cache_file"
  4855. else
  4856. case $cache_file in #(
  4857. */* | ?:*)
  4858. mv -f confcache "$cache_file"$$ &&
  4859. mv -f "$cache_file"$$ "$cache_file" ;; #(
  4860. *)
  4861. mv -f confcache "$cache_file" ;;
  4862. esac
  4863. fi
  4864. fi
  4865. else
  4866. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  4867. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  4868. fi
  4869. fi
  4870. rm -f confcache
  4871. #AC_CHECK_HEADERS(openssl/ssl.h openssl/crypto.h)
  4872. #AC_CHECK_HEADERS(zlib.h)
  4873. #EGG_CHECK_ZLIB
  4874. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for path to OpenSSL" >&5
  4875. $as_echo_n "checking for path to OpenSSL... " >&6; }
  4876. # Check whether --with-openssl was given.
  4877. if test "${with_openssl+set}" = set; then :
  4878. withval=$with_openssl; cf_with_openssl=$withval
  4879. else
  4880. cf_with_openssl="auto"
  4881. fi
  4882. cf_openssl_basedir=""
  4883. if test "$cf_with_openssl" != "auto"; then
  4884. cf_openssl_basedir="`echo ${cf_with_openssl} | sed 's/\/$//'`"
  4885. else
  4886. for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/local/openssl; do
  4887. if test -f "${dirs}/include/openssl/opensslv.h" ; then
  4888. cf_openssl_basedir="${dirs}"
  4889. break
  4890. fi
  4891. done
  4892. unset dirs
  4893. fi
  4894. if test ! -z "$cf_openssl_basedir"; then
  4895. if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then
  4896. SSL_INCLUDES="-I${cf_openssl_basedir}/include"
  4897. SSL_LIBS="-L${cf_openssl_basedir}/lib"
  4898. else
  4899. cf_openssl_basedir=""
  4900. fi
  4901. else
  4902. if test -f "/usr/include/openssl/opensslv.h" ; then
  4903. cf_openssl_basedir="/usr"
  4904. fi
  4905. fi
  4906. if test ! -z "$cf_openssl_basedir"; then
  4907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
  4908. $as_echo "$cf_openssl_basedir" >&6; }
  4909. else
  4910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
  4911. $as_echo "not found" >&6; }
  4912. as_fn_error 1 "OpenSSL is required." "$LINENO" 5
  4913. fi
  4914. unset cf_openssl_basedir
  4915. save_CXX="$CXX"
  4916. CXX="$CXX $SSL_INCLUDES"
  4917. save_LIBS="$LIBS"
  4918. LIBS="$LIBS $SSL_LIBS"
  4919. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version" >&5
  4920. $as_echo_n "checking for OpenSSL version... " >&6; }
  4921. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4922. /* end confdefs.h. */
  4923. #include <openssl/opensslv.h>
  4924. int
  4925. main ()
  4926. {
  4927. #if !defined(OPENSSL_VERSION_NUMBER)
  4928. #error "Missing openssl version"
  4929. #endif
  4930. #if (OPENSSL_VERSION_NUMBER < 0x0090800f)
  4931. #error "Old/Insecure OpenSSL version " OPENSSL_VERSION_TEXT
  4932. #endif
  4933. ;
  4934. return 0;
  4935. }
  4936. _ACEOF
  4937. if ac_fn_cxx_try_compile "$LINENO"; then :
  4938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
  4939. $as_echo "OK" >&6; }
  4940. else
  4941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old." >&5
  4942. $as_echo "too old." >&6; }
  4943. as_fn_error 1 "OpenSSL version is too old." "$LINENO" 5
  4944. fi
  4945. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4946. CXX="$CXX $SSL_LIBS"
  4947. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AES_encrypt in -lcrypto" >&5
  4948. $as_echo_n "checking for AES_encrypt in -lcrypto... " >&6; }
  4949. if ${ac_cv_lib_crypto_AES_encrypt+:} false; then :
  4950. $as_echo_n "(cached) " >&6
  4951. else
  4952. ac_check_lib_save_LIBS=$LIBS
  4953. LIBS="-lcrypto $LIBS"
  4954. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4955. /* end confdefs.h. */
  4956. /* Override any GCC internal prototype to avoid an error.
  4957. Use char because int might match the return type of a GCC
  4958. builtin and then its argument prototype would still apply. */
  4959. #ifdef __cplusplus
  4960. extern "C"
  4961. #endif
  4962. char AES_encrypt ();
  4963. int
  4964. main ()
  4965. {
  4966. return AES_encrypt ();
  4967. ;
  4968. return 0;
  4969. }
  4970. _ACEOF
  4971. if ac_fn_cxx_try_link "$LINENO"; then :
  4972. ac_cv_lib_crypto_AES_encrypt=yes
  4973. else
  4974. ac_cv_lib_crypto_AES_encrypt=no
  4975. fi
  4976. rm -f core conftest.err conftest.$ac_objext \
  4977. conftest$ac_exeext conftest.$ac_ext
  4978. LIBS=$ac_check_lib_save_LIBS
  4979. fi
  4980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_AES_encrypt" >&5
  4981. $as_echo "$ac_cv_lib_crypto_AES_encrypt" >&6; }
  4982. if test "x$ac_cv_lib_crypto_AES_encrypt" = xyes; then :
  4983. if test "$USE_STATIC" = "yes"; then
  4984. SSL_LIBS="$SSL_LIBS -Wl,-Bstatic -lcrypto -Wl,-Bdynamic"
  4985. else
  4986. SSL_LIBS="$SSL_LIBS -lcrypto"
  4987. fi
  4988. else
  4989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found." >&5
  4990. $as_echo "not found." >&6; }
  4991. as_fn_error 1 "Libcrypto/openssl is required." "$LINENO" 5
  4992. fi
  4993. CXX="$save_CXX"
  4994. LIBS="$save_LIBS"
  4995. #AC_SUBST(ZLIB)dnl
  4996. # Checks for typedefs, structures, and compiler characteristics
  4997. ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  4998. if test "x$ac_cv_type_pid_t" = xyes; then :
  4999. else
  5000. cat >>confdefs.h <<_ACEOF
  5001. #define pid_t int
  5002. _ACEOF
  5003. fi
  5004. ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  5005. if test "x$ac_cv_type_size_t" = xyes; then :
  5006. else
  5007. cat >>confdefs.h <<_ACEOF
  5008. #define size_t unsigned int
  5009. _ACEOF
  5010. fi
  5011. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
  5012. $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
  5013. if ${ac_cv_type_uid_t+:} false; then :
  5014. $as_echo_n "(cached) " >&6
  5015. else
  5016. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5017. /* end confdefs.h. */
  5018. #include <sys/types.h>
  5019. _ACEOF
  5020. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5021. $EGREP "uid_t" >/dev/null 2>&1; then :
  5022. ac_cv_type_uid_t=yes
  5023. else
  5024. ac_cv_type_uid_t=no
  5025. fi
  5026. rm -f conftest*
  5027. fi
  5028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
  5029. $as_echo "$ac_cv_type_uid_t" >&6; }
  5030. if test $ac_cv_type_uid_t = no; then
  5031. $as_echo "#define uid_t int" >>confdefs.h
  5032. $as_echo "#define gid_t int" >>confdefs.h
  5033. fi
  5034. #AC_C_CONST
  5035. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  5036. $as_echo_n "checking for working volatile... " >&6; }
  5037. if ${ac_cv_c_volatile+:} false; then :
  5038. $as_echo_n "(cached) " >&6
  5039. else
  5040. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5041. /* end confdefs.h. */
  5042. int
  5043. main ()
  5044. {
  5045. volatile int x;
  5046. int * volatile y = (int *) 0;
  5047. return !x && !y;
  5048. ;
  5049. return 0;
  5050. }
  5051. _ACEOF
  5052. if ac_fn_cxx_try_compile "$LINENO"; then :
  5053. ac_cv_c_volatile=yes
  5054. else
  5055. ac_cv_c_volatile=no
  5056. fi
  5057. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5058. fi
  5059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  5060. $as_echo "$ac_cv_c_volatile" >&6; }
  5061. if test $ac_cv_c_volatile = no; then
  5062. $as_echo "#define volatile /**/" >>confdefs.h
  5063. fi
  5064. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  5065. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  5066. if ${ac_cv_c_bigendian+:} false; then :
  5067. $as_echo_n "(cached) " >&6
  5068. else
  5069. ac_cv_c_bigendian=unknown
  5070. # See if we're dealing with a universal compiler.
  5071. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5072. /* end confdefs.h. */
  5073. #ifndef __APPLE_CC__
  5074. not a universal capable compiler
  5075. #endif
  5076. typedef int dummy;
  5077. _ACEOF
  5078. if ac_fn_cxx_try_compile "$LINENO"; then :
  5079. # Check for potential -arch flags. It is not universal unless
  5080. # there are at least two -arch flags with different values.
  5081. ac_arch=
  5082. ac_prev=
  5083. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  5084. if test -n "$ac_prev"; then
  5085. case $ac_word in
  5086. i?86 | x86_64 | ppc | ppc64)
  5087. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  5088. ac_arch=$ac_word
  5089. else
  5090. ac_cv_c_bigendian=universal
  5091. break
  5092. fi
  5093. ;;
  5094. esac
  5095. ac_prev=
  5096. elif test "x$ac_word" = "x-arch"; then
  5097. ac_prev=arch
  5098. fi
  5099. done
  5100. fi
  5101. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5102. if test $ac_cv_c_bigendian = unknown; then
  5103. # See if sys/param.h defines the BYTE_ORDER macro.
  5104. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5105. /* end confdefs.h. */
  5106. #include <sys/types.h>
  5107. #include <sys/param.h>
  5108. int
  5109. main ()
  5110. {
  5111. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  5112. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  5113. && LITTLE_ENDIAN)
  5114. bogus endian macros
  5115. #endif
  5116. ;
  5117. return 0;
  5118. }
  5119. _ACEOF
  5120. if ac_fn_cxx_try_compile "$LINENO"; then :
  5121. # It does; now see whether it defined to BIG_ENDIAN or not.
  5122. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5123. /* end confdefs.h. */
  5124. #include <sys/types.h>
  5125. #include <sys/param.h>
  5126. int
  5127. main ()
  5128. {
  5129. #if BYTE_ORDER != BIG_ENDIAN
  5130. not big endian
  5131. #endif
  5132. ;
  5133. return 0;
  5134. }
  5135. _ACEOF
  5136. if ac_fn_cxx_try_compile "$LINENO"; then :
  5137. ac_cv_c_bigendian=yes
  5138. else
  5139. ac_cv_c_bigendian=no
  5140. fi
  5141. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5142. fi
  5143. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5144. fi
  5145. if test $ac_cv_c_bigendian = unknown; then
  5146. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  5147. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5148. /* end confdefs.h. */
  5149. #include <limits.h>
  5150. int
  5151. main ()
  5152. {
  5153. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  5154. bogus endian macros
  5155. #endif
  5156. ;
  5157. return 0;
  5158. }
  5159. _ACEOF
  5160. if ac_fn_cxx_try_compile "$LINENO"; then :
  5161. # It does; now see whether it defined to _BIG_ENDIAN or not.
  5162. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5163. /* end confdefs.h. */
  5164. #include <limits.h>
  5165. int
  5166. main ()
  5167. {
  5168. #ifndef _BIG_ENDIAN
  5169. not big endian
  5170. #endif
  5171. ;
  5172. return 0;
  5173. }
  5174. _ACEOF
  5175. if ac_fn_cxx_try_compile "$LINENO"; then :
  5176. ac_cv_c_bigendian=yes
  5177. else
  5178. ac_cv_c_bigendian=no
  5179. fi
  5180. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5181. fi
  5182. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5183. fi
  5184. if test $ac_cv_c_bigendian = unknown; then
  5185. # Compile a test program.
  5186. if test "$cross_compiling" = yes; then :
  5187. # Try to guess by grepping values from an object file.
  5188. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5189. /* end confdefs.h. */
  5190. short int ascii_mm[] =
  5191. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  5192. short int ascii_ii[] =
  5193. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  5194. int use_ascii (int i) {
  5195. return ascii_mm[i] + ascii_ii[i];
  5196. }
  5197. short int ebcdic_ii[] =
  5198. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  5199. short int ebcdic_mm[] =
  5200. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  5201. int use_ebcdic (int i) {
  5202. return ebcdic_mm[i] + ebcdic_ii[i];
  5203. }
  5204. extern int foo;
  5205. int
  5206. main ()
  5207. {
  5208. return use_ascii (foo) == use_ebcdic (foo);
  5209. ;
  5210. return 0;
  5211. }
  5212. _ACEOF
  5213. if ac_fn_cxx_try_compile "$LINENO"; then :
  5214. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  5215. ac_cv_c_bigendian=yes
  5216. fi
  5217. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  5218. if test "$ac_cv_c_bigendian" = unknown; then
  5219. ac_cv_c_bigendian=no
  5220. else
  5221. # finding both strings is unlikely to happen, but who knows?
  5222. ac_cv_c_bigendian=unknown
  5223. fi
  5224. fi
  5225. fi
  5226. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5227. else
  5228. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5229. /* end confdefs.h. */
  5230. $ac_includes_default
  5231. int
  5232. main ()
  5233. {
  5234. /* Are we little or big endian? From Harbison&Steele. */
  5235. union
  5236. {
  5237. long int l;
  5238. char c[sizeof (long int)];
  5239. } u;
  5240. u.l = 1;
  5241. return u.c[sizeof (long int) - 1] == 1;
  5242. ;
  5243. return 0;
  5244. }
  5245. _ACEOF
  5246. if ac_fn_cxx_try_run "$LINENO"; then :
  5247. ac_cv_c_bigendian=no
  5248. else
  5249. ac_cv_c_bigendian=yes
  5250. fi
  5251. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5252. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5253. fi
  5254. fi
  5255. fi
  5256. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  5257. $as_echo "$ac_cv_c_bigendian" >&6; }
  5258. case $ac_cv_c_bigendian in #(
  5259. yes)
  5260. $as_echo "#define B_ENDIAN 1" >>confdefs.h
  5261. ;; #(
  5262. no)
  5263. $as_echo "#define L_ENDIAN 1" >>confdefs.h
  5264. ;; #(
  5265. universal)
  5266. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  5267. ;; #(
  5268. *)
  5269. as_fn_error $? "unknown endianness
  5270. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  5271. esac
  5272. #AC_C_INLINE
  5273. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
  5274. $as_echo_n "checking whether char is unsigned... " >&6; }
  5275. if ${ac_cv_c_char_unsigned+:} false; then :
  5276. $as_echo_n "(cached) " >&6
  5277. else
  5278. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5279. /* end confdefs.h. */
  5280. $ac_includes_default
  5281. int
  5282. main ()
  5283. {
  5284. static int test_array [1 - 2 * !(((char) -1) < 0)];
  5285. test_array [0] = 0
  5286. ;
  5287. return 0;
  5288. }
  5289. _ACEOF
  5290. if ac_fn_cxx_try_compile "$LINENO"; then :
  5291. ac_cv_c_char_unsigned=no
  5292. else
  5293. ac_cv_c_char_unsigned=yes
  5294. fi
  5295. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5296. fi
  5297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
  5298. $as_echo "$ac_cv_c_char_unsigned" >&6; }
  5299. if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
  5300. $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
  5301. fi
  5302. #AC_C_STRINGIZE
  5303. #AC_C_PROTOTYPES
  5304. #checkpoint
  5305. cat >confcache <<\_ACEOF
  5306. # This file is a shell script that caches the results of configure
  5307. # tests run on this system so they can be shared between configure
  5308. # scripts and configure runs, see configure's option --config-cache.
  5309. # It is not useful on other systems. If it contains results you don't
  5310. # want to keep, you may remove or edit it.
  5311. #
  5312. # config.status only pays attention to the cache file if you give it
  5313. # the --recheck option to rerun configure.
  5314. #
  5315. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5316. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5317. # following values.
  5318. _ACEOF
  5319. # The following way of writing the cache mishandles newlines in values,
  5320. # but we know of no workaround that is simple, portable, and efficient.
  5321. # So, we kill variables containing newlines.
  5322. # Ultrix sh set writes to stderr and can't be redirected directly,
  5323. # and sets the high bit in the cache file unless we assign to the vars.
  5324. (
  5325. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  5326. eval ac_val=\$$ac_var
  5327. case $ac_val in #(
  5328. *${as_nl}*)
  5329. case $ac_var in #(
  5330. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  5331. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  5332. esac
  5333. case $ac_var in #(
  5334. _ | IFS | as_nl) ;; #(
  5335. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  5336. *) { eval $ac_var=; unset $ac_var;} ;;
  5337. esac ;;
  5338. esac
  5339. done
  5340. (set) 2>&1 |
  5341. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  5342. *${as_nl}ac_space=\ *)
  5343. # `set' does not quote correctly, so add quotes: double-quote
  5344. # substitution turns \\\\ into \\, and sed turns \\ into \.
  5345. sed -n \
  5346. "s/'/'\\\\''/g;
  5347. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5348. ;; #(
  5349. *)
  5350. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5351. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  5352. ;;
  5353. esac |
  5354. sort
  5355. ) |
  5356. sed '
  5357. /^ac_cv_env_/b end
  5358. t clear
  5359. :clear
  5360. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5361. t end
  5362. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5363. :end' >>confcache
  5364. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  5365. if test -w "$cache_file"; then
  5366. if test "x$cache_file" != "x/dev/null"; then
  5367. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  5368. $as_echo "$as_me: updating cache $cache_file" >&6;}
  5369. if test ! -f "$cache_file" || test -h "$cache_file"; then
  5370. cat confcache >"$cache_file"
  5371. else
  5372. case $cache_file in #(
  5373. */* | ?:*)
  5374. mv -f confcache "$cache_file"$$ &&
  5375. mv -f "$cache_file"$$ "$cache_file" ;; #(
  5376. *)
  5377. mv -f confcache "$cache_file" ;;
  5378. esac
  5379. fi
  5380. fi
  5381. else
  5382. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  5383. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  5384. fi
  5385. fi
  5386. rm -f confcache
  5387. # Checks for typedefs, structures, and compiler characteristics
  5388. ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  5389. if test "x$ac_cv_type_pid_t" = xyes; then :
  5390. else
  5391. cat >>confdefs.h <<_ACEOF
  5392. #define pid_t int
  5393. _ACEOF
  5394. fi
  5395. ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  5396. if test "x$ac_cv_type_size_t" = xyes; then :
  5397. else
  5398. cat >>confdefs.h <<_ACEOF
  5399. #define size_t unsigned int
  5400. _ACEOF
  5401. fi
  5402. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
  5403. $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
  5404. if ${ac_cv_type_uid_t+:} false; then :
  5405. $as_echo_n "(cached) " >&6
  5406. else
  5407. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5408. /* end confdefs.h. */
  5409. #include <sys/types.h>
  5410. _ACEOF
  5411. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5412. $EGREP "uid_t" >/dev/null 2>&1; then :
  5413. ac_cv_type_uid_t=yes
  5414. else
  5415. ac_cv_type_uid_t=no
  5416. fi
  5417. rm -f conftest*
  5418. fi
  5419. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
  5420. $as_echo "$ac_cv_type_uid_t" >&6; }
  5421. if test $ac_cv_type_uid_t = no; then
  5422. $as_echo "#define uid_t int" >>confdefs.h
  5423. $as_echo "#define gid_t int" >>confdefs.h
  5424. fi
  5425. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
  5426. $as_echo_n "checking for long long int... " >&6; }
  5427. if ${ac_cv_type_long_long_int+:} false; then :
  5428. $as_echo_n "(cached) " >&6
  5429. else
  5430. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5431. /* end confdefs.h. */
  5432. /* For now, do not test the preprocessor; as of 2007 there are too many
  5433. implementations with broken preprocessors. Perhaps this can
  5434. be revisited in 2012. In the meantime, code should not expect
  5435. #if to work with literals wider than 32 bits. */
  5436. /* Test literals. */
  5437. long long int ll = 9223372036854775807ll;
  5438. long long int nll = -9223372036854775807LL;
  5439. unsigned long long int ull = 18446744073709551615ULL;
  5440. /* Test constant expressions. */
  5441. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  5442. ? 1 : -1)];
  5443. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  5444. ? 1 : -1)];
  5445. int i = 63;
  5446. int
  5447. main ()
  5448. {
  5449. /* Test availability of runtime routines for shift and division. */
  5450. long long int llmax = 9223372036854775807ll;
  5451. unsigned long long int ullmax = 18446744073709551615ull;
  5452. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  5453. | (llmax / ll) | (llmax % ll)
  5454. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  5455. | (ullmax / ull) | (ullmax % ull));
  5456. ;
  5457. return 0;
  5458. }
  5459. _ACEOF
  5460. if ac_fn_cxx_try_link "$LINENO"; then :
  5461. if test "$cross_compiling" = yes; then :
  5462. ac_cv_type_long_long_int=yes
  5463. else
  5464. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5465. /* end confdefs.h. */
  5466. #include <limits.h>
  5467. #ifndef LLONG_MAX
  5468. # define HALF \
  5469. (1LL << (sizeof (long long int) * CHAR_BIT - 2))
  5470. # define LLONG_MAX (HALF - 1 + HALF)
  5471. #endif
  5472. int
  5473. main ()
  5474. {
  5475. long long int n = 1;
  5476. int i;
  5477. for (i = 0; ; i++)
  5478. {
  5479. long long int m = n << i;
  5480. if (m >> i != n)
  5481. return 1;
  5482. if (LLONG_MAX / 2 < m)
  5483. break;
  5484. }
  5485. return 0;
  5486. ;
  5487. return 0;
  5488. }
  5489. _ACEOF
  5490. if ac_fn_cxx_try_run "$LINENO"; then :
  5491. ac_cv_type_long_long_int=yes
  5492. else
  5493. ac_cv_type_long_long_int=no
  5494. fi
  5495. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5496. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5497. fi
  5498. else
  5499. ac_cv_type_long_long_int=no
  5500. fi
  5501. rm -f core conftest.err conftest.$ac_objext \
  5502. conftest$ac_exeext conftest.$ac_ext
  5503. fi
  5504. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
  5505. $as_echo "$ac_cv_type_long_long_int" >&6; }
  5506. if test $ac_cv_type_long_long_int = yes; then
  5507. $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
  5508. fi
  5509. ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
  5510. case $ac_cv_c_int8_t in #(
  5511. no|yes) ;; #(
  5512. *)
  5513. cat >>confdefs.h <<_ACEOF
  5514. #define int8_t $ac_cv_c_int8_t
  5515. _ACEOF
  5516. ;;
  5517. esac
  5518. ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
  5519. case $ac_cv_c_uint8_t in #(
  5520. no|yes) ;; #(
  5521. *)
  5522. $as_echo "#define _UINT8_T 1" >>confdefs.h
  5523. cat >>confdefs.h <<_ACEOF
  5524. #define uint8_t $ac_cv_c_uint8_t
  5525. _ACEOF
  5526. ;;
  5527. esac
  5528. ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
  5529. case $ac_cv_c_int16_t in #(
  5530. no|yes) ;; #(
  5531. *)
  5532. cat >>confdefs.h <<_ACEOF
  5533. #define int16_t $ac_cv_c_int16_t
  5534. _ACEOF
  5535. ;;
  5536. esac
  5537. ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
  5538. case $ac_cv_c_uint16_t in #(
  5539. no|yes) ;; #(
  5540. *)
  5541. cat >>confdefs.h <<_ACEOF
  5542. #define uint16_t $ac_cv_c_uint16_t
  5543. _ACEOF
  5544. ;;
  5545. esac
  5546. ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
  5547. case $ac_cv_c_int32_t in #(
  5548. no|yes) ;; #(
  5549. *)
  5550. cat >>confdefs.h <<_ACEOF
  5551. #define int32_t $ac_cv_c_int32_t
  5552. _ACEOF
  5553. ;;
  5554. esac
  5555. ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
  5556. case $ac_cv_c_uint32_t in #(
  5557. no|yes) ;; #(
  5558. *)
  5559. $as_echo "#define _UINT32_T 1" >>confdefs.h
  5560. cat >>confdefs.h <<_ACEOF
  5561. #define uint32_t $ac_cv_c_uint32_t
  5562. _ACEOF
  5563. ;;
  5564. esac
  5565. ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
  5566. case $ac_cv_c_int64_t in #(
  5567. no|yes) ;; #(
  5568. *)
  5569. cat >>confdefs.h <<_ACEOF
  5570. #define int64_t $ac_cv_c_int64_t
  5571. _ACEOF
  5572. ;;
  5573. esac
  5574. ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
  5575. case $ac_cv_c_uint64_t in #(
  5576. no|yes) ;; #(
  5577. *)
  5578. $as_echo "#define _UINT64_T 1" >>confdefs.h
  5579. cat >>confdefs.h <<_ACEOF
  5580. #define uint64_t $ac_cv_c_uint64_t
  5581. _ACEOF
  5582. ;;
  5583. esac
  5584. # The cast to long int works around a bug in the HP C Compiler
  5585. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  5586. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  5587. # This bug is HP SR number 8606223364.
  5588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
  5589. $as_echo_n "checking size of short... " >&6; }
  5590. if ${ac_cv_sizeof_short+:} false; then :
  5591. $as_echo_n "(cached) " >&6
  5592. else
  5593. if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
  5594. else
  5595. if test "$ac_cv_type_short" = yes; then
  5596. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5597. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5598. as_fn_error 77 "cannot compute sizeof (short)
  5599. See \`config.log' for more details" "$LINENO" 5; }
  5600. else
  5601. ac_cv_sizeof_short=0
  5602. fi
  5603. fi
  5604. fi
  5605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
  5606. $as_echo "$ac_cv_sizeof_short" >&6; }
  5607. cat >>confdefs.h <<_ACEOF
  5608. #define SIZEOF_SHORT $ac_cv_sizeof_short
  5609. _ACEOF
  5610. # The cast to long int works around a bug in the HP C Compiler
  5611. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  5612. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  5613. # This bug is HP SR number 8606223364.
  5614. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  5615. $as_echo_n "checking size of int... " >&6; }
  5616. if ${ac_cv_sizeof_int+:} false; then :
  5617. $as_echo_n "(cached) " >&6
  5618. else
  5619. if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
  5620. else
  5621. if test "$ac_cv_type_int" = yes; then
  5622. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5623. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5624. as_fn_error 77 "cannot compute sizeof (int)
  5625. See \`config.log' for more details" "$LINENO" 5; }
  5626. else
  5627. ac_cv_sizeof_int=0
  5628. fi
  5629. fi
  5630. fi
  5631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  5632. $as_echo "$ac_cv_sizeof_int" >&6; }
  5633. cat >>confdefs.h <<_ACEOF
  5634. #define SIZEOF_INT $ac_cv_sizeof_int
  5635. _ACEOF
  5636. # The cast to long int works around a bug in the HP C Compiler
  5637. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  5638. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  5639. # This bug is HP SR number 8606223364.
  5640. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  5641. $as_echo_n "checking size of long... " >&6; }
  5642. if ${ac_cv_sizeof_long+:} false; then :
  5643. $as_echo_n "(cached) " >&6
  5644. else
  5645. if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  5646. else
  5647. if test "$ac_cv_type_long" = yes; then
  5648. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5649. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5650. as_fn_error 77 "cannot compute sizeof (long)
  5651. See \`config.log' for more details" "$LINENO" 5; }
  5652. else
  5653. ac_cv_sizeof_long=0
  5654. fi
  5655. fi
  5656. fi
  5657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  5658. $as_echo "$ac_cv_sizeof_long" >&6; }
  5659. cat >>confdefs.h <<_ACEOF
  5660. #define SIZEOF_LONG $ac_cv_sizeof_long
  5661. _ACEOF
  5662. # The cast to long int works around a bug in the HP C Compiler
  5663. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  5664. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  5665. # This bug is HP SR number 8606223364.
  5666. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
  5667. $as_echo_n "checking size of long long... " >&6; }
  5668. if ${ac_cv_sizeof_long_long+:} false; then :
  5669. $as_echo_n "(cached) " >&6
  5670. else
  5671. if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
  5672. else
  5673. if test "$ac_cv_type_long_long" = yes; then
  5674. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5675. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5676. as_fn_error 77 "cannot compute sizeof (long long)
  5677. See \`config.log' for more details" "$LINENO" 5; }
  5678. else
  5679. ac_cv_sizeof_long_long=0
  5680. fi
  5681. fi
  5682. fi
  5683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
  5684. $as_echo "$ac_cv_sizeof_long_long" >&6; }
  5685. cat >>confdefs.h <<_ACEOF
  5686. #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  5687. _ACEOF
  5688. # The cast to long int works around a bug in the HP C Compiler
  5689. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  5690. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  5691. # This bug is HP SR number 8606223364.
  5692. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
  5693. $as_echo_n "checking size of size_t... " >&6; }
  5694. if ${ac_cv_sizeof_size_t+:} false; then :
  5695. $as_echo_n "(cached) " >&6
  5696. else
  5697. if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
  5698. else
  5699. if test "$ac_cv_type_size_t" = yes; then
  5700. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5701. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5702. as_fn_error 77 "cannot compute sizeof (size_t)
  5703. See \`config.log' for more details" "$LINENO" 5; }
  5704. else
  5705. ac_cv_sizeof_size_t=0
  5706. fi
  5707. fi
  5708. fi
  5709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
  5710. $as_echo "$ac_cv_sizeof_size_t" >&6; }
  5711. cat >>confdefs.h <<_ACEOF
  5712. #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
  5713. _ACEOF
  5714. # The cast to long int works around a bug in the HP C Compiler
  5715. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  5716. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  5717. # This bug is HP SR number 8606223364.
  5718. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ptrdiff_t" >&5
  5719. $as_echo_n "checking size of ptrdiff_t... " >&6; }
  5720. if ${ac_cv_sizeof_ptrdiff_t+:} false; then :
  5721. $as_echo_n "(cached) " >&6
  5722. else
  5723. if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (ptrdiff_t))" "ac_cv_sizeof_ptrdiff_t" "$ac_includes_default"; then :
  5724. else
  5725. if test "$ac_cv_type_ptrdiff_t" = yes; then
  5726. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5727. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5728. as_fn_error 77 "cannot compute sizeof (ptrdiff_t)
  5729. See \`config.log' for more details" "$LINENO" 5; }
  5730. else
  5731. ac_cv_sizeof_ptrdiff_t=0
  5732. fi
  5733. fi
  5734. fi
  5735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ptrdiff_t" >&5
  5736. $as_echo "$ac_cv_sizeof_ptrdiff_t" >&6; }
  5737. cat >>confdefs.h <<_ACEOF
  5738. #define SIZEOF_PTRDIFF_T $ac_cv_sizeof_ptrdiff_t
  5739. _ACEOF
  5740. # The cast to long int works around a bug in the HP C Compiler
  5741. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  5742. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  5743. # This bug is HP SR number 8606223364.
  5744. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
  5745. $as_echo_n "checking size of time_t... " >&6; }
  5746. if ${ac_cv_sizeof_time_t+:} false; then :
  5747. $as_echo_n "(cached) " >&6
  5748. else
  5749. if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then :
  5750. else
  5751. if test "$ac_cv_type_time_t" = yes; then
  5752. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5753. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5754. as_fn_error 77 "cannot compute sizeof (time_t)
  5755. See \`config.log' for more details" "$LINENO" 5; }
  5756. else
  5757. ac_cv_sizeof_time_t=0
  5758. fi
  5759. fi
  5760. fi
  5761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
  5762. $as_echo "$ac_cv_sizeof_time_t" >&6; }
  5763. cat >>confdefs.h <<_ACEOF
  5764. #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
  5765. _ACEOF
  5766. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  5767. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  5768. if ${ac_cv_struct_tm+:} false; then :
  5769. $as_echo_n "(cached) " >&6
  5770. else
  5771. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5772. /* end confdefs.h. */
  5773. #include <sys/types.h>
  5774. #include <time.h>
  5775. int
  5776. main ()
  5777. {
  5778. struct tm tm;
  5779. int *p = &tm.tm_sec;
  5780. return !p;
  5781. ;
  5782. return 0;
  5783. }
  5784. _ACEOF
  5785. if ac_fn_cxx_try_compile "$LINENO"; then :
  5786. ac_cv_struct_tm=time.h
  5787. else
  5788. ac_cv_struct_tm=sys/time.h
  5789. fi
  5790. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5791. fi
  5792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  5793. $as_echo "$ac_cv_struct_tm" >&6; }
  5794. if test $ac_cv_struct_tm = sys/time.h; then
  5795. $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
  5796. fi
  5797. ac_fn_cxx_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
  5798. #include <$ac_cv_struct_tm>
  5799. "
  5800. if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
  5801. cat >>confdefs.h <<_ACEOF
  5802. #define HAVE_STRUCT_TM_TM_ZONE 1
  5803. _ACEOF
  5804. fi
  5805. if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
  5806. $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
  5807. else
  5808. ac_fn_cxx_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
  5809. "
  5810. if test "x$ac_cv_have_decl_tzname" = xyes; then :
  5811. ac_have_decl=1
  5812. else
  5813. ac_have_decl=0
  5814. fi
  5815. cat >>confdefs.h <<_ACEOF
  5816. #define HAVE_DECL_TZNAME $ac_have_decl
  5817. _ACEOF
  5818. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
  5819. $as_echo_n "checking for tzname... " >&6; }
  5820. if ${ac_cv_var_tzname+:} false; then :
  5821. $as_echo_n "(cached) " >&6
  5822. else
  5823. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5824. /* end confdefs.h. */
  5825. #include <time.h>
  5826. #if !HAVE_DECL_TZNAME
  5827. extern char *tzname[];
  5828. #endif
  5829. int
  5830. main ()
  5831. {
  5832. return tzname[0][0];
  5833. ;
  5834. return 0;
  5835. }
  5836. _ACEOF
  5837. if ac_fn_cxx_try_link "$LINENO"; then :
  5838. ac_cv_var_tzname=yes
  5839. else
  5840. ac_cv_var_tzname=no
  5841. fi
  5842. rm -f core conftest.err conftest.$ac_objext \
  5843. conftest$ac_exeext conftest.$ac_ext
  5844. fi
  5845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
  5846. $as_echo "$ac_cv_var_tzname" >&6; }
  5847. if test $ac_cv_var_tzname = yes; then
  5848. $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
  5849. fi
  5850. fi
  5851. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  5852. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  5853. if ${ac_cv_struct_tm+:} false; then :
  5854. $as_echo_n "(cached) " >&6
  5855. else
  5856. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5857. /* end confdefs.h. */
  5858. #include <sys/types.h>
  5859. #include <time.h>
  5860. int
  5861. main ()
  5862. {
  5863. struct tm tm;
  5864. int *p = &tm.tm_sec;
  5865. return !p;
  5866. ;
  5867. return 0;
  5868. }
  5869. _ACEOF
  5870. if ac_fn_cxx_try_compile "$LINENO"; then :
  5871. ac_cv_struct_tm=time.h
  5872. else
  5873. ac_cv_struct_tm=sys/time.h
  5874. fi
  5875. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5876. fi
  5877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  5878. $as_echo "$ac_cv_struct_tm" >&6; }
  5879. if test $ac_cv_struct_tm = sys/time.h; then
  5880. $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
  5881. fi
  5882. # Checks for library functions
  5883. for ac_header in vfork.h
  5884. do :
  5885. ac_fn_cxx_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
  5886. if test "x$ac_cv_header_vfork_h" = xyes; then :
  5887. cat >>confdefs.h <<_ACEOF
  5888. #define HAVE_VFORK_H 1
  5889. _ACEOF
  5890. fi
  5891. done
  5892. for ac_func in fork vfork
  5893. do :
  5894. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5895. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  5896. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  5897. cat >>confdefs.h <<_ACEOF
  5898. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5899. _ACEOF
  5900. fi
  5901. done
  5902. if test "x$ac_cv_func_fork" = xyes; then
  5903. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  5904. $as_echo_n "checking for working fork... " >&6; }
  5905. if ${ac_cv_func_fork_works+:} false; then :
  5906. $as_echo_n "(cached) " >&6
  5907. else
  5908. if test "$cross_compiling" = yes; then :
  5909. ac_cv_func_fork_works=cross
  5910. else
  5911. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5912. /* end confdefs.h. */
  5913. $ac_includes_default
  5914. int
  5915. main ()
  5916. {
  5917. /* By Ruediger Kuhlmann. */
  5918. return fork () < 0;
  5919. ;
  5920. return 0;
  5921. }
  5922. _ACEOF
  5923. if ac_fn_cxx_try_run "$LINENO"; then :
  5924. ac_cv_func_fork_works=yes
  5925. else
  5926. ac_cv_func_fork_works=no
  5927. fi
  5928. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5929. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5930. fi
  5931. fi
  5932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  5933. $as_echo "$ac_cv_func_fork_works" >&6; }
  5934. else
  5935. ac_cv_func_fork_works=$ac_cv_func_fork
  5936. fi
  5937. if test "x$ac_cv_func_fork_works" = xcross; then
  5938. case $host in
  5939. *-*-amigaos* | *-*-msdosdjgpp*)
  5940. # Override, as these systems have only a dummy fork() stub
  5941. ac_cv_func_fork_works=no
  5942. ;;
  5943. *)
  5944. ac_cv_func_fork_works=yes
  5945. ;;
  5946. esac
  5947. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  5948. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  5949. fi
  5950. ac_cv_func_vfork_works=$ac_cv_func_vfork
  5951. if test "x$ac_cv_func_vfork" = xyes; then
  5952. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  5953. $as_echo_n "checking for working vfork... " >&6; }
  5954. if ${ac_cv_func_vfork_works+:} false; then :
  5955. $as_echo_n "(cached) " >&6
  5956. else
  5957. if test "$cross_compiling" = yes; then :
  5958. ac_cv_func_vfork_works=cross
  5959. else
  5960. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5961. /* end confdefs.h. */
  5962. /* Thanks to Paul Eggert for this test. */
  5963. $ac_includes_default
  5964. #include <sys/wait.h>
  5965. #ifdef HAVE_VFORK_H
  5966. # include <vfork.h>
  5967. #endif
  5968. /* On some sparc systems, changes by the child to local and incoming
  5969. argument registers are propagated back to the parent. The compiler
  5970. is told about this with #include <vfork.h>, but some compilers
  5971. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  5972. static variable whose address is put into a register that is
  5973. clobbered by the vfork. */
  5974. static void
  5975. #ifdef __cplusplus
  5976. sparc_address_test (int arg)
  5977. # else
  5978. sparc_address_test (arg) int arg;
  5979. #endif
  5980. {
  5981. static pid_t child;
  5982. if (!child) {
  5983. child = vfork ();
  5984. if (child < 0) {
  5985. perror ("vfork");
  5986. _exit(2);
  5987. }
  5988. if (!child) {
  5989. arg = getpid();
  5990. write(-1, "", 0);
  5991. _exit (arg);
  5992. }
  5993. }
  5994. }
  5995. int
  5996. main ()
  5997. {
  5998. pid_t parent = getpid ();
  5999. pid_t child;
  6000. sparc_address_test (0);
  6001. child = vfork ();
  6002. if (child == 0) {
  6003. /* Here is another test for sparc vfork register problems. This
  6004. test uses lots of local variables, at least as many local
  6005. variables as main has allocated so far including compiler
  6006. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  6007. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  6008. reuse the register of parent for one of the local variables,
  6009. since it will think that parent can't possibly be used any more
  6010. in this routine. Assigning to the local variable will thus
  6011. munge parent in the parent process. */
  6012. pid_t
  6013. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  6014. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  6015. /* Convince the compiler that p..p7 are live; otherwise, it might
  6016. use the same hardware register for all 8 local variables. */
  6017. if (p != p1 || p != p2 || p != p3 || p != p4
  6018. || p != p5 || p != p6 || p != p7)
  6019. _exit(1);
  6020. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  6021. from child file descriptors. If the child closes a descriptor
  6022. before it execs or exits, this munges the parent's descriptor
  6023. as well. Test for this by closing stdout in the child. */
  6024. _exit(close(fileno(stdout)) != 0);
  6025. } else {
  6026. int status;
  6027. struct stat st;
  6028. while (wait(&status) != child)
  6029. ;
  6030. return (
  6031. /* Was there some problem with vforking? */
  6032. child < 0
  6033. /* Did the child fail? (This shouldn't happen.) */
  6034. || status
  6035. /* Did the vfork/compiler bug occur? */
  6036. || parent != getpid()
  6037. /* Did the file descriptor bug occur? */
  6038. || fstat(fileno(stdout), &st) != 0
  6039. );
  6040. }
  6041. }
  6042. _ACEOF
  6043. if ac_fn_cxx_try_run "$LINENO"; then :
  6044. ac_cv_func_vfork_works=yes
  6045. else
  6046. ac_cv_func_vfork_works=no
  6047. fi
  6048. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6049. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6050. fi
  6051. fi
  6052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  6053. $as_echo "$ac_cv_func_vfork_works" >&6; }
  6054. fi;
  6055. if test "x$ac_cv_func_fork_works" = xcross; then
  6056. ac_cv_func_vfork_works=$ac_cv_func_vfork
  6057. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  6058. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  6059. fi
  6060. if test "x$ac_cv_func_vfork_works" = xyes; then
  6061. $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
  6062. else
  6063. $as_echo "#define vfork fork" >>confdefs.h
  6064. fi
  6065. if test "x$ac_cv_func_fork_works" = xyes; then
  6066. $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
  6067. fi
  6068. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
  6069. $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
  6070. if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
  6071. $as_echo_n "(cached) " >&6
  6072. else
  6073. rm -f conftest.sym conftest.file
  6074. echo >conftest.file
  6075. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  6076. if test "$cross_compiling" = yes; then :
  6077. ac_cv_func_lstat_dereferences_slashed_symlink=no
  6078. else
  6079. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6080. /* end confdefs.h. */
  6081. $ac_includes_default
  6082. int
  6083. main ()
  6084. {
  6085. struct stat sbuf;
  6086. /* Linux will dereference the symlink and fail, as required by POSIX.
  6087. That is better in the sense that it means we will not
  6088. have to compile and use the lstat wrapper. */
  6089. return lstat ("conftest.sym/", &sbuf) == 0;
  6090. ;
  6091. return 0;
  6092. }
  6093. _ACEOF
  6094. if ac_fn_cxx_try_run "$LINENO"; then :
  6095. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  6096. else
  6097. ac_cv_func_lstat_dereferences_slashed_symlink=no
  6098. fi
  6099. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6100. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6101. fi
  6102. else
  6103. # If the `ln -s' command failed, then we probably don't even
  6104. # have an lstat function.
  6105. ac_cv_func_lstat_dereferences_slashed_symlink=no
  6106. fi
  6107. rm -f conftest.sym conftest.file
  6108. fi
  6109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  6110. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  6111. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  6112. cat >>confdefs.h <<_ACEOF
  6113. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  6114. _ACEOF
  6115. if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
  6116. case " $LIBOBJS " in
  6117. *" lstat.$ac_objext "* ) ;;
  6118. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  6119. ;;
  6120. esac
  6121. fi
  6122. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
  6123. $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
  6124. if ${ac_cv_func_lstat_empty_string_bug+:} false; then :
  6125. $as_echo_n "(cached) " >&6
  6126. else
  6127. if test "$cross_compiling" = yes; then :
  6128. ac_cv_func_lstat_empty_string_bug=yes
  6129. else
  6130. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6131. /* end confdefs.h. */
  6132. $ac_includes_default
  6133. int
  6134. main ()
  6135. {
  6136. struct stat sbuf;
  6137. return lstat ("", &sbuf) == 0;
  6138. ;
  6139. return 0;
  6140. }
  6141. _ACEOF
  6142. if ac_fn_cxx_try_run "$LINENO"; then :
  6143. ac_cv_func_lstat_empty_string_bug=no
  6144. else
  6145. ac_cv_func_lstat_empty_string_bug=yes
  6146. fi
  6147. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6148. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6149. fi
  6150. fi
  6151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
  6152. $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
  6153. if test $ac_cv_func_lstat_empty_string_bug = yes; then
  6154. case " $LIBOBJS " in
  6155. *" lstat.$ac_objext "* ) ;;
  6156. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  6157. ;;
  6158. esac
  6159. cat >>confdefs.h <<_ACEOF
  6160. #define HAVE_LSTAT_EMPTY_STRING_BUG 1
  6161. _ACEOF
  6162. fi
  6163. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
  6164. $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
  6165. if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
  6166. $as_echo_n "(cached) " >&6
  6167. else
  6168. rm -f conftest.sym conftest.file
  6169. echo >conftest.file
  6170. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  6171. if test "$cross_compiling" = yes; then :
  6172. ac_cv_func_lstat_dereferences_slashed_symlink=no
  6173. else
  6174. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6175. /* end confdefs.h. */
  6176. $ac_includes_default
  6177. int
  6178. main ()
  6179. {
  6180. struct stat sbuf;
  6181. /* Linux will dereference the symlink and fail, as required by POSIX.
  6182. That is better in the sense that it means we will not
  6183. have to compile and use the lstat wrapper. */
  6184. return lstat ("conftest.sym/", &sbuf) == 0;
  6185. ;
  6186. return 0;
  6187. }
  6188. _ACEOF
  6189. if ac_fn_cxx_try_run "$LINENO"; then :
  6190. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  6191. else
  6192. ac_cv_func_lstat_dereferences_slashed_symlink=no
  6193. fi
  6194. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6195. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6196. fi
  6197. else
  6198. # If the `ln -s' command failed, then we probably don't even
  6199. # have an lstat function.
  6200. ac_cv_func_lstat_dereferences_slashed_symlink=no
  6201. fi
  6202. rm -f conftest.sym conftest.file
  6203. fi
  6204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  6205. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  6206. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  6207. cat >>confdefs.h <<_ACEOF
  6208. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  6209. _ACEOF
  6210. if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
  6211. case " $LIBOBJS " in
  6212. *" lstat.$ac_objext "* ) ;;
  6213. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  6214. ;;
  6215. esac
  6216. fi
  6217. for ac_header in stdlib.h
  6218. do :
  6219. ac_fn_cxx_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  6220. if test "x$ac_cv_header_stdlib_h" = xyes; then :
  6221. cat >>confdefs.h <<_ACEOF
  6222. #define HAVE_STDLIB_H 1
  6223. _ACEOF
  6224. fi
  6225. done
  6226. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
  6227. $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
  6228. if ${ac_cv_func_malloc_0_nonnull+:} false; then :
  6229. $as_echo_n "(cached) " >&6
  6230. else
  6231. if test "$cross_compiling" = yes; then :
  6232. ac_cv_func_malloc_0_nonnull=no
  6233. else
  6234. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6235. /* end confdefs.h. */
  6236. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  6237. # include <stdlib.h>
  6238. #else
  6239. char *malloc ();
  6240. #endif
  6241. int
  6242. main ()
  6243. {
  6244. return ! malloc (0);
  6245. ;
  6246. return 0;
  6247. }
  6248. _ACEOF
  6249. if ac_fn_cxx_try_run "$LINENO"; then :
  6250. ac_cv_func_malloc_0_nonnull=yes
  6251. else
  6252. ac_cv_func_malloc_0_nonnull=no
  6253. fi
  6254. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6255. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6256. fi
  6257. fi
  6258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
  6259. $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
  6260. if test $ac_cv_func_malloc_0_nonnull = yes; then :
  6261. $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
  6262. else
  6263. $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
  6264. case " $LIBOBJS " in
  6265. *" malloc.$ac_objext "* ) ;;
  6266. *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
  6267. ;;
  6268. esac
  6269. $as_echo "#define malloc rpl_malloc" >>confdefs.h
  6270. fi
  6271. for ac_header in $ac_header_list
  6272. do :
  6273. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6274. ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6275. "
  6276. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6277. cat >>confdefs.h <<_ACEOF
  6278. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6279. _ACEOF
  6280. fi
  6281. done
  6282. for ac_func in $ac_func_list
  6283. do :
  6284. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6285. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  6286. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  6287. cat >>confdefs.h <<_ACEOF
  6288. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6289. _ACEOF
  6290. fi
  6291. done
  6292. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
  6293. $as_echo_n "checking for working mktime... " >&6; }
  6294. if ${ac_cv_func_working_mktime+:} false; then :
  6295. $as_echo_n "(cached) " >&6
  6296. else
  6297. if test "$cross_compiling" = yes; then :
  6298. ac_cv_func_working_mktime=no
  6299. else
  6300. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6301. /* end confdefs.h. */
  6302. /* Test program from Paul Eggert and Tony Leneis. */
  6303. #ifdef TIME_WITH_SYS_TIME
  6304. # include <sys/time.h>
  6305. # include <time.h>
  6306. #else
  6307. # ifdef HAVE_SYS_TIME_H
  6308. # include <sys/time.h>
  6309. # else
  6310. # include <time.h>
  6311. # endif
  6312. #endif
  6313. #include <limits.h>
  6314. #include <stdlib.h>
  6315. #ifdef HAVE_UNISTD_H
  6316. # include <unistd.h>
  6317. #endif
  6318. #ifndef HAVE_ALARM
  6319. # define alarm(X) /* empty */
  6320. #endif
  6321. /* Work around redefinition to rpl_putenv by other config tests. */
  6322. #undef putenv
  6323. static time_t time_t_max;
  6324. static time_t time_t_min;
  6325. /* Values we'll use to set the TZ environment variable. */
  6326. static const char *tz_strings[] = {
  6327. (const char *) 0, "TZ=GMT0", "TZ=JST-9",
  6328. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  6329. };
  6330. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  6331. /* Return 0 if mktime fails to convert a date in the spring-forward gap.
  6332. Based on a problem report from Andreas Jaeger. */
  6333. static int
  6334. spring_forward_gap ()
  6335. {
  6336. /* glibc (up to about 1998-10-07) failed this test. */
  6337. struct tm tm;
  6338. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  6339. instead of "TZ=America/Vancouver" in order to detect the bug even
  6340. on systems that don't support the Olson extension, or don't have the
  6341. full zoneinfo tables installed. */
  6342. putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
  6343. tm.tm_year = 98;
  6344. tm.tm_mon = 3;
  6345. tm.tm_mday = 5;
  6346. tm.tm_hour = 2;
  6347. tm.tm_min = 0;
  6348. tm.tm_sec = 0;
  6349. tm.tm_isdst = -1;
  6350. return mktime (&tm) != (time_t) -1;
  6351. }
  6352. static int
  6353. mktime_test1 (time_t now)
  6354. {
  6355. struct tm *lt;
  6356. return ! (lt = localtime (&now)) || mktime (lt) == now;
  6357. }
  6358. static int
  6359. mktime_test (time_t now)
  6360. {
  6361. return (mktime_test1 (now)
  6362. && mktime_test1 ((time_t) (time_t_max - now))
  6363. && mktime_test1 ((time_t) (time_t_min + now)));
  6364. }
  6365. static int
  6366. irix_6_4_bug ()
  6367. {
  6368. /* Based on code from Ariel Faigon. */
  6369. struct tm tm;
  6370. tm.tm_year = 96;
  6371. tm.tm_mon = 3;
  6372. tm.tm_mday = 0;
  6373. tm.tm_hour = 0;
  6374. tm.tm_min = 0;
  6375. tm.tm_sec = 0;
  6376. tm.tm_isdst = -1;
  6377. mktime (&tm);
  6378. return tm.tm_mon == 2 && tm.tm_mday == 31;
  6379. }
  6380. static int
  6381. bigtime_test (int j)
  6382. {
  6383. struct tm tm;
  6384. time_t now;
  6385. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  6386. now = mktime (&tm);
  6387. if (now != (time_t) -1)
  6388. {
  6389. struct tm *lt = localtime (&now);
  6390. if (! (lt
  6391. && lt->tm_year == tm.tm_year
  6392. && lt->tm_mon == tm.tm_mon
  6393. && lt->tm_mday == tm.tm_mday
  6394. && lt->tm_hour == tm.tm_hour
  6395. && lt->tm_min == tm.tm_min
  6396. && lt->tm_sec == tm.tm_sec
  6397. && lt->tm_yday == tm.tm_yday
  6398. && lt->tm_wday == tm.tm_wday
  6399. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  6400. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  6401. return 0;
  6402. }
  6403. return 1;
  6404. }
  6405. static int
  6406. year_2050_test ()
  6407. {
  6408. /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
  6409. ignoring leap seconds. */
  6410. unsigned long int answer = 2527315200UL;
  6411. struct tm tm;
  6412. time_t t;
  6413. tm.tm_year = 2050 - 1900;
  6414. tm.tm_mon = 2 - 1;
  6415. tm.tm_mday = 1;
  6416. tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
  6417. tm.tm_isdst = -1;
  6418. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  6419. instead of "TZ=America/Vancouver" in order to detect the bug even
  6420. on systems that don't support the Olson extension, or don't have the
  6421. full zoneinfo tables installed. */
  6422. putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
  6423. t = mktime (&tm);
  6424. /* Check that the result is either a failure, or close enough
  6425. to the correct answer that we can assume the discrepancy is
  6426. due to leap seconds. */
  6427. return (t == (time_t) -1
  6428. || (0 < t && answer - 120 <= t && t <= answer + 120));
  6429. }
  6430. int
  6431. main ()
  6432. {
  6433. time_t t, delta;
  6434. int i, j;
  6435. /* This test makes some buggy mktime implementations loop.
  6436. Give up after 60 seconds; a mktime slower than that
  6437. isn't worth using anyway. */
  6438. alarm (60);
  6439. for (;;)
  6440. {
  6441. t = (time_t_max << 1) + 1;
  6442. if (t <= time_t_max)
  6443. break;
  6444. time_t_max = t;
  6445. }
  6446. time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
  6447. delta = time_t_max / 997; /* a suitable prime number */
  6448. for (i = 0; i < N_STRINGS; i++)
  6449. {
  6450. if (tz_strings[i])
  6451. putenv ((char*) tz_strings[i]);
  6452. for (t = 0; t <= time_t_max - delta; t += delta)
  6453. if (! mktime_test (t))
  6454. return 1;
  6455. if (! (mktime_test ((time_t) 1)
  6456. && mktime_test ((time_t) (60 * 60))
  6457. && mktime_test ((time_t) (60 * 60 * 24))))
  6458. return 1;
  6459. for (j = 1; ; j <<= 1)
  6460. if (! bigtime_test (j))
  6461. return 1;
  6462. else if (INT_MAX / 2 < j)
  6463. break;
  6464. if (! bigtime_test (INT_MAX))
  6465. return 1;
  6466. }
  6467. return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
  6468. }
  6469. _ACEOF
  6470. if ac_fn_cxx_try_run "$LINENO"; then :
  6471. ac_cv_func_working_mktime=yes
  6472. else
  6473. ac_cv_func_working_mktime=no
  6474. fi
  6475. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6476. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6477. fi
  6478. fi
  6479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
  6480. $as_echo "$ac_cv_func_working_mktime" >&6; }
  6481. if test $ac_cv_func_working_mktime = no; then
  6482. case " $LIBOBJS " in
  6483. *" mktime.$ac_objext "* ) ;;
  6484. *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
  6485. ;;
  6486. esac
  6487. fi
  6488. for ac_func in getpagesize
  6489. do :
  6490. ac_fn_cxx_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  6491. if test "x$ac_cv_func_getpagesize" = xyes; then :
  6492. cat >>confdefs.h <<_ACEOF
  6493. #define HAVE_GETPAGESIZE 1
  6494. _ACEOF
  6495. fi
  6496. done
  6497. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  6498. $as_echo_n "checking for working mmap... " >&6; }
  6499. if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
  6500. $as_echo_n "(cached) " >&6
  6501. else
  6502. if test "$cross_compiling" = yes; then :
  6503. ac_cv_func_mmap_fixed_mapped=no
  6504. else
  6505. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6506. /* end confdefs.h. */
  6507. $ac_includes_default
  6508. /* malloc might have been renamed as rpl_malloc. */
  6509. #undef malloc
  6510. /* Thanks to Mike Haertel and Jim Avera for this test.
  6511. Here is a matrix of mmap possibilities:
  6512. mmap private not fixed
  6513. mmap private fixed at somewhere currently unmapped
  6514. mmap private fixed at somewhere already mapped
  6515. mmap shared not fixed
  6516. mmap shared fixed at somewhere currently unmapped
  6517. mmap shared fixed at somewhere already mapped
  6518. For private mappings, we should verify that changes cannot be read()
  6519. back from the file, nor mmap's back from the file at a different
  6520. address. (There have been systems where private was not correctly
  6521. implemented like the infamous i386 svr4.0, and systems where the
  6522. VM page cache was not coherent with the file system buffer cache
  6523. like early versions of FreeBSD and possibly contemporary NetBSD.)
  6524. For shared mappings, we should conversely verify that changes get
  6525. propagated back to all the places they're supposed to be.
  6526. Grep wants private fixed already mapped.
  6527. The main things grep needs to know about mmap are:
  6528. * does it exist and is it safe to write into the mmap'd area
  6529. * how to use it (BSD variants) */
  6530. #include <fcntl.h>
  6531. #include <sys/mman.h>
  6532. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  6533. char *malloc ();
  6534. #endif
  6535. /* This mess was copied from the GNU getpagesize.h. */
  6536. #ifndef HAVE_GETPAGESIZE
  6537. # ifdef _SC_PAGESIZE
  6538. # define getpagesize() sysconf(_SC_PAGESIZE)
  6539. # else /* no _SC_PAGESIZE */
  6540. # ifdef HAVE_SYS_PARAM_H
  6541. # include <sys/param.h>
  6542. # ifdef EXEC_PAGESIZE
  6543. # define getpagesize() EXEC_PAGESIZE
  6544. # else /* no EXEC_PAGESIZE */
  6545. # ifdef NBPG
  6546. # define getpagesize() NBPG * CLSIZE
  6547. # ifndef CLSIZE
  6548. # define CLSIZE 1
  6549. # endif /* no CLSIZE */
  6550. # else /* no NBPG */
  6551. # ifdef NBPC
  6552. # define getpagesize() NBPC
  6553. # else /* no NBPC */
  6554. # ifdef PAGESIZE
  6555. # define getpagesize() PAGESIZE
  6556. # endif /* PAGESIZE */
  6557. # endif /* no NBPC */
  6558. # endif /* no NBPG */
  6559. # endif /* no EXEC_PAGESIZE */
  6560. # else /* no HAVE_SYS_PARAM_H */
  6561. # define getpagesize() 8192 /* punt totally */
  6562. # endif /* no HAVE_SYS_PARAM_H */
  6563. # endif /* no _SC_PAGESIZE */
  6564. #endif /* no HAVE_GETPAGESIZE */
  6565. int
  6566. main ()
  6567. {
  6568. char *data, *data2, *data3;
  6569. const char *cdata2;
  6570. int i, pagesize;
  6571. int fd, fd2;
  6572. pagesize = getpagesize ();
  6573. /* First, make a file with some known garbage in it. */
  6574. data = (char *) malloc (pagesize);
  6575. if (!data)
  6576. return 1;
  6577. for (i = 0; i < pagesize; ++i)
  6578. *(data + i) = rand ();
  6579. umask (0);
  6580. fd = creat ("conftest.mmap", 0600);
  6581. if (fd < 0)
  6582. return 2;
  6583. if (write (fd, data, pagesize) != pagesize)
  6584. return 3;
  6585. close (fd);
  6586. /* Next, check that the tail of a page is zero-filled. File must have
  6587. non-zero length, otherwise we risk SIGBUS for entire page. */
  6588. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  6589. if (fd2 < 0)
  6590. return 4;
  6591. cdata2 = "";
  6592. if (write (fd2, cdata2, 1) != 1)
  6593. return 5;
  6594. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  6595. if (data2 == MAP_FAILED)
  6596. return 6;
  6597. for (i = 0; i < pagesize; ++i)
  6598. if (*(data2 + i))
  6599. return 7;
  6600. close (fd2);
  6601. if (munmap (data2, pagesize))
  6602. return 8;
  6603. /* Next, try to mmap the file at a fixed address which already has
  6604. something else allocated at it. If we can, also make sure that
  6605. we see the same garbage. */
  6606. fd = open ("conftest.mmap", O_RDWR);
  6607. if (fd < 0)
  6608. return 9;
  6609. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  6610. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  6611. return 10;
  6612. for (i = 0; i < pagesize; ++i)
  6613. if (*(data + i) != *(data2 + i))
  6614. return 11;
  6615. /* Finally, make sure that changes to the mapped area do not
  6616. percolate back to the file as seen by read(). (This is a bug on
  6617. some variants of i386 svr4.0.) */
  6618. for (i = 0; i < pagesize; ++i)
  6619. *(data2 + i) = *(data2 + i) + 1;
  6620. data3 = (char *) malloc (pagesize);
  6621. if (!data3)
  6622. return 12;
  6623. if (read (fd, data3, pagesize) != pagesize)
  6624. return 13;
  6625. for (i = 0; i < pagesize; ++i)
  6626. if (*(data + i) != *(data3 + i))
  6627. return 14;
  6628. close (fd);
  6629. return 0;
  6630. }
  6631. _ACEOF
  6632. if ac_fn_cxx_try_run "$LINENO"; then :
  6633. ac_cv_func_mmap_fixed_mapped=yes
  6634. else
  6635. ac_cv_func_mmap_fixed_mapped=no
  6636. fi
  6637. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6638. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6639. fi
  6640. fi
  6641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  6642. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  6643. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  6644. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  6645. fi
  6646. rm -f conftest.mmap conftest.txt
  6647. for ac_header in stdlib.h
  6648. do :
  6649. ac_fn_cxx_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  6650. if test "x$ac_cv_header_stdlib_h" = xyes; then :
  6651. cat >>confdefs.h <<_ACEOF
  6652. #define HAVE_STDLIB_H 1
  6653. _ACEOF
  6654. fi
  6655. done
  6656. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
  6657. $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
  6658. if ${ac_cv_func_realloc_0_nonnull+:} false; then :
  6659. $as_echo_n "(cached) " >&6
  6660. else
  6661. if test "$cross_compiling" = yes; then :
  6662. ac_cv_func_realloc_0_nonnull=no
  6663. else
  6664. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6665. /* end confdefs.h. */
  6666. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  6667. # include <stdlib.h>
  6668. #else
  6669. char *realloc ();
  6670. #endif
  6671. int
  6672. main ()
  6673. {
  6674. return ! realloc (0, 0);
  6675. ;
  6676. return 0;
  6677. }
  6678. _ACEOF
  6679. if ac_fn_cxx_try_run "$LINENO"; then :
  6680. ac_cv_func_realloc_0_nonnull=yes
  6681. else
  6682. ac_cv_func_realloc_0_nonnull=no
  6683. fi
  6684. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6685. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6686. fi
  6687. fi
  6688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
  6689. $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
  6690. if test $ac_cv_func_realloc_0_nonnull = yes; then :
  6691. $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
  6692. else
  6693. $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
  6694. case " $LIBOBJS " in
  6695. *" realloc.$ac_objext "* ) ;;
  6696. *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
  6697. ;;
  6698. esac
  6699. $as_echo "#define realloc rpl_realloc" >>confdefs.h
  6700. fi
  6701. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
  6702. $as_echo_n "checking whether stat accepts an empty string... " >&6; }
  6703. if ${ac_cv_func_stat_empty_string_bug+:} false; then :
  6704. $as_echo_n "(cached) " >&6
  6705. else
  6706. if test "$cross_compiling" = yes; then :
  6707. ac_cv_func_stat_empty_string_bug=yes
  6708. else
  6709. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6710. /* end confdefs.h. */
  6711. $ac_includes_default
  6712. int
  6713. main ()
  6714. {
  6715. struct stat sbuf;
  6716. return stat ("", &sbuf) == 0;
  6717. ;
  6718. return 0;
  6719. }
  6720. _ACEOF
  6721. if ac_fn_cxx_try_run "$LINENO"; then :
  6722. ac_cv_func_stat_empty_string_bug=no
  6723. else
  6724. ac_cv_func_stat_empty_string_bug=yes
  6725. fi
  6726. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6727. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6728. fi
  6729. fi
  6730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
  6731. $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
  6732. if test $ac_cv_func_stat_empty_string_bug = yes; then
  6733. case " $LIBOBJS " in
  6734. *" stat.$ac_objext "* ) ;;
  6735. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  6736. ;;
  6737. esac
  6738. cat >>confdefs.h <<_ACEOF
  6739. #define HAVE_STAT_EMPTY_STRING_BUG 1
  6740. _ACEOF
  6741. fi
  6742. ac_fn_cxx_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "#include <sys/types.h>
  6743. #include <sys/time.h>
  6744. #include <time.h>
  6745. "
  6746. if test "x$ac_cv_type_struct_timespec" = xyes; then :
  6747. $as_echo "#define HAVE_TIMESPEC 1" >>confdefs.h
  6748. fi
  6749. if test X"$ac_cv_type_struct_timespec" != X"no"; then
  6750. ac_fn_cxx_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
  6751. if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
  6752. $as_echo "#define HAVE_ST_MTIM 1" >>confdefs.h
  6753. else
  6754. ac_fn_cxx_check_member "$LINENO" "struct stat" "st_mtimespec" "ac_cv_member_struct_stat_st_mtimespec" "$ac_includes_default"
  6755. if test "x$ac_cv_member_struct_stat_st_mtimespec" = xyes; then :
  6756. $as_echo "#define HAVE_ST_MTIMESPEC 1" >>confdefs.h
  6757. fi
  6758. fi
  6759. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for two-parameter timespecsub" >&5
  6760. $as_echo_n "checking for two-parameter timespecsub... " >&6; }
  6761. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6762. /* end confdefs.h. */
  6763. #include <sys/types.h>
  6764. #include <sys/time.h>
  6765. int
  6766. main ()
  6767. {
  6768. struct timespec ts1, ts2;
  6769. ts1.tv_sec = 1; ts1.tv_nsec = 0; ts2.tv_sec = 0; ts2.tv_nsec = 0;
  6770. #ifndef timespecsub
  6771. #error missing timespecsub
  6772. #endif
  6773. timespecsub(&ts1, &ts2);
  6774. ;
  6775. return 0;
  6776. }
  6777. _ACEOF
  6778. if ac_fn_cxx_try_compile "$LINENO"; then :
  6779. $as_echo "#define HAVE_TIMESPECSUB2 1" >>confdefs.h
  6780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6781. $as_echo "yes" >&6; }
  6782. else
  6783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6784. $as_echo "no" >&6; }
  6785. fi
  6786. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6787. fi
  6788. for ac_func in strftime
  6789. do :
  6790. ac_fn_cxx_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
  6791. if test "x$ac_cv_func_strftime" = xyes; then :
  6792. cat >>confdefs.h <<_ACEOF
  6793. #define HAVE_STRFTIME 1
  6794. _ACEOF
  6795. else
  6796. # strftime is in -lintl on SCO UNIX.
  6797. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
  6798. $as_echo_n "checking for strftime in -lintl... " >&6; }
  6799. if ${ac_cv_lib_intl_strftime+:} false; then :
  6800. $as_echo_n "(cached) " >&6
  6801. else
  6802. ac_check_lib_save_LIBS=$LIBS
  6803. LIBS="-lintl $LIBS"
  6804. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6805. /* end confdefs.h. */
  6806. /* Override any GCC internal prototype to avoid an error.
  6807. Use char because int might match the return type of a GCC
  6808. builtin and then its argument prototype would still apply. */
  6809. #ifdef __cplusplus
  6810. extern "C"
  6811. #endif
  6812. char strftime ();
  6813. int
  6814. main ()
  6815. {
  6816. return strftime ();
  6817. ;
  6818. return 0;
  6819. }
  6820. _ACEOF
  6821. if ac_fn_cxx_try_link "$LINENO"; then :
  6822. ac_cv_lib_intl_strftime=yes
  6823. else
  6824. ac_cv_lib_intl_strftime=no
  6825. fi
  6826. rm -f core conftest.err conftest.$ac_objext \
  6827. conftest$ac_exeext conftest.$ac_ext
  6828. LIBS=$ac_check_lib_save_LIBS
  6829. fi
  6830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
  6831. $as_echo "$ac_cv_lib_intl_strftime" >&6; }
  6832. if test "x$ac_cv_lib_intl_strftime" = xyes; then :
  6833. $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
  6834. LIBS="-lintl $LIBS"
  6835. fi
  6836. fi
  6837. done
  6838. #checkpoint
  6839. cat >confcache <<\_ACEOF
  6840. # This file is a shell script that caches the results of configure
  6841. # tests run on this system so they can be shared between configure
  6842. # scripts and configure runs, see configure's option --config-cache.
  6843. # It is not useful on other systems. If it contains results you don't
  6844. # want to keep, you may remove or edit it.
  6845. #
  6846. # config.status only pays attention to the cache file if you give it
  6847. # the --recheck option to rerun configure.
  6848. #
  6849. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  6850. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  6851. # following values.
  6852. _ACEOF
  6853. # The following way of writing the cache mishandles newlines in values,
  6854. # but we know of no workaround that is simple, portable, and efficient.
  6855. # So, we kill variables containing newlines.
  6856. # Ultrix sh set writes to stderr and can't be redirected directly,
  6857. # and sets the high bit in the cache file unless we assign to the vars.
  6858. (
  6859. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  6860. eval ac_val=\$$ac_var
  6861. case $ac_val in #(
  6862. *${as_nl}*)
  6863. case $ac_var in #(
  6864. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  6865. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  6866. esac
  6867. case $ac_var in #(
  6868. _ | IFS | as_nl) ;; #(
  6869. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  6870. *) { eval $ac_var=; unset $ac_var;} ;;
  6871. esac ;;
  6872. esac
  6873. done
  6874. (set) 2>&1 |
  6875. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  6876. *${as_nl}ac_space=\ *)
  6877. # `set' does not quote correctly, so add quotes: double-quote
  6878. # substitution turns \\\\ into \\, and sed turns \\ into \.
  6879. sed -n \
  6880. "s/'/'\\\\''/g;
  6881. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  6882. ;; #(
  6883. *)
  6884. # `set' quotes correctly as required by POSIX, so do not add quotes.
  6885. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  6886. ;;
  6887. esac |
  6888. sort
  6889. ) |
  6890. sed '
  6891. /^ac_cv_env_/b end
  6892. t clear
  6893. :clear
  6894. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  6895. t end
  6896. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  6897. :end' >>confcache
  6898. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  6899. if test -w "$cache_file"; then
  6900. if test "x$cache_file" != "x/dev/null"; then
  6901. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  6902. $as_echo "$as_me: updating cache $cache_file" >&6;}
  6903. if test ! -f "$cache_file" || test -h "$cache_file"; then
  6904. cat confcache >"$cache_file"
  6905. else
  6906. case $cache_file in #(
  6907. */* | ?:*)
  6908. mv -f confcache "$cache_file"$$ &&
  6909. mv -f "$cache_file"$$ "$cache_file" ;; #(
  6910. *)
  6911. mv -f confcache "$cache_file" ;;
  6912. esac
  6913. fi
  6914. fi
  6915. else
  6916. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  6917. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  6918. fi
  6919. fi
  6920. rm -f confcache
  6921. for ac_func in clock fsync getrusage isascii getpassphrase
  6922. do :
  6923. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6924. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  6925. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  6926. cat >>confdefs.h <<_ACEOF
  6927. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6928. _ACEOF
  6929. fi
  6930. done
  6931. for ac_func in memcpy memset random rename snprintf srandom gettime
  6932. do :
  6933. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6934. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  6935. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  6936. cat >>confdefs.h <<_ACEOF
  6937. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6938. _ACEOF
  6939. fi
  6940. done
  6941. #checkpoint
  6942. cat >confcache <<\_ACEOF
  6943. # This file is a shell script that caches the results of configure
  6944. # tests run on this system so they can be shared between configure
  6945. # scripts and configure runs, see configure's option --config-cache.
  6946. # It is not useful on other systems. If it contains results you don't
  6947. # want to keep, you may remove or edit it.
  6948. #
  6949. # config.status only pays attention to the cache file if you give it
  6950. # the --recheck option to rerun configure.
  6951. #
  6952. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  6953. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  6954. # following values.
  6955. _ACEOF
  6956. # The following way of writing the cache mishandles newlines in values,
  6957. # but we know of no workaround that is simple, portable, and efficient.
  6958. # So, we kill variables containing newlines.
  6959. # Ultrix sh set writes to stderr and can't be redirected directly,
  6960. # and sets the high bit in the cache file unless we assign to the vars.
  6961. (
  6962. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  6963. eval ac_val=\$$ac_var
  6964. case $ac_val in #(
  6965. *${as_nl}*)
  6966. case $ac_var in #(
  6967. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  6968. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  6969. esac
  6970. case $ac_var in #(
  6971. _ | IFS | as_nl) ;; #(
  6972. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  6973. *) { eval $ac_var=; unset $ac_var;} ;;
  6974. esac ;;
  6975. esac
  6976. done
  6977. (set) 2>&1 |
  6978. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  6979. *${as_nl}ac_space=\ *)
  6980. # `set' does not quote correctly, so add quotes: double-quote
  6981. # substitution turns \\\\ into \\, and sed turns \\ into \.
  6982. sed -n \
  6983. "s/'/'\\\\''/g;
  6984. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  6985. ;; #(
  6986. *)
  6987. # `set' quotes correctly as required by POSIX, so do not add quotes.
  6988. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  6989. ;;
  6990. esac |
  6991. sort
  6992. ) |
  6993. sed '
  6994. /^ac_cv_env_/b end
  6995. t clear
  6996. :clear
  6997. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  6998. t end
  6999. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7000. :end' >>confcache
  7001. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  7002. if test -w "$cache_file"; then
  7003. if test "x$cache_file" != "x/dev/null"; then
  7004. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  7005. $as_echo "$as_me: updating cache $cache_file" >&6;}
  7006. if test ! -f "$cache_file" || test -h "$cache_file"; then
  7007. cat confcache >"$cache_file"
  7008. else
  7009. case $cache_file in #(
  7010. */* | ?:*)
  7011. mv -f confcache "$cache_file"$$ &&
  7012. mv -f "$cache_file"$$ "$cache_file" ;; #(
  7013. *)
  7014. mv -f confcache "$cache_file" ;;
  7015. esac
  7016. fi
  7017. fi
  7018. else
  7019. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  7020. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  7021. fi
  7022. fi
  7023. rm -f confcache
  7024. for ac_func in strcasecmp strncasecmp vsnprintf
  7025. do :
  7026. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7027. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  7028. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  7029. cat >>confdefs.h <<_ACEOF
  7030. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7031. _ACEOF
  7032. fi
  7033. done
  7034. #autoscan suggested this....
  7035. #These are recommended by autoscan, but no code supports it currently
  7036. #AC_CHECK_FUNCS([alarm bzero dup2 getcwd gethostbyaddr gethostbyname gethostname getpass gettimeofday mbrlen
  7037. #mkdir munmap realpath select setlocale socket strchr strerror strpbrk strrchr strstr strtol tzset])
  7038. for ac_func in vsprintf
  7039. do :
  7040. ac_fn_cxx_check_func "$LINENO" "vsprintf" "ac_cv_func_vsprintf"
  7041. if test "x$ac_cv_func_vsprintf" = xyes; then :
  7042. cat >>confdefs.h <<_ACEOF
  7043. #define HAVE_VSPRINTF 1
  7044. _ACEOF
  7045. fi
  7046. done
  7047. if test "$ac_cv_func_vsprintf" = "no"
  7048. then
  7049. cat << 'EOF' >&2
  7050. configure: error:
  7051. Your system does not have the sprintf/vsprintf libraries.
  7052. These are required to compile almost anything. Sorry.
  7053. EOF
  7054. exit 1
  7055. fi
  7056. for ac_func in uname
  7057. do :
  7058. ac_fn_cxx_check_func "$LINENO" "uname" "ac_cv_func_uname"
  7059. if test "x$ac_cv_func_uname" = xyes; then :
  7060. cat >>confdefs.h <<_ACEOF
  7061. #define HAVE_UNAME 1
  7062. _ACEOF
  7063. fi
  7064. done
  7065. if test "$ac_cv_func_uname" = "no"
  7066. then
  7067. cat << 'EOF' >&2
  7068. configure: error:
  7069. Your system does not have the uname() function.
  7070. This is required for the botpack.
  7071. EOF
  7072. exit 1
  7073. fi
  7074. # Make sure we have stdc headers, since we can't compile without them
  7075. if test "$ac_cv_header_stdc" = "no"
  7076. then
  7077. cat << 'EOF' >&2
  7078. configure: error:
  7079. Your system must support ANSI C Header files.
  7080. These are required for the language support. Sorry.
  7081. EOF
  7082. exit 1
  7083. fi
  7084. #checkpoint
  7085. cat >confcache <<\_ACEOF
  7086. # This file is a shell script that caches the results of configure
  7087. # tests run on this system so they can be shared between configure
  7088. # scripts and configure runs, see configure's option --config-cache.
  7089. # It is not useful on other systems. If it contains results you don't
  7090. # want to keep, you may remove or edit it.
  7091. #
  7092. # config.status only pays attention to the cache file if you give it
  7093. # the --recheck option to rerun configure.
  7094. #
  7095. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7096. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7097. # following values.
  7098. _ACEOF
  7099. # The following way of writing the cache mishandles newlines in values,
  7100. # but we know of no workaround that is simple, portable, and efficient.
  7101. # So, we kill variables containing newlines.
  7102. # Ultrix sh set writes to stderr and can't be redirected directly,
  7103. # and sets the high bit in the cache file unless we assign to the vars.
  7104. (
  7105. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  7106. eval ac_val=\$$ac_var
  7107. case $ac_val in #(
  7108. *${as_nl}*)
  7109. case $ac_var in #(
  7110. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  7111. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  7112. esac
  7113. case $ac_var in #(
  7114. _ | IFS | as_nl) ;; #(
  7115. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  7116. *) { eval $ac_var=; unset $ac_var;} ;;
  7117. esac ;;
  7118. esac
  7119. done
  7120. (set) 2>&1 |
  7121. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  7122. *${as_nl}ac_space=\ *)
  7123. # `set' does not quote correctly, so add quotes: double-quote
  7124. # substitution turns \\\\ into \\, and sed turns \\ into \.
  7125. sed -n \
  7126. "s/'/'\\\\''/g;
  7127. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7128. ;; #(
  7129. *)
  7130. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7131. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  7132. ;;
  7133. esac |
  7134. sort
  7135. ) |
  7136. sed '
  7137. /^ac_cv_env_/b end
  7138. t clear
  7139. :clear
  7140. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7141. t end
  7142. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7143. :end' >>confcache
  7144. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  7145. if test -w "$cache_file"; then
  7146. if test "x$cache_file" != "x/dev/null"; then
  7147. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  7148. $as_echo "$as_me: updating cache $cache_file" >&6;}
  7149. if test ! -f "$cache_file" || test -h "$cache_file"; then
  7150. cat confcache >"$cache_file"
  7151. else
  7152. case $cache_file in #(
  7153. */* | ?:*)
  7154. mv -f confcache "$cache_file"$$ &&
  7155. mv -f "$cache_file"$$ "$cache_file" ;; #(
  7156. *)
  7157. mv -f confcache "$cache_file" ;;
  7158. esac
  7159. fi
  7160. fi
  7161. else
  7162. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  7163. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  7164. fi
  7165. fi
  7166. rm -f confcache
  7167. VERSION=`grep "char" $srcdir/src/main.c | $AWK '/egg_version/ {print $5}' | sed -e 's/\"//g' | sed -e 's/\;//g'`
  7168. version_num=`echo $VERSION | $AWK 'BEGIN {FS = "."} {printf("%d%02d%02d", $1, $2, $3)}'`
  7169. cat >>confdefs.h <<_ACEOF
  7170. #define EGG_VERSION $version_num
  7171. _ACEOF
  7172. #FIND_WRAPS
  7173. case "$srcdir" in
  7174. [\\/]* | ?:[\\/]*)
  7175. MOD_UPDIR=""
  7176. ;;
  7177. *)
  7178. MOD_UPDIR="../"
  7179. ;;
  7180. esac
  7181. 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"
  7182. for mf in $files; do
  7183. # Strip MF so we end up with the name of the file.
  7184. # echo "MF: $mf"
  7185. mf=`echo "$mf" | sed -e 's/:.*$//'`
  7186. dirpart=`$as_dirname -- "$mf" ||
  7187. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  7188. X"$mf" : 'X\(//\)[^/]' \| \
  7189. X"$mf" : 'X\(//\)$' \| \
  7190. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  7191. $as_echo X"$mf" |
  7192. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  7193. s//\1/
  7194. q
  7195. }
  7196. /^X\(\/\/\)[^/].*/{
  7197. s//\1/
  7198. q
  7199. }
  7200. /^X\(\/\/\)$/{
  7201. s//\1/
  7202. q
  7203. }
  7204. /^X\(\/\).*/{
  7205. s//\1/
  7206. q
  7207. }
  7208. s/.*/./; q'`
  7209. # echo "dirpart: $dirpart mf: $mf"
  7210. # rm -rf "$dirpart/.deps/"
  7211. rm -f "$dirpart/.deps/includes"
  7212. test -d "$dirpart/.deps" || mkdir "$dirpart/.deps"
  7213. for file in `sed -n -e '
  7214. /^OBJS = .*\\\\$/ {
  7215. s/^OBJS = //
  7216. :loop
  7217. s/\\\\$//
  7218. p
  7219. n
  7220. /\\\\$/ b loop
  7221. p
  7222. }
  7223. /^OBJS = / s/^OBJS = //p' < "$mf"`;
  7224. do
  7225. base=`basename $file .o`
  7226. test -f "$dirpart/$base.c" || continue
  7227. if ! test -f "$dirpart/.deps/$base.Po"; then
  7228. echo '# dummy' > "$dirpart/.deps/$base.Po"
  7229. #Remove the .o file, because it needs to be recompiled for its dependancies.
  7230. if test -f "$dirpart/$base.o"; then
  7231. rm -f "$dirpart/$base.o"
  7232. fi
  7233. fi
  7234. echo "include .deps/$base.Po" >> "$dirpart/.deps/includes"
  7235. echo "_$base.c:" >> "$dirpart/.deps/includes"
  7236. done
  7237. done
  7238. ac_config_files="$ac_config_files Makefile lib/Makefile src/Makefile src/compat/Makefile src/crypto/Makefile src/mod/Makefile src/buildinfo.h"
  7239. cat >confcache <<\_ACEOF
  7240. # This file is a shell script that caches the results of configure
  7241. # tests run on this system so they can be shared between configure
  7242. # scripts and configure runs, see configure's option --config-cache.
  7243. # It is not useful on other systems. If it contains results you don't
  7244. # want to keep, you may remove or edit it.
  7245. #
  7246. # config.status only pays attention to the cache file if you give it
  7247. # the --recheck option to rerun configure.
  7248. #
  7249. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7250. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7251. # following values.
  7252. _ACEOF
  7253. # The following way of writing the cache mishandles newlines in values,
  7254. # but we know of no workaround that is simple, portable, and efficient.
  7255. # So, we kill variables containing newlines.
  7256. # Ultrix sh set writes to stderr and can't be redirected directly,
  7257. # and sets the high bit in the cache file unless we assign to the vars.
  7258. (
  7259. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  7260. eval ac_val=\$$ac_var
  7261. case $ac_val in #(
  7262. *${as_nl}*)
  7263. case $ac_var in #(
  7264. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  7265. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  7266. esac
  7267. case $ac_var in #(
  7268. _ | IFS | as_nl) ;; #(
  7269. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  7270. *) { eval $ac_var=; unset $ac_var;} ;;
  7271. esac ;;
  7272. esac
  7273. done
  7274. (set) 2>&1 |
  7275. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  7276. *${as_nl}ac_space=\ *)
  7277. # `set' does not quote correctly, so add quotes: double-quote
  7278. # substitution turns \\\\ into \\, and sed turns \\ into \.
  7279. sed -n \
  7280. "s/'/'\\\\''/g;
  7281. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7282. ;; #(
  7283. *)
  7284. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7285. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  7286. ;;
  7287. esac |
  7288. sort
  7289. ) |
  7290. sed '
  7291. /^ac_cv_env_/b end
  7292. t clear
  7293. :clear
  7294. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7295. t end
  7296. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7297. :end' >>confcache
  7298. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  7299. if test -w "$cache_file"; then
  7300. if test "x$cache_file" != "x/dev/null"; then
  7301. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  7302. $as_echo "$as_me: updating cache $cache_file" >&6;}
  7303. if test ! -f "$cache_file" || test -h "$cache_file"; then
  7304. cat confcache >"$cache_file"
  7305. else
  7306. case $cache_file in #(
  7307. */* | ?:*)
  7308. mv -f confcache "$cache_file"$$ &&
  7309. mv -f "$cache_file"$$ "$cache_file" ;; #(
  7310. *)
  7311. mv -f confcache "$cache_file" ;;
  7312. esac
  7313. fi
  7314. fi
  7315. else
  7316. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  7317. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  7318. fi
  7319. fi
  7320. rm -f confcache
  7321. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  7322. # Let make expand exec_prefix.
  7323. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  7324. DEFS=-DHAVE_CONFIG_H
  7325. ac_libobjs=
  7326. ac_ltlibobjs=
  7327. U=
  7328. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  7329. # 1. Remove the extension, and $U if already installed.
  7330. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  7331. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  7332. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  7333. # will be set to the directory where LIBOBJS objects are built.
  7334. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  7335. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  7336. done
  7337. LIBOBJS=$ac_libobjs
  7338. LTLIBOBJS=$ac_ltlibobjs
  7339. : "${CONFIG_STATUS=./config.status}"
  7340. ac_write_fail=0
  7341. ac_clean_files_save=$ac_clean_files
  7342. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  7343. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  7344. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  7345. as_write_fail=0
  7346. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  7347. #! $SHELL
  7348. # Generated by $as_me.
  7349. # Run this file to recreate the current configuration.
  7350. # Compiler output produced by configure, useful for debugging
  7351. # configure, is in config.log if it exists.
  7352. debug=false
  7353. ac_cs_recheck=false
  7354. ac_cs_silent=false
  7355. SHELL=\${CONFIG_SHELL-$SHELL}
  7356. export SHELL
  7357. _ASEOF
  7358. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  7359. ## -------------------- ##
  7360. ## M4sh Initialization. ##
  7361. ## -------------------- ##
  7362. # Be more Bourne compatible
  7363. DUALCASE=1; export DUALCASE # for MKS sh
  7364. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  7365. emulate sh
  7366. NULLCMD=:
  7367. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  7368. # is contrary to our usage. Disable this feature.
  7369. alias -g '${1+"$@"}'='"$@"'
  7370. setopt NO_GLOB_SUBST
  7371. else
  7372. case `(set -o) 2>/dev/null` in #(
  7373. *posix*) :
  7374. set -o posix ;; #(
  7375. *) :
  7376. ;;
  7377. esac
  7378. fi
  7379. as_nl='
  7380. '
  7381. export as_nl
  7382. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  7383. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  7384. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  7385. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  7386. # Prefer a ksh shell builtin over an external printf program on Solaris,
  7387. # but without wasting forks for bash or zsh.
  7388. if test -z "$BASH_VERSION$ZSH_VERSION" \
  7389. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  7390. as_echo='print -r --'
  7391. as_echo_n='print -rn --'
  7392. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  7393. as_echo='printf %s\n'
  7394. as_echo_n='printf %s'
  7395. else
  7396. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  7397. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  7398. as_echo_n='/usr/ucb/echo -n'
  7399. else
  7400. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  7401. as_echo_n_body='eval
  7402. arg=$1;
  7403. case $arg in #(
  7404. *"$as_nl"*)
  7405. expr "X$arg" : "X\\(.*\\)$as_nl";
  7406. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  7407. esac;
  7408. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  7409. '
  7410. export as_echo_n_body
  7411. as_echo_n='sh -c $as_echo_n_body as_echo'
  7412. fi
  7413. export as_echo_body
  7414. as_echo='sh -c $as_echo_body as_echo'
  7415. fi
  7416. # The user is always right.
  7417. if test "${PATH_SEPARATOR+set}" != set; then
  7418. PATH_SEPARATOR=:
  7419. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  7420. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  7421. PATH_SEPARATOR=';'
  7422. }
  7423. fi
  7424. # IFS
  7425. # We need space, tab and new line, in precisely that order. Quoting is
  7426. # there to prevent editors from complaining about space-tab.
  7427. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  7428. # splitting by setting IFS to empty value.)
  7429. IFS=" "" $as_nl"
  7430. # Find who we are. Look in the path if we contain no directory separator.
  7431. as_myself=
  7432. case $0 in #((
  7433. *[\\/]* ) as_myself=$0 ;;
  7434. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7435. for as_dir in $PATH
  7436. do
  7437. IFS=$as_save_IFS
  7438. test -z "$as_dir" && as_dir=.
  7439. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  7440. done
  7441. IFS=$as_save_IFS
  7442. ;;
  7443. esac
  7444. # We did not find ourselves, most probably we were run as `sh COMMAND'
  7445. # in which case we are not to be found in the path.
  7446. if test "x$as_myself" = x; then
  7447. as_myself=$0
  7448. fi
  7449. if test ! -f "$as_myself"; then
  7450. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  7451. exit 1
  7452. fi
  7453. # Unset variables that we do not need and which cause bugs (e.g. in
  7454. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  7455. # suppresses any "Segmentation fault" message there. '((' could
  7456. # trigger a bug in pdksh 5.2.14.
  7457. for as_var in BASH_ENV ENV MAIL MAILPATH
  7458. do eval test x\${$as_var+set} = xset \
  7459. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  7460. done
  7461. PS1='$ '
  7462. PS2='> '
  7463. PS4='+ '
  7464. # NLS nuisances.
  7465. LC_ALL=C
  7466. export LC_ALL
  7467. LANGUAGE=C
  7468. export LANGUAGE
  7469. # CDPATH.
  7470. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  7471. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  7472. # ----------------------------------------
  7473. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  7474. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  7475. # script with STATUS, using 1 if that was 0.
  7476. as_fn_error ()
  7477. {
  7478. as_status=$1; test $as_status -eq 0 && as_status=1
  7479. if test "$4"; then
  7480. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  7481. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  7482. fi
  7483. $as_echo "$as_me: error: $2" >&2
  7484. as_fn_exit $as_status
  7485. } # as_fn_error
  7486. # as_fn_set_status STATUS
  7487. # -----------------------
  7488. # Set $? to STATUS, without forking.
  7489. as_fn_set_status ()
  7490. {
  7491. return $1
  7492. } # as_fn_set_status
  7493. # as_fn_exit STATUS
  7494. # -----------------
  7495. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  7496. as_fn_exit ()
  7497. {
  7498. set +e
  7499. as_fn_set_status $1
  7500. exit $1
  7501. } # as_fn_exit
  7502. # as_fn_unset VAR
  7503. # ---------------
  7504. # Portably unset VAR.
  7505. as_fn_unset ()
  7506. {
  7507. { eval $1=; unset $1;}
  7508. }
  7509. as_unset=as_fn_unset
  7510. # as_fn_append VAR VALUE
  7511. # ----------------------
  7512. # Append the text in VALUE to the end of the definition contained in VAR. Take
  7513. # advantage of any shell optimizations that allow amortized linear growth over
  7514. # repeated appends, instead of the typical quadratic growth present in naive
  7515. # implementations.
  7516. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  7517. eval 'as_fn_append ()
  7518. {
  7519. eval $1+=\$2
  7520. }'
  7521. else
  7522. as_fn_append ()
  7523. {
  7524. eval $1=\$$1\$2
  7525. }
  7526. fi # as_fn_append
  7527. # as_fn_arith ARG...
  7528. # ------------------
  7529. # Perform arithmetic evaluation on the ARGs, and store the result in the
  7530. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  7531. # must be portable across $(()) and expr.
  7532. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  7533. eval 'as_fn_arith ()
  7534. {
  7535. as_val=$(( $* ))
  7536. }'
  7537. else
  7538. as_fn_arith ()
  7539. {
  7540. as_val=`expr "$@" || test $? -eq 1`
  7541. }
  7542. fi # as_fn_arith
  7543. if expr a : '\(a\)' >/dev/null 2>&1 &&
  7544. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  7545. as_expr=expr
  7546. else
  7547. as_expr=false
  7548. fi
  7549. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  7550. as_basename=basename
  7551. else
  7552. as_basename=false
  7553. fi
  7554. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  7555. as_dirname=dirname
  7556. else
  7557. as_dirname=false
  7558. fi
  7559. as_me=`$as_basename -- "$0" ||
  7560. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  7561. X"$0" : 'X\(//\)$' \| \
  7562. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  7563. $as_echo X/"$0" |
  7564. sed '/^.*\/\([^/][^/]*\)\/*$/{
  7565. s//\1/
  7566. q
  7567. }
  7568. /^X\/\(\/\/\)$/{
  7569. s//\1/
  7570. q
  7571. }
  7572. /^X\/\(\/\).*/{
  7573. s//\1/
  7574. q
  7575. }
  7576. s/.*/./; q'`
  7577. # Avoid depending upon Character Ranges.
  7578. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  7579. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  7580. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  7581. as_cr_digits='0123456789'
  7582. as_cr_alnum=$as_cr_Letters$as_cr_digits
  7583. ECHO_C= ECHO_N= ECHO_T=
  7584. case `echo -n x` in #(((((
  7585. -n*)
  7586. case `echo 'xy\c'` in
  7587. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  7588. xy) ECHO_C='\c';;
  7589. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  7590. ECHO_T=' ';;
  7591. esac;;
  7592. *)
  7593. ECHO_N='-n';;
  7594. esac
  7595. rm -f conf$$ conf$$.exe conf$$.file
  7596. if test -d conf$$.dir; then
  7597. rm -f conf$$.dir/conf$$.file
  7598. else
  7599. rm -f conf$$.dir
  7600. mkdir conf$$.dir 2>/dev/null
  7601. fi
  7602. if (echo >conf$$.file) 2>/dev/null; then
  7603. if ln -s conf$$.file conf$$ 2>/dev/null; then
  7604. as_ln_s='ln -s'
  7605. # ... but there are two gotchas:
  7606. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  7607. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  7608. # In both cases, we have to default to `cp -p'.
  7609. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  7610. as_ln_s='cp -p'
  7611. elif ln conf$$.file conf$$ 2>/dev/null; then
  7612. as_ln_s=ln
  7613. else
  7614. as_ln_s='cp -p'
  7615. fi
  7616. else
  7617. as_ln_s='cp -p'
  7618. fi
  7619. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  7620. rmdir conf$$.dir 2>/dev/null
  7621. # as_fn_mkdir_p
  7622. # -------------
  7623. # Create "$as_dir" as a directory, including parents if necessary.
  7624. as_fn_mkdir_p ()
  7625. {
  7626. case $as_dir in #(
  7627. -*) as_dir=./$as_dir;;
  7628. esac
  7629. test -d "$as_dir" || eval $as_mkdir_p || {
  7630. as_dirs=
  7631. while :; do
  7632. case $as_dir in #(
  7633. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  7634. *) as_qdir=$as_dir;;
  7635. esac
  7636. as_dirs="'$as_qdir' $as_dirs"
  7637. as_dir=`$as_dirname -- "$as_dir" ||
  7638. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  7639. X"$as_dir" : 'X\(//\)[^/]' \| \
  7640. X"$as_dir" : 'X\(//\)$' \| \
  7641. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  7642. $as_echo X"$as_dir" |
  7643. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  7644. s//\1/
  7645. q
  7646. }
  7647. /^X\(\/\/\)[^/].*/{
  7648. s//\1/
  7649. q
  7650. }
  7651. /^X\(\/\/\)$/{
  7652. s//\1/
  7653. q
  7654. }
  7655. /^X\(\/\).*/{
  7656. s//\1/
  7657. q
  7658. }
  7659. s/.*/./; q'`
  7660. test -d "$as_dir" && break
  7661. done
  7662. test -z "$as_dirs" || eval "mkdir $as_dirs"
  7663. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  7664. } # as_fn_mkdir_p
  7665. if mkdir -p . 2>/dev/null; then
  7666. as_mkdir_p='mkdir -p "$as_dir"'
  7667. else
  7668. test -d ./-p && rmdir ./-p
  7669. as_mkdir_p=false
  7670. fi
  7671. if test -x / >/dev/null 2>&1; then
  7672. as_test_x='test -x'
  7673. else
  7674. if ls -dL / >/dev/null 2>&1; then
  7675. as_ls_L_option=L
  7676. else
  7677. as_ls_L_option=
  7678. fi
  7679. as_test_x='
  7680. eval sh -c '\''
  7681. if test -d "$1"; then
  7682. test -d "$1/.";
  7683. else
  7684. case $1 in #(
  7685. -*)set "./$1";;
  7686. esac;
  7687. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  7688. ???[sx]*):;;*)false;;esac;fi
  7689. '\'' sh
  7690. '
  7691. fi
  7692. as_executable_p=$as_test_x
  7693. # Sed expression to map a string onto a valid CPP name.
  7694. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  7695. # Sed expression to map a string onto a valid variable name.
  7696. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  7697. exec 6>&1
  7698. ## ----------------------------------- ##
  7699. ## Main body of $CONFIG_STATUS script. ##
  7700. ## ----------------------------------- ##
  7701. _ASEOF
  7702. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  7703. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7704. # Save the log message, to keep $0 and so on meaningful, and to
  7705. # report actual input values of CONFIG_FILES etc. instead of their
  7706. # values after options handling.
  7707. ac_log="
  7708. This file was extended by $as_me, which was
  7709. generated by GNU Autoconf 2.68. Invocation command line was
  7710. CONFIG_FILES = $CONFIG_FILES
  7711. CONFIG_HEADERS = $CONFIG_HEADERS
  7712. CONFIG_LINKS = $CONFIG_LINKS
  7713. CONFIG_COMMANDS = $CONFIG_COMMANDS
  7714. $ $0 $@
  7715. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  7716. "
  7717. _ACEOF
  7718. case $ac_config_files in *"
  7719. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  7720. esac
  7721. case $ac_config_headers in *"
  7722. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  7723. esac
  7724. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7725. # Files that config.status was made for.
  7726. config_files="$ac_config_files"
  7727. config_headers="$ac_config_headers"
  7728. _ACEOF
  7729. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7730. ac_cs_usage="\
  7731. \`$as_me' instantiates files and other configuration actions
  7732. from templates according to the current configuration. Unless the files
  7733. and actions are specified as TAGs, all are instantiated by default.
  7734. Usage: $0 [OPTION]... [TAG]...
  7735. -h, --help print this help, then exit
  7736. -V, --version print version number and configuration settings, then exit
  7737. --config print configuration, then exit
  7738. -q, --quiet, --silent
  7739. do not print progress messages
  7740. -d, --debug don't remove temporary files
  7741. --recheck update $as_me by reconfiguring in the same conditions
  7742. --file=FILE[:TEMPLATE]
  7743. instantiate the configuration file FILE
  7744. --header=FILE[:TEMPLATE]
  7745. instantiate the configuration header FILE
  7746. Configuration files:
  7747. $config_files
  7748. Configuration headers:
  7749. $config_headers
  7750. Report bugs to the package provider."
  7751. _ACEOF
  7752. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7753. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  7754. ac_cs_version="\\
  7755. config.status
  7756. configured by $0, generated by GNU Autoconf 2.68,
  7757. with options \\"\$ac_cs_config\\"
  7758. Copyright (C) 2010 Free Software Foundation, Inc.
  7759. This config.status script is free software; the Free Software Foundation
  7760. gives unlimited permission to copy, distribute and modify it."
  7761. ac_pwd='$ac_pwd'
  7762. srcdir='$srcdir'
  7763. AWK='$AWK'
  7764. test -n "\$AWK" || AWK=awk
  7765. _ACEOF
  7766. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7767. # The default lists apply if the user does not specify any file.
  7768. ac_need_defaults=:
  7769. while test $# != 0
  7770. do
  7771. case $1 in
  7772. --*=?*)
  7773. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  7774. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  7775. ac_shift=:
  7776. ;;
  7777. --*=)
  7778. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  7779. ac_optarg=
  7780. ac_shift=:
  7781. ;;
  7782. *)
  7783. ac_option=$1
  7784. ac_optarg=$2
  7785. ac_shift=shift
  7786. ;;
  7787. esac
  7788. case $ac_option in
  7789. # Handling of the options.
  7790. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  7791. ac_cs_recheck=: ;;
  7792. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  7793. $as_echo "$ac_cs_version"; exit ;;
  7794. --config | --confi | --conf | --con | --co | --c )
  7795. $as_echo "$ac_cs_config"; exit ;;
  7796. --debug | --debu | --deb | --de | --d | -d )
  7797. debug=: ;;
  7798. --file | --fil | --fi | --f )
  7799. $ac_shift
  7800. case $ac_optarg in
  7801. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  7802. '') as_fn_error $? "missing file argument" ;;
  7803. esac
  7804. as_fn_append CONFIG_FILES " '$ac_optarg'"
  7805. ac_need_defaults=false;;
  7806. --header | --heade | --head | --hea )
  7807. $ac_shift
  7808. case $ac_optarg in
  7809. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  7810. esac
  7811. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  7812. ac_need_defaults=false;;
  7813. --he | --h)
  7814. # Conflict between --help and --header
  7815. as_fn_error $? "ambiguous option: \`$1'
  7816. Try \`$0 --help' for more information.";;
  7817. --help | --hel | -h )
  7818. $as_echo "$ac_cs_usage"; exit ;;
  7819. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  7820. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  7821. ac_cs_silent=: ;;
  7822. # This is an error.
  7823. -*) as_fn_error $? "unrecognized option: \`$1'
  7824. Try \`$0 --help' for more information." ;;
  7825. *) as_fn_append ac_config_targets " $1"
  7826. ac_need_defaults=false ;;
  7827. esac
  7828. shift
  7829. done
  7830. ac_configure_extra_args=
  7831. if $ac_cs_silent; then
  7832. exec 6>/dev/null
  7833. ac_configure_extra_args="$ac_configure_extra_args --silent"
  7834. fi
  7835. _ACEOF
  7836. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7837. if \$ac_cs_recheck; then
  7838. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  7839. shift
  7840. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  7841. CONFIG_SHELL='$SHELL'
  7842. export CONFIG_SHELL
  7843. exec "\$@"
  7844. fi
  7845. _ACEOF
  7846. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7847. exec 5>>config.log
  7848. {
  7849. echo
  7850. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  7851. ## Running $as_me. ##
  7852. _ASBOX
  7853. $as_echo "$ac_log"
  7854. } >&5
  7855. _ACEOF
  7856. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7857. _ACEOF
  7858. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7859. # Handling of arguments.
  7860. for ac_config_target in $ac_config_targets
  7861. do
  7862. case $ac_config_target in
  7863. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  7864. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  7865. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  7866. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  7867. "src/compat/Makefile") CONFIG_FILES="$CONFIG_FILES src/compat/Makefile" ;;
  7868. "src/crypto/Makefile") CONFIG_FILES="$CONFIG_FILES src/crypto/Makefile" ;;
  7869. "src/mod/Makefile") CONFIG_FILES="$CONFIG_FILES src/mod/Makefile" ;;
  7870. "src/buildinfo.h") CONFIG_FILES="$CONFIG_FILES src/buildinfo.h" ;;
  7871. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  7872. esac
  7873. done
  7874. # If the user did not use the arguments to specify the items to instantiate,
  7875. # then the envvar interface is used. Set only those that are not.
  7876. # We use the long form for the default assignment because of an extremely
  7877. # bizarre bug on SunOS 4.1.3.
  7878. if $ac_need_defaults; then
  7879. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  7880. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  7881. fi
  7882. # Have a temporary directory for convenience. Make it in the build tree
  7883. # simply because there is no reason against having it here, and in addition,
  7884. # creating and moving files from /tmp can sometimes cause problems.
  7885. # Hook for its removal unless debugging.
  7886. # Note that there is a small window in which the directory will not be cleaned:
  7887. # after its creation but before its name has been assigned to `$tmp'.
  7888. $debug ||
  7889. {
  7890. tmp= ac_tmp=
  7891. trap 'exit_status=$?
  7892. : "${ac_tmp:=$tmp}"
  7893. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  7894. ' 0
  7895. trap 'as_fn_exit 1' 1 2 13 15
  7896. }
  7897. # Create a (secure) tmp directory for tmp files.
  7898. {
  7899. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  7900. test -d "$tmp"
  7901. } ||
  7902. {
  7903. tmp=./conf$$-$RANDOM
  7904. (umask 077 && mkdir "$tmp")
  7905. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  7906. ac_tmp=$tmp
  7907. # Set up the scripts for CONFIG_FILES section.
  7908. # No need to generate them if there are no CONFIG_FILES.
  7909. # This happens for instance with `./config.status config.h'.
  7910. if test -n "$CONFIG_FILES"; then
  7911. ac_cr=`echo X | tr X '\015'`
  7912. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  7913. # But we know of no other shell where ac_cr would be empty at this
  7914. # point, so we can use a bashism as a fallback.
  7915. if test "x$ac_cr" = x; then
  7916. eval ac_cr=\$\'\\r\'
  7917. fi
  7918. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  7919. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  7920. ac_cs_awk_cr='\\r'
  7921. else
  7922. ac_cs_awk_cr=$ac_cr
  7923. fi
  7924. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  7925. _ACEOF
  7926. {
  7927. echo "cat >conf$$subs.awk <<_ACEOF" &&
  7928. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  7929. echo "_ACEOF"
  7930. } >conf$$subs.sh ||
  7931. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  7932. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  7933. ac_delim='%!_!# '
  7934. for ac_last_try in false false false false false :; do
  7935. . ./conf$$subs.sh ||
  7936. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  7937. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  7938. if test $ac_delim_n = $ac_delim_num; then
  7939. break
  7940. elif $ac_last_try; then
  7941. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  7942. else
  7943. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  7944. fi
  7945. done
  7946. rm -f conf$$subs.sh
  7947. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7948. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  7949. _ACEOF
  7950. sed -n '
  7951. h
  7952. s/^/S["/; s/!.*/"]=/
  7953. p
  7954. g
  7955. s/^[^!]*!//
  7956. :repl
  7957. t repl
  7958. s/'"$ac_delim"'$//
  7959. t delim
  7960. :nl
  7961. h
  7962. s/\(.\{148\}\)..*/\1/
  7963. t more1
  7964. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  7965. p
  7966. n
  7967. b repl
  7968. :more1
  7969. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  7970. p
  7971. g
  7972. s/.\{148\}//
  7973. t nl
  7974. :delim
  7975. h
  7976. s/\(.\{148\}\)..*/\1/
  7977. t more2
  7978. s/["\\]/\\&/g; s/^/"/; s/$/"/
  7979. p
  7980. b
  7981. :more2
  7982. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  7983. p
  7984. g
  7985. s/.\{148\}//
  7986. t delim
  7987. ' <conf$$subs.awk | sed '
  7988. /^[^""]/{
  7989. N
  7990. s/\n//
  7991. }
  7992. ' >>$CONFIG_STATUS || ac_write_fail=1
  7993. rm -f conf$$subs.awk
  7994. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7995. _ACAWK
  7996. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  7997. for (key in S) S_is_set[key] = 1
  7998. FS = ""
  7999. }
  8000. {
  8001. line = $ 0
  8002. nfields = split(line, field, "@")
  8003. substed = 0
  8004. len = length(field[1])
  8005. for (i = 2; i < nfields; i++) {
  8006. key = field[i]
  8007. keylen = length(key)
  8008. if (S_is_set[key]) {
  8009. value = S[key]
  8010. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  8011. len += length(value) + length(field[++i])
  8012. substed = 1
  8013. } else
  8014. len += 1 + keylen
  8015. }
  8016. print line
  8017. }
  8018. _ACAWK
  8019. _ACEOF
  8020. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8021. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  8022. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  8023. else
  8024. cat
  8025. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  8026. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  8027. _ACEOF
  8028. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  8029. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  8030. # trailing colons and then remove the whole line if VPATH becomes empty
  8031. # (actually we leave an empty line to preserve line numbers).
  8032. if test "x$srcdir" = x.; then
  8033. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  8034. h
  8035. s///
  8036. s/^/:/
  8037. s/[ ]*$/:/
  8038. s/:\$(srcdir):/:/g
  8039. s/:\${srcdir}:/:/g
  8040. s/:@srcdir@:/:/g
  8041. s/^:*//
  8042. s/:*$//
  8043. x
  8044. s/\(=[ ]*\).*/\1/
  8045. G
  8046. s/\n//
  8047. s/^[^=]*=[ ]*$//
  8048. }'
  8049. fi
  8050. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8051. fi # test -n "$CONFIG_FILES"
  8052. # Set up the scripts for CONFIG_HEADERS section.
  8053. # No need to generate them if there are no CONFIG_HEADERS.
  8054. # This happens for instance with `./config.status Makefile'.
  8055. if test -n "$CONFIG_HEADERS"; then
  8056. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  8057. BEGIN {
  8058. _ACEOF
  8059. # Transform confdefs.h into an awk script `defines.awk', embedded as
  8060. # here-document in config.status, that substitutes the proper values into
  8061. # config.h.in to produce config.h.
  8062. # Create a delimiter string that does not exist in confdefs.h, to ease
  8063. # handling of long lines.
  8064. ac_delim='%!_!# '
  8065. for ac_last_try in false false :; do
  8066. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  8067. if test -z "$ac_tt"; then
  8068. break
  8069. elif $ac_last_try; then
  8070. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  8071. else
  8072. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  8073. fi
  8074. done
  8075. # For the awk script, D is an array of macro values keyed by name,
  8076. # likewise P contains macro parameters if any. Preserve backslash
  8077. # newline sequences.
  8078. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  8079. sed -n '
  8080. s/.\{148\}/&'"$ac_delim"'/g
  8081. t rset
  8082. :rset
  8083. s/^[ ]*#[ ]*define[ ][ ]*/ /
  8084. t def
  8085. d
  8086. :def
  8087. s/\\$//
  8088. t bsnl
  8089. s/["\\]/\\&/g
  8090. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  8091. D["\1"]=" \3"/p
  8092. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  8093. d
  8094. :bsnl
  8095. s/["\\]/\\&/g
  8096. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  8097. D["\1"]=" \3\\\\\\n"\\/p
  8098. t cont
  8099. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  8100. t cont
  8101. d
  8102. :cont
  8103. n
  8104. s/.\{148\}/&'"$ac_delim"'/g
  8105. t clear
  8106. :clear
  8107. s/\\$//
  8108. t bsnlc
  8109. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  8110. d
  8111. :bsnlc
  8112. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  8113. b cont
  8114. ' <confdefs.h | sed '
  8115. s/'"$ac_delim"'/"\\\
  8116. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  8117. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8118. for (key in D) D_is_set[key] = 1
  8119. FS = ""
  8120. }
  8121. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  8122. line = \$ 0
  8123. split(line, arg, " ")
  8124. if (arg[1] == "#") {
  8125. defundef = arg[2]
  8126. mac1 = arg[3]
  8127. } else {
  8128. defundef = substr(arg[1], 2)
  8129. mac1 = arg[2]
  8130. }
  8131. split(mac1, mac2, "(") #)
  8132. macro = mac2[1]
  8133. prefix = substr(line, 1, index(line, defundef) - 1)
  8134. if (D_is_set[macro]) {
  8135. # Preserve the white space surrounding the "#".
  8136. print prefix "define", macro P[macro] D[macro]
  8137. next
  8138. } else {
  8139. # Replace #undef with comments. This is necessary, for example,
  8140. # in the case of _POSIX_SOURCE, which is predefined and required
  8141. # on some systems where configure will not decide to define it.
  8142. if (defundef == "undef") {
  8143. print "/*", prefix defundef, macro, "*/"
  8144. next
  8145. }
  8146. }
  8147. }
  8148. { print }
  8149. _ACAWK
  8150. _ACEOF
  8151. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8152. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  8153. fi # test -n "$CONFIG_HEADERS"
  8154. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
  8155. shift
  8156. for ac_tag
  8157. do
  8158. case $ac_tag in
  8159. :[FHLC]) ac_mode=$ac_tag; continue;;
  8160. esac
  8161. case $ac_mode$ac_tag in
  8162. :[FHL]*:*);;
  8163. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  8164. :[FH]-) ac_tag=-:-;;
  8165. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  8166. esac
  8167. ac_save_IFS=$IFS
  8168. IFS=:
  8169. set x $ac_tag
  8170. IFS=$ac_save_IFS
  8171. shift
  8172. ac_file=$1
  8173. shift
  8174. case $ac_mode in
  8175. :L) ac_source=$1;;
  8176. :[FH])
  8177. ac_file_inputs=
  8178. for ac_f
  8179. do
  8180. case $ac_f in
  8181. -) ac_f="$ac_tmp/stdin";;
  8182. *) # Look for the file first in the build tree, then in the source tree
  8183. # (if the path is not absolute). The absolute path cannot be DOS-style,
  8184. # because $ac_f cannot contain `:'.
  8185. test -f "$ac_f" ||
  8186. case $ac_f in
  8187. [\\/$]*) false;;
  8188. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  8189. esac ||
  8190. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  8191. esac
  8192. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  8193. as_fn_append ac_file_inputs " '$ac_f'"
  8194. done
  8195. # Let's still pretend it is `configure' which instantiates (i.e., don't
  8196. # use $as_me), people would be surprised to read:
  8197. # /* config.h. Generated by config.status. */
  8198. configure_input='Generated from '`
  8199. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  8200. `' by configure.'
  8201. if test x"$ac_file" != x-; then
  8202. configure_input="$ac_file. $configure_input"
  8203. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  8204. $as_echo "$as_me: creating $ac_file" >&6;}
  8205. fi
  8206. # Neutralize special characters interpreted by sed in replacement strings.
  8207. case $configure_input in #(
  8208. *\&* | *\|* | *\\* )
  8209. ac_sed_conf_input=`$as_echo "$configure_input" |
  8210. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  8211. *) ac_sed_conf_input=$configure_input;;
  8212. esac
  8213. case $ac_tag in
  8214. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  8215. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  8216. esac
  8217. ;;
  8218. esac
  8219. ac_dir=`$as_dirname -- "$ac_file" ||
  8220. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  8221. X"$ac_file" : 'X\(//\)[^/]' \| \
  8222. X"$ac_file" : 'X\(//\)$' \| \
  8223. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  8224. $as_echo X"$ac_file" |
  8225. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  8226. s//\1/
  8227. q
  8228. }
  8229. /^X\(\/\/\)[^/].*/{
  8230. s//\1/
  8231. q
  8232. }
  8233. /^X\(\/\/\)$/{
  8234. s//\1/
  8235. q
  8236. }
  8237. /^X\(\/\).*/{
  8238. s//\1/
  8239. q
  8240. }
  8241. s/.*/./; q'`
  8242. as_dir="$ac_dir"; as_fn_mkdir_p
  8243. ac_builddir=.
  8244. case "$ac_dir" in
  8245. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  8246. *)
  8247. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  8248. # A ".." for each directory in $ac_dir_suffix.
  8249. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  8250. case $ac_top_builddir_sub in
  8251. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  8252. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  8253. esac ;;
  8254. esac
  8255. ac_abs_top_builddir=$ac_pwd
  8256. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  8257. # for backward compatibility:
  8258. ac_top_builddir=$ac_top_build_prefix
  8259. case $srcdir in
  8260. .) # We are building in place.
  8261. ac_srcdir=.
  8262. ac_top_srcdir=$ac_top_builddir_sub
  8263. ac_abs_top_srcdir=$ac_pwd ;;
  8264. [\\/]* | ?:[\\/]* ) # Absolute name.
  8265. ac_srcdir=$srcdir$ac_dir_suffix;
  8266. ac_top_srcdir=$srcdir
  8267. ac_abs_top_srcdir=$srcdir ;;
  8268. *) # Relative name.
  8269. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  8270. ac_top_srcdir=$ac_top_build_prefix$srcdir
  8271. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  8272. esac
  8273. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  8274. case $ac_mode in
  8275. :F)
  8276. #
  8277. # CONFIG_FILE
  8278. #
  8279. _ACEOF
  8280. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8281. # If the template does not know about datarootdir, expand it.
  8282. # FIXME: This hack should be removed a few years after 2.60.
  8283. ac_datarootdir_hack=; ac_datarootdir_seen=
  8284. ac_sed_dataroot='
  8285. /datarootdir/ {
  8286. p
  8287. q
  8288. }
  8289. /@datadir@/p
  8290. /@docdir@/p
  8291. /@infodir@/p
  8292. /@localedir@/p
  8293. /@mandir@/p'
  8294. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  8295. *datarootdir*) ac_datarootdir_seen=yes;;
  8296. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  8297. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  8298. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  8299. _ACEOF
  8300. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8301. ac_datarootdir_hack='
  8302. s&@datadir@&$datadir&g
  8303. s&@docdir@&$docdir&g
  8304. s&@infodir@&$infodir&g
  8305. s&@localedir@&$localedir&g
  8306. s&@mandir@&$mandir&g
  8307. s&\\\${datarootdir}&$datarootdir&g' ;;
  8308. esac
  8309. _ACEOF
  8310. # Neutralize VPATH when `$srcdir' = `.'.
  8311. # Shell code in configure.ac might set extrasub.
  8312. # FIXME: do we really want to maintain this feature?
  8313. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8314. ac_sed_extra="$ac_vpsub
  8315. $extrasub
  8316. _ACEOF
  8317. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8318. :t
  8319. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  8320. s|@configure_input@|$ac_sed_conf_input|;t t
  8321. s&@top_builddir@&$ac_top_builddir_sub&;t t
  8322. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  8323. s&@srcdir@&$ac_srcdir&;t t
  8324. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  8325. s&@top_srcdir@&$ac_top_srcdir&;t t
  8326. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  8327. s&@builddir@&$ac_builddir&;t t
  8328. s&@abs_builddir@&$ac_abs_builddir&;t t
  8329. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  8330. $ac_datarootdir_hack
  8331. "
  8332. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  8333. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  8334. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  8335. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  8336. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  8337. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  8338. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  8339. which seems to be undefined. Please make sure it is defined" >&5
  8340. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  8341. which seems to be undefined. Please make sure it is defined" >&2;}
  8342. rm -f "$ac_tmp/stdin"
  8343. case $ac_file in
  8344. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  8345. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  8346. esac \
  8347. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  8348. ;;
  8349. :H)
  8350. #
  8351. # CONFIG_HEADER
  8352. #
  8353. if test x"$ac_file" != x-; then
  8354. {
  8355. $as_echo "/* $configure_input */" \
  8356. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  8357. } >"$ac_tmp/config.h" \
  8358. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  8359. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  8360. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  8361. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  8362. else
  8363. rm -f "$ac_file"
  8364. mv "$ac_tmp/config.h" "$ac_file" \
  8365. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  8366. fi
  8367. else
  8368. $as_echo "/* $configure_input */" \
  8369. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  8370. || as_fn_error $? "could not create -" "$LINENO" 5
  8371. fi
  8372. ;;
  8373. esac
  8374. done # for ac_tag
  8375. as_fn_exit 0
  8376. _ACEOF
  8377. ac_clean_files=$ac_clean_files_save
  8378. test $ac_write_fail = 0 ||
  8379. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  8380. # configure is writing to config.log, and then calls config.status.
  8381. # config.status does its own redirection, appending to config.log.
  8382. # Unfortunately, on DOS this fails, as config.log is still kept open
  8383. # by configure, so config.status won't be able to write to it; its
  8384. # output is simply discarded. So we exec the FD to /dev/null,
  8385. # effectively closing config.log, so it can be properly (re)opened and
  8386. # appended to by config.status. When coming back to configure, we
  8387. # need to make the FD available again.
  8388. if test "$no_create" != yes; then
  8389. ac_cs_success=:
  8390. ac_config_status_args=
  8391. test "$silent" = yes &&
  8392. ac_config_status_args="$ac_config_status_args --quiet"
  8393. exec 5>/dev/null
  8394. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  8395. exec 5>>config.log
  8396. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  8397. # would make configure fail if this is the last instruction.
  8398. $ac_cs_success || as_fn_exit 1
  8399. fi
  8400. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  8401. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  8402. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  8403. fi
  8404. GIT_REQUIRED=1
  8405. if [ "$GIT_REQUIRED" = "1" ]; then
  8406. if ! test -d .git; then
  8407. echo ""
  8408. echo ""
  8409. echo "You have downloaded a GIT version of wraith."
  8410. echo "Either 'git clone' from a git repository or download a source tarball"
  8411. echo "A distribution version can be found at http://wraith.botpack.net/wiki/Download"
  8412. echo ""
  8413. echo ""
  8414. exit 1
  8415. fi
  8416. fi
  8417. echo ""
  8418. echo ""
  8419. echo "------------ Configuring BDLIB ------------"
  8420. if test -d .git; then
  8421. git submodule init
  8422. git submodule update
  8423. fi
  8424. test -f lib/bdlib/configure && cd lib/bdlib && MAKEJOBS="$MAKEJOBS" ./configure