configure 269 KB

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