configure 483 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.67 for aria2 1.10.6.
  4. #
  5. # Report bugs to <t-tujikawa@users.sourceforge.net>.
  6. #
  7. #
  8. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  9. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
  10. # Foundation, Inc.
  11. #
  12. #
  13. # This configure script is free software; the Free Software Foundation
  14. # gives unlimited permission to copy, distribute and modify it.
  15. ## -------------------- ##
  16. ## M4sh Initialization. ##
  17. ## -------------------- ##
  18. # Be more Bourne compatible
  19. DUALCASE=1; export DUALCASE # for MKS sh
  20. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  21. emulate sh
  22. NULLCMD=:
  23. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  24. # is contrary to our usage. Disable this feature.
  25. alias -g '${1+"$@"}'='"$@"'
  26. setopt NO_GLOB_SUBST
  27. else
  28. case `(set -o) 2>/dev/null` in #(
  29. *posix*) :
  30. set -o posix ;; #(
  31. *) :
  32. ;;
  33. esac
  34. fi
  35. as_nl='
  36. '
  37. export as_nl
  38. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  39. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  40. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  41. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  42. # Prefer a ksh shell builtin over an external printf program on Solaris,
  43. # but without wasting forks for bash or zsh.
  44. if test -z "$BASH_VERSION$ZSH_VERSION" \
  45. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  46. as_echo='print -r --'
  47. as_echo_n='print -rn --'
  48. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  49. as_echo='printf %s\n'
  50. as_echo_n='printf %s'
  51. else
  52. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  53. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  54. as_echo_n='/usr/ucb/echo -n'
  55. else
  56. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  57. as_echo_n_body='eval
  58. arg=$1;
  59. case $arg in #(
  60. *"$as_nl"*)
  61. expr "X$arg" : "X\\(.*\\)$as_nl";
  62. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  63. esac;
  64. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  65. '
  66. export as_echo_n_body
  67. as_echo_n='sh -c $as_echo_n_body as_echo'
  68. fi
  69. export as_echo_body
  70. as_echo='sh -c $as_echo_body as_echo'
  71. fi
  72. # The user is always right.
  73. if test "${PATH_SEPARATOR+set}" != set; then
  74. PATH_SEPARATOR=:
  75. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  76. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  77. PATH_SEPARATOR=';'
  78. }
  79. fi
  80. # IFS
  81. # We need space, tab and new line, in precisely that order. Quoting is
  82. # there to prevent editors from complaining about space-tab.
  83. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  84. # splitting by setting IFS to empty value.)
  85. IFS=" "" $as_nl"
  86. # Find who we are. Look in the path if we contain no directory separator.
  87. case $0 in #((
  88. *[\\/]* ) as_myself=$0 ;;
  89. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  90. for as_dir in $PATH
  91. do
  92. IFS=$as_save_IFS
  93. test -z "$as_dir" && as_dir=.
  94. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  95. done
  96. IFS=$as_save_IFS
  97. ;;
  98. esac
  99. # We did not find ourselves, most probably we were run as `sh COMMAND'
  100. # in which case we are not to be found in the path.
  101. if test "x$as_myself" = x; then
  102. as_myself=$0
  103. fi
  104. if test ! -f "$as_myself"; then
  105. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  106. exit 1
  107. fi
  108. # Unset variables that we do not need and which cause bugs (e.g. in
  109. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  110. # suppresses any "Segmentation fault" message there. '((' could
  111. # trigger a bug in pdksh 5.2.14.
  112. for as_var in BASH_ENV ENV MAIL MAILPATH
  113. do eval test x\${$as_var+set} = xset \
  114. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  115. done
  116. PS1='$ '
  117. PS2='> '
  118. PS4='+ '
  119. # NLS nuisances.
  120. LC_ALL=C
  121. export LC_ALL
  122. LANGUAGE=C
  123. export LANGUAGE
  124. # CDPATH.
  125. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  126. if test "x$CONFIG_SHELL" = x; then
  127. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  128. emulate sh
  129. NULLCMD=:
  130. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  131. # is contrary to our usage. Disable this feature.
  132. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  133. setopt NO_GLOB_SUBST
  134. else
  135. case \`(set -o) 2>/dev/null\` in #(
  136. *posix*) :
  137. set -o posix ;; #(
  138. *) :
  139. ;;
  140. esac
  141. fi
  142. "
  143. as_required="as_fn_return () { (exit \$1); }
  144. as_fn_success () { as_fn_return 0; }
  145. as_fn_failure () { as_fn_return 1; }
  146. as_fn_ret_success () { return 0; }
  147. as_fn_ret_failure () { return 1; }
  148. exitcode=0
  149. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  150. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  151. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  152. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  153. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  154. else
  155. exitcode=1; echo positional parameters were not saved.
  156. fi
  157. test x\$exitcode = x0 || exit 1"
  158. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  159. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  160. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  161. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  162. test \$(( 1 + 1 )) = 2 || exit 1"
  163. if (eval "$as_required") 2>/dev/null; then :
  164. as_have_required=yes
  165. else
  166. as_have_required=no
  167. fi
  168. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  169. else
  170. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  171. as_found=false
  172. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  173. do
  174. IFS=$as_save_IFS
  175. test -z "$as_dir" && as_dir=.
  176. as_found=:
  177. case $as_dir in #(
  178. /*)
  179. for as_base in sh bash ksh sh5; do
  180. # Try only shells that exist, to save several forks.
  181. as_shell=$as_dir/$as_base
  182. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  183. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  184. CONFIG_SHELL=$as_shell as_have_required=yes
  185. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  186. break 2
  187. fi
  188. fi
  189. done;;
  190. esac
  191. as_found=false
  192. done
  193. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  194. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  195. CONFIG_SHELL=$SHELL as_have_required=yes
  196. fi; }
  197. IFS=$as_save_IFS
  198. if test "x$CONFIG_SHELL" != x; then :
  199. # We cannot yet assume a decent shell, so we have to provide a
  200. # neutralization value for shells without unset; and this also
  201. # works around shells that cannot unset nonexistent variables.
  202. BASH_ENV=/dev/null
  203. ENV=/dev/null
  204. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  205. export CONFIG_SHELL
  206. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  207. fi
  208. if test x$as_have_required = xno; then :
  209. $as_echo "$0: This script requires a shell more modern than all"
  210. $as_echo "$0: the shells that I found on your system."
  211. if test x${ZSH_VERSION+set} = xset ; then
  212. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  213. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  214. else
  215. $as_echo "$0: Please tell bug-autoconf@gnu.org and
  216. $0: t-tujikawa@users.sourceforge.net about your system,
  217. $0: including any error possibly output before this
  218. $0: message. Then install a modern shell, or manually run
  219. $0: the script under such a shell if you do have one."
  220. fi
  221. exit 1
  222. fi
  223. fi
  224. fi
  225. SHELL=${CONFIG_SHELL-/bin/sh}
  226. export SHELL
  227. # Unset more variables known to interfere with behavior of common tools.
  228. CLICOLOR_FORCE= GREP_OPTIONS=
  229. unset CLICOLOR_FORCE GREP_OPTIONS
  230. ## --------------------- ##
  231. ## M4sh Shell Functions. ##
  232. ## --------------------- ##
  233. # as_fn_unset VAR
  234. # ---------------
  235. # Portably unset VAR.
  236. as_fn_unset ()
  237. {
  238. { eval $1=; unset $1;}
  239. }
  240. as_unset=as_fn_unset
  241. # as_fn_set_status STATUS
  242. # -----------------------
  243. # Set $? to STATUS, without forking.
  244. as_fn_set_status ()
  245. {
  246. return $1
  247. } # as_fn_set_status
  248. # as_fn_exit STATUS
  249. # -----------------
  250. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  251. as_fn_exit ()
  252. {
  253. set +e
  254. as_fn_set_status $1
  255. exit $1
  256. } # as_fn_exit
  257. # as_fn_mkdir_p
  258. # -------------
  259. # Create "$as_dir" as a directory, including parents if necessary.
  260. as_fn_mkdir_p ()
  261. {
  262. case $as_dir in #(
  263. -*) as_dir=./$as_dir;;
  264. esac
  265. test -d "$as_dir" || eval $as_mkdir_p || {
  266. as_dirs=
  267. while :; do
  268. case $as_dir in #(
  269. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  270. *) as_qdir=$as_dir;;
  271. esac
  272. as_dirs="'$as_qdir' $as_dirs"
  273. as_dir=`$as_dirname -- "$as_dir" ||
  274. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  275. X"$as_dir" : 'X\(//\)[^/]' \| \
  276. X"$as_dir" : 'X\(//\)$' \| \
  277. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  278. $as_echo X"$as_dir" |
  279. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  280. s//\1/
  281. q
  282. }
  283. /^X\(\/\/\)[^/].*/{
  284. s//\1/
  285. q
  286. }
  287. /^X\(\/\/\)$/{
  288. s//\1/
  289. q
  290. }
  291. /^X\(\/\).*/{
  292. s//\1/
  293. q
  294. }
  295. s/.*/./; q'`
  296. test -d "$as_dir" && break
  297. done
  298. test -z "$as_dirs" || eval "mkdir $as_dirs"
  299. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  300. } # as_fn_mkdir_p
  301. # as_fn_append VAR VALUE
  302. # ----------------------
  303. # Append the text in VALUE to the end of the definition contained in VAR. Take
  304. # advantage of any shell optimizations that allow amortized linear growth over
  305. # repeated appends, instead of the typical quadratic growth present in naive
  306. # implementations.
  307. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  308. eval 'as_fn_append ()
  309. {
  310. eval $1+=\$2
  311. }'
  312. else
  313. as_fn_append ()
  314. {
  315. eval $1=\$$1\$2
  316. }
  317. fi # as_fn_append
  318. # as_fn_arith ARG...
  319. # ------------------
  320. # Perform arithmetic evaluation on the ARGs, and store the result in the
  321. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  322. # must be portable across $(()) and expr.
  323. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  324. eval 'as_fn_arith ()
  325. {
  326. as_val=$(( $* ))
  327. }'
  328. else
  329. as_fn_arith ()
  330. {
  331. as_val=`expr "$@" || test $? -eq 1`
  332. }
  333. fi # as_fn_arith
  334. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  335. # ----------------------------------------
  336. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  337. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  338. # script with STATUS, using 1 if that was 0.
  339. as_fn_error ()
  340. {
  341. as_status=$1; test $as_status -eq 0 && as_status=1
  342. if test "$4"; then
  343. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  344. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  345. fi
  346. $as_echo "$as_me: error: $2" >&2
  347. as_fn_exit $as_status
  348. } # as_fn_error
  349. if expr a : '\(a\)' >/dev/null 2>&1 &&
  350. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  351. as_expr=expr
  352. else
  353. as_expr=false
  354. fi
  355. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  356. as_basename=basename
  357. else
  358. as_basename=false
  359. fi
  360. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  361. as_dirname=dirname
  362. else
  363. as_dirname=false
  364. fi
  365. as_me=`$as_basename -- "$0" ||
  366. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  367. X"$0" : 'X\(//\)$' \| \
  368. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  369. $as_echo X/"$0" |
  370. sed '/^.*\/\([^/][^/]*\)\/*$/{
  371. s//\1/
  372. q
  373. }
  374. /^X\/\(\/\/\)$/{
  375. s//\1/
  376. q
  377. }
  378. /^X\/\(\/\).*/{
  379. s//\1/
  380. q
  381. }
  382. s/.*/./; q'`
  383. # Avoid depending upon Character Ranges.
  384. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  385. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  386. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  387. as_cr_digits='0123456789'
  388. as_cr_alnum=$as_cr_Letters$as_cr_digits
  389. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  390. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  391. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  392. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  393. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  394. sed -n '
  395. p
  396. /[$]LINENO/=
  397. ' <$as_myself |
  398. sed '
  399. s/[$]LINENO.*/&-/
  400. t lineno
  401. b
  402. :lineno
  403. N
  404. :loop
  405. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  406. t loop
  407. s/-\n.*//
  408. ' >$as_me.lineno &&
  409. chmod +x "$as_me.lineno" ||
  410. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  411. # Don't try to exec as it changes $[0], causing all sort of problems
  412. # (the dirname of $[0] is not the place where we might find the
  413. # original and so on. Autoconf is especially sensitive to this).
  414. . "./$as_me.lineno"
  415. # Exit status is that of the last command.
  416. exit
  417. }
  418. ECHO_C= ECHO_N= ECHO_T=
  419. case `echo -n x` in #(((((
  420. -n*)
  421. case `echo 'xy\c'` in
  422. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  423. xy) ECHO_C='\c';;
  424. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  425. ECHO_T=' ';;
  426. esac;;
  427. *)
  428. ECHO_N='-n';;
  429. esac
  430. rm -f conf$$ conf$$.exe conf$$.file
  431. if test -d conf$$.dir; then
  432. rm -f conf$$.dir/conf$$.file
  433. else
  434. rm -f conf$$.dir
  435. mkdir conf$$.dir 2>/dev/null
  436. fi
  437. if (echo >conf$$.file) 2>/dev/null; then
  438. if ln -s conf$$.file conf$$ 2>/dev/null; then
  439. as_ln_s='ln -s'
  440. # ... but there are two gotchas:
  441. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  442. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  443. # In both cases, we have to default to `cp -p'.
  444. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  445. as_ln_s='cp -p'
  446. elif ln conf$$.file conf$$ 2>/dev/null; then
  447. as_ln_s=ln
  448. else
  449. as_ln_s='cp -p'
  450. fi
  451. else
  452. as_ln_s='cp -p'
  453. fi
  454. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  455. rmdir conf$$.dir 2>/dev/null
  456. if mkdir -p . 2>/dev/null; then
  457. as_mkdir_p='mkdir -p "$as_dir"'
  458. else
  459. test -d ./-p && rmdir ./-p
  460. as_mkdir_p=false
  461. fi
  462. if test -x / >/dev/null 2>&1; then
  463. as_test_x='test -x'
  464. else
  465. if ls -dL / >/dev/null 2>&1; then
  466. as_ls_L_option=L
  467. else
  468. as_ls_L_option=
  469. fi
  470. as_test_x='
  471. eval sh -c '\''
  472. if test -d "$1"; then
  473. test -d "$1/.";
  474. else
  475. case $1 in #(
  476. -*)set "./$1";;
  477. esac;
  478. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  479. ???[sx]*):;;*)false;;esac;fi
  480. '\'' sh
  481. '
  482. fi
  483. as_executable_p=$as_test_x
  484. # Sed expression to map a string onto a valid CPP name.
  485. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  486. # Sed expression to map a string onto a valid variable name.
  487. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  488. test -n "$DJDIR" || exec 7<&0 </dev/null
  489. exec 6>&1
  490. # Name of the host.
  491. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  492. # so uname gets run too.
  493. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  494. #
  495. # Initializations.
  496. #
  497. ac_default_prefix=/usr/local
  498. ac_clean_files=
  499. ac_config_libobj_dir=.
  500. LIBOBJS=
  501. cross_compiling=no
  502. subdirs=
  503. MFLAGS=
  504. MAKEFLAGS=
  505. # Identity of this package.
  506. PACKAGE_NAME='aria2'
  507. PACKAGE_TARNAME='aria2'
  508. PACKAGE_VERSION='1.10.6'
  509. PACKAGE_STRING='aria2 1.10.6'
  510. PACKAGE_BUGREPORT='t-tujikawa@users.sourceforge.net'
  511. PACKAGE_URL='http://aria2.sourceforge.net/'
  512. ac_unique_file="src/a2io.h"
  513. # Factoring default headers for most tests.
  514. ac_includes_default="\
  515. #include <stdio.h>
  516. #ifdef HAVE_SYS_TYPES_H
  517. # include <sys/types.h>
  518. #endif
  519. #ifdef HAVE_SYS_STAT_H
  520. # include <sys/stat.h>
  521. #endif
  522. #ifdef STDC_HEADERS
  523. # include <stdlib.h>
  524. # include <stddef.h>
  525. #else
  526. # ifdef HAVE_STDLIB_H
  527. # include <stdlib.h>
  528. # endif
  529. #endif
  530. #ifdef HAVE_STRING_H
  531. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  532. # include <memory.h>
  533. # endif
  534. # include <string.h>
  535. #endif
  536. #ifdef HAVE_STRINGS_H
  537. # include <strings.h>
  538. #endif
  539. #ifdef HAVE_INTTYPES_H
  540. # include <inttypes.h>
  541. #endif
  542. #ifdef HAVE_STDINT_H
  543. # include <stdint.h>
  544. #endif
  545. #ifdef HAVE_UNISTD_H
  546. # include <unistd.h>
  547. #endif"
  548. gt_needs=
  549. ac_header_list=
  550. ac_func_list=
  551. ac_subst_vars='am__EXEEXT_FALSE
  552. am__EXEEXT_TRUE
  553. LTLIBOBJS
  554. HAVE_KQUEUE_FALSE
  555. HAVE_KQUEUE_TRUE
  556. HAVE_PORT_ASSOCIATE_FALSE
  557. HAVE_PORT_ASSOCIATE_TRUE
  558. HAVE_TIMEGETTIME_FALSE
  559. HAVE_TIMEGETTIME_TRUE
  560. HAVE_POLL_FALSE
  561. HAVE_POLL_TRUE
  562. HAVE_MACH_ABSOLUTE_TIME_FALSE
  563. HAVE_MACH_ABSOLUTE_TIME_TRUE
  564. HAVE_DAEMON_FALSE
  565. HAVE_DAEMON_TRUE
  566. HAVE_TIMEGM_FALSE
  567. HAVE_TIMEGM_TRUE
  568. HAVE_STRPTIME_FALSE
  569. HAVE_STRPTIME_TRUE
  570. HAVE_LOCALTIME_R_FALSE
  571. HAVE_LOCALTIME_R_TRUE
  572. HAVE_INET_ATON_FALSE
  573. HAVE_INET_ATON_TRUE
  574. HAVE_GETTIMEOFDAY_FALSE
  575. HAVE_GETTIMEOFDAY_TRUE
  576. HAVE_GETADDRINFO_FALSE
  577. HAVE_GETADDRINFO_TRUE
  578. HAVE_GAI_STRERROR_FALSE
  579. HAVE_GAI_STRERROR_TRUE
  580. HAVE_BASENAME_FALSE
  581. HAVE_BASENAME_TRUE
  582. HAVE_ASCTIME_R_FALSE
  583. HAVE_ASCTIME_R_TRUE
  584. HAVE_SOME_FALLOCATE_FALSE
  585. HAVE_SOME_FALLOCATE_TRUE
  586. HAVE_EPOLL_FALSE
  587. HAVE_EPOLL_TRUE
  588. POW_LIB
  589. LIBOBJS
  590. POSUB
  591. LTLIBINTL
  592. LIBINTL
  593. INTLLIBS
  594. INTL_LIBTOOL_SUFFIX_PREFIX
  595. INTLOBJS
  596. GENCAT
  597. INSTOBJEXT
  598. DATADIRNAME
  599. CATOBJEXT
  600. USE_INCLUDED_LIBINTL
  601. BUILD_INCLUDED_LIBINTL
  602. LTLIBC
  603. WINDRES
  604. WOE32
  605. WOE32DLL
  606. HAVE_WPRINTF
  607. HAVE_SNPRINTF
  608. HAVE_ASPRINTF
  609. HAVE_POSIX_PRINTF
  610. INTL_MACOSX_LIBS
  611. GLIBC21
  612. INTLBISON
  613. LTLIBICONV
  614. LIBICONV
  615. LTLIBMULTITHREAD
  616. LIBMULTITHREAD
  617. LTLIBTHREAD
  618. LIBTHREAD
  619. LIBPTH_PREFIX
  620. LTLIBPTH
  621. LIBPTH
  622. PRI_MACROS_BROKEN
  623. HAVE_VISIBILITY
  624. CFLAG_VISIBILITY
  625. GLIBC2
  626. XGETTEXT_EXTRA_OPTIONS
  627. MSGMERGE
  628. XGETTEXT_015
  629. XGETTEXT
  630. GMSGFMT_015
  631. MSGFMT_015
  632. GMSGFMT
  633. MSGFMT
  634. GETTEXT_MACRO_VERSION
  635. USE_NLS
  636. ALLOCA
  637. HAVE_SQLITE3_FALSE
  638. HAVE_SQLITE3_TRUE
  639. HAVE_LIBZ_FALSE
  640. HAVE_LIBZ_TRUE
  641. ENABLE_ASYNC_DNS_FALSE
  642. ENABLE_ASYNC_DNS_TRUE
  643. HAVE_LIBEXPAT_FALSE
  644. HAVE_LIBEXPAT_TRUE
  645. HAVE_LIBXML2_FALSE
  646. HAVE_LIBXML2_TRUE
  647. ENABLE_XML_RPC_FALSE
  648. ENABLE_XML_RPC_TRUE
  649. ENABLE_METALINK_LIBEXPAT_FALSE
  650. ENABLE_METALINK_LIBEXPAT_TRUE
  651. ENABLE_METALINK_LIBXML2_FALSE
  652. ENABLE_METALINK_LIBXML2_TRUE
  653. ENABLE_METALINK_FALSE
  654. ENABLE_METALINK_TRUE
  655. ENABLE_BITTORRENT_FALSE
  656. ENABLE_BITTORRENT_TRUE
  657. ENABLE_MESSAGE_DIGEST_FALSE
  658. ENABLE_MESSAGE_DIGEST_TRUE
  659. HAVE_LIBSSL_FALSE
  660. HAVE_LIBSSL_TRUE
  661. HAVE_LIBGNUTLS_FALSE
  662. HAVE_LIBGNUTLS_TRUE
  663. ca_bundle
  664. ENABLE_SSL_FALSE
  665. ENABLE_SSL_TRUE
  666. LIBZ_CPPFLAGS
  667. LIBZ_LIBS
  668. LIBCARES_CPPFLAGS
  669. LIBCARES_LIBS
  670. OPENSSL_CFLAGS
  671. OPENSSL_LIBS
  672. LIBGCRYPT_LIBS
  673. LIBGCRYPT_CFLAGS
  674. LIBGCRYPT_CONFIG
  675. LIBGNUTLS_CONFIG
  676. LIBGNUTLS_LIBS
  677. LIBGNUTLS_CFLAGS
  678. SQLITE3_LIBS
  679. SQLITE3_CFLAGS
  680. LIBEXPAT_CPPFLAGS
  681. LIBEXPAT_LIBS
  682. XML_LIBS
  683. XML_CPPFLAGS
  684. XML2_CONFIG
  685. PKG_CONFIG_LIBDIR
  686. PKG_CONFIG_PATH
  687. PKG_CONFIG
  688. EGREP
  689. GREP
  690. CXXCPP
  691. YFLAGS
  692. YACC
  693. RANLIB
  694. am__fastdepCC_FALSE
  695. am__fastdepCC_TRUE
  696. CCDEPMODE
  697. ac_ct_CC
  698. CFLAGS
  699. CC
  700. am__fastdepCXX_FALSE
  701. am__fastdepCXX_TRUE
  702. CXXDEPMODE
  703. AMDEPBACKSLASH
  704. AMDEP_FALSE
  705. AMDEP_TRUE
  706. am__quote
  707. am__include
  708. DEPDIR
  709. OBJEXT
  710. EXEEXT
  711. ac_ct_CXX
  712. CPPFLAGS
  713. LDFLAGS
  714. CXXFLAGS
  715. CXX
  716. WINSOCK_LIBS
  717. CPPUNIT_LIBS
  718. CPPUNIT_CFLAGS
  719. CPPUNIT_CONFIG
  720. am__untar
  721. am__tar
  722. AMTAR
  723. am__leading_dot
  724. SET_MAKE
  725. AWK
  726. mkdir_p
  727. MKDIR_P
  728. INSTALL_STRIP_PROGRAM
  729. STRIP
  730. install_sh
  731. MAKEINFO
  732. AUTOHEADER
  733. AUTOMAKE
  734. AUTOCONF
  735. ACLOCAL
  736. VERSION
  737. PACKAGE
  738. CYGPATH_W
  739. am__isrc
  740. INSTALL_DATA
  741. INSTALL_SCRIPT
  742. INSTALL_PROGRAM
  743. target_os
  744. target_vendor
  745. target_cpu
  746. target
  747. host_os
  748. host_vendor
  749. host_cpu
  750. host
  751. build_os
  752. build_vendor
  753. build_cpu
  754. build
  755. target_alias
  756. host_alias
  757. build_alias
  758. LIBS
  759. ECHO_T
  760. ECHO_N
  761. ECHO_C
  762. DEFS
  763. mandir
  764. localedir
  765. libdir
  766. psdir
  767. pdfdir
  768. dvidir
  769. htmldir
  770. infodir
  771. docdir
  772. oldincludedir
  773. includedir
  774. localstatedir
  775. sharedstatedir
  776. sysconfdir
  777. datadir
  778. datarootdir
  779. libexecdir
  780. sbindir
  781. bindir
  782. program_transform_name
  783. prefix
  784. exec_prefix
  785. PACKAGE_URL
  786. PACKAGE_BUGREPORT
  787. PACKAGE_STRING
  788. PACKAGE_VERSION
  789. PACKAGE_TARNAME
  790. PACKAGE_NAME
  791. PATH_SEPARATOR
  792. SHELL'
  793. ac_subst_files=''
  794. ac_user_opts='
  795. enable_option_checking
  796. with_cppunit_prefix
  797. with_cppunit_exec_prefix
  798. with_gnutls
  799. with_openssl
  800. with_sqlite3
  801. with_libxml2
  802. with_libexpat
  803. with_libcares
  804. with_libz
  805. enable_bittorrent
  806. enable_metalink
  807. enable_epoll
  808. with_ca_bundle
  809. enable_dependency_tracking
  810. with_xml_prefix
  811. with_xml_exec_prefix
  812. enable_xmltest
  813. with_libexpat_prefix
  814. with_sqlite3_prefix
  815. with_libgnutls_prefix
  816. with_libgcrypt_prefix
  817. with_openssl_prefix
  818. with_libcares_prefix
  819. with_libz_prefix
  820. enable_largefile
  821. enable_nls
  822. enable_threads
  823. with_gnu_ld
  824. enable_rpath
  825. with_libpth_prefix
  826. with_libiconv_prefix
  827. with_included_gettext
  828. with_libintl_prefix
  829. '
  830. ac_precious_vars='build_alias
  831. host_alias
  832. target_alias
  833. CXX
  834. CXXFLAGS
  835. LDFLAGS
  836. LIBS
  837. CPPFLAGS
  838. CCC
  839. CC
  840. CFLAGS
  841. YACC
  842. YFLAGS
  843. CXXCPP
  844. PKG_CONFIG
  845. PKG_CONFIG_PATH
  846. PKG_CONFIG_LIBDIR
  847. SQLITE3_CFLAGS
  848. SQLITE3_LIBS
  849. LIBGNUTLS_CFLAGS
  850. LIBGNUTLS_LIBS'
  851. # Initialize some variables set by options.
  852. ac_init_help=
  853. ac_init_version=false
  854. ac_unrecognized_opts=
  855. ac_unrecognized_sep=
  856. # The variables have the same names as the options, with
  857. # dashes changed to underlines.
  858. cache_file=/dev/null
  859. exec_prefix=NONE
  860. no_create=
  861. no_recursion=
  862. prefix=NONE
  863. program_prefix=NONE
  864. program_suffix=NONE
  865. program_transform_name=s,x,x,
  866. silent=
  867. site=
  868. srcdir=
  869. verbose=
  870. x_includes=NONE
  871. x_libraries=NONE
  872. # Installation directory options.
  873. # These are left unexpanded so users can "make install exec_prefix=/foo"
  874. # and all the variables that are supposed to be based on exec_prefix
  875. # by default will actually change.
  876. # Use braces instead of parens because sh, perl, etc. also accept them.
  877. # (The list follows the same order as the GNU Coding Standards.)
  878. bindir='${exec_prefix}/bin'
  879. sbindir='${exec_prefix}/sbin'
  880. libexecdir='${exec_prefix}/libexec'
  881. datarootdir='${prefix}/share'
  882. datadir='${datarootdir}'
  883. sysconfdir='${prefix}/etc'
  884. sharedstatedir='${prefix}/com'
  885. localstatedir='${prefix}/var'
  886. includedir='${prefix}/include'
  887. oldincludedir='/usr/include'
  888. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  889. infodir='${datarootdir}/info'
  890. htmldir='${docdir}'
  891. dvidir='${docdir}'
  892. pdfdir='${docdir}'
  893. psdir='${docdir}'
  894. libdir='${exec_prefix}/lib'
  895. localedir='${datarootdir}/locale'
  896. mandir='${datarootdir}/man'
  897. ac_prev=
  898. ac_dashdash=
  899. for ac_option
  900. do
  901. # If the previous option needs an argument, assign it.
  902. if test -n "$ac_prev"; then
  903. eval $ac_prev=\$ac_option
  904. ac_prev=
  905. continue
  906. fi
  907. case $ac_option in
  908. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  909. *=) ac_optarg= ;;
  910. *) ac_optarg=yes ;;
  911. esac
  912. # Accept the important Cygnus configure options, so we can diagnose typos.
  913. case $ac_dashdash$ac_option in
  914. --)
  915. ac_dashdash=yes ;;
  916. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  917. ac_prev=bindir ;;
  918. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  919. bindir=$ac_optarg ;;
  920. -build | --build | --buil | --bui | --bu)
  921. ac_prev=build_alias ;;
  922. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  923. build_alias=$ac_optarg ;;
  924. -cache-file | --cache-file | --cache-fil | --cache-fi \
  925. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  926. ac_prev=cache_file ;;
  927. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  928. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  929. cache_file=$ac_optarg ;;
  930. --config-cache | -C)
  931. cache_file=config.cache ;;
  932. -datadir | --datadir | --datadi | --datad)
  933. ac_prev=datadir ;;
  934. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  935. datadir=$ac_optarg ;;
  936. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  937. | --dataroo | --dataro | --datar)
  938. ac_prev=datarootdir ;;
  939. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  940. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  941. datarootdir=$ac_optarg ;;
  942. -disable-* | --disable-*)
  943. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  944. # Reject names that are not valid shell variable names.
  945. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  946. as_fn_error $? "invalid feature name: $ac_useropt"
  947. ac_useropt_orig=$ac_useropt
  948. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  949. case $ac_user_opts in
  950. *"
  951. "enable_$ac_useropt"
  952. "*) ;;
  953. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  954. ac_unrecognized_sep=', ';;
  955. esac
  956. eval enable_$ac_useropt=no ;;
  957. -docdir | --docdir | --docdi | --doc | --do)
  958. ac_prev=docdir ;;
  959. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  960. docdir=$ac_optarg ;;
  961. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  962. ac_prev=dvidir ;;
  963. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  964. dvidir=$ac_optarg ;;
  965. -enable-* | --enable-*)
  966. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  967. # Reject names that are not valid shell variable names.
  968. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  969. as_fn_error $? "invalid feature name: $ac_useropt"
  970. ac_useropt_orig=$ac_useropt
  971. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  972. case $ac_user_opts in
  973. *"
  974. "enable_$ac_useropt"
  975. "*) ;;
  976. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  977. ac_unrecognized_sep=', ';;
  978. esac
  979. eval enable_$ac_useropt=\$ac_optarg ;;
  980. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  981. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  982. | --exec | --exe | --ex)
  983. ac_prev=exec_prefix ;;
  984. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  985. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  986. | --exec=* | --exe=* | --ex=*)
  987. exec_prefix=$ac_optarg ;;
  988. -gas | --gas | --ga | --g)
  989. # Obsolete; use --with-gas.
  990. with_gas=yes ;;
  991. -help | --help | --hel | --he | -h)
  992. ac_init_help=long ;;
  993. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  994. ac_init_help=recursive ;;
  995. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  996. ac_init_help=short ;;
  997. -host | --host | --hos | --ho)
  998. ac_prev=host_alias ;;
  999. -host=* | --host=* | --hos=* | --ho=*)
  1000. host_alias=$ac_optarg ;;
  1001. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1002. ac_prev=htmldir ;;
  1003. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1004. | --ht=*)
  1005. htmldir=$ac_optarg ;;
  1006. -includedir | --includedir | --includedi | --included | --include \
  1007. | --includ | --inclu | --incl | --inc)
  1008. ac_prev=includedir ;;
  1009. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1010. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1011. includedir=$ac_optarg ;;
  1012. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1013. ac_prev=infodir ;;
  1014. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1015. infodir=$ac_optarg ;;
  1016. -libdir | --libdir | --libdi | --libd)
  1017. ac_prev=libdir ;;
  1018. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1019. libdir=$ac_optarg ;;
  1020. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1021. | --libexe | --libex | --libe)
  1022. ac_prev=libexecdir ;;
  1023. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1024. | --libexe=* | --libex=* | --libe=*)
  1025. libexecdir=$ac_optarg ;;
  1026. -localedir | --localedir | --localedi | --localed | --locale)
  1027. ac_prev=localedir ;;
  1028. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1029. localedir=$ac_optarg ;;
  1030. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1031. | --localstate | --localstat | --localsta | --localst | --locals)
  1032. ac_prev=localstatedir ;;
  1033. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1034. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1035. localstatedir=$ac_optarg ;;
  1036. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1037. ac_prev=mandir ;;
  1038. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1039. mandir=$ac_optarg ;;
  1040. -nfp | --nfp | --nf)
  1041. # Obsolete; use --without-fp.
  1042. with_fp=no ;;
  1043. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1044. | --no-cr | --no-c | -n)
  1045. no_create=yes ;;
  1046. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1047. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1048. no_recursion=yes ;;
  1049. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1050. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1051. | --oldin | --oldi | --old | --ol | --o)
  1052. ac_prev=oldincludedir ;;
  1053. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1054. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1055. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1056. oldincludedir=$ac_optarg ;;
  1057. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1058. ac_prev=prefix ;;
  1059. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1060. prefix=$ac_optarg ;;
  1061. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1062. | --program-pre | --program-pr | --program-p)
  1063. ac_prev=program_prefix ;;
  1064. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1065. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1066. program_prefix=$ac_optarg ;;
  1067. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1068. | --program-suf | --program-su | --program-s)
  1069. ac_prev=program_suffix ;;
  1070. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1071. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1072. program_suffix=$ac_optarg ;;
  1073. -program-transform-name | --program-transform-name \
  1074. | --program-transform-nam | --program-transform-na \
  1075. | --program-transform-n | --program-transform- \
  1076. | --program-transform | --program-transfor \
  1077. | --program-transfo | --program-transf \
  1078. | --program-trans | --program-tran \
  1079. | --progr-tra | --program-tr | --program-t)
  1080. ac_prev=program_transform_name ;;
  1081. -program-transform-name=* | --program-transform-name=* \
  1082. | --program-transform-nam=* | --program-transform-na=* \
  1083. | --program-transform-n=* | --program-transform-=* \
  1084. | --program-transform=* | --program-transfor=* \
  1085. | --program-transfo=* | --program-transf=* \
  1086. | --program-trans=* | --program-tran=* \
  1087. | --progr-tra=* | --program-tr=* | --program-t=*)
  1088. program_transform_name=$ac_optarg ;;
  1089. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1090. ac_prev=pdfdir ;;
  1091. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1092. pdfdir=$ac_optarg ;;
  1093. -psdir | --psdir | --psdi | --psd | --ps)
  1094. ac_prev=psdir ;;
  1095. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1096. psdir=$ac_optarg ;;
  1097. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1098. | -silent | --silent | --silen | --sile | --sil)
  1099. silent=yes ;;
  1100. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1101. ac_prev=sbindir ;;
  1102. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1103. | --sbi=* | --sb=*)
  1104. sbindir=$ac_optarg ;;
  1105. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1106. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1107. | --sharedst | --shareds | --shared | --share | --shar \
  1108. | --sha | --sh)
  1109. ac_prev=sharedstatedir ;;
  1110. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1111. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1112. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1113. | --sha=* | --sh=*)
  1114. sharedstatedir=$ac_optarg ;;
  1115. -site | --site | --sit)
  1116. ac_prev=site ;;
  1117. -site=* | --site=* | --sit=*)
  1118. site=$ac_optarg ;;
  1119. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1120. ac_prev=srcdir ;;
  1121. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1122. srcdir=$ac_optarg ;;
  1123. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1124. | --syscon | --sysco | --sysc | --sys | --sy)
  1125. ac_prev=sysconfdir ;;
  1126. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1127. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1128. sysconfdir=$ac_optarg ;;
  1129. -target | --target | --targe | --targ | --tar | --ta | --t)
  1130. ac_prev=target_alias ;;
  1131. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1132. target_alias=$ac_optarg ;;
  1133. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1134. verbose=yes ;;
  1135. -version | --version | --versio | --versi | --vers | -V)
  1136. ac_init_version=: ;;
  1137. -with-* | --with-*)
  1138. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1139. # Reject names that are not valid shell variable names.
  1140. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1141. as_fn_error $? "invalid package name: $ac_useropt"
  1142. ac_useropt_orig=$ac_useropt
  1143. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1144. case $ac_user_opts in
  1145. *"
  1146. "with_$ac_useropt"
  1147. "*) ;;
  1148. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1149. ac_unrecognized_sep=', ';;
  1150. esac
  1151. eval with_$ac_useropt=\$ac_optarg ;;
  1152. -without-* | --without-*)
  1153. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1154. # Reject names that are not valid shell variable names.
  1155. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1156. as_fn_error $? "invalid package name: $ac_useropt"
  1157. ac_useropt_orig=$ac_useropt
  1158. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1159. case $ac_user_opts in
  1160. *"
  1161. "with_$ac_useropt"
  1162. "*) ;;
  1163. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1164. ac_unrecognized_sep=', ';;
  1165. esac
  1166. eval with_$ac_useropt=no ;;
  1167. --x)
  1168. # Obsolete; use --with-x.
  1169. with_x=yes ;;
  1170. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1171. | --x-incl | --x-inc | --x-in | --x-i)
  1172. ac_prev=x_includes ;;
  1173. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1174. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1175. x_includes=$ac_optarg ;;
  1176. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1177. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1178. ac_prev=x_libraries ;;
  1179. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1180. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1181. x_libraries=$ac_optarg ;;
  1182. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1183. Try \`$0 --help' for more information"
  1184. ;;
  1185. *=*)
  1186. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1187. # Reject names that are not valid shell variable names.
  1188. case $ac_envvar in #(
  1189. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1190. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1191. esac
  1192. eval $ac_envvar=\$ac_optarg
  1193. export $ac_envvar ;;
  1194. *)
  1195. # FIXME: should be removed in autoconf 3.0.
  1196. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1197. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1198. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1199. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1200. ;;
  1201. esac
  1202. done
  1203. if test -n "$ac_prev"; then
  1204. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1205. as_fn_error $? "missing argument to $ac_option"
  1206. fi
  1207. if test -n "$ac_unrecognized_opts"; then
  1208. case $enable_option_checking in
  1209. no) ;;
  1210. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1211. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1212. esac
  1213. fi
  1214. # Check all directory arguments for consistency.
  1215. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1216. datadir sysconfdir sharedstatedir localstatedir includedir \
  1217. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1218. libdir localedir mandir
  1219. do
  1220. eval ac_val=\$$ac_var
  1221. # Remove trailing slashes.
  1222. case $ac_val in
  1223. */ )
  1224. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1225. eval $ac_var=\$ac_val;;
  1226. esac
  1227. # Be sure to have absolute directory names.
  1228. case $ac_val in
  1229. [\\/$]* | ?:[\\/]* ) continue;;
  1230. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1231. esac
  1232. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1233. done
  1234. # There might be people who depend on the old broken behavior: `$host'
  1235. # used to hold the argument of --host etc.
  1236. # FIXME: To remove some day.
  1237. build=$build_alias
  1238. host=$host_alias
  1239. target=$target_alias
  1240. # FIXME: To remove some day.
  1241. if test "x$host_alias" != x; then
  1242. if test "x$build_alias" = x; then
  1243. cross_compiling=maybe
  1244. $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
  1245. If a cross compiler is detected then cross compile mode will be used" >&2
  1246. elif test "x$build_alias" != "x$host_alias"; then
  1247. cross_compiling=yes
  1248. fi
  1249. fi
  1250. ac_tool_prefix=
  1251. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1252. test "$silent" = yes && exec 6>/dev/null
  1253. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1254. ac_ls_di=`ls -di .` &&
  1255. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1256. as_fn_error $? "working directory cannot be determined"
  1257. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1258. as_fn_error $? "pwd does not report name of working directory"
  1259. # Find the source files, if location was not specified.
  1260. if test -z "$srcdir"; then
  1261. ac_srcdir_defaulted=yes
  1262. # Try the directory containing this script, then the parent directory.
  1263. ac_confdir=`$as_dirname -- "$as_myself" ||
  1264. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1265. X"$as_myself" : 'X\(//\)[^/]' \| \
  1266. X"$as_myself" : 'X\(//\)$' \| \
  1267. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1268. $as_echo X"$as_myself" |
  1269. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1270. s//\1/
  1271. q
  1272. }
  1273. /^X\(\/\/\)[^/].*/{
  1274. s//\1/
  1275. q
  1276. }
  1277. /^X\(\/\/\)$/{
  1278. s//\1/
  1279. q
  1280. }
  1281. /^X\(\/\).*/{
  1282. s//\1/
  1283. q
  1284. }
  1285. s/.*/./; q'`
  1286. srcdir=$ac_confdir
  1287. if test ! -r "$srcdir/$ac_unique_file"; then
  1288. srcdir=..
  1289. fi
  1290. else
  1291. ac_srcdir_defaulted=no
  1292. fi
  1293. if test ! -r "$srcdir/$ac_unique_file"; then
  1294. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1295. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1296. fi
  1297. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1298. ac_abs_confdir=`(
  1299. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1300. pwd)`
  1301. # When building in place, set srcdir=.
  1302. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1303. srcdir=.
  1304. fi
  1305. # Remove unnecessary trailing slashes from srcdir.
  1306. # Double slashes in file names in object file debugging info
  1307. # mess up M-x gdb in Emacs.
  1308. case $srcdir in
  1309. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1310. esac
  1311. for ac_var in $ac_precious_vars; do
  1312. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1313. eval ac_env_${ac_var}_value=\$${ac_var}
  1314. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1315. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1316. done
  1317. #
  1318. # Report the --help message.
  1319. #
  1320. if test "$ac_init_help" = "long"; then
  1321. # Omit some internal or obsolete options to make the list less imposing.
  1322. # This message is too long to be a string in the A/UX 3.1 sh.
  1323. cat <<_ACEOF
  1324. \`configure' configures aria2 1.10.6 to adapt to many kinds of systems.
  1325. Usage: $0 [OPTION]... [VAR=VALUE]...
  1326. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1327. VAR=VALUE. See below for descriptions of some of the useful variables.
  1328. Defaults for the options are specified in brackets.
  1329. Configuration:
  1330. -h, --help display this help and exit
  1331. --help=short display options specific to this package
  1332. --help=recursive display the short help of all the included packages
  1333. -V, --version display version information and exit
  1334. -q, --quiet, --silent do not print \`checking ...' messages
  1335. --cache-file=FILE cache test results in FILE [disabled]
  1336. -C, --config-cache alias for \`--cache-file=config.cache'
  1337. -n, --no-create do not create output files
  1338. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1339. Installation directories:
  1340. --prefix=PREFIX install architecture-independent files in PREFIX
  1341. [$ac_default_prefix]
  1342. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1343. [PREFIX]
  1344. By default, \`make install' will install all the files in
  1345. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1346. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1347. for instance \`--prefix=\$HOME'.
  1348. For better control, use the options below.
  1349. Fine tuning of the installation directories:
  1350. --bindir=DIR user executables [EPREFIX/bin]
  1351. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1352. --libexecdir=DIR program executables [EPREFIX/libexec]
  1353. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1354. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1355. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1356. --libdir=DIR object code libraries [EPREFIX/lib]
  1357. --includedir=DIR C header files [PREFIX/include]
  1358. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1359. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1360. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1361. --infodir=DIR info documentation [DATAROOTDIR/info]
  1362. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1363. --mandir=DIR man documentation [DATAROOTDIR/man]
  1364. --docdir=DIR documentation root [DATAROOTDIR/doc/aria2]
  1365. --htmldir=DIR html documentation [DOCDIR]
  1366. --dvidir=DIR dvi documentation [DOCDIR]
  1367. --pdfdir=DIR pdf documentation [DOCDIR]
  1368. --psdir=DIR ps documentation [DOCDIR]
  1369. _ACEOF
  1370. cat <<\_ACEOF
  1371. Program names:
  1372. --program-prefix=PREFIX prepend PREFIX to installed program names
  1373. --program-suffix=SUFFIX append SUFFIX to installed program names
  1374. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1375. System types:
  1376. --build=BUILD configure for building on BUILD [guessed]
  1377. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1378. --target=TARGET configure for building compilers for TARGET [HOST]
  1379. _ACEOF
  1380. fi
  1381. if test -n "$ac_init_help"; then
  1382. case $ac_init_help in
  1383. short | recursive ) echo "Configuration of aria2 1.10.6:";;
  1384. esac
  1385. cat <<\_ACEOF
  1386. Optional Features:
  1387. --disable-option-checking ignore unrecognized --enable/--with options
  1388. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1389. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1390. --enable-bittorrent Enable bittorrent support.
  1391. --enable-metalink Enable metalink support.
  1392. --enable-epoll Enable epoll support.
  1393. --disable-dependency-tracking speeds up one-time build
  1394. --enable-dependency-tracking do not reject slow dependency extractors
  1395. --disable-xmltest Do not try to compile and run a test LIBXML program
  1396. --disable-largefile omit support for large files
  1397. --disable-nls do not use Native Language Support
  1398. --enable-threads={posix|solaris|pth|win32}
  1399. specify multithreading API
  1400. --disable-threads build without multithread safety
  1401. --disable-rpath do not hardcode runtime library paths
  1402. Optional Packages:
  1403. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1404. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1405. --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
  1406. --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
  1407. --with-gnutls Use gnutls if it is installed.
  1408. --with-openssl Use openssl if it is installed.
  1409. --with-sqlite3 Use sqlite3 if it is installed.
  1410. --with-libxml2 Use libxml2 if it is installed.
  1411. --with-libexpat Use libexpat if it is installed.
  1412. --with-libcares Use libcares if it is installed.
  1413. --with-libz Use libz if it is installed.
  1414. --with-ca-bundle=FILE Use FILE as default CA bundle.
  1415. --with-xml-prefix=PFX Prefix where libxml is installed (optional)
  1416. --with-xml-exec-prefix=PFX Exec prefix where libxml is installed (optional)
  1417. --with-libexpat-prefix=PREFIX Prefix where libexpat installed (optional)
  1418. --with-sqlite3-prefix=PREFIX Prefix where SQLite3 installed (optional)
  1419. --with-libgnutls-prefix=PFX Prefix where libgnutls is installed (optional)
  1420. --with-libgcrypt-prefix=PFX
  1421. prefix where LIBGCRYPT is installed (optional)
  1422. --with-openssl-prefix=PREFIX Prefix where OpenSSL installed (optional)
  1423. --with-libcares-prefix=PREFIX Prefix where libcares installed (optional)
  1424. --with-libz-prefix=PREFIX Prefix where libz installed (optional)
  1425. --with-gnu-ld assume the C compiler uses GNU ld default=no
  1426. --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
  1427. --without-libpth-prefix don't search for libpth in includedir and libdir
  1428. --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
  1429. --without-libiconv-prefix don't search for libiconv in includedir and libdir
  1430. --with-included-gettext use the GNU gettext library included here
  1431. --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
  1432. --without-libintl-prefix don't search for libintl in includedir and libdir
  1433. Some influential environment variables:
  1434. CXX C++ compiler command
  1435. CXXFLAGS C++ compiler flags
  1436. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1437. nonstandard directory <lib dir>
  1438. LIBS libraries to pass to the linker, e.g. -l<library>
  1439. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1440. you have headers in a nonstandard directory <include dir>
  1441. CC C compiler command
  1442. CFLAGS C compiler flags
  1443. YACC The `Yet Another C Compiler' implementation to use. Defaults to
  1444. the first program found out of: `bison -y', `byacc', `yacc'.
  1445. YFLAGS The list of arguments that will be passed by default to $YACC.
  1446. This script will default YFLAGS to the empty string to avoid a
  1447. default value of `-d' given by some make applications.
  1448. CXXCPP C++ preprocessor
  1449. PKG_CONFIG path to pkg-config utility
  1450. PKG_CONFIG_PATH
  1451. directories to add to pkg-config's search path
  1452. PKG_CONFIG_LIBDIR
  1453. path overriding pkg-config's built-in search path
  1454. SQLITE3_CFLAGS
  1455. C compiler flags for SQLITE3, overriding pkg-config
  1456. SQLITE3_LIBS
  1457. linker flags for SQLITE3, overriding pkg-config
  1458. LIBGNUTLS_CFLAGS
  1459. C compiler flags for LIBGNUTLS, overriding pkg-config
  1460. LIBGNUTLS_LIBS
  1461. linker flags for LIBGNUTLS, overriding pkg-config
  1462. Use these variables to override the choices made by `configure' or to help
  1463. it to find libraries and programs with nonstandard names/locations.
  1464. Report bugs to <t-tujikawa@users.sourceforge.net>.
  1465. aria2 home page: <http://aria2.sourceforge.net/>.
  1466. _ACEOF
  1467. ac_status=$?
  1468. fi
  1469. if test "$ac_init_help" = "recursive"; then
  1470. # If there are subdirs, report their specific --help.
  1471. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1472. test -d "$ac_dir" ||
  1473. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1474. continue
  1475. ac_builddir=.
  1476. case "$ac_dir" in
  1477. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1478. *)
  1479. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1480. # A ".." for each directory in $ac_dir_suffix.
  1481. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1482. case $ac_top_builddir_sub in
  1483. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1484. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1485. esac ;;
  1486. esac
  1487. ac_abs_top_builddir=$ac_pwd
  1488. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1489. # for backward compatibility:
  1490. ac_top_builddir=$ac_top_build_prefix
  1491. case $srcdir in
  1492. .) # We are building in place.
  1493. ac_srcdir=.
  1494. ac_top_srcdir=$ac_top_builddir_sub
  1495. ac_abs_top_srcdir=$ac_pwd ;;
  1496. [\\/]* | ?:[\\/]* ) # Absolute name.
  1497. ac_srcdir=$srcdir$ac_dir_suffix;
  1498. ac_top_srcdir=$srcdir
  1499. ac_abs_top_srcdir=$srcdir ;;
  1500. *) # Relative name.
  1501. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1502. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1503. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1504. esac
  1505. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1506. cd "$ac_dir" || { ac_status=$?; continue; }
  1507. # Check for guested configure.
  1508. if test -f "$ac_srcdir/configure.gnu"; then
  1509. echo &&
  1510. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1511. elif test -f "$ac_srcdir/configure"; then
  1512. echo &&
  1513. $SHELL "$ac_srcdir/configure" --help=recursive
  1514. else
  1515. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1516. fi || ac_status=$?
  1517. cd "$ac_pwd" || { ac_status=$?; break; }
  1518. done
  1519. fi
  1520. test -n "$ac_init_help" && exit $ac_status
  1521. if $ac_init_version; then
  1522. cat <<\_ACEOF
  1523. aria2 configure 1.10.6
  1524. generated by GNU Autoconf 2.67
  1525. Copyright (C) 2010 Free Software Foundation, Inc.
  1526. This configure script is free software; the Free Software Foundation
  1527. gives unlimited permission to copy, distribute and modify it.
  1528. _ACEOF
  1529. exit
  1530. fi
  1531. ## ------------------------ ##
  1532. ## Autoconf initialization. ##
  1533. ## ------------------------ ##
  1534. # ac_fn_cxx_try_compile LINENO
  1535. # ----------------------------
  1536. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1537. ac_fn_cxx_try_compile ()
  1538. {
  1539. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1540. rm -f conftest.$ac_objext
  1541. if { { ac_try="$ac_compile"
  1542. case "(($ac_try" in
  1543. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1544. *) ac_try_echo=$ac_try;;
  1545. esac
  1546. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1547. $as_echo "$ac_try_echo"; } >&5
  1548. (eval "$ac_compile") 2>conftest.err
  1549. ac_status=$?
  1550. if test -s conftest.err; then
  1551. grep -v '^ *+' conftest.err >conftest.er1
  1552. cat conftest.er1 >&5
  1553. mv -f conftest.er1 conftest.err
  1554. fi
  1555. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1556. test $ac_status = 0; } && {
  1557. test -z "$ac_cxx_werror_flag" ||
  1558. test ! -s conftest.err
  1559. } && test -s conftest.$ac_objext; then :
  1560. ac_retval=0
  1561. else
  1562. $as_echo "$as_me: failed program was:" >&5
  1563. sed 's/^/| /' conftest.$ac_ext >&5
  1564. ac_retval=1
  1565. fi
  1566. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1567. as_fn_set_status $ac_retval
  1568. } # ac_fn_cxx_try_compile
  1569. # ac_fn_c_try_compile LINENO
  1570. # --------------------------
  1571. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1572. ac_fn_c_try_compile ()
  1573. {
  1574. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1575. rm -f conftest.$ac_objext
  1576. if { { ac_try="$ac_compile"
  1577. case "(($ac_try" in
  1578. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1579. *) ac_try_echo=$ac_try;;
  1580. esac
  1581. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1582. $as_echo "$ac_try_echo"; } >&5
  1583. (eval "$ac_compile") 2>conftest.err
  1584. ac_status=$?
  1585. if test -s conftest.err; then
  1586. grep -v '^ *+' conftest.err >conftest.er1
  1587. cat conftest.er1 >&5
  1588. mv -f conftest.er1 conftest.err
  1589. fi
  1590. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1591. test $ac_status = 0; } && {
  1592. test -z "$ac_c_werror_flag" ||
  1593. test ! -s conftest.err
  1594. } && test -s conftest.$ac_objext; then :
  1595. ac_retval=0
  1596. else
  1597. $as_echo "$as_me: failed program was:" >&5
  1598. sed 's/^/| /' conftest.$ac_ext >&5
  1599. ac_retval=1
  1600. fi
  1601. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1602. as_fn_set_status $ac_retval
  1603. } # ac_fn_c_try_compile
  1604. # ac_fn_cxx_try_cpp LINENO
  1605. # ------------------------
  1606. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1607. ac_fn_cxx_try_cpp ()
  1608. {
  1609. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1610. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1611. case "(($ac_try" in
  1612. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1613. *) ac_try_echo=$ac_try;;
  1614. esac
  1615. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1616. $as_echo "$ac_try_echo"; } >&5
  1617. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1618. ac_status=$?
  1619. if test -s conftest.err; then
  1620. grep -v '^ *+' conftest.err >conftest.er1
  1621. cat conftest.er1 >&5
  1622. mv -f conftest.er1 conftest.err
  1623. fi
  1624. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1625. test $ac_status = 0; } > conftest.i && {
  1626. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1627. test ! -s conftest.err
  1628. }; then :
  1629. ac_retval=0
  1630. else
  1631. $as_echo "$as_me: failed program was:" >&5
  1632. sed 's/^/| /' conftest.$ac_ext >&5
  1633. ac_retval=1
  1634. fi
  1635. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1636. as_fn_set_status $ac_retval
  1637. } # ac_fn_cxx_try_cpp
  1638. # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
  1639. # ---------------------------------------------------------
  1640. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1641. # the include files in INCLUDES and setting the cache variable VAR
  1642. # accordingly.
  1643. ac_fn_cxx_check_header_mongrel ()
  1644. {
  1645. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1646. if eval "test \"\${$3+set}\"" = set; then :
  1647. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1648. $as_echo_n "checking for $2... " >&6; }
  1649. if eval "test \"\${$3+set}\"" = set; then :
  1650. $as_echo_n "(cached) " >&6
  1651. fi
  1652. eval ac_res=\$$3
  1653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1654. $as_echo "$ac_res" >&6; }
  1655. else
  1656. # Is the header compilable?
  1657. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1658. $as_echo_n "checking $2 usability... " >&6; }
  1659. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1660. /* end confdefs.h. */
  1661. $4
  1662. #include <$2>
  1663. _ACEOF
  1664. if ac_fn_cxx_try_compile "$LINENO"; then :
  1665. ac_header_compiler=yes
  1666. else
  1667. ac_header_compiler=no
  1668. fi
  1669. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1671. $as_echo "$ac_header_compiler" >&6; }
  1672. # Is the header present?
  1673. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1674. $as_echo_n "checking $2 presence... " >&6; }
  1675. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1676. /* end confdefs.h. */
  1677. #include <$2>
  1678. _ACEOF
  1679. if ac_fn_cxx_try_cpp "$LINENO"; then :
  1680. ac_header_preproc=yes
  1681. else
  1682. ac_header_preproc=no
  1683. fi
  1684. rm -f conftest.err conftest.i conftest.$ac_ext
  1685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1686. $as_echo "$ac_header_preproc" >&6; }
  1687. # So? What about this header?
  1688. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
  1689. yes:no: )
  1690. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1691. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1692. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1693. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1694. ;;
  1695. no:yes:* )
  1696. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1697. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1698. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1699. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1700. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1701. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1702. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1703. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1704. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1705. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1706. ( $as_echo "## ----------------------------------------------- ##
  1707. ## Report this to t-tujikawa@users.sourceforge.net ##
  1708. ## ----------------------------------------------- ##"
  1709. ) | sed "s/^/$as_me: WARNING: /" >&2
  1710. ;;
  1711. esac
  1712. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1713. $as_echo_n "checking for $2... " >&6; }
  1714. if eval "test \"\${$3+set}\"" = set; then :
  1715. $as_echo_n "(cached) " >&6
  1716. else
  1717. eval "$3=\$ac_header_compiler"
  1718. fi
  1719. eval ac_res=\$$3
  1720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1721. $as_echo "$ac_res" >&6; }
  1722. fi
  1723. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1724. } # ac_fn_cxx_check_header_mongrel
  1725. # ac_fn_cxx_try_run LINENO
  1726. # ------------------------
  1727. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1728. # that executables *can* be run.
  1729. ac_fn_cxx_try_run ()
  1730. {
  1731. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1732. if { { ac_try="$ac_link"
  1733. case "(($ac_try" in
  1734. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1735. *) ac_try_echo=$ac_try;;
  1736. esac
  1737. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1738. $as_echo "$ac_try_echo"; } >&5
  1739. (eval "$ac_link") 2>&5
  1740. ac_status=$?
  1741. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1742. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1743. { { case "(($ac_try" in
  1744. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1745. *) ac_try_echo=$ac_try;;
  1746. esac
  1747. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1748. $as_echo "$ac_try_echo"; } >&5
  1749. (eval "$ac_try") 2>&5
  1750. ac_status=$?
  1751. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1752. test $ac_status = 0; }; }; then :
  1753. ac_retval=0
  1754. else
  1755. $as_echo "$as_me: program exited with status $ac_status" >&5
  1756. $as_echo "$as_me: failed program was:" >&5
  1757. sed 's/^/| /' conftest.$ac_ext >&5
  1758. ac_retval=$ac_status
  1759. fi
  1760. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1761. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1762. as_fn_set_status $ac_retval
  1763. } # ac_fn_cxx_try_run
  1764. # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
  1765. # ---------------------------------------------------------
  1766. # Tests whether HEADER exists and can be compiled using the include files in
  1767. # INCLUDES, setting the cache variable VAR accordingly.
  1768. ac_fn_cxx_check_header_compile ()
  1769. {
  1770. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1771. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1772. $as_echo_n "checking for $2... " >&6; }
  1773. if eval "test \"\${$3+set}\"" = set; then :
  1774. $as_echo_n "(cached) " >&6
  1775. else
  1776. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1777. /* end confdefs.h. */
  1778. $4
  1779. #include <$2>
  1780. _ACEOF
  1781. if ac_fn_cxx_try_compile "$LINENO"; then :
  1782. eval "$3=yes"
  1783. else
  1784. eval "$3=no"
  1785. fi
  1786. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1787. fi
  1788. eval ac_res=\$$3
  1789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1790. $as_echo "$ac_res" >&6; }
  1791. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1792. } # ac_fn_cxx_check_header_compile
  1793. # ac_fn_cxx_try_link LINENO
  1794. # -------------------------
  1795. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1796. ac_fn_cxx_try_link ()
  1797. {
  1798. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1799. rm -f conftest.$ac_objext conftest$ac_exeext
  1800. if { { ac_try="$ac_link"
  1801. case "(($ac_try" in
  1802. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1803. *) ac_try_echo=$ac_try;;
  1804. esac
  1805. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1806. $as_echo "$ac_try_echo"; } >&5
  1807. (eval "$ac_link") 2>conftest.err
  1808. ac_status=$?
  1809. if test -s conftest.err; then
  1810. grep -v '^ *+' conftest.err >conftest.er1
  1811. cat conftest.er1 >&5
  1812. mv -f conftest.er1 conftest.err
  1813. fi
  1814. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1815. test $ac_status = 0; } && {
  1816. test -z "$ac_cxx_werror_flag" ||
  1817. test ! -s conftest.err
  1818. } && test -s conftest$ac_exeext && {
  1819. test "$cross_compiling" = yes ||
  1820. $as_test_x conftest$ac_exeext
  1821. }; then :
  1822. ac_retval=0
  1823. else
  1824. $as_echo "$as_me: failed program was:" >&5
  1825. sed 's/^/| /' conftest.$ac_ext >&5
  1826. ac_retval=1
  1827. fi
  1828. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1829. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1830. # interfere with the next link command; also delete a directory that is
  1831. # left behind by Apple's compiler. We do this before executing the actions.
  1832. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1833. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1834. as_fn_set_status $ac_retval
  1835. } # ac_fn_cxx_try_link
  1836. # ac_fn_cxx_check_func LINENO FUNC VAR
  1837. # ------------------------------------
  1838. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1839. ac_fn_cxx_check_func ()
  1840. {
  1841. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1842. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1843. $as_echo_n "checking for $2... " >&6; }
  1844. if eval "test \"\${$3+set}\"" = set; then :
  1845. $as_echo_n "(cached) " >&6
  1846. else
  1847. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1848. /* end confdefs.h. */
  1849. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1850. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1851. #define $2 innocuous_$2
  1852. /* System header to define __stub macros and hopefully few prototypes,
  1853. which can conflict with char $2 (); below.
  1854. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1855. <limits.h> exists even on freestanding compilers. */
  1856. #ifdef __STDC__
  1857. # include <limits.h>
  1858. #else
  1859. # include <assert.h>
  1860. #endif
  1861. #undef $2
  1862. /* Override any GCC internal prototype to avoid an error.
  1863. Use char because int might match the return type of a GCC
  1864. builtin and then its argument prototype would still apply. */
  1865. #ifdef __cplusplus
  1866. extern "C"
  1867. #endif
  1868. char $2 ();
  1869. /* The GNU C library defines this for functions which it implements
  1870. to always fail with ENOSYS. Some functions are actually named
  1871. something starting with __ and the normal name is an alias. */
  1872. #if defined __stub_$2 || defined __stub___$2
  1873. choke me
  1874. #endif
  1875. int
  1876. main ()
  1877. {
  1878. return $2 ();
  1879. ;
  1880. return 0;
  1881. }
  1882. _ACEOF
  1883. if ac_fn_cxx_try_link "$LINENO"; then :
  1884. eval "$3=yes"
  1885. else
  1886. eval "$3=no"
  1887. fi
  1888. rm -f core conftest.err conftest.$ac_objext \
  1889. conftest$ac_exeext conftest.$ac_ext
  1890. fi
  1891. eval ac_res=\$$3
  1892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1893. $as_echo "$ac_res" >&6; }
  1894. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1895. } # ac_fn_cxx_check_func
  1896. # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
  1897. # ---------------------------------------------
  1898. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1899. # variable VAR accordingly.
  1900. ac_fn_cxx_check_type ()
  1901. {
  1902. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1903. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1904. $as_echo_n "checking for $2... " >&6; }
  1905. if eval "test \"\${$3+set}\"" = set; then :
  1906. $as_echo_n "(cached) " >&6
  1907. else
  1908. eval "$3=no"
  1909. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1910. /* end confdefs.h. */
  1911. $4
  1912. int
  1913. main ()
  1914. {
  1915. if (sizeof ($2))
  1916. return 0;
  1917. ;
  1918. return 0;
  1919. }
  1920. _ACEOF
  1921. if ac_fn_cxx_try_compile "$LINENO"; then :
  1922. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1923. /* end confdefs.h. */
  1924. $4
  1925. int
  1926. main ()
  1927. {
  1928. if (sizeof (($2)))
  1929. return 0;
  1930. ;
  1931. return 0;
  1932. }
  1933. _ACEOF
  1934. if ac_fn_cxx_try_compile "$LINENO"; then :
  1935. else
  1936. eval "$3=yes"
  1937. fi
  1938. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1939. fi
  1940. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1941. fi
  1942. eval ac_res=\$$3
  1943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1944. $as_echo "$ac_res" >&6; }
  1945. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1946. } # ac_fn_cxx_check_type
  1947. # ac_fn_c_find_intX_t LINENO BITS VAR
  1948. # -----------------------------------
  1949. # Finds a signed integer type with width BITS, setting cache variable VAR
  1950. # accordingly.
  1951. ac_fn_c_find_intX_t ()
  1952. {
  1953. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1954. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
  1955. $as_echo_n "checking for int$2_t... " >&6; }
  1956. if eval "test \"\${$3+set}\"" = set; then :
  1957. $as_echo_n "(cached) " >&6
  1958. else
  1959. eval "$3=no"
  1960. # Order is important - never check a type that is potentially smaller
  1961. # than half of the expected target width.
  1962. for ac_type in int$2_t 'int' 'long int' \
  1963. 'long long int' 'short int' 'signed char'; do
  1964. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1965. /* end confdefs.h. */
  1966. $ac_includes_default
  1967. enum { N = $2 / 2 - 1 };
  1968. int
  1969. main ()
  1970. {
  1971. static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
  1972. test_array [0] = 0
  1973. ;
  1974. return 0;
  1975. }
  1976. _ACEOF
  1977. if ac_fn_cxx_try_compile "$LINENO"; then :
  1978. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1979. /* end confdefs.h. */
  1980. $ac_includes_default
  1981. enum { N = $2 / 2 - 1 };
  1982. int
  1983. main ()
  1984. {
  1985. static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
  1986. < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
  1987. test_array [0] = 0
  1988. ;
  1989. return 0;
  1990. }
  1991. _ACEOF
  1992. if ac_fn_cxx_try_compile "$LINENO"; then :
  1993. else
  1994. case $ac_type in #(
  1995. int$2_t) :
  1996. eval "$3=yes" ;; #(
  1997. *) :
  1998. eval "$3=\$ac_type" ;;
  1999. esac
  2000. fi
  2001. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2002. fi
  2003. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2004. if eval test \"x\$"$3"\" = x"no"; then :
  2005. else
  2006. break
  2007. fi
  2008. done
  2009. fi
  2010. eval ac_res=\$$3
  2011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2012. $as_echo "$ac_res" >&6; }
  2013. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2014. } # ac_fn_c_find_intX_t
  2015. # ac_fn_c_find_uintX_t LINENO BITS VAR
  2016. # ------------------------------------
  2017. # Finds an unsigned integer type with width BITS, setting cache variable VAR
  2018. # accordingly.
  2019. ac_fn_c_find_uintX_t ()
  2020. {
  2021. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2022. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
  2023. $as_echo_n "checking for uint$2_t... " >&6; }
  2024. if eval "test \"\${$3+set}\"" = set; then :
  2025. $as_echo_n "(cached) " >&6
  2026. else
  2027. eval "$3=no"
  2028. # Order is important - never check a type that is potentially smaller
  2029. # than half of the expected target width.
  2030. for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
  2031. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  2032. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2033. /* end confdefs.h. */
  2034. $ac_includes_default
  2035. int
  2036. main ()
  2037. {
  2038. static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
  2039. test_array [0] = 0
  2040. ;
  2041. return 0;
  2042. }
  2043. _ACEOF
  2044. if ac_fn_cxx_try_compile "$LINENO"; then :
  2045. case $ac_type in #(
  2046. uint$2_t) :
  2047. eval "$3=yes" ;; #(
  2048. *) :
  2049. eval "$3=\$ac_type" ;;
  2050. esac
  2051. fi
  2052. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2053. if eval test \"x\$"$3"\" = x"no"; then :
  2054. else
  2055. break
  2056. fi
  2057. done
  2058. fi
  2059. eval ac_res=\$$3
  2060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2061. $as_echo "$ac_res" >&6; }
  2062. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2063. } # ac_fn_c_find_uintX_t
  2064. # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
  2065. # ----------------------------------------------
  2066. # Tries to find the compile-time value of EXPR in a program that includes
  2067. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  2068. # computed
  2069. ac_fn_cxx_compute_int ()
  2070. {
  2071. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2072. if test "$cross_compiling" = yes; then
  2073. # Depending upon the size, compute the lo and hi bounds.
  2074. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2075. /* end confdefs.h. */
  2076. $4
  2077. int
  2078. main ()
  2079. {
  2080. static int test_array [1 - 2 * !(($2) >= 0)];
  2081. test_array [0] = 0
  2082. ;
  2083. return 0;
  2084. }
  2085. _ACEOF
  2086. if ac_fn_cxx_try_compile "$LINENO"; then :
  2087. ac_lo=0 ac_mid=0
  2088. while :; do
  2089. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2090. /* end confdefs.h. */
  2091. $4
  2092. int
  2093. main ()
  2094. {
  2095. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2096. test_array [0] = 0
  2097. ;
  2098. return 0;
  2099. }
  2100. _ACEOF
  2101. if ac_fn_cxx_try_compile "$LINENO"; then :
  2102. ac_hi=$ac_mid; break
  2103. else
  2104. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  2105. if test $ac_lo -le $ac_mid; then
  2106. ac_lo= ac_hi=
  2107. break
  2108. fi
  2109. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  2110. fi
  2111. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2112. done
  2113. else
  2114. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2115. /* end confdefs.h. */
  2116. $4
  2117. int
  2118. main ()
  2119. {
  2120. static int test_array [1 - 2 * !(($2) < 0)];
  2121. test_array [0] = 0
  2122. ;
  2123. return 0;
  2124. }
  2125. _ACEOF
  2126. if ac_fn_cxx_try_compile "$LINENO"; then :
  2127. ac_hi=-1 ac_mid=-1
  2128. while :; do
  2129. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2130. /* end confdefs.h. */
  2131. $4
  2132. int
  2133. main ()
  2134. {
  2135. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  2136. test_array [0] = 0
  2137. ;
  2138. return 0;
  2139. }
  2140. _ACEOF
  2141. if ac_fn_cxx_try_compile "$LINENO"; then :
  2142. ac_lo=$ac_mid; break
  2143. else
  2144. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  2145. if test $ac_mid -le $ac_hi; then
  2146. ac_lo= ac_hi=
  2147. break
  2148. fi
  2149. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  2150. fi
  2151. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2152. done
  2153. else
  2154. ac_lo= ac_hi=
  2155. fi
  2156. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2157. fi
  2158. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2159. # Binary search between lo and hi bounds.
  2160. while test "x$ac_lo" != "x$ac_hi"; do
  2161. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  2162. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2163. /* end confdefs.h. */
  2164. $4
  2165. int
  2166. main ()
  2167. {
  2168. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2169. test_array [0] = 0
  2170. ;
  2171. return 0;
  2172. }
  2173. _ACEOF
  2174. if ac_fn_cxx_try_compile "$LINENO"; then :
  2175. ac_hi=$ac_mid
  2176. else
  2177. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  2178. fi
  2179. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2180. done
  2181. case $ac_lo in #((
  2182. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  2183. '') ac_retval=1 ;;
  2184. esac
  2185. else
  2186. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2187. /* end confdefs.h. */
  2188. $4
  2189. static long int longval () { return $2; }
  2190. static unsigned long int ulongval () { return $2; }
  2191. #include <stdio.h>
  2192. #include <stdlib.h>
  2193. int
  2194. main ()
  2195. {
  2196. FILE *f = fopen ("conftest.val", "w");
  2197. if (! f)
  2198. return 1;
  2199. if (($2) < 0)
  2200. {
  2201. long int i = longval ();
  2202. if (i != ($2))
  2203. return 1;
  2204. fprintf (f, "%ld", i);
  2205. }
  2206. else
  2207. {
  2208. unsigned long int i = ulongval ();
  2209. if (i != ($2))
  2210. return 1;
  2211. fprintf (f, "%lu", i);
  2212. }
  2213. /* Do not output a trailing newline, as this causes \r\n confusion
  2214. on some platforms. */
  2215. return ferror (f) || fclose (f) != 0;
  2216. ;
  2217. return 0;
  2218. }
  2219. _ACEOF
  2220. if ac_fn_cxx_try_run "$LINENO"; then :
  2221. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  2222. else
  2223. ac_retval=1
  2224. fi
  2225. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  2226. conftest.$ac_objext conftest.beam conftest.$ac_ext
  2227. rm -f conftest.val
  2228. fi
  2229. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2230. as_fn_set_status $ac_retval
  2231. } # ac_fn_cxx_compute_int
  2232. # ac_fn_cxx_check_member LINENO AGGR MEMBER VAR INCLUDES
  2233. # ------------------------------------------------------
  2234. # Tries to find if the field MEMBER exists in type AGGR, after including
  2235. # INCLUDES, setting cache variable VAR accordingly.
  2236. ac_fn_cxx_check_member ()
  2237. {
  2238. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2239. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2240. $as_echo_n "checking for $2.$3... " >&6; }
  2241. if eval "test \"\${$4+set}\"" = set; then :
  2242. $as_echo_n "(cached) " >&6
  2243. else
  2244. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2245. /* end confdefs.h. */
  2246. $5
  2247. int
  2248. main ()
  2249. {
  2250. static $2 ac_aggr;
  2251. if (ac_aggr.$3)
  2252. return 0;
  2253. ;
  2254. return 0;
  2255. }
  2256. _ACEOF
  2257. if ac_fn_cxx_try_compile "$LINENO"; then :
  2258. eval "$4=yes"
  2259. else
  2260. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2261. /* end confdefs.h. */
  2262. $5
  2263. int
  2264. main ()
  2265. {
  2266. static $2 ac_aggr;
  2267. if (sizeof ac_aggr.$3)
  2268. return 0;
  2269. ;
  2270. return 0;
  2271. }
  2272. _ACEOF
  2273. if ac_fn_cxx_try_compile "$LINENO"; then :
  2274. eval "$4=yes"
  2275. else
  2276. eval "$4=no"
  2277. fi
  2278. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2279. fi
  2280. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2281. fi
  2282. eval ac_res=\$$4
  2283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2284. $as_echo "$ac_res" >&6; }
  2285. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2286. } # ac_fn_cxx_check_member
  2287. cat >config.log <<_ACEOF
  2288. This file contains any messages produced by compilers while
  2289. running configure, to aid debugging if configure makes a mistake.
  2290. It was created by aria2 $as_me 1.10.6, which was
  2291. generated by GNU Autoconf 2.67. Invocation command line was
  2292. $ $0 $@
  2293. _ACEOF
  2294. exec 5>>config.log
  2295. {
  2296. cat <<_ASUNAME
  2297. ## --------- ##
  2298. ## Platform. ##
  2299. ## --------- ##
  2300. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2301. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2302. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2303. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2304. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2305. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2306. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2307. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2308. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2309. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2310. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2311. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2312. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2313. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2314. _ASUNAME
  2315. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2316. for as_dir in $PATH
  2317. do
  2318. IFS=$as_save_IFS
  2319. test -z "$as_dir" && as_dir=.
  2320. $as_echo "PATH: $as_dir"
  2321. done
  2322. IFS=$as_save_IFS
  2323. } >&5
  2324. cat >&5 <<_ACEOF
  2325. ## ----------- ##
  2326. ## Core tests. ##
  2327. ## ----------- ##
  2328. _ACEOF
  2329. # Keep a trace of the command line.
  2330. # Strip out --no-create and --no-recursion so they do not pile up.
  2331. # Strip out --silent because we don't want to record it for future runs.
  2332. # Also quote any args containing shell meta-characters.
  2333. # Make two passes to allow for proper duplicate-argument suppression.
  2334. ac_configure_args=
  2335. ac_configure_args0=
  2336. ac_configure_args1=
  2337. ac_must_keep_next=false
  2338. for ac_pass in 1 2
  2339. do
  2340. for ac_arg
  2341. do
  2342. case $ac_arg in
  2343. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2344. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2345. | -silent | --silent | --silen | --sile | --sil)
  2346. continue ;;
  2347. *\'*)
  2348. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2349. esac
  2350. case $ac_pass in
  2351. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2352. 2)
  2353. as_fn_append ac_configure_args1 " '$ac_arg'"
  2354. if test $ac_must_keep_next = true; then
  2355. ac_must_keep_next=false # Got value, back to normal.
  2356. else
  2357. case $ac_arg in
  2358. *=* | --config-cache | -C | -disable-* | --disable-* \
  2359. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2360. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2361. | -with-* | --with-* | -without-* | --without-* | --x)
  2362. case "$ac_configure_args0 " in
  2363. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2364. esac
  2365. ;;
  2366. -* ) ac_must_keep_next=true ;;
  2367. esac
  2368. fi
  2369. as_fn_append ac_configure_args " '$ac_arg'"
  2370. ;;
  2371. esac
  2372. done
  2373. done
  2374. { ac_configure_args0=; unset ac_configure_args0;}
  2375. { ac_configure_args1=; unset ac_configure_args1;}
  2376. # When interrupted or exit'd, cleanup temporary files, and complete
  2377. # config.log. We remove comments because anyway the quotes in there
  2378. # would cause problems or look ugly.
  2379. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2380. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2381. trap 'exit_status=$?
  2382. # Save into config.log some information that might help in debugging.
  2383. {
  2384. echo
  2385. $as_echo "## ---------------- ##
  2386. ## Cache variables. ##
  2387. ## ---------------- ##"
  2388. echo
  2389. # The following way of writing the cache mishandles newlines in values,
  2390. (
  2391. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2392. eval ac_val=\$$ac_var
  2393. case $ac_val in #(
  2394. *${as_nl}*)
  2395. case $ac_var in #(
  2396. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2397. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2398. esac
  2399. case $ac_var in #(
  2400. _ | IFS | as_nl) ;; #(
  2401. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2402. *) { eval $ac_var=; unset $ac_var;} ;;
  2403. esac ;;
  2404. esac
  2405. done
  2406. (set) 2>&1 |
  2407. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2408. *${as_nl}ac_space=\ *)
  2409. sed -n \
  2410. "s/'\''/'\''\\\\'\'''\''/g;
  2411. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2412. ;; #(
  2413. *)
  2414. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2415. ;;
  2416. esac |
  2417. sort
  2418. )
  2419. echo
  2420. $as_echo "## ----------------- ##
  2421. ## Output variables. ##
  2422. ## ----------------- ##"
  2423. echo
  2424. for ac_var in $ac_subst_vars
  2425. do
  2426. eval ac_val=\$$ac_var
  2427. case $ac_val in
  2428. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2429. esac
  2430. $as_echo "$ac_var='\''$ac_val'\''"
  2431. done | sort
  2432. echo
  2433. if test -n "$ac_subst_files"; then
  2434. $as_echo "## ------------------- ##
  2435. ## File substitutions. ##
  2436. ## ------------------- ##"
  2437. echo
  2438. for ac_var in $ac_subst_files
  2439. do
  2440. eval ac_val=\$$ac_var
  2441. case $ac_val in
  2442. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2443. esac
  2444. $as_echo "$ac_var='\''$ac_val'\''"
  2445. done | sort
  2446. echo
  2447. fi
  2448. if test -s confdefs.h; then
  2449. $as_echo "## ----------- ##
  2450. ## confdefs.h. ##
  2451. ## ----------- ##"
  2452. echo
  2453. cat confdefs.h
  2454. echo
  2455. fi
  2456. test "$ac_signal" != 0 &&
  2457. $as_echo "$as_me: caught signal $ac_signal"
  2458. $as_echo "$as_me: exit $exit_status"
  2459. } >&5
  2460. rm -f core *.core core.conftest.* &&
  2461. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2462. exit $exit_status
  2463. ' 0
  2464. for ac_signal in 1 2 13 15; do
  2465. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2466. done
  2467. ac_signal=0
  2468. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2469. rm -f -r conftest* confdefs.h
  2470. $as_echo "/* confdefs.h */" > confdefs.h
  2471. # Predefined preprocessor variables.
  2472. cat >>confdefs.h <<_ACEOF
  2473. #define PACKAGE_NAME "$PACKAGE_NAME"
  2474. _ACEOF
  2475. cat >>confdefs.h <<_ACEOF
  2476. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2477. _ACEOF
  2478. cat >>confdefs.h <<_ACEOF
  2479. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2480. _ACEOF
  2481. cat >>confdefs.h <<_ACEOF
  2482. #define PACKAGE_STRING "$PACKAGE_STRING"
  2483. _ACEOF
  2484. cat >>confdefs.h <<_ACEOF
  2485. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2486. _ACEOF
  2487. cat >>confdefs.h <<_ACEOF
  2488. #define PACKAGE_URL "$PACKAGE_URL"
  2489. _ACEOF
  2490. # Let the site file select an alternate cache file if it wants to.
  2491. # Prefer an explicitly selected file to automatically selected ones.
  2492. ac_site_file1=NONE
  2493. ac_site_file2=NONE
  2494. if test -n "$CONFIG_SITE"; then
  2495. # We do not want a PATH search for config.site.
  2496. case $CONFIG_SITE in #((
  2497. -*) ac_site_file1=./$CONFIG_SITE;;
  2498. */*) ac_site_file1=$CONFIG_SITE;;
  2499. *) ac_site_file1=./$CONFIG_SITE;;
  2500. esac
  2501. elif test "x$prefix" != xNONE; then
  2502. ac_site_file1=$prefix/share/config.site
  2503. ac_site_file2=$prefix/etc/config.site
  2504. else
  2505. ac_site_file1=$ac_default_prefix/share/config.site
  2506. ac_site_file2=$ac_default_prefix/etc/config.site
  2507. fi
  2508. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2509. do
  2510. test "x$ac_site_file" = xNONE && continue
  2511. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2512. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2513. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2514. sed 's/^/| /' "$ac_site_file" >&5
  2515. . "$ac_site_file" \
  2516. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2517. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2518. as_fn_error $? "failed to load site script $ac_site_file
  2519. See \`config.log' for more details" "$LINENO" 5 ; }
  2520. fi
  2521. done
  2522. if test -r "$cache_file"; then
  2523. # Some versions of bash will fail to source /dev/null (special files
  2524. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2525. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2526. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2527. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2528. case $cache_file in
  2529. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2530. *) . "./$cache_file";;
  2531. esac
  2532. fi
  2533. else
  2534. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2535. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2536. >$cache_file
  2537. fi
  2538. gt_needs="$gt_needs "
  2539. as_fn_append ac_header_list " stdlib.h"
  2540. as_fn_append ac_header_list " unistd.h"
  2541. as_fn_append ac_header_list " sys/param.h"
  2542. as_fn_append ac_header_list " sys/time.h"
  2543. as_fn_append ac_func_list " alarm"
  2544. # Check that the precious variables saved in the cache have kept the same
  2545. # value.
  2546. ac_cache_corrupted=false
  2547. for ac_var in $ac_precious_vars; do
  2548. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2549. eval ac_new_set=\$ac_env_${ac_var}_set
  2550. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2551. eval ac_new_val=\$ac_env_${ac_var}_value
  2552. case $ac_old_set,$ac_new_set in
  2553. set,)
  2554. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2555. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2556. ac_cache_corrupted=: ;;
  2557. ,set)
  2558. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2559. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2560. ac_cache_corrupted=: ;;
  2561. ,);;
  2562. *)
  2563. if test "x$ac_old_val" != "x$ac_new_val"; then
  2564. # differences in whitespace do not lead to failure.
  2565. ac_old_val_w=`echo x $ac_old_val`
  2566. ac_new_val_w=`echo x $ac_new_val`
  2567. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2568. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2569. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2570. ac_cache_corrupted=:
  2571. else
  2572. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2573. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2574. eval $ac_var=\$ac_old_val
  2575. fi
  2576. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2577. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2578. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2579. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2580. fi;;
  2581. esac
  2582. # Pass precious variables to config.status.
  2583. if test "$ac_new_set" = set; then
  2584. case $ac_new_val in
  2585. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2586. *) ac_arg=$ac_var=$ac_new_val ;;
  2587. esac
  2588. case " $ac_configure_args " in
  2589. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2590. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2591. esac
  2592. fi
  2593. done
  2594. if $ac_cache_corrupted; then
  2595. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2596. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2597. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2598. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2599. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2600. fi
  2601. ## -------------------- ##
  2602. ## Main body of script. ##
  2603. ## -------------------- ##
  2604. ac_ext=c
  2605. ac_cpp='$CPP $CPPFLAGS'
  2606. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2607. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2608. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2609. ac_aux_dir=
  2610. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2611. if test -f "$ac_dir/install-sh"; then
  2612. ac_aux_dir=$ac_dir
  2613. ac_install_sh="$ac_aux_dir/install-sh -c"
  2614. break
  2615. elif test -f "$ac_dir/install.sh"; then
  2616. ac_aux_dir=$ac_dir
  2617. ac_install_sh="$ac_aux_dir/install.sh -c"
  2618. break
  2619. elif test -f "$ac_dir/shtool"; then
  2620. ac_aux_dir=$ac_dir
  2621. ac_install_sh="$ac_aux_dir/shtool install -c"
  2622. break
  2623. fi
  2624. done
  2625. if test -z "$ac_aux_dir"; then
  2626. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2627. fi
  2628. # These three variables are undocumented and unsupported,
  2629. # and are intended to be withdrawn in a future Autoconf release.
  2630. # They can cause serious problems if a builder's source tree is in a directory
  2631. # whose full name contains unusual characters.
  2632. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2633. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2634. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2635. # Make sure we can run config.sub.
  2636. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2637. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2638. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2639. $as_echo_n "checking build system type... " >&6; }
  2640. if test "${ac_cv_build+set}" = set; then :
  2641. $as_echo_n "(cached) " >&6
  2642. else
  2643. ac_build_alias=$build_alias
  2644. test "x$ac_build_alias" = x &&
  2645. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2646. test "x$ac_build_alias" = x &&
  2647. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2648. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2649. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2650. fi
  2651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2652. $as_echo "$ac_cv_build" >&6; }
  2653. case $ac_cv_build in
  2654. *-*-*) ;;
  2655. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
  2656. esac
  2657. build=$ac_cv_build
  2658. ac_save_IFS=$IFS; IFS='-'
  2659. set x $ac_cv_build
  2660. shift
  2661. build_cpu=$1
  2662. build_vendor=$2
  2663. shift; shift
  2664. # Remember, the first character of IFS is used to create $*,
  2665. # except with old shells:
  2666. build_os=$*
  2667. IFS=$ac_save_IFS
  2668. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2669. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2670. $as_echo_n "checking host system type... " >&6; }
  2671. if test "${ac_cv_host+set}" = set; then :
  2672. $as_echo_n "(cached) " >&6
  2673. else
  2674. if test "x$host_alias" = x; then
  2675. ac_cv_host=$ac_cv_build
  2676. else
  2677. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2678. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2679. fi
  2680. fi
  2681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2682. $as_echo "$ac_cv_host" >&6; }
  2683. case $ac_cv_host in
  2684. *-*-*) ;;
  2685. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
  2686. esac
  2687. host=$ac_cv_host
  2688. ac_save_IFS=$IFS; IFS='-'
  2689. set x $ac_cv_host
  2690. shift
  2691. host_cpu=$1
  2692. host_vendor=$2
  2693. shift; shift
  2694. # Remember, the first character of IFS is used to create $*,
  2695. # except with old shells:
  2696. host_os=$*
  2697. IFS=$ac_save_IFS
  2698. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2699. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2700. $as_echo_n "checking target system type... " >&6; }
  2701. if test "${ac_cv_target+set}" = set; then :
  2702. $as_echo_n "(cached) " >&6
  2703. else
  2704. if test "x$target_alias" = x; then
  2705. ac_cv_target=$ac_cv_host
  2706. else
  2707. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2708. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2709. fi
  2710. fi
  2711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2712. $as_echo "$ac_cv_target" >&6; }
  2713. case $ac_cv_target in
  2714. *-*-*) ;;
  2715. *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5 ;;
  2716. esac
  2717. target=$ac_cv_target
  2718. ac_save_IFS=$IFS; IFS='-'
  2719. set x $ac_cv_target
  2720. shift
  2721. target_cpu=$1
  2722. target_vendor=$2
  2723. shift; shift
  2724. # Remember, the first character of IFS is used to create $*,
  2725. # except with old shells:
  2726. target_os=$*
  2727. IFS=$ac_save_IFS
  2728. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2729. # The aliases save the names the user supplied, while $host etc.
  2730. # will get canonicalized.
  2731. test -n "$target_alias" &&
  2732. test "$program_prefix$program_suffix$program_transform_name" = \
  2733. NONENONEs,x,x, &&
  2734. program_prefix=${target_alias}-
  2735. am__api_version='1.11'
  2736. # Find a good install program. We prefer a C program (faster),
  2737. # so one script is as good as another. But avoid the broken or
  2738. # incompatible versions:
  2739. # SysV /etc/install, /usr/sbin/install
  2740. # SunOS /usr/etc/install
  2741. # IRIX /sbin/install
  2742. # AIX /bin/install
  2743. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2744. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2745. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2746. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2747. # OS/2's system install, which has a completely different semantic
  2748. # ./install, which can be erroneously created by make from ./install.sh.
  2749. # Reject install programs that cannot install multiple files.
  2750. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2751. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2752. if test -z "$INSTALL"; then
  2753. if test "${ac_cv_path_install+set}" = set; then :
  2754. $as_echo_n "(cached) " >&6
  2755. else
  2756. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2757. for as_dir in $PATH
  2758. do
  2759. IFS=$as_save_IFS
  2760. test -z "$as_dir" && as_dir=.
  2761. # Account for people who put trailing slashes in PATH elements.
  2762. case $as_dir/ in #((
  2763. ./ | .// | /[cC]/* | \
  2764. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2765. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2766. /usr/ucb/* ) ;;
  2767. *)
  2768. # OSF1 and SCO ODT 3.0 have their own names for install.
  2769. # Don't use installbsd from OSF since it installs stuff as root
  2770. # by default.
  2771. for ac_prog in ginstall scoinst install; do
  2772. for ac_exec_ext in '' $ac_executable_extensions; do
  2773. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2774. if test $ac_prog = install &&
  2775. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2776. # AIX install. It has an incompatible calling convention.
  2777. :
  2778. elif test $ac_prog = install &&
  2779. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2780. # program-specific install script used by HP pwplus--don't use.
  2781. :
  2782. else
  2783. rm -rf conftest.one conftest.two conftest.dir
  2784. echo one > conftest.one
  2785. echo two > conftest.two
  2786. mkdir conftest.dir
  2787. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2788. test -s conftest.one && test -s conftest.two &&
  2789. test -s conftest.dir/conftest.one &&
  2790. test -s conftest.dir/conftest.two
  2791. then
  2792. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2793. break 3
  2794. fi
  2795. fi
  2796. fi
  2797. done
  2798. done
  2799. ;;
  2800. esac
  2801. done
  2802. IFS=$as_save_IFS
  2803. rm -rf conftest.one conftest.two conftest.dir
  2804. fi
  2805. if test "${ac_cv_path_install+set}" = set; then
  2806. INSTALL=$ac_cv_path_install
  2807. else
  2808. # As a last resort, use the slow shell script. Don't cache a
  2809. # value for INSTALL within a source directory, because that will
  2810. # break other packages using the cache if that directory is
  2811. # removed, or if the value is a relative name.
  2812. INSTALL=$ac_install_sh
  2813. fi
  2814. fi
  2815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2816. $as_echo "$INSTALL" >&6; }
  2817. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2818. # It thinks the first close brace ends the variable substitution.
  2819. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2820. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2821. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2822. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2823. $as_echo_n "checking whether build environment is sane... " >&6; }
  2824. # Just in case
  2825. sleep 1
  2826. echo timestamp > conftest.file
  2827. # Reject unsafe characters in $srcdir or the absolute working directory
  2828. # name. Accept space and tab only in the latter.
  2829. am_lf='
  2830. '
  2831. case `pwd` in
  2832. *[\\\"\#\$\&\'\`$am_lf]*)
  2833. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
  2834. esac
  2835. case $srcdir in
  2836. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2837. as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
  2838. esac
  2839. # Do `set' in a subshell so we don't clobber the current shell's
  2840. # arguments. Must try -L first in case configure is actually a
  2841. # symlink; some systems play weird games with the mod time of symlinks
  2842. # (eg FreeBSD returns the mod time of the symlink's containing
  2843. # directory).
  2844. if (
  2845. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2846. if test "$*" = "X"; then
  2847. # -L didn't work.
  2848. set X `ls -t "$srcdir/configure" conftest.file`
  2849. fi
  2850. rm -f conftest.file
  2851. if test "$*" != "X $srcdir/configure conftest.file" \
  2852. && test "$*" != "X conftest.file $srcdir/configure"; then
  2853. # If neither matched, then we have a broken ls. This can happen
  2854. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2855. # broken ls alias from the environment. This has actually
  2856. # happened. Such a system could not be considered "sane".
  2857. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2858. alias in your environment" "$LINENO" 5
  2859. fi
  2860. test "$2" = conftest.file
  2861. )
  2862. then
  2863. # Ok.
  2864. :
  2865. else
  2866. as_fn_error $? "newly created file is older than distributed files!
  2867. Check your system clock" "$LINENO" 5
  2868. fi
  2869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2870. $as_echo "yes" >&6; }
  2871. test "$program_prefix" != NONE &&
  2872. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2873. # Use a double $ so make ignores it.
  2874. test "$program_suffix" != NONE &&
  2875. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2876. # Double any \ or $.
  2877. # By default was `s,x,x', remove it if useless.
  2878. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2879. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2880. # expand $ac_aux_dir to an absolute path
  2881. am_aux_dir=`cd $ac_aux_dir && pwd`
  2882. if test x"${MISSING+set}" != xset; then
  2883. case $am_aux_dir in
  2884. *\ * | *\ *)
  2885. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2886. *)
  2887. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2888. esac
  2889. fi
  2890. # Use eval to expand $SHELL
  2891. if eval "$MISSING --run true"; then
  2892. am_missing_run="$MISSING --run "
  2893. else
  2894. am_missing_run=
  2895. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  2896. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2897. fi
  2898. if test x"${install_sh}" != xset; then
  2899. case $am_aux_dir in
  2900. *\ * | *\ *)
  2901. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2902. *)
  2903. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2904. esac
  2905. fi
  2906. # Installed binaries are usually stripped using `strip' when the user
  2907. # run `make install-strip'. However `strip' might not be the right
  2908. # tool to use in cross-compilation environments, therefore Automake
  2909. # will honor the `STRIP' environment variable to overrule this program.
  2910. if test "$cross_compiling" != no; then
  2911. if test -n "$ac_tool_prefix"; then
  2912. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2913. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2914. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2915. $as_echo_n "checking for $ac_word... " >&6; }
  2916. if test "${ac_cv_prog_STRIP+set}" = set; then :
  2917. $as_echo_n "(cached) " >&6
  2918. else
  2919. if test -n "$STRIP"; then
  2920. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2921. else
  2922. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2923. for as_dir in $PATH
  2924. do
  2925. IFS=$as_save_IFS
  2926. test -z "$as_dir" && as_dir=.
  2927. for ac_exec_ext in '' $ac_executable_extensions; do
  2928. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2929. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2930. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2931. break 2
  2932. fi
  2933. done
  2934. done
  2935. IFS=$as_save_IFS
  2936. fi
  2937. fi
  2938. STRIP=$ac_cv_prog_STRIP
  2939. if test -n "$STRIP"; then
  2940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2941. $as_echo "$STRIP" >&6; }
  2942. else
  2943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2944. $as_echo "no" >&6; }
  2945. fi
  2946. fi
  2947. if test -z "$ac_cv_prog_STRIP"; then
  2948. ac_ct_STRIP=$STRIP
  2949. # Extract the first word of "strip", so it can be a program name with args.
  2950. set dummy strip; ac_word=$2
  2951. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2952. $as_echo_n "checking for $ac_word... " >&6; }
  2953. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  2954. $as_echo_n "(cached) " >&6
  2955. else
  2956. if test -n "$ac_ct_STRIP"; then
  2957. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2958. else
  2959. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2960. for as_dir in $PATH
  2961. do
  2962. IFS=$as_save_IFS
  2963. test -z "$as_dir" && as_dir=.
  2964. for ac_exec_ext in '' $ac_executable_extensions; do
  2965. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2966. ac_cv_prog_ac_ct_STRIP="strip"
  2967. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2968. break 2
  2969. fi
  2970. done
  2971. done
  2972. IFS=$as_save_IFS
  2973. fi
  2974. fi
  2975. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2976. if test -n "$ac_ct_STRIP"; then
  2977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2978. $as_echo "$ac_ct_STRIP" >&6; }
  2979. else
  2980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2981. $as_echo "no" >&6; }
  2982. fi
  2983. if test "x$ac_ct_STRIP" = x; then
  2984. STRIP=":"
  2985. else
  2986. case $cross_compiling:$ac_tool_warned in
  2987. yes:)
  2988. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2989. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2990. ac_tool_warned=yes ;;
  2991. esac
  2992. STRIP=$ac_ct_STRIP
  2993. fi
  2994. else
  2995. STRIP="$ac_cv_prog_STRIP"
  2996. fi
  2997. fi
  2998. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2999. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  3000. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  3001. if test -z "$MKDIR_P"; then
  3002. if test "${ac_cv_path_mkdir+set}" = set; then :
  3003. $as_echo_n "(cached) " >&6
  3004. else
  3005. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3006. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  3007. do
  3008. IFS=$as_save_IFS
  3009. test -z "$as_dir" && as_dir=.
  3010. for ac_prog in mkdir gmkdir; do
  3011. for ac_exec_ext in '' $ac_executable_extensions; do
  3012. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  3013. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  3014. 'mkdir (GNU coreutils) '* | \
  3015. 'mkdir (coreutils) '* | \
  3016. 'mkdir (fileutils) '4.1*)
  3017. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  3018. break 3;;
  3019. esac
  3020. done
  3021. done
  3022. done
  3023. IFS=$as_save_IFS
  3024. fi
  3025. test -d ./--version && rmdir ./--version
  3026. if test "${ac_cv_path_mkdir+set}" = set; then
  3027. MKDIR_P="$ac_cv_path_mkdir -p"
  3028. else
  3029. # As a last resort, use the slow shell script. Don't cache a
  3030. # value for MKDIR_P within a source directory, because that will
  3031. # break other packages using the cache if that directory is
  3032. # removed, or if the value is a relative name.
  3033. MKDIR_P="$ac_install_sh -d"
  3034. fi
  3035. fi
  3036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  3037. $as_echo "$MKDIR_P" >&6; }
  3038. mkdir_p="$MKDIR_P"
  3039. case $mkdir_p in
  3040. [\\/$]* | ?:[\\/]*) ;;
  3041. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  3042. esac
  3043. for ac_prog in gawk mawk nawk awk
  3044. do
  3045. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3046. set dummy $ac_prog; ac_word=$2
  3047. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3048. $as_echo_n "checking for $ac_word... " >&6; }
  3049. if test "${ac_cv_prog_AWK+set}" = set; then :
  3050. $as_echo_n "(cached) " >&6
  3051. else
  3052. if test -n "$AWK"; then
  3053. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3054. else
  3055. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3056. for as_dir in $PATH
  3057. do
  3058. IFS=$as_save_IFS
  3059. test -z "$as_dir" && as_dir=.
  3060. for ac_exec_ext in '' $ac_executable_extensions; do
  3061. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3062. ac_cv_prog_AWK="$ac_prog"
  3063. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3064. break 2
  3065. fi
  3066. done
  3067. done
  3068. IFS=$as_save_IFS
  3069. fi
  3070. fi
  3071. AWK=$ac_cv_prog_AWK
  3072. if test -n "$AWK"; then
  3073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  3074. $as_echo "$AWK" >&6; }
  3075. else
  3076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3077. $as_echo "no" >&6; }
  3078. fi
  3079. test -n "$AWK" && break
  3080. done
  3081. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3082. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3083. set x ${MAKE-make}
  3084. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3085. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
  3086. $as_echo_n "(cached) " >&6
  3087. else
  3088. cat >conftest.make <<\_ACEOF
  3089. SHELL = /bin/sh
  3090. all:
  3091. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3092. _ACEOF
  3093. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  3094. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3095. *@@@%%%=?*=@@@%%%*)
  3096. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3097. *)
  3098. eval ac_cv_prog_make_${ac_make}_set=no;;
  3099. esac
  3100. rm -f conftest.make
  3101. fi
  3102. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3104. $as_echo "yes" >&6; }
  3105. SET_MAKE=
  3106. else
  3107. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3108. $as_echo "no" >&6; }
  3109. SET_MAKE="MAKE=${MAKE-make}"
  3110. fi
  3111. rm -rf .tst 2>/dev/null
  3112. mkdir .tst 2>/dev/null
  3113. if test -d .tst; then
  3114. am__leading_dot=.
  3115. else
  3116. am__leading_dot=_
  3117. fi
  3118. rmdir .tst 2>/dev/null
  3119. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  3120. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  3121. # is not polluted with repeated "-I."
  3122. am__isrc=' -I$(srcdir)'
  3123. # test to see if srcdir already configured
  3124. if test -f $srcdir/config.status; then
  3125. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  3126. fi
  3127. fi
  3128. # test whether we have cygpath
  3129. if test -z "$CYGPATH_W"; then
  3130. if (cygpath --version) >/dev/null 2>/dev/null; then
  3131. CYGPATH_W='cygpath -w'
  3132. else
  3133. CYGPATH_W=echo
  3134. fi
  3135. fi
  3136. # Define the identity of the package.
  3137. PACKAGE='aria2'
  3138. VERSION='1.10.6'
  3139. cat >>confdefs.h <<_ACEOF
  3140. #define PACKAGE "$PACKAGE"
  3141. _ACEOF
  3142. cat >>confdefs.h <<_ACEOF
  3143. #define VERSION "$VERSION"
  3144. _ACEOF
  3145. # Some tools Automake needs.
  3146. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  3147. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  3148. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  3149. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  3150. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  3151. # We need awk for the "check" target. The system "awk" is bad on
  3152. # some platforms.
  3153. # Always define AMTAR for backward compatibility.
  3154. AMTAR=${AMTAR-"${am_missing_run}tar"}
  3155. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  3156. # Check whether --with-cppunit-prefix was given.
  3157. if test "${with_cppunit_prefix+set}" = set; then :
  3158. withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
  3159. else
  3160. cppunit_config_prefix=""
  3161. fi
  3162. # Check whether --with-cppunit-exec-prefix was given.
  3163. if test "${with_cppunit_exec_prefix+set}" = set; then :
  3164. withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
  3165. else
  3166. cppunit_config_exec_prefix=""
  3167. fi
  3168. if test x$cppunit_config_exec_prefix != x ; then
  3169. cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
  3170. if test x${CPPUNIT_CONFIG+set} != xset ; then
  3171. CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
  3172. fi
  3173. fi
  3174. if test x$cppunit_config_prefix != x ; then
  3175. cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
  3176. if test x${CPPUNIT_CONFIG+set} != xset ; then
  3177. CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
  3178. fi
  3179. fi
  3180. # Extract the first word of "cppunit-config", so it can be a program name with args.
  3181. set dummy cppunit-config; ac_word=$2
  3182. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3183. $as_echo_n "checking for $ac_word... " >&6; }
  3184. if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then :
  3185. $as_echo_n "(cached) " >&6
  3186. else
  3187. case $CPPUNIT_CONFIG in
  3188. [\\/]* | ?:[\\/]*)
  3189. ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
  3190. ;;
  3191. *)
  3192. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3193. for as_dir in $PATH
  3194. do
  3195. IFS=$as_save_IFS
  3196. test -z "$as_dir" && as_dir=.
  3197. for ac_exec_ext in '' $ac_executable_extensions; do
  3198. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3199. ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  3200. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3201. break 2
  3202. fi
  3203. done
  3204. done
  3205. IFS=$as_save_IFS
  3206. test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
  3207. ;;
  3208. esac
  3209. fi
  3210. CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
  3211. if test -n "$CPPUNIT_CONFIG"; then
  3212. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPUNIT_CONFIG" >&5
  3213. $as_echo "$CPPUNIT_CONFIG" >&6; }
  3214. else
  3215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3216. $as_echo "no" >&6; }
  3217. fi
  3218. cppunit_version_min=1.10.2
  3219. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cppunit - version >= $cppunit_version_min" >&5
  3220. $as_echo_n "checking for Cppunit - version >= $cppunit_version_min... " >&6; }
  3221. no_cppunit=""
  3222. if test "$CPPUNIT_CONFIG" = "no" ; then
  3223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3224. $as_echo "no" >&6; }
  3225. no_cppunit=yes
  3226. else
  3227. CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
  3228. CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
  3229. cppunit_version=`$CPPUNIT_CONFIG --version`
  3230. cppunit_major_version=`echo $cppunit_version | \
  3231. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  3232. cppunit_minor_version=`echo $cppunit_version | \
  3233. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  3234. cppunit_micro_version=`echo $cppunit_version | \
  3235. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  3236. cppunit_major_min=`echo $cppunit_version_min | \
  3237. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  3238. if test "x${cppunit_major_min}" = "x" ; then
  3239. cppunit_major_min=0
  3240. fi
  3241. cppunit_minor_min=`echo $cppunit_version_min | \
  3242. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  3243. if test "x${cppunit_minor_min}" = "x" ; then
  3244. cppunit_minor_min=0
  3245. fi
  3246. cppunit_micro_min=`echo $cppunit_version_min | \
  3247. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  3248. if test "x${cppunit_micro_min}" = "x" ; then
  3249. cppunit_micro_min=0
  3250. fi
  3251. cppunit_version_proper=`expr \
  3252. $cppunit_major_version \> $cppunit_major_min \| \
  3253. $cppunit_major_version \= $cppunit_major_min \& \
  3254. $cppunit_minor_version \> $cppunit_minor_min \| \
  3255. $cppunit_major_version \= $cppunit_major_min \& \
  3256. $cppunit_minor_version \= $cppunit_minor_min \& \
  3257. $cppunit_micro_version \>= $cppunit_micro_min `
  3258. if test "$cppunit_version_proper" = "1" ; then
  3259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
  3260. $as_echo "$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
  3261. else
  3262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3263. $as_echo "no" >&6; }
  3264. no_cppunit=yes
  3265. fi
  3266. fi
  3267. if test "x$no_cppunit" = x ; then
  3268. :
  3269. else
  3270. CPPUNIT_CFLAGS=""
  3271. CPPUNIT_LIBS=""
  3272. :
  3273. fi
  3274. ac_config_headers="$ac_config_headers config.h"
  3275. case "$target" in
  3276. *mingw*|*cygwin*)
  3277. WINSOCK_LIBS="-lws2_32"
  3278. LIBS="-lws2_32 -lcrypto -lwsock32 -lgdi32 -lwinmm $LIBS"
  3279. ;;
  3280. esac
  3281. cat >>confdefs.h <<_ACEOF
  3282. #define TARGET "$target"
  3283. _ACEOF
  3284. # Checks for arguments.
  3285. # Check whether --with-gnutls was given.
  3286. if test "${with_gnutls+set}" = set; then :
  3287. withval=$with_gnutls; with_gnutls_requested=$withval with_gnutls=$withval
  3288. else
  3289. with_gnutls=yes
  3290. fi
  3291. # Check whether --with-openssl was given.
  3292. if test "${with_openssl+set}" = set; then :
  3293. withval=$with_openssl; with_openssl_requested=$withval with_openssl=$withval
  3294. else
  3295. with_openssl=yes
  3296. fi
  3297. # Check whether --with-sqlite3 was given.
  3298. if test "${with_sqlite3+set}" = set; then :
  3299. withval=$with_sqlite3; with_sqlite3_requested=$withval with_sqlite3=$withval
  3300. else
  3301. with_sqlite3=yes
  3302. fi
  3303. # Check whether --with-libxml2 was given.
  3304. if test "${with_libxml2+set}" = set; then :
  3305. withval=$with_libxml2; with_libxml2_requested=$withval with_libxml2=$withval
  3306. else
  3307. with_libxml2=yes
  3308. fi
  3309. # Check whether --with-libexpat was given.
  3310. if test "${with_libexpat+set}" = set; then :
  3311. withval=$with_libexpat; with_libexpat_requested=$withval with_libexpat=$withval
  3312. else
  3313. with_libexpat=yes
  3314. fi
  3315. # Check whether --with-libcares was given.
  3316. if test "${with_libcares+set}" = set; then :
  3317. withval=$with_libcares; with_libcares_requested=$withval with_libcares=$withval
  3318. else
  3319. with_libcares=yes
  3320. fi
  3321. # Check whether --with-libz was given.
  3322. if test "${with_libz+set}" = set; then :
  3323. withval=$with_libz; with_libz_requested=$withval with_libz=$withval
  3324. else
  3325. with_libz=yes
  3326. fi
  3327. # Check whether --enable-bittorrent was given.
  3328. if test "${enable_bittorrent+set}" = set; then :
  3329. enableval=$enable_bittorrent; enable_bittorrent_requested=$enableval enable_bittorrent=$enableval
  3330. else
  3331. enable_bittorrent=yes
  3332. fi
  3333. # Check whether --enable-metalink was given.
  3334. if test "${enable_metalink+set}" = set; then :
  3335. enableval=$enable_metalink; enable_metalink_requested=$enableval enable_metalink=$enableval
  3336. else
  3337. enable_metalink=yes
  3338. fi
  3339. # Check whether --enable-epoll was given.
  3340. if test "${enable_epoll+set}" = set; then :
  3341. enableval=$enable_epoll; enable_epoll_requested=$enableval enable_epoll=$enableval
  3342. else
  3343. enable_epoll=yes
  3344. fi
  3345. # Check whether --with-ca-bundle was given.
  3346. if test "${with_ca_bundle+set}" = set; then :
  3347. withval=$with_ca_bundle; ca_bundle=$withval
  3348. else
  3349. ca_bundle=""
  3350. fi
  3351. # Checks for programs.
  3352. ac_ext=cpp
  3353. ac_cpp='$CXXCPP $CPPFLAGS'
  3354. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3355. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3356. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3357. if test -z "$CXX"; then
  3358. if test -n "$CCC"; then
  3359. CXX=$CCC
  3360. else
  3361. if test -n "$ac_tool_prefix"; then
  3362. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3363. do
  3364. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3365. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3366. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3367. $as_echo_n "checking for $ac_word... " >&6; }
  3368. if test "${ac_cv_prog_CXX+set}" = set; then :
  3369. $as_echo_n "(cached) " >&6
  3370. else
  3371. if test -n "$CXX"; then
  3372. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  3373. else
  3374. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3375. for as_dir in $PATH
  3376. do
  3377. IFS=$as_save_IFS
  3378. test -z "$as_dir" && as_dir=.
  3379. for ac_exec_ext in '' $ac_executable_extensions; do
  3380. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3381. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  3382. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3383. break 2
  3384. fi
  3385. done
  3386. done
  3387. IFS=$as_save_IFS
  3388. fi
  3389. fi
  3390. CXX=$ac_cv_prog_CXX
  3391. if test -n "$CXX"; then
  3392. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  3393. $as_echo "$CXX" >&6; }
  3394. else
  3395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3396. $as_echo "no" >&6; }
  3397. fi
  3398. test -n "$CXX" && break
  3399. done
  3400. fi
  3401. if test -z "$CXX"; then
  3402. ac_ct_CXX=$CXX
  3403. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3404. do
  3405. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3406. set dummy $ac_prog; ac_word=$2
  3407. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3408. $as_echo_n "checking for $ac_word... " >&6; }
  3409. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  3410. $as_echo_n "(cached) " >&6
  3411. else
  3412. if test -n "$ac_ct_CXX"; then
  3413. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  3414. else
  3415. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3416. for as_dir in $PATH
  3417. do
  3418. IFS=$as_save_IFS
  3419. test -z "$as_dir" && as_dir=.
  3420. for ac_exec_ext in '' $ac_executable_extensions; do
  3421. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3422. ac_cv_prog_ac_ct_CXX="$ac_prog"
  3423. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3424. break 2
  3425. fi
  3426. done
  3427. done
  3428. IFS=$as_save_IFS
  3429. fi
  3430. fi
  3431. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  3432. if test -n "$ac_ct_CXX"; then
  3433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  3434. $as_echo "$ac_ct_CXX" >&6; }
  3435. else
  3436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3437. $as_echo "no" >&6; }
  3438. fi
  3439. test -n "$ac_ct_CXX" && break
  3440. done
  3441. if test "x$ac_ct_CXX" = x; then
  3442. CXX="g++"
  3443. else
  3444. case $cross_compiling:$ac_tool_warned in
  3445. yes:)
  3446. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3447. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3448. ac_tool_warned=yes ;;
  3449. esac
  3450. CXX=$ac_ct_CXX
  3451. fi
  3452. fi
  3453. fi
  3454. fi
  3455. # Provide some information about the compiler.
  3456. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  3457. set X $ac_compile
  3458. ac_compiler=$2
  3459. for ac_option in --version -v -V -qversion; do
  3460. { { ac_try="$ac_compiler $ac_option >&5"
  3461. case "(($ac_try" in
  3462. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3463. *) ac_try_echo=$ac_try;;
  3464. esac
  3465. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3466. $as_echo "$ac_try_echo"; } >&5
  3467. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3468. ac_status=$?
  3469. if test -s conftest.err; then
  3470. sed '10a\
  3471. ... rest of stderr output deleted ...
  3472. 10q' conftest.err >conftest.er1
  3473. cat conftest.er1 >&5
  3474. fi
  3475. rm -f conftest.er1 conftest.err
  3476. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3477. test $ac_status = 0; }
  3478. done
  3479. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3480. /* end confdefs.h. */
  3481. int
  3482. main ()
  3483. {
  3484. ;
  3485. return 0;
  3486. }
  3487. _ACEOF
  3488. ac_clean_files_save=$ac_clean_files
  3489. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3490. # Try to create an executable without -o first, disregard a.out.
  3491. # It will help us diagnose broken compilers, and finding out an intuition
  3492. # of exeext.
  3493. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
  3494. $as_echo_n "checking whether the C++ compiler works... " >&6; }
  3495. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3496. # The possible output files:
  3497. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3498. ac_rmfiles=
  3499. for ac_file in $ac_files
  3500. do
  3501. case $ac_file in
  3502. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3503. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3504. esac
  3505. done
  3506. rm -f $ac_rmfiles
  3507. if { { ac_try="$ac_link_default"
  3508. case "(($ac_try" in
  3509. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3510. *) ac_try_echo=$ac_try;;
  3511. esac
  3512. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3513. $as_echo "$ac_try_echo"; } >&5
  3514. (eval "$ac_link_default") 2>&5
  3515. ac_status=$?
  3516. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3517. test $ac_status = 0; }; then :
  3518. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3519. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3520. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3521. # so that the user can short-circuit this test for compilers unknown to
  3522. # Autoconf.
  3523. for ac_file in $ac_files ''
  3524. do
  3525. test -f "$ac_file" || continue
  3526. case $ac_file in
  3527. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3528. ;;
  3529. [ab].out )
  3530. # We found the default executable, but exeext='' is most
  3531. # certainly right.
  3532. break;;
  3533. *.* )
  3534. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3535. then :; else
  3536. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3537. fi
  3538. # We set ac_cv_exeext here because the later test for it is not
  3539. # safe: cross compilers may not add the suffix if given an `-o'
  3540. # argument, so we may need to know it at that point already.
  3541. # Even if this section looks crufty: it has the advantage of
  3542. # actually working.
  3543. break;;
  3544. * )
  3545. break;;
  3546. esac
  3547. done
  3548. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3549. else
  3550. ac_file=''
  3551. fi
  3552. if test -z "$ac_file"; then :
  3553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3554. $as_echo "no" >&6; }
  3555. $as_echo "$as_me: failed program was:" >&5
  3556. sed 's/^/| /' conftest.$ac_ext >&5
  3557. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3558. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3559. as_fn_error 77 "C++ compiler cannot create executables
  3560. See \`config.log' for more details" "$LINENO" 5 ; }
  3561. else
  3562. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3563. $as_echo "yes" >&6; }
  3564. fi
  3565. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
  3566. $as_echo_n "checking for C++ compiler default output file name... " >&6; }
  3567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3568. $as_echo "$ac_file" >&6; }
  3569. ac_exeext=$ac_cv_exeext
  3570. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3571. ac_clean_files=$ac_clean_files_save
  3572. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3573. $as_echo_n "checking for suffix of executables... " >&6; }
  3574. if { { ac_try="$ac_link"
  3575. case "(($ac_try" in
  3576. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3577. *) ac_try_echo=$ac_try;;
  3578. esac
  3579. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3580. $as_echo "$ac_try_echo"; } >&5
  3581. (eval "$ac_link") 2>&5
  3582. ac_status=$?
  3583. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3584. test $ac_status = 0; }; then :
  3585. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3586. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3587. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3588. # `rm'.
  3589. for ac_file in conftest.exe conftest conftest.*; do
  3590. test -f "$ac_file" || continue
  3591. case $ac_file in
  3592. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3593. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3594. break;;
  3595. * ) break;;
  3596. esac
  3597. done
  3598. else
  3599. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3600. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3601. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3602. See \`config.log' for more details" "$LINENO" 5 ; }
  3603. fi
  3604. rm -f conftest conftest$ac_cv_exeext
  3605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3606. $as_echo "$ac_cv_exeext" >&6; }
  3607. rm -f conftest.$ac_ext
  3608. EXEEXT=$ac_cv_exeext
  3609. ac_exeext=$EXEEXT
  3610. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3611. /* end confdefs.h. */
  3612. #include <stdio.h>
  3613. int
  3614. main ()
  3615. {
  3616. FILE *f = fopen ("conftest.out", "w");
  3617. return ferror (f) || fclose (f) != 0;
  3618. ;
  3619. return 0;
  3620. }
  3621. _ACEOF
  3622. ac_clean_files="$ac_clean_files conftest.out"
  3623. # Check that the compiler produces executables we can run. If not, either
  3624. # the compiler is broken, or we cross compile.
  3625. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3626. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3627. if test "$cross_compiling" != yes; then
  3628. { { ac_try="$ac_link"
  3629. case "(($ac_try" in
  3630. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3631. *) ac_try_echo=$ac_try;;
  3632. esac
  3633. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3634. $as_echo "$ac_try_echo"; } >&5
  3635. (eval "$ac_link") 2>&5
  3636. ac_status=$?
  3637. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3638. test $ac_status = 0; }
  3639. if { ac_try='./conftest$ac_cv_exeext'
  3640. { { case "(($ac_try" in
  3641. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3642. *) ac_try_echo=$ac_try;;
  3643. esac
  3644. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3645. $as_echo "$ac_try_echo"; } >&5
  3646. (eval "$ac_try") 2>&5
  3647. ac_status=$?
  3648. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3649. test $ac_status = 0; }; }; then
  3650. cross_compiling=no
  3651. else
  3652. if test "$cross_compiling" = maybe; then
  3653. cross_compiling=yes
  3654. else
  3655. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3656. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3657. as_fn_error $? "cannot run C++ compiled programs.
  3658. If you meant to cross compile, use \`--host'.
  3659. See \`config.log' for more details" "$LINENO" 5 ; }
  3660. fi
  3661. fi
  3662. fi
  3663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3664. $as_echo "$cross_compiling" >&6; }
  3665. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3666. ac_clean_files=$ac_clean_files_save
  3667. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3668. $as_echo_n "checking for suffix of object files... " >&6; }
  3669. if test "${ac_cv_objext+set}" = set; then :
  3670. $as_echo_n "(cached) " >&6
  3671. else
  3672. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3673. /* end confdefs.h. */
  3674. int
  3675. main ()
  3676. {
  3677. ;
  3678. return 0;
  3679. }
  3680. _ACEOF
  3681. rm -f conftest.o conftest.obj
  3682. if { { ac_try="$ac_compile"
  3683. case "(($ac_try" in
  3684. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3685. *) ac_try_echo=$ac_try;;
  3686. esac
  3687. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3688. $as_echo "$ac_try_echo"; } >&5
  3689. (eval "$ac_compile") 2>&5
  3690. ac_status=$?
  3691. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3692. test $ac_status = 0; }; then :
  3693. for ac_file in conftest.o conftest.obj conftest.*; do
  3694. test -f "$ac_file" || continue;
  3695. case $ac_file in
  3696. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3697. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3698. break;;
  3699. esac
  3700. done
  3701. else
  3702. $as_echo "$as_me: failed program was:" >&5
  3703. sed 's/^/| /' conftest.$ac_ext >&5
  3704. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3705. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3706. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3707. See \`config.log' for more details" "$LINENO" 5 ; }
  3708. fi
  3709. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3710. fi
  3711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3712. $as_echo "$ac_cv_objext" >&6; }
  3713. OBJEXT=$ac_cv_objext
  3714. ac_objext=$OBJEXT
  3715. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  3716. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  3717. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  3718. $as_echo_n "(cached) " >&6
  3719. else
  3720. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3721. /* end confdefs.h. */
  3722. int
  3723. main ()
  3724. {
  3725. #ifndef __GNUC__
  3726. choke me
  3727. #endif
  3728. ;
  3729. return 0;
  3730. }
  3731. _ACEOF
  3732. if ac_fn_cxx_try_compile "$LINENO"; then :
  3733. ac_compiler_gnu=yes
  3734. else
  3735. ac_compiler_gnu=no
  3736. fi
  3737. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3738. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3739. fi
  3740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  3741. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  3742. if test $ac_compiler_gnu = yes; then
  3743. GXX=yes
  3744. else
  3745. GXX=
  3746. fi
  3747. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3748. ac_save_CXXFLAGS=$CXXFLAGS
  3749. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  3750. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  3751. if test "${ac_cv_prog_cxx_g+set}" = set; then :
  3752. $as_echo_n "(cached) " >&6
  3753. else
  3754. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  3755. ac_cxx_werror_flag=yes
  3756. ac_cv_prog_cxx_g=no
  3757. CXXFLAGS="-g"
  3758. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3759. /* end confdefs.h. */
  3760. int
  3761. main ()
  3762. {
  3763. ;
  3764. return 0;
  3765. }
  3766. _ACEOF
  3767. if ac_fn_cxx_try_compile "$LINENO"; then :
  3768. ac_cv_prog_cxx_g=yes
  3769. else
  3770. CXXFLAGS=""
  3771. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3772. /* end confdefs.h. */
  3773. int
  3774. main ()
  3775. {
  3776. ;
  3777. return 0;
  3778. }
  3779. _ACEOF
  3780. if ac_fn_cxx_try_compile "$LINENO"; then :
  3781. else
  3782. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3783. CXXFLAGS="-g"
  3784. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3785. /* end confdefs.h. */
  3786. int
  3787. main ()
  3788. {
  3789. ;
  3790. return 0;
  3791. }
  3792. _ACEOF
  3793. if ac_fn_cxx_try_compile "$LINENO"; then :
  3794. ac_cv_prog_cxx_g=yes
  3795. fi
  3796. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3797. fi
  3798. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3799. fi
  3800. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3801. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3802. fi
  3803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  3804. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  3805. if test "$ac_test_CXXFLAGS" = set; then
  3806. CXXFLAGS=$ac_save_CXXFLAGS
  3807. elif test $ac_cv_prog_cxx_g = yes; then
  3808. if test "$GXX" = yes; then
  3809. CXXFLAGS="-g -O2"
  3810. else
  3811. CXXFLAGS="-g"
  3812. fi
  3813. else
  3814. if test "$GXX" = yes; then
  3815. CXXFLAGS="-O2"
  3816. else
  3817. CXXFLAGS=
  3818. fi
  3819. fi
  3820. ac_ext=c
  3821. ac_cpp='$CPP $CPPFLAGS'
  3822. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3823. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3824. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3825. DEPDIR="${am__leading_dot}deps"
  3826. ac_config_commands="$ac_config_commands depfiles"
  3827. am_make=${MAKE-make}
  3828. cat > confinc << 'END'
  3829. am__doit:
  3830. @echo this is the am__doit target
  3831. .PHONY: am__doit
  3832. END
  3833. # If we don't find an include directive, just comment out the code.
  3834. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3835. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3836. am__include="#"
  3837. am__quote=
  3838. _am_result=none
  3839. # First try GNU make style include.
  3840. echo "include confinc" > confmf
  3841. # Ignore all kinds of additional output from `make'.
  3842. case `$am_make -s -f confmf 2> /dev/null` in #(
  3843. *the\ am__doit\ target*)
  3844. am__include=include
  3845. am__quote=
  3846. _am_result=GNU
  3847. ;;
  3848. esac
  3849. # Now try BSD make style include.
  3850. if test "$am__include" = "#"; then
  3851. echo '.include "confinc"' > confmf
  3852. case `$am_make -s -f confmf 2> /dev/null` in #(
  3853. *the\ am__doit\ target*)
  3854. am__include=.include
  3855. am__quote="\""
  3856. _am_result=BSD
  3857. ;;
  3858. esac
  3859. fi
  3860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3861. $as_echo "$_am_result" >&6; }
  3862. rm -f confinc confmf
  3863. # Check whether --enable-dependency-tracking was given.
  3864. if test "${enable_dependency_tracking+set}" = set; then :
  3865. enableval=$enable_dependency_tracking;
  3866. fi
  3867. if test "x$enable_dependency_tracking" != xno; then
  3868. am_depcomp="$ac_aux_dir/depcomp"
  3869. AMDEPBACKSLASH='\'
  3870. fi
  3871. if test "x$enable_dependency_tracking" != xno; then
  3872. AMDEP_TRUE=
  3873. AMDEP_FALSE='#'
  3874. else
  3875. AMDEP_TRUE='#'
  3876. AMDEP_FALSE=
  3877. fi
  3878. depcc="$CXX" am_compiler_list=
  3879. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3880. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3881. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
  3882. $as_echo_n "(cached) " >&6
  3883. else
  3884. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3885. # We make a subdir and do the tests there. Otherwise we can end up
  3886. # making bogus files that we don't know about and never remove. For
  3887. # instance it was reported that on HP-UX the gcc test will end up
  3888. # making a dummy file named `D' -- because `-MD' means `put the output
  3889. # in D'.
  3890. mkdir conftest.dir
  3891. # Copy depcomp to subdir because otherwise we won't find it if we're
  3892. # using a relative directory.
  3893. cp "$am_depcomp" conftest.dir
  3894. cd conftest.dir
  3895. # We will build objects and dependencies in a subdirectory because
  3896. # it helps to detect inapplicable dependency modes. For instance
  3897. # both Tru64's cc and ICC support -MD to output dependencies as a
  3898. # side effect of compilation, but ICC will put the dependencies in
  3899. # the current directory while Tru64 will put them in the object
  3900. # directory.
  3901. mkdir sub
  3902. am_cv_CXX_dependencies_compiler_type=none
  3903. if test "$am_compiler_list" = ""; then
  3904. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3905. fi
  3906. am__universal=false
  3907. case " $depcc " in #(
  3908. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3909. esac
  3910. for depmode in $am_compiler_list; do
  3911. # Setup a source with many dependencies, because some compilers
  3912. # like to wrap large dependency lists on column 80 (with \), and
  3913. # we should not choose a depcomp mode which is confused by this.
  3914. #
  3915. # We need to recreate these files for each test, as the compiler may
  3916. # overwrite some of them when testing with obscure command lines.
  3917. # This happens at least with the AIX C compiler.
  3918. : > sub/conftest.c
  3919. for i in 1 2 3 4 5 6; do
  3920. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3921. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3922. # Solaris 8's {/usr,}/bin/sh.
  3923. touch sub/conftst$i.h
  3924. done
  3925. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3926. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3927. # mode. It turns out that the SunPro C++ compiler does not properly
  3928. # handle `-M -o', and we need to detect this. Also, some Intel
  3929. # versions had trouble with output in subdirs
  3930. am__obj=sub/conftest.${OBJEXT-o}
  3931. am__minus_obj="-o $am__obj"
  3932. case $depmode in
  3933. gcc)
  3934. # This depmode causes a compiler race in universal mode.
  3935. test "$am__universal" = false || continue
  3936. ;;
  3937. nosideeffect)
  3938. # after this tag, mechanisms are not by side-effect, so they'll
  3939. # only be used when explicitly requested
  3940. if test "x$enable_dependency_tracking" = xyes; then
  3941. continue
  3942. else
  3943. break
  3944. fi
  3945. ;;
  3946. msvisualcpp | msvcmsys)
  3947. # This compiler won't grok `-c -o', but also, the minuso test has
  3948. # not run yet. These depmodes are late enough in the game, and
  3949. # so weak that their functioning should not be impacted.
  3950. am__obj=conftest.${OBJEXT-o}
  3951. am__minus_obj=
  3952. ;;
  3953. none) break ;;
  3954. esac
  3955. if depmode=$depmode \
  3956. source=sub/conftest.c object=$am__obj \
  3957. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3958. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3959. >/dev/null 2>conftest.err &&
  3960. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3961. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3962. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3963. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3964. # icc doesn't choke on unknown options, it will just issue warnings
  3965. # or remarks (even with -Werror). So we grep stderr for any message
  3966. # that says an option was ignored or not supported.
  3967. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3968. # icc: Command line warning: ignoring option '-M'; no argument required
  3969. # The diagnosis changed in icc 8.0:
  3970. # icc: Command line remark: option '-MP' not supported
  3971. if (grep 'ignoring option' conftest.err ||
  3972. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3973. am_cv_CXX_dependencies_compiler_type=$depmode
  3974. break
  3975. fi
  3976. fi
  3977. done
  3978. cd ..
  3979. rm -rf conftest.dir
  3980. else
  3981. am_cv_CXX_dependencies_compiler_type=none
  3982. fi
  3983. fi
  3984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3985. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  3986. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3987. if
  3988. test "x$enable_dependency_tracking" != xno \
  3989. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3990. am__fastdepCXX_TRUE=
  3991. am__fastdepCXX_FALSE='#'
  3992. else
  3993. am__fastdepCXX_TRUE='#'
  3994. am__fastdepCXX_FALSE=
  3995. fi
  3996. ac_ext=c
  3997. ac_cpp='$CPP $CPPFLAGS'
  3998. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3999. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4000. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4001. if test -n "$ac_tool_prefix"; then
  4002. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  4003. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  4004. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4005. $as_echo_n "checking for $ac_word... " >&6; }
  4006. if test "${ac_cv_prog_CC+set}" = set; then :
  4007. $as_echo_n "(cached) " >&6
  4008. else
  4009. if test -n "$CC"; then
  4010. ac_cv_prog_CC="$CC" # Let the user override the test.
  4011. else
  4012. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4013. for as_dir in $PATH
  4014. do
  4015. IFS=$as_save_IFS
  4016. test -z "$as_dir" && as_dir=.
  4017. for ac_exec_ext in '' $ac_executable_extensions; do
  4018. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4019. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  4020. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4021. break 2
  4022. fi
  4023. done
  4024. done
  4025. IFS=$as_save_IFS
  4026. fi
  4027. fi
  4028. CC=$ac_cv_prog_CC
  4029. if test -n "$CC"; then
  4030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4031. $as_echo "$CC" >&6; }
  4032. else
  4033. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4034. $as_echo "no" >&6; }
  4035. fi
  4036. fi
  4037. if test -z "$ac_cv_prog_CC"; then
  4038. ac_ct_CC=$CC
  4039. # Extract the first word of "gcc", so it can be a program name with args.
  4040. set dummy gcc; ac_word=$2
  4041. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4042. $as_echo_n "checking for $ac_word... " >&6; }
  4043. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  4044. $as_echo_n "(cached) " >&6
  4045. else
  4046. if test -n "$ac_ct_CC"; then
  4047. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4048. else
  4049. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4050. for as_dir in $PATH
  4051. do
  4052. IFS=$as_save_IFS
  4053. test -z "$as_dir" && as_dir=.
  4054. for ac_exec_ext in '' $ac_executable_extensions; do
  4055. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4056. ac_cv_prog_ac_ct_CC="gcc"
  4057. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4058. break 2
  4059. fi
  4060. done
  4061. done
  4062. IFS=$as_save_IFS
  4063. fi
  4064. fi
  4065. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4066. if test -n "$ac_ct_CC"; then
  4067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4068. $as_echo "$ac_ct_CC" >&6; }
  4069. else
  4070. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4071. $as_echo "no" >&6; }
  4072. fi
  4073. if test "x$ac_ct_CC" = x; then
  4074. CC=""
  4075. else
  4076. case $cross_compiling:$ac_tool_warned in
  4077. yes:)
  4078. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4079. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4080. ac_tool_warned=yes ;;
  4081. esac
  4082. CC=$ac_ct_CC
  4083. fi
  4084. else
  4085. CC="$ac_cv_prog_CC"
  4086. fi
  4087. if test -z "$CC"; then
  4088. if test -n "$ac_tool_prefix"; then
  4089. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  4090. set dummy ${ac_tool_prefix}cc; ac_word=$2
  4091. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4092. $as_echo_n "checking for $ac_word... " >&6; }
  4093. if test "${ac_cv_prog_CC+set}" = set; then :
  4094. $as_echo_n "(cached) " >&6
  4095. else
  4096. if test -n "$CC"; then
  4097. ac_cv_prog_CC="$CC" # Let the user override the test.
  4098. else
  4099. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4100. for as_dir in $PATH
  4101. do
  4102. IFS=$as_save_IFS
  4103. test -z "$as_dir" && as_dir=.
  4104. for ac_exec_ext in '' $ac_executable_extensions; do
  4105. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4106. ac_cv_prog_CC="${ac_tool_prefix}cc"
  4107. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4108. break 2
  4109. fi
  4110. done
  4111. done
  4112. IFS=$as_save_IFS
  4113. fi
  4114. fi
  4115. CC=$ac_cv_prog_CC
  4116. if test -n "$CC"; then
  4117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4118. $as_echo "$CC" >&6; }
  4119. else
  4120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4121. $as_echo "no" >&6; }
  4122. fi
  4123. fi
  4124. fi
  4125. if test -z "$CC"; then
  4126. # Extract the first word of "cc", so it can be a program name with args.
  4127. set dummy cc; ac_word=$2
  4128. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4129. $as_echo_n "checking for $ac_word... " >&6; }
  4130. if test "${ac_cv_prog_CC+set}" = set; then :
  4131. $as_echo_n "(cached) " >&6
  4132. else
  4133. if test -n "$CC"; then
  4134. ac_cv_prog_CC="$CC" # Let the user override the test.
  4135. else
  4136. ac_prog_rejected=no
  4137. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4138. for as_dir in $PATH
  4139. do
  4140. IFS=$as_save_IFS
  4141. test -z "$as_dir" && as_dir=.
  4142. for ac_exec_ext in '' $ac_executable_extensions; do
  4143. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4144. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  4145. ac_prog_rejected=yes
  4146. continue
  4147. fi
  4148. ac_cv_prog_CC="cc"
  4149. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4150. break 2
  4151. fi
  4152. done
  4153. done
  4154. IFS=$as_save_IFS
  4155. if test $ac_prog_rejected = yes; then
  4156. # We found a bogon in the path, so make sure we never use it.
  4157. set dummy $ac_cv_prog_CC
  4158. shift
  4159. if test $# != 0; then
  4160. # We chose a different compiler from the bogus one.
  4161. # However, it has the same basename, so the bogon will be chosen
  4162. # first if we set CC to just the basename; use the full file name.
  4163. shift
  4164. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  4165. fi
  4166. fi
  4167. fi
  4168. fi
  4169. CC=$ac_cv_prog_CC
  4170. if test -n "$CC"; then
  4171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4172. $as_echo "$CC" >&6; }
  4173. else
  4174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4175. $as_echo "no" >&6; }
  4176. fi
  4177. fi
  4178. if test -z "$CC"; then
  4179. if test -n "$ac_tool_prefix"; then
  4180. for ac_prog in cl.exe
  4181. do
  4182. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4183. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4184. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4185. $as_echo_n "checking for $ac_word... " >&6; }
  4186. if test "${ac_cv_prog_CC+set}" = set; then :
  4187. $as_echo_n "(cached) " >&6
  4188. else
  4189. if test -n "$CC"; then
  4190. ac_cv_prog_CC="$CC" # Let the user override the test.
  4191. else
  4192. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4193. for as_dir in $PATH
  4194. do
  4195. IFS=$as_save_IFS
  4196. test -z "$as_dir" && as_dir=.
  4197. for ac_exec_ext in '' $ac_executable_extensions; do
  4198. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4199. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  4200. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4201. break 2
  4202. fi
  4203. done
  4204. done
  4205. IFS=$as_save_IFS
  4206. fi
  4207. fi
  4208. CC=$ac_cv_prog_CC
  4209. if test -n "$CC"; then
  4210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4211. $as_echo "$CC" >&6; }
  4212. else
  4213. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4214. $as_echo "no" >&6; }
  4215. fi
  4216. test -n "$CC" && break
  4217. done
  4218. fi
  4219. if test -z "$CC"; then
  4220. ac_ct_CC=$CC
  4221. for ac_prog in cl.exe
  4222. do
  4223. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4224. set dummy $ac_prog; ac_word=$2
  4225. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4226. $as_echo_n "checking for $ac_word... " >&6; }
  4227. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  4228. $as_echo_n "(cached) " >&6
  4229. else
  4230. if test -n "$ac_ct_CC"; then
  4231. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4232. else
  4233. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4234. for as_dir in $PATH
  4235. do
  4236. IFS=$as_save_IFS
  4237. test -z "$as_dir" && as_dir=.
  4238. for ac_exec_ext in '' $ac_executable_extensions; do
  4239. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4240. ac_cv_prog_ac_ct_CC="$ac_prog"
  4241. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4242. break 2
  4243. fi
  4244. done
  4245. done
  4246. IFS=$as_save_IFS
  4247. fi
  4248. fi
  4249. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4250. if test -n "$ac_ct_CC"; then
  4251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4252. $as_echo "$ac_ct_CC" >&6; }
  4253. else
  4254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4255. $as_echo "no" >&6; }
  4256. fi
  4257. test -n "$ac_ct_CC" && break
  4258. done
  4259. if test "x$ac_ct_CC" = x; then
  4260. CC=""
  4261. else
  4262. case $cross_compiling:$ac_tool_warned in
  4263. yes:)
  4264. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4265. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4266. ac_tool_warned=yes ;;
  4267. esac
  4268. CC=$ac_ct_CC
  4269. fi
  4270. fi
  4271. fi
  4272. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4273. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4274. as_fn_error $? "no acceptable C compiler found in \$PATH
  4275. See \`config.log' for more details" "$LINENO" 5 ; }
  4276. # Provide some information about the compiler.
  4277. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  4278. set X $ac_compile
  4279. ac_compiler=$2
  4280. for ac_option in --version -v -V -qversion; do
  4281. { { ac_try="$ac_compiler $ac_option >&5"
  4282. case "(($ac_try" in
  4283. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4284. *) ac_try_echo=$ac_try;;
  4285. esac
  4286. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4287. $as_echo "$ac_try_echo"; } >&5
  4288. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4289. ac_status=$?
  4290. if test -s conftest.err; then
  4291. sed '10a\
  4292. ... rest of stderr output deleted ...
  4293. 10q' conftest.err >conftest.er1
  4294. cat conftest.er1 >&5
  4295. fi
  4296. rm -f conftest.er1 conftest.err
  4297. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4298. test $ac_status = 0; }
  4299. done
  4300. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  4301. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4302. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  4303. $as_echo_n "(cached) " >&6
  4304. else
  4305. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4306. /* end confdefs.h. */
  4307. int
  4308. main ()
  4309. {
  4310. #ifndef __GNUC__
  4311. choke me
  4312. #endif
  4313. ;
  4314. return 0;
  4315. }
  4316. _ACEOF
  4317. if ac_fn_c_try_compile "$LINENO"; then :
  4318. ac_compiler_gnu=yes
  4319. else
  4320. ac_compiler_gnu=no
  4321. fi
  4322. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4323. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4324. fi
  4325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4326. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4327. if test $ac_compiler_gnu = yes; then
  4328. GCC=yes
  4329. else
  4330. GCC=
  4331. fi
  4332. ac_test_CFLAGS=${CFLAGS+set}
  4333. ac_save_CFLAGS=$CFLAGS
  4334. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4335. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4336. if test "${ac_cv_prog_cc_g+set}" = set; then :
  4337. $as_echo_n "(cached) " >&6
  4338. else
  4339. ac_save_c_werror_flag=$ac_c_werror_flag
  4340. ac_c_werror_flag=yes
  4341. ac_cv_prog_cc_g=no
  4342. CFLAGS="-g"
  4343. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4344. /* end confdefs.h. */
  4345. int
  4346. main ()
  4347. {
  4348. ;
  4349. return 0;
  4350. }
  4351. _ACEOF
  4352. if ac_fn_c_try_compile "$LINENO"; then :
  4353. ac_cv_prog_cc_g=yes
  4354. else
  4355. CFLAGS=""
  4356. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4357. /* end confdefs.h. */
  4358. int
  4359. main ()
  4360. {
  4361. ;
  4362. return 0;
  4363. }
  4364. _ACEOF
  4365. if ac_fn_c_try_compile "$LINENO"; then :
  4366. else
  4367. ac_c_werror_flag=$ac_save_c_werror_flag
  4368. CFLAGS="-g"
  4369. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4370. /* end confdefs.h. */
  4371. int
  4372. main ()
  4373. {
  4374. ;
  4375. return 0;
  4376. }
  4377. _ACEOF
  4378. if ac_fn_c_try_compile "$LINENO"; then :
  4379. ac_cv_prog_cc_g=yes
  4380. fi
  4381. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4382. fi
  4383. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4384. fi
  4385. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4386. ac_c_werror_flag=$ac_save_c_werror_flag
  4387. fi
  4388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4389. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4390. if test "$ac_test_CFLAGS" = set; then
  4391. CFLAGS=$ac_save_CFLAGS
  4392. elif test $ac_cv_prog_cc_g = yes; then
  4393. if test "$GCC" = yes; then
  4394. CFLAGS="-g -O2"
  4395. else
  4396. CFLAGS="-g"
  4397. fi
  4398. else
  4399. if test "$GCC" = yes; then
  4400. CFLAGS="-O2"
  4401. else
  4402. CFLAGS=
  4403. fi
  4404. fi
  4405. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4406. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4407. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  4408. $as_echo_n "(cached) " >&6
  4409. else
  4410. ac_cv_prog_cc_c89=no
  4411. ac_save_CC=$CC
  4412. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4413. /* end confdefs.h. */
  4414. #include <stdarg.h>
  4415. #include <stdio.h>
  4416. #include <sys/types.h>
  4417. #include <sys/stat.h>
  4418. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4419. struct buf { int x; };
  4420. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4421. static char *e (p, i)
  4422. char **p;
  4423. int i;
  4424. {
  4425. return p[i];
  4426. }
  4427. static char *f (char * (*g) (char **, int), char **p, ...)
  4428. {
  4429. char *s;
  4430. va_list v;
  4431. va_start (v,p);
  4432. s = g (p, va_arg (v,int));
  4433. va_end (v);
  4434. return s;
  4435. }
  4436. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4437. function prototypes and stuff, but not '\xHH' hex character constants.
  4438. These don't provoke an error unfortunately, instead are silently treated
  4439. as 'x'. The following induces an error, until -std is added to get
  4440. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4441. array size at least. It's necessary to write '\x00'==0 to get something
  4442. that's true only with -std. */
  4443. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4444. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4445. inside strings and character constants. */
  4446. #define FOO(x) 'x'
  4447. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4448. int test (int i, double x);
  4449. struct s1 {int (*f) (int a);};
  4450. struct s2 {int (*f) (double a);};
  4451. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4452. int argc;
  4453. char **argv;
  4454. int
  4455. main ()
  4456. {
  4457. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4458. ;
  4459. return 0;
  4460. }
  4461. _ACEOF
  4462. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4463. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4464. do
  4465. CC="$ac_save_CC $ac_arg"
  4466. if ac_fn_c_try_compile "$LINENO"; then :
  4467. ac_cv_prog_cc_c89=$ac_arg
  4468. fi
  4469. rm -f core conftest.err conftest.$ac_objext
  4470. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4471. done
  4472. rm -f conftest.$ac_ext
  4473. CC=$ac_save_CC
  4474. fi
  4475. # AC_CACHE_VAL
  4476. case "x$ac_cv_prog_cc_c89" in
  4477. x)
  4478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4479. $as_echo "none needed" >&6; } ;;
  4480. xno)
  4481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4482. $as_echo "unsupported" >&6; } ;;
  4483. *)
  4484. CC="$CC $ac_cv_prog_cc_c89"
  4485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4486. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4487. esac
  4488. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4489. fi
  4490. ac_ext=c
  4491. ac_cpp='$CPP $CPPFLAGS'
  4492. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4493. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4494. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4495. depcc="$CC" am_compiler_list=
  4496. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4497. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4498. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  4499. $as_echo_n "(cached) " >&6
  4500. else
  4501. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4502. # We make a subdir and do the tests there. Otherwise we can end up
  4503. # making bogus files that we don't know about and never remove. For
  4504. # instance it was reported that on HP-UX the gcc test will end up
  4505. # making a dummy file named `D' -- because `-MD' means `put the output
  4506. # in D'.
  4507. mkdir conftest.dir
  4508. # Copy depcomp to subdir because otherwise we won't find it if we're
  4509. # using a relative directory.
  4510. cp "$am_depcomp" conftest.dir
  4511. cd conftest.dir
  4512. # We will build objects and dependencies in a subdirectory because
  4513. # it helps to detect inapplicable dependency modes. For instance
  4514. # both Tru64's cc and ICC support -MD to output dependencies as a
  4515. # side effect of compilation, but ICC will put the dependencies in
  4516. # the current directory while Tru64 will put them in the object
  4517. # directory.
  4518. mkdir sub
  4519. am_cv_CC_dependencies_compiler_type=none
  4520. if test "$am_compiler_list" = ""; then
  4521. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4522. fi
  4523. am__universal=false
  4524. case " $depcc " in #(
  4525. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4526. esac
  4527. for depmode in $am_compiler_list; do
  4528. # Setup a source with many dependencies, because some compilers
  4529. # like to wrap large dependency lists on column 80 (with \), and
  4530. # we should not choose a depcomp mode which is confused by this.
  4531. #
  4532. # We need to recreate these files for each test, as the compiler may
  4533. # overwrite some of them when testing with obscure command lines.
  4534. # This happens at least with the AIX C compiler.
  4535. : > sub/conftest.c
  4536. for i in 1 2 3 4 5 6; do
  4537. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4538. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4539. # Solaris 8's {/usr,}/bin/sh.
  4540. touch sub/conftst$i.h
  4541. done
  4542. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4543. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4544. # mode. It turns out that the SunPro C++ compiler does not properly
  4545. # handle `-M -o', and we need to detect this. Also, some Intel
  4546. # versions had trouble with output in subdirs
  4547. am__obj=sub/conftest.${OBJEXT-o}
  4548. am__minus_obj="-o $am__obj"
  4549. case $depmode in
  4550. gcc)
  4551. # This depmode causes a compiler race in universal mode.
  4552. test "$am__universal" = false || continue
  4553. ;;
  4554. nosideeffect)
  4555. # after this tag, mechanisms are not by side-effect, so they'll
  4556. # only be used when explicitly requested
  4557. if test "x$enable_dependency_tracking" = xyes; then
  4558. continue
  4559. else
  4560. break
  4561. fi
  4562. ;;
  4563. msvisualcpp | msvcmsys)
  4564. # This compiler won't grok `-c -o', but also, the minuso test has
  4565. # not run yet. These depmodes are late enough in the game, and
  4566. # so weak that their functioning should not be impacted.
  4567. am__obj=conftest.${OBJEXT-o}
  4568. am__minus_obj=
  4569. ;;
  4570. none) break ;;
  4571. esac
  4572. if depmode=$depmode \
  4573. source=sub/conftest.c object=$am__obj \
  4574. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4575. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4576. >/dev/null 2>conftest.err &&
  4577. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4578. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4579. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4580. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4581. # icc doesn't choke on unknown options, it will just issue warnings
  4582. # or remarks (even with -Werror). So we grep stderr for any message
  4583. # that says an option was ignored or not supported.
  4584. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4585. # icc: Command line warning: ignoring option '-M'; no argument required
  4586. # The diagnosis changed in icc 8.0:
  4587. # icc: Command line remark: option '-MP' not supported
  4588. if (grep 'ignoring option' conftest.err ||
  4589. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4590. am_cv_CC_dependencies_compiler_type=$depmode
  4591. break
  4592. fi
  4593. fi
  4594. done
  4595. cd ..
  4596. rm -rf conftest.dir
  4597. else
  4598. am_cv_CC_dependencies_compiler_type=none
  4599. fi
  4600. fi
  4601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4602. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4603. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4604. if
  4605. test "x$enable_dependency_tracking" != xno \
  4606. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4607. am__fastdepCC_TRUE=
  4608. am__fastdepCC_FALSE='#'
  4609. else
  4610. am__fastdepCC_TRUE='#'
  4611. am__fastdepCC_FALSE=
  4612. fi
  4613. if test -n "$ac_tool_prefix"; then
  4614. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4615. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4616. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4617. $as_echo_n "checking for $ac_word... " >&6; }
  4618. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  4619. $as_echo_n "(cached) " >&6
  4620. else
  4621. if test -n "$RANLIB"; then
  4622. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4623. else
  4624. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4625. for as_dir in $PATH
  4626. do
  4627. IFS=$as_save_IFS
  4628. test -z "$as_dir" && as_dir=.
  4629. for ac_exec_ext in '' $ac_executable_extensions; do
  4630. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4631. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4632. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4633. break 2
  4634. fi
  4635. done
  4636. done
  4637. IFS=$as_save_IFS
  4638. fi
  4639. fi
  4640. RANLIB=$ac_cv_prog_RANLIB
  4641. if test -n "$RANLIB"; then
  4642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4643. $as_echo "$RANLIB" >&6; }
  4644. else
  4645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4646. $as_echo "no" >&6; }
  4647. fi
  4648. fi
  4649. if test -z "$ac_cv_prog_RANLIB"; then
  4650. ac_ct_RANLIB=$RANLIB
  4651. # Extract the first word of "ranlib", so it can be a program name with args.
  4652. set dummy ranlib; ac_word=$2
  4653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4654. $as_echo_n "checking for $ac_word... " >&6; }
  4655. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  4656. $as_echo_n "(cached) " >&6
  4657. else
  4658. if test -n "$ac_ct_RANLIB"; then
  4659. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4660. else
  4661. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4662. for as_dir in $PATH
  4663. do
  4664. IFS=$as_save_IFS
  4665. test -z "$as_dir" && as_dir=.
  4666. for ac_exec_ext in '' $ac_executable_extensions; do
  4667. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4668. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4669. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4670. break 2
  4671. fi
  4672. done
  4673. done
  4674. IFS=$as_save_IFS
  4675. fi
  4676. fi
  4677. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4678. if test -n "$ac_ct_RANLIB"; then
  4679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4680. $as_echo "$ac_ct_RANLIB" >&6; }
  4681. else
  4682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4683. $as_echo "no" >&6; }
  4684. fi
  4685. if test "x$ac_ct_RANLIB" = x; then
  4686. RANLIB=":"
  4687. else
  4688. case $cross_compiling:$ac_tool_warned in
  4689. yes:)
  4690. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4691. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4692. ac_tool_warned=yes ;;
  4693. esac
  4694. RANLIB=$ac_ct_RANLIB
  4695. fi
  4696. else
  4697. RANLIB="$ac_cv_prog_RANLIB"
  4698. fi
  4699. for ac_prog in 'bison -y' byacc
  4700. do
  4701. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4702. set dummy $ac_prog; ac_word=$2
  4703. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4704. $as_echo_n "checking for $ac_word... " >&6; }
  4705. if test "${ac_cv_prog_YACC+set}" = set; then :
  4706. $as_echo_n "(cached) " >&6
  4707. else
  4708. if test -n "$YACC"; then
  4709. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  4710. else
  4711. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4712. for as_dir in $PATH
  4713. do
  4714. IFS=$as_save_IFS
  4715. test -z "$as_dir" && as_dir=.
  4716. for ac_exec_ext in '' $ac_executable_extensions; do
  4717. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4718. ac_cv_prog_YACC="$ac_prog"
  4719. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4720. break 2
  4721. fi
  4722. done
  4723. done
  4724. IFS=$as_save_IFS
  4725. fi
  4726. fi
  4727. YACC=$ac_cv_prog_YACC
  4728. if test -n "$YACC"; then
  4729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
  4730. $as_echo "$YACC" >&6; }
  4731. else
  4732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4733. $as_echo "no" >&6; }
  4734. fi
  4735. test -n "$YACC" && break
  4736. done
  4737. test -n "$YACC" || YACC="yacc"
  4738. # Setting language choice
  4739. ac_ext=cpp
  4740. ac_cpp='$CXXCPP $CPPFLAGS'
  4741. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4742. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4743. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4744. # Enable system extensions
  4745. ac_ext=cpp
  4746. ac_cpp='$CXXCPP $CPPFLAGS'
  4747. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4748. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4749. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4750. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  4751. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  4752. if test -z "$CXXCPP"; then
  4753. if test "${ac_cv_prog_CXXCPP+set}" = set; then :
  4754. $as_echo_n "(cached) " >&6
  4755. else
  4756. # Double quotes because CXXCPP needs to be expanded
  4757. for CXXCPP in "$CXX -E" "/lib/cpp"
  4758. do
  4759. ac_preproc_ok=false
  4760. for ac_cxx_preproc_warn_flag in '' yes
  4761. do
  4762. # Use a header file that comes with gcc, so configuring glibc
  4763. # with a fresh cross-compiler works.
  4764. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4765. # <limits.h> exists even on freestanding compilers.
  4766. # On the NeXT, cc -E runs the code through the compiler's parser,
  4767. # not just through cpp. "Syntax error" is here to catch this case.
  4768. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4769. /* end confdefs.h. */
  4770. #ifdef __STDC__
  4771. # include <limits.h>
  4772. #else
  4773. # include <assert.h>
  4774. #endif
  4775. Syntax error
  4776. _ACEOF
  4777. if ac_fn_cxx_try_cpp "$LINENO"; then :
  4778. else
  4779. # Broken: fails on valid input.
  4780. continue
  4781. fi
  4782. rm -f conftest.err conftest.i conftest.$ac_ext
  4783. # OK, works on sane cases. Now check whether nonexistent headers
  4784. # can be detected and how.
  4785. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4786. /* end confdefs.h. */
  4787. #include <ac_nonexistent.h>
  4788. _ACEOF
  4789. if ac_fn_cxx_try_cpp "$LINENO"; then :
  4790. # Broken: success on invalid input.
  4791. continue
  4792. else
  4793. # Passes both tests.
  4794. ac_preproc_ok=:
  4795. break
  4796. fi
  4797. rm -f conftest.err conftest.i conftest.$ac_ext
  4798. done
  4799. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4800. rm -f conftest.i conftest.err conftest.$ac_ext
  4801. if $ac_preproc_ok; then :
  4802. break
  4803. fi
  4804. done
  4805. ac_cv_prog_CXXCPP=$CXXCPP
  4806. fi
  4807. CXXCPP=$ac_cv_prog_CXXCPP
  4808. else
  4809. ac_cv_prog_CXXCPP=$CXXCPP
  4810. fi
  4811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  4812. $as_echo "$CXXCPP" >&6; }
  4813. ac_preproc_ok=false
  4814. for ac_cxx_preproc_warn_flag in '' yes
  4815. do
  4816. # Use a header file that comes with gcc, so configuring glibc
  4817. # with a fresh cross-compiler works.
  4818. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4819. # <limits.h> exists even on freestanding compilers.
  4820. # On the NeXT, cc -E runs the code through the compiler's parser,
  4821. # not just through cpp. "Syntax error" is here to catch this case.
  4822. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4823. /* end confdefs.h. */
  4824. #ifdef __STDC__
  4825. # include <limits.h>
  4826. #else
  4827. # include <assert.h>
  4828. #endif
  4829. Syntax error
  4830. _ACEOF
  4831. if ac_fn_cxx_try_cpp "$LINENO"; then :
  4832. else
  4833. # Broken: fails on valid input.
  4834. continue
  4835. fi
  4836. rm -f conftest.err conftest.i conftest.$ac_ext
  4837. # OK, works on sane cases. Now check whether nonexistent headers
  4838. # can be detected and how.
  4839. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4840. /* end confdefs.h. */
  4841. #include <ac_nonexistent.h>
  4842. _ACEOF
  4843. if ac_fn_cxx_try_cpp "$LINENO"; then :
  4844. # Broken: success on invalid input.
  4845. continue
  4846. else
  4847. # Passes both tests.
  4848. ac_preproc_ok=:
  4849. break
  4850. fi
  4851. rm -f conftest.err conftest.i conftest.$ac_ext
  4852. done
  4853. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4854. rm -f conftest.i conftest.err conftest.$ac_ext
  4855. if $ac_preproc_ok; then :
  4856. else
  4857. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4858. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4859. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  4860. See \`config.log' for more details" "$LINENO" 5 ; }
  4861. fi
  4862. ac_ext=cpp
  4863. ac_cpp='$CXXCPP $CPPFLAGS'
  4864. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4865. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4866. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4867. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4868. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4869. if test "${ac_cv_path_GREP+set}" = set; then :
  4870. $as_echo_n "(cached) " >&6
  4871. else
  4872. if test -z "$GREP"; then
  4873. ac_path_GREP_found=false
  4874. # Loop through the user's path and test for each of PROGNAME-LIST
  4875. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4876. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4877. do
  4878. IFS=$as_save_IFS
  4879. test -z "$as_dir" && as_dir=.
  4880. for ac_prog in grep ggrep; do
  4881. for ac_exec_ext in '' $ac_executable_extensions; do
  4882. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4883. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4884. # Check for GNU ac_path_GREP and select it if it is found.
  4885. # Check for GNU $ac_path_GREP
  4886. case `"$ac_path_GREP" --version 2>&1` in
  4887. *GNU*)
  4888. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4889. *)
  4890. ac_count=0
  4891. $as_echo_n 0123456789 >"conftest.in"
  4892. while :
  4893. do
  4894. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4895. mv "conftest.tmp" "conftest.in"
  4896. cp "conftest.in" "conftest.nl"
  4897. $as_echo 'GREP' >> "conftest.nl"
  4898. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4899. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4900. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4901. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4902. # Best one so far, save it but keep looking for a better one
  4903. ac_cv_path_GREP="$ac_path_GREP"
  4904. ac_path_GREP_max=$ac_count
  4905. fi
  4906. # 10*(2^10) chars as input seems more than enough
  4907. test $ac_count -gt 10 && break
  4908. done
  4909. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4910. esac
  4911. $ac_path_GREP_found && break 3
  4912. done
  4913. done
  4914. done
  4915. IFS=$as_save_IFS
  4916. if test -z "$ac_cv_path_GREP"; then
  4917. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4918. fi
  4919. else
  4920. ac_cv_path_GREP=$GREP
  4921. fi
  4922. fi
  4923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4924. $as_echo "$ac_cv_path_GREP" >&6; }
  4925. GREP="$ac_cv_path_GREP"
  4926. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4927. $as_echo_n "checking for egrep... " >&6; }
  4928. if test "${ac_cv_path_EGREP+set}" = set; then :
  4929. $as_echo_n "(cached) " >&6
  4930. else
  4931. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4932. then ac_cv_path_EGREP="$GREP -E"
  4933. else
  4934. if test -z "$EGREP"; then
  4935. ac_path_EGREP_found=false
  4936. # Loop through the user's path and test for each of PROGNAME-LIST
  4937. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4938. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4939. do
  4940. IFS=$as_save_IFS
  4941. test -z "$as_dir" && as_dir=.
  4942. for ac_prog in egrep; do
  4943. for ac_exec_ext in '' $ac_executable_extensions; do
  4944. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4945. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4946. # Check for GNU ac_path_EGREP and select it if it is found.
  4947. # Check for GNU $ac_path_EGREP
  4948. case `"$ac_path_EGREP" --version 2>&1` in
  4949. *GNU*)
  4950. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4951. *)
  4952. ac_count=0
  4953. $as_echo_n 0123456789 >"conftest.in"
  4954. while :
  4955. do
  4956. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4957. mv "conftest.tmp" "conftest.in"
  4958. cp "conftest.in" "conftest.nl"
  4959. $as_echo 'EGREP' >> "conftest.nl"
  4960. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4961. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4962. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4963. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4964. # Best one so far, save it but keep looking for a better one
  4965. ac_cv_path_EGREP="$ac_path_EGREP"
  4966. ac_path_EGREP_max=$ac_count
  4967. fi
  4968. # 10*(2^10) chars as input seems more than enough
  4969. test $ac_count -gt 10 && break
  4970. done
  4971. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4972. esac
  4973. $ac_path_EGREP_found && break 3
  4974. done
  4975. done
  4976. done
  4977. IFS=$as_save_IFS
  4978. if test -z "$ac_cv_path_EGREP"; then
  4979. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4980. fi
  4981. else
  4982. ac_cv_path_EGREP=$EGREP
  4983. fi
  4984. fi
  4985. fi
  4986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4987. $as_echo "$ac_cv_path_EGREP" >&6; }
  4988. EGREP="$ac_cv_path_EGREP"
  4989. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4990. $as_echo_n "checking for ANSI C header files... " >&6; }
  4991. if test "${ac_cv_header_stdc+set}" = set; then :
  4992. $as_echo_n "(cached) " >&6
  4993. else
  4994. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4995. /* end confdefs.h. */
  4996. #include <stdlib.h>
  4997. #include <stdarg.h>
  4998. #include <string.h>
  4999. #include <float.h>
  5000. int
  5001. main ()
  5002. {
  5003. ;
  5004. return 0;
  5005. }
  5006. _ACEOF
  5007. if ac_fn_cxx_try_compile "$LINENO"; then :
  5008. ac_cv_header_stdc=yes
  5009. else
  5010. ac_cv_header_stdc=no
  5011. fi
  5012. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5013. if test $ac_cv_header_stdc = yes; then
  5014. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  5015. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5016. /* end confdefs.h. */
  5017. #include <string.h>
  5018. _ACEOF
  5019. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5020. $EGREP "memchr" >/dev/null 2>&1; then :
  5021. else
  5022. ac_cv_header_stdc=no
  5023. fi
  5024. rm -f conftest*
  5025. fi
  5026. if test $ac_cv_header_stdc = yes; then
  5027. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  5028. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5029. /* end confdefs.h. */
  5030. #include <stdlib.h>
  5031. _ACEOF
  5032. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5033. $EGREP "free" >/dev/null 2>&1; then :
  5034. else
  5035. ac_cv_header_stdc=no
  5036. fi
  5037. rm -f conftest*
  5038. fi
  5039. if test $ac_cv_header_stdc = yes; then
  5040. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  5041. if test "$cross_compiling" = yes; then :
  5042. :
  5043. else
  5044. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5045. /* end confdefs.h. */
  5046. #include <ctype.h>
  5047. #include <stdlib.h>
  5048. #if ((' ' & 0x0FF) == 0x020)
  5049. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  5050. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  5051. #else
  5052. # define ISLOWER(c) \
  5053. (('a' <= (c) && (c) <= 'i') \
  5054. || ('j' <= (c) && (c) <= 'r') \
  5055. || ('s' <= (c) && (c) <= 'z'))
  5056. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  5057. #endif
  5058. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  5059. int
  5060. main ()
  5061. {
  5062. int i;
  5063. for (i = 0; i < 256; i++)
  5064. if (XOR (islower (i), ISLOWER (i))
  5065. || toupper (i) != TOUPPER (i))
  5066. return 2;
  5067. return 0;
  5068. }
  5069. _ACEOF
  5070. if ac_fn_cxx_try_run "$LINENO"; then :
  5071. else
  5072. ac_cv_header_stdc=no
  5073. fi
  5074. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5075. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5076. fi
  5077. fi
  5078. fi
  5079. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  5080. $as_echo "$ac_cv_header_stdc" >&6; }
  5081. if test $ac_cv_header_stdc = yes; then
  5082. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  5083. fi
  5084. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  5085. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  5086. inttypes.h stdint.h unistd.h
  5087. do :
  5088. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5089. ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  5090. "
  5091. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  5092. cat >>confdefs.h <<_ACEOF
  5093. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5094. _ACEOF
  5095. fi
  5096. done
  5097. ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  5098. if test "x$ac_cv_header_minix_config_h" = x""yes; then :
  5099. MINIX=yes
  5100. else
  5101. MINIX=
  5102. fi
  5103. if test "$MINIX" = yes; then
  5104. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  5105. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  5106. $as_echo "#define _MINIX 1" >>confdefs.h
  5107. fi
  5108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  5109. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  5110. if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
  5111. $as_echo_n "(cached) " >&6
  5112. else
  5113. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5114. /* end confdefs.h. */
  5115. # define __EXTENSIONS__ 1
  5116. $ac_includes_default
  5117. int
  5118. main ()
  5119. {
  5120. ;
  5121. return 0;
  5122. }
  5123. _ACEOF
  5124. if ac_fn_cxx_try_compile "$LINENO"; then :
  5125. ac_cv_safe_to_define___extensions__=yes
  5126. else
  5127. ac_cv_safe_to_define___extensions__=no
  5128. fi
  5129. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5130. fi
  5131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  5132. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  5133. test $ac_cv_safe_to_define___extensions__ = yes &&
  5134. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  5135. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  5136. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  5137. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  5138. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  5139. # Check pkg-config is available
  5140. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  5141. if test -n "$ac_tool_prefix"; then
  5142. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  5143. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  5144. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5145. $as_echo_n "checking for $ac_word... " >&6; }
  5146. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
  5147. $as_echo_n "(cached) " >&6
  5148. else
  5149. case $PKG_CONFIG in
  5150. [\\/]* | ?:[\\/]*)
  5151. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  5152. ;;
  5153. *)
  5154. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5155. for as_dir in $PATH
  5156. do
  5157. IFS=$as_save_IFS
  5158. test -z "$as_dir" && as_dir=.
  5159. for ac_exec_ext in '' $ac_executable_extensions; do
  5160. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5161. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5162. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5163. break 2
  5164. fi
  5165. done
  5166. done
  5167. IFS=$as_save_IFS
  5168. ;;
  5169. esac
  5170. fi
  5171. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  5172. if test -n "$PKG_CONFIG"; then
  5173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  5174. $as_echo "$PKG_CONFIG" >&6; }
  5175. else
  5176. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5177. $as_echo "no" >&6; }
  5178. fi
  5179. fi
  5180. if test -z "$ac_cv_path_PKG_CONFIG"; then
  5181. ac_pt_PKG_CONFIG=$PKG_CONFIG
  5182. # Extract the first word of "pkg-config", so it can be a program name with args.
  5183. set dummy pkg-config; ac_word=$2
  5184. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5185. $as_echo_n "checking for $ac_word... " >&6; }
  5186. if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
  5187. $as_echo_n "(cached) " >&6
  5188. else
  5189. case $ac_pt_PKG_CONFIG in
  5190. [\\/]* | ?:[\\/]*)
  5191. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  5192. ;;
  5193. *)
  5194. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5195. for as_dir in $PATH
  5196. do
  5197. IFS=$as_save_IFS
  5198. test -z "$as_dir" && as_dir=.
  5199. for ac_exec_ext in '' $ac_executable_extensions; do
  5200. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5201. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5202. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5203. break 2
  5204. fi
  5205. done
  5206. done
  5207. IFS=$as_save_IFS
  5208. ;;
  5209. esac
  5210. fi
  5211. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  5212. if test -n "$ac_pt_PKG_CONFIG"; then
  5213. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  5214. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  5215. else
  5216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5217. $as_echo "no" >&6; }
  5218. fi
  5219. if test "x$ac_pt_PKG_CONFIG" = x; then
  5220. PKG_CONFIG=""
  5221. else
  5222. case $cross_compiling:$ac_tool_warned in
  5223. yes:)
  5224. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5225. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5226. ac_tool_warned=yes ;;
  5227. esac
  5228. PKG_CONFIG=$ac_pt_PKG_CONFIG
  5229. fi
  5230. else
  5231. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  5232. fi
  5233. fi
  5234. if test -n "$PKG_CONFIG"; then
  5235. _pkg_min_version=0.20
  5236. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  5237. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  5238. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  5239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5240. $as_echo "yes" >&6; }
  5241. else
  5242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5243. $as_echo "no" >&6; }
  5244. PKG_CONFIG=""
  5245. fi
  5246. fi
  5247. # Checks for libraries.
  5248. if test "x$with_libxml2" = "xyes"; then
  5249. # Check whether --with-xml-prefix was given.
  5250. if test "${with_xml_prefix+set}" = set; then :
  5251. withval=$with_xml_prefix; xml_config_prefix="$withval"
  5252. else
  5253. xml_config_prefix=""
  5254. fi
  5255. # Check whether --with-xml-exec-prefix was given.
  5256. if test "${with_xml_exec_prefix+set}" = set; then :
  5257. withval=$with_xml_exec_prefix; xml_config_exec_prefix="$withval"
  5258. else
  5259. xml_config_exec_prefix=""
  5260. fi
  5261. # Check whether --enable-xmltest was given.
  5262. if test "${enable_xmltest+set}" = set; then :
  5263. enableval=$enable_xmltest;
  5264. else
  5265. enable_xmltest=yes
  5266. fi
  5267. if test x$xml_config_exec_prefix != x ; then
  5268. xml_config_args="$xml_config_args"
  5269. if test x${XML2_CONFIG+set} != xset ; then
  5270. XML2_CONFIG=$xml_config_exec_prefix/bin/xml2-config
  5271. fi
  5272. fi
  5273. if test x$xml_config_prefix != x ; then
  5274. xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
  5275. if test x${XML2_CONFIG+set} != xset ; then
  5276. XML2_CONFIG=$xml_config_prefix/bin/xml2-config
  5277. fi
  5278. fi
  5279. # Extract the first word of "xml2-config", so it can be a program name with args.
  5280. set dummy xml2-config; ac_word=$2
  5281. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5282. $as_echo_n "checking for $ac_word... " >&6; }
  5283. if test "${ac_cv_path_XML2_CONFIG+set}" = set; then :
  5284. $as_echo_n "(cached) " >&6
  5285. else
  5286. case $XML2_CONFIG in
  5287. [\\/]* | ?:[\\/]*)
  5288. ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
  5289. ;;
  5290. *)
  5291. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5292. for as_dir in $PATH
  5293. do
  5294. IFS=$as_save_IFS
  5295. test -z "$as_dir" && as_dir=.
  5296. for ac_exec_ext in '' $ac_executable_extensions; do
  5297. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5298. ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5299. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5300. break 2
  5301. fi
  5302. done
  5303. done
  5304. IFS=$as_save_IFS
  5305. test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no"
  5306. ;;
  5307. esac
  5308. fi
  5309. XML2_CONFIG=$ac_cv_path_XML2_CONFIG
  5310. if test -n "$XML2_CONFIG"; then
  5311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5
  5312. $as_echo "$XML2_CONFIG" >&6; }
  5313. else
  5314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5315. $as_echo "no" >&6; }
  5316. fi
  5317. min_xml_version=2.6.24
  5318. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml - version >= $min_xml_version" >&5
  5319. $as_echo_n "checking for libxml - version >= $min_xml_version... " >&6; }
  5320. no_xml=""
  5321. if test "$XML2_CONFIG" = "no" ; then
  5322. no_xml=yes
  5323. else
  5324. XML_CPPFLAGS=`$XML2_CONFIG $xml_config_args --cflags`
  5325. XML_LIBS=`$XML2_CONFIG $xml_config_args --libs`
  5326. xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \
  5327. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  5328. xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \
  5329. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  5330. xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \
  5331. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  5332. if test "x$enable_xmltest" = "xyes" ; then
  5333. ac_save_CPPFLAGS="$CPPFLAGS"
  5334. ac_save_LIBS="$LIBS"
  5335. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  5336. LIBS="$XML_LIBS $LIBS"
  5337. rm -f conf.xmltest
  5338. if test "$cross_compiling" = yes; then :
  5339. echo $ac_n "cross compiling; assumed OK... $ac_c"
  5340. else
  5341. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5342. /* end confdefs.h. */
  5343. #include <stdlib.h>
  5344. #include <stdio.h>
  5345. #include <string.h>
  5346. #include <libxml/xmlversion.h>
  5347. int
  5348. main()
  5349. {
  5350. int xml_major_version, xml_minor_version, xml_micro_version;
  5351. int major, minor, micro;
  5352. char *tmp_version;
  5353. system("touch conf.xmltest");
  5354. /* Capture xml2-config output via autoconf/configure variables */
  5355. /* HP/UX 9 (%@#!) writes to sscanf strings */
  5356. tmp_version = (char *)strdup("$min_xml_version");
  5357. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  5358. printf("%s, bad version string from xml2-config\n", "$min_xml_version");
  5359. exit(1);
  5360. }
  5361. free(tmp_version);
  5362. /* Capture the version information from the header files */
  5363. tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);
  5364. if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
  5365. printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION");
  5366. exit(1);
  5367. }
  5368. free(tmp_version);
  5369. /* Compare xml2-config output to the libxml headers */
  5370. if ((xml_major_version != $xml_config_major_version) ||
  5371. (xml_minor_version != $xml_config_minor_version) ||
  5372. (xml_micro_version != $xml_config_micro_version))
  5373. {
  5374. printf("*** libxml header files (version %d.%d.%d) do not match\n",
  5375. xml_major_version, xml_minor_version, xml_micro_version);
  5376. printf("*** xml2-config (version %d.%d.%d)\n",
  5377. $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version);
  5378. return 1;
  5379. }
  5380. /* Compare the headers to the library to make sure we match */
  5381. /* Less than ideal -- doesn't provide us with return value feedback,
  5382. * only exits if there's a serious mismatch between header and library.
  5383. */
  5384. LIBXML_TEST_VERSION;
  5385. /* Test that the library is greater than our minimum version */
  5386. if ((xml_major_version > major) ||
  5387. ((xml_major_version == major) && (xml_minor_version > minor)) ||
  5388. ((xml_major_version == major) && (xml_minor_version == minor) &&
  5389. (xml_micro_version >= micro)))
  5390. {
  5391. return 0;
  5392. }
  5393. else
  5394. {
  5395. printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
  5396. xml_major_version, xml_minor_version, xml_micro_version);
  5397. printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
  5398. major, minor, micro);
  5399. printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n");
  5400. printf("***\n");
  5401. printf("*** If you have already installed a sufficiently new version, this error\n");
  5402. printf("*** probably means that the wrong copy of the xml2-config shell script is\n");
  5403. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  5404. printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
  5405. printf("*** correct copy of xml2-config. (In this case, you will have to\n");
  5406. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  5407. printf("*** so that the correct libraries are found at run-time))\n");
  5408. }
  5409. return 1;
  5410. }
  5411. _ACEOF
  5412. if ac_fn_cxx_try_run "$LINENO"; then :
  5413. else
  5414. no_xml=yes
  5415. fi
  5416. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5417. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5418. fi
  5419. CPPFLAGS="$ac_save_CPPFLAGS"
  5420. LIBS="$ac_save_LIBS"
  5421. fi
  5422. fi
  5423. if test "x$no_xml" = x ; then
  5424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&5
  5425. $as_echo "yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&6; }
  5426. have_libxml2=yes
  5427. else
  5428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5429. $as_echo "no" >&6; }
  5430. if test "$XML2_CONFIG" = "no" ; then
  5431. echo "*** The xml2-config script installed by LIBXML could not be found"
  5432. echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
  5433. echo "*** your path, or set the XML2_CONFIG environment variable to the"
  5434. echo "*** full path to xml2-config."
  5435. else
  5436. if test -f conf.xmltest ; then
  5437. :
  5438. else
  5439. echo "*** Could not run libxml test program, checking why..."
  5440. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  5441. LIBS="$LIBS $XML_LIBS"
  5442. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5443. /* end confdefs.h. */
  5444. #include <libxml/xmlversion.h>
  5445. #include <stdio.h>
  5446. int
  5447. main ()
  5448. {
  5449. LIBXML_TEST_VERSION; return 0;
  5450. ;
  5451. return 0;
  5452. }
  5453. _ACEOF
  5454. if ac_fn_cxx_try_link "$LINENO"; then :
  5455. echo "*** The test program compiled, but did not run. This usually means"
  5456. echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
  5457. echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"
  5458. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  5459. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  5460. echo "*** is required on your system"
  5461. echo "***"
  5462. echo "*** If you have an old version installed, it is best to remove it, although"
  5463. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  5464. else
  5465. echo "*** The test program failed to compile or link. See the file config.log for the"
  5466. echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
  5467. echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
  5468. echo "*** may want to edit the xml2-config script: $XML2_CONFIG"
  5469. fi
  5470. rm -f core conftest.err conftest.$ac_objext \
  5471. conftest$ac_exeext conftest.$ac_ext
  5472. CPPFLAGS="$ac_save_CPPFLAGS"
  5473. LIBS="$ac_save_LIBS"
  5474. fi
  5475. fi
  5476. XML_CPPFLAGS=""
  5477. XML_LIBS=""
  5478. :
  5479. fi
  5480. rm -f conf.xmltest
  5481. if test "x$have_libxml2" = "xyes"; then
  5482. $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
  5483. elif test "x$with_libxml2_requested" = "xyes"; then
  5484. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5485. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5486. as_fn_error $? "libxml2 is requested but not found in the system.
  5487. See \`config.log' for more details" "$LINENO" 5 ; }
  5488. fi
  5489. fi
  5490. if test "x$with_libexpat" = "xyes" && test "x$have_libxml2" != "xyes"; then
  5491. # Check whether --with-libexpat-prefix was given.
  5492. if test "${with_libexpat_prefix+set}" = set; then :
  5493. withval=$with_libexpat_prefix; libexpat_prefix=$withval
  5494. else
  5495. libexpat_prefix=""
  5496. fi
  5497. if test "x$libexpat_prefix" = "x"; then
  5498. libexpat_prefix="/usr"
  5499. fi
  5500. libexpat_prefix_lib=$libexpat_prefix/lib
  5501. libexpat_prefix_include=$libexpat_prefix/include
  5502. LIBS_save=$LIBS
  5503. CPPFLAGS_save=$CPPFLAGS
  5504. LIBS="-L$libexpat_prefix_lib $LIBS"
  5505. CPPFLAGS="-I$libexpat_prefix_include $CPPFLAGS"
  5506. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML_ParserCreate in -lexpat" >&5
  5507. $as_echo_n "checking for XML_ParserCreate in -lexpat... " >&6; }
  5508. if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then :
  5509. $as_echo_n "(cached) " >&6
  5510. else
  5511. ac_check_lib_save_LIBS=$LIBS
  5512. LIBS="-lexpat $LIBS"
  5513. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5514. /* end confdefs.h. */
  5515. /* Override any GCC internal prototype to avoid an error.
  5516. Use char because int might match the return type of a GCC
  5517. builtin and then its argument prototype would still apply. */
  5518. #ifdef __cplusplus
  5519. extern "C"
  5520. #endif
  5521. char XML_ParserCreate ();
  5522. int
  5523. main ()
  5524. {
  5525. return XML_ParserCreate ();
  5526. ;
  5527. return 0;
  5528. }
  5529. _ACEOF
  5530. if ac_fn_cxx_try_link "$LINENO"; then :
  5531. ac_cv_lib_expat_XML_ParserCreate=yes
  5532. else
  5533. ac_cv_lib_expat_XML_ParserCreate=no
  5534. fi
  5535. rm -f core conftest.err conftest.$ac_objext \
  5536. conftest$ac_exeext conftest.$ac_ext
  5537. LIBS=$ac_check_lib_save_LIBS
  5538. fi
  5539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
  5540. $as_echo "$ac_cv_lib_expat_XML_ParserCreate" >&6; }
  5541. if test "x$ac_cv_lib_expat_XML_ParserCreate" = x""yes; then :
  5542. have_libexpat=yes
  5543. fi
  5544. if test "x$have_libexpat" = "xyes"; then
  5545. $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
  5546. LIBEXPAT_LIBS="-L$libexpat_prefix_lib -lexpat"
  5547. LIBEXPAT_CPPFLAGS="-I$libexpat_prefix_include"
  5548. fi
  5549. LIBS=$LIBS_save
  5550. CPPFLAGS=$CPPFLAGS_save
  5551. if test "x$have_libexpat" != "xyes" &&
  5552. test "x$with_libexpat_requested" = "xyes"; then
  5553. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5554. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5555. as_fn_error $? "libexpat is requested but not found in the system.
  5556. See \`config.log' for more details" "$LINENO" 5 ; }
  5557. fi
  5558. fi
  5559. if test "x$with_sqlite3" = "xyes"; then
  5560. # Check whether --with-sqlite3-prefix was given.
  5561. if test "${with_sqlite3_prefix+set}" = set; then :
  5562. withval=$with_sqlite3_prefix; sqlite3_prefix=$withval
  5563. else
  5564. sqlite3_prefix=""
  5565. fi
  5566. if test "x$sqlite3_prefix" = "x"; then
  5567. sqlite3_prefix="/usr"
  5568. fi
  5569. LIBS_save=$LIBS
  5570. CPPFLAGS_save=$CPPFLAGS
  5571. pkg_failed=no
  5572. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLITE3" >&5
  5573. $as_echo_n "checking for SQLITE3... " >&6; }
  5574. if test -n "$SQLITE3_CFLAGS"; then
  5575. pkg_cv_SQLITE3_CFLAGS="$SQLITE3_CFLAGS"
  5576. elif test -n "$PKG_CONFIG"; then
  5577. if test -n "$PKG_CONFIG" && \
  5578. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
  5579. ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
  5580. ac_status=$?
  5581. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5582. test $ac_status = 0; }; then
  5583. pkg_cv_SQLITE3_CFLAGS=`$PKG_CONFIG --cflags "sqlite3" 2>/dev/null`
  5584. else
  5585. pkg_failed=yes
  5586. fi
  5587. else
  5588. pkg_failed=untried
  5589. fi
  5590. if test -n "$SQLITE3_LIBS"; then
  5591. pkg_cv_SQLITE3_LIBS="$SQLITE3_LIBS"
  5592. elif test -n "$PKG_CONFIG"; then
  5593. if test -n "$PKG_CONFIG" && \
  5594. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
  5595. ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
  5596. ac_status=$?
  5597. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5598. test $ac_status = 0; }; then
  5599. pkg_cv_SQLITE3_LIBS=`$PKG_CONFIG --libs "sqlite3" 2>/dev/null`
  5600. else
  5601. pkg_failed=yes
  5602. fi
  5603. else
  5604. pkg_failed=untried
  5605. fi
  5606. if test $pkg_failed = yes; then
  5607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5608. $as_echo "no" >&6; }
  5609. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  5610. _pkg_short_errors_supported=yes
  5611. else
  5612. _pkg_short_errors_supported=no
  5613. fi
  5614. if test $_pkg_short_errors_supported = yes; then
  5615. SQLITE3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "sqlite3" 2>&1`
  5616. else
  5617. SQLITE3_PKG_ERRORS=`$PKG_CONFIG --print-errors "sqlite3" 2>&1`
  5618. fi
  5619. # Put the nasty error message in config.log where it belongs
  5620. echo "$SQLITE3_PKG_ERRORS" >&5
  5621. have_sqlite3=no
  5622. elif test $pkg_failed = untried; then
  5623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5624. $as_echo "no" >&6; }
  5625. have_sqlite3=no
  5626. else
  5627. SQLITE3_CFLAGS=$pkg_cv_SQLITE3_CFLAGS
  5628. SQLITE3_LIBS=$pkg_cv_SQLITE3_LIBS
  5629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5630. $as_echo "yes" >&6; }
  5631. have_sqlite3=yes
  5632. fi
  5633. if test "x$have_sqlite3" != "xyes"; then
  5634. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $SQLITE3_PKG_ERRORS" >&5
  5635. $as_echo "$as_me: WARNING: $SQLITE3_PKG_ERRORS" >&2;}
  5636. sqlite3_prefix_lib=$sqlite3_prefix/lib
  5637. sqlite3_prefix_include=$sqlite3_prefix/include
  5638. LIBS="-L$sqlite3_prefix_lib $LIBS"
  5639. CPPFLAGS="-I$sqlite3_prefix_include $CPPFLAGS"
  5640. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_open in -lsqlite3" >&5
  5641. $as_echo_n "checking for sqlite3_open in -lsqlite3... " >&6; }
  5642. if test "${ac_cv_lib_sqlite3_sqlite3_open+set}" = set; then :
  5643. $as_echo_n "(cached) " >&6
  5644. else
  5645. ac_check_lib_save_LIBS=$LIBS
  5646. LIBS="-lsqlite3 $LIBS"
  5647. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5648. /* end confdefs.h. */
  5649. /* Override any GCC internal prototype to avoid an error.
  5650. Use char because int might match the return type of a GCC
  5651. builtin and then its argument prototype would still apply. */
  5652. #ifdef __cplusplus
  5653. extern "C"
  5654. #endif
  5655. char sqlite3_open ();
  5656. int
  5657. main ()
  5658. {
  5659. return sqlite3_open ();
  5660. ;
  5661. return 0;
  5662. }
  5663. _ACEOF
  5664. if ac_fn_cxx_try_link "$LINENO"; then :
  5665. ac_cv_lib_sqlite3_sqlite3_open=yes
  5666. else
  5667. ac_cv_lib_sqlite3_sqlite3_open=no
  5668. fi
  5669. rm -f core conftest.err conftest.$ac_objext \
  5670. conftest$ac_exeext conftest.$ac_ext
  5671. LIBS=$ac_check_lib_save_LIBS
  5672. fi
  5673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5
  5674. $as_echo "$ac_cv_lib_sqlite3_sqlite3_open" >&6; }
  5675. if test "x$ac_cv_lib_sqlite3_sqlite3_open" = x""yes; then :
  5676. have_sqlite3=yes
  5677. fi
  5678. if test "x$have_sqlite3" = "xyes"; then
  5679. SQLITE3_LIBS="-L$sqlite3_prefix_lib -lsqlite3"
  5680. SQLITE3_CFLAGS="-I$sqlite3_prefix_include"
  5681. fi
  5682. fi
  5683. if test "x$have_sqlite3" = "xyes"; then
  5684. LIBS="$SQLITE3_LIBS $LIBS"
  5685. CPPFLAGS="$SQLITE3_CFLAGS $CPPFLAGS"
  5686. for ac_func in sqlite3_open_v2
  5687. do :
  5688. ac_fn_cxx_check_func "$LINENO" "sqlite3_open_v2" "ac_cv_func_sqlite3_open_v2"
  5689. if test "x$ac_cv_func_sqlite3_open_v2" = x""yes; then :
  5690. cat >>confdefs.h <<_ACEOF
  5691. #define HAVE_SQLITE3_OPEN_V2 1
  5692. _ACEOF
  5693. fi
  5694. done
  5695. $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
  5696. fi
  5697. LIBS=$LIBS_save
  5698. CPPFLAGS=$CPPFLAGS_save
  5699. if test "x$have_sqlite3" != "xyes" &&
  5700. test "x$with_sqlite3_requested" = "xyes"; then
  5701. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5702. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5703. as_fn_error $? "sqlite3 is requested but not found in the system.
  5704. See \`config.log' for more details" "$LINENO" 5 ; }
  5705. fi
  5706. fi
  5707. if test "x$with_gnutls" = "xyes"; then
  5708. # gnutls >= 2.8 doesn't have libgnutls-config anymore.
  5709. # First check the presence of libgnutls using pkg-config.
  5710. pkg_failed=no
  5711. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGNUTLS" >&5
  5712. $as_echo_n "checking for LIBGNUTLS... " >&6; }
  5713. if test -n "$LIBGNUTLS_CFLAGS"; then
  5714. pkg_cv_LIBGNUTLS_CFLAGS="$LIBGNUTLS_CFLAGS"
  5715. elif test -n "$PKG_CONFIG"; then
  5716. if test -n "$PKG_CONFIG" && \
  5717. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= 1.2.9\""; } >&5
  5718. ($PKG_CONFIG --exists --print-errors "gnutls >= 1.2.9") 2>&5
  5719. ac_status=$?
  5720. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5721. test $ac_status = 0; }; then
  5722. pkg_cv_LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 1.2.9" 2>/dev/null`
  5723. else
  5724. pkg_failed=yes
  5725. fi
  5726. else
  5727. pkg_failed=untried
  5728. fi
  5729. if test -n "$LIBGNUTLS_LIBS"; then
  5730. pkg_cv_LIBGNUTLS_LIBS="$LIBGNUTLS_LIBS"
  5731. elif test -n "$PKG_CONFIG"; then
  5732. if test -n "$PKG_CONFIG" && \
  5733. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= 1.2.9\""; } >&5
  5734. ($PKG_CONFIG --exists --print-errors "gnutls >= 1.2.9") 2>&5
  5735. ac_status=$?
  5736. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5737. test $ac_status = 0; }; then
  5738. pkg_cv_LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 1.2.9" 2>/dev/null`
  5739. else
  5740. pkg_failed=yes
  5741. fi
  5742. else
  5743. pkg_failed=untried
  5744. fi
  5745. if test $pkg_failed = yes; then
  5746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5747. $as_echo "no" >&6; }
  5748. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  5749. _pkg_short_errors_supported=yes
  5750. else
  5751. _pkg_short_errors_supported=no
  5752. fi
  5753. if test $_pkg_short_errors_supported = yes; then
  5754. LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gnutls >= 1.2.9" 2>&1`
  5755. else
  5756. LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --print-errors "gnutls >= 1.2.9" 2>&1`
  5757. fi
  5758. # Put the nasty error message in config.log where it belongs
  5759. echo "$LIBGNUTLS_PKG_ERRORS" >&5
  5760. have_libgnutls=no
  5761. elif test $pkg_failed = untried; then
  5762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5763. $as_echo "no" >&6; }
  5764. have_libgnutls=no
  5765. else
  5766. LIBGNUTLS_CFLAGS=$pkg_cv_LIBGNUTLS_CFLAGS
  5767. LIBGNUTLS_LIBS=$pkg_cv_LIBGNUTLS_LIBS
  5768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5769. $as_echo "yes" >&6; }
  5770. have_libgnutls=yes
  5771. fi
  5772. # If no libgnutls found by pkg-config, fall back to old macro
  5773. if test "x$have_libgnutls" = "xno"; then
  5774. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $LIBGNUTLS_PKG_ERRORS" >&5
  5775. $as_echo "$as_me: WARNING: $LIBGNUTLS_PKG_ERRORS" >&2;}
  5776. # Check whether --with-libgnutls-prefix was given.
  5777. if test "${with_libgnutls_prefix+set}" = set; then :
  5778. withval=$with_libgnutls_prefix; libgnutls_config_prefix="$withval"
  5779. else
  5780. libgnutls_config_prefix=""
  5781. fi
  5782. if test x$libgnutls_config_prefix != x ; then
  5783. if test x${LIBGNUTLS_CONFIG+set} != xset ; then
  5784. LIBGNUTLS_CONFIG=$libgnutls_config_prefix/bin/libgnutls-config
  5785. fi
  5786. fi
  5787. # Extract the first word of "libgnutls-config", so it can be a program name with args.
  5788. set dummy libgnutls-config; ac_word=$2
  5789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5790. $as_echo_n "checking for $ac_word... " >&6; }
  5791. if test "${ac_cv_path_LIBGNUTLS_CONFIG+set}" = set; then :
  5792. $as_echo_n "(cached) " >&6
  5793. else
  5794. case $LIBGNUTLS_CONFIG in
  5795. [\\/]* | ?:[\\/]*)
  5796. ac_cv_path_LIBGNUTLS_CONFIG="$LIBGNUTLS_CONFIG" # Let the user override the test with a path.
  5797. ;;
  5798. *)
  5799. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5800. for as_dir in $PATH
  5801. do
  5802. IFS=$as_save_IFS
  5803. test -z "$as_dir" && as_dir=.
  5804. for ac_exec_ext in '' $ac_executable_extensions; do
  5805. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5806. ac_cv_path_LIBGNUTLS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5807. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5808. break 2
  5809. fi
  5810. done
  5811. done
  5812. IFS=$as_save_IFS
  5813. test -z "$ac_cv_path_LIBGNUTLS_CONFIG" && ac_cv_path_LIBGNUTLS_CONFIG="no"
  5814. ;;
  5815. esac
  5816. fi
  5817. LIBGNUTLS_CONFIG=$ac_cv_path_LIBGNUTLS_CONFIG
  5818. if test -n "$LIBGNUTLS_CONFIG"; then
  5819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CONFIG" >&5
  5820. $as_echo "$LIBGNUTLS_CONFIG" >&6; }
  5821. else
  5822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5823. $as_echo "no" >&6; }
  5824. fi
  5825. min_libgnutls_version=1.2.9
  5826. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgnutls - version >= $min_libgnutls_version" >&5
  5827. $as_echo_n "checking for libgnutls - version >= $min_libgnutls_version... " >&6; }
  5828. no_libgnutls=""
  5829. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  5830. no_libgnutls=yes
  5831. else
  5832. LIBGNUTLS_CFLAGS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --cflags`
  5833. LIBGNUTLS_LIBS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --libs`
  5834. libgnutls_config_version=`$LIBGNUTLS_CONFIG $libgnutls_config_args --version`
  5835. ac_save_CFLAGS="$CFLAGS"
  5836. ac_save_LIBS="$LIBS"
  5837. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  5838. LIBS="$LIBS $LIBGNUTLS_LIBS"
  5839. rm -f conf.libgnutlstest
  5840. if test "$cross_compiling" = yes; then :
  5841. echo $ac_n "cross compiling; assumed OK... $ac_c"
  5842. else
  5843. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5844. /* end confdefs.h. */
  5845. #include <stdio.h>
  5846. #include <stdlib.h>
  5847. #include <string.h>
  5848. #include <gnutls/gnutls.h>
  5849. int
  5850. main ()
  5851. {
  5852. system ("touch conf.libgnutlstest");
  5853. if( strcmp( gnutls_check_version(NULL), "$libgnutls_config_version" ) )
  5854. {
  5855. printf("\n*** 'libgnutls-config --version' returned %s, but LIBGNUTLS (%s)\n",
  5856. "$libgnutls_config_version", gnutls_check_version(NULL) );
  5857. printf("*** was found! If libgnutls-config was correct, then it is best\n");
  5858. printf("*** to remove the old version of LIBGNUTLS. You may also be able to fix the error\n");
  5859. printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
  5860. printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
  5861. printf("*** required on your system.\n");
  5862. printf("*** If libgnutls-config was wrong, set the environment variable LIBGNUTLS_CONFIG\n");
  5863. printf("*** to point to the correct copy of libgnutls-config, and remove the file config.cache\n");
  5864. printf("*** before re-running configure\n");
  5865. }
  5866. else if ( strcmp(gnutls_check_version(NULL), LIBGNUTLS_VERSION ) )
  5867. {
  5868. printf("\n*** LIBGNUTLS header file (version %s) does not match\n", LIBGNUTLS_VERSION);
  5869. printf("*** library (version %s)\n", gnutls_check_version(NULL) );
  5870. }
  5871. else
  5872. {
  5873. if ( gnutls_check_version( "$min_libgnutls_version" ) )
  5874. {
  5875. return 0;
  5876. }
  5877. else
  5878. {
  5879. printf("no\n*** An old version of LIBGNUTLS (%s) was found.\n",
  5880. gnutls_check_version(NULL) );
  5881. printf("*** You need a version of LIBGNUTLS newer than %s. The latest version of\n",
  5882. "$min_libgnutls_version" );
  5883. printf("*** LIBGNUTLS is always available from ftp://gnutls.hellug.gr/pub/gnutls.\n");
  5884. printf("*** \n");
  5885. printf("*** If you have already installed a sufficiently new version, this error\n");
  5886. printf("*** probably means that the wrong copy of the libgnutls-config shell script is\n");
  5887. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  5888. printf("*** of LIBGNUTLS, but you can also set the LIBGNUTLS_CONFIG environment to point to the\n");
  5889. printf("*** correct copy of libgnutls-config. (In this case, you will have to\n");
  5890. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  5891. printf("*** so that the correct libraries are found at run-time))\n");
  5892. }
  5893. }
  5894. return 1;
  5895. }
  5896. _ACEOF
  5897. if ac_fn_cxx_try_run "$LINENO"; then :
  5898. else
  5899. no_libgnutls=yes
  5900. fi
  5901. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5902. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5903. fi
  5904. CFLAGS="$ac_save_CFLAGS"
  5905. LIBS="$ac_save_LIBS"
  5906. fi
  5907. if test "x$no_libgnutls" = x ; then
  5908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5909. $as_echo "yes" >&6; }
  5910. have_libgnutls=yes
  5911. else
  5912. if test -f conf.libgnutlstest ; then
  5913. :
  5914. else
  5915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5916. $as_echo "no" >&6; }
  5917. fi
  5918. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  5919. echo "*** The libgnutls-config script installed by LIBGNUTLS could not be found"
  5920. echo "*** If LIBGNUTLS was installed in PREFIX, make sure PREFIX/bin is in"
  5921. echo "*** your path, or set the LIBGNUTLS_CONFIG environment variable to the"
  5922. echo "*** full path to libgnutls-config."
  5923. else
  5924. if test -f conf.libgnutlstest ; then
  5925. :
  5926. else
  5927. echo "*** Could not run libgnutls test program, checking why..."
  5928. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  5929. LIBS="$LIBS $LIBGNUTLS_LIBS"
  5930. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5931. /* end confdefs.h. */
  5932. #include <stdio.h>
  5933. #include <stdlib.h>
  5934. #include <string.h>
  5935. #include <gnutls/gnutls.h>
  5936. int
  5937. main ()
  5938. {
  5939. return !!gnutls_check_version(NULL);
  5940. ;
  5941. return 0;
  5942. }
  5943. _ACEOF
  5944. if ac_fn_cxx_try_link "$LINENO"; then :
  5945. echo "*** The test program compiled, but did not run. This usually means"
  5946. echo "*** that the run-time linker is not finding LIBGNUTLS or finding the wrong"
  5947. echo "*** version of LIBGNUTLS. If it is not finding LIBGNUTLS, you'll need to set your"
  5948. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  5949. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  5950. echo "*** is required on your system"
  5951. echo "***"
  5952. echo "*** If you have an old version installed, it is best to remove it, although"
  5953. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  5954. echo "***"
  5955. else
  5956. echo "*** The test program failed to compile or link. See the file config.log for the"
  5957. echo "*** exact error that occured. This usually means LIBGNUTLS was incorrectly installed"
  5958. echo "*** or that you have moved LIBGNUTLS since it was installed. In the latter case, you"
  5959. echo "*** may want to edit the libgnutls-config script: $LIBGNUTLS_CONFIG"
  5960. fi
  5961. rm -f core conftest.err conftest.$ac_objext \
  5962. conftest$ac_exeext conftest.$ac_ext
  5963. CFLAGS="$ac_save_CFLAGS"
  5964. LIBS="$ac_save_LIBS"
  5965. fi
  5966. fi
  5967. LIBGNUTLS_CFLAGS=""
  5968. LIBGNUTLS_LIBS=""
  5969. :
  5970. fi
  5971. rm -f conf.libgnutlstest
  5972. fi
  5973. if test "x$have_libgnutls" = "xyes"; then
  5974. $as_echo "#define HAVE_LIBGNUTLS 1" >>confdefs.h
  5975. elif test "x$with_gnutls_requested" = "xyes"; then
  5976. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5977. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5978. as_fn_error $? "gnutls is requested but not found in the system.
  5979. See \`config.log' for more details" "$LINENO" 5 ; }
  5980. fi
  5981. fi
  5982. if test "x$have_libgnutls" = "xyes"; then
  5983. # Check whether --with-libgcrypt-prefix was given.
  5984. if test "${with_libgcrypt_prefix+set}" = set; then :
  5985. withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
  5986. else
  5987. libgcrypt_config_prefix=""
  5988. fi
  5989. if test x$libgcrypt_config_prefix != x ; then
  5990. if test x${LIBGCRYPT_CONFIG+set} != xset ; then
  5991. LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
  5992. fi
  5993. fi
  5994. # Extract the first word of "libgcrypt-config", so it can be a program name with args.
  5995. set dummy libgcrypt-config; ac_word=$2
  5996. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5997. $as_echo_n "checking for $ac_word... " >&6; }
  5998. if test "${ac_cv_path_LIBGCRYPT_CONFIG+set}" = set; then :
  5999. $as_echo_n "(cached) " >&6
  6000. else
  6001. case $LIBGCRYPT_CONFIG in
  6002. [\\/]* | ?:[\\/]*)
  6003. ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
  6004. ;;
  6005. *)
  6006. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6007. for as_dir in $PATH
  6008. do
  6009. IFS=$as_save_IFS
  6010. test -z "$as_dir" && as_dir=.
  6011. for ac_exec_ext in '' $ac_executable_extensions; do
  6012. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6013. ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  6014. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6015. break 2
  6016. fi
  6017. done
  6018. done
  6019. IFS=$as_save_IFS
  6020. test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
  6021. ;;
  6022. esac
  6023. fi
  6024. LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
  6025. if test -n "$LIBGCRYPT_CONFIG"; then
  6026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT_CONFIG" >&5
  6027. $as_echo "$LIBGCRYPT_CONFIG" >&6; }
  6028. else
  6029. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6030. $as_echo "no" >&6; }
  6031. fi
  6032. tmp=1.2.2
  6033. if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
  6034. req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
  6035. min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
  6036. else
  6037. req_libgcrypt_api=0
  6038. min_libgcrypt_version="$tmp"
  6039. fi
  6040. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
  6041. $as_echo_n "checking for LIBGCRYPT - version >= $min_libgcrypt_version... " >&6; }
  6042. ok=no
  6043. if test "$LIBGCRYPT_CONFIG" != "no" ; then
  6044. req_major=`echo $min_libgcrypt_version | \
  6045. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
  6046. req_minor=`echo $min_libgcrypt_version | \
  6047. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
  6048. req_micro=`echo $min_libgcrypt_version | \
  6049. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
  6050. libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
  6051. major=`echo $libgcrypt_config_version | \
  6052. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
  6053. minor=`echo $libgcrypt_config_version | \
  6054. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
  6055. micro=`echo $libgcrypt_config_version | \
  6056. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
  6057. if test "$major" -gt "$req_major"; then
  6058. ok=yes
  6059. else
  6060. if test "$major" -eq "$req_major"; then
  6061. if test "$minor" -gt "$req_minor"; then
  6062. ok=yes
  6063. else
  6064. if test "$minor" -eq "$req_minor"; then
  6065. if test "$micro" -ge "$req_micro"; then
  6066. ok=yes
  6067. fi
  6068. fi
  6069. fi
  6070. fi
  6071. fi
  6072. fi
  6073. if test $ok = yes; then
  6074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($libgcrypt_config_version)" >&5
  6075. $as_echo "yes ($libgcrypt_config_version)" >&6; }
  6076. else
  6077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6078. $as_echo "no" >&6; }
  6079. fi
  6080. if test $ok = yes; then
  6081. # If we have a recent libgcrypt, we should also check that the
  6082. # API is compatible
  6083. if test "$req_libgcrypt_api" -gt 0 ; then
  6084. tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
  6085. if test "$tmp" -gt 0 ; then
  6086. { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGCRYPT API version" >&5
  6087. $as_echo_n "checking LIBGCRYPT API version... " >&6; }
  6088. if test "$req_libgcrypt_api" -eq "$tmp" ; then
  6089. { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
  6090. $as_echo "okay" >&6; }
  6091. else
  6092. ok=no
  6093. { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5
  6094. $as_echo "does not match. want=$req_libgcrypt_api got=$tmp" >&6; }
  6095. fi
  6096. fi
  6097. fi
  6098. fi
  6099. if test $ok = yes; then
  6100. LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
  6101. LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
  6102. have_libgcrypt=yes
  6103. else
  6104. LIBGCRYPT_CFLAGS=""
  6105. LIBGCRYPT_LIBS=""
  6106. :
  6107. fi
  6108. if test "x$have_libgcrypt" = "xyes"; then
  6109. $as_echo "#define HAVE_LIBGCRYPT 1" >>confdefs.h
  6110. fi
  6111. fi
  6112. if test "x$with_openssl" = "xyes" && test "x$have_libgnutls" != "xyes"; then
  6113. # Check whether --with-openssl-prefix was given.
  6114. if test "${with_openssl_prefix+set}" = set; then :
  6115. withval=$with_openssl_prefix; openssl_prefix=$withval
  6116. else
  6117. openssl_prefix=""
  6118. fi
  6119. if test "x$openssl_prefix" = "x"; then
  6120. openssl_prefix="/usr/local"
  6121. fi
  6122. LIBS_save=$LIBS
  6123. CPPFLAGS_save=$CPPFLAGS
  6124. PKG_CONFIG="$openssl_prefix/bin/pkg-config"
  6125. if test -x $PKG_CONFIG; then
  6126. { $as_echo "$as_me:${as_lineno-$LINENO}: checking checking availability of openssl using pkg-config" >&5
  6127. $as_echo_n "checking checking availability of openssl using pkg-config... " >&6; }
  6128. $PKG_CONFIG --exists openssl
  6129. if test "$?" = "0"; then
  6130. # Use pkg-config to detect LIBS and CFLAGS
  6131. OPENSSL_LIBS=`$PKG_CONFIG --libs openssl`
  6132. OPENSSL_CFLAGS=`$PKG_CONFIG --cflags openssl`
  6133. LIBS="$OPENSSL_LIBS $LIBS"
  6134. CPPFLAGS="$OPENSSL_CFLAGS $CPPFLAGS"
  6135. have_openssl=yes
  6136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6137. $as_echo "yes" >&6; }
  6138. else
  6139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6140. $as_echo "no" >&6; }
  6141. fi
  6142. fi
  6143. if test "x$have_openssl" != "xyes"; then
  6144. openssl_prefix_lib=$openssl_prefix/lib
  6145. openssl_prefix_include=$openssl_prefix/include
  6146. LIBS="-L$openssl_prefix_lib $LIBS"
  6147. CPPFLAGS="-I$openssl_prefix_include $CPPFLAGS"
  6148. # First check libcrypto, because libssl may depend on it
  6149. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lcrypto" >&5
  6150. $as_echo_n "checking for main in -lcrypto... " >&6; }
  6151. if test "${ac_cv_lib_crypto_main+set}" = set; then :
  6152. $as_echo_n "(cached) " >&6
  6153. else
  6154. ac_check_lib_save_LIBS=$LIBS
  6155. LIBS="-lcrypto $LIBS"
  6156. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6157. /* end confdefs.h. */
  6158. int
  6159. main ()
  6160. {
  6161. return main ();
  6162. ;
  6163. return 0;
  6164. }
  6165. _ACEOF
  6166. if ac_fn_cxx_try_link "$LINENO"; then :
  6167. ac_cv_lib_crypto_main=yes
  6168. else
  6169. ac_cv_lib_crypto_main=no
  6170. fi
  6171. rm -f core conftest.err conftest.$ac_objext \
  6172. conftest$ac_exeext conftest.$ac_ext
  6173. LIBS=$ac_check_lib_save_LIBS
  6174. fi
  6175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_main" >&5
  6176. $as_echo "$ac_cv_lib_crypto_main" >&6; }
  6177. if test "x$ac_cv_lib_crypto_main" = x""yes; then :
  6178. have_openssl=yes; LIBS="-lcrypto $LIBS"
  6179. fi
  6180. if test "x$have_openssl" = "xyes"; then
  6181. have_openssl=no
  6182. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_library_init in -lssl" >&5
  6183. $as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
  6184. if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then :
  6185. $as_echo_n "(cached) " >&6
  6186. else
  6187. ac_check_lib_save_LIBS=$LIBS
  6188. LIBS="-lssl $LIBS"
  6189. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6190. /* end confdefs.h. */
  6191. /* Override any GCC internal prototype to avoid an error.
  6192. Use char because int might match the return type of a GCC
  6193. builtin and then its argument prototype would still apply. */
  6194. #ifdef __cplusplus
  6195. extern "C"
  6196. #endif
  6197. char SSL_library_init ();
  6198. int
  6199. main ()
  6200. {
  6201. return SSL_library_init ();
  6202. ;
  6203. return 0;
  6204. }
  6205. _ACEOF
  6206. if ac_fn_cxx_try_link "$LINENO"; then :
  6207. ac_cv_lib_ssl_SSL_library_init=yes
  6208. else
  6209. ac_cv_lib_ssl_SSL_library_init=no
  6210. fi
  6211. rm -f core conftest.err conftest.$ac_objext \
  6212. conftest$ac_exeext conftest.$ac_ext
  6213. LIBS=$ac_check_lib_save_LIBS
  6214. fi
  6215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_library_init" >&5
  6216. $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
  6217. if test "x$ac_cv_lib_ssl_SSL_library_init" = x""yes; then :
  6218. have_openssl=yes LIBS="-lssl $LIBS"
  6219. fi
  6220. if test "x$have_openssl" = "xyes"; then
  6221. OPENSSL_LIBS="-L$openssl_prefix_lib -lssl -lcrypto"
  6222. OPENSSL_CFLAGS="-I$openssl_prefix_include"
  6223. fi
  6224. fi
  6225. fi
  6226. if test "x$have_openssl" = "xyes"; then
  6227. $as_echo "#define HAVE_LIBSSL 1" >>confdefs.h
  6228. # check whether EVP_DigestInit_ex exists. Old openssl doesn't have it.
  6229. for ac_func in EVP_DigestInit_ex
  6230. do :
  6231. ac_fn_cxx_check_func "$LINENO" "EVP_DigestInit_ex" "ac_cv_func_EVP_DigestInit_ex"
  6232. if test "x$ac_cv_func_EVP_DigestInit_ex" = x""yes; then :
  6233. cat >>confdefs.h <<_ACEOF
  6234. #define HAVE_EVP_DIGESTINIT_EX 1
  6235. _ACEOF
  6236. have_digestinit_ex=yes
  6237. fi
  6238. done
  6239. if test "x$have_digestinit_ex" = "x"; then
  6240. $as_echo "#define HAVE_OLD_LIBSSL 1" >>confdefs.h
  6241. fi
  6242. # search for sha224 support
  6243. for ac_func in EVP_sha224
  6244. do :
  6245. ac_fn_cxx_check_func "$LINENO" "EVP_sha224" "ac_cv_func_EVP_sha224"
  6246. if test "x$ac_cv_func_EVP_sha224" = x""yes; then :
  6247. cat >>confdefs.h <<_ACEOF
  6248. #define HAVE_EVP_SHA224 1
  6249. _ACEOF
  6250. fi
  6251. done
  6252. # search for sha256 support
  6253. for ac_func in EVP_sha256
  6254. do :
  6255. ac_fn_cxx_check_func "$LINENO" "EVP_sha256" "ac_cv_func_EVP_sha256"
  6256. if test "x$ac_cv_func_EVP_sha256" = x""yes; then :
  6257. cat >>confdefs.h <<_ACEOF
  6258. #define HAVE_EVP_SHA256 1
  6259. _ACEOF
  6260. fi
  6261. done
  6262. # search for sha384 support
  6263. for ac_func in EVP_sha384
  6264. do :
  6265. ac_fn_cxx_check_func "$LINENO" "EVP_sha384" "ac_cv_func_EVP_sha384"
  6266. if test "x$ac_cv_func_EVP_sha384" = x""yes; then :
  6267. cat >>confdefs.h <<_ACEOF
  6268. #define HAVE_EVP_SHA384 1
  6269. _ACEOF
  6270. fi
  6271. done
  6272. # search for sha512 support
  6273. for ac_func in EVP_sha512
  6274. do :
  6275. ac_fn_cxx_check_func "$LINENO" "EVP_sha512" "ac_cv_func_EVP_sha512"
  6276. if test "x$ac_cv_func_EVP_sha512" = x""yes; then :
  6277. cat >>confdefs.h <<_ACEOF
  6278. #define HAVE_EVP_SHA512 1
  6279. _ACEOF
  6280. fi
  6281. done
  6282. fi
  6283. LIBS=$LIBS_save
  6284. CPPFLAGS=$CPPFLAGS_save
  6285. if test "x$have_openssl" != "xyes" &&
  6286. test "x$with_openssl_requested" = "xyes"; then
  6287. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6288. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6289. as_fn_error $? "openssl is requested but not found in the system.
  6290. See \`config.log' for more details" "$LINENO" 5 ; }
  6291. fi
  6292. fi
  6293. if test "x$with_libcares" = "xyes"; then
  6294. # Check whether --with-libcares-prefix was given.
  6295. if test "${with_libcares_prefix+set}" = set; then :
  6296. withval=$with_libcares_prefix; libcares_prefix=$withval
  6297. else
  6298. libcares_prefix=""
  6299. fi
  6300. if test "x$libcares_prefix" = "x"; then
  6301. libcares_prefix="/usr"
  6302. fi
  6303. libcares_prefix_lib=$libcares_prefix/lib
  6304. libcares_prefix_include=$libcares_prefix/include
  6305. LIBS_save=$LIBS
  6306. CPPFLAGS_save=$CPPFLAGS
  6307. LIBS="-L$libcares_prefix_lib $LIBS"
  6308. CPPFLAGS="-I$libcares_prefix_include -Wall $CPPFLAGS"
  6309. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ares_init in -lcares" >&5
  6310. $as_echo_n "checking for ares_init in -lcares... " >&6; }
  6311. if test "${ac_cv_lib_cares_ares_init+set}" = set; then :
  6312. $as_echo_n "(cached) " >&6
  6313. else
  6314. ac_check_lib_save_LIBS=$LIBS
  6315. LIBS="-lcares $LIBS"
  6316. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6317. /* end confdefs.h. */
  6318. /* Override any GCC internal prototype to avoid an error.
  6319. Use char because int might match the return type of a GCC
  6320. builtin and then its argument prototype would still apply. */
  6321. #ifdef __cplusplus
  6322. extern "C"
  6323. #endif
  6324. char ares_init ();
  6325. int
  6326. main ()
  6327. {
  6328. return ares_init ();
  6329. ;
  6330. return 0;
  6331. }
  6332. _ACEOF
  6333. if ac_fn_cxx_try_link "$LINENO"; then :
  6334. ac_cv_lib_cares_ares_init=yes
  6335. else
  6336. ac_cv_lib_cares_ares_init=no
  6337. fi
  6338. rm -f core conftest.err conftest.$ac_objext \
  6339. conftest$ac_exeext conftest.$ac_ext
  6340. LIBS=$ac_check_lib_save_LIBS
  6341. fi
  6342. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cares_ares_init" >&5
  6343. $as_echo "$ac_cv_lib_cares_ares_init" >&6; }
  6344. if test "x$ac_cv_lib_cares_ares_init" = x""yes; then :
  6345. have_libcares=yes
  6346. fi
  6347. if test "x$have_libcares" != "xyes"; then
  6348. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ares_init in -lcares" >&5
  6349. $as_echo_n "checking for ares_init in -lcares... " >&6; }
  6350. if test "${ac_cv_lib_cares_ares_init+set}" = set; then :
  6351. $as_echo_n "(cached) " >&6
  6352. else
  6353. ac_check_lib_save_LIBS=$LIBS
  6354. LIBS="-lcares -lrt $LIBS"
  6355. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6356. /* end confdefs.h. */
  6357. /* Override any GCC internal prototype to avoid an error.
  6358. Use char because int might match the return type of a GCC
  6359. builtin and then its argument prototype would still apply. */
  6360. #ifdef __cplusplus
  6361. extern "C"
  6362. #endif
  6363. char ares_init ();
  6364. int
  6365. main ()
  6366. {
  6367. return ares_init ();
  6368. ;
  6369. return 0;
  6370. }
  6371. _ACEOF
  6372. if ac_fn_cxx_try_link "$LINENO"; then :
  6373. ac_cv_lib_cares_ares_init=yes
  6374. else
  6375. ac_cv_lib_cares_ares_init=no
  6376. fi
  6377. rm -f core conftest.err conftest.$ac_objext \
  6378. conftest$ac_exeext conftest.$ac_ext
  6379. LIBS=$ac_check_lib_save_LIBS
  6380. fi
  6381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cares_ares_init" >&5
  6382. $as_echo "$ac_cv_lib_cares_ares_init" >&6; }
  6383. if test "x$ac_cv_lib_cares_ares_init" = x""yes; then :
  6384. have_libcares=yes need_librt=yes
  6385. fi
  6386. fi
  6387. if test "x$have_libcares" = "xyes"; then
  6388. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ares_host_callback accepts timeouts(c-ares >= 1.5)" >&5
  6389. $as_echo_n "checking whether ares_host_callback accepts timeouts(c-ares >= 1.5)... " >&6; }
  6390. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6391. /* end confdefs.h. */
  6392. #include <ares.h>
  6393. void callback(void* arg, int status, int timeouts, struct hostent* host);
  6394. int
  6395. main ()
  6396. {
  6397. ares_gethostbyname((ares_channel)0, "foo", 0, callback, 0);
  6398. ;
  6399. return 0;
  6400. }
  6401. _ACEOF
  6402. if ac_fn_cxx_try_compile "$LINENO"; then :
  6403. have_libcares1_5=yes
  6404. else
  6405. have_libcares1_5=no
  6406. fi
  6407. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_libcares1_5" >&5
  6409. $as_echo "$have_libcares1_5" >&6; }
  6410. if test "x$have_libcares1_5" = "xyes"; then
  6411. $as_echo "#define HAVE_LIBCARES1_5 1" >>confdefs.h
  6412. fi
  6413. $as_echo "#define HAVE_LIBCARES 1" >>confdefs.h
  6414. LIBCARES_LIBS="-L$libcares_prefix_lib -lcares"
  6415. if test "x$need_librt" = "xyes"; then
  6416. LIBCARES_LIBS="$LIBCARES_LIBS -lrt"
  6417. fi
  6418. LIBCARES_CPPFLAGS="-I$libcares_prefix_include"
  6419. fi
  6420. LIBS=$LIBS_save
  6421. CPPFLAGS=$CPPFLAGS_save
  6422. if test "x$have_libcares" != "xyes" &&
  6423. test "x$with_libcares_requested" = "xyes"; then
  6424. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6425. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6426. as_fn_error $? "libcares is requested but not found in the system.
  6427. See \`config.log' for more details" "$LINENO" 5 ; }
  6428. fi
  6429. fi
  6430. # Check availability of libz
  6431. if test "x$with_libz" = "xyes"; then
  6432. # Check whether --with-libz-prefix was given.
  6433. if test "${with_libz_prefix+set}" = set; then :
  6434. withval=$with_libz_prefix; libz_prefix=$withval
  6435. else
  6436. libz_prefix=""
  6437. fi
  6438. if test "x$libz_prefix" = "x"; then
  6439. libz_prefix="/usr"
  6440. fi
  6441. libz_prefix_lib=$libz_prefix/lib
  6442. libz_prefix_include=$libz_prefix/include
  6443. LIBS_save=$LIBS
  6444. CPPFLAGS_save=$CPPFLAGS
  6445. LIBS="-L$libz_prefix_lib $LIBS"
  6446. CPPFLAGS="-I$libz_prefix_include $CPPFLAGS"
  6447. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5
  6448. $as_echo_n "checking for zlibVersion in -lz... " >&6; }
  6449. if test "${ac_cv_lib_z_zlibVersion+set}" = set; then :
  6450. $as_echo_n "(cached) " >&6
  6451. else
  6452. ac_check_lib_save_LIBS=$LIBS
  6453. LIBS="-lz $LIBS"
  6454. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6455. /* end confdefs.h. */
  6456. /* Override any GCC internal prototype to avoid an error.
  6457. Use char because int might match the return type of a GCC
  6458. builtin and then its argument prototype would still apply. */
  6459. #ifdef __cplusplus
  6460. extern "C"
  6461. #endif
  6462. char zlibVersion ();
  6463. int
  6464. main ()
  6465. {
  6466. return zlibVersion ();
  6467. ;
  6468. return 0;
  6469. }
  6470. _ACEOF
  6471. if ac_fn_cxx_try_link "$LINENO"; then :
  6472. ac_cv_lib_z_zlibVersion=yes
  6473. else
  6474. ac_cv_lib_z_zlibVersion=no
  6475. fi
  6476. rm -f core conftest.err conftest.$ac_objext \
  6477. conftest$ac_exeext conftest.$ac_ext
  6478. LIBS=$ac_check_lib_save_LIBS
  6479. fi
  6480. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5
  6481. $as_echo "$ac_cv_lib_z_zlibVersion" >&6; }
  6482. if test "x$ac_cv_lib_z_zlibVersion" = x""yes; then :
  6483. have_libz=yes
  6484. fi
  6485. if test "x$have_libz" = "xyes"; then
  6486. $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
  6487. LIBZ_LIBS="-L$libz_prefix_lib -lz"
  6488. LIBZ_CPPFLAGS="-I$libz_prefix_include"
  6489. fi
  6490. LIBS=$LIBS_save
  6491. CPPFLAGS=$CPPFLAGS_save
  6492. if test "x$have_libz" != "xyes" && test "x$with_libz_requested" = "xyes"; then
  6493. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6494. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6495. as_fn_error $? "libz is requested but not found in the system.
  6496. See \`config.log' for more details" "$LINENO" 5 ; }
  6497. fi
  6498. fi
  6499. # Define variables based on the result of the checks for libraries.
  6500. if test "x$have_libgnutls" = "xyes" || test "x$have_openssl" = "xyes"; then
  6501. $as_echo "#define ENABLE_SSL 1" >>confdefs.h
  6502. if true; then
  6503. ENABLE_SSL_TRUE=
  6504. ENABLE_SSL_FALSE='#'
  6505. else
  6506. ENABLE_SSL_TRUE='#'
  6507. ENABLE_SSL_FALSE=
  6508. fi
  6509. else
  6510. if false; then
  6511. ENABLE_SSL_TRUE=
  6512. ENABLE_SSL_FALSE='#'
  6513. else
  6514. ENABLE_SSL_TRUE='#'
  6515. ENABLE_SSL_FALSE=
  6516. fi
  6517. fi
  6518. if test "x$have_libgnutls" = "xyes" ; then
  6519. HAVE_LIBGNUTLS_TRUE=
  6520. HAVE_LIBGNUTLS_FALSE='#'
  6521. else
  6522. HAVE_LIBGNUTLS_TRUE='#'
  6523. HAVE_LIBGNUTLS_FALSE=
  6524. fi
  6525. if test "x$have_openssl" = "xyes" ; then
  6526. HAVE_LIBSSL_TRUE=
  6527. HAVE_LIBSSL_FALSE='#'
  6528. else
  6529. HAVE_LIBSSL_TRUE='#'
  6530. HAVE_LIBSSL_FALSE=
  6531. fi
  6532. if test "x$have_libgcrypt" = "xyes" || test "x$have_openssl" = "xyes"; then
  6533. $as_echo "#define ENABLE_MESSAGE_DIGEST 1" >>confdefs.h
  6534. if true; then
  6535. ENABLE_MESSAGE_DIGEST_TRUE=
  6536. ENABLE_MESSAGE_DIGEST_FALSE='#'
  6537. else
  6538. ENABLE_MESSAGE_DIGEST_TRUE='#'
  6539. ENABLE_MESSAGE_DIGEST_FALSE=
  6540. fi
  6541. enable_message_digest=yes
  6542. else
  6543. if false; then
  6544. ENABLE_MESSAGE_DIGEST_TRUE=
  6545. ENABLE_MESSAGE_DIGEST_FALSE='#'
  6546. else
  6547. ENABLE_MESSAGE_DIGEST_TRUE='#'
  6548. ENABLE_MESSAGE_DIGEST_FALSE=
  6549. fi
  6550. fi
  6551. if test "x$enable_bittorrent" = "xyes" &&
  6552. test "x$enable_message_digest" = "xyes"; then
  6553. $as_echo "#define ENABLE_BITTORRENT 1" >>confdefs.h
  6554. if true; then
  6555. ENABLE_BITTORRENT_TRUE=
  6556. ENABLE_BITTORRENT_FALSE='#'
  6557. else
  6558. ENABLE_BITTORRENT_TRUE='#'
  6559. ENABLE_BITTORRENT_FALSE=
  6560. fi
  6561. else
  6562. if test "x$enable_bittorrent_requested" = "xyes"; then
  6563. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6564. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6565. as_fn_error $? "bittorrent is requested but cannot be enabled with current\
  6566. configuration.\
  6567. Make sure that dependent libraries are installed and configure script options\
  6568. are correct.
  6569. See \`config.log' for more details" "$LINENO" 5 ; }
  6570. fi
  6571. enable_bittorrent=no
  6572. if false; then
  6573. ENABLE_BITTORRENT_TRUE=
  6574. ENABLE_BITTORRENT_FALSE='#'
  6575. else
  6576. ENABLE_BITTORRENT_TRUE='#'
  6577. ENABLE_BITTORRENT_FALSE=
  6578. fi
  6579. fi
  6580. if (test "x$have_libxml2" = "xyes" || test "x$have_libexpat" = "xyes") &&
  6581. test "x$enable_metalink" = "xyes"; then
  6582. $as_echo "#define ENABLE_METALINK 1" >>confdefs.h
  6583. if true; then
  6584. ENABLE_METALINK_TRUE=
  6585. ENABLE_METALINK_FALSE='#'
  6586. else
  6587. ENABLE_METALINK_TRUE='#'
  6588. ENABLE_METALINK_FALSE=
  6589. fi
  6590. else
  6591. if test "x$enable_metalink_requested" = "xyes"; then
  6592. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6593. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6594. as_fn_error $? "metalink is requested but cannot be enabled with current\
  6595. configuration.\
  6596. Make sure that dependent libraries are installed and configure script options\
  6597. are correct.
  6598. See \`config.log' for more details" "$LINENO" 5 ; }
  6599. fi
  6600. enable_metalink=no
  6601. if false; then
  6602. ENABLE_METALINK_TRUE=
  6603. ENABLE_METALINK_FALSE='#'
  6604. else
  6605. ENABLE_METALINK_TRUE='#'
  6606. ENABLE_METALINK_FALSE=
  6607. fi
  6608. fi
  6609. if test "x$enable_metalink" = "xyes" && test "x$have_libxml2" = "xyes"; then
  6610. ENABLE_METALINK_LIBXML2_TRUE=
  6611. ENABLE_METALINK_LIBXML2_FALSE='#'
  6612. else
  6613. ENABLE_METALINK_LIBXML2_TRUE='#'
  6614. ENABLE_METALINK_LIBXML2_FALSE=
  6615. fi
  6616. if test "x$enable_metalink" = "xyes" && test "x$have_libexpat" = "xyes"; then
  6617. ENABLE_METALINK_LIBEXPAT_TRUE=
  6618. ENABLE_METALINK_LIBEXPAT_FALSE='#'
  6619. else
  6620. ENABLE_METALINK_LIBEXPAT_TRUE='#'
  6621. ENABLE_METALINK_LIBEXPAT_FALSE=
  6622. fi
  6623. if test "x$have_libxml2" = "xyes" || test "x$have_libexpat" = "xyes"; then
  6624. enable_xml_rpc=yes
  6625. fi
  6626. if test "x$enable_xml_rpc" = "xyes"; then
  6627. $as_echo "#define ENABLE_XML_RPC 1" >>confdefs.h
  6628. fi
  6629. if test "x$enable_xml_rpc" = "xyes"; then
  6630. ENABLE_XML_RPC_TRUE=
  6631. ENABLE_XML_RPC_FALSE='#'
  6632. else
  6633. ENABLE_XML_RPC_TRUE='#'
  6634. ENABLE_XML_RPC_FALSE=
  6635. fi
  6636. if test "x$have_libxml2" = "xyes"; then
  6637. HAVE_LIBXML2_TRUE=
  6638. HAVE_LIBXML2_FALSE='#'
  6639. else
  6640. HAVE_LIBXML2_TRUE='#'
  6641. HAVE_LIBXML2_FALSE=
  6642. fi
  6643. if test "x$have_libexpat" = "xyes"; then
  6644. HAVE_LIBEXPAT_TRUE=
  6645. HAVE_LIBEXPAT_FALSE='#'
  6646. else
  6647. HAVE_LIBEXPAT_TRUE='#'
  6648. HAVE_LIBEXPAT_FALSE=
  6649. fi
  6650. if test "x$have_libcares" = "xyes"; then
  6651. $as_echo "#define ENABLE_ASYNC_DNS 1" >>confdefs.h
  6652. if true; then
  6653. ENABLE_ASYNC_DNS_TRUE=
  6654. ENABLE_ASYNC_DNS_FALSE='#'
  6655. else
  6656. ENABLE_ASYNC_DNS_TRUE='#'
  6657. ENABLE_ASYNC_DNS_FALSE=
  6658. fi
  6659. else
  6660. if false; then
  6661. ENABLE_ASYNC_DNS_TRUE=
  6662. ENABLE_ASYNC_DNS_FALSE='#'
  6663. else
  6664. ENABLE_ASYNC_DNS_TRUE='#'
  6665. ENABLE_ASYNC_DNS_FALSE=
  6666. fi
  6667. fi
  6668. # Set conditional for libz
  6669. if test "x$have_libz" = "xyes"; then
  6670. HAVE_LIBZ_TRUE=
  6671. HAVE_LIBZ_FALSE='#'
  6672. else
  6673. HAVE_LIBZ_TRUE='#'
  6674. HAVE_LIBZ_FALSE=
  6675. fi
  6676. # Set conditional for sqlite3
  6677. if test "x$have_sqlite3" = "xyes"; then
  6678. HAVE_SQLITE3_TRUE=
  6679. HAVE_SQLITE3_FALSE='#'
  6680. else
  6681. HAVE_SQLITE3_TRUE='#'
  6682. HAVE_SQLITE3_FALSE=
  6683. fi
  6684. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
  6685. $as_echo_n "checking for library containing clock_gettime... " >&6; }
  6686. if test "${ac_cv_search_clock_gettime+set}" = set; then :
  6687. $as_echo_n "(cached) " >&6
  6688. else
  6689. ac_func_search_save_LIBS=$LIBS
  6690. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6691. /* end confdefs.h. */
  6692. /* Override any GCC internal prototype to avoid an error.
  6693. Use char because int might match the return type of a GCC
  6694. builtin and then its argument prototype would still apply. */
  6695. #ifdef __cplusplus
  6696. extern "C"
  6697. #endif
  6698. char clock_gettime ();
  6699. int
  6700. main ()
  6701. {
  6702. return clock_gettime ();
  6703. ;
  6704. return 0;
  6705. }
  6706. _ACEOF
  6707. for ac_lib in '' rt; do
  6708. if test -z "$ac_lib"; then
  6709. ac_res="none required"
  6710. else
  6711. ac_res=-l$ac_lib
  6712. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  6713. fi
  6714. if ac_fn_cxx_try_link "$LINENO"; then :
  6715. ac_cv_search_clock_gettime=$ac_res
  6716. fi
  6717. rm -f core conftest.err conftest.$ac_objext \
  6718. conftest$ac_exeext
  6719. if test "${ac_cv_search_clock_gettime+set}" = set; then :
  6720. break
  6721. fi
  6722. done
  6723. if test "${ac_cv_search_clock_gettime+set}" = set; then :
  6724. else
  6725. ac_cv_search_clock_gettime=no
  6726. fi
  6727. rm conftest.$ac_ext
  6728. LIBS=$ac_func_search_save_LIBS
  6729. fi
  6730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
  6731. $as_echo "$ac_cv_search_clock_gettime" >&6; }
  6732. ac_res=$ac_cv_search_clock_gettime
  6733. if test "$ac_res" != no; then :
  6734. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  6735. fi
  6736. case "$target" in
  6737. *solaris*)
  6738. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
  6739. $as_echo_n "checking for library containing getaddrinfo... " >&6; }
  6740. if test "${ac_cv_search_getaddrinfo+set}" = set; then :
  6741. $as_echo_n "(cached) " >&6
  6742. else
  6743. ac_func_search_save_LIBS=$LIBS
  6744. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6745. /* end confdefs.h. */
  6746. /* Override any GCC internal prototype to avoid an error.
  6747. Use char because int might match the return type of a GCC
  6748. builtin and then its argument prototype would still apply. */
  6749. #ifdef __cplusplus
  6750. extern "C"
  6751. #endif
  6752. char getaddrinfo ();
  6753. int
  6754. main ()
  6755. {
  6756. return getaddrinfo ();
  6757. ;
  6758. return 0;
  6759. }
  6760. _ACEOF
  6761. for ac_lib in '' nsl socket; do
  6762. if test -z "$ac_lib"; then
  6763. ac_res="none required"
  6764. else
  6765. ac_res=-l$ac_lib
  6766. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  6767. fi
  6768. if ac_fn_cxx_try_link "$LINENO"; then :
  6769. ac_cv_search_getaddrinfo=$ac_res
  6770. fi
  6771. rm -f core conftest.err conftest.$ac_objext \
  6772. conftest$ac_exeext
  6773. if test "${ac_cv_search_getaddrinfo+set}" = set; then :
  6774. break
  6775. fi
  6776. done
  6777. if test "${ac_cv_search_getaddrinfo+set}" = set; then :
  6778. else
  6779. ac_cv_search_getaddrinfo=no
  6780. fi
  6781. rm conftest.$ac_ext
  6782. LIBS=$ac_func_search_save_LIBS
  6783. fi
  6784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
  6785. $as_echo "$ac_cv_search_getaddrinfo" >&6; }
  6786. ac_res=$ac_cv_search_getaddrinfo
  6787. if test "$ac_res" != no; then :
  6788. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  6789. fi
  6790. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
  6791. $as_echo_n "checking for library containing inet_aton... " >&6; }
  6792. if test "${ac_cv_search_inet_aton+set}" = set; then :
  6793. $as_echo_n "(cached) " >&6
  6794. else
  6795. ac_func_search_save_LIBS=$LIBS
  6796. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6797. /* end confdefs.h. */
  6798. /* Override any GCC internal prototype to avoid an error.
  6799. Use char because int might match the return type of a GCC
  6800. builtin and then its argument prototype would still apply. */
  6801. #ifdef __cplusplus
  6802. extern "C"
  6803. #endif
  6804. char inet_aton ();
  6805. int
  6806. main ()
  6807. {
  6808. return inet_aton ();
  6809. ;
  6810. return 0;
  6811. }
  6812. _ACEOF
  6813. for ac_lib in '' nsl socket; do
  6814. if test -z "$ac_lib"; then
  6815. ac_res="none required"
  6816. else
  6817. ac_res=-l$ac_lib
  6818. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  6819. fi
  6820. if ac_fn_cxx_try_link "$LINENO"; then :
  6821. ac_cv_search_inet_aton=$ac_res
  6822. fi
  6823. rm -f core conftest.err conftest.$ac_objext \
  6824. conftest$ac_exeext
  6825. if test "${ac_cv_search_inet_aton+set}" = set; then :
  6826. break
  6827. fi
  6828. done
  6829. if test "${ac_cv_search_inet_aton+set}" = set; then :
  6830. else
  6831. ac_cv_search_inet_aton=no
  6832. fi
  6833. rm conftest.$ac_ext
  6834. LIBS=$ac_func_search_save_LIBS
  6835. fi
  6836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
  6837. $as_echo "$ac_cv_search_inet_aton" >&6; }
  6838. ac_res=$ac_cv_search_inet_aton
  6839. if test "$ac_res" != no; then :
  6840. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  6841. fi
  6842. ;;
  6843. esac
  6844. # Checks for header files.
  6845. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  6846. # for constant arguments. Useless!
  6847. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  6848. $as_echo_n "checking for working alloca.h... " >&6; }
  6849. if test "${ac_cv_working_alloca_h+set}" = set; then :
  6850. $as_echo_n "(cached) " >&6
  6851. else
  6852. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6853. /* end confdefs.h. */
  6854. #include <alloca.h>
  6855. int
  6856. main ()
  6857. {
  6858. char *p = (char *) alloca (2 * sizeof (int));
  6859. if (p) return 0;
  6860. ;
  6861. return 0;
  6862. }
  6863. _ACEOF
  6864. if ac_fn_cxx_try_link "$LINENO"; then :
  6865. ac_cv_working_alloca_h=yes
  6866. else
  6867. ac_cv_working_alloca_h=no
  6868. fi
  6869. rm -f core conftest.err conftest.$ac_objext \
  6870. conftest$ac_exeext conftest.$ac_ext
  6871. fi
  6872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  6873. $as_echo "$ac_cv_working_alloca_h" >&6; }
  6874. if test $ac_cv_working_alloca_h = yes; then
  6875. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  6876. fi
  6877. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  6878. $as_echo_n "checking for alloca... " >&6; }
  6879. if test "${ac_cv_func_alloca_works+set}" = set; then :
  6880. $as_echo_n "(cached) " >&6
  6881. else
  6882. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6883. /* end confdefs.h. */
  6884. #ifdef __GNUC__
  6885. # define alloca __builtin_alloca
  6886. #else
  6887. # ifdef _MSC_VER
  6888. # include <malloc.h>
  6889. # define alloca _alloca
  6890. # else
  6891. # ifdef HAVE_ALLOCA_H
  6892. # include <alloca.h>
  6893. # else
  6894. # ifdef _AIX
  6895. #pragma alloca
  6896. # else
  6897. # ifndef alloca /* predefined by HP cc +Olibcalls */
  6898. char *alloca ();
  6899. # endif
  6900. # endif
  6901. # endif
  6902. # endif
  6903. #endif
  6904. int
  6905. main ()
  6906. {
  6907. char *p = (char *) alloca (1);
  6908. if (p) return 0;
  6909. ;
  6910. return 0;
  6911. }
  6912. _ACEOF
  6913. if ac_fn_cxx_try_link "$LINENO"; then :
  6914. ac_cv_func_alloca_works=yes
  6915. else
  6916. ac_cv_func_alloca_works=no
  6917. fi
  6918. rm -f core conftest.err conftest.$ac_objext \
  6919. conftest$ac_exeext conftest.$ac_ext
  6920. fi
  6921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  6922. $as_echo "$ac_cv_func_alloca_works" >&6; }
  6923. if test $ac_cv_func_alloca_works = yes; then
  6924. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  6925. else
  6926. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  6927. # that cause trouble. Some versions do not even contain alloca or
  6928. # contain a buggy version. If you still want to use their alloca,
  6929. # use ar to extract alloca.o from them instead of compiling alloca.c.
  6930. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  6931. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  6932. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  6933. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  6934. if test "${ac_cv_os_cray+set}" = set; then :
  6935. $as_echo_n "(cached) " >&6
  6936. else
  6937. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6938. /* end confdefs.h. */
  6939. #if defined CRAY && ! defined CRAY2
  6940. webecray
  6941. #else
  6942. wenotbecray
  6943. #endif
  6944. _ACEOF
  6945. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6946. $EGREP "webecray" >/dev/null 2>&1; then :
  6947. ac_cv_os_cray=yes
  6948. else
  6949. ac_cv_os_cray=no
  6950. fi
  6951. rm -f conftest*
  6952. fi
  6953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  6954. $as_echo "$ac_cv_os_cray" >&6; }
  6955. if test $ac_cv_os_cray = yes; then
  6956. for ac_func in _getb67 GETB67 getb67; do
  6957. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6958. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  6959. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  6960. cat >>confdefs.h <<_ACEOF
  6961. #define CRAY_STACKSEG_END $ac_func
  6962. _ACEOF
  6963. break
  6964. fi
  6965. done
  6966. fi
  6967. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  6968. $as_echo_n "checking stack direction for C alloca... " >&6; }
  6969. if test "${ac_cv_c_stack_direction+set}" = set; then :
  6970. $as_echo_n "(cached) " >&6
  6971. else
  6972. if test "$cross_compiling" = yes; then :
  6973. ac_cv_c_stack_direction=0
  6974. else
  6975. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6976. /* end confdefs.h. */
  6977. $ac_includes_default
  6978. int
  6979. find_stack_direction ()
  6980. {
  6981. static char *addr = 0;
  6982. auto char dummy;
  6983. if (addr == 0)
  6984. {
  6985. addr = &dummy;
  6986. return find_stack_direction ();
  6987. }
  6988. else
  6989. return (&dummy > addr) ? 1 : -1;
  6990. }
  6991. int
  6992. main ()
  6993. {
  6994. return find_stack_direction () < 0;
  6995. }
  6996. _ACEOF
  6997. if ac_fn_cxx_try_run "$LINENO"; then :
  6998. ac_cv_c_stack_direction=1
  6999. else
  7000. ac_cv_c_stack_direction=-1
  7001. fi
  7002. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7003. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7004. fi
  7005. fi
  7006. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  7007. $as_echo "$ac_cv_c_stack_direction" >&6; }
  7008. cat >>confdefs.h <<_ACEOF
  7009. #define STACK_DIRECTION $ac_cv_c_stack_direction
  7010. _ACEOF
  7011. fi
  7012. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  7013. $as_echo_n "checking for ANSI C header files... " >&6; }
  7014. if test "${ac_cv_header_stdc+set}" = set; then :
  7015. $as_echo_n "(cached) " >&6
  7016. else
  7017. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7018. /* end confdefs.h. */
  7019. #include <stdlib.h>
  7020. #include <stdarg.h>
  7021. #include <string.h>
  7022. #include <float.h>
  7023. int
  7024. main ()
  7025. {
  7026. ;
  7027. return 0;
  7028. }
  7029. _ACEOF
  7030. if ac_fn_cxx_try_compile "$LINENO"; then :
  7031. ac_cv_header_stdc=yes
  7032. else
  7033. ac_cv_header_stdc=no
  7034. fi
  7035. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7036. if test $ac_cv_header_stdc = yes; then
  7037. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  7038. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7039. /* end confdefs.h. */
  7040. #include <string.h>
  7041. _ACEOF
  7042. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7043. $EGREP "memchr" >/dev/null 2>&1; then :
  7044. else
  7045. ac_cv_header_stdc=no
  7046. fi
  7047. rm -f conftest*
  7048. fi
  7049. if test $ac_cv_header_stdc = yes; then
  7050. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  7051. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7052. /* end confdefs.h. */
  7053. #include <stdlib.h>
  7054. _ACEOF
  7055. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7056. $EGREP "free" >/dev/null 2>&1; then :
  7057. else
  7058. ac_cv_header_stdc=no
  7059. fi
  7060. rm -f conftest*
  7061. fi
  7062. if test $ac_cv_header_stdc = yes; then
  7063. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  7064. if test "$cross_compiling" = yes; then :
  7065. :
  7066. else
  7067. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7068. /* end confdefs.h. */
  7069. #include <ctype.h>
  7070. #include <stdlib.h>
  7071. #if ((' ' & 0x0FF) == 0x020)
  7072. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  7073. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  7074. #else
  7075. # define ISLOWER(c) \
  7076. (('a' <= (c) && (c) <= 'i') \
  7077. || ('j' <= (c) && (c) <= 'r') \
  7078. || ('s' <= (c) && (c) <= 'z'))
  7079. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  7080. #endif
  7081. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  7082. int
  7083. main ()
  7084. {
  7085. int i;
  7086. for (i = 0; i < 256; i++)
  7087. if (XOR (islower (i), ISLOWER (i))
  7088. || toupper (i) != TOUPPER (i))
  7089. return 2;
  7090. return 0;
  7091. }
  7092. _ACEOF
  7093. if ac_fn_cxx_try_run "$LINENO"; then :
  7094. else
  7095. ac_cv_header_stdc=no
  7096. fi
  7097. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7098. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7099. fi
  7100. fi
  7101. fi
  7102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  7103. $as_echo "$ac_cv_header_stdc" >&6; }
  7104. if test $ac_cv_header_stdc = yes; then
  7105. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  7106. fi
  7107. case "$target" in
  7108. *mingw*)
  7109. for ac_header in windows.h \
  7110. winsock2.h \
  7111. ws2tcpip.h \
  7112. mmsystem.h
  7113. do :
  7114. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7115. ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_WINDOWS_H
  7116. # include <windows.h>
  7117. #endif
  7118. "
  7119. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  7120. cat >>confdefs.h <<_ACEOF
  7121. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7122. _ACEOF
  7123. fi
  7124. done
  7125. ;;
  7126. esac
  7127. for ac_header in argz.h \
  7128. arpa/inet.h \
  7129. fcntl.h \
  7130. float.h \
  7131. inttypes.h \
  7132. io.h \
  7133. langinfo.h \
  7134. libintl.h \
  7135. limits.h \
  7136. locale.h \
  7137. malloc.h \
  7138. netdb.h \
  7139. netinet/in.h \
  7140. poll.h \
  7141. port.h \
  7142. stddef.h \
  7143. stdint.h \
  7144. stdio_ext.h \
  7145. stdlib.h \
  7146. string.h \
  7147. strings.h \
  7148. sys/ioctl.h \
  7149. sys/param.h \
  7150. sys/socket.h \
  7151. sys/time.h \
  7152. termios.h \
  7153. unistd.h \
  7154. utime.h \
  7155. wchar.h \
  7156. ifaddrs.h
  7157. do :
  7158. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7159. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  7160. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  7161. cat >>confdefs.h <<_ACEOF
  7162. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7163. _ACEOF
  7164. fi
  7165. done
  7166. # Checks for typedefs, structures, and compiler characteristics.
  7167. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
  7168. $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
  7169. if test "${ac_cv_header_stdbool_h+set}" = set; then :
  7170. $as_echo_n "(cached) " >&6
  7171. else
  7172. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7173. /* end confdefs.h. */
  7174. #include <stdbool.h>
  7175. #ifndef bool
  7176. "error: bool is not defined"
  7177. #endif
  7178. #ifndef false
  7179. "error: false is not defined"
  7180. #endif
  7181. #if false
  7182. "error: false is not 0"
  7183. #endif
  7184. #ifndef true
  7185. "error: true is not defined"
  7186. #endif
  7187. #if true != 1
  7188. "error: true is not 1"
  7189. #endif
  7190. #ifndef __bool_true_false_are_defined
  7191. "error: __bool_true_false_are_defined is not defined"
  7192. #endif
  7193. struct s { _Bool s: 1; _Bool t; } s;
  7194. char a[true == 1 ? 1 : -1];
  7195. char b[false == 0 ? 1 : -1];
  7196. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  7197. char d[(bool) 0.5 == true ? 1 : -1];
  7198. bool e = &s;
  7199. char f[(_Bool) 0.0 == false ? 1 : -1];
  7200. char g[true];
  7201. char h[sizeof (_Bool)];
  7202. char i[sizeof s.t];
  7203. enum { j = false, k = true, l = false * true, m = true * 256 };
  7204. /* The following fails for
  7205. HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
  7206. _Bool n[m];
  7207. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  7208. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  7209. # if defined __xlc__ || defined __GNUC__
  7210. /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
  7211. reported by James Lemley on 2005-10-05; see
  7212. http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
  7213. This test is not quite right, since xlc is allowed to
  7214. reject this program, as the initializer for xlcbug is
  7215. not one of the forms that C requires support for.
  7216. However, doing the test right would require a runtime
  7217. test, and that would make cross-compilation harder.
  7218. Let us hope that IBM fixes the xlc bug, and also adds
  7219. support for this kind of constant expression. In the
  7220. meantime, this test will reject xlc, which is OK, since
  7221. our stdbool.h substitute should suffice. We also test
  7222. this with GCC, where it should work, to detect more
  7223. quickly whether someone messes up the test in the
  7224. future. */
  7225. char digs[] = "0123456789";
  7226. int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
  7227. # endif
  7228. /* Catch a bug in an HP-UX C compiler. See
  7229. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  7230. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  7231. */
  7232. _Bool q = true;
  7233. _Bool *pq = &q;
  7234. int
  7235. main ()
  7236. {
  7237. *pq |= q;
  7238. *pq |= ! q;
  7239. /* Refer to every declared value, to avoid compiler optimizations. */
  7240. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  7241. + !m + !n + !o + !p + !q + !pq);
  7242. ;
  7243. return 0;
  7244. }
  7245. _ACEOF
  7246. if ac_fn_cxx_try_compile "$LINENO"; then :
  7247. ac_cv_header_stdbool_h=yes
  7248. else
  7249. ac_cv_header_stdbool_h=no
  7250. fi
  7251. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7252. fi
  7253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
  7254. $as_echo "$ac_cv_header_stdbool_h" >&6; }
  7255. ac_fn_cxx_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
  7256. if test "x$ac_cv_type__Bool" = x""yes; then :
  7257. cat >>confdefs.h <<_ACEOF
  7258. #define HAVE__BOOL 1
  7259. _ACEOF
  7260. fi
  7261. if test $ac_cv_header_stdbool_h = yes; then
  7262. $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
  7263. fi
  7264. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  7265. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  7266. if test "${ac_cv_c_const+set}" = set; then :
  7267. $as_echo_n "(cached) " >&6
  7268. else
  7269. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7270. /* end confdefs.h. */
  7271. int
  7272. main ()
  7273. {
  7274. /* FIXME: Include the comments suggested by Paul. */
  7275. #ifndef __cplusplus
  7276. /* Ultrix mips cc rejects this. */
  7277. typedef int charset[2];
  7278. const charset cs;
  7279. /* SunOS 4.1.1 cc rejects this. */
  7280. char const *const *pcpcc;
  7281. char **ppc;
  7282. /* NEC SVR4.0.2 mips cc rejects this. */
  7283. struct point {int x, y;};
  7284. static struct point const zero = {0,0};
  7285. /* AIX XL C 1.02.0.0 rejects this.
  7286. It does not let you subtract one const X* pointer from another in
  7287. an arm of an if-expression whose if-part is not a constant
  7288. expression */
  7289. const char *g = "string";
  7290. pcpcc = &g + (g ? g-g : 0);
  7291. /* HPUX 7.0 cc rejects these. */
  7292. ++pcpcc;
  7293. ppc = (char**) pcpcc;
  7294. pcpcc = (char const *const *) ppc;
  7295. { /* SCO 3.2v4 cc rejects this. */
  7296. char *t;
  7297. char const *s = 0 ? (char *) 0 : (char const *) 0;
  7298. *t++ = 0;
  7299. if (s) return 0;
  7300. }
  7301. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  7302. int x[] = {25, 17};
  7303. const int *foo = &x[0];
  7304. ++foo;
  7305. }
  7306. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  7307. typedef const int *iptr;
  7308. iptr p = 0;
  7309. ++p;
  7310. }
  7311. { /* AIX XL C 1.02.0.0 rejects this saying
  7312. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  7313. struct s { int j; const int *ap[3]; };
  7314. struct s *b; b->j = 5;
  7315. }
  7316. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  7317. const int foo = 10;
  7318. if (!foo) return 0;
  7319. }
  7320. return !cs[0] && !zero.x;
  7321. #endif
  7322. ;
  7323. return 0;
  7324. }
  7325. _ACEOF
  7326. if ac_fn_cxx_try_compile "$LINENO"; then :
  7327. ac_cv_c_const=yes
  7328. else
  7329. ac_cv_c_const=no
  7330. fi
  7331. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7332. fi
  7333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  7334. $as_echo "$ac_cv_c_const" >&6; }
  7335. if test $ac_cv_c_const = no; then
  7336. $as_echo "#define const /**/" >>confdefs.h
  7337. fi
  7338. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  7339. $as_echo_n "checking for inline... " >&6; }
  7340. if test "${ac_cv_c_inline+set}" = set; then :
  7341. $as_echo_n "(cached) " >&6
  7342. else
  7343. ac_cv_c_inline=no
  7344. for ac_kw in inline __inline__ __inline; do
  7345. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7346. /* end confdefs.h. */
  7347. #ifndef __cplusplus
  7348. typedef int foo_t;
  7349. static $ac_kw foo_t static_foo () {return 0; }
  7350. $ac_kw foo_t foo () {return 0; }
  7351. #endif
  7352. _ACEOF
  7353. if ac_fn_cxx_try_compile "$LINENO"; then :
  7354. ac_cv_c_inline=$ac_kw
  7355. fi
  7356. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7357. test "$ac_cv_c_inline" != no && break
  7358. done
  7359. fi
  7360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  7361. $as_echo "$ac_cv_c_inline" >&6; }
  7362. case $ac_cv_c_inline in
  7363. inline | yes) ;;
  7364. *)
  7365. case $ac_cv_c_inline in
  7366. no) ac_val=;;
  7367. *) ac_val=$ac_cv_c_inline;;
  7368. esac
  7369. cat >>confdefs.h <<_ACEOF
  7370. #ifndef __cplusplus
  7371. #define inline $ac_val
  7372. #endif
  7373. _ACEOF
  7374. ;;
  7375. esac
  7376. ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
  7377. case $ac_cv_c_int16_t in #(
  7378. no|yes) ;; #(
  7379. *)
  7380. cat >>confdefs.h <<_ACEOF
  7381. #define int16_t $ac_cv_c_int16_t
  7382. _ACEOF
  7383. ;;
  7384. esac
  7385. ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
  7386. case $ac_cv_c_int32_t in #(
  7387. no|yes) ;; #(
  7388. *)
  7389. cat >>confdefs.h <<_ACEOF
  7390. #define int32_t $ac_cv_c_int32_t
  7391. _ACEOF
  7392. ;;
  7393. esac
  7394. ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
  7395. case $ac_cv_c_int64_t in #(
  7396. no|yes) ;; #(
  7397. *)
  7398. cat >>confdefs.h <<_ACEOF
  7399. #define int64_t $ac_cv_c_int64_t
  7400. _ACEOF
  7401. ;;
  7402. esac
  7403. ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
  7404. case $ac_cv_c_int8_t in #(
  7405. no|yes) ;; #(
  7406. *)
  7407. cat >>confdefs.h <<_ACEOF
  7408. #define int8_t $ac_cv_c_int8_t
  7409. _ACEOF
  7410. ;;
  7411. esac
  7412. ac_fn_cxx_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
  7413. if test "x$ac_cv_type_mode_t" = x""yes; then :
  7414. else
  7415. cat >>confdefs.h <<_ACEOF
  7416. #define mode_t int
  7417. _ACEOF
  7418. fi
  7419. ac_fn_cxx_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
  7420. if test "x$ac_cv_type_off_t" = x""yes; then :
  7421. else
  7422. cat >>confdefs.h <<_ACEOF
  7423. #define off_t long int
  7424. _ACEOF
  7425. fi
  7426. ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  7427. if test "x$ac_cv_type_size_t" = x""yes; then :
  7428. else
  7429. cat >>confdefs.h <<_ACEOF
  7430. #define size_t unsigned int
  7431. _ACEOF
  7432. fi
  7433. ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
  7434. if test "x$ac_cv_type_ssize_t" = x""yes; then :
  7435. else
  7436. cat >>confdefs.h <<_ACEOF
  7437. #define ssize_t int
  7438. _ACEOF
  7439. fi
  7440. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  7441. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  7442. if test "${ac_cv_header_time+set}" = set; then :
  7443. $as_echo_n "(cached) " >&6
  7444. else
  7445. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7446. /* end confdefs.h. */
  7447. #include <sys/types.h>
  7448. #include <sys/time.h>
  7449. #include <time.h>
  7450. int
  7451. main ()
  7452. {
  7453. if ((struct tm *) 0)
  7454. return 0;
  7455. ;
  7456. return 0;
  7457. }
  7458. _ACEOF
  7459. if ac_fn_cxx_try_compile "$LINENO"; then :
  7460. ac_cv_header_time=yes
  7461. else
  7462. ac_cv_header_time=no
  7463. fi
  7464. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7465. fi
  7466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  7467. $as_echo "$ac_cv_header_time" >&6; }
  7468. if test $ac_cv_header_time = yes; then
  7469. $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  7470. fi
  7471. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  7472. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  7473. if test "${ac_cv_struct_tm+set}" = set; then :
  7474. $as_echo_n "(cached) " >&6
  7475. else
  7476. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7477. /* end confdefs.h. */
  7478. #include <sys/types.h>
  7479. #include <time.h>
  7480. int
  7481. main ()
  7482. {
  7483. struct tm tm;
  7484. int *p = &tm.tm_sec;
  7485. return !p;
  7486. ;
  7487. return 0;
  7488. }
  7489. _ACEOF
  7490. if ac_fn_cxx_try_compile "$LINENO"; then :
  7491. ac_cv_struct_tm=time.h
  7492. else
  7493. ac_cv_struct_tm=sys/time.h
  7494. fi
  7495. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7496. fi
  7497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  7498. $as_echo "$ac_cv_struct_tm" >&6; }
  7499. if test $ac_cv_struct_tm = sys/time.h; then
  7500. $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
  7501. fi
  7502. ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
  7503. case $ac_cv_c_uint16_t in #(
  7504. no|yes) ;; #(
  7505. *)
  7506. cat >>confdefs.h <<_ACEOF
  7507. #define uint16_t $ac_cv_c_uint16_t
  7508. _ACEOF
  7509. ;;
  7510. esac
  7511. ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
  7512. case $ac_cv_c_uint32_t in #(
  7513. no|yes) ;; #(
  7514. *)
  7515. $as_echo "#define _UINT32_T 1" >>confdefs.h
  7516. cat >>confdefs.h <<_ACEOF
  7517. #define uint32_t $ac_cv_c_uint32_t
  7518. _ACEOF
  7519. ;;
  7520. esac
  7521. ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
  7522. case $ac_cv_c_uint64_t in #(
  7523. no|yes) ;; #(
  7524. *)
  7525. $as_echo "#define _UINT64_T 1" >>confdefs.h
  7526. cat >>confdefs.h <<_ACEOF
  7527. #define uint64_t $ac_cv_c_uint64_t
  7528. _ACEOF
  7529. ;;
  7530. esac
  7531. ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
  7532. case $ac_cv_c_uint8_t in #(
  7533. no|yes) ;; #(
  7534. *)
  7535. $as_echo "#define _UINT8_T 1" >>confdefs.h
  7536. cat >>confdefs.h <<_ACEOF
  7537. #define uint8_t $ac_cv_c_uint8_t
  7538. _ACEOF
  7539. ;;
  7540. esac
  7541. ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  7542. if test "x$ac_cv_type_pid_t" = x""yes; then :
  7543. else
  7544. cat >>confdefs.h <<_ACEOF
  7545. #define pid_t int
  7546. _ACEOF
  7547. fi
  7548. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  7549. $as_echo_n "checking for working volatile... " >&6; }
  7550. if test "${ac_cv_c_volatile+set}" = set; then :
  7551. $as_echo_n "(cached) " >&6
  7552. else
  7553. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7554. /* end confdefs.h. */
  7555. int
  7556. main ()
  7557. {
  7558. volatile int x;
  7559. int * volatile y = (int *) 0;
  7560. return !x && !y;
  7561. ;
  7562. return 0;
  7563. }
  7564. _ACEOF
  7565. if ac_fn_cxx_try_compile "$LINENO"; then :
  7566. ac_cv_c_volatile=yes
  7567. else
  7568. ac_cv_c_volatile=no
  7569. fi
  7570. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7571. fi
  7572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  7573. $as_echo "$ac_cv_c_volatile" >&6; }
  7574. if test $ac_cv_c_volatile = no; then
  7575. $as_echo "#define volatile /**/" >>confdefs.h
  7576. fi
  7577. ac_fn_cxx_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
  7578. if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
  7579. cat >>confdefs.h <<_ACEOF
  7580. #define HAVE_PTRDIFF_T 1
  7581. _ACEOF
  7582. fi
  7583. ac_fn_cxx_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "$ac_includes_default"
  7584. if test "x$ac_cv_type_struct_timespec" = x""yes; then :
  7585. cat >>confdefs.h <<_ACEOF
  7586. #define HAVE_STRUCT_TIMESPEC 1
  7587. _ACEOF
  7588. fi
  7589. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  7590. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  7591. if test "${ac_cv_c_bigendian+set}" = set; then :
  7592. $as_echo_n "(cached) " >&6
  7593. else
  7594. ac_cv_c_bigendian=unknown
  7595. # See if we're dealing with a universal compiler.
  7596. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7597. /* end confdefs.h. */
  7598. #ifndef __APPLE_CC__
  7599. not a universal capable compiler
  7600. #endif
  7601. typedef int dummy;
  7602. _ACEOF
  7603. if ac_fn_cxx_try_compile "$LINENO"; then :
  7604. # Check for potential -arch flags. It is not universal unless
  7605. # there are at least two -arch flags with different values.
  7606. ac_arch=
  7607. ac_prev=
  7608. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  7609. if test -n "$ac_prev"; then
  7610. case $ac_word in
  7611. i?86 | x86_64 | ppc | ppc64)
  7612. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  7613. ac_arch=$ac_word
  7614. else
  7615. ac_cv_c_bigendian=universal
  7616. break
  7617. fi
  7618. ;;
  7619. esac
  7620. ac_prev=
  7621. elif test "x$ac_word" = "x-arch"; then
  7622. ac_prev=arch
  7623. fi
  7624. done
  7625. fi
  7626. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7627. if test $ac_cv_c_bigendian = unknown; then
  7628. # See if sys/param.h defines the BYTE_ORDER macro.
  7629. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7630. /* end confdefs.h. */
  7631. #include <sys/types.h>
  7632. #include <sys/param.h>
  7633. int
  7634. main ()
  7635. {
  7636. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  7637. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  7638. && LITTLE_ENDIAN)
  7639. bogus endian macros
  7640. #endif
  7641. ;
  7642. return 0;
  7643. }
  7644. _ACEOF
  7645. if ac_fn_cxx_try_compile "$LINENO"; then :
  7646. # It does; now see whether it defined to BIG_ENDIAN or not.
  7647. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7648. /* end confdefs.h. */
  7649. #include <sys/types.h>
  7650. #include <sys/param.h>
  7651. int
  7652. main ()
  7653. {
  7654. #if BYTE_ORDER != BIG_ENDIAN
  7655. not big endian
  7656. #endif
  7657. ;
  7658. return 0;
  7659. }
  7660. _ACEOF
  7661. if ac_fn_cxx_try_compile "$LINENO"; then :
  7662. ac_cv_c_bigendian=yes
  7663. else
  7664. ac_cv_c_bigendian=no
  7665. fi
  7666. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7667. fi
  7668. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7669. fi
  7670. if test $ac_cv_c_bigendian = unknown; then
  7671. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  7672. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7673. /* end confdefs.h. */
  7674. #include <limits.h>
  7675. int
  7676. main ()
  7677. {
  7678. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  7679. bogus endian macros
  7680. #endif
  7681. ;
  7682. return 0;
  7683. }
  7684. _ACEOF
  7685. if ac_fn_cxx_try_compile "$LINENO"; then :
  7686. # It does; now see whether it defined to _BIG_ENDIAN or not.
  7687. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7688. /* end confdefs.h. */
  7689. #include <limits.h>
  7690. int
  7691. main ()
  7692. {
  7693. #ifndef _BIG_ENDIAN
  7694. not big endian
  7695. #endif
  7696. ;
  7697. return 0;
  7698. }
  7699. _ACEOF
  7700. if ac_fn_cxx_try_compile "$LINENO"; then :
  7701. ac_cv_c_bigendian=yes
  7702. else
  7703. ac_cv_c_bigendian=no
  7704. fi
  7705. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7706. fi
  7707. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7708. fi
  7709. if test $ac_cv_c_bigendian = unknown; then
  7710. # Compile a test program.
  7711. if test "$cross_compiling" = yes; then :
  7712. # Try to guess by grepping values from an object file.
  7713. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7714. /* end confdefs.h. */
  7715. short int ascii_mm[] =
  7716. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  7717. short int ascii_ii[] =
  7718. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  7719. int use_ascii (int i) {
  7720. return ascii_mm[i] + ascii_ii[i];
  7721. }
  7722. short int ebcdic_ii[] =
  7723. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  7724. short int ebcdic_mm[] =
  7725. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  7726. int use_ebcdic (int i) {
  7727. return ebcdic_mm[i] + ebcdic_ii[i];
  7728. }
  7729. extern int foo;
  7730. int
  7731. main ()
  7732. {
  7733. return use_ascii (foo) == use_ebcdic (foo);
  7734. ;
  7735. return 0;
  7736. }
  7737. _ACEOF
  7738. if ac_fn_cxx_try_compile "$LINENO"; then :
  7739. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  7740. ac_cv_c_bigendian=yes
  7741. fi
  7742. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  7743. if test "$ac_cv_c_bigendian" = unknown; then
  7744. ac_cv_c_bigendian=no
  7745. else
  7746. # finding both strings is unlikely to happen, but who knows?
  7747. ac_cv_c_bigendian=unknown
  7748. fi
  7749. fi
  7750. fi
  7751. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7752. else
  7753. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7754. /* end confdefs.h. */
  7755. $ac_includes_default
  7756. int
  7757. main ()
  7758. {
  7759. /* Are we little or big endian? From Harbison&Steele. */
  7760. union
  7761. {
  7762. long int l;
  7763. char c[sizeof (long int)];
  7764. } u;
  7765. u.l = 1;
  7766. return u.c[sizeof (long int) - 1] == 1;
  7767. ;
  7768. return 0;
  7769. }
  7770. _ACEOF
  7771. if ac_fn_cxx_try_run "$LINENO"; then :
  7772. ac_cv_c_bigendian=no
  7773. else
  7774. ac_cv_c_bigendian=yes
  7775. fi
  7776. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7777. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7778. fi
  7779. fi
  7780. fi
  7781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  7782. $as_echo "$ac_cv_c_bigendian" >&6; }
  7783. case $ac_cv_c_bigendian in #(
  7784. yes)
  7785. $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  7786. ;; #(
  7787. no)
  7788. ;; #(
  7789. universal)
  7790. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  7791. ;; #(
  7792. *)
  7793. as_fn_error $? "unknown endianness
  7794. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  7795. esac
  7796. # Check whether --enable-largefile was given.
  7797. if test "${enable_largefile+set}" = set; then :
  7798. enableval=$enable_largefile;
  7799. fi
  7800. if test "$enable_largefile" != no; then
  7801. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  7802. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  7803. if test "${ac_cv_sys_largefile_CC+set}" = set; then :
  7804. $as_echo_n "(cached) " >&6
  7805. else
  7806. ac_cv_sys_largefile_CC=no
  7807. if test "$GCC" != yes; then
  7808. ac_save_CC=$CC
  7809. while :; do
  7810. # IRIX 6.2 and later do not support large files by default,
  7811. # so use the C compiler's -n32 option if that helps.
  7812. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7813. /* end confdefs.h. */
  7814. #include <sys/types.h>
  7815. /* Check that off_t can represent 2**63 - 1 correctly.
  7816. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7817. since some C++ compilers masquerading as C compilers
  7818. incorrectly reject 9223372036854775807. */
  7819. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7820. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7821. && LARGE_OFF_T % 2147483647 == 1)
  7822. ? 1 : -1];
  7823. int
  7824. main ()
  7825. {
  7826. ;
  7827. return 0;
  7828. }
  7829. _ACEOF
  7830. if ac_fn_cxx_try_compile "$LINENO"; then :
  7831. break
  7832. fi
  7833. rm -f core conftest.err conftest.$ac_objext
  7834. CC="$CC -n32"
  7835. if ac_fn_cxx_try_compile "$LINENO"; then :
  7836. ac_cv_sys_largefile_CC=' -n32'; break
  7837. fi
  7838. rm -f core conftest.err conftest.$ac_objext
  7839. break
  7840. done
  7841. CC=$ac_save_CC
  7842. rm -f conftest.$ac_ext
  7843. fi
  7844. fi
  7845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  7846. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  7847. if test "$ac_cv_sys_largefile_CC" != no; then
  7848. CC=$CC$ac_cv_sys_largefile_CC
  7849. fi
  7850. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  7851. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  7852. if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
  7853. $as_echo_n "(cached) " >&6
  7854. else
  7855. while :; do
  7856. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7857. /* end confdefs.h. */
  7858. #include <sys/types.h>
  7859. /* Check that off_t can represent 2**63 - 1 correctly.
  7860. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7861. since some C++ compilers masquerading as C compilers
  7862. incorrectly reject 9223372036854775807. */
  7863. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7864. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7865. && LARGE_OFF_T % 2147483647 == 1)
  7866. ? 1 : -1];
  7867. int
  7868. main ()
  7869. {
  7870. ;
  7871. return 0;
  7872. }
  7873. _ACEOF
  7874. if ac_fn_cxx_try_compile "$LINENO"; then :
  7875. ac_cv_sys_file_offset_bits=no; break
  7876. fi
  7877. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7878. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7879. /* end confdefs.h. */
  7880. #define _FILE_OFFSET_BITS 64
  7881. #include <sys/types.h>
  7882. /* Check that off_t can represent 2**63 - 1 correctly.
  7883. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7884. since some C++ compilers masquerading as C compilers
  7885. incorrectly reject 9223372036854775807. */
  7886. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7887. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7888. && LARGE_OFF_T % 2147483647 == 1)
  7889. ? 1 : -1];
  7890. int
  7891. main ()
  7892. {
  7893. ;
  7894. return 0;
  7895. }
  7896. _ACEOF
  7897. if ac_fn_cxx_try_compile "$LINENO"; then :
  7898. ac_cv_sys_file_offset_bits=64; break
  7899. fi
  7900. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7901. ac_cv_sys_file_offset_bits=unknown
  7902. break
  7903. done
  7904. fi
  7905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  7906. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  7907. case $ac_cv_sys_file_offset_bits in #(
  7908. no | unknown) ;;
  7909. *)
  7910. cat >>confdefs.h <<_ACEOF
  7911. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  7912. _ACEOF
  7913. ;;
  7914. esac
  7915. rm -rf conftest*
  7916. if test $ac_cv_sys_file_offset_bits = unknown; then
  7917. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  7918. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  7919. if test "${ac_cv_sys_large_files+set}" = set; then :
  7920. $as_echo_n "(cached) " >&6
  7921. else
  7922. while :; do
  7923. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7924. /* end confdefs.h. */
  7925. #include <sys/types.h>
  7926. /* Check that off_t can represent 2**63 - 1 correctly.
  7927. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7928. since some C++ compilers masquerading as C compilers
  7929. incorrectly reject 9223372036854775807. */
  7930. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7931. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7932. && LARGE_OFF_T % 2147483647 == 1)
  7933. ? 1 : -1];
  7934. int
  7935. main ()
  7936. {
  7937. ;
  7938. return 0;
  7939. }
  7940. _ACEOF
  7941. if ac_fn_cxx_try_compile "$LINENO"; then :
  7942. ac_cv_sys_large_files=no; break
  7943. fi
  7944. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7945. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7946. /* end confdefs.h. */
  7947. #define _LARGE_FILES 1
  7948. #include <sys/types.h>
  7949. /* Check that off_t can represent 2**63 - 1 correctly.
  7950. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7951. since some C++ compilers masquerading as C compilers
  7952. incorrectly reject 9223372036854775807. */
  7953. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7954. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7955. && LARGE_OFF_T % 2147483647 == 1)
  7956. ? 1 : -1];
  7957. int
  7958. main ()
  7959. {
  7960. ;
  7961. return 0;
  7962. }
  7963. _ACEOF
  7964. if ac_fn_cxx_try_compile "$LINENO"; then :
  7965. ac_cv_sys_large_files=1; break
  7966. fi
  7967. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7968. ac_cv_sys_large_files=unknown
  7969. break
  7970. done
  7971. fi
  7972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  7973. $as_echo "$ac_cv_sys_large_files" >&6; }
  7974. case $ac_cv_sys_large_files in #(
  7975. no | unknown) ;;
  7976. *)
  7977. cat >>confdefs.h <<_ACEOF
  7978. #define _LARGE_FILES $ac_cv_sys_large_files
  7979. _ACEOF
  7980. ;;
  7981. esac
  7982. rm -rf conftest*
  7983. fi
  7984. fi
  7985. # Checks for library functions.
  7986. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
  7987. $as_echo_n "checking whether NLS is requested... " >&6; }
  7988. # Check whether --enable-nls was given.
  7989. if test "${enable_nls+set}" = set; then :
  7990. enableval=$enable_nls; USE_NLS=$enableval
  7991. else
  7992. USE_NLS=yes
  7993. fi
  7994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
  7995. $as_echo "$USE_NLS" >&6; }
  7996. GETTEXT_MACRO_VERSION=0.17
  7997. # Prepare PATH_SEPARATOR.
  7998. # The user is always right.
  7999. if test "${PATH_SEPARATOR+set}" != set; then
  8000. echo "#! /bin/sh" >conf$$.sh
  8001. echo "exit 0" >>conf$$.sh
  8002. chmod +x conf$$.sh
  8003. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  8004. PATH_SEPARATOR=';'
  8005. else
  8006. PATH_SEPARATOR=:
  8007. fi
  8008. rm -f conf$$.sh
  8009. fi
  8010. # Find out how to test for executable files. Don't use a zero-byte file,
  8011. # as systems may use methods other than mode bits to determine executability.
  8012. cat >conf$$.file <<_ASEOF
  8013. #! /bin/sh
  8014. exit 0
  8015. _ASEOF
  8016. chmod +x conf$$.file
  8017. if test -x conf$$.file >/dev/null 2>&1; then
  8018. ac_executable_p="test -x"
  8019. else
  8020. ac_executable_p="test -f"
  8021. fi
  8022. rm -f conf$$.file
  8023. # Extract the first word of "msgfmt", so it can be a program name with args.
  8024. set dummy msgfmt; ac_word=$2
  8025. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8026. $as_echo_n "checking for $ac_word... " >&6; }
  8027. if test "${ac_cv_path_MSGFMT+set}" = set; then :
  8028. $as_echo_n "(cached) " >&6
  8029. else
  8030. case "$MSGFMT" in
  8031. [\\/]* | ?:[\\/]*)
  8032. ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  8033. ;;
  8034. *)
  8035. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  8036. for ac_dir in $PATH; do
  8037. IFS="$ac_save_IFS"
  8038. test -z "$ac_dir" && ac_dir=.
  8039. for ac_exec_ext in '' $ac_executable_extensions; do
  8040. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  8041. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  8042. if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
  8043. (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  8044. ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
  8045. break 2
  8046. fi
  8047. fi
  8048. done
  8049. done
  8050. IFS="$ac_save_IFS"
  8051. test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
  8052. ;;
  8053. esac
  8054. fi
  8055. MSGFMT="$ac_cv_path_MSGFMT"
  8056. if test "$MSGFMT" != ":"; then
  8057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
  8058. $as_echo "$MSGFMT" >&6; }
  8059. else
  8060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8061. $as_echo "no" >&6; }
  8062. fi
  8063. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  8064. set dummy gmsgfmt; ac_word=$2
  8065. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8066. $as_echo_n "checking for $ac_word... " >&6; }
  8067. if test "${ac_cv_path_GMSGFMT+set}" = set; then :
  8068. $as_echo_n "(cached) " >&6
  8069. else
  8070. case $GMSGFMT in
  8071. [\\/]* | ?:[\\/]*)
  8072. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  8073. ;;
  8074. *)
  8075. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8076. for as_dir in $PATH
  8077. do
  8078. IFS=$as_save_IFS
  8079. test -z "$as_dir" && as_dir=.
  8080. for ac_exec_ext in '' $ac_executable_extensions; do
  8081. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8082. ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  8083. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8084. break 2
  8085. fi
  8086. done
  8087. done
  8088. IFS=$as_save_IFS
  8089. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  8090. ;;
  8091. esac
  8092. fi
  8093. GMSGFMT=$ac_cv_path_GMSGFMT
  8094. if test -n "$GMSGFMT"; then
  8095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
  8096. $as_echo "$GMSGFMT" >&6; }
  8097. else
  8098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8099. $as_echo "no" >&6; }
  8100. fi
  8101. case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  8102. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
  8103. *) MSGFMT_015=$MSGFMT ;;
  8104. esac
  8105. case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  8106. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
  8107. *) GMSGFMT_015=$GMSGFMT ;;
  8108. esac
  8109. # Prepare PATH_SEPARATOR.
  8110. # The user is always right.
  8111. if test "${PATH_SEPARATOR+set}" != set; then
  8112. echo "#! /bin/sh" >conf$$.sh
  8113. echo "exit 0" >>conf$$.sh
  8114. chmod +x conf$$.sh
  8115. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  8116. PATH_SEPARATOR=';'
  8117. else
  8118. PATH_SEPARATOR=:
  8119. fi
  8120. rm -f conf$$.sh
  8121. fi
  8122. # Find out how to test for executable files. Don't use a zero-byte file,
  8123. # as systems may use methods other than mode bits to determine executability.
  8124. cat >conf$$.file <<_ASEOF
  8125. #! /bin/sh
  8126. exit 0
  8127. _ASEOF
  8128. chmod +x conf$$.file
  8129. if test -x conf$$.file >/dev/null 2>&1; then
  8130. ac_executable_p="test -x"
  8131. else
  8132. ac_executable_p="test -f"
  8133. fi
  8134. rm -f conf$$.file
  8135. # Extract the first word of "xgettext", so it can be a program name with args.
  8136. set dummy xgettext; ac_word=$2
  8137. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8138. $as_echo_n "checking for $ac_word... " >&6; }
  8139. if test "${ac_cv_path_XGETTEXT+set}" = set; then :
  8140. $as_echo_n "(cached) " >&6
  8141. else
  8142. case "$XGETTEXT" in
  8143. [\\/]* | ?:[\\/]*)
  8144. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  8145. ;;
  8146. *)
  8147. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  8148. for ac_dir in $PATH; do
  8149. IFS="$ac_save_IFS"
  8150. test -z "$ac_dir" && ac_dir=.
  8151. for ac_exec_ext in '' $ac_executable_extensions; do
  8152. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  8153. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  8154. if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
  8155. (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  8156. ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
  8157. break 2
  8158. fi
  8159. fi
  8160. done
  8161. done
  8162. IFS="$ac_save_IFS"
  8163. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  8164. ;;
  8165. esac
  8166. fi
  8167. XGETTEXT="$ac_cv_path_XGETTEXT"
  8168. if test "$XGETTEXT" != ":"; then
  8169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
  8170. $as_echo "$XGETTEXT" >&6; }
  8171. else
  8172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8173. $as_echo "no" >&6; }
  8174. fi
  8175. rm -f messages.po
  8176. case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  8177. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
  8178. *) XGETTEXT_015=$XGETTEXT ;;
  8179. esac
  8180. # Prepare PATH_SEPARATOR.
  8181. # The user is always right.
  8182. if test "${PATH_SEPARATOR+set}" != set; then
  8183. echo "#! /bin/sh" >conf$$.sh
  8184. echo "exit 0" >>conf$$.sh
  8185. chmod +x conf$$.sh
  8186. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  8187. PATH_SEPARATOR=';'
  8188. else
  8189. PATH_SEPARATOR=:
  8190. fi
  8191. rm -f conf$$.sh
  8192. fi
  8193. # Find out how to test for executable files. Don't use a zero-byte file,
  8194. # as systems may use methods other than mode bits to determine executability.
  8195. cat >conf$$.file <<_ASEOF
  8196. #! /bin/sh
  8197. exit 0
  8198. _ASEOF
  8199. chmod +x conf$$.file
  8200. if test -x conf$$.file >/dev/null 2>&1; then
  8201. ac_executable_p="test -x"
  8202. else
  8203. ac_executable_p="test -f"
  8204. fi
  8205. rm -f conf$$.file
  8206. # Extract the first word of "msgmerge", so it can be a program name with args.
  8207. set dummy msgmerge; ac_word=$2
  8208. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8209. $as_echo_n "checking for $ac_word... " >&6; }
  8210. if test "${ac_cv_path_MSGMERGE+set}" = set; then :
  8211. $as_echo_n "(cached) " >&6
  8212. else
  8213. case "$MSGMERGE" in
  8214. [\\/]* | ?:[\\/]*)
  8215. ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  8216. ;;
  8217. *)
  8218. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  8219. for ac_dir in $PATH; do
  8220. IFS="$ac_save_IFS"
  8221. test -z "$ac_dir" && ac_dir=.
  8222. for ac_exec_ext in '' $ac_executable_extensions; do
  8223. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  8224. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  8225. if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
  8226. ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
  8227. break 2
  8228. fi
  8229. fi
  8230. done
  8231. done
  8232. IFS="$ac_save_IFS"
  8233. test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
  8234. ;;
  8235. esac
  8236. fi
  8237. MSGMERGE="$ac_cv_path_MSGMERGE"
  8238. if test "$MSGMERGE" != ":"; then
  8239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
  8240. $as_echo "$MSGMERGE" >&6; }
  8241. else
  8242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8243. $as_echo "no" >&6; }
  8244. fi
  8245. test -n "$localedir" || localedir='${datadir}/locale'
  8246. test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
  8247. ac_config_commands="$ac_config_commands po-directories"
  8248. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
  8249. $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
  8250. if test "${ac_cv_gnu_library_2+set}" = set; then :
  8251. $as_echo_n "(cached) " >&6
  8252. else
  8253. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8254. /* end confdefs.h. */
  8255. #include <features.h>
  8256. #ifdef __GNU_LIBRARY__
  8257. #if (__GLIBC__ >= 2)
  8258. Lucky GNU user
  8259. #endif
  8260. #endif
  8261. _ACEOF
  8262. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  8263. $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
  8264. ac_cv_gnu_library_2=yes
  8265. else
  8266. ac_cv_gnu_library_2=no
  8267. fi
  8268. rm -f conftest*
  8269. fi
  8270. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
  8271. $as_echo "$ac_cv_gnu_library_2" >&6; }
  8272. GLIBC2="$ac_cv_gnu_library_2"
  8273. CFLAG_VISIBILITY=
  8274. HAVE_VISIBILITY=0
  8275. if test -n "$GCC"; then
  8276. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
  8277. $as_echo_n "checking for simple visibility declarations... " >&6; }
  8278. if test "${gl_cv_cc_visibility+set}" = set; then :
  8279. $as_echo_n "(cached) " >&6
  8280. else
  8281. gl_save_CFLAGS="$CFLAGS"
  8282. CFLAGS="$CFLAGS -fvisibility=hidden"
  8283. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8284. /* end confdefs.h. */
  8285. extern __attribute__((__visibility__("hidden"))) int hiddenvar;
  8286. extern __attribute__((__visibility__("default"))) int exportedvar;
  8287. extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
  8288. extern __attribute__((__visibility__("default"))) int exportedfunc (void);
  8289. int
  8290. main ()
  8291. {
  8292. ;
  8293. return 0;
  8294. }
  8295. _ACEOF
  8296. if ac_fn_cxx_try_compile "$LINENO"; then :
  8297. gl_cv_cc_visibility=yes
  8298. else
  8299. gl_cv_cc_visibility=no
  8300. fi
  8301. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8302. CFLAGS="$gl_save_CFLAGS"
  8303. fi
  8304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
  8305. $as_echo "$gl_cv_cc_visibility" >&6; }
  8306. if test $gl_cv_cc_visibility = yes; then
  8307. CFLAG_VISIBILITY="-fvisibility=hidden"
  8308. HAVE_VISIBILITY=1
  8309. fi
  8310. fi
  8311. cat >>confdefs.h <<_ACEOF
  8312. #define HAVE_VISIBILITY $HAVE_VISIBILITY
  8313. _ACEOF
  8314. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
  8315. $as_echo_n "checking for stdint.h... " >&6; }
  8316. if test "${gl_cv_header_stdint_h+set}" = set; then :
  8317. $as_echo_n "(cached) " >&6
  8318. else
  8319. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8320. /* end confdefs.h. */
  8321. #include <sys/types.h>
  8322. #include <stdint.h>
  8323. int
  8324. main ()
  8325. {
  8326. uintmax_t i = (uintmax_t) -1; return !i;
  8327. ;
  8328. return 0;
  8329. }
  8330. _ACEOF
  8331. if ac_fn_cxx_try_compile "$LINENO"; then :
  8332. gl_cv_header_stdint_h=yes
  8333. else
  8334. gl_cv_header_stdint_h=no
  8335. fi
  8336. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8337. fi
  8338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
  8339. $as_echo "$gl_cv_header_stdint_h" >&6; }
  8340. if test $gl_cv_header_stdint_h = yes; then
  8341. cat >>confdefs.h <<_ACEOF
  8342. #define HAVE_STDINT_H_WITH_UINTMAX 1
  8343. _ACEOF
  8344. fi
  8345. for ac_header in $ac_header_list
  8346. do :
  8347. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8348. ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  8349. "
  8350. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  8351. cat >>confdefs.h <<_ACEOF
  8352. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8353. _ACEOF
  8354. fi
  8355. done
  8356. for ac_func in getpagesize
  8357. do :
  8358. ac_fn_cxx_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  8359. if test "x$ac_cv_func_getpagesize" = x""yes; then :
  8360. cat >>confdefs.h <<_ACEOF
  8361. #define HAVE_GETPAGESIZE 1
  8362. _ACEOF
  8363. fi
  8364. done
  8365. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  8366. $as_echo_n "checking for working mmap... " >&6; }
  8367. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
  8368. $as_echo_n "(cached) " >&6
  8369. else
  8370. if test "$cross_compiling" = yes; then :
  8371. ac_cv_func_mmap_fixed_mapped=no
  8372. else
  8373. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8374. /* end confdefs.h. */
  8375. $ac_includes_default
  8376. /* malloc might have been renamed as rpl_malloc. */
  8377. #undef malloc
  8378. /* Thanks to Mike Haertel and Jim Avera for this test.
  8379. Here is a matrix of mmap possibilities:
  8380. mmap private not fixed
  8381. mmap private fixed at somewhere currently unmapped
  8382. mmap private fixed at somewhere already mapped
  8383. mmap shared not fixed
  8384. mmap shared fixed at somewhere currently unmapped
  8385. mmap shared fixed at somewhere already mapped
  8386. For private mappings, we should verify that changes cannot be read()
  8387. back from the file, nor mmap's back from the file at a different
  8388. address. (There have been systems where private was not correctly
  8389. implemented like the infamous i386 svr4.0, and systems where the
  8390. VM page cache was not coherent with the file system buffer cache
  8391. like early versions of FreeBSD and possibly contemporary NetBSD.)
  8392. For shared mappings, we should conversely verify that changes get
  8393. propagated back to all the places they're supposed to be.
  8394. Grep wants private fixed already mapped.
  8395. The main things grep needs to know about mmap are:
  8396. * does it exist and is it safe to write into the mmap'd area
  8397. * how to use it (BSD variants) */
  8398. #include <fcntl.h>
  8399. #include <sys/mman.h>
  8400. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  8401. char *malloc ();
  8402. #endif
  8403. /* This mess was copied from the GNU getpagesize.h. */
  8404. #ifndef HAVE_GETPAGESIZE
  8405. # ifdef _SC_PAGESIZE
  8406. # define getpagesize() sysconf(_SC_PAGESIZE)
  8407. # else /* no _SC_PAGESIZE */
  8408. # ifdef HAVE_SYS_PARAM_H
  8409. # include <sys/param.h>
  8410. # ifdef EXEC_PAGESIZE
  8411. # define getpagesize() EXEC_PAGESIZE
  8412. # else /* no EXEC_PAGESIZE */
  8413. # ifdef NBPG
  8414. # define getpagesize() NBPG * CLSIZE
  8415. # ifndef CLSIZE
  8416. # define CLSIZE 1
  8417. # endif /* no CLSIZE */
  8418. # else /* no NBPG */
  8419. # ifdef NBPC
  8420. # define getpagesize() NBPC
  8421. # else /* no NBPC */
  8422. # ifdef PAGESIZE
  8423. # define getpagesize() PAGESIZE
  8424. # endif /* PAGESIZE */
  8425. # endif /* no NBPC */
  8426. # endif /* no NBPG */
  8427. # endif /* no EXEC_PAGESIZE */
  8428. # else /* no HAVE_SYS_PARAM_H */
  8429. # define getpagesize() 8192 /* punt totally */
  8430. # endif /* no HAVE_SYS_PARAM_H */
  8431. # endif /* no _SC_PAGESIZE */
  8432. #endif /* no HAVE_GETPAGESIZE */
  8433. int
  8434. main ()
  8435. {
  8436. char *data, *data2, *data3;
  8437. const char *cdata2;
  8438. int i, pagesize;
  8439. int fd, fd2;
  8440. pagesize = getpagesize ();
  8441. /* First, make a file with some known garbage in it. */
  8442. data = (char *) malloc (pagesize);
  8443. if (!data)
  8444. return 1;
  8445. for (i = 0; i < pagesize; ++i)
  8446. *(data + i) = rand ();
  8447. umask (0);
  8448. fd = creat ("conftest.mmap", 0600);
  8449. if (fd < 0)
  8450. return 2;
  8451. if (write (fd, data, pagesize) != pagesize)
  8452. return 3;
  8453. close (fd);
  8454. /* Next, check that the tail of a page is zero-filled. File must have
  8455. non-zero length, otherwise we risk SIGBUS for entire page. */
  8456. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  8457. if (fd2 < 0)
  8458. return 4;
  8459. cdata2 = "";
  8460. if (write (fd2, cdata2, 1) != 1)
  8461. return 5;
  8462. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  8463. if (data2 == MAP_FAILED)
  8464. return 6;
  8465. for (i = 0; i < pagesize; ++i)
  8466. if (*(data2 + i))
  8467. return 7;
  8468. close (fd2);
  8469. if (munmap (data2, pagesize))
  8470. return 8;
  8471. /* Next, try to mmap the file at a fixed address which already has
  8472. something else allocated at it. If we can, also make sure that
  8473. we see the same garbage. */
  8474. fd = open ("conftest.mmap", O_RDWR);
  8475. if (fd < 0)
  8476. return 9;
  8477. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  8478. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  8479. return 10;
  8480. for (i = 0; i < pagesize; ++i)
  8481. if (*(data + i) != *(data2 + i))
  8482. return 11;
  8483. /* Finally, make sure that changes to the mapped area do not
  8484. percolate back to the file as seen by read(). (This is a bug on
  8485. some variants of i386 svr4.0.) */
  8486. for (i = 0; i < pagesize; ++i)
  8487. *(data2 + i) = *(data2 + i) + 1;
  8488. data3 = (char *) malloc (pagesize);
  8489. if (!data3)
  8490. return 12;
  8491. if (read (fd, data3, pagesize) != pagesize)
  8492. return 13;
  8493. for (i = 0; i < pagesize; ++i)
  8494. if (*(data + i) != *(data3 + i))
  8495. return 14;
  8496. close (fd);
  8497. return 0;
  8498. }
  8499. _ACEOF
  8500. if ac_fn_cxx_try_run "$LINENO"; then :
  8501. ac_cv_func_mmap_fixed_mapped=yes
  8502. else
  8503. ac_cv_func_mmap_fixed_mapped=no
  8504. fi
  8505. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  8506. conftest.$ac_objext conftest.beam conftest.$ac_ext
  8507. fi
  8508. fi
  8509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  8510. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  8511. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  8512. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  8513. fi
  8514. rm -f conftest.mmap conftest.txt
  8515. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
  8516. $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
  8517. if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
  8518. $as_echo_n "(cached) " >&6
  8519. else
  8520. gt_cv_int_divbyzero_sigfpe=
  8521. case "$host_os" in
  8522. macos* | darwin[6-9]* | darwin[1-9][0-9]*)
  8523. # On MacOS X 10.2 or newer, just assume the same as when cross-
  8524. # compiling. If we were to perform the real test, 1 Crash Report
  8525. # dialog window would pop up.
  8526. case "$host_cpu" in
  8527. i[34567]86 | x86_64)
  8528. gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
  8529. esac
  8530. ;;
  8531. esac
  8532. if test -z "$gt_cv_int_divbyzero_sigfpe"; then
  8533. if test "$cross_compiling" = yes; then :
  8534. # Guess based on the CPU.
  8535. case "$host_cpu" in
  8536. alpha* | i[34567]86 | x86_64 | m68k | s390*)
  8537. gt_cv_int_divbyzero_sigfpe="guessing yes";;
  8538. *)
  8539. gt_cv_int_divbyzero_sigfpe="guessing no";;
  8540. esac
  8541. else
  8542. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8543. /* end confdefs.h. */
  8544. #include <stdlib.h>
  8545. #include <signal.h>
  8546. static void
  8547. sigfpe_handler (int sig)
  8548. {
  8549. /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
  8550. exit (sig != SIGFPE);
  8551. }
  8552. int x = 1;
  8553. int y = 0;
  8554. int z;
  8555. int nan;
  8556. int main ()
  8557. {
  8558. signal (SIGFPE, sigfpe_handler);
  8559. /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
  8560. #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
  8561. signal (SIGTRAP, sigfpe_handler);
  8562. #endif
  8563. /* Linux/SPARC yields signal SIGILL. */
  8564. #if defined (__sparc__) && defined (__linux__)
  8565. signal (SIGILL, sigfpe_handler);
  8566. #endif
  8567. z = x / y;
  8568. nan = y / y;
  8569. exit (1);
  8570. }
  8571. _ACEOF
  8572. if ac_fn_cxx_try_run "$LINENO"; then :
  8573. gt_cv_int_divbyzero_sigfpe=yes
  8574. else
  8575. gt_cv_int_divbyzero_sigfpe=no
  8576. fi
  8577. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  8578. conftest.$ac_objext conftest.beam conftest.$ac_ext
  8579. fi
  8580. fi
  8581. fi
  8582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
  8583. $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
  8584. case "$gt_cv_int_divbyzero_sigfpe" in
  8585. *yes) value=1;;
  8586. *) value=0;;
  8587. esac
  8588. cat >>confdefs.h <<_ACEOF
  8589. #define INTDIV0_RAISES_SIGFPE $value
  8590. _ACEOF
  8591. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
  8592. $as_echo_n "checking for inttypes.h... " >&6; }
  8593. if test "${gl_cv_header_inttypes_h+set}" = set; then :
  8594. $as_echo_n "(cached) " >&6
  8595. else
  8596. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8597. /* end confdefs.h. */
  8598. #include <sys/types.h>
  8599. #include <inttypes.h>
  8600. int
  8601. main ()
  8602. {
  8603. uintmax_t i = (uintmax_t) -1; return !i;
  8604. ;
  8605. return 0;
  8606. }
  8607. _ACEOF
  8608. if ac_fn_cxx_try_compile "$LINENO"; then :
  8609. gl_cv_header_inttypes_h=yes
  8610. else
  8611. gl_cv_header_inttypes_h=no
  8612. fi
  8613. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8614. fi
  8615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
  8616. $as_echo "$gl_cv_header_inttypes_h" >&6; }
  8617. if test $gl_cv_header_inttypes_h = yes; then
  8618. cat >>confdefs.h <<_ACEOF
  8619. #define HAVE_INTTYPES_H_WITH_UINTMAX 1
  8620. _ACEOF
  8621. fi
  8622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
  8623. $as_echo_n "checking for unsigned long long int... " >&6; }
  8624. if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
  8625. $as_echo_n "(cached) " >&6
  8626. else
  8627. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8628. /* end confdefs.h. */
  8629. /* Test preprocessor. */
  8630. #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  8631. error in preprocessor;
  8632. #endif
  8633. #if ! (18446744073709551615ULL <= -1ull)
  8634. error in preprocessor;
  8635. #endif
  8636. /* Test literals. */
  8637. long long int ll = 9223372036854775807ll;
  8638. long long int nll = -9223372036854775807LL;
  8639. unsigned long long int ull = 18446744073709551615ULL;
  8640. /* Test constant expressions. */
  8641. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  8642. ? 1 : -1)];
  8643. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  8644. ? 1 : -1)];
  8645. int i = 63;
  8646. int
  8647. main ()
  8648. {
  8649. /* Test availability of runtime routines for shift and division. */
  8650. long long int llmax = 9223372036854775807ll;
  8651. unsigned long long int ullmax = 18446744073709551615ull;
  8652. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  8653. | (llmax / ll) | (llmax % ll)
  8654. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  8655. | (ullmax / ull) | (ullmax % ull));
  8656. ;
  8657. return 0;
  8658. }
  8659. _ACEOF
  8660. if ac_fn_cxx_try_link "$LINENO"; then :
  8661. ac_cv_type_unsigned_long_long_int=yes
  8662. else
  8663. ac_cv_type_unsigned_long_long_int=no
  8664. fi
  8665. rm -f core conftest.err conftest.$ac_objext \
  8666. conftest$ac_exeext conftest.$ac_ext
  8667. fi
  8668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
  8669. $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
  8670. if test $ac_cv_type_unsigned_long_long_int = yes; then
  8671. $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
  8672. fi
  8673. if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
  8674. test $ac_cv_type_unsigned_long_long_int = yes \
  8675. && ac_type='unsigned long long' \
  8676. || ac_type='unsigned long'
  8677. cat >>confdefs.h <<_ACEOF
  8678. #define uintmax_t $ac_type
  8679. _ACEOF
  8680. else
  8681. $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
  8682. fi
  8683. for ac_header in inttypes.h
  8684. do :
  8685. ac_fn_cxx_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
  8686. if test "x$ac_cv_header_inttypes_h" = x""yes; then :
  8687. cat >>confdefs.h <<_ACEOF
  8688. #define HAVE_INTTYPES_H 1
  8689. _ACEOF
  8690. fi
  8691. done
  8692. if test $ac_cv_header_inttypes_h = yes; then
  8693. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
  8694. $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
  8695. if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
  8696. $as_echo_n "(cached) " >&6
  8697. else
  8698. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8699. /* end confdefs.h. */
  8700. #include <inttypes.h>
  8701. #ifdef PRId32
  8702. char *p = PRId32;
  8703. #endif
  8704. int
  8705. main ()
  8706. {
  8707. ;
  8708. return 0;
  8709. }
  8710. _ACEOF
  8711. if ac_fn_cxx_try_compile "$LINENO"; then :
  8712. gt_cv_inttypes_pri_broken=no
  8713. else
  8714. gt_cv_inttypes_pri_broken=yes
  8715. fi
  8716. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8717. fi
  8718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
  8719. $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
  8720. fi
  8721. if test "$gt_cv_inttypes_pri_broken" = yes; then
  8722. cat >>confdefs.h <<_ACEOF
  8723. #define PRI_MACROS_BROKEN 1
  8724. _ACEOF
  8725. PRI_MACROS_BROKEN=1
  8726. else
  8727. PRI_MACROS_BROKEN=0
  8728. fi
  8729. # Check whether --enable-threads was given.
  8730. if test "${enable_threads+set}" = set; then :
  8731. enableval=$enable_threads; gl_use_threads=$enableval
  8732. else
  8733. case "$host_os" in
  8734. osf*) gl_use_threads=no ;;
  8735. *) gl_use_threads=yes ;;
  8736. esac
  8737. fi
  8738. if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
  8739. # For using <pthread.h>:
  8740. case "$host_os" in
  8741. osf*)
  8742. # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
  8743. # groks <pthread.h>. cc also understands the flag -pthread, but
  8744. # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
  8745. # 2. putting a flag into CPPFLAGS that has an effect on the linker
  8746. # causes the AC_TRY_LINK test below to succeed unexpectedly,
  8747. # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
  8748. CPPFLAGS="$CPPFLAGS -D_REENTRANT"
  8749. ;;
  8750. esac
  8751. # Some systems optimize for single-threaded programs by default, and
  8752. # need special flags to disable these optimizations. For example, the
  8753. # definition of 'errno' in <errno.h>.
  8754. case "$host_os" in
  8755. aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
  8756. solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
  8757. esac
  8758. fi
  8759. if test "X$prefix" = "XNONE"; then
  8760. acl_final_prefix="$ac_default_prefix"
  8761. else
  8762. acl_final_prefix="$prefix"
  8763. fi
  8764. if test "X$exec_prefix" = "XNONE"; then
  8765. acl_final_exec_prefix='${prefix}'
  8766. else
  8767. acl_final_exec_prefix="$exec_prefix"
  8768. fi
  8769. acl_save_prefix="$prefix"
  8770. prefix="$acl_final_prefix"
  8771. eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  8772. prefix="$acl_save_prefix"
  8773. # Check whether --with-gnu-ld was given.
  8774. if test "${with_gnu_ld+set}" = set; then :
  8775. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  8776. else
  8777. with_gnu_ld=no
  8778. fi
  8779. # Prepare PATH_SEPARATOR.
  8780. # The user is always right.
  8781. if test "${PATH_SEPARATOR+set}" != set; then
  8782. echo "#! /bin/sh" >conf$$.sh
  8783. echo "exit 0" >>conf$$.sh
  8784. chmod +x conf$$.sh
  8785. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  8786. PATH_SEPARATOR=';'
  8787. else
  8788. PATH_SEPARATOR=:
  8789. fi
  8790. rm -f conf$$.sh
  8791. fi
  8792. ac_prog=ld
  8793. if test "$GCC" = yes; then
  8794. # Check if gcc -print-prog-name=ld gives a path.
  8795. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
  8796. $as_echo_n "checking for ld used by GCC... " >&6; }
  8797. case $host in
  8798. *-*-mingw*)
  8799. # gcc leaves a trailing carriage return which upsets mingw
  8800. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  8801. *)
  8802. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  8803. esac
  8804. case $ac_prog in
  8805. # Accept absolute paths.
  8806. [\\/]* | [A-Za-z]:[\\/]*)
  8807. re_direlt='/[^/][^/]*/\.\./'
  8808. # Canonicalize the path of ld
  8809. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  8810. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  8811. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  8812. done
  8813. test -z "$LD" && LD="$ac_prog"
  8814. ;;
  8815. "")
  8816. # If it fails, then pretend we aren't using GCC.
  8817. ac_prog=ld
  8818. ;;
  8819. *)
  8820. # If it is relative, then search for the first ld in PATH.
  8821. with_gnu_ld=unknown
  8822. ;;
  8823. esac
  8824. elif test "$with_gnu_ld" = yes; then
  8825. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  8826. $as_echo_n "checking for GNU ld... " >&6; }
  8827. else
  8828. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  8829. $as_echo_n "checking for non-GNU ld... " >&6; }
  8830. fi
  8831. if test "${acl_cv_path_LD+set}" = set; then :
  8832. $as_echo_n "(cached) " >&6
  8833. else
  8834. if test -z "$LD"; then
  8835. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  8836. for ac_dir in $PATH; do
  8837. test -z "$ac_dir" && ac_dir=.
  8838. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  8839. acl_cv_path_LD="$ac_dir/$ac_prog"
  8840. # Check to see if the program is GNU ld. I'd rather use --version,
  8841. # but apparently some GNU ld's only accept -v.
  8842. # Break only if it was the GNU/non-GNU ld that we prefer.
  8843. case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
  8844. *GNU* | *'with BFD'*)
  8845. test "$with_gnu_ld" != no && break ;;
  8846. *)
  8847. test "$with_gnu_ld" != yes && break ;;
  8848. esac
  8849. fi
  8850. done
  8851. IFS="$ac_save_ifs"
  8852. else
  8853. acl_cv_path_LD="$LD" # Let the user override the test with a path.
  8854. fi
  8855. fi
  8856. LD="$acl_cv_path_LD"
  8857. if test -n "$LD"; then
  8858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  8859. $as_echo "$LD" >&6; }
  8860. else
  8861. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8862. $as_echo "no" >&6; }
  8863. fi
  8864. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  8865. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  8866. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  8867. if test "${acl_cv_prog_gnu_ld+set}" = set; then :
  8868. $as_echo_n "(cached) " >&6
  8869. else
  8870. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  8871. case `$LD -v 2>&1 </dev/null` in
  8872. *GNU* | *'with BFD'*)
  8873. acl_cv_prog_gnu_ld=yes ;;
  8874. *)
  8875. acl_cv_prog_gnu_ld=no ;;
  8876. esac
  8877. fi
  8878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
  8879. $as_echo "$acl_cv_prog_gnu_ld" >&6; }
  8880. with_gnu_ld=$acl_cv_prog_gnu_ld
  8881. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
  8882. $as_echo_n "checking for shared library run path origin... " >&6; }
  8883. if test "${acl_cv_rpath+set}" = set; then :
  8884. $as_echo_n "(cached) " >&6
  8885. else
  8886. CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  8887. ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  8888. . ./conftest.sh
  8889. rm -f ./conftest.sh
  8890. acl_cv_rpath=done
  8891. fi
  8892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
  8893. $as_echo "$acl_cv_rpath" >&6; }
  8894. wl="$acl_cv_wl"
  8895. acl_libext="$acl_cv_libext"
  8896. acl_shlibext="$acl_cv_shlibext"
  8897. acl_libname_spec="$acl_cv_libname_spec"
  8898. acl_library_names_spec="$acl_cv_library_names_spec"
  8899. acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  8900. acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  8901. acl_hardcode_direct="$acl_cv_hardcode_direct"
  8902. acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
  8903. # Check whether --enable-rpath was given.
  8904. if test "${enable_rpath+set}" = set; then :
  8905. enableval=$enable_rpath; :
  8906. else
  8907. enable_rpath=yes
  8908. fi
  8909. acl_libdirstem=lib
  8910. searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
  8911. if test -n "$searchpath"; then
  8912. acl_save_IFS="${IFS= }"; IFS=":"
  8913. for searchdir in $searchpath; do
  8914. if test -d "$searchdir"; then
  8915. case "$searchdir" in
  8916. */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
  8917. *) searchdir=`cd "$searchdir" && pwd`
  8918. case "$searchdir" in
  8919. */lib64 ) acl_libdirstem=lib64 ;;
  8920. esac ;;
  8921. esac
  8922. fi
  8923. done
  8924. IFS="$acl_save_IFS"
  8925. fi
  8926. gl_threads_api=none
  8927. LIBTHREAD=
  8928. LTLIBTHREAD=
  8929. LIBMULTITHREAD=
  8930. LTLIBMULTITHREAD=
  8931. if test "$gl_use_threads" != no; then
  8932. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
  8933. $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
  8934. gl_have_weak=no
  8935. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8936. /* end confdefs.h. */
  8937. extern void xyzzy ();
  8938. #pragma weak xyzzy
  8939. int
  8940. main ()
  8941. {
  8942. xyzzy();
  8943. ;
  8944. return 0;
  8945. }
  8946. _ACEOF
  8947. if ac_fn_cxx_try_link "$LINENO"; then :
  8948. gl_have_weak=yes
  8949. fi
  8950. rm -f core conftest.err conftest.$ac_objext \
  8951. conftest$ac_exeext conftest.$ac_ext
  8952. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_weak" >&5
  8953. $as_echo "$gl_have_weak" >&6; }
  8954. if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
  8955. # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
  8956. # it groks <pthread.h>. It's added above, in gl_LOCK_EARLY_BODY.
  8957. ac_fn_cxx_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
  8958. if test "x$ac_cv_header_pthread_h" = x""yes; then :
  8959. gl_have_pthread_h=yes
  8960. else
  8961. gl_have_pthread_h=no
  8962. fi
  8963. if test "$gl_have_pthread_h" = yes; then
  8964. # Other possible tests:
  8965. # -lpthreads (FSU threads, PCthreads)
  8966. # -lgthreads
  8967. gl_have_pthread=
  8968. # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
  8969. # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
  8970. # the second one only in libpthread, and lock.c needs it.
  8971. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8972. /* end confdefs.h. */
  8973. #include <pthread.h>
  8974. int
  8975. main ()
  8976. {
  8977. pthread_mutex_lock((pthread_mutex_t*)0);
  8978. pthread_mutexattr_init((pthread_mutexattr_t*)0);
  8979. ;
  8980. return 0;
  8981. }
  8982. _ACEOF
  8983. if ac_fn_cxx_try_link "$LINENO"; then :
  8984. gl_have_pthread=yes
  8985. fi
  8986. rm -f core conftest.err conftest.$ac_objext \
  8987. conftest$ac_exeext conftest.$ac_ext
  8988. # Test for libpthread by looking for pthread_kill. (Not pthread_self,
  8989. # since it is defined as a macro on OSF/1.)
  8990. if test -n "$gl_have_pthread"; then
  8991. # The program links fine without libpthread. But it may actually
  8992. # need to link with libpthread in order to create multiple threads.
  8993. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
  8994. $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
  8995. if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then :
  8996. $as_echo_n "(cached) " >&6
  8997. else
  8998. ac_check_lib_save_LIBS=$LIBS
  8999. LIBS="-lpthread $LIBS"
  9000. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9001. /* end confdefs.h. */
  9002. /* Override any GCC internal prototype to avoid an error.
  9003. Use char because int might match the return type of a GCC
  9004. builtin and then its argument prototype would still apply. */
  9005. #ifdef __cplusplus
  9006. extern "C"
  9007. #endif
  9008. char pthread_kill ();
  9009. int
  9010. main ()
  9011. {
  9012. return pthread_kill ();
  9013. ;
  9014. return 0;
  9015. }
  9016. _ACEOF
  9017. if ac_fn_cxx_try_link "$LINENO"; then :
  9018. ac_cv_lib_pthread_pthread_kill=yes
  9019. else
  9020. ac_cv_lib_pthread_pthread_kill=no
  9021. fi
  9022. rm -f core conftest.err conftest.$ac_objext \
  9023. conftest$ac_exeext conftest.$ac_ext
  9024. LIBS=$ac_check_lib_save_LIBS
  9025. fi
  9026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
  9027. $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
  9028. if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then :
  9029. LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
  9030. # On Solaris and HP-UX, most pthread functions exist also in libc.
  9031. # Therefore pthread_in_use() needs to actually try to create a
  9032. # thread: pthread_create from libc will fail, whereas
  9033. # pthread_create will actually create a thread.
  9034. case "$host_os" in
  9035. solaris* | hpux*)
  9036. $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
  9037. esac
  9038. fi
  9039. else
  9040. # Some library is needed. Try libpthread and libc_r.
  9041. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
  9042. $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
  9043. if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then :
  9044. $as_echo_n "(cached) " >&6
  9045. else
  9046. ac_check_lib_save_LIBS=$LIBS
  9047. LIBS="-lpthread $LIBS"
  9048. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9049. /* end confdefs.h. */
  9050. /* Override any GCC internal prototype to avoid an error.
  9051. Use char because int might match the return type of a GCC
  9052. builtin and then its argument prototype would still apply. */
  9053. #ifdef __cplusplus
  9054. extern "C"
  9055. #endif
  9056. char pthread_kill ();
  9057. int
  9058. main ()
  9059. {
  9060. return pthread_kill ();
  9061. ;
  9062. return 0;
  9063. }
  9064. _ACEOF
  9065. if ac_fn_cxx_try_link "$LINENO"; then :
  9066. ac_cv_lib_pthread_pthread_kill=yes
  9067. else
  9068. ac_cv_lib_pthread_pthread_kill=no
  9069. fi
  9070. rm -f core conftest.err conftest.$ac_objext \
  9071. conftest$ac_exeext conftest.$ac_ext
  9072. LIBS=$ac_check_lib_save_LIBS
  9073. fi
  9074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
  9075. $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
  9076. if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then :
  9077. gl_have_pthread=yes
  9078. LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
  9079. LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
  9080. fi
  9081. if test -z "$gl_have_pthread"; then
  9082. # For FreeBSD 4.
  9083. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
  9084. $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
  9085. if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then :
  9086. $as_echo_n "(cached) " >&6
  9087. else
  9088. ac_check_lib_save_LIBS=$LIBS
  9089. LIBS="-lc_r $LIBS"
  9090. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9091. /* end confdefs.h. */
  9092. /* Override any GCC internal prototype to avoid an error.
  9093. Use char because int might match the return type of a GCC
  9094. builtin and then its argument prototype would still apply. */
  9095. #ifdef __cplusplus
  9096. extern "C"
  9097. #endif
  9098. char pthread_kill ();
  9099. int
  9100. main ()
  9101. {
  9102. return pthread_kill ();
  9103. ;
  9104. return 0;
  9105. }
  9106. _ACEOF
  9107. if ac_fn_cxx_try_link "$LINENO"; then :
  9108. ac_cv_lib_c_r_pthread_kill=yes
  9109. else
  9110. ac_cv_lib_c_r_pthread_kill=no
  9111. fi
  9112. rm -f core conftest.err conftest.$ac_objext \
  9113. conftest$ac_exeext conftest.$ac_ext
  9114. LIBS=$ac_check_lib_save_LIBS
  9115. fi
  9116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
  9117. $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
  9118. if test "x$ac_cv_lib_c_r_pthread_kill" = x""yes; then :
  9119. gl_have_pthread=yes
  9120. LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
  9121. LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
  9122. fi
  9123. fi
  9124. fi
  9125. if test -n "$gl_have_pthread"; then
  9126. gl_threads_api=posix
  9127. $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
  9128. if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
  9129. if test $gl_have_weak = yes; then
  9130. $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
  9131. LIBTHREAD=
  9132. LTLIBTHREAD=
  9133. fi
  9134. fi
  9135. # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
  9136. # pthread_rwlock_* functions.
  9137. ac_fn_cxx_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
  9138. "
  9139. if test "x$ac_cv_type_pthread_rwlock_t" = x""yes; then :
  9140. $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
  9141. fi
  9142. # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
  9143. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9144. /* end confdefs.h. */
  9145. #include <pthread.h>
  9146. int
  9147. main ()
  9148. {
  9149. #if __FreeBSD__ == 4
  9150. error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
  9151. #else
  9152. int x = (int)PTHREAD_MUTEX_RECURSIVE;
  9153. return !x;
  9154. #endif
  9155. ;
  9156. return 0;
  9157. }
  9158. _ACEOF
  9159. if ac_fn_cxx_try_compile "$LINENO"; then :
  9160. $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
  9161. fi
  9162. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9163. fi
  9164. fi
  9165. fi
  9166. if test -z "$gl_have_pthread"; then
  9167. if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
  9168. gl_have_solaristhread=
  9169. gl_save_LIBS="$LIBS"
  9170. LIBS="$LIBS -lthread"
  9171. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9172. /* end confdefs.h. */
  9173. #include <thread.h>
  9174. #include <synch.h>
  9175. int
  9176. main ()
  9177. {
  9178. thr_self();
  9179. ;
  9180. return 0;
  9181. }
  9182. _ACEOF
  9183. if ac_fn_cxx_try_link "$LINENO"; then :
  9184. gl_have_solaristhread=yes
  9185. fi
  9186. rm -f core conftest.err conftest.$ac_objext \
  9187. conftest$ac_exeext conftest.$ac_ext
  9188. LIBS="$gl_save_LIBS"
  9189. if test -n "$gl_have_solaristhread"; then
  9190. gl_threads_api=solaris
  9191. LIBTHREAD=-lthread
  9192. LTLIBTHREAD=-lthread
  9193. LIBMULTITHREAD="$LIBTHREAD"
  9194. LTLIBMULTITHREAD="$LTLIBTHREAD"
  9195. $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
  9196. if test $gl_have_weak = yes; then
  9197. $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
  9198. LIBTHREAD=
  9199. LTLIBTHREAD=
  9200. fi
  9201. fi
  9202. fi
  9203. fi
  9204. if test "$gl_use_threads" = pth; then
  9205. gl_save_CPPFLAGS="$CPPFLAGS"
  9206. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
  9207. $as_echo_n "checking how to link with libpth... " >&6; }
  9208. if test "${ac_cv_libpth_libs+set}" = set; then :
  9209. $as_echo_n "(cached) " >&6
  9210. else
  9211. use_additional=yes
  9212. acl_save_prefix="$prefix"
  9213. prefix="$acl_final_prefix"
  9214. acl_save_exec_prefix="$exec_prefix"
  9215. exec_prefix="$acl_final_exec_prefix"
  9216. eval additional_includedir=\"$includedir\"
  9217. eval additional_libdir=\"$libdir\"
  9218. exec_prefix="$acl_save_exec_prefix"
  9219. prefix="$acl_save_prefix"
  9220. # Check whether --with-libpth-prefix was given.
  9221. if test "${with_libpth_prefix+set}" = set; then :
  9222. withval=$with_libpth_prefix;
  9223. if test "X$withval" = "Xno"; then
  9224. use_additional=no
  9225. else
  9226. if test "X$withval" = "X"; then
  9227. acl_save_prefix="$prefix"
  9228. prefix="$acl_final_prefix"
  9229. acl_save_exec_prefix="$exec_prefix"
  9230. exec_prefix="$acl_final_exec_prefix"
  9231. eval additional_includedir=\"$includedir\"
  9232. eval additional_libdir=\"$libdir\"
  9233. exec_prefix="$acl_save_exec_prefix"
  9234. prefix="$acl_save_prefix"
  9235. else
  9236. additional_includedir="$withval/include"
  9237. additional_libdir="$withval/$acl_libdirstem"
  9238. fi
  9239. fi
  9240. fi
  9241. LIBPTH=
  9242. LTLIBPTH=
  9243. INCPTH=
  9244. LIBPTH_PREFIX=
  9245. rpathdirs=
  9246. ltrpathdirs=
  9247. names_already_handled=
  9248. names_next_round='pth '
  9249. while test -n "$names_next_round"; do
  9250. names_this_round="$names_next_round"
  9251. names_next_round=
  9252. for name in $names_this_round; do
  9253. already_handled=
  9254. for n in $names_already_handled; do
  9255. if test "$n" = "$name"; then
  9256. already_handled=yes
  9257. break
  9258. fi
  9259. done
  9260. if test -z "$already_handled"; then
  9261. names_already_handled="$names_already_handled $name"
  9262. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  9263. eval value=\"\$HAVE_LIB$uppername\"
  9264. if test -n "$value"; then
  9265. if test "$value" = yes; then
  9266. eval value=\"\$LIB$uppername\"
  9267. test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
  9268. eval value=\"\$LTLIB$uppername\"
  9269. test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
  9270. else
  9271. :
  9272. fi
  9273. else
  9274. found_dir=
  9275. found_la=
  9276. found_so=
  9277. found_a=
  9278. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  9279. if test -n "$acl_shlibext"; then
  9280. shrext=".$acl_shlibext" # typically: shrext=.so
  9281. else
  9282. shrext=
  9283. fi
  9284. if test $use_additional = yes; then
  9285. dir="$additional_libdir"
  9286. if test -n "$acl_shlibext"; then
  9287. if test -f "$dir/$libname$shrext"; then
  9288. found_dir="$dir"
  9289. found_so="$dir/$libname$shrext"
  9290. else
  9291. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  9292. ver=`(cd "$dir" && \
  9293. for f in "$libname$shrext".*; do echo "$f"; done \
  9294. | sed -e "s,^$libname$shrext\\\\.,," \
  9295. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  9296. | sed 1q ) 2>/dev/null`
  9297. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  9298. found_dir="$dir"
  9299. found_so="$dir/$libname$shrext.$ver"
  9300. fi
  9301. else
  9302. eval library_names=\"$acl_library_names_spec\"
  9303. for f in $library_names; do
  9304. if test -f "$dir/$f"; then
  9305. found_dir="$dir"
  9306. found_so="$dir/$f"
  9307. break
  9308. fi
  9309. done
  9310. fi
  9311. fi
  9312. fi
  9313. if test "X$found_dir" = "X"; then
  9314. if test -f "$dir/$libname.$acl_libext"; then
  9315. found_dir="$dir"
  9316. found_a="$dir/$libname.$acl_libext"
  9317. fi
  9318. fi
  9319. if test "X$found_dir" != "X"; then
  9320. if test -f "$dir/$libname.la"; then
  9321. found_la="$dir/$libname.la"
  9322. fi
  9323. fi
  9324. fi
  9325. if test "X$found_dir" = "X"; then
  9326. for x in $LDFLAGS $LTLIBPTH; do
  9327. acl_save_prefix="$prefix"
  9328. prefix="$acl_final_prefix"
  9329. acl_save_exec_prefix="$exec_prefix"
  9330. exec_prefix="$acl_final_exec_prefix"
  9331. eval x=\"$x\"
  9332. exec_prefix="$acl_save_exec_prefix"
  9333. prefix="$acl_save_prefix"
  9334. case "$x" in
  9335. -L*)
  9336. dir=`echo "X$x" | sed -e 's/^X-L//'`
  9337. if test -n "$acl_shlibext"; then
  9338. if test -f "$dir/$libname$shrext"; then
  9339. found_dir="$dir"
  9340. found_so="$dir/$libname$shrext"
  9341. else
  9342. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  9343. ver=`(cd "$dir" && \
  9344. for f in "$libname$shrext".*; do echo "$f"; done \
  9345. | sed -e "s,^$libname$shrext\\\\.,," \
  9346. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  9347. | sed 1q ) 2>/dev/null`
  9348. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  9349. found_dir="$dir"
  9350. found_so="$dir/$libname$shrext.$ver"
  9351. fi
  9352. else
  9353. eval library_names=\"$acl_library_names_spec\"
  9354. for f in $library_names; do
  9355. if test -f "$dir/$f"; then
  9356. found_dir="$dir"
  9357. found_so="$dir/$f"
  9358. break
  9359. fi
  9360. done
  9361. fi
  9362. fi
  9363. fi
  9364. if test "X$found_dir" = "X"; then
  9365. if test -f "$dir/$libname.$acl_libext"; then
  9366. found_dir="$dir"
  9367. found_a="$dir/$libname.$acl_libext"
  9368. fi
  9369. fi
  9370. if test "X$found_dir" != "X"; then
  9371. if test -f "$dir/$libname.la"; then
  9372. found_la="$dir/$libname.la"
  9373. fi
  9374. fi
  9375. ;;
  9376. esac
  9377. if test "X$found_dir" != "X"; then
  9378. break
  9379. fi
  9380. done
  9381. fi
  9382. if test "X$found_dir" != "X"; then
  9383. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
  9384. if test "X$found_so" != "X"; then
  9385. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  9386. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  9387. else
  9388. haveit=
  9389. for x in $ltrpathdirs; do
  9390. if test "X$x" = "X$found_dir"; then
  9391. haveit=yes
  9392. break
  9393. fi
  9394. done
  9395. if test -z "$haveit"; then
  9396. ltrpathdirs="$ltrpathdirs $found_dir"
  9397. fi
  9398. if test "$acl_hardcode_direct" = yes; then
  9399. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  9400. else
  9401. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  9402. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  9403. haveit=
  9404. for x in $rpathdirs; do
  9405. if test "X$x" = "X$found_dir"; then
  9406. haveit=yes
  9407. break
  9408. fi
  9409. done
  9410. if test -z "$haveit"; then
  9411. rpathdirs="$rpathdirs $found_dir"
  9412. fi
  9413. else
  9414. haveit=
  9415. for x in $LDFLAGS $LIBPTH; do
  9416. acl_save_prefix="$prefix"
  9417. prefix="$acl_final_prefix"
  9418. acl_save_exec_prefix="$exec_prefix"
  9419. exec_prefix="$acl_final_exec_prefix"
  9420. eval x=\"$x\"
  9421. exec_prefix="$acl_save_exec_prefix"
  9422. prefix="$acl_save_prefix"
  9423. if test "X$x" = "X-L$found_dir"; then
  9424. haveit=yes
  9425. break
  9426. fi
  9427. done
  9428. if test -z "$haveit"; then
  9429. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
  9430. fi
  9431. if test "$acl_hardcode_minus_L" != no; then
  9432. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  9433. else
  9434. LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
  9435. fi
  9436. fi
  9437. fi
  9438. fi
  9439. else
  9440. if test "X$found_a" != "X"; then
  9441. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
  9442. else
  9443. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
  9444. fi
  9445. fi
  9446. additional_includedir=
  9447. case "$found_dir" in
  9448. */$acl_libdirstem | */$acl_libdirstem/)
  9449. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  9450. LIBPTH_PREFIX="$basedir"
  9451. additional_includedir="$basedir/include"
  9452. ;;
  9453. esac
  9454. if test "X$additional_includedir" != "X"; then
  9455. if test "X$additional_includedir" != "X/usr/include"; then
  9456. haveit=
  9457. if test "X$additional_includedir" = "X/usr/local/include"; then
  9458. if test -n "$GCC"; then
  9459. case $host_os in
  9460. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  9461. esac
  9462. fi
  9463. fi
  9464. if test -z "$haveit"; then
  9465. for x in $CPPFLAGS $INCPTH; do
  9466. acl_save_prefix="$prefix"
  9467. prefix="$acl_final_prefix"
  9468. acl_save_exec_prefix="$exec_prefix"
  9469. exec_prefix="$acl_final_exec_prefix"
  9470. eval x=\"$x\"
  9471. exec_prefix="$acl_save_exec_prefix"
  9472. prefix="$acl_save_prefix"
  9473. if test "X$x" = "X-I$additional_includedir"; then
  9474. haveit=yes
  9475. break
  9476. fi
  9477. done
  9478. if test -z "$haveit"; then
  9479. if test -d "$additional_includedir"; then
  9480. INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
  9481. fi
  9482. fi
  9483. fi
  9484. fi
  9485. fi
  9486. if test -n "$found_la"; then
  9487. save_libdir="$libdir"
  9488. case "$found_la" in
  9489. */* | *\\*) . "$found_la" ;;
  9490. *) . "./$found_la" ;;
  9491. esac
  9492. libdir="$save_libdir"
  9493. for dep in $dependency_libs; do
  9494. case "$dep" in
  9495. -L*)
  9496. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  9497. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  9498. haveit=
  9499. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  9500. if test -n "$GCC"; then
  9501. case $host_os in
  9502. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  9503. esac
  9504. fi
  9505. fi
  9506. if test -z "$haveit"; then
  9507. haveit=
  9508. for x in $LDFLAGS $LIBPTH; do
  9509. acl_save_prefix="$prefix"
  9510. prefix="$acl_final_prefix"
  9511. acl_save_exec_prefix="$exec_prefix"
  9512. exec_prefix="$acl_final_exec_prefix"
  9513. eval x=\"$x\"
  9514. exec_prefix="$acl_save_exec_prefix"
  9515. prefix="$acl_save_prefix"
  9516. if test "X$x" = "X-L$additional_libdir"; then
  9517. haveit=yes
  9518. break
  9519. fi
  9520. done
  9521. if test -z "$haveit"; then
  9522. if test -d "$additional_libdir"; then
  9523. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
  9524. fi
  9525. fi
  9526. haveit=
  9527. for x in $LDFLAGS $LTLIBPTH; do
  9528. acl_save_prefix="$prefix"
  9529. prefix="$acl_final_prefix"
  9530. acl_save_exec_prefix="$exec_prefix"
  9531. exec_prefix="$acl_final_exec_prefix"
  9532. eval x=\"$x\"
  9533. exec_prefix="$acl_save_exec_prefix"
  9534. prefix="$acl_save_prefix"
  9535. if test "X$x" = "X-L$additional_libdir"; then
  9536. haveit=yes
  9537. break
  9538. fi
  9539. done
  9540. if test -z "$haveit"; then
  9541. if test -d "$additional_libdir"; then
  9542. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
  9543. fi
  9544. fi
  9545. fi
  9546. fi
  9547. ;;
  9548. -R*)
  9549. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  9550. if test "$enable_rpath" != no; then
  9551. haveit=
  9552. for x in $rpathdirs; do
  9553. if test "X$x" = "X$dir"; then
  9554. haveit=yes
  9555. break
  9556. fi
  9557. done
  9558. if test -z "$haveit"; then
  9559. rpathdirs="$rpathdirs $dir"
  9560. fi
  9561. haveit=
  9562. for x in $ltrpathdirs; do
  9563. if test "X$x" = "X$dir"; then
  9564. haveit=yes
  9565. break
  9566. fi
  9567. done
  9568. if test -z "$haveit"; then
  9569. ltrpathdirs="$ltrpathdirs $dir"
  9570. fi
  9571. fi
  9572. ;;
  9573. -l*)
  9574. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  9575. ;;
  9576. *.la)
  9577. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  9578. ;;
  9579. *)
  9580. LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
  9581. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
  9582. ;;
  9583. esac
  9584. done
  9585. fi
  9586. else
  9587. LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
  9588. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
  9589. fi
  9590. fi
  9591. fi
  9592. done
  9593. done
  9594. if test "X$rpathdirs" != "X"; then
  9595. if test -n "$acl_hardcode_libdir_separator"; then
  9596. alldirs=
  9597. for found_dir in $rpathdirs; do
  9598. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  9599. done
  9600. acl_save_libdir="$libdir"
  9601. libdir="$alldirs"
  9602. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  9603. libdir="$acl_save_libdir"
  9604. LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
  9605. else
  9606. for found_dir in $rpathdirs; do
  9607. acl_save_libdir="$libdir"
  9608. libdir="$found_dir"
  9609. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  9610. libdir="$acl_save_libdir"
  9611. LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
  9612. done
  9613. fi
  9614. fi
  9615. if test "X$ltrpathdirs" != "X"; then
  9616. for found_dir in $ltrpathdirs; do
  9617. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
  9618. done
  9619. fi
  9620. ac_cv_libpth_libs="$LIBPTH"
  9621. ac_cv_libpth_ltlibs="$LTLIBPTH"
  9622. ac_cv_libpth_cppflags="$INCPTH"
  9623. ac_cv_libpth_prefix="$LIBPTH_PREFIX"
  9624. fi
  9625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
  9626. $as_echo "$ac_cv_libpth_libs" >&6; }
  9627. LIBPTH="$ac_cv_libpth_libs"
  9628. LTLIBPTH="$ac_cv_libpth_ltlibs"
  9629. INCPTH="$ac_cv_libpth_cppflags"
  9630. LIBPTH_PREFIX="$ac_cv_libpth_prefix"
  9631. for element in $INCPTH; do
  9632. haveit=
  9633. for x in $CPPFLAGS; do
  9634. acl_save_prefix="$prefix"
  9635. prefix="$acl_final_prefix"
  9636. acl_save_exec_prefix="$exec_prefix"
  9637. exec_prefix="$acl_final_exec_prefix"
  9638. eval x=\"$x\"
  9639. exec_prefix="$acl_save_exec_prefix"
  9640. prefix="$acl_save_prefix"
  9641. if test "X$x" = "X$element"; then
  9642. haveit=yes
  9643. break
  9644. fi
  9645. done
  9646. if test -z "$haveit"; then
  9647. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  9648. fi
  9649. done
  9650. HAVE_LIBPTH=yes
  9651. gl_have_pth=
  9652. gl_save_LIBS="$LIBS"
  9653. LIBS="$LIBS -lpth"
  9654. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9655. /* end confdefs.h. */
  9656. #include <pth.h>
  9657. int
  9658. main ()
  9659. {
  9660. pth_self();
  9661. ;
  9662. return 0;
  9663. }
  9664. _ACEOF
  9665. if ac_fn_cxx_try_link "$LINENO"; then :
  9666. gl_have_pth=yes
  9667. fi
  9668. rm -f core conftest.err conftest.$ac_objext \
  9669. conftest$ac_exeext conftest.$ac_ext
  9670. LIBS="$gl_save_LIBS"
  9671. if test -n "$gl_have_pth"; then
  9672. gl_threads_api=pth
  9673. LIBTHREAD="$LIBPTH"
  9674. LTLIBTHREAD="$LTLIBPTH"
  9675. LIBMULTITHREAD="$LIBTHREAD"
  9676. LTLIBMULTITHREAD="$LTLIBTHREAD"
  9677. $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
  9678. if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
  9679. if test $gl_have_weak = yes; then
  9680. $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
  9681. LIBTHREAD=
  9682. LTLIBTHREAD=
  9683. fi
  9684. fi
  9685. else
  9686. CPPFLAGS="$gl_save_CPPFLAGS"
  9687. fi
  9688. fi
  9689. if test -z "$gl_have_pthread"; then
  9690. if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
  9691. if { case "$host_os" in
  9692. mingw*) true;;
  9693. *) false;;
  9694. esac
  9695. }; then
  9696. gl_threads_api=win32
  9697. $as_echo "#define USE_WIN32_THREADS 1" >>confdefs.h
  9698. fi
  9699. fi
  9700. fi
  9701. fi
  9702. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
  9703. $as_echo_n "checking for multithread API to use... " >&6; }
  9704. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
  9705. $as_echo "$gl_threads_api" >&6; }
  9706. use_additional=yes
  9707. acl_save_prefix="$prefix"
  9708. prefix="$acl_final_prefix"
  9709. acl_save_exec_prefix="$exec_prefix"
  9710. exec_prefix="$acl_final_exec_prefix"
  9711. eval additional_includedir=\"$includedir\"
  9712. eval additional_libdir=\"$libdir\"
  9713. exec_prefix="$acl_save_exec_prefix"
  9714. prefix="$acl_save_prefix"
  9715. # Check whether --with-libiconv-prefix was given.
  9716. if test "${with_libiconv_prefix+set}" = set; then :
  9717. withval=$with_libiconv_prefix;
  9718. if test "X$withval" = "Xno"; then
  9719. use_additional=no
  9720. else
  9721. if test "X$withval" = "X"; then
  9722. acl_save_prefix="$prefix"
  9723. prefix="$acl_final_prefix"
  9724. acl_save_exec_prefix="$exec_prefix"
  9725. exec_prefix="$acl_final_exec_prefix"
  9726. eval additional_includedir=\"$includedir\"
  9727. eval additional_libdir=\"$libdir\"
  9728. exec_prefix="$acl_save_exec_prefix"
  9729. prefix="$acl_save_prefix"
  9730. else
  9731. additional_includedir="$withval/include"
  9732. additional_libdir="$withval/$acl_libdirstem"
  9733. fi
  9734. fi
  9735. fi
  9736. LIBICONV=
  9737. LTLIBICONV=
  9738. INCICONV=
  9739. LIBICONV_PREFIX=
  9740. rpathdirs=
  9741. ltrpathdirs=
  9742. names_already_handled=
  9743. names_next_round='iconv '
  9744. while test -n "$names_next_round"; do
  9745. names_this_round="$names_next_round"
  9746. names_next_round=
  9747. for name in $names_this_round; do
  9748. already_handled=
  9749. for n in $names_already_handled; do
  9750. if test "$n" = "$name"; then
  9751. already_handled=yes
  9752. break
  9753. fi
  9754. done
  9755. if test -z "$already_handled"; then
  9756. names_already_handled="$names_already_handled $name"
  9757. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  9758. eval value=\"\$HAVE_LIB$uppername\"
  9759. if test -n "$value"; then
  9760. if test "$value" = yes; then
  9761. eval value=\"\$LIB$uppername\"
  9762. test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
  9763. eval value=\"\$LTLIB$uppername\"
  9764. test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
  9765. else
  9766. :
  9767. fi
  9768. else
  9769. found_dir=
  9770. found_la=
  9771. found_so=
  9772. found_a=
  9773. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  9774. if test -n "$acl_shlibext"; then
  9775. shrext=".$acl_shlibext" # typically: shrext=.so
  9776. else
  9777. shrext=
  9778. fi
  9779. if test $use_additional = yes; then
  9780. dir="$additional_libdir"
  9781. if test -n "$acl_shlibext"; then
  9782. if test -f "$dir/$libname$shrext"; then
  9783. found_dir="$dir"
  9784. found_so="$dir/$libname$shrext"
  9785. else
  9786. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  9787. ver=`(cd "$dir" && \
  9788. for f in "$libname$shrext".*; do echo "$f"; done \
  9789. | sed -e "s,^$libname$shrext\\\\.,," \
  9790. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  9791. | sed 1q ) 2>/dev/null`
  9792. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  9793. found_dir="$dir"
  9794. found_so="$dir/$libname$shrext.$ver"
  9795. fi
  9796. else
  9797. eval library_names=\"$acl_library_names_spec\"
  9798. for f in $library_names; do
  9799. if test -f "$dir/$f"; then
  9800. found_dir="$dir"
  9801. found_so="$dir/$f"
  9802. break
  9803. fi
  9804. done
  9805. fi
  9806. fi
  9807. fi
  9808. if test "X$found_dir" = "X"; then
  9809. if test -f "$dir/$libname.$acl_libext"; then
  9810. found_dir="$dir"
  9811. found_a="$dir/$libname.$acl_libext"
  9812. fi
  9813. fi
  9814. if test "X$found_dir" != "X"; then
  9815. if test -f "$dir/$libname.la"; then
  9816. found_la="$dir/$libname.la"
  9817. fi
  9818. fi
  9819. fi
  9820. if test "X$found_dir" = "X"; then
  9821. for x in $LDFLAGS $LTLIBICONV; do
  9822. acl_save_prefix="$prefix"
  9823. prefix="$acl_final_prefix"
  9824. acl_save_exec_prefix="$exec_prefix"
  9825. exec_prefix="$acl_final_exec_prefix"
  9826. eval x=\"$x\"
  9827. exec_prefix="$acl_save_exec_prefix"
  9828. prefix="$acl_save_prefix"
  9829. case "$x" in
  9830. -L*)
  9831. dir=`echo "X$x" | sed -e 's/^X-L//'`
  9832. if test -n "$acl_shlibext"; then
  9833. if test -f "$dir/$libname$shrext"; then
  9834. found_dir="$dir"
  9835. found_so="$dir/$libname$shrext"
  9836. else
  9837. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  9838. ver=`(cd "$dir" && \
  9839. for f in "$libname$shrext".*; do echo "$f"; done \
  9840. | sed -e "s,^$libname$shrext\\\\.,," \
  9841. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  9842. | sed 1q ) 2>/dev/null`
  9843. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  9844. found_dir="$dir"
  9845. found_so="$dir/$libname$shrext.$ver"
  9846. fi
  9847. else
  9848. eval library_names=\"$acl_library_names_spec\"
  9849. for f in $library_names; do
  9850. if test -f "$dir/$f"; then
  9851. found_dir="$dir"
  9852. found_so="$dir/$f"
  9853. break
  9854. fi
  9855. done
  9856. fi
  9857. fi
  9858. fi
  9859. if test "X$found_dir" = "X"; then
  9860. if test -f "$dir/$libname.$acl_libext"; then
  9861. found_dir="$dir"
  9862. found_a="$dir/$libname.$acl_libext"
  9863. fi
  9864. fi
  9865. if test "X$found_dir" != "X"; then
  9866. if test -f "$dir/$libname.la"; then
  9867. found_la="$dir/$libname.la"
  9868. fi
  9869. fi
  9870. ;;
  9871. esac
  9872. if test "X$found_dir" != "X"; then
  9873. break
  9874. fi
  9875. done
  9876. fi
  9877. if test "X$found_dir" != "X"; then
  9878. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
  9879. if test "X$found_so" != "X"; then
  9880. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  9881. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  9882. else
  9883. haveit=
  9884. for x in $ltrpathdirs; do
  9885. if test "X$x" = "X$found_dir"; then
  9886. haveit=yes
  9887. break
  9888. fi
  9889. done
  9890. if test -z "$haveit"; then
  9891. ltrpathdirs="$ltrpathdirs $found_dir"
  9892. fi
  9893. if test "$acl_hardcode_direct" = yes; then
  9894. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  9895. else
  9896. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  9897. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  9898. haveit=
  9899. for x in $rpathdirs; do
  9900. if test "X$x" = "X$found_dir"; then
  9901. haveit=yes
  9902. break
  9903. fi
  9904. done
  9905. if test -z "$haveit"; then
  9906. rpathdirs="$rpathdirs $found_dir"
  9907. fi
  9908. else
  9909. haveit=
  9910. for x in $LDFLAGS $LIBICONV; do
  9911. acl_save_prefix="$prefix"
  9912. prefix="$acl_final_prefix"
  9913. acl_save_exec_prefix="$exec_prefix"
  9914. exec_prefix="$acl_final_exec_prefix"
  9915. eval x=\"$x\"
  9916. exec_prefix="$acl_save_exec_prefix"
  9917. prefix="$acl_save_prefix"
  9918. if test "X$x" = "X-L$found_dir"; then
  9919. haveit=yes
  9920. break
  9921. fi
  9922. done
  9923. if test -z "$haveit"; then
  9924. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
  9925. fi
  9926. if test "$acl_hardcode_minus_L" != no; then
  9927. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  9928. else
  9929. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  9930. fi
  9931. fi
  9932. fi
  9933. fi
  9934. else
  9935. if test "X$found_a" != "X"; then
  9936. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
  9937. else
  9938. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
  9939. fi
  9940. fi
  9941. additional_includedir=
  9942. case "$found_dir" in
  9943. */$acl_libdirstem | */$acl_libdirstem/)
  9944. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  9945. LIBICONV_PREFIX="$basedir"
  9946. additional_includedir="$basedir/include"
  9947. ;;
  9948. esac
  9949. if test "X$additional_includedir" != "X"; then
  9950. if test "X$additional_includedir" != "X/usr/include"; then
  9951. haveit=
  9952. if test "X$additional_includedir" = "X/usr/local/include"; then
  9953. if test -n "$GCC"; then
  9954. case $host_os in
  9955. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  9956. esac
  9957. fi
  9958. fi
  9959. if test -z "$haveit"; then
  9960. for x in $CPPFLAGS $INCICONV; do
  9961. acl_save_prefix="$prefix"
  9962. prefix="$acl_final_prefix"
  9963. acl_save_exec_prefix="$exec_prefix"
  9964. exec_prefix="$acl_final_exec_prefix"
  9965. eval x=\"$x\"
  9966. exec_prefix="$acl_save_exec_prefix"
  9967. prefix="$acl_save_prefix"
  9968. if test "X$x" = "X-I$additional_includedir"; then
  9969. haveit=yes
  9970. break
  9971. fi
  9972. done
  9973. if test -z "$haveit"; then
  9974. if test -d "$additional_includedir"; then
  9975. INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
  9976. fi
  9977. fi
  9978. fi
  9979. fi
  9980. fi
  9981. if test -n "$found_la"; then
  9982. save_libdir="$libdir"
  9983. case "$found_la" in
  9984. */* | *\\*) . "$found_la" ;;
  9985. *) . "./$found_la" ;;
  9986. esac
  9987. libdir="$save_libdir"
  9988. for dep in $dependency_libs; do
  9989. case "$dep" in
  9990. -L*)
  9991. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  9992. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  9993. haveit=
  9994. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  9995. if test -n "$GCC"; then
  9996. case $host_os in
  9997. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  9998. esac
  9999. fi
  10000. fi
  10001. if test -z "$haveit"; then
  10002. haveit=
  10003. for x in $LDFLAGS $LIBICONV; do
  10004. acl_save_prefix="$prefix"
  10005. prefix="$acl_final_prefix"
  10006. acl_save_exec_prefix="$exec_prefix"
  10007. exec_prefix="$acl_final_exec_prefix"
  10008. eval x=\"$x\"
  10009. exec_prefix="$acl_save_exec_prefix"
  10010. prefix="$acl_save_prefix"
  10011. if test "X$x" = "X-L$additional_libdir"; then
  10012. haveit=yes
  10013. break
  10014. fi
  10015. done
  10016. if test -z "$haveit"; then
  10017. if test -d "$additional_libdir"; then
  10018. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
  10019. fi
  10020. fi
  10021. haveit=
  10022. for x in $LDFLAGS $LTLIBICONV; do
  10023. acl_save_prefix="$prefix"
  10024. prefix="$acl_final_prefix"
  10025. acl_save_exec_prefix="$exec_prefix"
  10026. exec_prefix="$acl_final_exec_prefix"
  10027. eval x=\"$x\"
  10028. exec_prefix="$acl_save_exec_prefix"
  10029. prefix="$acl_save_prefix"
  10030. if test "X$x" = "X-L$additional_libdir"; then
  10031. haveit=yes
  10032. break
  10033. fi
  10034. done
  10035. if test -z "$haveit"; then
  10036. if test -d "$additional_libdir"; then
  10037. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
  10038. fi
  10039. fi
  10040. fi
  10041. fi
  10042. ;;
  10043. -R*)
  10044. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  10045. if test "$enable_rpath" != no; then
  10046. haveit=
  10047. for x in $rpathdirs; do
  10048. if test "X$x" = "X$dir"; then
  10049. haveit=yes
  10050. break
  10051. fi
  10052. done
  10053. if test -z "$haveit"; then
  10054. rpathdirs="$rpathdirs $dir"
  10055. fi
  10056. haveit=
  10057. for x in $ltrpathdirs; do
  10058. if test "X$x" = "X$dir"; then
  10059. haveit=yes
  10060. break
  10061. fi
  10062. done
  10063. if test -z "$haveit"; then
  10064. ltrpathdirs="$ltrpathdirs $dir"
  10065. fi
  10066. fi
  10067. ;;
  10068. -l*)
  10069. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  10070. ;;
  10071. *.la)
  10072. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  10073. ;;
  10074. *)
  10075. LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
  10076. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
  10077. ;;
  10078. esac
  10079. done
  10080. fi
  10081. else
  10082. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  10083. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
  10084. fi
  10085. fi
  10086. fi
  10087. done
  10088. done
  10089. if test "X$rpathdirs" != "X"; then
  10090. if test -n "$acl_hardcode_libdir_separator"; then
  10091. alldirs=
  10092. for found_dir in $rpathdirs; do
  10093. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  10094. done
  10095. acl_save_libdir="$libdir"
  10096. libdir="$alldirs"
  10097. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  10098. libdir="$acl_save_libdir"
  10099. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  10100. else
  10101. for found_dir in $rpathdirs; do
  10102. acl_save_libdir="$libdir"
  10103. libdir="$found_dir"
  10104. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  10105. libdir="$acl_save_libdir"
  10106. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  10107. done
  10108. fi
  10109. fi
  10110. if test "X$ltrpathdirs" != "X"; then
  10111. for found_dir in $ltrpathdirs; do
  10112. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
  10113. done
  10114. fi
  10115. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10116. /* end confdefs.h. */
  10117. int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
  10118. int
  10119. main ()
  10120. {
  10121. ;
  10122. return 0;
  10123. }
  10124. _ACEOF
  10125. if ac_fn_cxx_try_link "$LINENO"; then :
  10126. $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
  10127. fi
  10128. rm -f core conftest.err conftest.$ac_objext \
  10129. conftest$ac_exeext conftest.$ac_ext
  10130. for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
  10131. do :
  10132. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10133. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  10134. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  10135. cat >>confdefs.h <<_ACEOF
  10136. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10137. _ACEOF
  10138. fi
  10139. done
  10140. for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
  10141. stpcpy strcasecmp strdup strtoul tsearch argz_count argz_stringify \
  10142. argz_next __fsetlocking
  10143. do :
  10144. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10145. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  10146. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  10147. cat >>confdefs.h <<_ACEOF
  10148. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10149. _ACEOF
  10150. fi
  10151. done
  10152. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
  10153. $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
  10154. if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then :
  10155. $as_echo_n "(cached) " >&6
  10156. else
  10157. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10158. /* end confdefs.h. */
  10159. #include <stdio.h>
  10160. int
  10161. main ()
  10162. {
  10163. #ifndef feof_unlocked
  10164. char *p = (char *) feof_unlocked;
  10165. #endif
  10166. ;
  10167. return 0;
  10168. }
  10169. _ACEOF
  10170. if ac_fn_cxx_try_compile "$LINENO"; then :
  10171. ac_cv_have_decl_feof_unlocked=yes
  10172. else
  10173. ac_cv_have_decl_feof_unlocked=no
  10174. fi
  10175. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10176. fi
  10177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
  10178. $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
  10179. if test $ac_cv_have_decl_feof_unlocked = yes; then
  10180. gt_value=1
  10181. else
  10182. gt_value=0
  10183. fi
  10184. cat >>confdefs.h <<_ACEOF
  10185. #define HAVE_DECL_FEOF_UNLOCKED $gt_value
  10186. _ACEOF
  10187. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
  10188. $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
  10189. if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then :
  10190. $as_echo_n "(cached) " >&6
  10191. else
  10192. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10193. /* end confdefs.h. */
  10194. #include <stdio.h>
  10195. int
  10196. main ()
  10197. {
  10198. #ifndef fgets_unlocked
  10199. char *p = (char *) fgets_unlocked;
  10200. #endif
  10201. ;
  10202. return 0;
  10203. }
  10204. _ACEOF
  10205. if ac_fn_cxx_try_compile "$LINENO"; then :
  10206. ac_cv_have_decl_fgets_unlocked=yes
  10207. else
  10208. ac_cv_have_decl_fgets_unlocked=no
  10209. fi
  10210. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10211. fi
  10212. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
  10213. $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
  10214. if test $ac_cv_have_decl_fgets_unlocked = yes; then
  10215. gt_value=1
  10216. else
  10217. gt_value=0
  10218. fi
  10219. cat >>confdefs.h <<_ACEOF
  10220. #define HAVE_DECL_FGETS_UNLOCKED $gt_value
  10221. _ACEOF
  10222. am_save_CPPFLAGS="$CPPFLAGS"
  10223. for element in $INCICONV; do
  10224. haveit=
  10225. for x in $CPPFLAGS; do
  10226. acl_save_prefix="$prefix"
  10227. prefix="$acl_final_prefix"
  10228. acl_save_exec_prefix="$exec_prefix"
  10229. exec_prefix="$acl_final_exec_prefix"
  10230. eval x=\"$x\"
  10231. exec_prefix="$acl_save_exec_prefix"
  10232. prefix="$acl_save_prefix"
  10233. if test "X$x" = "X$element"; then
  10234. haveit=yes
  10235. break
  10236. fi
  10237. done
  10238. if test -z "$haveit"; then
  10239. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  10240. fi
  10241. done
  10242. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
  10243. $as_echo_n "checking for iconv... " >&6; }
  10244. if test "${am_cv_func_iconv+set}" = set; then :
  10245. $as_echo_n "(cached) " >&6
  10246. else
  10247. am_cv_func_iconv="no, consider installing GNU libiconv"
  10248. am_cv_lib_iconv=no
  10249. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10250. /* end confdefs.h. */
  10251. #include <stdlib.h>
  10252. #include <iconv.h>
  10253. int
  10254. main ()
  10255. {
  10256. iconv_t cd = iconv_open("","");
  10257. iconv(cd,NULL,NULL,NULL,NULL);
  10258. iconv_close(cd);
  10259. ;
  10260. return 0;
  10261. }
  10262. _ACEOF
  10263. if ac_fn_cxx_try_link "$LINENO"; then :
  10264. am_cv_func_iconv=yes
  10265. fi
  10266. rm -f core conftest.err conftest.$ac_objext \
  10267. conftest$ac_exeext conftest.$ac_ext
  10268. if test "$am_cv_func_iconv" != yes; then
  10269. am_save_LIBS="$LIBS"
  10270. LIBS="$LIBS $LIBICONV"
  10271. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10272. /* end confdefs.h. */
  10273. #include <stdlib.h>
  10274. #include <iconv.h>
  10275. int
  10276. main ()
  10277. {
  10278. iconv_t cd = iconv_open("","");
  10279. iconv(cd,NULL,NULL,NULL,NULL);
  10280. iconv_close(cd);
  10281. ;
  10282. return 0;
  10283. }
  10284. _ACEOF
  10285. if ac_fn_cxx_try_link "$LINENO"; then :
  10286. am_cv_lib_iconv=yes
  10287. am_cv_func_iconv=yes
  10288. fi
  10289. rm -f core conftest.err conftest.$ac_objext \
  10290. conftest$ac_exeext conftest.$ac_ext
  10291. LIBS="$am_save_LIBS"
  10292. fi
  10293. fi
  10294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
  10295. $as_echo "$am_cv_func_iconv" >&6; }
  10296. if test "$am_cv_func_iconv" = yes; then
  10297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
  10298. $as_echo_n "checking for working iconv... " >&6; }
  10299. if test "${am_cv_func_iconv_works+set}" = set; then :
  10300. $as_echo_n "(cached) " >&6
  10301. else
  10302. am_save_LIBS="$LIBS"
  10303. if test $am_cv_lib_iconv = yes; then
  10304. LIBS="$LIBS $LIBICONV"
  10305. fi
  10306. if test "$cross_compiling" = yes; then :
  10307. case "$host_os" in
  10308. aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
  10309. *) am_cv_func_iconv_works="guessing yes" ;;
  10310. esac
  10311. else
  10312. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10313. /* end confdefs.h. */
  10314. #include <iconv.h>
  10315. #include <string.h>
  10316. int main ()
  10317. {
  10318. /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
  10319. returns. */
  10320. {
  10321. iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
  10322. if (cd_utf8_to_88591 != (iconv_t)(-1))
  10323. {
  10324. static const char input[] = "\342\202\254"; /* EURO SIGN */
  10325. char buf[10];
  10326. const char *inptr = input;
  10327. size_t inbytesleft = strlen (input);
  10328. char *outptr = buf;
  10329. size_t outbytesleft = sizeof (buf);
  10330. size_t res = iconv (cd_utf8_to_88591,
  10331. (char **) &inptr, &inbytesleft,
  10332. &outptr, &outbytesleft);
  10333. if (res == 0)
  10334. return 1;
  10335. }
  10336. }
  10337. #if 0 /* This bug could be worked around by the caller. */
  10338. /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
  10339. {
  10340. iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
  10341. if (cd_88591_to_utf8 != (iconv_t)(-1))
  10342. {
  10343. static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
  10344. char buf[50];
  10345. const char *inptr = input;
  10346. size_t inbytesleft = strlen (input);
  10347. char *outptr = buf;
  10348. size_t outbytesleft = sizeof (buf);
  10349. size_t res = iconv (cd_88591_to_utf8,
  10350. (char **) &inptr, &inbytesleft,
  10351. &outptr, &outbytesleft);
  10352. if ((int)res > 0)
  10353. return 1;
  10354. }
  10355. }
  10356. #endif
  10357. /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
  10358. provided. */
  10359. if (/* Try standardized names. */
  10360. iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
  10361. /* Try IRIX, OSF/1 names. */
  10362. && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
  10363. /* Try AIX names. */
  10364. && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
  10365. /* Try HP-UX names. */
  10366. && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
  10367. return 1;
  10368. return 0;
  10369. }
  10370. _ACEOF
  10371. if ac_fn_cxx_try_run "$LINENO"; then :
  10372. am_cv_func_iconv_works=yes
  10373. else
  10374. am_cv_func_iconv_works=no
  10375. fi
  10376. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10377. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10378. fi
  10379. LIBS="$am_save_LIBS"
  10380. fi
  10381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
  10382. $as_echo "$am_cv_func_iconv_works" >&6; }
  10383. case "$am_cv_func_iconv_works" in
  10384. *no) am_func_iconv=no am_cv_lib_iconv=no ;;
  10385. *) am_func_iconv=yes ;;
  10386. esac
  10387. else
  10388. am_func_iconv=no am_cv_lib_iconv=no
  10389. fi
  10390. if test "$am_func_iconv" = yes; then
  10391. $as_echo "#define HAVE_ICONV 1" >>confdefs.h
  10392. fi
  10393. if test "$am_cv_lib_iconv" = yes; then
  10394. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
  10395. $as_echo_n "checking how to link with libiconv... " >&6; }
  10396. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
  10397. $as_echo "$LIBICONV" >&6; }
  10398. else
  10399. CPPFLAGS="$am_save_CPPFLAGS"
  10400. LIBICONV=
  10401. LTLIBICONV=
  10402. fi
  10403. if test "$am_cv_func_iconv" = yes; then
  10404. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
  10405. $as_echo_n "checking for iconv declaration... " >&6; }
  10406. if test "${am_cv_proto_iconv+set}" = set; then :
  10407. $as_echo_n "(cached) " >&6
  10408. else
  10409. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10410. /* end confdefs.h. */
  10411. #include <stdlib.h>
  10412. #include <iconv.h>
  10413. extern
  10414. #ifdef __cplusplus
  10415. "C"
  10416. #endif
  10417. #if defined(__STDC__) || defined(__cplusplus)
  10418. size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  10419. #else
  10420. size_t iconv();
  10421. #endif
  10422. int
  10423. main ()
  10424. {
  10425. ;
  10426. return 0;
  10427. }
  10428. _ACEOF
  10429. if ac_fn_cxx_try_compile "$LINENO"; then :
  10430. am_cv_proto_iconv_arg1=""
  10431. else
  10432. am_cv_proto_iconv_arg1="const"
  10433. fi
  10434. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10435. am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
  10436. fi
  10437. am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  10438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
  10439. }$am_cv_proto_iconv" >&5
  10440. $as_echo "${ac_t:-
  10441. }$am_cv_proto_iconv" >&6; }
  10442. cat >>confdefs.h <<_ACEOF
  10443. #define ICONV_CONST $am_cv_proto_iconv_arg1
  10444. _ACEOF
  10445. fi
  10446. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NL_LOCALE_NAME macro" >&5
  10447. $as_echo_n "checking for NL_LOCALE_NAME macro... " >&6; }
  10448. if test "${gt_cv_nl_locale_name+set}" = set; then :
  10449. $as_echo_n "(cached) " >&6
  10450. else
  10451. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10452. /* end confdefs.h. */
  10453. #include <langinfo.h>
  10454. #include <locale.h>
  10455. int
  10456. main ()
  10457. {
  10458. char* cs = nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES));
  10459. return !cs;
  10460. ;
  10461. return 0;
  10462. }
  10463. _ACEOF
  10464. if ac_fn_cxx_try_link "$LINENO"; then :
  10465. gt_cv_nl_locale_name=yes
  10466. else
  10467. gt_cv_nl_locale_name=no
  10468. fi
  10469. rm -f core conftest.err conftest.$ac_objext \
  10470. conftest$ac_exeext conftest.$ac_ext
  10471. fi
  10472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_nl_locale_name" >&5
  10473. $as_echo "$gt_cv_nl_locale_name" >&6; }
  10474. if test $gt_cv_nl_locale_name = yes; then
  10475. $as_echo "#define HAVE_NL_LOCALE_NAME 1" >>confdefs.h
  10476. fi
  10477. for ac_prog in bison
  10478. do
  10479. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10480. set dummy $ac_prog; ac_word=$2
  10481. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10482. $as_echo_n "checking for $ac_word... " >&6; }
  10483. if test "${ac_cv_prog_INTLBISON+set}" = set; then :
  10484. $as_echo_n "(cached) " >&6
  10485. else
  10486. if test -n "$INTLBISON"; then
  10487. ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
  10488. else
  10489. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10490. for as_dir in $PATH
  10491. do
  10492. IFS=$as_save_IFS
  10493. test -z "$as_dir" && as_dir=.
  10494. for ac_exec_ext in '' $ac_executable_extensions; do
  10495. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10496. ac_cv_prog_INTLBISON="$ac_prog"
  10497. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10498. break 2
  10499. fi
  10500. done
  10501. done
  10502. IFS=$as_save_IFS
  10503. fi
  10504. fi
  10505. INTLBISON=$ac_cv_prog_INTLBISON
  10506. if test -n "$INTLBISON"; then
  10507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
  10508. $as_echo "$INTLBISON" >&6; }
  10509. else
  10510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10511. $as_echo "no" >&6; }
  10512. fi
  10513. test -n "$INTLBISON" && break
  10514. done
  10515. if test -z "$INTLBISON"; then
  10516. ac_verc_fail=yes
  10517. else
  10518. { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
  10519. $as_echo_n "checking version of bison... " >&6; }
  10520. ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
  10521. case $ac_prog_version in
  10522. '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
  10523. 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
  10524. ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
  10525. *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
  10526. esac
  10527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
  10528. $as_echo "$ac_prog_version" >&6; }
  10529. fi
  10530. if test $ac_verc_fail = yes; then
  10531. INTLBISON=:
  10532. fi
  10533. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
  10534. $as_echo_n "checking for long long int... " >&6; }
  10535. if test "${ac_cv_type_long_long_int+set}" = set; then :
  10536. $as_echo_n "(cached) " >&6
  10537. else
  10538. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10539. /* end confdefs.h. */
  10540. /* Test preprocessor. */
  10541. #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  10542. error in preprocessor;
  10543. #endif
  10544. #if ! (18446744073709551615ULL <= -1ull)
  10545. error in preprocessor;
  10546. #endif
  10547. /* Test literals. */
  10548. long long int ll = 9223372036854775807ll;
  10549. long long int nll = -9223372036854775807LL;
  10550. unsigned long long int ull = 18446744073709551615ULL;
  10551. /* Test constant expressions. */
  10552. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  10553. ? 1 : -1)];
  10554. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  10555. ? 1 : -1)];
  10556. int i = 63;
  10557. int
  10558. main ()
  10559. {
  10560. /* Test availability of runtime routines for shift and division. */
  10561. long long int llmax = 9223372036854775807ll;
  10562. unsigned long long int ullmax = 18446744073709551615ull;
  10563. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  10564. | (llmax / ll) | (llmax % ll)
  10565. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  10566. | (ullmax / ull) | (ullmax % ull));
  10567. ;
  10568. return 0;
  10569. }
  10570. _ACEOF
  10571. if ac_fn_cxx_try_link "$LINENO"; then :
  10572. if test "$cross_compiling" = yes; then :
  10573. ac_cv_type_long_long_int=yes
  10574. else
  10575. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10576. /* end confdefs.h. */
  10577. #include <limits.h>
  10578. #ifndef LLONG_MAX
  10579. # define HALF \
  10580. (1LL << (sizeof (long long int) * CHAR_BIT - 2))
  10581. # define LLONG_MAX (HALF - 1 + HALF)
  10582. #endif
  10583. int
  10584. main ()
  10585. {
  10586. long long int n = 1;
  10587. int i;
  10588. for (i = 0; ; i++)
  10589. {
  10590. long long int m = n << i;
  10591. if (m >> i != n)
  10592. return 1;
  10593. if (LLONG_MAX / 2 < m)
  10594. break;
  10595. }
  10596. return 0;
  10597. ;
  10598. return 0;
  10599. }
  10600. _ACEOF
  10601. if ac_fn_cxx_try_run "$LINENO"; then :
  10602. ac_cv_type_long_long_int=yes
  10603. else
  10604. ac_cv_type_long_long_int=no
  10605. fi
  10606. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10607. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10608. fi
  10609. else
  10610. ac_cv_type_long_long_int=no
  10611. fi
  10612. rm -f core conftest.err conftest.$ac_objext \
  10613. conftest$ac_exeext conftest.$ac_ext
  10614. fi
  10615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
  10616. $as_echo "$ac_cv_type_long_long_int" >&6; }
  10617. if test $ac_cv_type_long_long_int = yes; then
  10618. $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
  10619. fi
  10620. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
  10621. $as_echo_n "checking for wchar_t... " >&6; }
  10622. if test "${gt_cv_c_wchar_t+set}" = set; then :
  10623. $as_echo_n "(cached) " >&6
  10624. else
  10625. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10626. /* end confdefs.h. */
  10627. #include <stddef.h>
  10628. wchar_t foo = (wchar_t)'\0';
  10629. int
  10630. main ()
  10631. {
  10632. ;
  10633. return 0;
  10634. }
  10635. _ACEOF
  10636. if ac_fn_cxx_try_compile "$LINENO"; then :
  10637. gt_cv_c_wchar_t=yes
  10638. else
  10639. gt_cv_c_wchar_t=no
  10640. fi
  10641. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10642. fi
  10643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
  10644. $as_echo "$gt_cv_c_wchar_t" >&6; }
  10645. if test $gt_cv_c_wchar_t = yes; then
  10646. $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
  10647. fi
  10648. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
  10649. $as_echo_n "checking for wint_t... " >&6; }
  10650. if test "${gt_cv_c_wint_t+set}" = set; then :
  10651. $as_echo_n "(cached) " >&6
  10652. else
  10653. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10654. /* end confdefs.h. */
  10655. /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
  10656. <wchar.h>.
  10657. BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
  10658. before <wchar.h>. */
  10659. #include <stddef.h>
  10660. #include <stdio.h>
  10661. #include <time.h>
  10662. #include <wchar.h>
  10663. wint_t foo = (wchar_t)'\0';
  10664. int
  10665. main ()
  10666. {
  10667. ;
  10668. return 0;
  10669. }
  10670. _ACEOF
  10671. if ac_fn_cxx_try_compile "$LINENO"; then :
  10672. gt_cv_c_wint_t=yes
  10673. else
  10674. gt_cv_c_wint_t=no
  10675. fi
  10676. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10677. fi
  10678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
  10679. $as_echo "$gt_cv_c_wint_t" >&6; }
  10680. if test $gt_cv_c_wint_t = yes; then
  10681. $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
  10682. fi
  10683. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
  10684. $as_echo_n "checking for intmax_t... " >&6; }
  10685. if test "${gt_cv_c_intmax_t+set}" = set; then :
  10686. $as_echo_n "(cached) " >&6
  10687. else
  10688. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10689. /* end confdefs.h. */
  10690. #include <stddef.h>
  10691. #include <stdlib.h>
  10692. #if HAVE_STDINT_H_WITH_UINTMAX
  10693. #include <stdint.h>
  10694. #endif
  10695. #if HAVE_INTTYPES_H_WITH_UINTMAX
  10696. #include <inttypes.h>
  10697. #endif
  10698. int
  10699. main ()
  10700. {
  10701. intmax_t x = -1;
  10702. return !x;
  10703. ;
  10704. return 0;
  10705. }
  10706. _ACEOF
  10707. if ac_fn_cxx_try_compile "$LINENO"; then :
  10708. gt_cv_c_intmax_t=yes
  10709. else
  10710. gt_cv_c_intmax_t=no
  10711. fi
  10712. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10713. fi
  10714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
  10715. $as_echo "$gt_cv_c_intmax_t" >&6; }
  10716. if test $gt_cv_c_intmax_t = yes; then
  10717. $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
  10718. fi
  10719. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
  10720. $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
  10721. if test "${gt_cv_func_printf_posix+set}" = set; then :
  10722. $as_echo_n "(cached) " >&6
  10723. else
  10724. if test "$cross_compiling" = yes; then :
  10725. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10726. /* end confdefs.h. */
  10727. #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
  10728. notposix
  10729. #endif
  10730. _ACEOF
  10731. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10732. $EGREP "notposix" >/dev/null 2>&1; then :
  10733. gt_cv_func_printf_posix="guessing no"
  10734. else
  10735. gt_cv_func_printf_posix="guessing yes"
  10736. fi
  10737. rm -f conftest*
  10738. else
  10739. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10740. /* end confdefs.h. */
  10741. #include <stdio.h>
  10742. #include <string.h>
  10743. /* The string "%2$d %1$d", with dollar characters protected from the shell's
  10744. dollar expansion (possibly an autoconf bug). */
  10745. static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
  10746. static char buf[100];
  10747. int main ()
  10748. {
  10749. sprintf (buf, format, 33, 55);
  10750. return (strcmp (buf, "55 33") != 0);
  10751. }
  10752. _ACEOF
  10753. if ac_fn_cxx_try_run "$LINENO"; then :
  10754. gt_cv_func_printf_posix=yes
  10755. else
  10756. gt_cv_func_printf_posix=no
  10757. fi
  10758. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10759. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10760. fi
  10761. fi
  10762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
  10763. $as_echo "$gt_cv_func_printf_posix" >&6; }
  10764. case $gt_cv_func_printf_posix in
  10765. *yes)
  10766. $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
  10767. ;;
  10768. esac
  10769. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
  10770. $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
  10771. if test "${ac_cv_gnu_library_2_1+set}" = set; then :
  10772. $as_echo_n "(cached) " >&6
  10773. else
  10774. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10775. /* end confdefs.h. */
  10776. #include <features.h>
  10777. #ifdef __GNU_LIBRARY__
  10778. #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
  10779. Lucky GNU user
  10780. #endif
  10781. #endif
  10782. _ACEOF
  10783. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10784. $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
  10785. ac_cv_gnu_library_2_1=yes
  10786. else
  10787. ac_cv_gnu_library_2_1=no
  10788. fi
  10789. rm -f conftest*
  10790. fi
  10791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
  10792. $as_echo "$ac_cv_gnu_library_2_1" >&6; }
  10793. GLIBC21="$ac_cv_gnu_library_2_1"
  10794. for ac_header in stdint.h
  10795. do :
  10796. ac_fn_cxx_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
  10797. if test "x$ac_cv_header_stdint_h" = x""yes; then :
  10798. cat >>confdefs.h <<_ACEOF
  10799. #define HAVE_STDINT_H 1
  10800. _ACEOF
  10801. fi
  10802. done
  10803. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
  10804. $as_echo_n "checking for SIZE_MAX... " >&6; }
  10805. if test "${gl_cv_size_max+set}" = set; then :
  10806. $as_echo_n "(cached) " >&6
  10807. else
  10808. gl_cv_size_max=
  10809. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10810. /* end confdefs.h. */
  10811. #include <limits.h>
  10812. #if HAVE_STDINT_H
  10813. #include <stdint.h>
  10814. #endif
  10815. #ifdef SIZE_MAX
  10816. Found it
  10817. #endif
  10818. _ACEOF
  10819. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10820. $EGREP "Found it" >/dev/null 2>&1; then :
  10821. gl_cv_size_max=yes
  10822. fi
  10823. rm -f conftest*
  10824. if test -z "$gl_cv_size_max"; then
  10825. if ac_fn_cxx_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
  10826. #include <limits.h>"; then :
  10827. else
  10828. size_t_bits_minus_1=
  10829. fi
  10830. if ac_fn_cxx_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
  10831. else
  10832. fits_in_uint=
  10833. fi
  10834. if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
  10835. if test $fits_in_uint = 1; then
  10836. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10837. /* end confdefs.h. */
  10838. #include <stddef.h>
  10839. extern size_t foo;
  10840. extern unsigned long foo;
  10841. int
  10842. main ()
  10843. {
  10844. ;
  10845. return 0;
  10846. }
  10847. _ACEOF
  10848. if ac_fn_cxx_try_compile "$LINENO"; then :
  10849. fits_in_uint=0
  10850. fi
  10851. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10852. fi
  10853. if test $fits_in_uint = 1; then
  10854. gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
  10855. else
  10856. gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
  10857. fi
  10858. else
  10859. gl_cv_size_max='((size_t)~(size_t)0)'
  10860. fi
  10861. fi
  10862. fi
  10863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
  10864. $as_echo "$gl_cv_size_max" >&6; }
  10865. if test "$gl_cv_size_max" != yes; then
  10866. cat >>confdefs.h <<_ACEOF
  10867. #define SIZE_MAX $gl_cv_size_max
  10868. _ACEOF
  10869. fi
  10870. for ac_header in stdint.h
  10871. do :
  10872. ac_fn_cxx_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
  10873. if test "x$ac_cv_header_stdint_h" = x""yes; then :
  10874. cat >>confdefs.h <<_ACEOF
  10875. #define HAVE_STDINT_H 1
  10876. _ACEOF
  10877. fi
  10878. done
  10879. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
  10880. $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
  10881. if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
  10882. $as_echo_n "(cached) " >&6
  10883. else
  10884. gt_save_LIBS="$LIBS"
  10885. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  10886. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10887. /* end confdefs.h. */
  10888. #include <CoreFoundation/CFPreferences.h>
  10889. int
  10890. main ()
  10891. {
  10892. CFPreferencesCopyAppValue(NULL, NULL)
  10893. ;
  10894. return 0;
  10895. }
  10896. _ACEOF
  10897. if ac_fn_cxx_try_link "$LINENO"; then :
  10898. gt_cv_func_CFPreferencesCopyAppValue=yes
  10899. else
  10900. gt_cv_func_CFPreferencesCopyAppValue=no
  10901. fi
  10902. rm -f core conftest.err conftest.$ac_objext \
  10903. conftest$ac_exeext conftest.$ac_ext
  10904. LIBS="$gt_save_LIBS"
  10905. fi
  10906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
  10907. $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  10908. if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  10909. $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
  10910. fi
  10911. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
  10912. $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
  10913. if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
  10914. $as_echo_n "(cached) " >&6
  10915. else
  10916. gt_save_LIBS="$LIBS"
  10917. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  10918. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10919. /* end confdefs.h. */
  10920. #include <CoreFoundation/CFLocale.h>
  10921. int
  10922. main ()
  10923. {
  10924. CFLocaleCopyCurrent();
  10925. ;
  10926. return 0;
  10927. }
  10928. _ACEOF
  10929. if ac_fn_cxx_try_link "$LINENO"; then :
  10930. gt_cv_func_CFLocaleCopyCurrent=yes
  10931. else
  10932. gt_cv_func_CFLocaleCopyCurrent=no
  10933. fi
  10934. rm -f core conftest.err conftest.$ac_objext \
  10935. conftest$ac_exeext conftest.$ac_ext
  10936. LIBS="$gt_save_LIBS"
  10937. fi
  10938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  10939. $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  10940. if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  10941. $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
  10942. fi
  10943. INTL_MACOSX_LIBS=
  10944. if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  10945. INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  10946. fi
  10947. ac_fn_cxx_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
  10948. if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
  10949. else
  10950. $as_echo "#define ptrdiff_t long" >>confdefs.h
  10951. fi
  10952. for ac_header in stddef.h stdlib.h string.h
  10953. do :
  10954. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10955. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  10956. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  10957. cat >>confdefs.h <<_ACEOF
  10958. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10959. _ACEOF
  10960. fi
  10961. done
  10962. for ac_func in asprintf fwprintf putenv setenv setlocale snprintf wcslen
  10963. do :
  10964. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10965. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  10966. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  10967. cat >>confdefs.h <<_ACEOF
  10968. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10969. _ACEOF
  10970. fi
  10971. done
  10972. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
  10973. $as_echo_n "checking whether _snprintf is declared... " >&6; }
  10974. if test "${ac_cv_have_decl__snprintf+set}" = set; then :
  10975. $as_echo_n "(cached) " >&6
  10976. else
  10977. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10978. /* end confdefs.h. */
  10979. #include <stdio.h>
  10980. int
  10981. main ()
  10982. {
  10983. #ifndef _snprintf
  10984. char *p = (char *) _snprintf;
  10985. #endif
  10986. ;
  10987. return 0;
  10988. }
  10989. _ACEOF
  10990. if ac_fn_cxx_try_compile "$LINENO"; then :
  10991. ac_cv_have_decl__snprintf=yes
  10992. else
  10993. ac_cv_have_decl__snprintf=no
  10994. fi
  10995. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10996. fi
  10997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
  10998. $as_echo "$ac_cv_have_decl__snprintf" >&6; }
  10999. if test $ac_cv_have_decl__snprintf = yes; then
  11000. gt_value=1
  11001. else
  11002. gt_value=0
  11003. fi
  11004. cat >>confdefs.h <<_ACEOF
  11005. #define HAVE_DECL__SNPRINTF $gt_value
  11006. _ACEOF
  11007. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
  11008. $as_echo_n "checking whether _snwprintf is declared... " >&6; }
  11009. if test "${ac_cv_have_decl__snwprintf+set}" = set; then :
  11010. $as_echo_n "(cached) " >&6
  11011. else
  11012. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11013. /* end confdefs.h. */
  11014. #include <stdio.h>
  11015. int
  11016. main ()
  11017. {
  11018. #ifndef _snwprintf
  11019. char *p = (char *) _snwprintf;
  11020. #endif
  11021. ;
  11022. return 0;
  11023. }
  11024. _ACEOF
  11025. if ac_fn_cxx_try_compile "$LINENO"; then :
  11026. ac_cv_have_decl__snwprintf=yes
  11027. else
  11028. ac_cv_have_decl__snwprintf=no
  11029. fi
  11030. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11031. fi
  11032. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
  11033. $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
  11034. if test $ac_cv_have_decl__snwprintf = yes; then
  11035. gt_value=1
  11036. else
  11037. gt_value=0
  11038. fi
  11039. cat >>confdefs.h <<_ACEOF
  11040. #define HAVE_DECL__SNWPRINTF $gt_value
  11041. _ACEOF
  11042. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
  11043. $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
  11044. if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then :
  11045. $as_echo_n "(cached) " >&6
  11046. else
  11047. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11048. /* end confdefs.h. */
  11049. #include <stdio.h>
  11050. int
  11051. main ()
  11052. {
  11053. #ifndef getc_unlocked
  11054. char *p = (char *) getc_unlocked;
  11055. #endif
  11056. ;
  11057. return 0;
  11058. }
  11059. _ACEOF
  11060. if ac_fn_cxx_try_compile "$LINENO"; then :
  11061. ac_cv_have_decl_getc_unlocked=yes
  11062. else
  11063. ac_cv_have_decl_getc_unlocked=no
  11064. fi
  11065. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11066. fi
  11067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
  11068. $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
  11069. if test $ac_cv_have_decl_getc_unlocked = yes; then
  11070. gt_value=1
  11071. else
  11072. gt_value=0
  11073. fi
  11074. cat >>confdefs.h <<_ACEOF
  11075. #define HAVE_DECL_GETC_UNLOCKED $gt_value
  11076. _ACEOF
  11077. case $gt_cv_func_printf_posix in
  11078. *yes) HAVE_POSIX_PRINTF=1 ;;
  11079. *) HAVE_POSIX_PRINTF=0 ;;
  11080. esac
  11081. if test "$ac_cv_func_asprintf" = yes; then
  11082. HAVE_ASPRINTF=1
  11083. else
  11084. HAVE_ASPRINTF=0
  11085. fi
  11086. if test "$ac_cv_func_snprintf" = yes; then
  11087. HAVE_SNPRINTF=1
  11088. else
  11089. HAVE_SNPRINTF=0
  11090. fi
  11091. if test "$ac_cv_func_wprintf" = yes; then
  11092. HAVE_WPRINTF=1
  11093. else
  11094. HAVE_WPRINTF=0
  11095. fi
  11096. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
  11097. $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
  11098. if test "${am_cv_langinfo_codeset+set}" = set; then :
  11099. $as_echo_n "(cached) " >&6
  11100. else
  11101. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11102. /* end confdefs.h. */
  11103. #include <langinfo.h>
  11104. int
  11105. main ()
  11106. {
  11107. char* cs = nl_langinfo(CODESET); return !cs;
  11108. ;
  11109. return 0;
  11110. }
  11111. _ACEOF
  11112. if ac_fn_cxx_try_link "$LINENO"; then :
  11113. am_cv_langinfo_codeset=yes
  11114. else
  11115. am_cv_langinfo_codeset=no
  11116. fi
  11117. rm -f core conftest.err conftest.$ac_objext \
  11118. conftest$ac_exeext conftest.$ac_ext
  11119. fi
  11120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
  11121. $as_echo "$am_cv_langinfo_codeset" >&6; }
  11122. if test $am_cv_langinfo_codeset = yes; then
  11123. $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
  11124. fi
  11125. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
  11126. $as_echo_n "checking for LC_MESSAGES... " >&6; }
  11127. if test "${gt_cv_val_LC_MESSAGES+set}" = set; then :
  11128. $as_echo_n "(cached) " >&6
  11129. else
  11130. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11131. /* end confdefs.h. */
  11132. #include <locale.h>
  11133. int
  11134. main ()
  11135. {
  11136. return LC_MESSAGES
  11137. ;
  11138. return 0;
  11139. }
  11140. _ACEOF
  11141. if ac_fn_cxx_try_link "$LINENO"; then :
  11142. gt_cv_val_LC_MESSAGES=yes
  11143. else
  11144. gt_cv_val_LC_MESSAGES=no
  11145. fi
  11146. rm -f core conftest.err conftest.$ac_objext \
  11147. conftest$ac_exeext conftest.$ac_ext
  11148. fi
  11149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
  11150. $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
  11151. if test $gt_cv_val_LC_MESSAGES = yes; then
  11152. $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
  11153. fi
  11154. if test "$enable_shared" = yes; then
  11155. case "$host_os" in
  11156. mingw* | cygwin*) is_woe32dll=yes ;;
  11157. *) is_woe32dll=no ;;
  11158. esac
  11159. else
  11160. is_woe32dll=no
  11161. fi
  11162. WOE32DLL=$is_woe32dll
  11163. case "$host_os" in
  11164. mingw* | cygwin*) is_woe32=yes ;;
  11165. *) is_woe32=no ;;
  11166. esac
  11167. WOE32=$is_woe32
  11168. if test $WOE32 = yes; then
  11169. if test -n "$ac_tool_prefix"; then
  11170. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  11171. set dummy ${ac_tool_prefix}windres; ac_word=$2
  11172. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11173. $as_echo_n "checking for $ac_word... " >&6; }
  11174. if test "${ac_cv_prog_WINDRES+set}" = set; then :
  11175. $as_echo_n "(cached) " >&6
  11176. else
  11177. if test -n "$WINDRES"; then
  11178. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  11179. else
  11180. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11181. for as_dir in $PATH
  11182. do
  11183. IFS=$as_save_IFS
  11184. test -z "$as_dir" && as_dir=.
  11185. for ac_exec_ext in '' $ac_executable_extensions; do
  11186. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11187. ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
  11188. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11189. break 2
  11190. fi
  11191. done
  11192. done
  11193. IFS=$as_save_IFS
  11194. fi
  11195. fi
  11196. WINDRES=$ac_cv_prog_WINDRES
  11197. if test -n "$WINDRES"; then
  11198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
  11199. $as_echo "$WINDRES" >&6; }
  11200. else
  11201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11202. $as_echo "no" >&6; }
  11203. fi
  11204. fi
  11205. if test -z "$ac_cv_prog_WINDRES"; then
  11206. ac_ct_WINDRES=$WINDRES
  11207. # Extract the first word of "windres", so it can be a program name with args.
  11208. set dummy windres; ac_word=$2
  11209. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11210. $as_echo_n "checking for $ac_word... " >&6; }
  11211. if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
  11212. $as_echo_n "(cached) " >&6
  11213. else
  11214. if test -n "$ac_ct_WINDRES"; then
  11215. ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
  11216. else
  11217. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11218. for as_dir in $PATH
  11219. do
  11220. IFS=$as_save_IFS
  11221. test -z "$as_dir" && as_dir=.
  11222. for ac_exec_ext in '' $ac_executable_extensions; do
  11223. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11224. ac_cv_prog_ac_ct_WINDRES="windres"
  11225. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11226. break 2
  11227. fi
  11228. done
  11229. done
  11230. IFS=$as_save_IFS
  11231. fi
  11232. fi
  11233. ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
  11234. if test -n "$ac_ct_WINDRES"; then
  11235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
  11236. $as_echo "$ac_ct_WINDRES" >&6; }
  11237. else
  11238. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11239. $as_echo "no" >&6; }
  11240. fi
  11241. if test "x$ac_ct_WINDRES" = x; then
  11242. WINDRES=""
  11243. else
  11244. case $cross_compiling:$ac_tool_warned in
  11245. yes:)
  11246. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11247. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11248. ac_tool_warned=yes ;;
  11249. esac
  11250. WINDRES=$ac_ct_WINDRES
  11251. fi
  11252. else
  11253. WINDRES="$ac_cv_prog_WINDRES"
  11254. fi
  11255. fi
  11256. case "$host_os" in
  11257. hpux*) LTLIBC="" ;;
  11258. *) LTLIBC="-lc" ;;
  11259. esac
  11260. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
  11261. $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
  11262. if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
  11263. $as_echo_n "(cached) " >&6
  11264. else
  11265. gt_save_LIBS="$LIBS"
  11266. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  11267. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11268. /* end confdefs.h. */
  11269. #include <CoreFoundation/CFPreferences.h>
  11270. int
  11271. main ()
  11272. {
  11273. CFPreferencesCopyAppValue(NULL, NULL)
  11274. ;
  11275. return 0;
  11276. }
  11277. _ACEOF
  11278. if ac_fn_cxx_try_link "$LINENO"; then :
  11279. gt_cv_func_CFPreferencesCopyAppValue=yes
  11280. else
  11281. gt_cv_func_CFPreferencesCopyAppValue=no
  11282. fi
  11283. rm -f core conftest.err conftest.$ac_objext \
  11284. conftest$ac_exeext conftest.$ac_ext
  11285. LIBS="$gt_save_LIBS"
  11286. fi
  11287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
  11288. $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  11289. if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  11290. $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
  11291. fi
  11292. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
  11293. $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
  11294. if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
  11295. $as_echo_n "(cached) " >&6
  11296. else
  11297. gt_save_LIBS="$LIBS"
  11298. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  11299. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11300. /* end confdefs.h. */
  11301. #include <CoreFoundation/CFLocale.h>
  11302. int
  11303. main ()
  11304. {
  11305. CFLocaleCopyCurrent();
  11306. ;
  11307. return 0;
  11308. }
  11309. _ACEOF
  11310. if ac_fn_cxx_try_link "$LINENO"; then :
  11311. gt_cv_func_CFLocaleCopyCurrent=yes
  11312. else
  11313. gt_cv_func_CFLocaleCopyCurrent=no
  11314. fi
  11315. rm -f core conftest.err conftest.$ac_objext \
  11316. conftest$ac_exeext conftest.$ac_ext
  11317. LIBS="$gt_save_LIBS"
  11318. fi
  11319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  11320. $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  11321. if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  11322. $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
  11323. fi
  11324. INTL_MACOSX_LIBS=
  11325. if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  11326. INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  11327. fi
  11328. BUILD_INCLUDED_LIBINTL=no
  11329. USE_INCLUDED_LIBINTL=no
  11330. LIBINTL=
  11331. LTLIBINTL=
  11332. POSUB=
  11333. case " $gt_needs " in
  11334. *" need-formatstring-macros "*) gt_api_version=3 ;;
  11335. *" need-ngettext "*) gt_api_version=2 ;;
  11336. *) gt_api_version=1 ;;
  11337. esac
  11338. gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
  11339. gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
  11340. if test "$USE_NLS" = "yes"; then
  11341. gt_use_preinstalled_gnugettext=no
  11342. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
  11343. $as_echo_n "checking whether included gettext is requested... " >&6; }
  11344. # Check whether --with-included-gettext was given.
  11345. if test "${with_included_gettext+set}" = set; then :
  11346. withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
  11347. else
  11348. nls_cv_force_use_gnu_gettext=no
  11349. fi
  11350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
  11351. $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
  11352. nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
  11353. if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
  11354. if test $gt_api_version -ge 3; then
  11355. gt_revision_test_code='
  11356. #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
  11357. #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
  11358. #endif
  11359. typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
  11360. '
  11361. else
  11362. gt_revision_test_code=
  11363. fi
  11364. if test $gt_api_version -ge 2; then
  11365. gt_expression_test_code=' + * ngettext ("", "", 0)'
  11366. else
  11367. gt_expression_test_code=
  11368. fi
  11369. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
  11370. $as_echo_n "checking for GNU gettext in libc... " >&6; }
  11371. if eval "test \"\${$gt_func_gnugettext_libc+set}\"" = set; then :
  11372. $as_echo_n "(cached) " >&6
  11373. else
  11374. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11375. /* end confdefs.h. */
  11376. #include <libintl.h>
  11377. $gt_revision_test_code
  11378. extern int _nl_msg_cat_cntr;
  11379. extern int *_nl_domain_bindings;
  11380. int
  11381. main ()
  11382. {
  11383. bindtextdomain ("", "");
  11384. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
  11385. ;
  11386. return 0;
  11387. }
  11388. _ACEOF
  11389. if ac_fn_cxx_try_link "$LINENO"; then :
  11390. eval "$gt_func_gnugettext_libc=yes"
  11391. else
  11392. eval "$gt_func_gnugettext_libc=no"
  11393. fi
  11394. rm -f core conftest.err conftest.$ac_objext \
  11395. conftest$ac_exeext conftest.$ac_ext
  11396. fi
  11397. eval ac_res=\$$gt_func_gnugettext_libc
  11398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  11399. $as_echo "$ac_res" >&6; }
  11400. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
  11401. use_additional=yes
  11402. acl_save_prefix="$prefix"
  11403. prefix="$acl_final_prefix"
  11404. acl_save_exec_prefix="$exec_prefix"
  11405. exec_prefix="$acl_final_exec_prefix"
  11406. eval additional_includedir=\"$includedir\"
  11407. eval additional_libdir=\"$libdir\"
  11408. exec_prefix="$acl_save_exec_prefix"
  11409. prefix="$acl_save_prefix"
  11410. # Check whether --with-libintl-prefix was given.
  11411. if test "${with_libintl_prefix+set}" = set; then :
  11412. withval=$with_libintl_prefix;
  11413. if test "X$withval" = "Xno"; then
  11414. use_additional=no
  11415. else
  11416. if test "X$withval" = "X"; then
  11417. acl_save_prefix="$prefix"
  11418. prefix="$acl_final_prefix"
  11419. acl_save_exec_prefix="$exec_prefix"
  11420. exec_prefix="$acl_final_exec_prefix"
  11421. eval additional_includedir=\"$includedir\"
  11422. eval additional_libdir=\"$libdir\"
  11423. exec_prefix="$acl_save_exec_prefix"
  11424. prefix="$acl_save_prefix"
  11425. else
  11426. additional_includedir="$withval/include"
  11427. additional_libdir="$withval/$acl_libdirstem"
  11428. fi
  11429. fi
  11430. fi
  11431. LIBINTL=
  11432. LTLIBINTL=
  11433. INCINTL=
  11434. LIBINTL_PREFIX=
  11435. rpathdirs=
  11436. ltrpathdirs=
  11437. names_already_handled=
  11438. names_next_round='intl '
  11439. while test -n "$names_next_round"; do
  11440. names_this_round="$names_next_round"
  11441. names_next_round=
  11442. for name in $names_this_round; do
  11443. already_handled=
  11444. for n in $names_already_handled; do
  11445. if test "$n" = "$name"; then
  11446. already_handled=yes
  11447. break
  11448. fi
  11449. done
  11450. if test -z "$already_handled"; then
  11451. names_already_handled="$names_already_handled $name"
  11452. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  11453. eval value=\"\$HAVE_LIB$uppername\"
  11454. if test -n "$value"; then
  11455. if test "$value" = yes; then
  11456. eval value=\"\$LIB$uppername\"
  11457. test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
  11458. eval value=\"\$LTLIB$uppername\"
  11459. test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
  11460. else
  11461. :
  11462. fi
  11463. else
  11464. found_dir=
  11465. found_la=
  11466. found_so=
  11467. found_a=
  11468. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  11469. if test -n "$acl_shlibext"; then
  11470. shrext=".$acl_shlibext" # typically: shrext=.so
  11471. else
  11472. shrext=
  11473. fi
  11474. if test $use_additional = yes; then
  11475. dir="$additional_libdir"
  11476. if test -n "$acl_shlibext"; then
  11477. if test -f "$dir/$libname$shrext"; then
  11478. found_dir="$dir"
  11479. found_so="$dir/$libname$shrext"
  11480. else
  11481. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  11482. ver=`(cd "$dir" && \
  11483. for f in "$libname$shrext".*; do echo "$f"; done \
  11484. | sed -e "s,^$libname$shrext\\\\.,," \
  11485. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  11486. | sed 1q ) 2>/dev/null`
  11487. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  11488. found_dir="$dir"
  11489. found_so="$dir/$libname$shrext.$ver"
  11490. fi
  11491. else
  11492. eval library_names=\"$acl_library_names_spec\"
  11493. for f in $library_names; do
  11494. if test -f "$dir/$f"; then
  11495. found_dir="$dir"
  11496. found_so="$dir/$f"
  11497. break
  11498. fi
  11499. done
  11500. fi
  11501. fi
  11502. fi
  11503. if test "X$found_dir" = "X"; then
  11504. if test -f "$dir/$libname.$acl_libext"; then
  11505. found_dir="$dir"
  11506. found_a="$dir/$libname.$acl_libext"
  11507. fi
  11508. fi
  11509. if test "X$found_dir" != "X"; then
  11510. if test -f "$dir/$libname.la"; then
  11511. found_la="$dir/$libname.la"
  11512. fi
  11513. fi
  11514. fi
  11515. if test "X$found_dir" = "X"; then
  11516. for x in $LDFLAGS $LTLIBINTL; do
  11517. acl_save_prefix="$prefix"
  11518. prefix="$acl_final_prefix"
  11519. acl_save_exec_prefix="$exec_prefix"
  11520. exec_prefix="$acl_final_exec_prefix"
  11521. eval x=\"$x\"
  11522. exec_prefix="$acl_save_exec_prefix"
  11523. prefix="$acl_save_prefix"
  11524. case "$x" in
  11525. -L*)
  11526. dir=`echo "X$x" | sed -e 's/^X-L//'`
  11527. if test -n "$acl_shlibext"; then
  11528. if test -f "$dir/$libname$shrext"; then
  11529. found_dir="$dir"
  11530. found_so="$dir/$libname$shrext"
  11531. else
  11532. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  11533. ver=`(cd "$dir" && \
  11534. for f in "$libname$shrext".*; do echo "$f"; done \
  11535. | sed -e "s,^$libname$shrext\\\\.,," \
  11536. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  11537. | sed 1q ) 2>/dev/null`
  11538. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  11539. found_dir="$dir"
  11540. found_so="$dir/$libname$shrext.$ver"
  11541. fi
  11542. else
  11543. eval library_names=\"$acl_library_names_spec\"
  11544. for f in $library_names; do
  11545. if test -f "$dir/$f"; then
  11546. found_dir="$dir"
  11547. found_so="$dir/$f"
  11548. break
  11549. fi
  11550. done
  11551. fi
  11552. fi
  11553. fi
  11554. if test "X$found_dir" = "X"; then
  11555. if test -f "$dir/$libname.$acl_libext"; then
  11556. found_dir="$dir"
  11557. found_a="$dir/$libname.$acl_libext"
  11558. fi
  11559. fi
  11560. if test "X$found_dir" != "X"; then
  11561. if test -f "$dir/$libname.la"; then
  11562. found_la="$dir/$libname.la"
  11563. fi
  11564. fi
  11565. ;;
  11566. esac
  11567. if test "X$found_dir" != "X"; then
  11568. break
  11569. fi
  11570. done
  11571. fi
  11572. if test "X$found_dir" != "X"; then
  11573. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
  11574. if test "X$found_so" != "X"; then
  11575. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  11576. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  11577. else
  11578. haveit=
  11579. for x in $ltrpathdirs; do
  11580. if test "X$x" = "X$found_dir"; then
  11581. haveit=yes
  11582. break
  11583. fi
  11584. done
  11585. if test -z "$haveit"; then
  11586. ltrpathdirs="$ltrpathdirs $found_dir"
  11587. fi
  11588. if test "$acl_hardcode_direct" = yes; then
  11589. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  11590. else
  11591. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  11592. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  11593. haveit=
  11594. for x in $rpathdirs; do
  11595. if test "X$x" = "X$found_dir"; then
  11596. haveit=yes
  11597. break
  11598. fi
  11599. done
  11600. if test -z "$haveit"; then
  11601. rpathdirs="$rpathdirs $found_dir"
  11602. fi
  11603. else
  11604. haveit=
  11605. for x in $LDFLAGS $LIBINTL; do
  11606. acl_save_prefix="$prefix"
  11607. prefix="$acl_final_prefix"
  11608. acl_save_exec_prefix="$exec_prefix"
  11609. exec_prefix="$acl_final_exec_prefix"
  11610. eval x=\"$x\"
  11611. exec_prefix="$acl_save_exec_prefix"
  11612. prefix="$acl_save_prefix"
  11613. if test "X$x" = "X-L$found_dir"; then
  11614. haveit=yes
  11615. break
  11616. fi
  11617. done
  11618. if test -z "$haveit"; then
  11619. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
  11620. fi
  11621. if test "$acl_hardcode_minus_L" != no; then
  11622. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  11623. else
  11624. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  11625. fi
  11626. fi
  11627. fi
  11628. fi
  11629. else
  11630. if test "X$found_a" != "X"; then
  11631. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
  11632. else
  11633. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
  11634. fi
  11635. fi
  11636. additional_includedir=
  11637. case "$found_dir" in
  11638. */$acl_libdirstem | */$acl_libdirstem/)
  11639. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  11640. LIBINTL_PREFIX="$basedir"
  11641. additional_includedir="$basedir/include"
  11642. ;;
  11643. esac
  11644. if test "X$additional_includedir" != "X"; then
  11645. if test "X$additional_includedir" != "X/usr/include"; then
  11646. haveit=
  11647. if test "X$additional_includedir" = "X/usr/local/include"; then
  11648. if test -n "$GCC"; then
  11649. case $host_os in
  11650. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  11651. esac
  11652. fi
  11653. fi
  11654. if test -z "$haveit"; then
  11655. for x in $CPPFLAGS $INCINTL; do
  11656. acl_save_prefix="$prefix"
  11657. prefix="$acl_final_prefix"
  11658. acl_save_exec_prefix="$exec_prefix"
  11659. exec_prefix="$acl_final_exec_prefix"
  11660. eval x=\"$x\"
  11661. exec_prefix="$acl_save_exec_prefix"
  11662. prefix="$acl_save_prefix"
  11663. if test "X$x" = "X-I$additional_includedir"; then
  11664. haveit=yes
  11665. break
  11666. fi
  11667. done
  11668. if test -z "$haveit"; then
  11669. if test -d "$additional_includedir"; then
  11670. INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
  11671. fi
  11672. fi
  11673. fi
  11674. fi
  11675. fi
  11676. if test -n "$found_la"; then
  11677. save_libdir="$libdir"
  11678. case "$found_la" in
  11679. */* | *\\*) . "$found_la" ;;
  11680. *) . "./$found_la" ;;
  11681. esac
  11682. libdir="$save_libdir"
  11683. for dep in $dependency_libs; do
  11684. case "$dep" in
  11685. -L*)
  11686. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  11687. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  11688. haveit=
  11689. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  11690. if test -n "$GCC"; then
  11691. case $host_os in
  11692. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  11693. esac
  11694. fi
  11695. fi
  11696. if test -z "$haveit"; then
  11697. haveit=
  11698. for x in $LDFLAGS $LIBINTL; do
  11699. acl_save_prefix="$prefix"
  11700. prefix="$acl_final_prefix"
  11701. acl_save_exec_prefix="$exec_prefix"
  11702. exec_prefix="$acl_final_exec_prefix"
  11703. eval x=\"$x\"
  11704. exec_prefix="$acl_save_exec_prefix"
  11705. prefix="$acl_save_prefix"
  11706. if test "X$x" = "X-L$additional_libdir"; then
  11707. haveit=yes
  11708. break
  11709. fi
  11710. done
  11711. if test -z "$haveit"; then
  11712. if test -d "$additional_libdir"; then
  11713. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
  11714. fi
  11715. fi
  11716. haveit=
  11717. for x in $LDFLAGS $LTLIBINTL; do
  11718. acl_save_prefix="$prefix"
  11719. prefix="$acl_final_prefix"
  11720. acl_save_exec_prefix="$exec_prefix"
  11721. exec_prefix="$acl_final_exec_prefix"
  11722. eval x=\"$x\"
  11723. exec_prefix="$acl_save_exec_prefix"
  11724. prefix="$acl_save_prefix"
  11725. if test "X$x" = "X-L$additional_libdir"; then
  11726. haveit=yes
  11727. break
  11728. fi
  11729. done
  11730. if test -z "$haveit"; then
  11731. if test -d "$additional_libdir"; then
  11732. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
  11733. fi
  11734. fi
  11735. fi
  11736. fi
  11737. ;;
  11738. -R*)
  11739. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  11740. if test "$enable_rpath" != no; then
  11741. haveit=
  11742. for x in $rpathdirs; do
  11743. if test "X$x" = "X$dir"; then
  11744. haveit=yes
  11745. break
  11746. fi
  11747. done
  11748. if test -z "$haveit"; then
  11749. rpathdirs="$rpathdirs $dir"
  11750. fi
  11751. haveit=
  11752. for x in $ltrpathdirs; do
  11753. if test "X$x" = "X$dir"; then
  11754. haveit=yes
  11755. break
  11756. fi
  11757. done
  11758. if test -z "$haveit"; then
  11759. ltrpathdirs="$ltrpathdirs $dir"
  11760. fi
  11761. fi
  11762. ;;
  11763. -l*)
  11764. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  11765. ;;
  11766. *.la)
  11767. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  11768. ;;
  11769. *)
  11770. LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
  11771. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
  11772. ;;
  11773. esac
  11774. done
  11775. fi
  11776. else
  11777. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  11778. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
  11779. fi
  11780. fi
  11781. fi
  11782. done
  11783. done
  11784. if test "X$rpathdirs" != "X"; then
  11785. if test -n "$acl_hardcode_libdir_separator"; then
  11786. alldirs=
  11787. for found_dir in $rpathdirs; do
  11788. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  11789. done
  11790. acl_save_libdir="$libdir"
  11791. libdir="$alldirs"
  11792. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  11793. libdir="$acl_save_libdir"
  11794. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  11795. else
  11796. for found_dir in $rpathdirs; do
  11797. acl_save_libdir="$libdir"
  11798. libdir="$found_dir"
  11799. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  11800. libdir="$acl_save_libdir"
  11801. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  11802. done
  11803. fi
  11804. fi
  11805. if test "X$ltrpathdirs" != "X"; then
  11806. for found_dir in $ltrpathdirs; do
  11807. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
  11808. done
  11809. fi
  11810. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
  11811. $as_echo_n "checking for GNU gettext in libintl... " >&6; }
  11812. if eval "test \"\${$gt_func_gnugettext_libintl+set}\"" = set; then :
  11813. $as_echo_n "(cached) " >&6
  11814. else
  11815. gt_save_CPPFLAGS="$CPPFLAGS"
  11816. CPPFLAGS="$CPPFLAGS $INCINTL"
  11817. gt_save_LIBS="$LIBS"
  11818. LIBS="$LIBS $LIBINTL"
  11819. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11820. /* end confdefs.h. */
  11821. #include <libintl.h>
  11822. $gt_revision_test_code
  11823. extern int _nl_msg_cat_cntr;
  11824. extern
  11825. #ifdef __cplusplus
  11826. "C"
  11827. #endif
  11828. const char *_nl_expand_alias (const char *);
  11829. int
  11830. main ()
  11831. {
  11832. bindtextdomain ("", "");
  11833. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  11834. ;
  11835. return 0;
  11836. }
  11837. _ACEOF
  11838. if ac_fn_cxx_try_link "$LINENO"; then :
  11839. eval "$gt_func_gnugettext_libintl=yes"
  11840. else
  11841. eval "$gt_func_gnugettext_libintl=no"
  11842. fi
  11843. rm -f core conftest.err conftest.$ac_objext \
  11844. conftest$ac_exeext conftest.$ac_ext
  11845. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
  11846. LIBS="$LIBS $LIBICONV"
  11847. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11848. /* end confdefs.h. */
  11849. #include <libintl.h>
  11850. $gt_revision_test_code
  11851. extern int _nl_msg_cat_cntr;
  11852. extern
  11853. #ifdef __cplusplus
  11854. "C"
  11855. #endif
  11856. const char *_nl_expand_alias (const char *);
  11857. int
  11858. main ()
  11859. {
  11860. bindtextdomain ("", "");
  11861. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  11862. ;
  11863. return 0;
  11864. }
  11865. _ACEOF
  11866. if ac_fn_cxx_try_link "$LINENO"; then :
  11867. LIBINTL="$LIBINTL $LIBICONV"
  11868. LTLIBINTL="$LTLIBINTL $LTLIBICONV"
  11869. eval "$gt_func_gnugettext_libintl=yes"
  11870. fi
  11871. rm -f core conftest.err conftest.$ac_objext \
  11872. conftest$ac_exeext conftest.$ac_ext
  11873. fi
  11874. CPPFLAGS="$gt_save_CPPFLAGS"
  11875. LIBS="$gt_save_LIBS"
  11876. fi
  11877. eval ac_res=\$$gt_func_gnugettext_libintl
  11878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  11879. $as_echo "$ac_res" >&6; }
  11880. fi
  11881. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
  11882. || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
  11883. && test "$PACKAGE" != gettext-runtime \
  11884. && test "$PACKAGE" != gettext-tools; }; then
  11885. gt_use_preinstalled_gnugettext=yes
  11886. else
  11887. LIBINTL=
  11888. LTLIBINTL=
  11889. INCINTL=
  11890. fi
  11891. if test "$gt_use_preinstalled_gnugettext" != "yes"; then
  11892. nls_cv_use_gnu_gettext=yes
  11893. fi
  11894. fi
  11895. if test "$nls_cv_use_gnu_gettext" = "yes"; then
  11896. BUILD_INCLUDED_LIBINTL=yes
  11897. USE_INCLUDED_LIBINTL=yes
  11898. LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
  11899. LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
  11900. LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
  11901. fi
  11902. CATOBJEXT=
  11903. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  11904. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  11905. CATOBJEXT=.gmo
  11906. fi
  11907. if test -n "$INTL_MACOSX_LIBS"; then
  11908. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  11909. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  11910. LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
  11911. LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
  11912. fi
  11913. fi
  11914. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  11915. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  11916. $as_echo "#define ENABLE_NLS 1" >>confdefs.h
  11917. else
  11918. USE_NLS=no
  11919. fi
  11920. fi
  11921. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
  11922. $as_echo_n "checking whether to use NLS... " >&6; }
  11923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
  11924. $as_echo "$USE_NLS" >&6; }
  11925. if test "$USE_NLS" = "yes"; then
  11926. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
  11927. $as_echo_n "checking where the gettext function comes from... " >&6; }
  11928. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  11929. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  11930. gt_source="external libintl"
  11931. else
  11932. gt_source="libc"
  11933. fi
  11934. else
  11935. gt_source="included intl directory"
  11936. fi
  11937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
  11938. $as_echo "$gt_source" >&6; }
  11939. fi
  11940. if test "$USE_NLS" = "yes"; then
  11941. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  11942. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  11943. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
  11944. $as_echo_n "checking how to link with libintl... " >&6; }
  11945. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
  11946. $as_echo "$LIBINTL" >&6; }
  11947. for element in $INCINTL; do
  11948. haveit=
  11949. for x in $CPPFLAGS; do
  11950. acl_save_prefix="$prefix"
  11951. prefix="$acl_final_prefix"
  11952. acl_save_exec_prefix="$exec_prefix"
  11953. exec_prefix="$acl_final_exec_prefix"
  11954. eval x=\"$x\"
  11955. exec_prefix="$acl_save_exec_prefix"
  11956. prefix="$acl_save_prefix"
  11957. if test "X$x" = "X$element"; then
  11958. haveit=yes
  11959. break
  11960. fi
  11961. done
  11962. if test -z "$haveit"; then
  11963. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  11964. fi
  11965. done
  11966. fi
  11967. $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
  11968. $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
  11969. fi
  11970. POSUB=po
  11971. fi
  11972. if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
  11973. BUILD_INCLUDED_LIBINTL=yes
  11974. fi
  11975. nls_cv_header_intl=
  11976. nls_cv_header_libgt=
  11977. DATADIRNAME=share
  11978. INSTOBJEXT=.mo
  11979. GENCAT=gencat
  11980. INTLOBJS=
  11981. if test "$USE_INCLUDED_LIBINTL" = yes; then
  11982. INTLOBJS="\$(GETTOBJS)"
  11983. fi
  11984. INTL_LIBTOOL_SUFFIX_PREFIX=
  11985. INTLLIBS="$LIBINTL"
  11986. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
  11987. $as_echo_n "checking for error_at_line... " >&6; }
  11988. if test "${ac_cv_lib_error_at_line+set}" = set; then :
  11989. $as_echo_n "(cached) " >&6
  11990. else
  11991. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11992. /* end confdefs.h. */
  11993. #include <error.h>
  11994. int
  11995. main ()
  11996. {
  11997. error_at_line (0, 0, "", 0, "an error occurred");
  11998. ;
  11999. return 0;
  12000. }
  12001. _ACEOF
  12002. if ac_fn_cxx_try_link "$LINENO"; then :
  12003. ac_cv_lib_error_at_line=yes
  12004. else
  12005. ac_cv_lib_error_at_line=no
  12006. fi
  12007. rm -f core conftest.err conftest.$ac_objext \
  12008. conftest$ac_exeext conftest.$ac_ext
  12009. fi
  12010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
  12011. $as_echo "$ac_cv_lib_error_at_line" >&6; }
  12012. if test $ac_cv_lib_error_at_line = no; then
  12013. case " $LIBOBJS " in
  12014. *" error.$ac_objext "* ) ;;
  12015. *) LIBOBJS="$LIBOBJS error.$ac_objext"
  12016. ;;
  12017. esac
  12018. fi
  12019. if test $ac_cv_c_compiler_gnu = yes; then
  12020. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
  12021. $as_echo_n "checking whether $CC needs -traditional... " >&6; }
  12022. if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
  12023. $as_echo_n "(cached) " >&6
  12024. else
  12025. ac_pattern="Autoconf.*'x'"
  12026. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12027. /* end confdefs.h. */
  12028. #include <sgtty.h>
  12029. Autoconf TIOCGETP
  12030. _ACEOF
  12031. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  12032. $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  12033. ac_cv_prog_gcc_traditional=yes
  12034. else
  12035. ac_cv_prog_gcc_traditional=no
  12036. fi
  12037. rm -f conftest*
  12038. if test $ac_cv_prog_gcc_traditional = no; then
  12039. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12040. /* end confdefs.h. */
  12041. #include <termio.h>
  12042. Autoconf TCGETA
  12043. _ACEOF
  12044. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  12045. $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  12046. ac_cv_prog_gcc_traditional=yes
  12047. fi
  12048. rm -f conftest*
  12049. fi
  12050. fi
  12051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
  12052. $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
  12053. if test $ac_cv_prog_gcc_traditional = yes; then
  12054. CC="$CC -traditional"
  12055. fi
  12056. fi
  12057. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  12058. $as_echo_n "checking for working memcmp... " >&6; }
  12059. if test "${ac_cv_func_memcmp_working+set}" = set; then :
  12060. $as_echo_n "(cached) " >&6
  12061. else
  12062. if test "$cross_compiling" = yes; then :
  12063. ac_cv_func_memcmp_working=no
  12064. else
  12065. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12066. /* end confdefs.h. */
  12067. $ac_includes_default
  12068. int
  12069. main ()
  12070. {
  12071. /* Some versions of memcmp are not 8-bit clean. */
  12072. char c0 = '\100', c1 = '\200', c2 = '\201';
  12073. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  12074. return 1;
  12075. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  12076. or more and with at least one buffer not starting on a 4-byte boundary.
  12077. William Lewis provided this test program. */
  12078. {
  12079. char foo[21];
  12080. char bar[21];
  12081. int i;
  12082. for (i = 0; i < 4; i++)
  12083. {
  12084. char *a = foo + i;
  12085. char *b = bar + i;
  12086. strcpy (a, "--------01111111");
  12087. strcpy (b, "--------10000000");
  12088. if (memcmp (a, b, 16) >= 0)
  12089. return 1;
  12090. }
  12091. return 0;
  12092. }
  12093. ;
  12094. return 0;
  12095. }
  12096. _ACEOF
  12097. if ac_fn_cxx_try_run "$LINENO"; then :
  12098. ac_cv_func_memcmp_working=yes
  12099. else
  12100. ac_cv_func_memcmp_working=no
  12101. fi
  12102. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12103. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12104. fi
  12105. fi
  12106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  12107. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  12108. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  12109. *" memcmp.$ac_objext "* ) ;;
  12110. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  12111. ;;
  12112. esac
  12113. for ac_func in $ac_func_list
  12114. do :
  12115. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12116. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  12117. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  12118. cat >>confdefs.h <<_ACEOF
  12119. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12120. _ACEOF
  12121. fi
  12122. done
  12123. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
  12124. $as_echo_n "checking for working mktime... " >&6; }
  12125. if test "${ac_cv_func_working_mktime+set}" = set; then :
  12126. $as_echo_n "(cached) " >&6
  12127. else
  12128. if test "$cross_compiling" = yes; then :
  12129. ac_cv_func_working_mktime=no
  12130. else
  12131. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12132. /* end confdefs.h. */
  12133. /* Test program from Paul Eggert and Tony Leneis. */
  12134. #ifdef TIME_WITH_SYS_TIME
  12135. # include <sys/time.h>
  12136. # include <time.h>
  12137. #else
  12138. # ifdef HAVE_SYS_TIME_H
  12139. # include <sys/time.h>
  12140. # else
  12141. # include <time.h>
  12142. # endif
  12143. #endif
  12144. #include <limits.h>
  12145. #include <stdlib.h>
  12146. #ifdef HAVE_UNISTD_H
  12147. # include <unistd.h>
  12148. #endif
  12149. #ifndef HAVE_ALARM
  12150. # define alarm(X) /* empty */
  12151. #endif
  12152. /* Work around redefinition to rpl_putenv by other config tests. */
  12153. #undef putenv
  12154. static time_t time_t_max;
  12155. static time_t time_t_min;
  12156. /* Values we'll use to set the TZ environment variable. */
  12157. static const char *tz_strings[] = {
  12158. (const char *) 0, "TZ=GMT0", "TZ=JST-9",
  12159. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  12160. };
  12161. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  12162. /* Return 0 if mktime fails to convert a date in the spring-forward gap.
  12163. Based on a problem report from Andreas Jaeger. */
  12164. static int
  12165. spring_forward_gap ()
  12166. {
  12167. /* glibc (up to about 1998-10-07) failed this test. */
  12168. struct tm tm;
  12169. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  12170. instead of "TZ=America/Vancouver" in order to detect the bug even
  12171. on systems that don't support the Olson extension, or don't have the
  12172. full zoneinfo tables installed. */
  12173. putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
  12174. tm.tm_year = 98;
  12175. tm.tm_mon = 3;
  12176. tm.tm_mday = 5;
  12177. tm.tm_hour = 2;
  12178. tm.tm_min = 0;
  12179. tm.tm_sec = 0;
  12180. tm.tm_isdst = -1;
  12181. return mktime (&tm) != (time_t) -1;
  12182. }
  12183. static int
  12184. mktime_test1 (time_t now)
  12185. {
  12186. struct tm *lt;
  12187. return ! (lt = localtime (&now)) || mktime (lt) == now;
  12188. }
  12189. static int
  12190. mktime_test (time_t now)
  12191. {
  12192. return (mktime_test1 (now)
  12193. && mktime_test1 ((time_t) (time_t_max - now))
  12194. && mktime_test1 ((time_t) (time_t_min + now)));
  12195. }
  12196. static int
  12197. irix_6_4_bug ()
  12198. {
  12199. /* Based on code from Ariel Faigon. */
  12200. struct tm tm;
  12201. tm.tm_year = 96;
  12202. tm.tm_mon = 3;
  12203. tm.tm_mday = 0;
  12204. tm.tm_hour = 0;
  12205. tm.tm_min = 0;
  12206. tm.tm_sec = 0;
  12207. tm.tm_isdst = -1;
  12208. mktime (&tm);
  12209. return tm.tm_mon == 2 && tm.tm_mday == 31;
  12210. }
  12211. static int
  12212. bigtime_test (int j)
  12213. {
  12214. struct tm tm;
  12215. time_t now;
  12216. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  12217. now = mktime (&tm);
  12218. if (now != (time_t) -1)
  12219. {
  12220. struct tm *lt = localtime (&now);
  12221. if (! (lt
  12222. && lt->tm_year == tm.tm_year
  12223. && lt->tm_mon == tm.tm_mon
  12224. && lt->tm_mday == tm.tm_mday
  12225. && lt->tm_hour == tm.tm_hour
  12226. && lt->tm_min == tm.tm_min
  12227. && lt->tm_sec == tm.tm_sec
  12228. && lt->tm_yday == tm.tm_yday
  12229. && lt->tm_wday == tm.tm_wday
  12230. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  12231. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  12232. return 0;
  12233. }
  12234. return 1;
  12235. }
  12236. static int
  12237. year_2050_test ()
  12238. {
  12239. /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
  12240. ignoring leap seconds. */
  12241. unsigned long int answer = 2527315200UL;
  12242. struct tm tm;
  12243. time_t t;
  12244. tm.tm_year = 2050 - 1900;
  12245. tm.tm_mon = 2 - 1;
  12246. tm.tm_mday = 1;
  12247. tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
  12248. tm.tm_isdst = -1;
  12249. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  12250. instead of "TZ=America/Vancouver" in order to detect the bug even
  12251. on systems that don't support the Olson extension, or don't have the
  12252. full zoneinfo tables installed. */
  12253. putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
  12254. t = mktime (&tm);
  12255. /* Check that the result is either a failure, or close enough
  12256. to the correct answer that we can assume the discrepancy is
  12257. due to leap seconds. */
  12258. return (t == (time_t) -1
  12259. || (0 < t && answer - 120 <= t && t <= answer + 120));
  12260. }
  12261. int
  12262. main ()
  12263. {
  12264. time_t t, delta;
  12265. int i, j;
  12266. /* This test makes some buggy mktime implementations loop.
  12267. Give up after 60 seconds; a mktime slower than that
  12268. isn't worth using anyway. */
  12269. alarm (60);
  12270. for (;;)
  12271. {
  12272. t = (time_t_max << 1) + 1;
  12273. if (t <= time_t_max)
  12274. break;
  12275. time_t_max = t;
  12276. }
  12277. time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
  12278. delta = time_t_max / 997; /* a suitable prime number */
  12279. for (i = 0; i < N_STRINGS; i++)
  12280. {
  12281. if (tz_strings[i])
  12282. putenv ((char*) tz_strings[i]);
  12283. for (t = 0; t <= time_t_max - delta; t += delta)
  12284. if (! mktime_test (t))
  12285. return 1;
  12286. if (! (mktime_test ((time_t) 1)
  12287. && mktime_test ((time_t) (60 * 60))
  12288. && mktime_test ((time_t) (60 * 60 * 24))))
  12289. return 1;
  12290. for (j = 1; ; j <<= 1)
  12291. if (! bigtime_test (j))
  12292. return 1;
  12293. else if (INT_MAX / 2 < j)
  12294. break;
  12295. if (! bigtime_test (INT_MAX))
  12296. return 1;
  12297. }
  12298. return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
  12299. }
  12300. _ACEOF
  12301. if ac_fn_cxx_try_run "$LINENO"; then :
  12302. ac_cv_func_working_mktime=yes
  12303. else
  12304. ac_cv_func_working_mktime=no
  12305. fi
  12306. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12307. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12308. fi
  12309. fi
  12310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
  12311. $as_echo "$ac_cv_func_working_mktime" >&6; }
  12312. if test $ac_cv_func_working_mktime = no; then
  12313. case " $LIBOBJS " in
  12314. *" mktime.$ac_objext "* ) ;;
  12315. *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
  12316. ;;
  12317. esac
  12318. fi
  12319. for ac_func in getpagesize
  12320. do :
  12321. ac_fn_cxx_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  12322. if test "x$ac_cv_func_getpagesize" = x""yes; then :
  12323. cat >>confdefs.h <<_ACEOF
  12324. #define HAVE_GETPAGESIZE 1
  12325. _ACEOF
  12326. fi
  12327. done
  12328. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  12329. $as_echo_n "checking for working mmap... " >&6; }
  12330. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
  12331. $as_echo_n "(cached) " >&6
  12332. else
  12333. if test "$cross_compiling" = yes; then :
  12334. ac_cv_func_mmap_fixed_mapped=no
  12335. else
  12336. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12337. /* end confdefs.h. */
  12338. $ac_includes_default
  12339. /* malloc might have been renamed as rpl_malloc. */
  12340. #undef malloc
  12341. /* Thanks to Mike Haertel and Jim Avera for this test.
  12342. Here is a matrix of mmap possibilities:
  12343. mmap private not fixed
  12344. mmap private fixed at somewhere currently unmapped
  12345. mmap private fixed at somewhere already mapped
  12346. mmap shared not fixed
  12347. mmap shared fixed at somewhere currently unmapped
  12348. mmap shared fixed at somewhere already mapped
  12349. For private mappings, we should verify that changes cannot be read()
  12350. back from the file, nor mmap's back from the file at a different
  12351. address. (There have been systems where private was not correctly
  12352. implemented like the infamous i386 svr4.0, and systems where the
  12353. VM page cache was not coherent with the file system buffer cache
  12354. like early versions of FreeBSD and possibly contemporary NetBSD.)
  12355. For shared mappings, we should conversely verify that changes get
  12356. propagated back to all the places they're supposed to be.
  12357. Grep wants private fixed already mapped.
  12358. The main things grep needs to know about mmap are:
  12359. * does it exist and is it safe to write into the mmap'd area
  12360. * how to use it (BSD variants) */
  12361. #include <fcntl.h>
  12362. #include <sys/mman.h>
  12363. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  12364. char *malloc ();
  12365. #endif
  12366. /* This mess was copied from the GNU getpagesize.h. */
  12367. #ifndef HAVE_GETPAGESIZE
  12368. # ifdef _SC_PAGESIZE
  12369. # define getpagesize() sysconf(_SC_PAGESIZE)
  12370. # else /* no _SC_PAGESIZE */
  12371. # ifdef HAVE_SYS_PARAM_H
  12372. # include <sys/param.h>
  12373. # ifdef EXEC_PAGESIZE
  12374. # define getpagesize() EXEC_PAGESIZE
  12375. # else /* no EXEC_PAGESIZE */
  12376. # ifdef NBPG
  12377. # define getpagesize() NBPG * CLSIZE
  12378. # ifndef CLSIZE
  12379. # define CLSIZE 1
  12380. # endif /* no CLSIZE */
  12381. # else /* no NBPG */
  12382. # ifdef NBPC
  12383. # define getpagesize() NBPC
  12384. # else /* no NBPC */
  12385. # ifdef PAGESIZE
  12386. # define getpagesize() PAGESIZE
  12387. # endif /* PAGESIZE */
  12388. # endif /* no NBPC */
  12389. # endif /* no NBPG */
  12390. # endif /* no EXEC_PAGESIZE */
  12391. # else /* no HAVE_SYS_PARAM_H */
  12392. # define getpagesize() 8192 /* punt totally */
  12393. # endif /* no HAVE_SYS_PARAM_H */
  12394. # endif /* no _SC_PAGESIZE */
  12395. #endif /* no HAVE_GETPAGESIZE */
  12396. int
  12397. main ()
  12398. {
  12399. char *data, *data2, *data3;
  12400. const char *cdata2;
  12401. int i, pagesize;
  12402. int fd, fd2;
  12403. pagesize = getpagesize ();
  12404. /* First, make a file with some known garbage in it. */
  12405. data = (char *) malloc (pagesize);
  12406. if (!data)
  12407. return 1;
  12408. for (i = 0; i < pagesize; ++i)
  12409. *(data + i) = rand ();
  12410. umask (0);
  12411. fd = creat ("conftest.mmap", 0600);
  12412. if (fd < 0)
  12413. return 2;
  12414. if (write (fd, data, pagesize) != pagesize)
  12415. return 3;
  12416. close (fd);
  12417. /* Next, check that the tail of a page is zero-filled. File must have
  12418. non-zero length, otherwise we risk SIGBUS for entire page. */
  12419. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  12420. if (fd2 < 0)
  12421. return 4;
  12422. cdata2 = "";
  12423. if (write (fd2, cdata2, 1) != 1)
  12424. return 5;
  12425. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  12426. if (data2 == MAP_FAILED)
  12427. return 6;
  12428. for (i = 0; i < pagesize; ++i)
  12429. if (*(data2 + i))
  12430. return 7;
  12431. close (fd2);
  12432. if (munmap (data2, pagesize))
  12433. return 8;
  12434. /* Next, try to mmap the file at a fixed address which already has
  12435. something else allocated at it. If we can, also make sure that
  12436. we see the same garbage. */
  12437. fd = open ("conftest.mmap", O_RDWR);
  12438. if (fd < 0)
  12439. return 9;
  12440. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  12441. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  12442. return 10;
  12443. for (i = 0; i < pagesize; ++i)
  12444. if (*(data + i) != *(data2 + i))
  12445. return 11;
  12446. /* Finally, make sure that changes to the mapped area do not
  12447. percolate back to the file as seen by read(). (This is a bug on
  12448. some variants of i386 svr4.0.) */
  12449. for (i = 0; i < pagesize; ++i)
  12450. *(data2 + i) = *(data2 + i) + 1;
  12451. data3 = (char *) malloc (pagesize);
  12452. if (!data3)
  12453. return 12;
  12454. if (read (fd, data3, pagesize) != pagesize)
  12455. return 13;
  12456. for (i = 0; i < pagesize; ++i)
  12457. if (*(data + i) != *(data3 + i))
  12458. return 14;
  12459. close (fd);
  12460. return 0;
  12461. }
  12462. _ACEOF
  12463. if ac_fn_cxx_try_run "$LINENO"; then :
  12464. ac_cv_func_mmap_fixed_mapped=yes
  12465. else
  12466. ac_cv_func_mmap_fixed_mapped=no
  12467. fi
  12468. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12469. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12470. fi
  12471. fi
  12472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  12473. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  12474. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  12475. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  12476. fi
  12477. rm -f conftest.mmap conftest.txt
  12478. for ac_header in sys/select.h sys/socket.h
  12479. do :
  12480. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  12481. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  12482. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  12483. cat >>confdefs.h <<_ACEOF
  12484. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  12485. _ACEOF
  12486. fi
  12487. done
  12488. { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
  12489. $as_echo_n "checking types of arguments for select... " >&6; }
  12490. if test "${ac_cv_func_select_args+set}" = set; then :
  12491. $as_echo_n "(cached) " >&6
  12492. else
  12493. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  12494. for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
  12495. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  12496. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12497. /* end confdefs.h. */
  12498. $ac_includes_default
  12499. #ifdef HAVE_SYS_SELECT_H
  12500. # include <sys/select.h>
  12501. #endif
  12502. #ifdef HAVE_SYS_SOCKET_H
  12503. # include <sys/socket.h>
  12504. #endif
  12505. int
  12506. main ()
  12507. {
  12508. extern int select ($ac_arg1,
  12509. $ac_arg234, $ac_arg234, $ac_arg234,
  12510. $ac_arg5);
  12511. ;
  12512. return 0;
  12513. }
  12514. _ACEOF
  12515. if ac_fn_cxx_try_compile "$LINENO"; then :
  12516. ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  12517. fi
  12518. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12519. done
  12520. done
  12521. done
  12522. # Provide a safe default value.
  12523. : ${ac_cv_func_select_args='int,int *,struct timeval *'}
  12524. fi
  12525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
  12526. $as_echo "$ac_cv_func_select_args" >&6; }
  12527. ac_save_IFS=$IFS; IFS=','
  12528. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  12529. IFS=$ac_save_IFS
  12530. shift
  12531. cat >>confdefs.h <<_ACEOF
  12532. #define SELECT_TYPE_ARG1 $1
  12533. _ACEOF
  12534. cat >>confdefs.h <<_ACEOF
  12535. #define SELECT_TYPE_ARG234 ($2)
  12536. _ACEOF
  12537. cat >>confdefs.h <<_ACEOF
  12538. #define SELECT_TYPE_ARG5 ($3)
  12539. _ACEOF
  12540. rm -f conftest*
  12541. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
  12542. $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
  12543. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
  12544. $as_echo_n "(cached) " >&6
  12545. else
  12546. rm -f conftest.sym conftest.file
  12547. echo >conftest.file
  12548. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  12549. if test "$cross_compiling" = yes; then :
  12550. ac_cv_func_lstat_dereferences_slashed_symlink=no
  12551. else
  12552. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12553. /* end confdefs.h. */
  12554. $ac_includes_default
  12555. int
  12556. main ()
  12557. {
  12558. struct stat sbuf;
  12559. /* Linux will dereference the symlink and fail, as required by POSIX.
  12560. That is better in the sense that it means we will not
  12561. have to compile and use the lstat wrapper. */
  12562. return lstat ("conftest.sym/", &sbuf) == 0;
  12563. ;
  12564. return 0;
  12565. }
  12566. _ACEOF
  12567. if ac_fn_cxx_try_run "$LINENO"; then :
  12568. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  12569. else
  12570. ac_cv_func_lstat_dereferences_slashed_symlink=no
  12571. fi
  12572. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12573. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12574. fi
  12575. else
  12576. # If the `ln -s' command failed, then we probably don't even
  12577. # have an lstat function.
  12578. ac_cv_func_lstat_dereferences_slashed_symlink=no
  12579. fi
  12580. rm -f conftest.sym conftest.file
  12581. fi
  12582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  12583. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  12584. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  12585. cat >>confdefs.h <<_ACEOF
  12586. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  12587. _ACEOF
  12588. if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
  12589. case " $LIBOBJS " in
  12590. *" lstat.$ac_objext "* ) ;;
  12591. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  12592. ;;
  12593. esac
  12594. fi
  12595. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
  12596. $as_echo_n "checking whether stat accepts an empty string... " >&6; }
  12597. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
  12598. $as_echo_n "(cached) " >&6
  12599. else
  12600. if test "$cross_compiling" = yes; then :
  12601. ac_cv_func_stat_empty_string_bug=yes
  12602. else
  12603. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12604. /* end confdefs.h. */
  12605. $ac_includes_default
  12606. int
  12607. main ()
  12608. {
  12609. struct stat sbuf;
  12610. return stat ("", &sbuf) == 0;
  12611. ;
  12612. return 0;
  12613. }
  12614. _ACEOF
  12615. if ac_fn_cxx_try_run "$LINENO"; then :
  12616. ac_cv_func_stat_empty_string_bug=no
  12617. else
  12618. ac_cv_func_stat_empty_string_bug=yes
  12619. fi
  12620. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12621. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12622. fi
  12623. fi
  12624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
  12625. $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
  12626. if test $ac_cv_func_stat_empty_string_bug = yes; then
  12627. case " $LIBOBJS " in
  12628. *" stat.$ac_objext "* ) ;;
  12629. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  12630. ;;
  12631. esac
  12632. cat >>confdefs.h <<_ACEOF
  12633. #define HAVE_STAT_EMPTY_STRING_BUG 1
  12634. _ACEOF
  12635. fi
  12636. for ac_func in strftime
  12637. do :
  12638. ac_fn_cxx_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
  12639. if test "x$ac_cv_func_strftime" = x""yes; then :
  12640. cat >>confdefs.h <<_ACEOF
  12641. #define HAVE_STRFTIME 1
  12642. _ACEOF
  12643. else
  12644. # strftime is in -lintl on SCO UNIX.
  12645. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
  12646. $as_echo_n "checking for strftime in -lintl... " >&6; }
  12647. if test "${ac_cv_lib_intl_strftime+set}" = set; then :
  12648. $as_echo_n "(cached) " >&6
  12649. else
  12650. ac_check_lib_save_LIBS=$LIBS
  12651. LIBS="-lintl $LIBS"
  12652. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12653. /* end confdefs.h. */
  12654. /* Override any GCC internal prototype to avoid an error.
  12655. Use char because int might match the return type of a GCC
  12656. builtin and then its argument prototype would still apply. */
  12657. #ifdef __cplusplus
  12658. extern "C"
  12659. #endif
  12660. char strftime ();
  12661. int
  12662. main ()
  12663. {
  12664. return strftime ();
  12665. ;
  12666. return 0;
  12667. }
  12668. _ACEOF
  12669. if ac_fn_cxx_try_link "$LINENO"; then :
  12670. ac_cv_lib_intl_strftime=yes
  12671. else
  12672. ac_cv_lib_intl_strftime=no
  12673. fi
  12674. rm -f core conftest.err conftest.$ac_objext \
  12675. conftest$ac_exeext conftest.$ac_ext
  12676. LIBS=$ac_check_lib_save_LIBS
  12677. fi
  12678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
  12679. $as_echo "$ac_cv_lib_intl_strftime" >&6; }
  12680. if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
  12681. $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
  12682. LIBS="-lintl $LIBS"
  12683. fi
  12684. fi
  12685. done
  12686. for ac_func in vprintf
  12687. do :
  12688. ac_fn_cxx_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
  12689. if test "x$ac_cv_func_vprintf" = x""yes; then :
  12690. cat >>confdefs.h <<_ACEOF
  12691. #define HAVE_VPRINTF 1
  12692. _ACEOF
  12693. ac_fn_cxx_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
  12694. if test "x$ac_cv_func__doprnt" = x""yes; then :
  12695. $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
  12696. fi
  12697. fi
  12698. done
  12699. for ac_header in vfork.h
  12700. do :
  12701. ac_fn_cxx_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
  12702. if test "x$ac_cv_header_vfork_h" = x""yes; then :
  12703. cat >>confdefs.h <<_ACEOF
  12704. #define HAVE_VFORK_H 1
  12705. _ACEOF
  12706. fi
  12707. done
  12708. for ac_func in fork vfork
  12709. do :
  12710. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12711. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  12712. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  12713. cat >>confdefs.h <<_ACEOF
  12714. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12715. _ACEOF
  12716. fi
  12717. done
  12718. if test "x$ac_cv_func_fork" = xyes; then
  12719. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  12720. $as_echo_n "checking for working fork... " >&6; }
  12721. if test "${ac_cv_func_fork_works+set}" = set; then :
  12722. $as_echo_n "(cached) " >&6
  12723. else
  12724. if test "$cross_compiling" = yes; then :
  12725. ac_cv_func_fork_works=cross
  12726. else
  12727. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12728. /* end confdefs.h. */
  12729. $ac_includes_default
  12730. int
  12731. main ()
  12732. {
  12733. /* By Ruediger Kuhlmann. */
  12734. return fork () < 0;
  12735. ;
  12736. return 0;
  12737. }
  12738. _ACEOF
  12739. if ac_fn_cxx_try_run "$LINENO"; then :
  12740. ac_cv_func_fork_works=yes
  12741. else
  12742. ac_cv_func_fork_works=no
  12743. fi
  12744. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12745. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12746. fi
  12747. fi
  12748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  12749. $as_echo "$ac_cv_func_fork_works" >&6; }
  12750. else
  12751. ac_cv_func_fork_works=$ac_cv_func_fork
  12752. fi
  12753. if test "x$ac_cv_func_fork_works" = xcross; then
  12754. case $host in
  12755. *-*-amigaos* | *-*-msdosdjgpp*)
  12756. # Override, as these systems have only a dummy fork() stub
  12757. ac_cv_func_fork_works=no
  12758. ;;
  12759. *)
  12760. ac_cv_func_fork_works=yes
  12761. ;;
  12762. esac
  12763. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  12764. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  12765. fi
  12766. ac_cv_func_vfork_works=$ac_cv_func_vfork
  12767. if test "x$ac_cv_func_vfork" = xyes; then
  12768. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  12769. $as_echo_n "checking for working vfork... " >&6; }
  12770. if test "${ac_cv_func_vfork_works+set}" = set; then :
  12771. $as_echo_n "(cached) " >&6
  12772. else
  12773. if test "$cross_compiling" = yes; then :
  12774. ac_cv_func_vfork_works=cross
  12775. else
  12776. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12777. /* end confdefs.h. */
  12778. /* Thanks to Paul Eggert for this test. */
  12779. $ac_includes_default
  12780. #include <sys/wait.h>
  12781. #ifdef HAVE_VFORK_H
  12782. # include <vfork.h>
  12783. #endif
  12784. /* On some sparc systems, changes by the child to local and incoming
  12785. argument registers are propagated back to the parent. The compiler
  12786. is told about this with #include <vfork.h>, but some compilers
  12787. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  12788. static variable whose address is put into a register that is
  12789. clobbered by the vfork. */
  12790. static void
  12791. #ifdef __cplusplus
  12792. sparc_address_test (int arg)
  12793. # else
  12794. sparc_address_test (arg) int arg;
  12795. #endif
  12796. {
  12797. static pid_t child;
  12798. if (!child) {
  12799. child = vfork ();
  12800. if (child < 0) {
  12801. perror ("vfork");
  12802. _exit(2);
  12803. }
  12804. if (!child) {
  12805. arg = getpid();
  12806. write(-1, "", 0);
  12807. _exit (arg);
  12808. }
  12809. }
  12810. }
  12811. int
  12812. main ()
  12813. {
  12814. pid_t parent = getpid ();
  12815. pid_t child;
  12816. sparc_address_test (0);
  12817. child = vfork ();
  12818. if (child == 0) {
  12819. /* Here is another test for sparc vfork register problems. This
  12820. test uses lots of local variables, at least as many local
  12821. variables as main has allocated so far including compiler
  12822. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  12823. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  12824. reuse the register of parent for one of the local variables,
  12825. since it will think that parent can't possibly be used any more
  12826. in this routine. Assigning to the local variable will thus
  12827. munge parent in the parent process. */
  12828. pid_t
  12829. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  12830. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  12831. /* Convince the compiler that p..p7 are live; otherwise, it might
  12832. use the same hardware register for all 8 local variables. */
  12833. if (p != p1 || p != p2 || p != p3 || p != p4
  12834. || p != p5 || p != p6 || p != p7)
  12835. _exit(1);
  12836. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  12837. from child file descriptors. If the child closes a descriptor
  12838. before it execs or exits, this munges the parent's descriptor
  12839. as well. Test for this by closing stdout in the child. */
  12840. _exit(close(fileno(stdout)) != 0);
  12841. } else {
  12842. int status;
  12843. struct stat st;
  12844. while (wait(&status) != child)
  12845. ;
  12846. return (
  12847. /* Was there some problem with vforking? */
  12848. child < 0
  12849. /* Did the child fail? (This shouldn't happen.) */
  12850. || status
  12851. /* Did the vfork/compiler bug occur? */
  12852. || parent != getpid()
  12853. /* Did the file descriptor bug occur? */
  12854. || fstat(fileno(stdout), &st) != 0
  12855. );
  12856. }
  12857. }
  12858. _ACEOF
  12859. if ac_fn_cxx_try_run "$LINENO"; then :
  12860. ac_cv_func_vfork_works=yes
  12861. else
  12862. ac_cv_func_vfork_works=no
  12863. fi
  12864. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12865. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12866. fi
  12867. fi
  12868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  12869. $as_echo "$ac_cv_func_vfork_works" >&6; }
  12870. fi;
  12871. if test "x$ac_cv_func_fork_works" = xcross; then
  12872. ac_cv_func_vfork_works=$ac_cv_func_vfork
  12873. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  12874. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  12875. fi
  12876. if test "x$ac_cv_func_vfork_works" = xyes; then
  12877. $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
  12878. else
  12879. $as_echo "#define vfork fork" >>confdefs.h
  12880. fi
  12881. if test "x$ac_cv_func_fork_works" = xyes; then
  12882. $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
  12883. fi
  12884. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  12885. $as_echo_n "checking for working strtod... " >&6; }
  12886. if test "${ac_cv_func_strtod+set}" = set; then :
  12887. $as_echo_n "(cached) " >&6
  12888. else
  12889. if test "$cross_compiling" = yes; then :
  12890. ac_cv_func_strtod=no
  12891. else
  12892. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12893. /* end confdefs.h. */
  12894. $ac_includes_default
  12895. #ifndef strtod
  12896. double strtod ();
  12897. #endif
  12898. int
  12899. main()
  12900. {
  12901. {
  12902. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  12903. char *string = " +69";
  12904. char *term;
  12905. double value;
  12906. value = strtod (string, &term);
  12907. if (value != 69 || term != (string + 4))
  12908. return 1;
  12909. }
  12910. {
  12911. /* Under Solaris 2.4, strtod returns the wrong value for the
  12912. terminating character under some conditions. */
  12913. char *string = "NaN";
  12914. char *term;
  12915. strtod (string, &term);
  12916. if (term != string && *(term - 1) == 0)
  12917. return 1;
  12918. }
  12919. return 0;
  12920. }
  12921. _ACEOF
  12922. if ac_fn_cxx_try_run "$LINENO"; then :
  12923. ac_cv_func_strtod=yes
  12924. else
  12925. ac_cv_func_strtod=no
  12926. fi
  12927. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12928. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12929. fi
  12930. fi
  12931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  12932. $as_echo "$ac_cv_func_strtod" >&6; }
  12933. if test $ac_cv_func_strtod = no; then
  12934. case " $LIBOBJS " in
  12935. *" strtod.$ac_objext "* ) ;;
  12936. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  12937. ;;
  12938. esac
  12939. ac_fn_cxx_check_func "$LINENO" "pow" "ac_cv_func_pow"
  12940. if test "x$ac_cv_func_pow" = x""yes; then :
  12941. fi
  12942. if test $ac_cv_func_pow = no; then
  12943. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  12944. $as_echo_n "checking for pow in -lm... " >&6; }
  12945. if test "${ac_cv_lib_m_pow+set}" = set; then :
  12946. $as_echo_n "(cached) " >&6
  12947. else
  12948. ac_check_lib_save_LIBS=$LIBS
  12949. LIBS="-lm $LIBS"
  12950. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12951. /* end confdefs.h. */
  12952. /* Override any GCC internal prototype to avoid an error.
  12953. Use char because int might match the return type of a GCC
  12954. builtin and then its argument prototype would still apply. */
  12955. #ifdef __cplusplus
  12956. extern "C"
  12957. #endif
  12958. char pow ();
  12959. int
  12960. main ()
  12961. {
  12962. return pow ();
  12963. ;
  12964. return 0;
  12965. }
  12966. _ACEOF
  12967. if ac_fn_cxx_try_link "$LINENO"; then :
  12968. ac_cv_lib_m_pow=yes
  12969. else
  12970. ac_cv_lib_m_pow=no
  12971. fi
  12972. rm -f core conftest.err conftest.$ac_objext \
  12973. conftest$ac_exeext conftest.$ac_ext
  12974. LIBS=$ac_check_lib_save_LIBS
  12975. fi
  12976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  12977. $as_echo "$ac_cv_lib_m_pow" >&6; }
  12978. if test "x$ac_cv_lib_m_pow" = x""yes; then :
  12979. POW_LIB=-lm
  12980. else
  12981. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  12982. $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  12983. fi
  12984. fi
  12985. fi
  12986. for ac_func in __argz_count \
  12987. __argz_next \
  12988. __argz_stringify \
  12989. atexit \
  12990. ftruncate \
  12991. getcwd \
  12992. gethostbyaddr \
  12993. gethostbyname \
  12994. getifaddrs \
  12995. getpagesize \
  12996. inet_ntoa \
  12997. inet_ntop \
  12998. memchr \
  12999. memmove \
  13000. mempcpy \
  13001. memset \
  13002. mkdir \
  13003. munmap \
  13004. nl_langinfo \
  13005. posix_memalign \
  13006. pow \
  13007. putenv \
  13008. rmdir \
  13009. select \
  13010. setlocale \
  13011. sleep \
  13012. socket \
  13013. stpcpy \
  13014. strcasecmp \
  13015. strchr \
  13016. strcspn \
  13017. strdup \
  13018. strerror \
  13019. strncasecmp \
  13020. strstr \
  13021. strtol \
  13022. strtoul \
  13023. strtoull \
  13024. tzset \
  13025. unsetenv \
  13026. usleep \
  13027. utime
  13028. do :
  13029. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  13030. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  13031. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  13032. cat >>confdefs.h <<_ACEOF
  13033. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  13034. _ACEOF
  13035. fi
  13036. done
  13037. if test "x$enable_epoll" = "xyes"; then
  13038. for ac_func in epoll_create
  13039. do :
  13040. ac_fn_cxx_check_func "$LINENO" "epoll_create" "ac_cv_func_epoll_create"
  13041. if test "x$ac_cv_func_epoll_create" = x""yes; then :
  13042. cat >>confdefs.h <<_ACEOF
  13043. #define HAVE_EPOLL_CREATE 1
  13044. _ACEOF
  13045. have_epoll=yes
  13046. fi
  13047. done
  13048. if test "x$have_epoll" = "xyes"; then
  13049. $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
  13050. fi
  13051. fi
  13052. if test "x$have_epoll" = "xyes"; then
  13053. HAVE_EPOLL_TRUE=
  13054. HAVE_EPOLL_FALSE='#'
  13055. else
  13056. HAVE_EPOLL_TRUE='#'
  13057. HAVE_EPOLL_FALSE=
  13058. fi
  13059. for ac_func in posix_fallocate
  13060. do :
  13061. ac_fn_cxx_check_func "$LINENO" "posix_fallocate" "ac_cv_func_posix_fallocate"
  13062. if test "x$ac_cv_func_posix_fallocate" = x""yes; then :
  13063. cat >>confdefs.h <<_ACEOF
  13064. #define HAVE_POSIX_FALLOCATE 1
  13065. _ACEOF
  13066. have_posix_fallocate=yes
  13067. fi
  13068. done
  13069. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fallocate" >&5
  13070. $as_echo_n "checking for fallocate... " >&6; }
  13071. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13072. /* end confdefs.h. */
  13073. #include <fcntl.h>
  13074. int
  13075. main ()
  13076. {
  13077. fallocate(2, 0, 0, 4096);
  13078. ;
  13079. return 0;
  13080. }
  13081. _ACEOF
  13082. if ac_fn_cxx_try_compile "$LINENO"; then :
  13083. have_fallocate=yes
  13084. else
  13085. have_fallocate=no
  13086. fi
  13087. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13088. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_fallocate" >&5
  13089. $as_echo "$have_fallocate" >&6; }
  13090. if test "x$have_fallocate" = "xyes"; then
  13091. $as_echo "#define HAVE_FALLOCATE 1" >>confdefs.h
  13092. fi
  13093. if test "x$have_posix_fallocate" = "xyes" ||
  13094. test "x$have_fallocate" = "xyes"; then
  13095. $as_echo "#define HAVE_SOME_FALLOCATE 1" >>confdefs.h
  13096. fi
  13097. if test "x$have_posix_fallocate" = "xyes" || test "x$have_fallocate" = "xyes"; then
  13098. HAVE_SOME_FALLOCATE_TRUE=
  13099. HAVE_SOME_FALLOCATE_FALSE='#'
  13100. else
  13101. HAVE_SOME_FALLOCATE_TRUE='#'
  13102. HAVE_SOME_FALLOCATE_FALSE=
  13103. fi
  13104. for ac_func in asctime_r
  13105. do :
  13106. ac_fn_cxx_check_func "$LINENO" "asctime_r" "ac_cv_func_asctime_r"
  13107. if test "x$ac_cv_func_asctime_r" = x""yes; then :
  13108. cat >>confdefs.h <<_ACEOF
  13109. #define HAVE_ASCTIME_R 1
  13110. _ACEOF
  13111. if true; then
  13112. HAVE_ASCTIME_R_TRUE=
  13113. HAVE_ASCTIME_R_FALSE='#'
  13114. else
  13115. HAVE_ASCTIME_R_TRUE='#'
  13116. HAVE_ASCTIME_R_FALSE=
  13117. fi
  13118. else
  13119. if false; then
  13120. HAVE_ASCTIME_R_TRUE=
  13121. HAVE_ASCTIME_R_FALSE='#'
  13122. else
  13123. HAVE_ASCTIME_R_TRUE='#'
  13124. HAVE_ASCTIME_R_FALSE=
  13125. fi
  13126. fi
  13127. done
  13128. for ac_func in basename
  13129. do :
  13130. ac_fn_cxx_check_func "$LINENO" "basename" "ac_cv_func_basename"
  13131. if test "x$ac_cv_func_basename" = x""yes; then :
  13132. cat >>confdefs.h <<_ACEOF
  13133. #define HAVE_BASENAME 1
  13134. _ACEOF
  13135. if true; then
  13136. HAVE_BASENAME_TRUE=
  13137. HAVE_BASENAME_FALSE='#'
  13138. else
  13139. HAVE_BASENAME_TRUE='#'
  13140. HAVE_BASENAME_FALSE=
  13141. fi
  13142. else
  13143. if false; then
  13144. HAVE_BASENAME_TRUE=
  13145. HAVE_BASENAME_FALSE='#'
  13146. else
  13147. HAVE_BASENAME_TRUE='#'
  13148. HAVE_BASENAME_FALSE=
  13149. fi
  13150. fi
  13151. done
  13152. for ac_func in gai_strerror
  13153. do :
  13154. ac_fn_cxx_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
  13155. if test "x$ac_cv_func_gai_strerror" = x""yes; then :
  13156. cat >>confdefs.h <<_ACEOF
  13157. #define HAVE_GAI_STRERROR 1
  13158. _ACEOF
  13159. if true; then
  13160. HAVE_GAI_STRERROR_TRUE=
  13161. HAVE_GAI_STRERROR_FALSE='#'
  13162. else
  13163. HAVE_GAI_STRERROR_TRUE='#'
  13164. HAVE_GAI_STRERROR_FALSE=
  13165. fi
  13166. else
  13167. if false; then
  13168. HAVE_GAI_STRERROR_TRUE=
  13169. HAVE_GAI_STRERROR_FALSE='#'
  13170. else
  13171. HAVE_GAI_STRERROR_TRUE='#'
  13172. HAVE_GAI_STRERROR_FALSE=
  13173. fi
  13174. fi
  13175. done
  13176. for ac_func in getaddrinfo
  13177. do :
  13178. ac_fn_cxx_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
  13179. if test "x$ac_cv_func_getaddrinfo" = x""yes; then :
  13180. cat >>confdefs.h <<_ACEOF
  13181. #define HAVE_GETADDRINFO 1
  13182. _ACEOF
  13183. if true; then
  13184. HAVE_GETADDRINFO_TRUE=
  13185. HAVE_GETADDRINFO_FALSE='#'
  13186. else
  13187. HAVE_GETADDRINFO_TRUE='#'
  13188. HAVE_GETADDRINFO_FALSE=
  13189. fi
  13190. else
  13191. if false; then
  13192. HAVE_GETADDRINFO_TRUE=
  13193. HAVE_GETADDRINFO_FALSE='#'
  13194. else
  13195. HAVE_GETADDRINFO_TRUE='#'
  13196. HAVE_GETADDRINFO_FALSE=
  13197. fi
  13198. fi
  13199. done
  13200. for ac_func in gettimeofday
  13201. do :
  13202. ac_fn_cxx_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
  13203. if test "x$ac_cv_func_gettimeofday" = x""yes; then :
  13204. cat >>confdefs.h <<_ACEOF
  13205. #define HAVE_GETTIMEOFDAY 1
  13206. _ACEOF
  13207. if true; then
  13208. HAVE_GETTIMEOFDAY_TRUE=
  13209. HAVE_GETTIMEOFDAY_FALSE='#'
  13210. else
  13211. HAVE_GETTIMEOFDAY_TRUE='#'
  13212. HAVE_GETTIMEOFDAY_FALSE=
  13213. fi
  13214. else
  13215. if false; then
  13216. HAVE_GETTIMEOFDAY_TRUE=
  13217. HAVE_GETTIMEOFDAY_FALSE='#'
  13218. else
  13219. HAVE_GETTIMEOFDAY_TRUE='#'
  13220. HAVE_GETTIMEOFDAY_FALSE=
  13221. fi
  13222. fi
  13223. done
  13224. for ac_func in inet_aton
  13225. do :
  13226. ac_fn_cxx_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
  13227. if test "x$ac_cv_func_inet_aton" = x""yes; then :
  13228. cat >>confdefs.h <<_ACEOF
  13229. #define HAVE_INET_ATON 1
  13230. _ACEOF
  13231. if true; then
  13232. HAVE_INET_ATON_TRUE=
  13233. HAVE_INET_ATON_FALSE='#'
  13234. else
  13235. HAVE_INET_ATON_TRUE='#'
  13236. HAVE_INET_ATON_FALSE=
  13237. fi
  13238. else
  13239. if false; then
  13240. HAVE_INET_ATON_TRUE=
  13241. HAVE_INET_ATON_FALSE='#'
  13242. else
  13243. HAVE_INET_ATON_TRUE='#'
  13244. HAVE_INET_ATON_FALSE=
  13245. fi
  13246. fi
  13247. done
  13248. for ac_func in localtime_r
  13249. do :
  13250. ac_fn_cxx_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r"
  13251. if test "x$ac_cv_func_localtime_r" = x""yes; then :
  13252. cat >>confdefs.h <<_ACEOF
  13253. #define HAVE_LOCALTIME_R 1
  13254. _ACEOF
  13255. if true; then
  13256. HAVE_LOCALTIME_R_TRUE=
  13257. HAVE_LOCALTIME_R_FALSE='#'
  13258. else
  13259. HAVE_LOCALTIME_R_TRUE='#'
  13260. HAVE_LOCALTIME_R_FALSE=
  13261. fi
  13262. else
  13263. if false; then
  13264. HAVE_LOCALTIME_R_TRUE=
  13265. HAVE_LOCALTIME_R_FALSE='#'
  13266. else
  13267. HAVE_LOCALTIME_R_TRUE='#'
  13268. HAVE_LOCALTIME_R_FALSE=
  13269. fi
  13270. fi
  13271. done
  13272. for ac_func in strptime
  13273. do :
  13274. ac_fn_cxx_check_func "$LINENO" "strptime" "ac_cv_func_strptime"
  13275. if test "x$ac_cv_func_strptime" = x""yes; then :
  13276. cat >>confdefs.h <<_ACEOF
  13277. #define HAVE_STRPTIME 1
  13278. _ACEOF
  13279. if true; then
  13280. HAVE_STRPTIME_TRUE=
  13281. HAVE_STRPTIME_FALSE='#'
  13282. else
  13283. HAVE_STRPTIME_TRUE='#'
  13284. HAVE_STRPTIME_FALSE=
  13285. fi
  13286. else
  13287. if false; then
  13288. HAVE_STRPTIME_TRUE=
  13289. HAVE_STRPTIME_FALSE='#'
  13290. else
  13291. HAVE_STRPTIME_TRUE='#'
  13292. HAVE_STRPTIME_FALSE=
  13293. fi
  13294. fi
  13295. done
  13296. for ac_func in timegm
  13297. do :
  13298. ac_fn_cxx_check_func "$LINENO" "timegm" "ac_cv_func_timegm"
  13299. if test "x$ac_cv_func_timegm" = x""yes; then :
  13300. cat >>confdefs.h <<_ACEOF
  13301. #define HAVE_TIMEGM 1
  13302. _ACEOF
  13303. if true; then
  13304. HAVE_TIMEGM_TRUE=
  13305. HAVE_TIMEGM_FALSE='#'
  13306. else
  13307. HAVE_TIMEGM_TRUE='#'
  13308. HAVE_TIMEGM_FALSE=
  13309. fi
  13310. else
  13311. if false; then
  13312. HAVE_TIMEGM_TRUE=
  13313. HAVE_TIMEGM_FALSE='#'
  13314. else
  13315. HAVE_TIMEGM_TRUE='#'
  13316. HAVE_TIMEGM_FALSE=
  13317. fi
  13318. fi
  13319. done
  13320. for ac_func in daemon
  13321. do :
  13322. ac_fn_cxx_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
  13323. if test "x$ac_cv_func_daemon" = x""yes; then :
  13324. cat >>confdefs.h <<_ACEOF
  13325. #define HAVE_DAEMON 1
  13326. _ACEOF
  13327. have_daemon=yes
  13328. fi
  13329. done
  13330. if test "x$have_daemon" = "xyes"; then
  13331. HAVE_DAEMON_TRUE=
  13332. HAVE_DAEMON_FALSE='#'
  13333. else
  13334. HAVE_DAEMON_TRUE='#'
  13335. HAVE_DAEMON_FALSE=
  13336. fi
  13337. for ac_func in clock_gettime
  13338. do :
  13339. ac_fn_cxx_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
  13340. if test "x$ac_cv_func_clock_gettime" = x""yes; then :
  13341. cat >>confdefs.h <<_ACEOF
  13342. #define HAVE_CLOCK_GETTIME 1
  13343. _ACEOF
  13344. have_clock_gettime=yes
  13345. fi
  13346. done
  13347. if test "x$have_clock_gettime" != "xyes"; then
  13348. for ac_func in mach_absolute_time
  13349. do :
  13350. ac_fn_cxx_check_func "$LINENO" "mach_absolute_time" "ac_cv_func_mach_absolute_time"
  13351. if test "x$ac_cv_func_mach_absolute_time" = x""yes; then :
  13352. cat >>confdefs.h <<_ACEOF
  13353. #define HAVE_MACH_ABSOLUTE_TIME 1
  13354. _ACEOF
  13355. have_mach_absolute_time=yes
  13356. fi
  13357. done
  13358. fi
  13359. if test "x$have_mach_absolute_time" = "xyes"; then
  13360. HAVE_MACH_ABSOLUTE_TIME_TRUE=
  13361. HAVE_MACH_ABSOLUTE_TIME_FALSE='#'
  13362. else
  13363. HAVE_MACH_ABSOLUTE_TIME_TRUE='#'
  13364. HAVE_MACH_ABSOLUTE_TIME_FALSE=
  13365. fi
  13366. for ac_func in poll
  13367. do :
  13368. ac_fn_cxx_check_func "$LINENO" "poll" "ac_cv_func_poll"
  13369. if test "x$ac_cv_func_poll" = x""yes; then :
  13370. cat >>confdefs.h <<_ACEOF
  13371. #define HAVE_POLL 1
  13372. _ACEOF
  13373. have_poll=yes
  13374. fi
  13375. done
  13376. if test "x$have_poll" = "xyes"; then
  13377. HAVE_POLL_TRUE=
  13378. HAVE_POLL_FALSE='#'
  13379. else
  13380. HAVE_POLL_TRUE='#'
  13381. HAVE_POLL_FALSE=
  13382. fi
  13383. case "$target" in
  13384. *mingw*)
  13385. if true; then
  13386. HAVE_GETADDRINFO_TRUE=
  13387. HAVE_GETADDRINFO_FALSE='#'
  13388. else
  13389. HAVE_GETADDRINFO_TRUE='#'
  13390. HAVE_GETADDRINFO_FALSE=
  13391. fi
  13392. if false; then
  13393. HAVE_GAI_STRERROR_TRUE=
  13394. HAVE_GAI_STRERROR_FALSE='#'
  13395. else
  13396. HAVE_GAI_STRERROR_TRUE='#'
  13397. HAVE_GAI_STRERROR_FALSE=
  13398. fi
  13399. if test "x$have_clock_gettime" != "xyes"; then
  13400. if true; then
  13401. HAVE_TIMEGETTIME_TRUE=
  13402. HAVE_TIMEGETTIME_FALSE='#'
  13403. else
  13404. HAVE_TIMEGETTIME_TRUE='#'
  13405. HAVE_TIMEGETTIME_FALSE=
  13406. fi
  13407. fi
  13408. ;;
  13409. *)
  13410. if false; then
  13411. HAVE_TIMEGETTIME_TRUE=
  13412. HAVE_TIMEGETTIME_FALSE='#'
  13413. else
  13414. HAVE_TIMEGETTIME_TRUE='#'
  13415. HAVE_TIMEGETTIME_FALSE=
  13416. fi
  13417. ;;
  13418. esac
  13419. for ac_func in port_associate
  13420. do :
  13421. ac_fn_cxx_check_func "$LINENO" "port_associate" "ac_cv_func_port_associate"
  13422. if test "x$ac_cv_func_port_associate" = x""yes; then :
  13423. cat >>confdefs.h <<_ACEOF
  13424. #define HAVE_PORT_ASSOCIATE 1
  13425. _ACEOF
  13426. have_port_associate=yes
  13427. fi
  13428. done
  13429. if test "x$have_port_associate" = "xyes"; then
  13430. HAVE_PORT_ASSOCIATE_TRUE=
  13431. HAVE_PORT_ASSOCIATE_FALSE='#'
  13432. else
  13433. HAVE_PORT_ASSOCIATE_TRUE='#'
  13434. HAVE_PORT_ASSOCIATE_FALSE=
  13435. fi
  13436. for ac_func in kqueue
  13437. do :
  13438. ac_fn_cxx_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
  13439. if test "x$ac_cv_func_kqueue" = x""yes; then :
  13440. cat >>confdefs.h <<_ACEOF
  13441. #define HAVE_KQUEUE 1
  13442. _ACEOF
  13443. have_kqueue=yes
  13444. fi
  13445. done
  13446. if test "x$have_kqueue" = "xyes"; then
  13447. HAVE_KQUEUE_TRUE=
  13448. HAVE_KQUEUE_FALSE='#'
  13449. else
  13450. HAVE_KQUEUE_TRUE='#'
  13451. HAVE_KQUEUE_FALSE=
  13452. fi
  13453. if test "x$have_kqueue" = "xyes"; then
  13454. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct kevent.udata is intptr_t" >&5
  13455. $as_echo_n "checking whether struct kevent.udata is intptr_t... " >&6; }
  13456. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13457. /* end confdefs.h. */
  13458. #include <sys/types.h>
  13459. #include <sys/event.h>
  13460. #include <sys/time.h>
  13461. int
  13462. main ()
  13463. {
  13464. struct kevent event;
  13465. event.udata = reinterpret_cast<intptr_t>(&event);
  13466. ;
  13467. return 0;
  13468. }
  13469. _ACEOF
  13470. if ac_fn_cxx_try_compile "$LINENO"; then :
  13471. kevent_udata_intptr_t=yes
  13472. else
  13473. kevent_udata_intptr_t=no
  13474. fi
  13475. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kevent_udata_intptr_t" >&5
  13477. $as_echo "$kevent_udata_intptr_t" >&6; }
  13478. if test "x$kevent_udata_intptr_t" = "xyes"; then
  13479. $as_echo "#define KEVENT_UDATA_INTPTR_T 1" >>confdefs.h
  13480. fi
  13481. fi
  13482. ac_fn_cxx_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <netinet/in.h>
  13483. "
  13484. if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = x""yes; then :
  13485. $as_echo "#define HAVE_SOCKADDR_IN_SIN_LEN 1" >>confdefs.h
  13486. fi
  13487. # Check struct option.name is assignable from const char*. struct
  13488. # option.name in opensolaris is of type char*. In Linux, it is const
  13489. # char*
  13490. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct option.name is assignable from const char*" >&5
  13491. $as_echo_n "checking whether struct option.name is assignable from const char*... " >&6; }
  13492. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13493. /* end confdefs.h. */
  13494. #include <unistd.h>
  13495. #include <getopt.h>
  13496. int
  13497. main ()
  13498. {
  13499. const char* s = "const char";
  13500. option op;
  13501. op.name = s;
  13502. ;
  13503. return 0;
  13504. }
  13505. _ACEOF
  13506. if ac_fn_cxx_try_compile "$LINENO"; then :
  13507. have_option_const_name=yes
  13508. else
  13509. have_option_const_name=no
  13510. fi
  13511. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13512. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_option_const_name" >&5
  13513. $as_echo "$have_option_const_name" >&6; }
  13514. if test "x$have_option_const_name" = "xyes"; then
  13515. $as_echo "#define HAVE_OPTION_CONST_NAME 1" >>confdefs.h
  13516. fi
  13517. ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile po/Makefile.in intl/Makefile lib/Makefile doc/Makefile"
  13518. cat >confcache <<\_ACEOF
  13519. # This file is a shell script that caches the results of configure
  13520. # tests run on this system so they can be shared between configure
  13521. # scripts and configure runs, see configure's option --config-cache.
  13522. # It is not useful on other systems. If it contains results you don't
  13523. # want to keep, you may remove or edit it.
  13524. #
  13525. # config.status only pays attention to the cache file if you give it
  13526. # the --recheck option to rerun configure.
  13527. #
  13528. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  13529. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  13530. # following values.
  13531. _ACEOF
  13532. # The following way of writing the cache mishandles newlines in values,
  13533. # but we know of no workaround that is simple, portable, and efficient.
  13534. # So, we kill variables containing newlines.
  13535. # Ultrix sh set writes to stderr and can't be redirected directly,
  13536. # and sets the high bit in the cache file unless we assign to the vars.
  13537. (
  13538. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  13539. eval ac_val=\$$ac_var
  13540. case $ac_val in #(
  13541. *${as_nl}*)
  13542. case $ac_var in #(
  13543. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  13544. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  13545. esac
  13546. case $ac_var in #(
  13547. _ | IFS | as_nl) ;; #(
  13548. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  13549. *) { eval $ac_var=; unset $ac_var;} ;;
  13550. esac ;;
  13551. esac
  13552. done
  13553. (set) 2>&1 |
  13554. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  13555. *${as_nl}ac_space=\ *)
  13556. # `set' does not quote correctly, so add quotes: double-quote
  13557. # substitution turns \\\\ into \\, and sed turns \\ into \.
  13558. sed -n \
  13559. "s/'/'\\\\''/g;
  13560. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  13561. ;; #(
  13562. *)
  13563. # `set' quotes correctly as required by POSIX, so do not add quotes.
  13564. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  13565. ;;
  13566. esac |
  13567. sort
  13568. ) |
  13569. sed '
  13570. /^ac_cv_env_/b end
  13571. t clear
  13572. :clear
  13573. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  13574. t end
  13575. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  13576. :end' >>confcache
  13577. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  13578. if test -w "$cache_file"; then
  13579. test "x$cache_file" != "x/dev/null" &&
  13580. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  13581. $as_echo "$as_me: updating cache $cache_file" >&6;}
  13582. cat confcache >$cache_file
  13583. else
  13584. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  13585. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  13586. fi
  13587. fi
  13588. rm -f confcache
  13589. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  13590. # Let make expand exec_prefix.
  13591. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  13592. DEFS=-DHAVE_CONFIG_H
  13593. ac_libobjs=
  13594. ac_ltlibobjs=
  13595. U=
  13596. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  13597. # 1. Remove the extension, and $U if already installed.
  13598. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  13599. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  13600. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  13601. # will be set to the directory where LIBOBJS objects are built.
  13602. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  13603. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  13604. done
  13605. LIBOBJS=$ac_libobjs
  13606. LTLIBOBJS=$ac_ltlibobjs
  13607. if test -n "$EXEEXT"; then
  13608. am__EXEEXT_TRUE=
  13609. am__EXEEXT_FALSE='#'
  13610. else
  13611. am__EXEEXT_TRUE='#'
  13612. am__EXEEXT_FALSE=
  13613. fi
  13614. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  13615. as_fn_error $? "conditional \"AMDEP\" was never defined.
  13616. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13617. fi
  13618. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  13619. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  13620. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13621. fi
  13622. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  13623. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  13624. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13625. fi
  13626. if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
  13627. as_fn_error $? "conditional \"ENABLE_SSL\" was never defined.
  13628. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13629. fi
  13630. if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
  13631. as_fn_error $? "conditional \"ENABLE_SSL\" was never defined.
  13632. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13633. fi
  13634. if test -z "${HAVE_LIBGNUTLS_TRUE}" && test -z "${HAVE_LIBGNUTLS_FALSE}"; then
  13635. as_fn_error $? "conditional \"HAVE_LIBGNUTLS\" was never defined.
  13636. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13637. fi
  13638. if test -z "${HAVE_LIBSSL_TRUE}" && test -z "${HAVE_LIBSSL_FALSE}"; then
  13639. as_fn_error $? "conditional \"HAVE_LIBSSL\" was never defined.
  13640. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13641. fi
  13642. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  13643. as_fn_error $? "conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  13644. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13645. fi
  13646. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  13647. as_fn_error $? "conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  13648. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13649. fi
  13650. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  13651. as_fn_error $? "conditional \"ENABLE_BITTORRENT\" was never defined.
  13652. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13653. fi
  13654. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  13655. as_fn_error $? "conditional \"ENABLE_BITTORRENT\" was never defined.
  13656. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13657. fi
  13658. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  13659. as_fn_error $? "conditional \"ENABLE_METALINK\" was never defined.
  13660. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13661. fi
  13662. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  13663. as_fn_error $? "conditional \"ENABLE_METALINK\" was never defined.
  13664. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13665. fi
  13666. if test -z "${ENABLE_METALINK_LIBXML2_TRUE}" && test -z "${ENABLE_METALINK_LIBXML2_FALSE}"; then
  13667. as_fn_error $? "conditional \"ENABLE_METALINK_LIBXML2\" was never defined.
  13668. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13669. fi
  13670. if test -z "${ENABLE_METALINK_LIBEXPAT_TRUE}" && test -z "${ENABLE_METALINK_LIBEXPAT_FALSE}"; then
  13671. as_fn_error $? "conditional \"ENABLE_METALINK_LIBEXPAT\" was never defined.
  13672. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13673. fi
  13674. if test -z "${ENABLE_XML_RPC_TRUE}" && test -z "${ENABLE_XML_RPC_FALSE}"; then
  13675. as_fn_error $? "conditional \"ENABLE_XML_RPC\" was never defined.
  13676. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13677. fi
  13678. if test -z "${HAVE_LIBXML2_TRUE}" && test -z "${HAVE_LIBXML2_FALSE}"; then
  13679. as_fn_error $? "conditional \"HAVE_LIBXML2\" was never defined.
  13680. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13681. fi
  13682. if test -z "${HAVE_LIBEXPAT_TRUE}" && test -z "${HAVE_LIBEXPAT_FALSE}"; then
  13683. as_fn_error $? "conditional \"HAVE_LIBEXPAT\" was never defined.
  13684. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13685. fi
  13686. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  13687. as_fn_error $? "conditional \"ENABLE_ASYNC_DNS\" was never defined.
  13688. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13689. fi
  13690. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  13691. as_fn_error $? "conditional \"ENABLE_ASYNC_DNS\" was never defined.
  13692. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13693. fi
  13694. if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
  13695. as_fn_error $? "conditional \"HAVE_LIBZ\" was never defined.
  13696. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13697. fi
  13698. if test -z "${HAVE_SQLITE3_TRUE}" && test -z "${HAVE_SQLITE3_FALSE}"; then
  13699. as_fn_error $? "conditional \"HAVE_SQLITE3\" was never defined.
  13700. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13701. fi
  13702. if test -z "${HAVE_EPOLL_TRUE}" && test -z "${HAVE_EPOLL_FALSE}"; then
  13703. as_fn_error $? "conditional \"HAVE_EPOLL\" was never defined.
  13704. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13705. fi
  13706. if test -z "${HAVE_SOME_FALLOCATE_TRUE}" && test -z "${HAVE_SOME_FALLOCATE_FALSE}"; then
  13707. as_fn_error $? "conditional \"HAVE_SOME_FALLOCATE\" was never defined.
  13708. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13709. fi
  13710. if test -z "${HAVE_ASCTIME_R_TRUE}" && test -z "${HAVE_ASCTIME_R_FALSE}"; then
  13711. as_fn_error $? "conditional \"HAVE_ASCTIME_R\" was never defined.
  13712. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13713. fi
  13714. if test -z "${HAVE_ASCTIME_R_TRUE}" && test -z "${HAVE_ASCTIME_R_FALSE}"; then
  13715. as_fn_error $? "conditional \"HAVE_ASCTIME_R\" was never defined.
  13716. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13717. fi
  13718. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  13719. as_fn_error $? "conditional \"HAVE_BASENAME\" was never defined.
  13720. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13721. fi
  13722. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  13723. as_fn_error $? "conditional \"HAVE_BASENAME\" was never defined.
  13724. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13725. fi
  13726. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  13727. as_fn_error $? "conditional \"HAVE_GAI_STRERROR\" was never defined.
  13728. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13729. fi
  13730. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  13731. as_fn_error $? "conditional \"HAVE_GAI_STRERROR\" was never defined.
  13732. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13733. fi
  13734. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  13735. as_fn_error $? "conditional \"HAVE_GETADDRINFO\" was never defined.
  13736. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13737. fi
  13738. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  13739. as_fn_error $? "conditional \"HAVE_GETADDRINFO\" was never defined.
  13740. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13741. fi
  13742. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  13743. as_fn_error $? "conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  13744. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13745. fi
  13746. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  13747. as_fn_error $? "conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  13748. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13749. fi
  13750. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  13751. as_fn_error $? "conditional \"HAVE_INET_ATON\" was never defined.
  13752. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13753. fi
  13754. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  13755. as_fn_error $? "conditional \"HAVE_INET_ATON\" was never defined.
  13756. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13757. fi
  13758. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  13759. as_fn_error $? "conditional \"HAVE_LOCALTIME_R\" was never defined.
  13760. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13761. fi
  13762. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  13763. as_fn_error $? "conditional \"HAVE_LOCALTIME_R\" was never defined.
  13764. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13765. fi
  13766. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  13767. as_fn_error $? "conditional \"HAVE_STRPTIME\" was never defined.
  13768. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13769. fi
  13770. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  13771. as_fn_error $? "conditional \"HAVE_STRPTIME\" was never defined.
  13772. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13773. fi
  13774. if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
  13775. as_fn_error $? "conditional \"HAVE_TIMEGM\" was never defined.
  13776. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13777. fi
  13778. if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
  13779. as_fn_error $? "conditional \"HAVE_TIMEGM\" was never defined.
  13780. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13781. fi
  13782. if test -z "${HAVE_DAEMON_TRUE}" && test -z "${HAVE_DAEMON_FALSE}"; then
  13783. as_fn_error $? "conditional \"HAVE_DAEMON\" was never defined.
  13784. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13785. fi
  13786. if test -z "${HAVE_MACH_ABSOLUTE_TIME_TRUE}" && test -z "${HAVE_MACH_ABSOLUTE_TIME_FALSE}"; then
  13787. as_fn_error $? "conditional \"HAVE_MACH_ABSOLUTE_TIME\" was never defined.
  13788. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13789. fi
  13790. if test -z "${HAVE_POLL_TRUE}" && test -z "${HAVE_POLL_FALSE}"; then
  13791. as_fn_error $? "conditional \"HAVE_POLL\" was never defined.
  13792. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13793. fi
  13794. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  13795. as_fn_error $? "conditional \"HAVE_GETADDRINFO\" was never defined.
  13796. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13797. fi
  13798. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  13799. as_fn_error $? "conditional \"HAVE_GAI_STRERROR\" was never defined.
  13800. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13801. fi
  13802. if test -z "${HAVE_TIMEGETTIME_TRUE}" && test -z "${HAVE_TIMEGETTIME_FALSE}"; then
  13803. as_fn_error $? "conditional \"HAVE_TIMEGETTIME\" was never defined.
  13804. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13805. fi
  13806. if test -z "${HAVE_TIMEGETTIME_TRUE}" && test -z "${HAVE_TIMEGETTIME_FALSE}"; then
  13807. as_fn_error $? "conditional \"HAVE_TIMEGETTIME\" was never defined.
  13808. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13809. fi
  13810. if test -z "${HAVE_PORT_ASSOCIATE_TRUE}" && test -z "${HAVE_PORT_ASSOCIATE_FALSE}"; then
  13811. as_fn_error $? "conditional \"HAVE_PORT_ASSOCIATE\" was never defined.
  13812. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13813. fi
  13814. if test -z "${HAVE_KQUEUE_TRUE}" && test -z "${HAVE_KQUEUE_FALSE}"; then
  13815. as_fn_error $? "conditional \"HAVE_KQUEUE\" was never defined.
  13816. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13817. fi
  13818. : ${CONFIG_STATUS=./config.status}
  13819. ac_write_fail=0
  13820. ac_clean_files_save=$ac_clean_files
  13821. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  13822. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  13823. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  13824. as_write_fail=0
  13825. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  13826. #! $SHELL
  13827. # Generated by $as_me.
  13828. # Run this file to recreate the current configuration.
  13829. # Compiler output produced by configure, useful for debugging
  13830. # configure, is in config.log if it exists.
  13831. debug=false
  13832. ac_cs_recheck=false
  13833. ac_cs_silent=false
  13834. SHELL=\${CONFIG_SHELL-$SHELL}
  13835. export SHELL
  13836. _ASEOF
  13837. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  13838. ## -------------------- ##
  13839. ## M4sh Initialization. ##
  13840. ## -------------------- ##
  13841. # Be more Bourne compatible
  13842. DUALCASE=1; export DUALCASE # for MKS sh
  13843. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  13844. emulate sh
  13845. NULLCMD=:
  13846. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  13847. # is contrary to our usage. Disable this feature.
  13848. alias -g '${1+"$@"}'='"$@"'
  13849. setopt NO_GLOB_SUBST
  13850. else
  13851. case `(set -o) 2>/dev/null` in #(
  13852. *posix*) :
  13853. set -o posix ;; #(
  13854. *) :
  13855. ;;
  13856. esac
  13857. fi
  13858. as_nl='
  13859. '
  13860. export as_nl
  13861. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  13862. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  13863. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  13864. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  13865. # Prefer a ksh shell builtin over an external printf program on Solaris,
  13866. # but without wasting forks for bash or zsh.
  13867. if test -z "$BASH_VERSION$ZSH_VERSION" \
  13868. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  13869. as_echo='print -r --'
  13870. as_echo_n='print -rn --'
  13871. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  13872. as_echo='printf %s\n'
  13873. as_echo_n='printf %s'
  13874. else
  13875. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  13876. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  13877. as_echo_n='/usr/ucb/echo -n'
  13878. else
  13879. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  13880. as_echo_n_body='eval
  13881. arg=$1;
  13882. case $arg in #(
  13883. *"$as_nl"*)
  13884. expr "X$arg" : "X\\(.*\\)$as_nl";
  13885. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  13886. esac;
  13887. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  13888. '
  13889. export as_echo_n_body
  13890. as_echo_n='sh -c $as_echo_n_body as_echo'
  13891. fi
  13892. export as_echo_body
  13893. as_echo='sh -c $as_echo_body as_echo'
  13894. fi
  13895. # The user is always right.
  13896. if test "${PATH_SEPARATOR+set}" != set; then
  13897. PATH_SEPARATOR=:
  13898. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  13899. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  13900. PATH_SEPARATOR=';'
  13901. }
  13902. fi
  13903. # IFS
  13904. # We need space, tab and new line, in precisely that order. Quoting is
  13905. # there to prevent editors from complaining about space-tab.
  13906. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  13907. # splitting by setting IFS to empty value.)
  13908. IFS=" "" $as_nl"
  13909. # Find who we are. Look in the path if we contain no directory separator.
  13910. case $0 in #((
  13911. *[\\/]* ) as_myself=$0 ;;
  13912. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13913. for as_dir in $PATH
  13914. do
  13915. IFS=$as_save_IFS
  13916. test -z "$as_dir" && as_dir=.
  13917. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  13918. done
  13919. IFS=$as_save_IFS
  13920. ;;
  13921. esac
  13922. # We did not find ourselves, most probably we were run as `sh COMMAND'
  13923. # in which case we are not to be found in the path.
  13924. if test "x$as_myself" = x; then
  13925. as_myself=$0
  13926. fi
  13927. if test ! -f "$as_myself"; then
  13928. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  13929. exit 1
  13930. fi
  13931. # Unset variables that we do not need and which cause bugs (e.g. in
  13932. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  13933. # suppresses any "Segmentation fault" message there. '((' could
  13934. # trigger a bug in pdksh 5.2.14.
  13935. for as_var in BASH_ENV ENV MAIL MAILPATH
  13936. do eval test x\${$as_var+set} = xset \
  13937. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  13938. done
  13939. PS1='$ '
  13940. PS2='> '
  13941. PS4='+ '
  13942. # NLS nuisances.
  13943. LC_ALL=C
  13944. export LC_ALL
  13945. LANGUAGE=C
  13946. export LANGUAGE
  13947. # CDPATH.
  13948. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13949. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  13950. # ----------------------------------------
  13951. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  13952. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  13953. # script with STATUS, using 1 if that was 0.
  13954. as_fn_error ()
  13955. {
  13956. as_status=$1; test $as_status -eq 0 && as_status=1
  13957. if test "$4"; then
  13958. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  13959. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  13960. fi
  13961. $as_echo "$as_me: error: $2" >&2
  13962. as_fn_exit $as_status
  13963. } # as_fn_error
  13964. # as_fn_set_status STATUS
  13965. # -----------------------
  13966. # Set $? to STATUS, without forking.
  13967. as_fn_set_status ()
  13968. {
  13969. return $1
  13970. } # as_fn_set_status
  13971. # as_fn_exit STATUS
  13972. # -----------------
  13973. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  13974. as_fn_exit ()
  13975. {
  13976. set +e
  13977. as_fn_set_status $1
  13978. exit $1
  13979. } # as_fn_exit
  13980. # as_fn_unset VAR
  13981. # ---------------
  13982. # Portably unset VAR.
  13983. as_fn_unset ()
  13984. {
  13985. { eval $1=; unset $1;}
  13986. }
  13987. as_unset=as_fn_unset
  13988. # as_fn_append VAR VALUE
  13989. # ----------------------
  13990. # Append the text in VALUE to the end of the definition contained in VAR. Take
  13991. # advantage of any shell optimizations that allow amortized linear growth over
  13992. # repeated appends, instead of the typical quadratic growth present in naive
  13993. # implementations.
  13994. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  13995. eval 'as_fn_append ()
  13996. {
  13997. eval $1+=\$2
  13998. }'
  13999. else
  14000. as_fn_append ()
  14001. {
  14002. eval $1=\$$1\$2
  14003. }
  14004. fi # as_fn_append
  14005. # as_fn_arith ARG...
  14006. # ------------------
  14007. # Perform arithmetic evaluation on the ARGs, and store the result in the
  14008. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  14009. # must be portable across $(()) and expr.
  14010. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  14011. eval 'as_fn_arith ()
  14012. {
  14013. as_val=$(( $* ))
  14014. }'
  14015. else
  14016. as_fn_arith ()
  14017. {
  14018. as_val=`expr "$@" || test $? -eq 1`
  14019. }
  14020. fi # as_fn_arith
  14021. if expr a : '\(a\)' >/dev/null 2>&1 &&
  14022. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  14023. as_expr=expr
  14024. else
  14025. as_expr=false
  14026. fi
  14027. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  14028. as_basename=basename
  14029. else
  14030. as_basename=false
  14031. fi
  14032. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  14033. as_dirname=dirname
  14034. else
  14035. as_dirname=false
  14036. fi
  14037. as_me=`$as_basename -- "$0" ||
  14038. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  14039. X"$0" : 'X\(//\)$' \| \
  14040. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  14041. $as_echo X/"$0" |
  14042. sed '/^.*\/\([^/][^/]*\)\/*$/{
  14043. s//\1/
  14044. q
  14045. }
  14046. /^X\/\(\/\/\)$/{
  14047. s//\1/
  14048. q
  14049. }
  14050. /^X\/\(\/\).*/{
  14051. s//\1/
  14052. q
  14053. }
  14054. s/.*/./; q'`
  14055. # Avoid depending upon Character Ranges.
  14056. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  14057. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  14058. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  14059. as_cr_digits='0123456789'
  14060. as_cr_alnum=$as_cr_Letters$as_cr_digits
  14061. ECHO_C= ECHO_N= ECHO_T=
  14062. case `echo -n x` in #(((((
  14063. -n*)
  14064. case `echo 'xy\c'` in
  14065. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  14066. xy) ECHO_C='\c';;
  14067. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  14068. ECHO_T=' ';;
  14069. esac;;
  14070. *)
  14071. ECHO_N='-n';;
  14072. esac
  14073. rm -f conf$$ conf$$.exe conf$$.file
  14074. if test -d conf$$.dir; then
  14075. rm -f conf$$.dir/conf$$.file
  14076. else
  14077. rm -f conf$$.dir
  14078. mkdir conf$$.dir 2>/dev/null
  14079. fi
  14080. if (echo >conf$$.file) 2>/dev/null; then
  14081. if ln -s conf$$.file conf$$ 2>/dev/null; then
  14082. as_ln_s='ln -s'
  14083. # ... but there are two gotchas:
  14084. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  14085. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  14086. # In both cases, we have to default to `cp -p'.
  14087. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  14088. as_ln_s='cp -p'
  14089. elif ln conf$$.file conf$$ 2>/dev/null; then
  14090. as_ln_s=ln
  14091. else
  14092. as_ln_s='cp -p'
  14093. fi
  14094. else
  14095. as_ln_s='cp -p'
  14096. fi
  14097. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  14098. rmdir conf$$.dir 2>/dev/null
  14099. # as_fn_mkdir_p
  14100. # -------------
  14101. # Create "$as_dir" as a directory, including parents if necessary.
  14102. as_fn_mkdir_p ()
  14103. {
  14104. case $as_dir in #(
  14105. -*) as_dir=./$as_dir;;
  14106. esac
  14107. test -d "$as_dir" || eval $as_mkdir_p || {
  14108. as_dirs=
  14109. while :; do
  14110. case $as_dir in #(
  14111. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  14112. *) as_qdir=$as_dir;;
  14113. esac
  14114. as_dirs="'$as_qdir' $as_dirs"
  14115. as_dir=`$as_dirname -- "$as_dir" ||
  14116. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14117. X"$as_dir" : 'X\(//\)[^/]' \| \
  14118. X"$as_dir" : 'X\(//\)$' \| \
  14119. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  14120. $as_echo X"$as_dir" |
  14121. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14122. s//\1/
  14123. q
  14124. }
  14125. /^X\(\/\/\)[^/].*/{
  14126. s//\1/
  14127. q
  14128. }
  14129. /^X\(\/\/\)$/{
  14130. s//\1/
  14131. q
  14132. }
  14133. /^X\(\/\).*/{
  14134. s//\1/
  14135. q
  14136. }
  14137. s/.*/./; q'`
  14138. test -d "$as_dir" && break
  14139. done
  14140. test -z "$as_dirs" || eval "mkdir $as_dirs"
  14141. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  14142. } # as_fn_mkdir_p
  14143. if mkdir -p . 2>/dev/null; then
  14144. as_mkdir_p='mkdir -p "$as_dir"'
  14145. else
  14146. test -d ./-p && rmdir ./-p
  14147. as_mkdir_p=false
  14148. fi
  14149. if test -x / >/dev/null 2>&1; then
  14150. as_test_x='test -x'
  14151. else
  14152. if ls -dL / >/dev/null 2>&1; then
  14153. as_ls_L_option=L
  14154. else
  14155. as_ls_L_option=
  14156. fi
  14157. as_test_x='
  14158. eval sh -c '\''
  14159. if test -d "$1"; then
  14160. test -d "$1/.";
  14161. else
  14162. case $1 in #(
  14163. -*)set "./$1";;
  14164. esac;
  14165. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  14166. ???[sx]*):;;*)false;;esac;fi
  14167. '\'' sh
  14168. '
  14169. fi
  14170. as_executable_p=$as_test_x
  14171. # Sed expression to map a string onto a valid CPP name.
  14172. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  14173. # Sed expression to map a string onto a valid variable name.
  14174. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  14175. exec 6>&1
  14176. ## ----------------------------------- ##
  14177. ## Main body of $CONFIG_STATUS script. ##
  14178. ## ----------------------------------- ##
  14179. _ASEOF
  14180. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  14181. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14182. # Save the log message, to keep $0 and so on meaningful, and to
  14183. # report actual input values of CONFIG_FILES etc. instead of their
  14184. # values after options handling.
  14185. ac_log="
  14186. This file was extended by aria2 $as_me 1.10.6, which was
  14187. generated by GNU Autoconf 2.67. Invocation command line was
  14188. CONFIG_FILES = $CONFIG_FILES
  14189. CONFIG_HEADERS = $CONFIG_HEADERS
  14190. CONFIG_LINKS = $CONFIG_LINKS
  14191. CONFIG_COMMANDS = $CONFIG_COMMANDS
  14192. $ $0 $@
  14193. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  14194. "
  14195. _ACEOF
  14196. case $ac_config_files in *"
  14197. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  14198. esac
  14199. case $ac_config_headers in *"
  14200. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  14201. esac
  14202. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14203. # Files that config.status was made for.
  14204. config_files="$ac_config_files"
  14205. config_headers="$ac_config_headers"
  14206. config_commands="$ac_config_commands"
  14207. _ACEOF
  14208. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14209. ac_cs_usage="\
  14210. \`$as_me' instantiates files and other configuration actions
  14211. from templates according to the current configuration. Unless the files
  14212. and actions are specified as TAGs, all are instantiated by default.
  14213. Usage: $0 [OPTION]... [TAG]...
  14214. -h, --help print this help, then exit
  14215. -V, --version print version number and configuration settings, then exit
  14216. --config print configuration, then exit
  14217. -q, --quiet, --silent
  14218. do not print progress messages
  14219. -d, --debug don't remove temporary files
  14220. --recheck update $as_me by reconfiguring in the same conditions
  14221. --file=FILE[:TEMPLATE]
  14222. instantiate the configuration file FILE
  14223. --header=FILE[:TEMPLATE]
  14224. instantiate the configuration header FILE
  14225. Configuration files:
  14226. $config_files
  14227. Configuration headers:
  14228. $config_headers
  14229. Configuration commands:
  14230. $config_commands
  14231. Report bugs to <t-tujikawa@users.sourceforge.net>.
  14232. aria2 home page: <http://aria2.sourceforge.net/>."
  14233. _ACEOF
  14234. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14235. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  14236. ac_cs_version="\\
  14237. aria2 config.status 1.10.6
  14238. configured by $0, generated by GNU Autoconf 2.67,
  14239. with options \\"\$ac_cs_config\\"
  14240. Copyright (C) 2010 Free Software Foundation, Inc.
  14241. This config.status script is free software; the Free Software Foundation
  14242. gives unlimited permission to copy, distribute and modify it."
  14243. ac_pwd='$ac_pwd'
  14244. srcdir='$srcdir'
  14245. INSTALL='$INSTALL'
  14246. MKDIR_P='$MKDIR_P'
  14247. AWK='$AWK'
  14248. test -n "\$AWK" || AWK=awk
  14249. _ACEOF
  14250. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14251. # The default lists apply if the user does not specify any file.
  14252. ac_need_defaults=:
  14253. while test $# != 0
  14254. do
  14255. case $1 in
  14256. --*=?*)
  14257. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  14258. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  14259. ac_shift=:
  14260. ;;
  14261. --*=)
  14262. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  14263. ac_optarg=
  14264. ac_shift=:
  14265. ;;
  14266. *)
  14267. ac_option=$1
  14268. ac_optarg=$2
  14269. ac_shift=shift
  14270. ;;
  14271. esac
  14272. case $ac_option in
  14273. # Handling of the options.
  14274. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  14275. ac_cs_recheck=: ;;
  14276. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  14277. $as_echo "$ac_cs_version"; exit ;;
  14278. --config | --confi | --conf | --con | --co | --c )
  14279. $as_echo "$ac_cs_config"; exit ;;
  14280. --debug | --debu | --deb | --de | --d | -d )
  14281. debug=: ;;
  14282. --file | --fil | --fi | --f )
  14283. $ac_shift
  14284. case $ac_optarg in
  14285. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14286. '') as_fn_error $? "missing file argument" ;;
  14287. esac
  14288. as_fn_append CONFIG_FILES " '$ac_optarg'"
  14289. ac_need_defaults=false;;
  14290. --header | --heade | --head | --hea )
  14291. $ac_shift
  14292. case $ac_optarg in
  14293. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14294. esac
  14295. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  14296. ac_need_defaults=false;;
  14297. --he | --h)
  14298. # Conflict between --help and --header
  14299. as_fn_error $? "ambiguous option: \`$1'
  14300. Try \`$0 --help' for more information.";;
  14301. --help | --hel | -h )
  14302. $as_echo "$ac_cs_usage"; exit ;;
  14303. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  14304. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  14305. ac_cs_silent=: ;;
  14306. # This is an error.
  14307. -*) as_fn_error $? "unrecognized option: \`$1'
  14308. Try \`$0 --help' for more information." ;;
  14309. *) as_fn_append ac_config_targets " $1"
  14310. ac_need_defaults=false ;;
  14311. esac
  14312. shift
  14313. done
  14314. ac_configure_extra_args=
  14315. if $ac_cs_silent; then
  14316. exec 6>/dev/null
  14317. ac_configure_extra_args="$ac_configure_extra_args --silent"
  14318. fi
  14319. _ACEOF
  14320. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14321. if \$ac_cs_recheck; then
  14322. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  14323. shift
  14324. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  14325. CONFIG_SHELL='$SHELL'
  14326. export CONFIG_SHELL
  14327. exec "\$@"
  14328. fi
  14329. _ACEOF
  14330. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14331. exec 5>>config.log
  14332. {
  14333. echo
  14334. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  14335. ## Running $as_me. ##
  14336. _ASBOX
  14337. $as_echo "$ac_log"
  14338. } >&5
  14339. _ACEOF
  14340. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14341. #
  14342. # INIT-COMMANDS
  14343. #
  14344. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  14345. # Capture the value of obsolete ALL_LINGUAS because we need it to compute
  14346. # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
  14347. # from automake < 1.5.
  14348. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
  14349. # Capture the value of LINGUAS because we need it to compute CATALOGS.
  14350. LINGUAS="${LINGUAS-%UNSET%}"
  14351. _ACEOF
  14352. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14353. # Handling of arguments.
  14354. for ac_config_target in $ac_config_targets
  14355. do
  14356. case $ac_config_target in
  14357. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  14358. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  14359. "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
  14360. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  14361. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  14362. "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  14363. "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
  14364. "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
  14365. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  14366. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  14367. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
  14368. esac
  14369. done
  14370. # If the user did not use the arguments to specify the items to instantiate,
  14371. # then the envvar interface is used. Set only those that are not.
  14372. # We use the long form for the default assignment because of an extremely
  14373. # bizarre bug on SunOS 4.1.3.
  14374. if $ac_need_defaults; then
  14375. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  14376. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  14377. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  14378. fi
  14379. # Have a temporary directory for convenience. Make it in the build tree
  14380. # simply because there is no reason against having it here, and in addition,
  14381. # creating and moving files from /tmp can sometimes cause problems.
  14382. # Hook for its removal unless debugging.
  14383. # Note that there is a small window in which the directory will not be cleaned:
  14384. # after its creation but before its name has been assigned to `$tmp'.
  14385. $debug ||
  14386. {
  14387. tmp=
  14388. trap 'exit_status=$?
  14389. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  14390. ' 0
  14391. trap 'as_fn_exit 1' 1 2 13 15
  14392. }
  14393. # Create a (secure) tmp directory for tmp files.
  14394. {
  14395. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  14396. test -n "$tmp" && test -d "$tmp"
  14397. } ||
  14398. {
  14399. tmp=./conf$$-$RANDOM
  14400. (umask 077 && mkdir "$tmp")
  14401. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  14402. # Set up the scripts for CONFIG_FILES section.
  14403. # No need to generate them if there are no CONFIG_FILES.
  14404. # This happens for instance with `./config.status config.h'.
  14405. if test -n "$CONFIG_FILES"; then
  14406. ac_cr=`echo X | tr X '\015'`
  14407. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  14408. # But we know of no other shell where ac_cr would be empty at this
  14409. # point, so we can use a bashism as a fallback.
  14410. if test "x$ac_cr" = x; then
  14411. eval ac_cr=\$\'\\r\'
  14412. fi
  14413. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  14414. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  14415. ac_cs_awk_cr='\\r'
  14416. else
  14417. ac_cs_awk_cr=$ac_cr
  14418. fi
  14419. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  14420. _ACEOF
  14421. {
  14422. echo "cat >conf$$subs.awk <<_ACEOF" &&
  14423. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  14424. echo "_ACEOF"
  14425. } >conf$$subs.sh ||
  14426. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  14427. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  14428. ac_delim='%!_!# '
  14429. for ac_last_try in false false false false false :; do
  14430. . ./conf$$subs.sh ||
  14431. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  14432. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  14433. if test $ac_delim_n = $ac_delim_num; then
  14434. break
  14435. elif $ac_last_try; then
  14436. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  14437. else
  14438. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  14439. fi
  14440. done
  14441. rm -f conf$$subs.sh
  14442. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14443. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  14444. _ACEOF
  14445. sed -n '
  14446. h
  14447. s/^/S["/; s/!.*/"]=/
  14448. p
  14449. g
  14450. s/^[^!]*!//
  14451. :repl
  14452. t repl
  14453. s/'"$ac_delim"'$//
  14454. t delim
  14455. :nl
  14456. h
  14457. s/\(.\{148\}\)..*/\1/
  14458. t more1
  14459. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  14460. p
  14461. n
  14462. b repl
  14463. :more1
  14464. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14465. p
  14466. g
  14467. s/.\{148\}//
  14468. t nl
  14469. :delim
  14470. h
  14471. s/\(.\{148\}\)..*/\1/
  14472. t more2
  14473. s/["\\]/\\&/g; s/^/"/; s/$/"/
  14474. p
  14475. b
  14476. :more2
  14477. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14478. p
  14479. g
  14480. s/.\{148\}//
  14481. t delim
  14482. ' <conf$$subs.awk | sed '
  14483. /^[^""]/{
  14484. N
  14485. s/\n//
  14486. }
  14487. ' >>$CONFIG_STATUS || ac_write_fail=1
  14488. rm -f conf$$subs.awk
  14489. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14490. _ACAWK
  14491. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  14492. for (key in S) S_is_set[key] = 1
  14493. FS = ""
  14494. }
  14495. {
  14496. line = $ 0
  14497. nfields = split(line, field, "@")
  14498. substed = 0
  14499. len = length(field[1])
  14500. for (i = 2; i < nfields; i++) {
  14501. key = field[i]
  14502. keylen = length(key)
  14503. if (S_is_set[key]) {
  14504. value = S[key]
  14505. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  14506. len += length(value) + length(field[++i])
  14507. substed = 1
  14508. } else
  14509. len += 1 + keylen
  14510. }
  14511. print line
  14512. }
  14513. _ACAWK
  14514. _ACEOF
  14515. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14516. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  14517. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  14518. else
  14519. cat
  14520. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  14521. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  14522. _ACEOF
  14523. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  14524. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  14525. # trailing colons and then remove the whole line if VPATH becomes empty
  14526. # (actually we leave an empty line to preserve line numbers).
  14527. if test "x$srcdir" = x.; then
  14528. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  14529. h
  14530. s///
  14531. s/^/:/
  14532. s/[ ]*$/:/
  14533. s/:\$(srcdir):/:/g
  14534. s/:\${srcdir}:/:/g
  14535. s/:@srcdir@:/:/g
  14536. s/^:*//
  14537. s/:*$//
  14538. x
  14539. s/\(=[ ]*\).*/\1/
  14540. G
  14541. s/\n//
  14542. s/^[^=]*=[ ]*$//
  14543. }'
  14544. fi
  14545. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14546. fi # test -n "$CONFIG_FILES"
  14547. # Set up the scripts for CONFIG_HEADERS section.
  14548. # No need to generate them if there are no CONFIG_HEADERS.
  14549. # This happens for instance with `./config.status Makefile'.
  14550. if test -n "$CONFIG_HEADERS"; then
  14551. cat >"$tmp/defines.awk" <<\_ACAWK ||
  14552. BEGIN {
  14553. _ACEOF
  14554. # Transform confdefs.h into an awk script `defines.awk', embedded as
  14555. # here-document in config.status, that substitutes the proper values into
  14556. # config.h.in to produce config.h.
  14557. # Create a delimiter string that does not exist in confdefs.h, to ease
  14558. # handling of long lines.
  14559. ac_delim='%!_!# '
  14560. for ac_last_try in false false :; do
  14561. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  14562. if test -z "$ac_t"; then
  14563. break
  14564. elif $ac_last_try; then
  14565. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  14566. else
  14567. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  14568. fi
  14569. done
  14570. # For the awk script, D is an array of macro values keyed by name,
  14571. # likewise P contains macro parameters if any. Preserve backslash
  14572. # newline sequences.
  14573. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  14574. sed -n '
  14575. s/.\{148\}/&'"$ac_delim"'/g
  14576. t rset
  14577. :rset
  14578. s/^[ ]*#[ ]*define[ ][ ]*/ /
  14579. t def
  14580. d
  14581. :def
  14582. s/\\$//
  14583. t bsnl
  14584. s/["\\]/\\&/g
  14585. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  14586. D["\1"]=" \3"/p
  14587. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  14588. d
  14589. :bsnl
  14590. s/["\\]/\\&/g
  14591. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  14592. D["\1"]=" \3\\\\\\n"\\/p
  14593. t cont
  14594. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  14595. t cont
  14596. d
  14597. :cont
  14598. n
  14599. s/.\{148\}/&'"$ac_delim"'/g
  14600. t clear
  14601. :clear
  14602. s/\\$//
  14603. t bsnlc
  14604. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  14605. d
  14606. :bsnlc
  14607. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  14608. b cont
  14609. ' <confdefs.h | sed '
  14610. s/'"$ac_delim"'/"\\\
  14611. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  14612. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14613. for (key in D) D_is_set[key] = 1
  14614. FS = ""
  14615. }
  14616. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  14617. line = \$ 0
  14618. split(line, arg, " ")
  14619. if (arg[1] == "#") {
  14620. defundef = arg[2]
  14621. mac1 = arg[3]
  14622. } else {
  14623. defundef = substr(arg[1], 2)
  14624. mac1 = arg[2]
  14625. }
  14626. split(mac1, mac2, "(") #)
  14627. macro = mac2[1]
  14628. prefix = substr(line, 1, index(line, defundef) - 1)
  14629. if (D_is_set[macro]) {
  14630. # Preserve the white space surrounding the "#".
  14631. print prefix "define", macro P[macro] D[macro]
  14632. next
  14633. } else {
  14634. # Replace #undef with comments. This is necessary, for example,
  14635. # in the case of _POSIX_SOURCE, which is predefined and required
  14636. # on some systems where configure will not decide to define it.
  14637. if (defundef == "undef") {
  14638. print "/*", prefix defundef, macro, "*/"
  14639. next
  14640. }
  14641. }
  14642. }
  14643. { print }
  14644. _ACAWK
  14645. _ACEOF
  14646. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14647. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  14648. fi # test -n "$CONFIG_HEADERS"
  14649. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  14650. shift
  14651. for ac_tag
  14652. do
  14653. case $ac_tag in
  14654. :[FHLC]) ac_mode=$ac_tag; continue;;
  14655. esac
  14656. case $ac_mode$ac_tag in
  14657. :[FHL]*:*);;
  14658. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
  14659. :[FH]-) ac_tag=-:-;;
  14660. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  14661. esac
  14662. ac_save_IFS=$IFS
  14663. IFS=:
  14664. set x $ac_tag
  14665. IFS=$ac_save_IFS
  14666. shift
  14667. ac_file=$1
  14668. shift
  14669. case $ac_mode in
  14670. :L) ac_source=$1;;
  14671. :[FH])
  14672. ac_file_inputs=
  14673. for ac_f
  14674. do
  14675. case $ac_f in
  14676. -) ac_f="$tmp/stdin";;
  14677. *) # Look for the file first in the build tree, then in the source tree
  14678. # (if the path is not absolute). The absolute path cannot be DOS-style,
  14679. # because $ac_f cannot contain `:'.
  14680. test -f "$ac_f" ||
  14681. case $ac_f in
  14682. [\\/$]*) false;;
  14683. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  14684. esac ||
  14685. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
  14686. esac
  14687. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  14688. as_fn_append ac_file_inputs " '$ac_f'"
  14689. done
  14690. # Let's still pretend it is `configure' which instantiates (i.e., don't
  14691. # use $as_me), people would be surprised to read:
  14692. # /* config.h. Generated by config.status. */
  14693. configure_input='Generated from '`
  14694. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  14695. `' by configure.'
  14696. if test x"$ac_file" != x-; then
  14697. configure_input="$ac_file. $configure_input"
  14698. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  14699. $as_echo "$as_me: creating $ac_file" >&6;}
  14700. fi
  14701. # Neutralize special characters interpreted by sed in replacement strings.
  14702. case $configure_input in #(
  14703. *\&* | *\|* | *\\* )
  14704. ac_sed_conf_input=`$as_echo "$configure_input" |
  14705. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  14706. *) ac_sed_conf_input=$configure_input;;
  14707. esac
  14708. case $ac_tag in
  14709. *:-:* | *:-) cat >"$tmp/stdin" \
  14710. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  14711. esac
  14712. ;;
  14713. esac
  14714. ac_dir=`$as_dirname -- "$ac_file" ||
  14715. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14716. X"$ac_file" : 'X\(//\)[^/]' \| \
  14717. X"$ac_file" : 'X\(//\)$' \| \
  14718. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  14719. $as_echo X"$ac_file" |
  14720. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14721. s//\1/
  14722. q
  14723. }
  14724. /^X\(\/\/\)[^/].*/{
  14725. s//\1/
  14726. q
  14727. }
  14728. /^X\(\/\/\)$/{
  14729. s//\1/
  14730. q
  14731. }
  14732. /^X\(\/\).*/{
  14733. s//\1/
  14734. q
  14735. }
  14736. s/.*/./; q'`
  14737. as_dir="$ac_dir"; as_fn_mkdir_p
  14738. ac_builddir=.
  14739. case "$ac_dir" in
  14740. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14741. *)
  14742. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  14743. # A ".." for each directory in $ac_dir_suffix.
  14744. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  14745. case $ac_top_builddir_sub in
  14746. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14747. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  14748. esac ;;
  14749. esac
  14750. ac_abs_top_builddir=$ac_pwd
  14751. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  14752. # for backward compatibility:
  14753. ac_top_builddir=$ac_top_build_prefix
  14754. case $srcdir in
  14755. .) # We are building in place.
  14756. ac_srcdir=.
  14757. ac_top_srcdir=$ac_top_builddir_sub
  14758. ac_abs_top_srcdir=$ac_pwd ;;
  14759. [\\/]* | ?:[\\/]* ) # Absolute name.
  14760. ac_srcdir=$srcdir$ac_dir_suffix;
  14761. ac_top_srcdir=$srcdir
  14762. ac_abs_top_srcdir=$srcdir ;;
  14763. *) # Relative name.
  14764. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  14765. ac_top_srcdir=$ac_top_build_prefix$srcdir
  14766. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  14767. esac
  14768. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  14769. case $ac_mode in
  14770. :F)
  14771. #
  14772. # CONFIG_FILE
  14773. #
  14774. case $INSTALL in
  14775. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  14776. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  14777. esac
  14778. ac_MKDIR_P=$MKDIR_P
  14779. case $MKDIR_P in
  14780. [\\/$]* | ?:[\\/]* ) ;;
  14781. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  14782. esac
  14783. _ACEOF
  14784. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14785. # If the template does not know about datarootdir, expand it.
  14786. # FIXME: This hack should be removed a few years after 2.60.
  14787. ac_datarootdir_hack=; ac_datarootdir_seen=
  14788. ac_sed_dataroot='
  14789. /datarootdir/ {
  14790. p
  14791. q
  14792. }
  14793. /@datadir@/p
  14794. /@docdir@/p
  14795. /@infodir@/p
  14796. /@localedir@/p
  14797. /@mandir@/p'
  14798. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  14799. *datarootdir*) ac_datarootdir_seen=yes;;
  14800. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  14801. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  14802. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  14803. _ACEOF
  14804. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14805. ac_datarootdir_hack='
  14806. s&@datadir@&$datadir&g
  14807. s&@docdir@&$docdir&g
  14808. s&@infodir@&$infodir&g
  14809. s&@localedir@&$localedir&g
  14810. s&@mandir@&$mandir&g
  14811. s&\\\${datarootdir}&$datarootdir&g' ;;
  14812. esac
  14813. _ACEOF
  14814. # Neutralize VPATH when `$srcdir' = `.'.
  14815. # Shell code in configure.ac might set extrasub.
  14816. # FIXME: do we really want to maintain this feature?
  14817. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14818. ac_sed_extra="$ac_vpsub
  14819. $extrasub
  14820. _ACEOF
  14821. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14822. :t
  14823. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  14824. s|@configure_input@|$ac_sed_conf_input|;t t
  14825. s&@top_builddir@&$ac_top_builddir_sub&;t t
  14826. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  14827. s&@srcdir@&$ac_srcdir&;t t
  14828. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  14829. s&@top_srcdir@&$ac_top_srcdir&;t t
  14830. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  14831. s&@builddir@&$ac_builddir&;t t
  14832. s&@abs_builddir@&$ac_abs_builddir&;t t
  14833. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  14834. s&@INSTALL@&$ac_INSTALL&;t t
  14835. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  14836. $ac_datarootdir_hack
  14837. "
  14838. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  14839. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  14840. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  14841. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  14842. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  14843. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14844. which seems to be undefined. Please make sure it is defined" >&5
  14845. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14846. which seems to be undefined. Please make sure it is defined" >&2;}
  14847. rm -f "$tmp/stdin"
  14848. case $ac_file in
  14849. -) cat "$tmp/out" && rm -f "$tmp/out";;
  14850. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  14851. esac \
  14852. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  14853. ;;
  14854. :H)
  14855. #
  14856. # CONFIG_HEADER
  14857. #
  14858. if test x"$ac_file" != x-; then
  14859. {
  14860. $as_echo "/* $configure_input */" \
  14861. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  14862. } >"$tmp/config.h" \
  14863. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  14864. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  14865. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  14866. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  14867. else
  14868. rm -f "$ac_file"
  14869. mv "$tmp/config.h" "$ac_file" \
  14870. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  14871. fi
  14872. else
  14873. $as_echo "/* $configure_input */" \
  14874. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  14875. || as_fn_error $? "could not create -" "$LINENO" 5
  14876. fi
  14877. # Compute "$ac_file"'s index in $config_headers.
  14878. _am_arg="$ac_file"
  14879. _am_stamp_count=1
  14880. for _am_header in $config_headers :; do
  14881. case $_am_header in
  14882. $_am_arg | $_am_arg:* )
  14883. break ;;
  14884. * )
  14885. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  14886. esac
  14887. done
  14888. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  14889. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14890. X"$_am_arg" : 'X\(//\)[^/]' \| \
  14891. X"$_am_arg" : 'X\(//\)$' \| \
  14892. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  14893. $as_echo X"$_am_arg" |
  14894. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14895. s//\1/
  14896. q
  14897. }
  14898. /^X\(\/\/\)[^/].*/{
  14899. s//\1/
  14900. q
  14901. }
  14902. /^X\(\/\/\)$/{
  14903. s//\1/
  14904. q
  14905. }
  14906. /^X\(\/\).*/{
  14907. s//\1/
  14908. q
  14909. }
  14910. s/.*/./; q'`/stamp-h$_am_stamp_count
  14911. ;;
  14912. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  14913. $as_echo "$as_me: executing $ac_file commands" >&6;}
  14914. ;;
  14915. esac
  14916. case $ac_file$ac_mode in
  14917. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  14918. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  14919. # are listed without --file. Let's play safe and only enable the eval
  14920. # if we detect the quoting.
  14921. case $CONFIG_FILES in
  14922. *\'*) eval set x "$CONFIG_FILES" ;;
  14923. *) set x $CONFIG_FILES ;;
  14924. esac
  14925. shift
  14926. for mf
  14927. do
  14928. # Strip MF so we end up with the name of the file.
  14929. mf=`echo "$mf" | sed -e 's/:.*$//'`
  14930. # Check whether this is an Automake generated Makefile or not.
  14931. # We used to match only the files named `Makefile.in', but
  14932. # some people rename them; so instead we look at the file content.
  14933. # Grep'ing the first line is not enough: some people post-process
  14934. # each Makefile.in and add a new line on top of each file to say so.
  14935. # Grep'ing the whole file is not good either: AIX grep has a line
  14936. # limit of 2048, but all sed's we know have understand at least 4000.
  14937. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  14938. dirpart=`$as_dirname -- "$mf" ||
  14939. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14940. X"$mf" : 'X\(//\)[^/]' \| \
  14941. X"$mf" : 'X\(//\)$' \| \
  14942. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  14943. $as_echo X"$mf" |
  14944. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14945. s//\1/
  14946. q
  14947. }
  14948. /^X\(\/\/\)[^/].*/{
  14949. s//\1/
  14950. q
  14951. }
  14952. /^X\(\/\/\)$/{
  14953. s//\1/
  14954. q
  14955. }
  14956. /^X\(\/\).*/{
  14957. s//\1/
  14958. q
  14959. }
  14960. s/.*/./; q'`
  14961. else
  14962. continue
  14963. fi
  14964. # Extract the definition of DEPDIR, am__include, and am__quote
  14965. # from the Makefile without running `make'.
  14966. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  14967. test -z "$DEPDIR" && continue
  14968. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  14969. test -z "am__include" && continue
  14970. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  14971. # When using ansi2knr, U may be empty or an underscore; expand it
  14972. U=`sed -n 's/^U = //p' < "$mf"`
  14973. # Find all dependency output files, they are included files with
  14974. # $(DEPDIR) in their names. We invoke sed twice because it is the
  14975. # simplest approach to changing $(DEPDIR) to its actual value in the
  14976. # expansion.
  14977. for file in `sed -n "
  14978. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  14979. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  14980. # Make sure the directory exists.
  14981. test -f "$dirpart/$file" && continue
  14982. fdir=`$as_dirname -- "$file" ||
  14983. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14984. X"$file" : 'X\(//\)[^/]' \| \
  14985. X"$file" : 'X\(//\)$' \| \
  14986. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  14987. $as_echo X"$file" |
  14988. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14989. s//\1/
  14990. q
  14991. }
  14992. /^X\(\/\/\)[^/].*/{
  14993. s//\1/
  14994. q
  14995. }
  14996. /^X\(\/\/\)$/{
  14997. s//\1/
  14998. q
  14999. }
  15000. /^X\(\/\).*/{
  15001. s//\1/
  15002. q
  15003. }
  15004. s/.*/./; q'`
  15005. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  15006. # echo "creating $dirpart/$file"
  15007. echo '# dummy' > "$dirpart/$file"
  15008. done
  15009. done
  15010. }
  15011. ;;
  15012. "po-directories":C)
  15013. for ac_file in $CONFIG_FILES; do
  15014. # Support "outfile[:infile[:infile...]]"
  15015. case "$ac_file" in
  15016. *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  15017. esac
  15018. # PO directories have a Makefile.in generated from Makefile.in.in.
  15019. case "$ac_file" in */Makefile.in)
  15020. # Adjust a relative srcdir.
  15021. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  15022. ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
  15023. ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  15024. # In autoconf-2.13 it is called $ac_given_srcdir.
  15025. # In autoconf-2.50 it is called $srcdir.
  15026. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  15027. case "$ac_given_srcdir" in
  15028. .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  15029. /*) top_srcdir="$ac_given_srcdir" ;;
  15030. *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
  15031. esac
  15032. # Treat a directory as a PO directory if and only if it has a
  15033. # POTFILES.in file. This allows packages to have multiple PO
  15034. # directories under different names or in different locations.
  15035. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
  15036. rm -f "$ac_dir/POTFILES"
  15037. test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
  15038. cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
  15039. POMAKEFILEDEPS="POTFILES.in"
  15040. # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
  15041. # on $ac_dir but don't depend on user-specified configuration
  15042. # parameters.
  15043. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  15044. # The LINGUAS file contains the set of available languages.
  15045. if test -n "$OBSOLETE_ALL_LINGUAS"; then
  15046. test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
  15047. fi
  15048. ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  15049. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  15050. eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  15051. POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  15052. else
  15053. # The set of available languages was given in configure.in.
  15054. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  15055. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
  15056. fi
  15057. # Compute POFILES
  15058. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
  15059. # Compute UPDATEPOFILES
  15060. # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
  15061. # Compute DUMMYPOFILES
  15062. # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
  15063. # Compute GMOFILES
  15064. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
  15065. case "$ac_given_srcdir" in
  15066. .) srcdirpre= ;;
  15067. *) srcdirpre='$(srcdir)/' ;;
  15068. esac
  15069. POFILES=
  15070. UPDATEPOFILES=
  15071. DUMMYPOFILES=
  15072. GMOFILES=
  15073. for lang in $ALL_LINGUAS; do
  15074. POFILES="$POFILES $srcdirpre$lang.po"
  15075. UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  15076. DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  15077. GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  15078. done
  15079. # CATALOGS depends on both $ac_dir and the user's LINGUAS
  15080. # environment variable.
  15081. INST_LINGUAS=
  15082. if test -n "$ALL_LINGUAS"; then
  15083. for presentlang in $ALL_LINGUAS; do
  15084. useit=no
  15085. if test "%UNSET%" != "$LINGUAS"; then
  15086. desiredlanguages="$LINGUAS"
  15087. else
  15088. desiredlanguages="$ALL_LINGUAS"
  15089. fi
  15090. for desiredlang in $desiredlanguages; do
  15091. # Use the presentlang catalog if desiredlang is
  15092. # a. equal to presentlang, or
  15093. # b. a variant of presentlang (because in this case,
  15094. # presentlang can be used as a fallback for messages
  15095. # which are not translated in the desiredlang catalog).
  15096. case "$desiredlang" in
  15097. "$presentlang"*) useit=yes;;
  15098. esac
  15099. done
  15100. if test $useit = yes; then
  15101. INST_LINGUAS="$INST_LINGUAS $presentlang"
  15102. fi
  15103. done
  15104. fi
  15105. CATALOGS=
  15106. if test -n "$INST_LINGUAS"; then
  15107. for lang in $INST_LINGUAS; do
  15108. CATALOGS="$CATALOGS $lang.gmo"
  15109. done
  15110. fi
  15111. test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
  15112. sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
  15113. for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
  15114. if test -f "$f"; then
  15115. case "$f" in
  15116. *.orig | *.bak | *~) ;;
  15117. *) cat "$f" >> "$ac_dir/Makefile" ;;
  15118. esac
  15119. fi
  15120. done
  15121. fi
  15122. ;;
  15123. esac
  15124. done ;;
  15125. esac
  15126. done # for ac_tag
  15127. as_fn_exit 0
  15128. _ACEOF
  15129. ac_clean_files=$ac_clean_files_save
  15130. test $ac_write_fail = 0 ||
  15131. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  15132. # configure is writing to config.log, and then calls config.status.
  15133. # config.status does its own redirection, appending to config.log.
  15134. # Unfortunately, on DOS this fails, as config.log is still kept open
  15135. # by configure, so config.status won't be able to write to it; its
  15136. # output is simply discarded. So we exec the FD to /dev/null,
  15137. # effectively closing config.log, so it can be properly (re)opened and
  15138. # appended to by config.status. When coming back to configure, we
  15139. # need to make the FD available again.
  15140. if test "$no_create" != yes; then
  15141. ac_cs_success=:
  15142. ac_config_status_args=
  15143. test "$silent" = yes &&
  15144. ac_config_status_args="$ac_config_status_args --quiet"
  15145. exec 5>/dev/null
  15146. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  15147. exec 5>>config.log
  15148. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  15149. # would make configure fail if this is the last instruction.
  15150. $ac_cs_success || as_fn_exit 1
  15151. fi
  15152. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  15153. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  15154. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  15155. fi
  15156. echo " "
  15157. echo "Build: $build"
  15158. echo "Target: $target"
  15159. echo "Install prefix: $prefix"
  15160. echo "CXXFLAGS: $CXXFLAGS"
  15161. echo "CFLAGS: $CFLAGS"
  15162. echo "CPPFLAGS: $CPPFLAGS"
  15163. echo "LDFLAGS: $LDFLAGS"
  15164. echo "LIBS: $LIBS"
  15165. echo "SQLite3: $have_sqlite3"
  15166. echo "GnuTLS: $have_libgnutls"
  15167. echo "OpenSSL: $have_openssl"
  15168. echo "CA Bundle: $ca_bundle"
  15169. echo "LibXML2: $have_libxml2"
  15170. echo "LibExpat: $have_libexpat"
  15171. echo "LibCares: $have_libcares"
  15172. echo "Libz: $have_libz"
  15173. echo "Epoll: $have_epoll"
  15174. echo "Bittorrent: $enable_bittorrent"
  15175. echo "Metalink: $enable_metalink"
  15176. echo "XML-RPC: $enable_xml_rpc"