1
0

configure 249 KB

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