configure 478 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.65 for aria2 1.9.1.
  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 Free Software Foundation,
  10. # 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 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=$?; test $as_status -eq 0 && as_status=1
  342. if test "$3"; then
  343. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  344. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  345. fi
  346. $as_echo "$as_me: error: $1" >&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, 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.9.1'
  509. PACKAGE_STRING='aria2 1.9.1'
  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_TIMEGETTIME_FALSE
  555. HAVE_TIMEGETTIME_TRUE
  556. HAVE_MACH_ABSOLUTE_TIME_FALSE
  557. HAVE_MACH_ABSOLUTE_TIME_TRUE
  558. HAVE_DAEMON_FALSE
  559. HAVE_DAEMON_TRUE
  560. HAVE_TIMEGM_FALSE
  561. HAVE_TIMEGM_TRUE
  562. HAVE_STRPTIME_FALSE
  563. HAVE_STRPTIME_TRUE
  564. HAVE_LOCALTIME_R_FALSE
  565. HAVE_LOCALTIME_R_TRUE
  566. HAVE_INET_ATON_FALSE
  567. HAVE_INET_ATON_TRUE
  568. HAVE_GETTIMEOFDAY_FALSE
  569. HAVE_GETTIMEOFDAY_TRUE
  570. HAVE_GETADDRINFO_FALSE
  571. HAVE_GETADDRINFO_TRUE
  572. HAVE_GAI_STRERROR_FALSE
  573. HAVE_GAI_STRERROR_TRUE
  574. HAVE_BASENAME_FALSE
  575. HAVE_BASENAME_TRUE
  576. HAVE_ASCTIME_R_FALSE
  577. HAVE_ASCTIME_R_TRUE
  578. HAVE_POSIX_FALLOCATE_FALSE
  579. HAVE_POSIX_FALLOCATE_TRUE
  580. HAVE_EPOLL_FALSE
  581. HAVE_EPOLL_TRUE
  582. POW_LIB
  583. LIBOBJS
  584. POSUB
  585. LTLIBINTL
  586. LIBINTL
  587. INTLLIBS
  588. INTL_LIBTOOL_SUFFIX_PREFIX
  589. INTLOBJS
  590. GENCAT
  591. INSTOBJEXT
  592. DATADIRNAME
  593. CATOBJEXT
  594. USE_INCLUDED_LIBINTL
  595. BUILD_INCLUDED_LIBINTL
  596. LTLIBC
  597. WINDRES
  598. WOE32
  599. WOE32DLL
  600. HAVE_WPRINTF
  601. HAVE_SNPRINTF
  602. HAVE_ASPRINTF
  603. HAVE_POSIX_PRINTF
  604. INTL_MACOSX_LIBS
  605. GLIBC21
  606. INTLBISON
  607. LTLIBICONV
  608. LIBICONV
  609. LTLIBMULTITHREAD
  610. LIBMULTITHREAD
  611. LTLIBTHREAD
  612. LIBTHREAD
  613. LIBPTH_PREFIX
  614. LTLIBPTH
  615. LIBPTH
  616. PRI_MACROS_BROKEN
  617. HAVE_VISIBILITY
  618. CFLAG_VISIBILITY
  619. GLIBC2
  620. XGETTEXT_EXTRA_OPTIONS
  621. MSGMERGE
  622. XGETTEXT_015
  623. XGETTEXT
  624. GMSGFMT_015
  625. MSGFMT_015
  626. GMSGFMT
  627. MSGFMT
  628. GETTEXT_MACRO_VERSION
  629. USE_NLS
  630. ALLOCA
  631. HAVE_SQLITE3_FALSE
  632. HAVE_SQLITE3_TRUE
  633. HAVE_LIBZ_FALSE
  634. HAVE_LIBZ_TRUE
  635. ENABLE_ASYNC_DNS_FALSE
  636. ENABLE_ASYNC_DNS_TRUE
  637. HAVE_LIBEXPAT_FALSE
  638. HAVE_LIBEXPAT_TRUE
  639. HAVE_LIBXML2_FALSE
  640. HAVE_LIBXML2_TRUE
  641. ENABLE_XML_RPC_FALSE
  642. ENABLE_XML_RPC_TRUE
  643. ENABLE_METALINK_LIBEXPAT_FALSE
  644. ENABLE_METALINK_LIBEXPAT_TRUE
  645. ENABLE_METALINK_LIBXML2_FALSE
  646. ENABLE_METALINK_LIBXML2_TRUE
  647. ENABLE_METALINK_FALSE
  648. ENABLE_METALINK_TRUE
  649. ENABLE_BITTORRENT_FALSE
  650. ENABLE_BITTORRENT_TRUE
  651. ENABLE_MESSAGE_DIGEST_FALSE
  652. ENABLE_MESSAGE_DIGEST_TRUE
  653. HAVE_LIBSSL_FALSE
  654. HAVE_LIBSSL_TRUE
  655. HAVE_LIBGNUTLS_FALSE
  656. HAVE_LIBGNUTLS_TRUE
  657. ca_bundle
  658. ENABLE_SSL_FALSE
  659. ENABLE_SSL_TRUE
  660. LIBZ_CPPFLAGS
  661. LIBZ_LIBS
  662. LIBCARES_CPPFLAGS
  663. LIBCARES_LIBS
  664. OPENSSL_CFLAGS
  665. OPENSSL_LIBS
  666. LIBGCRYPT_LIBS
  667. LIBGCRYPT_CFLAGS
  668. LIBGCRYPT_CONFIG
  669. LIBGNUTLS_CONFIG
  670. LIBGNUTLS_LIBS
  671. LIBGNUTLS_CFLAGS
  672. SQLITE3_LIBS
  673. SQLITE3_CFLAGS
  674. LIBEXPAT_CPPFLAGS
  675. LIBEXPAT_LIBS
  676. XML_LIBS
  677. XML_CPPFLAGS
  678. XML2_CONFIG
  679. PKG_CONFIG
  680. EGREP
  681. GREP
  682. CXXCPP
  683. YFLAGS
  684. YACC
  685. RANLIB
  686. am__fastdepCC_FALSE
  687. am__fastdepCC_TRUE
  688. CCDEPMODE
  689. ac_ct_CC
  690. CFLAGS
  691. CC
  692. am__fastdepCXX_FALSE
  693. am__fastdepCXX_TRUE
  694. CXXDEPMODE
  695. AMDEPBACKSLASH
  696. AMDEP_FALSE
  697. AMDEP_TRUE
  698. am__quote
  699. am__include
  700. DEPDIR
  701. OBJEXT
  702. EXEEXT
  703. ac_ct_CXX
  704. CPPFLAGS
  705. LDFLAGS
  706. CXXFLAGS
  707. CXX
  708. WINSOCK_LIBS
  709. CPPUNIT_LIBS
  710. CPPUNIT_CFLAGS
  711. CPPUNIT_CONFIG
  712. am__untar
  713. am__tar
  714. AMTAR
  715. am__leading_dot
  716. SET_MAKE
  717. AWK
  718. mkdir_p
  719. MKDIR_P
  720. INSTALL_STRIP_PROGRAM
  721. STRIP
  722. install_sh
  723. MAKEINFO
  724. AUTOHEADER
  725. AUTOMAKE
  726. AUTOCONF
  727. ACLOCAL
  728. VERSION
  729. PACKAGE
  730. CYGPATH_W
  731. am__isrc
  732. INSTALL_DATA
  733. INSTALL_SCRIPT
  734. INSTALL_PROGRAM
  735. target_os
  736. target_vendor
  737. target_cpu
  738. target
  739. host_os
  740. host_vendor
  741. host_cpu
  742. host
  743. build_os
  744. build_vendor
  745. build_cpu
  746. build
  747. target_alias
  748. host_alias
  749. build_alias
  750. LIBS
  751. ECHO_T
  752. ECHO_N
  753. ECHO_C
  754. DEFS
  755. mandir
  756. localedir
  757. libdir
  758. psdir
  759. pdfdir
  760. dvidir
  761. htmldir
  762. infodir
  763. docdir
  764. oldincludedir
  765. includedir
  766. localstatedir
  767. sharedstatedir
  768. sysconfdir
  769. datadir
  770. datarootdir
  771. libexecdir
  772. sbindir
  773. bindir
  774. program_transform_name
  775. prefix
  776. exec_prefix
  777. PACKAGE_URL
  778. PACKAGE_BUGREPORT
  779. PACKAGE_STRING
  780. PACKAGE_VERSION
  781. PACKAGE_TARNAME
  782. PACKAGE_NAME
  783. PATH_SEPARATOR
  784. SHELL'
  785. ac_subst_files=''
  786. ac_user_opts='
  787. enable_option_checking
  788. with_cppunit_prefix
  789. with_cppunit_exec_prefix
  790. with_gnutls
  791. with_openssl
  792. with_sqlite3
  793. with_libxml2
  794. with_libexpat
  795. with_libcares
  796. with_libz
  797. enable_bittorrent
  798. enable_metalink
  799. enable_epoll
  800. with_ca_bundle
  801. enable_dependency_tracking
  802. with_xml_prefix
  803. with_xml_exec_prefix
  804. enable_xmltest
  805. with_libexpat_prefix
  806. with_sqlite3_prefix
  807. with_libgnutls_prefix
  808. with_libgcrypt_prefix
  809. with_openssl_prefix
  810. with_libcares_prefix
  811. with_libz_prefix
  812. enable_largefile
  813. enable_nls
  814. enable_threads
  815. with_gnu_ld
  816. enable_rpath
  817. with_libpth_prefix
  818. with_libiconv_prefix
  819. with_included_gettext
  820. with_libintl_prefix
  821. '
  822. ac_precious_vars='build_alias
  823. host_alias
  824. target_alias
  825. CXX
  826. CXXFLAGS
  827. LDFLAGS
  828. LIBS
  829. CPPFLAGS
  830. CCC
  831. CC
  832. CFLAGS
  833. YACC
  834. YFLAGS
  835. CXXCPP
  836. PKG_CONFIG
  837. SQLITE3_CFLAGS
  838. SQLITE3_LIBS
  839. LIBGNUTLS_CFLAGS
  840. LIBGNUTLS_LIBS'
  841. # Initialize some variables set by options.
  842. ac_init_help=
  843. ac_init_version=false
  844. ac_unrecognized_opts=
  845. ac_unrecognized_sep=
  846. # The variables have the same names as the options, with
  847. # dashes changed to underlines.
  848. cache_file=/dev/null
  849. exec_prefix=NONE
  850. no_create=
  851. no_recursion=
  852. prefix=NONE
  853. program_prefix=NONE
  854. program_suffix=NONE
  855. program_transform_name=s,x,x,
  856. silent=
  857. site=
  858. srcdir=
  859. verbose=
  860. x_includes=NONE
  861. x_libraries=NONE
  862. # Installation directory options.
  863. # These are left unexpanded so users can "make install exec_prefix=/foo"
  864. # and all the variables that are supposed to be based on exec_prefix
  865. # by default will actually change.
  866. # Use braces instead of parens because sh, perl, etc. also accept them.
  867. # (The list follows the same order as the GNU Coding Standards.)
  868. bindir='${exec_prefix}/bin'
  869. sbindir='${exec_prefix}/sbin'
  870. libexecdir='${exec_prefix}/libexec'
  871. datarootdir='${prefix}/share'
  872. datadir='${datarootdir}'
  873. sysconfdir='${prefix}/etc'
  874. sharedstatedir='${prefix}/com'
  875. localstatedir='${prefix}/var'
  876. includedir='${prefix}/include'
  877. oldincludedir='/usr/include'
  878. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  879. infodir='${datarootdir}/info'
  880. htmldir='${docdir}'
  881. dvidir='${docdir}'
  882. pdfdir='${docdir}'
  883. psdir='${docdir}'
  884. libdir='${exec_prefix}/lib'
  885. localedir='${datarootdir}/locale'
  886. mandir='${datarootdir}/man'
  887. ac_prev=
  888. ac_dashdash=
  889. for ac_option
  890. do
  891. # If the previous option needs an argument, assign it.
  892. if test -n "$ac_prev"; then
  893. eval $ac_prev=\$ac_option
  894. ac_prev=
  895. continue
  896. fi
  897. case $ac_option in
  898. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  899. *) ac_optarg=yes ;;
  900. esac
  901. # Accept the important Cygnus configure options, so we can diagnose typos.
  902. case $ac_dashdash$ac_option in
  903. --)
  904. ac_dashdash=yes ;;
  905. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  906. ac_prev=bindir ;;
  907. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  908. bindir=$ac_optarg ;;
  909. -build | --build | --buil | --bui | --bu)
  910. ac_prev=build_alias ;;
  911. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  912. build_alias=$ac_optarg ;;
  913. -cache-file | --cache-file | --cache-fil | --cache-fi \
  914. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  915. ac_prev=cache_file ;;
  916. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  917. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  918. cache_file=$ac_optarg ;;
  919. --config-cache | -C)
  920. cache_file=config.cache ;;
  921. -datadir | --datadir | --datadi | --datad)
  922. ac_prev=datadir ;;
  923. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  924. datadir=$ac_optarg ;;
  925. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  926. | --dataroo | --dataro | --datar)
  927. ac_prev=datarootdir ;;
  928. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  929. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  930. datarootdir=$ac_optarg ;;
  931. -disable-* | --disable-*)
  932. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  933. # Reject names that are not valid shell variable names.
  934. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  935. as_fn_error "invalid feature name: $ac_useropt"
  936. ac_useropt_orig=$ac_useropt
  937. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  938. case $ac_user_opts in
  939. *"
  940. "enable_$ac_useropt"
  941. "*) ;;
  942. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  943. ac_unrecognized_sep=', ';;
  944. esac
  945. eval enable_$ac_useropt=no ;;
  946. -docdir | --docdir | --docdi | --doc | --do)
  947. ac_prev=docdir ;;
  948. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  949. docdir=$ac_optarg ;;
  950. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  951. ac_prev=dvidir ;;
  952. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  953. dvidir=$ac_optarg ;;
  954. -enable-* | --enable-*)
  955. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  956. # Reject names that are not valid shell variable names.
  957. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  958. as_fn_error "invalid feature name: $ac_useropt"
  959. ac_useropt_orig=$ac_useropt
  960. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  961. case $ac_user_opts in
  962. *"
  963. "enable_$ac_useropt"
  964. "*) ;;
  965. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  966. ac_unrecognized_sep=', ';;
  967. esac
  968. eval enable_$ac_useropt=\$ac_optarg ;;
  969. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  970. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  971. | --exec | --exe | --ex)
  972. ac_prev=exec_prefix ;;
  973. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  974. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  975. | --exec=* | --exe=* | --ex=*)
  976. exec_prefix=$ac_optarg ;;
  977. -gas | --gas | --ga | --g)
  978. # Obsolete; use --with-gas.
  979. with_gas=yes ;;
  980. -help | --help | --hel | --he | -h)
  981. ac_init_help=long ;;
  982. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  983. ac_init_help=recursive ;;
  984. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  985. ac_init_help=short ;;
  986. -host | --host | --hos | --ho)
  987. ac_prev=host_alias ;;
  988. -host=* | --host=* | --hos=* | --ho=*)
  989. host_alias=$ac_optarg ;;
  990. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  991. ac_prev=htmldir ;;
  992. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  993. | --ht=*)
  994. htmldir=$ac_optarg ;;
  995. -includedir | --includedir | --includedi | --included | --include \
  996. | --includ | --inclu | --incl | --inc)
  997. ac_prev=includedir ;;
  998. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  999. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1000. includedir=$ac_optarg ;;
  1001. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1002. ac_prev=infodir ;;
  1003. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1004. infodir=$ac_optarg ;;
  1005. -libdir | --libdir | --libdi | --libd)
  1006. ac_prev=libdir ;;
  1007. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1008. libdir=$ac_optarg ;;
  1009. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1010. | --libexe | --libex | --libe)
  1011. ac_prev=libexecdir ;;
  1012. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1013. | --libexe=* | --libex=* | --libe=*)
  1014. libexecdir=$ac_optarg ;;
  1015. -localedir | --localedir | --localedi | --localed | --locale)
  1016. ac_prev=localedir ;;
  1017. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1018. localedir=$ac_optarg ;;
  1019. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1020. | --localstate | --localstat | --localsta | --localst | --locals)
  1021. ac_prev=localstatedir ;;
  1022. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1023. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1024. localstatedir=$ac_optarg ;;
  1025. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1026. ac_prev=mandir ;;
  1027. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1028. mandir=$ac_optarg ;;
  1029. -nfp | --nfp | --nf)
  1030. # Obsolete; use --without-fp.
  1031. with_fp=no ;;
  1032. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1033. | --no-cr | --no-c | -n)
  1034. no_create=yes ;;
  1035. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1036. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1037. no_recursion=yes ;;
  1038. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1039. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1040. | --oldin | --oldi | --old | --ol | --o)
  1041. ac_prev=oldincludedir ;;
  1042. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1043. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1044. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1045. oldincludedir=$ac_optarg ;;
  1046. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1047. ac_prev=prefix ;;
  1048. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1049. prefix=$ac_optarg ;;
  1050. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1051. | --program-pre | --program-pr | --program-p)
  1052. ac_prev=program_prefix ;;
  1053. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1054. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1055. program_prefix=$ac_optarg ;;
  1056. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1057. | --program-suf | --program-su | --program-s)
  1058. ac_prev=program_suffix ;;
  1059. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1060. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1061. program_suffix=$ac_optarg ;;
  1062. -program-transform-name | --program-transform-name \
  1063. | --program-transform-nam | --program-transform-na \
  1064. | --program-transform-n | --program-transform- \
  1065. | --program-transform | --program-transfor \
  1066. | --program-transfo | --program-transf \
  1067. | --program-trans | --program-tran \
  1068. | --progr-tra | --program-tr | --program-t)
  1069. ac_prev=program_transform_name ;;
  1070. -program-transform-name=* | --program-transform-name=* \
  1071. | --program-transform-nam=* | --program-transform-na=* \
  1072. | --program-transform-n=* | --program-transform-=* \
  1073. | --program-transform=* | --program-transfor=* \
  1074. | --program-transfo=* | --program-transf=* \
  1075. | --program-trans=* | --program-tran=* \
  1076. | --progr-tra=* | --program-tr=* | --program-t=*)
  1077. program_transform_name=$ac_optarg ;;
  1078. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1079. ac_prev=pdfdir ;;
  1080. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1081. pdfdir=$ac_optarg ;;
  1082. -psdir | --psdir | --psdi | --psd | --ps)
  1083. ac_prev=psdir ;;
  1084. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1085. psdir=$ac_optarg ;;
  1086. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1087. | -silent | --silent | --silen | --sile | --sil)
  1088. silent=yes ;;
  1089. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1090. ac_prev=sbindir ;;
  1091. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1092. | --sbi=* | --sb=*)
  1093. sbindir=$ac_optarg ;;
  1094. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1095. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1096. | --sharedst | --shareds | --shared | --share | --shar \
  1097. | --sha | --sh)
  1098. ac_prev=sharedstatedir ;;
  1099. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1100. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1101. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1102. | --sha=* | --sh=*)
  1103. sharedstatedir=$ac_optarg ;;
  1104. -site | --site | --sit)
  1105. ac_prev=site ;;
  1106. -site=* | --site=* | --sit=*)
  1107. site=$ac_optarg ;;
  1108. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1109. ac_prev=srcdir ;;
  1110. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1111. srcdir=$ac_optarg ;;
  1112. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1113. | --syscon | --sysco | --sysc | --sys | --sy)
  1114. ac_prev=sysconfdir ;;
  1115. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1116. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1117. sysconfdir=$ac_optarg ;;
  1118. -target | --target | --targe | --targ | --tar | --ta | --t)
  1119. ac_prev=target_alias ;;
  1120. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1121. target_alias=$ac_optarg ;;
  1122. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1123. verbose=yes ;;
  1124. -version | --version | --versio | --versi | --vers | -V)
  1125. ac_init_version=: ;;
  1126. -with-* | --with-*)
  1127. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1128. # Reject names that are not valid shell variable names.
  1129. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1130. as_fn_error "invalid package name: $ac_useropt"
  1131. ac_useropt_orig=$ac_useropt
  1132. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1133. case $ac_user_opts in
  1134. *"
  1135. "with_$ac_useropt"
  1136. "*) ;;
  1137. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1138. ac_unrecognized_sep=', ';;
  1139. esac
  1140. eval with_$ac_useropt=\$ac_optarg ;;
  1141. -without-* | --without-*)
  1142. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1143. # Reject names that are not valid shell variable names.
  1144. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1145. as_fn_error "invalid package name: $ac_useropt"
  1146. ac_useropt_orig=$ac_useropt
  1147. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1148. case $ac_user_opts in
  1149. *"
  1150. "with_$ac_useropt"
  1151. "*) ;;
  1152. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1153. ac_unrecognized_sep=', ';;
  1154. esac
  1155. eval with_$ac_useropt=no ;;
  1156. --x)
  1157. # Obsolete; use --with-x.
  1158. with_x=yes ;;
  1159. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1160. | --x-incl | --x-inc | --x-in | --x-i)
  1161. ac_prev=x_includes ;;
  1162. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1163. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1164. x_includes=$ac_optarg ;;
  1165. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1166. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1167. ac_prev=x_libraries ;;
  1168. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1169. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1170. x_libraries=$ac_optarg ;;
  1171. -*) as_fn_error "unrecognized option: \`$ac_option'
  1172. Try \`$0 --help' for more information."
  1173. ;;
  1174. *=*)
  1175. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1176. # Reject names that are not valid shell variable names.
  1177. case $ac_envvar in #(
  1178. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1179. as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  1180. esac
  1181. eval $ac_envvar=\$ac_optarg
  1182. export $ac_envvar ;;
  1183. *)
  1184. # FIXME: should be removed in autoconf 3.0.
  1185. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1186. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1187. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1188. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1189. ;;
  1190. esac
  1191. done
  1192. if test -n "$ac_prev"; then
  1193. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1194. as_fn_error "missing argument to $ac_option"
  1195. fi
  1196. if test -n "$ac_unrecognized_opts"; then
  1197. case $enable_option_checking in
  1198. no) ;;
  1199. fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  1200. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1201. esac
  1202. fi
  1203. # Check all directory arguments for consistency.
  1204. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1205. datadir sysconfdir sharedstatedir localstatedir includedir \
  1206. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1207. libdir localedir mandir
  1208. do
  1209. eval ac_val=\$$ac_var
  1210. # Remove trailing slashes.
  1211. case $ac_val in
  1212. */ )
  1213. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1214. eval $ac_var=\$ac_val;;
  1215. esac
  1216. # Be sure to have absolute directory names.
  1217. case $ac_val in
  1218. [\\/$]* | ?:[\\/]* ) continue;;
  1219. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1220. esac
  1221. as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  1222. done
  1223. # There might be people who depend on the old broken behavior: `$host'
  1224. # used to hold the argument of --host etc.
  1225. # FIXME: To remove some day.
  1226. build=$build_alias
  1227. host=$host_alias
  1228. target=$target_alias
  1229. # FIXME: To remove some day.
  1230. if test "x$host_alias" != x; then
  1231. if test "x$build_alias" = x; then
  1232. cross_compiling=maybe
  1233. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1234. If a cross compiler is detected then cross compile mode will be used." >&2
  1235. elif test "x$build_alias" != "x$host_alias"; then
  1236. cross_compiling=yes
  1237. fi
  1238. fi
  1239. ac_tool_prefix=
  1240. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1241. test "$silent" = yes && exec 6>/dev/null
  1242. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1243. ac_ls_di=`ls -di .` &&
  1244. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1245. as_fn_error "working directory cannot be determined"
  1246. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1247. as_fn_error "pwd does not report name of working directory"
  1248. # Find the source files, if location was not specified.
  1249. if test -z "$srcdir"; then
  1250. ac_srcdir_defaulted=yes
  1251. # Try the directory containing this script, then the parent directory.
  1252. ac_confdir=`$as_dirname -- "$as_myself" ||
  1253. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1254. X"$as_myself" : 'X\(//\)[^/]' \| \
  1255. X"$as_myself" : 'X\(//\)$' \| \
  1256. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1257. $as_echo X"$as_myself" |
  1258. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1259. s//\1/
  1260. q
  1261. }
  1262. /^X\(\/\/\)[^/].*/{
  1263. s//\1/
  1264. q
  1265. }
  1266. /^X\(\/\/\)$/{
  1267. s//\1/
  1268. q
  1269. }
  1270. /^X\(\/\).*/{
  1271. s//\1/
  1272. q
  1273. }
  1274. s/.*/./; q'`
  1275. srcdir=$ac_confdir
  1276. if test ! -r "$srcdir/$ac_unique_file"; then
  1277. srcdir=..
  1278. fi
  1279. else
  1280. ac_srcdir_defaulted=no
  1281. fi
  1282. if test ! -r "$srcdir/$ac_unique_file"; then
  1283. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1284. as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  1285. fi
  1286. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1287. ac_abs_confdir=`(
  1288. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  1289. pwd)`
  1290. # When building in place, set srcdir=.
  1291. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1292. srcdir=.
  1293. fi
  1294. # Remove unnecessary trailing slashes from srcdir.
  1295. # Double slashes in file names in object file debugging info
  1296. # mess up M-x gdb in Emacs.
  1297. case $srcdir in
  1298. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1299. esac
  1300. for ac_var in $ac_precious_vars; do
  1301. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1302. eval ac_env_${ac_var}_value=\$${ac_var}
  1303. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1304. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1305. done
  1306. #
  1307. # Report the --help message.
  1308. #
  1309. if test "$ac_init_help" = "long"; then
  1310. # Omit some internal or obsolete options to make the list less imposing.
  1311. # This message is too long to be a string in the A/UX 3.1 sh.
  1312. cat <<_ACEOF
  1313. \`configure' configures aria2 1.9.1 to adapt to many kinds of systems.
  1314. Usage: $0 [OPTION]... [VAR=VALUE]...
  1315. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1316. VAR=VALUE. See below for descriptions of some of the useful variables.
  1317. Defaults for the options are specified in brackets.
  1318. Configuration:
  1319. -h, --help display this help and exit
  1320. --help=short display options specific to this package
  1321. --help=recursive display the short help of all the included packages
  1322. -V, --version display version information and exit
  1323. -q, --quiet, --silent do not print \`checking...' messages
  1324. --cache-file=FILE cache test results in FILE [disabled]
  1325. -C, --config-cache alias for \`--cache-file=config.cache'
  1326. -n, --no-create do not create output files
  1327. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1328. Installation directories:
  1329. --prefix=PREFIX install architecture-independent files in PREFIX
  1330. [$ac_default_prefix]
  1331. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1332. [PREFIX]
  1333. By default, \`make install' will install all the files in
  1334. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1335. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1336. for instance \`--prefix=\$HOME'.
  1337. For better control, use the options below.
  1338. Fine tuning of the installation directories:
  1339. --bindir=DIR user executables [EPREFIX/bin]
  1340. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1341. --libexecdir=DIR program executables [EPREFIX/libexec]
  1342. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1343. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1344. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1345. --libdir=DIR object code libraries [EPREFIX/lib]
  1346. --includedir=DIR C header files [PREFIX/include]
  1347. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1348. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1349. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1350. --infodir=DIR info documentation [DATAROOTDIR/info]
  1351. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1352. --mandir=DIR man documentation [DATAROOTDIR/man]
  1353. --docdir=DIR documentation root [DATAROOTDIR/doc/aria2]
  1354. --htmldir=DIR html documentation [DOCDIR]
  1355. --dvidir=DIR dvi documentation [DOCDIR]
  1356. --pdfdir=DIR pdf documentation [DOCDIR]
  1357. --psdir=DIR ps documentation [DOCDIR]
  1358. _ACEOF
  1359. cat <<\_ACEOF
  1360. Program names:
  1361. --program-prefix=PREFIX prepend PREFIX to installed program names
  1362. --program-suffix=SUFFIX append SUFFIX to installed program names
  1363. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1364. System types:
  1365. --build=BUILD configure for building on BUILD [guessed]
  1366. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1367. --target=TARGET configure for building compilers for TARGET [HOST]
  1368. _ACEOF
  1369. fi
  1370. if test -n "$ac_init_help"; then
  1371. case $ac_init_help in
  1372. short | recursive ) echo "Configuration of aria2 1.9.1:";;
  1373. esac
  1374. cat <<\_ACEOF
  1375. Optional Features:
  1376. --disable-option-checking ignore unrecognized --enable/--with options
  1377. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1378. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1379. --enable-bittorrent Enable bittorrent support.
  1380. --enable-metalink Enable metalink support.
  1381. --enable-epoll Enable epoll support.
  1382. --disable-dependency-tracking speeds up one-time build
  1383. --enable-dependency-tracking do not reject slow dependency extractors
  1384. --disable-xmltest Do not try to compile and run a test LIBXML program
  1385. --disable-largefile omit support for large files
  1386. --disable-nls do not use Native Language Support
  1387. --enable-threads={posix|solaris|pth|win32}
  1388. specify multithreading API
  1389. --disable-threads build without multithread safety
  1390. --disable-rpath do not hardcode runtime library paths
  1391. Optional Packages:
  1392. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1393. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1394. --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
  1395. --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
  1396. --with-gnutls Use gnutls if it is installed.
  1397. --with-openssl Use openssl if it is installed.
  1398. --with-sqlite3 Use sqlite3 if it is installed.
  1399. --with-libxml2 Use libxml2 if it is installed.
  1400. --with-libexpat Use libexpat if it is installed.
  1401. --with-libcares Use libcares if it is installed.
  1402. --with-libz Use libz if it is installed.
  1403. --with-ca-bundle=FILE Use FILE as default CA bundle.
  1404. --with-xml-prefix=PFX Prefix where libxml is installed (optional)
  1405. --with-xml-exec-prefix=PFX Exec prefix where libxml is installed (optional)
  1406. --with-libexpat-prefix=PREFIX Prefix where libexpat installed (optional)
  1407. --with-sqlite3-prefix=PREFIX Prefix where SQLite3 installed (optional)
  1408. --with-libgnutls-prefix=PFX Prefix where libgnutls is installed (optional)
  1409. --with-libgcrypt-prefix=PFX
  1410. prefix where LIBGCRYPT is installed (optional)
  1411. --with-openssl-prefix=PREFIX Prefix where OpenSSL installed (optional)
  1412. --with-libcares-prefix=PREFIX Prefix where libcares installed (optional)
  1413. --with-libz-prefix=PREFIX Prefix where libz installed (optional)
  1414. --with-gnu-ld assume the C compiler uses GNU ld default=no
  1415. --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
  1416. --without-libpth-prefix don't search for libpth in includedir and libdir
  1417. --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
  1418. --without-libiconv-prefix don't search for libiconv in includedir and libdir
  1419. --with-included-gettext use the GNU gettext library included here
  1420. --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
  1421. --without-libintl-prefix don't search for libintl in includedir and libdir
  1422. Some influential environment variables:
  1423. CXX C++ compiler command
  1424. CXXFLAGS C++ compiler flags
  1425. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1426. nonstandard directory <lib dir>
  1427. LIBS libraries to pass to the linker, e.g. -l<library>
  1428. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1429. you have headers in a nonstandard directory <include dir>
  1430. CC C compiler command
  1431. CFLAGS C compiler flags
  1432. YACC The `Yet Another C Compiler' implementation to use. Defaults to
  1433. the first program found out of: `bison -y', `byacc', `yacc'.
  1434. YFLAGS The list of arguments that will be passed by default to $YACC.
  1435. This script will default YFLAGS to the empty string to avoid a
  1436. default value of `-d' given by some make applications.
  1437. CXXCPP C++ preprocessor
  1438. PKG_CONFIG path to pkg-config utility
  1439. SQLITE3_CFLAGS
  1440. C compiler flags for SQLITE3, overriding pkg-config
  1441. SQLITE3_LIBS
  1442. linker flags for SQLITE3, overriding pkg-config
  1443. LIBGNUTLS_CFLAGS
  1444. C compiler flags for LIBGNUTLS, overriding pkg-config
  1445. LIBGNUTLS_LIBS
  1446. linker flags for LIBGNUTLS, overriding pkg-config
  1447. Use these variables to override the choices made by `configure' or to help
  1448. it to find libraries and programs with nonstandard names/locations.
  1449. Report bugs to <t-tujikawa@users.sourceforge.net>.
  1450. aria2 home page: <http://aria2.sourceforge.net/>.
  1451. _ACEOF
  1452. ac_status=$?
  1453. fi
  1454. if test "$ac_init_help" = "recursive"; then
  1455. # If there are subdirs, report their specific --help.
  1456. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1457. test -d "$ac_dir" ||
  1458. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1459. continue
  1460. ac_builddir=.
  1461. case "$ac_dir" in
  1462. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1463. *)
  1464. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1465. # A ".." for each directory in $ac_dir_suffix.
  1466. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1467. case $ac_top_builddir_sub in
  1468. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1469. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1470. esac ;;
  1471. esac
  1472. ac_abs_top_builddir=$ac_pwd
  1473. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1474. # for backward compatibility:
  1475. ac_top_builddir=$ac_top_build_prefix
  1476. case $srcdir in
  1477. .) # We are building in place.
  1478. ac_srcdir=.
  1479. ac_top_srcdir=$ac_top_builddir_sub
  1480. ac_abs_top_srcdir=$ac_pwd ;;
  1481. [\\/]* | ?:[\\/]* ) # Absolute name.
  1482. ac_srcdir=$srcdir$ac_dir_suffix;
  1483. ac_top_srcdir=$srcdir
  1484. ac_abs_top_srcdir=$srcdir ;;
  1485. *) # Relative name.
  1486. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1487. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1488. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1489. esac
  1490. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1491. cd "$ac_dir" || { ac_status=$?; continue; }
  1492. # Check for guested configure.
  1493. if test -f "$ac_srcdir/configure.gnu"; then
  1494. echo &&
  1495. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1496. elif test -f "$ac_srcdir/configure"; then
  1497. echo &&
  1498. $SHELL "$ac_srcdir/configure" --help=recursive
  1499. else
  1500. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1501. fi || ac_status=$?
  1502. cd "$ac_pwd" || { ac_status=$?; break; }
  1503. done
  1504. fi
  1505. test -n "$ac_init_help" && exit $ac_status
  1506. if $ac_init_version; then
  1507. cat <<\_ACEOF
  1508. aria2 configure 1.9.1
  1509. generated by GNU Autoconf 2.65
  1510. Copyright (C) 2009 Free Software Foundation, Inc.
  1511. This configure script is free software; the Free Software Foundation
  1512. gives unlimited permission to copy, distribute and modify it.
  1513. _ACEOF
  1514. exit
  1515. fi
  1516. ## ------------------------ ##
  1517. ## Autoconf initialization. ##
  1518. ## ------------------------ ##
  1519. # ac_fn_cxx_try_compile LINENO
  1520. # ----------------------------
  1521. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1522. ac_fn_cxx_try_compile ()
  1523. {
  1524. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1525. rm -f conftest.$ac_objext
  1526. if { { ac_try="$ac_compile"
  1527. case "(($ac_try" in
  1528. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1529. *) ac_try_echo=$ac_try;;
  1530. esac
  1531. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1532. $as_echo "$ac_try_echo"; } >&5
  1533. (eval "$ac_compile") 2>conftest.err
  1534. ac_status=$?
  1535. if test -s conftest.err; then
  1536. grep -v '^ *+' conftest.err >conftest.er1
  1537. cat conftest.er1 >&5
  1538. mv -f conftest.er1 conftest.err
  1539. fi
  1540. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1541. test $ac_status = 0; } && {
  1542. test -z "$ac_cxx_werror_flag" ||
  1543. test ! -s conftest.err
  1544. } && test -s conftest.$ac_objext; then :
  1545. ac_retval=0
  1546. else
  1547. $as_echo "$as_me: failed program was:" >&5
  1548. sed 's/^/| /' conftest.$ac_ext >&5
  1549. ac_retval=1
  1550. fi
  1551. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1552. as_fn_set_status $ac_retval
  1553. } # ac_fn_cxx_try_compile
  1554. # ac_fn_c_try_compile LINENO
  1555. # --------------------------
  1556. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1557. ac_fn_c_try_compile ()
  1558. {
  1559. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1560. rm -f conftest.$ac_objext
  1561. if { { ac_try="$ac_compile"
  1562. case "(($ac_try" in
  1563. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1564. *) ac_try_echo=$ac_try;;
  1565. esac
  1566. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1567. $as_echo "$ac_try_echo"; } >&5
  1568. (eval "$ac_compile") 2>conftest.err
  1569. ac_status=$?
  1570. if test -s conftest.err; then
  1571. grep -v '^ *+' conftest.err >conftest.er1
  1572. cat conftest.er1 >&5
  1573. mv -f conftest.er1 conftest.err
  1574. fi
  1575. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1576. test $ac_status = 0; } && {
  1577. test -z "$ac_c_werror_flag" ||
  1578. test ! -s conftest.err
  1579. } && test -s conftest.$ac_objext; then :
  1580. ac_retval=0
  1581. else
  1582. $as_echo "$as_me: failed program was:" >&5
  1583. sed 's/^/| /' conftest.$ac_ext >&5
  1584. ac_retval=1
  1585. fi
  1586. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1587. as_fn_set_status $ac_retval
  1588. } # ac_fn_c_try_compile
  1589. # ac_fn_cxx_try_cpp LINENO
  1590. # ------------------------
  1591. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1592. ac_fn_cxx_try_cpp ()
  1593. {
  1594. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1595. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1596. case "(($ac_try" in
  1597. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1598. *) ac_try_echo=$ac_try;;
  1599. esac
  1600. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1601. $as_echo "$ac_try_echo"; } >&5
  1602. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1603. ac_status=$?
  1604. if test -s conftest.err; then
  1605. grep -v '^ *+' conftest.err >conftest.er1
  1606. cat conftest.er1 >&5
  1607. mv -f conftest.er1 conftest.err
  1608. fi
  1609. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1610. test $ac_status = 0; } >/dev/null && {
  1611. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1612. test ! -s conftest.err
  1613. }; then :
  1614. ac_retval=0
  1615. else
  1616. $as_echo "$as_me: failed program was:" >&5
  1617. sed 's/^/| /' conftest.$ac_ext >&5
  1618. ac_retval=1
  1619. fi
  1620. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1621. as_fn_set_status $ac_retval
  1622. } # ac_fn_cxx_try_cpp
  1623. # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
  1624. # ---------------------------------------------------------
  1625. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1626. # the include files in INCLUDES and setting the cache variable VAR
  1627. # accordingly.
  1628. ac_fn_cxx_check_header_mongrel ()
  1629. {
  1630. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1631. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1632. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1633. $as_echo_n "checking for $2... " >&6; }
  1634. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1635. $as_echo_n "(cached) " >&6
  1636. fi
  1637. eval ac_res=\$$3
  1638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1639. $as_echo "$ac_res" >&6; }
  1640. else
  1641. # Is the header compilable?
  1642. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1643. $as_echo_n "checking $2 usability... " >&6; }
  1644. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1645. /* end confdefs.h. */
  1646. $4
  1647. #include <$2>
  1648. _ACEOF
  1649. if ac_fn_cxx_try_compile "$LINENO"; then :
  1650. ac_header_compiler=yes
  1651. else
  1652. ac_header_compiler=no
  1653. fi
  1654. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1656. $as_echo "$ac_header_compiler" >&6; }
  1657. # Is the header present?
  1658. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1659. $as_echo_n "checking $2 presence... " >&6; }
  1660. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1661. /* end confdefs.h. */
  1662. #include <$2>
  1663. _ACEOF
  1664. if ac_fn_cxx_try_cpp "$LINENO"; then :
  1665. ac_header_preproc=yes
  1666. else
  1667. ac_header_preproc=no
  1668. fi
  1669. rm -f conftest.err conftest.$ac_ext
  1670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1671. $as_echo "$ac_header_preproc" >&6; }
  1672. # So? What about this header?
  1673. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
  1674. yes:no: )
  1675. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1676. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1677. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1678. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1679. ;;
  1680. no:yes:* )
  1681. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1682. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1683. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1684. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1685. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1686. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1687. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1688. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1689. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1690. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1691. ( cat <<\_ASBOX
  1692. ## ----------------------------------------------- ##
  1693. ## Report this to t-tujikawa@users.sourceforge.net ##
  1694. ## ----------------------------------------------- ##
  1695. _ASBOX
  1696. ) | sed "s/^/$as_me: WARNING: /" >&2
  1697. ;;
  1698. esac
  1699. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1700. $as_echo_n "checking for $2... " >&6; }
  1701. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1702. $as_echo_n "(cached) " >&6
  1703. else
  1704. eval "$3=\$ac_header_compiler"
  1705. fi
  1706. eval ac_res=\$$3
  1707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1708. $as_echo "$ac_res" >&6; }
  1709. fi
  1710. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1711. } # ac_fn_cxx_check_header_mongrel
  1712. # ac_fn_cxx_try_run LINENO
  1713. # ------------------------
  1714. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1715. # that executables *can* be run.
  1716. ac_fn_cxx_try_run ()
  1717. {
  1718. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1719. if { { ac_try="$ac_link"
  1720. case "(($ac_try" in
  1721. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1722. *) ac_try_echo=$ac_try;;
  1723. esac
  1724. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1725. $as_echo "$ac_try_echo"; } >&5
  1726. (eval "$ac_link") 2>&5
  1727. ac_status=$?
  1728. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1729. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1730. { { case "(($ac_try" in
  1731. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1732. *) ac_try_echo=$ac_try;;
  1733. esac
  1734. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1735. $as_echo "$ac_try_echo"; } >&5
  1736. (eval "$ac_try") 2>&5
  1737. ac_status=$?
  1738. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1739. test $ac_status = 0; }; }; then :
  1740. ac_retval=0
  1741. else
  1742. $as_echo "$as_me: program exited with status $ac_status" >&5
  1743. $as_echo "$as_me: failed program was:" >&5
  1744. sed 's/^/| /' conftest.$ac_ext >&5
  1745. ac_retval=$ac_status
  1746. fi
  1747. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1748. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1749. as_fn_set_status $ac_retval
  1750. } # ac_fn_cxx_try_run
  1751. # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
  1752. # ---------------------------------------------------------
  1753. # Tests whether HEADER exists and can be compiled using the include files in
  1754. # INCLUDES, setting the cache variable VAR accordingly.
  1755. ac_fn_cxx_check_header_compile ()
  1756. {
  1757. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1759. $as_echo_n "checking for $2... " >&6; }
  1760. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1761. $as_echo_n "(cached) " >&6
  1762. else
  1763. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1764. /* end confdefs.h. */
  1765. $4
  1766. #include <$2>
  1767. _ACEOF
  1768. if ac_fn_cxx_try_compile "$LINENO"; then :
  1769. eval "$3=yes"
  1770. else
  1771. eval "$3=no"
  1772. fi
  1773. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1774. fi
  1775. eval ac_res=\$$3
  1776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1777. $as_echo "$ac_res" >&6; }
  1778. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1779. } # ac_fn_cxx_check_header_compile
  1780. # ac_fn_cxx_try_link LINENO
  1781. # -------------------------
  1782. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1783. ac_fn_cxx_try_link ()
  1784. {
  1785. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1786. rm -f conftest.$ac_objext conftest$ac_exeext
  1787. if { { ac_try="$ac_link"
  1788. case "(($ac_try" in
  1789. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1790. *) ac_try_echo=$ac_try;;
  1791. esac
  1792. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1793. $as_echo "$ac_try_echo"; } >&5
  1794. (eval "$ac_link") 2>conftest.err
  1795. ac_status=$?
  1796. if test -s conftest.err; then
  1797. grep -v '^ *+' conftest.err >conftest.er1
  1798. cat conftest.er1 >&5
  1799. mv -f conftest.er1 conftest.err
  1800. fi
  1801. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1802. test $ac_status = 0; } && {
  1803. test -z "$ac_cxx_werror_flag" ||
  1804. test ! -s conftest.err
  1805. } && test -s conftest$ac_exeext && {
  1806. test "$cross_compiling" = yes ||
  1807. $as_test_x conftest$ac_exeext
  1808. }; then :
  1809. ac_retval=0
  1810. else
  1811. $as_echo "$as_me: failed program was:" >&5
  1812. sed 's/^/| /' conftest.$ac_ext >&5
  1813. ac_retval=1
  1814. fi
  1815. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1816. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1817. # interfere with the next link command; also delete a directory that is
  1818. # left behind by Apple's compiler. We do this before executing the actions.
  1819. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1820. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1821. as_fn_set_status $ac_retval
  1822. } # ac_fn_cxx_try_link
  1823. # ac_fn_cxx_check_func LINENO FUNC VAR
  1824. # ------------------------------------
  1825. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1826. ac_fn_cxx_check_func ()
  1827. {
  1828. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1829. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1830. $as_echo_n "checking for $2... " >&6; }
  1831. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1832. $as_echo_n "(cached) " >&6
  1833. else
  1834. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1835. /* end confdefs.h. */
  1836. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1837. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1838. #define $2 innocuous_$2
  1839. /* System header to define __stub macros and hopefully few prototypes,
  1840. which can conflict with char $2 (); below.
  1841. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1842. <limits.h> exists even on freestanding compilers. */
  1843. #ifdef __STDC__
  1844. # include <limits.h>
  1845. #else
  1846. # include <assert.h>
  1847. #endif
  1848. #undef $2
  1849. /* Override any GCC internal prototype to avoid an error.
  1850. Use char because int might match the return type of a GCC
  1851. builtin and then its argument prototype would still apply. */
  1852. #ifdef __cplusplus
  1853. extern "C"
  1854. #endif
  1855. char $2 ();
  1856. /* The GNU C library defines this for functions which it implements
  1857. to always fail with ENOSYS. Some functions are actually named
  1858. something starting with __ and the normal name is an alias. */
  1859. #if defined __stub_$2 || defined __stub___$2
  1860. choke me
  1861. #endif
  1862. int
  1863. main ()
  1864. {
  1865. return $2 ();
  1866. ;
  1867. return 0;
  1868. }
  1869. _ACEOF
  1870. if ac_fn_cxx_try_link "$LINENO"; then :
  1871. eval "$3=yes"
  1872. else
  1873. eval "$3=no"
  1874. fi
  1875. rm -f core conftest.err conftest.$ac_objext \
  1876. conftest$ac_exeext conftest.$ac_ext
  1877. fi
  1878. eval ac_res=\$$3
  1879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1880. $as_echo "$ac_res" >&6; }
  1881. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1882. } # ac_fn_cxx_check_func
  1883. # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
  1884. # ---------------------------------------------
  1885. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1886. # variable VAR accordingly.
  1887. ac_fn_cxx_check_type ()
  1888. {
  1889. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1890. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1891. $as_echo_n "checking for $2... " >&6; }
  1892. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1893. $as_echo_n "(cached) " >&6
  1894. else
  1895. eval "$3=no"
  1896. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1897. /* end confdefs.h. */
  1898. $4
  1899. int
  1900. main ()
  1901. {
  1902. if (sizeof ($2))
  1903. return 0;
  1904. ;
  1905. return 0;
  1906. }
  1907. _ACEOF
  1908. if ac_fn_cxx_try_compile "$LINENO"; then :
  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. else
  1923. eval "$3=yes"
  1924. fi
  1925. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1926. fi
  1927. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1928. fi
  1929. eval ac_res=\$$3
  1930. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1931. $as_echo "$ac_res" >&6; }
  1932. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1933. } # ac_fn_cxx_check_type
  1934. # ac_fn_c_find_intX_t LINENO BITS VAR
  1935. # -----------------------------------
  1936. # Finds a signed integer type with width BITS, setting cache variable VAR
  1937. # accordingly.
  1938. ac_fn_c_find_intX_t ()
  1939. {
  1940. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1941. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
  1942. $as_echo_n "checking for int$2_t... " >&6; }
  1943. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1944. $as_echo_n "(cached) " >&6
  1945. else
  1946. eval "$3=no"
  1947. # Order is important - never check a type that is potentially smaller
  1948. # than half of the expected target width.
  1949. for ac_type in int$2_t 'int' 'long int' \
  1950. 'long long int' 'short int' 'signed char'; do
  1951. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1952. /* end confdefs.h. */
  1953. $ac_includes_default
  1954. enum { N = $2 / 2 - 1 };
  1955. int
  1956. main ()
  1957. {
  1958. static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
  1959. test_array [0] = 0
  1960. ;
  1961. return 0;
  1962. }
  1963. _ACEOF
  1964. if ac_fn_cxx_try_compile "$LINENO"; then :
  1965. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1966. /* end confdefs.h. */
  1967. $ac_includes_default
  1968. enum { N = $2 / 2 - 1 };
  1969. int
  1970. main ()
  1971. {
  1972. static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
  1973. < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
  1974. test_array [0] = 0
  1975. ;
  1976. return 0;
  1977. }
  1978. _ACEOF
  1979. if ac_fn_cxx_try_compile "$LINENO"; then :
  1980. else
  1981. case $ac_type in #(
  1982. int$2_t) :
  1983. eval "$3=yes" ;; #(
  1984. *) :
  1985. eval "$3=\$ac_type" ;;
  1986. esac
  1987. fi
  1988. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1989. fi
  1990. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1991. eval as_val=\$$3
  1992. if test "x$as_val" = x""no; then :
  1993. else
  1994. break
  1995. fi
  1996. done
  1997. fi
  1998. eval ac_res=\$$3
  1999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2000. $as_echo "$ac_res" >&6; }
  2001. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2002. } # ac_fn_c_find_intX_t
  2003. # ac_fn_c_find_uintX_t LINENO BITS VAR
  2004. # ------------------------------------
  2005. # Finds an unsigned integer type with width BITS, setting cache variable VAR
  2006. # accordingly.
  2007. ac_fn_c_find_uintX_t ()
  2008. {
  2009. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2010. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
  2011. $as_echo_n "checking for uint$2_t... " >&6; }
  2012. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  2013. $as_echo_n "(cached) " >&6
  2014. else
  2015. eval "$3=no"
  2016. # Order is important - never check a type that is potentially smaller
  2017. # than half of the expected target width.
  2018. for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
  2019. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  2020. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2021. /* end confdefs.h. */
  2022. $ac_includes_default
  2023. int
  2024. main ()
  2025. {
  2026. static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
  2027. test_array [0] = 0
  2028. ;
  2029. return 0;
  2030. }
  2031. _ACEOF
  2032. if ac_fn_cxx_try_compile "$LINENO"; then :
  2033. case $ac_type in #(
  2034. uint$2_t) :
  2035. eval "$3=yes" ;; #(
  2036. *) :
  2037. eval "$3=\$ac_type" ;;
  2038. esac
  2039. fi
  2040. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2041. eval as_val=\$$3
  2042. if test "x$as_val" = x""no; then :
  2043. else
  2044. break
  2045. fi
  2046. done
  2047. fi
  2048. eval ac_res=\$$3
  2049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2050. $as_echo "$ac_res" >&6; }
  2051. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2052. } # ac_fn_c_find_uintX_t
  2053. # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
  2054. # ----------------------------------------------
  2055. # Tries to find the compile-time value of EXPR in a program that includes
  2056. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  2057. # computed
  2058. ac_fn_cxx_compute_int ()
  2059. {
  2060. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2061. if test "$cross_compiling" = yes; then
  2062. # Depending upon the size, compute the lo and hi bounds.
  2063. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2064. /* end confdefs.h. */
  2065. $4
  2066. int
  2067. main ()
  2068. {
  2069. static int test_array [1 - 2 * !(($2) >= 0)];
  2070. test_array [0] = 0
  2071. ;
  2072. return 0;
  2073. }
  2074. _ACEOF
  2075. if ac_fn_cxx_try_compile "$LINENO"; then :
  2076. ac_lo=0 ac_mid=0
  2077. while :; do
  2078. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2079. /* end confdefs.h. */
  2080. $4
  2081. int
  2082. main ()
  2083. {
  2084. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2085. test_array [0] = 0
  2086. ;
  2087. return 0;
  2088. }
  2089. _ACEOF
  2090. if ac_fn_cxx_try_compile "$LINENO"; then :
  2091. ac_hi=$ac_mid; break
  2092. else
  2093. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  2094. if test $ac_lo -le $ac_mid; then
  2095. ac_lo= ac_hi=
  2096. break
  2097. fi
  2098. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  2099. fi
  2100. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2101. done
  2102. else
  2103. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2104. /* end confdefs.h. */
  2105. $4
  2106. int
  2107. main ()
  2108. {
  2109. static int test_array [1 - 2 * !(($2) < 0)];
  2110. test_array [0] = 0
  2111. ;
  2112. return 0;
  2113. }
  2114. _ACEOF
  2115. if ac_fn_cxx_try_compile "$LINENO"; then :
  2116. ac_hi=-1 ac_mid=-1
  2117. while :; do
  2118. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2119. /* end confdefs.h. */
  2120. $4
  2121. int
  2122. main ()
  2123. {
  2124. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  2125. test_array [0] = 0
  2126. ;
  2127. return 0;
  2128. }
  2129. _ACEOF
  2130. if ac_fn_cxx_try_compile "$LINENO"; then :
  2131. ac_lo=$ac_mid; break
  2132. else
  2133. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  2134. if test $ac_mid -le $ac_hi; then
  2135. ac_lo= ac_hi=
  2136. break
  2137. fi
  2138. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  2139. fi
  2140. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2141. done
  2142. else
  2143. ac_lo= ac_hi=
  2144. fi
  2145. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2146. fi
  2147. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2148. # Binary search between lo and hi bounds.
  2149. while test "x$ac_lo" != "x$ac_hi"; do
  2150. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  2151. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2152. /* end confdefs.h. */
  2153. $4
  2154. int
  2155. main ()
  2156. {
  2157. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2158. test_array [0] = 0
  2159. ;
  2160. return 0;
  2161. }
  2162. _ACEOF
  2163. if ac_fn_cxx_try_compile "$LINENO"; then :
  2164. ac_hi=$ac_mid
  2165. else
  2166. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  2167. fi
  2168. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2169. done
  2170. case $ac_lo in #((
  2171. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  2172. '') ac_retval=1 ;;
  2173. esac
  2174. else
  2175. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2176. /* end confdefs.h. */
  2177. $4
  2178. static long int longval () { return $2; }
  2179. static unsigned long int ulongval () { return $2; }
  2180. #include <stdio.h>
  2181. #include <stdlib.h>
  2182. int
  2183. main ()
  2184. {
  2185. FILE *f = fopen ("conftest.val", "w");
  2186. if (! f)
  2187. return 1;
  2188. if (($2) < 0)
  2189. {
  2190. long int i = longval ();
  2191. if (i != ($2))
  2192. return 1;
  2193. fprintf (f, "%ld", i);
  2194. }
  2195. else
  2196. {
  2197. unsigned long int i = ulongval ();
  2198. if (i != ($2))
  2199. return 1;
  2200. fprintf (f, "%lu", i);
  2201. }
  2202. /* Do not output a trailing newline, as this causes \r\n confusion
  2203. on some platforms. */
  2204. return ferror (f) || fclose (f) != 0;
  2205. ;
  2206. return 0;
  2207. }
  2208. _ACEOF
  2209. if ac_fn_cxx_try_run "$LINENO"; then :
  2210. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  2211. else
  2212. ac_retval=1
  2213. fi
  2214. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  2215. conftest.$ac_objext conftest.beam conftest.$ac_ext
  2216. rm -f conftest.val
  2217. fi
  2218. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2219. as_fn_set_status $ac_retval
  2220. } # ac_fn_cxx_compute_int
  2221. # ac_fn_cxx_check_member LINENO AGGR MEMBER VAR INCLUDES
  2222. # ------------------------------------------------------
  2223. # Tries to find if the field MEMBER exists in type AGGR, after including
  2224. # INCLUDES, setting cache variable VAR accordingly.
  2225. ac_fn_cxx_check_member ()
  2226. {
  2227. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2228. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2229. $as_echo_n "checking for $2.$3... " >&6; }
  2230. if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
  2231. $as_echo_n "(cached) " >&6
  2232. else
  2233. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2234. /* end confdefs.h. */
  2235. $5
  2236. int
  2237. main ()
  2238. {
  2239. static $2 ac_aggr;
  2240. if (ac_aggr.$3)
  2241. return 0;
  2242. ;
  2243. return 0;
  2244. }
  2245. _ACEOF
  2246. if ac_fn_cxx_try_compile "$LINENO"; then :
  2247. eval "$4=yes"
  2248. else
  2249. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2250. /* end confdefs.h. */
  2251. $5
  2252. int
  2253. main ()
  2254. {
  2255. static $2 ac_aggr;
  2256. if (sizeof ac_aggr.$3)
  2257. return 0;
  2258. ;
  2259. return 0;
  2260. }
  2261. _ACEOF
  2262. if ac_fn_cxx_try_compile "$LINENO"; then :
  2263. eval "$4=yes"
  2264. else
  2265. eval "$4=no"
  2266. fi
  2267. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2268. fi
  2269. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2270. fi
  2271. eval ac_res=\$$4
  2272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2273. $as_echo "$ac_res" >&6; }
  2274. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2275. } # ac_fn_cxx_check_member
  2276. cat >config.log <<_ACEOF
  2277. This file contains any messages produced by compilers while
  2278. running configure, to aid debugging if configure makes a mistake.
  2279. It was created by aria2 $as_me 1.9.1, which was
  2280. generated by GNU Autoconf 2.65. Invocation command line was
  2281. $ $0 $@
  2282. _ACEOF
  2283. exec 5>>config.log
  2284. {
  2285. cat <<_ASUNAME
  2286. ## --------- ##
  2287. ## Platform. ##
  2288. ## --------- ##
  2289. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2290. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2291. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2292. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2293. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2294. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2295. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2296. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2297. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2298. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2299. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2300. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2301. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2302. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2303. _ASUNAME
  2304. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2305. for as_dir in $PATH
  2306. do
  2307. IFS=$as_save_IFS
  2308. test -z "$as_dir" && as_dir=.
  2309. $as_echo "PATH: $as_dir"
  2310. done
  2311. IFS=$as_save_IFS
  2312. } >&5
  2313. cat >&5 <<_ACEOF
  2314. ## ----------- ##
  2315. ## Core tests. ##
  2316. ## ----------- ##
  2317. _ACEOF
  2318. # Keep a trace of the command line.
  2319. # Strip out --no-create and --no-recursion so they do not pile up.
  2320. # Strip out --silent because we don't want to record it for future runs.
  2321. # Also quote any args containing shell meta-characters.
  2322. # Make two passes to allow for proper duplicate-argument suppression.
  2323. ac_configure_args=
  2324. ac_configure_args0=
  2325. ac_configure_args1=
  2326. ac_must_keep_next=false
  2327. for ac_pass in 1 2
  2328. do
  2329. for ac_arg
  2330. do
  2331. case $ac_arg in
  2332. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2333. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2334. | -silent | --silent | --silen | --sile | --sil)
  2335. continue ;;
  2336. *\'*)
  2337. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2338. esac
  2339. case $ac_pass in
  2340. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2341. 2)
  2342. as_fn_append ac_configure_args1 " '$ac_arg'"
  2343. if test $ac_must_keep_next = true; then
  2344. ac_must_keep_next=false # Got value, back to normal.
  2345. else
  2346. case $ac_arg in
  2347. *=* | --config-cache | -C | -disable-* | --disable-* \
  2348. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2349. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2350. | -with-* | --with-* | -without-* | --without-* | --x)
  2351. case "$ac_configure_args0 " in
  2352. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2353. esac
  2354. ;;
  2355. -* ) ac_must_keep_next=true ;;
  2356. esac
  2357. fi
  2358. as_fn_append ac_configure_args " '$ac_arg'"
  2359. ;;
  2360. esac
  2361. done
  2362. done
  2363. { ac_configure_args0=; unset ac_configure_args0;}
  2364. { ac_configure_args1=; unset ac_configure_args1;}
  2365. # When interrupted or exit'd, cleanup temporary files, and complete
  2366. # config.log. We remove comments because anyway the quotes in there
  2367. # would cause problems or look ugly.
  2368. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2369. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2370. trap 'exit_status=$?
  2371. # Save into config.log some information that might help in debugging.
  2372. {
  2373. echo
  2374. cat <<\_ASBOX
  2375. ## ---------------- ##
  2376. ## Cache variables. ##
  2377. ## ---------------- ##
  2378. _ASBOX
  2379. echo
  2380. # The following way of writing the cache mishandles newlines in values,
  2381. (
  2382. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2383. eval ac_val=\$$ac_var
  2384. case $ac_val in #(
  2385. *${as_nl}*)
  2386. case $ac_var in #(
  2387. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2388. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2389. esac
  2390. case $ac_var in #(
  2391. _ | IFS | as_nl) ;; #(
  2392. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2393. *) { eval $ac_var=; unset $ac_var;} ;;
  2394. esac ;;
  2395. esac
  2396. done
  2397. (set) 2>&1 |
  2398. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2399. *${as_nl}ac_space=\ *)
  2400. sed -n \
  2401. "s/'\''/'\''\\\\'\'''\''/g;
  2402. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2403. ;; #(
  2404. *)
  2405. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2406. ;;
  2407. esac |
  2408. sort
  2409. )
  2410. echo
  2411. cat <<\_ASBOX
  2412. ## ----------------- ##
  2413. ## Output variables. ##
  2414. ## ----------------- ##
  2415. _ASBOX
  2416. echo
  2417. for ac_var in $ac_subst_vars
  2418. do
  2419. eval ac_val=\$$ac_var
  2420. case $ac_val in
  2421. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2422. esac
  2423. $as_echo "$ac_var='\''$ac_val'\''"
  2424. done | sort
  2425. echo
  2426. if test -n "$ac_subst_files"; then
  2427. cat <<\_ASBOX
  2428. ## ------------------- ##
  2429. ## File substitutions. ##
  2430. ## ------------------- ##
  2431. _ASBOX
  2432. echo
  2433. for ac_var in $ac_subst_files
  2434. do
  2435. eval ac_val=\$$ac_var
  2436. case $ac_val in
  2437. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2438. esac
  2439. $as_echo "$ac_var='\''$ac_val'\''"
  2440. done | sort
  2441. echo
  2442. fi
  2443. if test -s confdefs.h; then
  2444. cat <<\_ASBOX
  2445. ## ----------- ##
  2446. ## confdefs.h. ##
  2447. ## ----------- ##
  2448. _ASBOX
  2449. echo
  2450. cat confdefs.h
  2451. echo
  2452. fi
  2453. test "$ac_signal" != 0 &&
  2454. $as_echo "$as_me: caught signal $ac_signal"
  2455. $as_echo "$as_me: exit $exit_status"
  2456. } >&5
  2457. rm -f core *.core core.conftest.* &&
  2458. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2459. exit $exit_status
  2460. ' 0
  2461. for ac_signal in 1 2 13 15; do
  2462. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2463. done
  2464. ac_signal=0
  2465. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2466. rm -f -r conftest* confdefs.h
  2467. $as_echo "/* confdefs.h */" > confdefs.h
  2468. # Predefined preprocessor variables.
  2469. cat >>confdefs.h <<_ACEOF
  2470. #define PACKAGE_NAME "$PACKAGE_NAME"
  2471. _ACEOF
  2472. cat >>confdefs.h <<_ACEOF
  2473. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2474. _ACEOF
  2475. cat >>confdefs.h <<_ACEOF
  2476. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2477. _ACEOF
  2478. cat >>confdefs.h <<_ACEOF
  2479. #define PACKAGE_STRING "$PACKAGE_STRING"
  2480. _ACEOF
  2481. cat >>confdefs.h <<_ACEOF
  2482. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2483. _ACEOF
  2484. cat >>confdefs.h <<_ACEOF
  2485. #define PACKAGE_URL "$PACKAGE_URL"
  2486. _ACEOF
  2487. # Let the site file select an alternate cache file if it wants to.
  2488. # Prefer an explicitly selected file to automatically selected ones.
  2489. ac_site_file1=NONE
  2490. ac_site_file2=NONE
  2491. if test -n "$CONFIG_SITE"; then
  2492. ac_site_file1=$CONFIG_SITE
  2493. elif test "x$prefix" != xNONE; then
  2494. ac_site_file1=$prefix/share/config.site
  2495. ac_site_file2=$prefix/etc/config.site
  2496. else
  2497. ac_site_file1=$ac_default_prefix/share/config.site
  2498. ac_site_file2=$ac_default_prefix/etc/config.site
  2499. fi
  2500. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2501. do
  2502. test "x$ac_site_file" = xNONE && continue
  2503. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2504. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2505. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2506. sed 's/^/| /' "$ac_site_file" >&5
  2507. . "$ac_site_file"
  2508. fi
  2509. done
  2510. if test -r "$cache_file"; then
  2511. # Some versions of bash will fail to source /dev/null (special files
  2512. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2513. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2514. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2515. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2516. case $cache_file in
  2517. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2518. *) . "./$cache_file";;
  2519. esac
  2520. fi
  2521. else
  2522. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2523. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2524. >$cache_file
  2525. fi
  2526. gt_needs="$gt_needs "
  2527. as_fn_append ac_header_list " stdlib.h"
  2528. as_fn_append ac_header_list " unistd.h"
  2529. as_fn_append ac_header_list " sys/param.h"
  2530. as_fn_append ac_header_list " sys/time.h"
  2531. as_fn_append ac_func_list " alarm"
  2532. # Check that the precious variables saved in the cache have kept the same
  2533. # value.
  2534. ac_cache_corrupted=false
  2535. for ac_var in $ac_precious_vars; do
  2536. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2537. eval ac_new_set=\$ac_env_${ac_var}_set
  2538. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2539. eval ac_new_val=\$ac_env_${ac_var}_value
  2540. case $ac_old_set,$ac_new_set in
  2541. set,)
  2542. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2543. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2544. ac_cache_corrupted=: ;;
  2545. ,set)
  2546. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2547. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2548. ac_cache_corrupted=: ;;
  2549. ,);;
  2550. *)
  2551. if test "x$ac_old_val" != "x$ac_new_val"; then
  2552. # differences in whitespace do not lead to failure.
  2553. ac_old_val_w=`echo x $ac_old_val`
  2554. ac_new_val_w=`echo x $ac_new_val`
  2555. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2556. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2557. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2558. ac_cache_corrupted=:
  2559. else
  2560. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2561. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2562. eval $ac_var=\$ac_old_val
  2563. fi
  2564. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2565. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2566. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2567. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2568. fi;;
  2569. esac
  2570. # Pass precious variables to config.status.
  2571. if test "$ac_new_set" = set; then
  2572. case $ac_new_val in
  2573. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2574. *) ac_arg=$ac_var=$ac_new_val ;;
  2575. esac
  2576. case " $ac_configure_args " in
  2577. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2578. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2579. esac
  2580. fi
  2581. done
  2582. if $ac_cache_corrupted; then
  2583. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2584. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2585. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2586. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2587. as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2588. fi
  2589. ## -------------------- ##
  2590. ## Main body of script. ##
  2591. ## -------------------- ##
  2592. ac_ext=c
  2593. ac_cpp='$CPP $CPPFLAGS'
  2594. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2595. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2596. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2597. ac_aux_dir=
  2598. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2599. for ac_t in install-sh install.sh shtool; do
  2600. if test -f "$ac_dir/$ac_t"; then
  2601. ac_aux_dir=$ac_dir
  2602. ac_install_sh="$ac_aux_dir/$ac_t -c"
  2603. break 2
  2604. fi
  2605. done
  2606. done
  2607. if test -z "$ac_aux_dir"; then
  2608. as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2609. fi
  2610. # These three variables are undocumented and unsupported,
  2611. # and are intended to be withdrawn in a future Autoconf release.
  2612. # They can cause serious problems if a builder's source tree is in a directory
  2613. # whose full name contains unusual characters.
  2614. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2615. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2616. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2617. # Make sure we can run config.sub.
  2618. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2619. as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2620. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2621. $as_echo_n "checking build system type... " >&6; }
  2622. if test "${ac_cv_build+set}" = set; then :
  2623. $as_echo_n "(cached) " >&6
  2624. else
  2625. ac_build_alias=$build_alias
  2626. test "x$ac_build_alias" = x &&
  2627. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2628. test "x$ac_build_alias" = x &&
  2629. as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  2630. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2631. as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2632. fi
  2633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2634. $as_echo "$ac_cv_build" >&6; }
  2635. case $ac_cv_build in
  2636. *-*-*) ;;
  2637. *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  2638. esac
  2639. build=$ac_cv_build
  2640. ac_save_IFS=$IFS; IFS='-'
  2641. set x $ac_cv_build
  2642. shift
  2643. build_cpu=$1
  2644. build_vendor=$2
  2645. shift; shift
  2646. # Remember, the first character of IFS is used to create $*,
  2647. # except with old shells:
  2648. build_os=$*
  2649. IFS=$ac_save_IFS
  2650. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2652. $as_echo_n "checking host system type... " >&6; }
  2653. if test "${ac_cv_host+set}" = set; then :
  2654. $as_echo_n "(cached) " >&6
  2655. else
  2656. if test "x$host_alias" = x; then
  2657. ac_cv_host=$ac_cv_build
  2658. else
  2659. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2660. as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2661. fi
  2662. fi
  2663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2664. $as_echo "$ac_cv_host" >&6; }
  2665. case $ac_cv_host in
  2666. *-*-*) ;;
  2667. *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  2668. esac
  2669. host=$ac_cv_host
  2670. ac_save_IFS=$IFS; IFS='-'
  2671. set x $ac_cv_host
  2672. shift
  2673. host_cpu=$1
  2674. host_vendor=$2
  2675. shift; shift
  2676. # Remember, the first character of IFS is used to create $*,
  2677. # except with old shells:
  2678. host_os=$*
  2679. IFS=$ac_save_IFS
  2680. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2682. $as_echo_n "checking target system type... " >&6; }
  2683. if test "${ac_cv_target+set}" = set; then :
  2684. $as_echo_n "(cached) " >&6
  2685. else
  2686. if test "x$target_alias" = x; then
  2687. ac_cv_target=$ac_cv_host
  2688. else
  2689. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2690. as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2691. fi
  2692. fi
  2693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2694. $as_echo "$ac_cv_target" >&6; }
  2695. case $ac_cv_target in
  2696. *-*-*) ;;
  2697. *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
  2698. esac
  2699. target=$ac_cv_target
  2700. ac_save_IFS=$IFS; IFS='-'
  2701. set x $ac_cv_target
  2702. shift
  2703. target_cpu=$1
  2704. target_vendor=$2
  2705. shift; shift
  2706. # Remember, the first character of IFS is used to create $*,
  2707. # except with old shells:
  2708. target_os=$*
  2709. IFS=$ac_save_IFS
  2710. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2711. # The aliases save the names the user supplied, while $host etc.
  2712. # will get canonicalized.
  2713. test -n "$target_alias" &&
  2714. test "$program_prefix$program_suffix$program_transform_name" = \
  2715. NONENONEs,x,x, &&
  2716. program_prefix=${target_alias}-
  2717. am__api_version='1.11'
  2718. # Find a good install program. We prefer a C program (faster),
  2719. # so one script is as good as another. But avoid the broken or
  2720. # incompatible versions:
  2721. # SysV /etc/install, /usr/sbin/install
  2722. # SunOS /usr/etc/install
  2723. # IRIX /sbin/install
  2724. # AIX /bin/install
  2725. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2726. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2727. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2728. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2729. # OS/2's system install, which has a completely different semantic
  2730. # ./install, which can be erroneously created by make from ./install.sh.
  2731. # Reject install programs that cannot install multiple files.
  2732. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2733. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2734. if test -z "$INSTALL"; then
  2735. if test "${ac_cv_path_install+set}" = set; then :
  2736. $as_echo_n "(cached) " >&6
  2737. else
  2738. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2739. for as_dir in $PATH
  2740. do
  2741. IFS=$as_save_IFS
  2742. test -z "$as_dir" && as_dir=.
  2743. # Account for people who put trailing slashes in PATH elements.
  2744. case $as_dir/ in #((
  2745. ./ | .// | /[cC]/* | \
  2746. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2747. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2748. /usr/ucb/* ) ;;
  2749. *)
  2750. # OSF1 and SCO ODT 3.0 have their own names for install.
  2751. # Don't use installbsd from OSF since it installs stuff as root
  2752. # by default.
  2753. for ac_prog in ginstall scoinst install; do
  2754. for ac_exec_ext in '' $ac_executable_extensions; do
  2755. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2756. if test $ac_prog = install &&
  2757. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2758. # AIX install. It has an incompatible calling convention.
  2759. :
  2760. elif test $ac_prog = install &&
  2761. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2762. # program-specific install script used by HP pwplus--don't use.
  2763. :
  2764. else
  2765. rm -rf conftest.one conftest.two conftest.dir
  2766. echo one > conftest.one
  2767. echo two > conftest.two
  2768. mkdir conftest.dir
  2769. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2770. test -s conftest.one && test -s conftest.two &&
  2771. test -s conftest.dir/conftest.one &&
  2772. test -s conftest.dir/conftest.two
  2773. then
  2774. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2775. break 3
  2776. fi
  2777. fi
  2778. fi
  2779. done
  2780. done
  2781. ;;
  2782. esac
  2783. done
  2784. IFS=$as_save_IFS
  2785. rm -rf conftest.one conftest.two conftest.dir
  2786. fi
  2787. if test "${ac_cv_path_install+set}" = set; then
  2788. INSTALL=$ac_cv_path_install
  2789. else
  2790. # As a last resort, use the slow shell script. Don't cache a
  2791. # value for INSTALL within a source directory, because that will
  2792. # break other packages using the cache if that directory is
  2793. # removed, or if the value is a relative name.
  2794. INSTALL=$ac_install_sh
  2795. fi
  2796. fi
  2797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2798. $as_echo "$INSTALL" >&6; }
  2799. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2800. # It thinks the first close brace ends the variable substitution.
  2801. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2802. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2803. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2804. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2805. $as_echo_n "checking whether build environment is sane... " >&6; }
  2806. # Just in case
  2807. sleep 1
  2808. echo timestamp > conftest.file
  2809. # Reject unsafe characters in $srcdir or the absolute working directory
  2810. # name. Accept space and tab only in the latter.
  2811. am_lf='
  2812. '
  2813. case `pwd` in
  2814. *[\\\"\#\$\&\'\`$am_lf]*)
  2815. as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
  2816. esac
  2817. case $srcdir in
  2818. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2819. as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  2820. esac
  2821. # Do `set' in a subshell so we don't clobber the current shell's
  2822. # arguments. Must try -L first in case configure is actually a
  2823. # symlink; some systems play weird games with the mod time of symlinks
  2824. # (eg FreeBSD returns the mod time of the symlink's containing
  2825. # directory).
  2826. if (
  2827. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2828. if test "$*" = "X"; then
  2829. # -L didn't work.
  2830. set X `ls -t "$srcdir/configure" conftest.file`
  2831. fi
  2832. rm -f conftest.file
  2833. if test "$*" != "X $srcdir/configure conftest.file" \
  2834. && test "$*" != "X conftest.file $srcdir/configure"; then
  2835. # If neither matched, then we have a broken ls. This can happen
  2836. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2837. # broken ls alias from the environment. This has actually
  2838. # happened. Such a system could not be considered "sane".
  2839. as_fn_error "ls -t appears to fail. Make sure there is not a broken
  2840. alias in your environment" "$LINENO" 5
  2841. fi
  2842. test "$2" = conftest.file
  2843. )
  2844. then
  2845. # Ok.
  2846. :
  2847. else
  2848. as_fn_error "newly created file is older than distributed files!
  2849. Check your system clock" "$LINENO" 5
  2850. fi
  2851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2852. $as_echo "yes" >&6; }
  2853. test "$program_prefix" != NONE &&
  2854. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2855. # Use a double $ so make ignores it.
  2856. test "$program_suffix" != NONE &&
  2857. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2858. # Double any \ or $.
  2859. # By default was `s,x,x', remove it if useless.
  2860. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2861. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2862. # expand $ac_aux_dir to an absolute path
  2863. am_aux_dir=`cd $ac_aux_dir && pwd`
  2864. if test x"${MISSING+set}" != xset; then
  2865. case $am_aux_dir in
  2866. *\ * | *\ *)
  2867. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2868. *)
  2869. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2870. esac
  2871. fi
  2872. # Use eval to expand $SHELL
  2873. if eval "$MISSING --run true"; then
  2874. am_missing_run="$MISSING --run "
  2875. else
  2876. am_missing_run=
  2877. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  2878. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2879. fi
  2880. if test x"${install_sh}" != xset; then
  2881. case $am_aux_dir in
  2882. *\ * | *\ *)
  2883. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2884. *)
  2885. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2886. esac
  2887. fi
  2888. # Installed binaries are usually stripped using `strip' when the user
  2889. # run `make install-strip'. However `strip' might not be the right
  2890. # tool to use in cross-compilation environments, therefore Automake
  2891. # will honor the `STRIP' environment variable to overrule this program.
  2892. if test "$cross_compiling" != no; then
  2893. if test -n "$ac_tool_prefix"; then
  2894. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2895. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2896. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2897. $as_echo_n "checking for $ac_word... " >&6; }
  2898. if test "${ac_cv_prog_STRIP+set}" = set; then :
  2899. $as_echo_n "(cached) " >&6
  2900. else
  2901. if test -n "$STRIP"; then
  2902. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2903. else
  2904. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2905. for as_dir in $PATH
  2906. do
  2907. IFS=$as_save_IFS
  2908. test -z "$as_dir" && as_dir=.
  2909. for ac_exec_ext in '' $ac_executable_extensions; do
  2910. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2911. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2912. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2913. break 2
  2914. fi
  2915. done
  2916. done
  2917. IFS=$as_save_IFS
  2918. fi
  2919. fi
  2920. STRIP=$ac_cv_prog_STRIP
  2921. if test -n "$STRIP"; then
  2922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2923. $as_echo "$STRIP" >&6; }
  2924. else
  2925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2926. $as_echo "no" >&6; }
  2927. fi
  2928. fi
  2929. if test -z "$ac_cv_prog_STRIP"; then
  2930. ac_ct_STRIP=$STRIP
  2931. # Extract the first word of "strip", so it can be a program name with args.
  2932. set dummy strip; ac_word=$2
  2933. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2934. $as_echo_n "checking for $ac_word... " >&6; }
  2935. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  2936. $as_echo_n "(cached) " >&6
  2937. else
  2938. if test -n "$ac_ct_STRIP"; then
  2939. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2940. else
  2941. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2942. for as_dir in $PATH
  2943. do
  2944. IFS=$as_save_IFS
  2945. test -z "$as_dir" && as_dir=.
  2946. for ac_exec_ext in '' $ac_executable_extensions; do
  2947. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2948. ac_cv_prog_ac_ct_STRIP="strip"
  2949. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2950. break 2
  2951. fi
  2952. done
  2953. done
  2954. IFS=$as_save_IFS
  2955. fi
  2956. fi
  2957. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2958. if test -n "$ac_ct_STRIP"; then
  2959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2960. $as_echo "$ac_ct_STRIP" >&6; }
  2961. else
  2962. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2963. $as_echo "no" >&6; }
  2964. fi
  2965. if test "x$ac_ct_STRIP" = x; then
  2966. STRIP=":"
  2967. else
  2968. case $cross_compiling:$ac_tool_warned in
  2969. yes:)
  2970. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2971. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2972. ac_tool_warned=yes ;;
  2973. esac
  2974. STRIP=$ac_ct_STRIP
  2975. fi
  2976. else
  2977. STRIP="$ac_cv_prog_STRIP"
  2978. fi
  2979. fi
  2980. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2981. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2982. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2983. if test -z "$MKDIR_P"; then
  2984. if test "${ac_cv_path_mkdir+set}" = set; then :
  2985. $as_echo_n "(cached) " >&6
  2986. else
  2987. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2988. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2989. do
  2990. IFS=$as_save_IFS
  2991. test -z "$as_dir" && as_dir=.
  2992. for ac_prog in mkdir gmkdir; do
  2993. for ac_exec_ext in '' $ac_executable_extensions; do
  2994. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2995. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2996. 'mkdir (GNU coreutils) '* | \
  2997. 'mkdir (coreutils) '* | \
  2998. 'mkdir (fileutils) '4.1*)
  2999. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  3000. break 3;;
  3001. esac
  3002. done
  3003. done
  3004. done
  3005. IFS=$as_save_IFS
  3006. fi
  3007. test -d ./--version && rmdir ./--version
  3008. if test "${ac_cv_path_mkdir+set}" = set; then
  3009. MKDIR_P="$ac_cv_path_mkdir -p"
  3010. else
  3011. # As a last resort, use the slow shell script. Don't cache a
  3012. # value for MKDIR_P within a source directory, because that will
  3013. # break other packages using the cache if that directory is
  3014. # removed, or if the value is a relative name.
  3015. MKDIR_P="$ac_install_sh -d"
  3016. fi
  3017. fi
  3018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  3019. $as_echo "$MKDIR_P" >&6; }
  3020. mkdir_p="$MKDIR_P"
  3021. case $mkdir_p in
  3022. [\\/$]* | ?:[\\/]*) ;;
  3023. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  3024. esac
  3025. for ac_prog in gawk mawk nawk awk
  3026. do
  3027. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3028. set dummy $ac_prog; ac_word=$2
  3029. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3030. $as_echo_n "checking for $ac_word... " >&6; }
  3031. if test "${ac_cv_prog_AWK+set}" = set; then :
  3032. $as_echo_n "(cached) " >&6
  3033. else
  3034. if test -n "$AWK"; then
  3035. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3036. else
  3037. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3038. for as_dir in $PATH
  3039. do
  3040. IFS=$as_save_IFS
  3041. test -z "$as_dir" && as_dir=.
  3042. for ac_exec_ext in '' $ac_executable_extensions; do
  3043. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3044. ac_cv_prog_AWK="$ac_prog"
  3045. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3046. break 2
  3047. fi
  3048. done
  3049. done
  3050. IFS=$as_save_IFS
  3051. fi
  3052. fi
  3053. AWK=$ac_cv_prog_AWK
  3054. if test -n "$AWK"; then
  3055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  3056. $as_echo "$AWK" >&6; }
  3057. else
  3058. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3059. $as_echo "no" >&6; }
  3060. fi
  3061. test -n "$AWK" && break
  3062. done
  3063. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3064. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3065. set x ${MAKE-make}
  3066. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3067. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  3068. $as_echo_n "(cached) " >&6
  3069. else
  3070. cat >conftest.make <<\_ACEOF
  3071. SHELL = /bin/sh
  3072. all:
  3073. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3074. _ACEOF
  3075. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  3076. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3077. *@@@%%%=?*=@@@%%%*)
  3078. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3079. *)
  3080. eval ac_cv_prog_make_${ac_make}_set=no;;
  3081. esac
  3082. rm -f conftest.make
  3083. fi
  3084. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3086. $as_echo "yes" >&6; }
  3087. SET_MAKE=
  3088. else
  3089. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3090. $as_echo "no" >&6; }
  3091. SET_MAKE="MAKE=${MAKE-make}"
  3092. fi
  3093. rm -rf .tst 2>/dev/null
  3094. mkdir .tst 2>/dev/null
  3095. if test -d .tst; then
  3096. am__leading_dot=.
  3097. else
  3098. am__leading_dot=_
  3099. fi
  3100. rmdir .tst 2>/dev/null
  3101. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  3102. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  3103. # is not polluted with repeated "-I."
  3104. am__isrc=' -I$(srcdir)'
  3105. # test to see if srcdir already configured
  3106. if test -f $srcdir/config.status; then
  3107. as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  3108. fi
  3109. fi
  3110. # test whether we have cygpath
  3111. if test -z "$CYGPATH_W"; then
  3112. if (cygpath --version) >/dev/null 2>/dev/null; then
  3113. CYGPATH_W='cygpath -w'
  3114. else
  3115. CYGPATH_W=echo
  3116. fi
  3117. fi
  3118. # Define the identity of the package.
  3119. PACKAGE='aria2'
  3120. VERSION='1.9.1'
  3121. cat >>confdefs.h <<_ACEOF
  3122. #define PACKAGE "$PACKAGE"
  3123. _ACEOF
  3124. cat >>confdefs.h <<_ACEOF
  3125. #define VERSION "$VERSION"
  3126. _ACEOF
  3127. # Some tools Automake needs.
  3128. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  3129. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  3130. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  3131. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  3132. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  3133. # We need awk for the "check" target. The system "awk" is bad on
  3134. # some platforms.
  3135. # Always define AMTAR for backward compatibility.
  3136. AMTAR=${AMTAR-"${am_missing_run}tar"}
  3137. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  3138. # Check whether --with-cppunit-prefix was given.
  3139. if test "${with_cppunit_prefix+set}" = set; then :
  3140. withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
  3141. else
  3142. cppunit_config_prefix=""
  3143. fi
  3144. # Check whether --with-cppunit-exec-prefix was given.
  3145. if test "${with_cppunit_exec_prefix+set}" = set; then :
  3146. withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
  3147. else
  3148. cppunit_config_exec_prefix=""
  3149. fi
  3150. if test x$cppunit_config_exec_prefix != x ; then
  3151. cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
  3152. if test x${CPPUNIT_CONFIG+set} != xset ; then
  3153. CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
  3154. fi
  3155. fi
  3156. if test x$cppunit_config_prefix != x ; then
  3157. cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
  3158. if test x${CPPUNIT_CONFIG+set} != xset ; then
  3159. CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
  3160. fi
  3161. fi
  3162. # Extract the first word of "cppunit-config", so it can be a program name with args.
  3163. set dummy cppunit-config; ac_word=$2
  3164. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3165. $as_echo_n "checking for $ac_word... " >&6; }
  3166. if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then :
  3167. $as_echo_n "(cached) " >&6
  3168. else
  3169. case $CPPUNIT_CONFIG in
  3170. [\\/]* | ?:[\\/]*)
  3171. ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
  3172. ;;
  3173. *)
  3174. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3175. for as_dir in $PATH
  3176. do
  3177. IFS=$as_save_IFS
  3178. test -z "$as_dir" && as_dir=.
  3179. for ac_exec_ext in '' $ac_executable_extensions; do
  3180. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3181. ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  3182. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3183. break 2
  3184. fi
  3185. done
  3186. done
  3187. IFS=$as_save_IFS
  3188. test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
  3189. ;;
  3190. esac
  3191. fi
  3192. CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
  3193. if test -n "$CPPUNIT_CONFIG"; then
  3194. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPUNIT_CONFIG" >&5
  3195. $as_echo "$CPPUNIT_CONFIG" >&6; }
  3196. else
  3197. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3198. $as_echo "no" >&6; }
  3199. fi
  3200. cppunit_version_min=1.10.2
  3201. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cppunit - version >= $cppunit_version_min" >&5
  3202. $as_echo_n "checking for Cppunit - version >= $cppunit_version_min... " >&6; }
  3203. no_cppunit=""
  3204. if test "$CPPUNIT_CONFIG" = "no" ; then
  3205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3206. $as_echo "no" >&6; }
  3207. no_cppunit=yes
  3208. else
  3209. CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
  3210. CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
  3211. cppunit_version=`$CPPUNIT_CONFIG --version`
  3212. cppunit_major_version=`echo $cppunit_version | \
  3213. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  3214. cppunit_minor_version=`echo $cppunit_version | \
  3215. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  3216. cppunit_micro_version=`echo $cppunit_version | \
  3217. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  3218. cppunit_major_min=`echo $cppunit_version_min | \
  3219. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  3220. if test "x${cppunit_major_min}" = "x" ; then
  3221. cppunit_major_min=0
  3222. fi
  3223. cppunit_minor_min=`echo $cppunit_version_min | \
  3224. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  3225. if test "x${cppunit_minor_min}" = "x" ; then
  3226. cppunit_minor_min=0
  3227. fi
  3228. cppunit_micro_min=`echo $cppunit_version_min | \
  3229. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  3230. if test "x${cppunit_micro_min}" = "x" ; then
  3231. cppunit_micro_min=0
  3232. fi
  3233. cppunit_version_proper=`expr \
  3234. $cppunit_major_version \> $cppunit_major_min \| \
  3235. $cppunit_major_version \= $cppunit_major_min \& \
  3236. $cppunit_minor_version \> $cppunit_minor_min \| \
  3237. $cppunit_major_version \= $cppunit_major_min \& \
  3238. $cppunit_minor_version \= $cppunit_minor_min \& \
  3239. $cppunit_micro_version \>= $cppunit_micro_min `
  3240. if test "$cppunit_version_proper" = "1" ; then
  3241. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
  3242. $as_echo "$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
  3243. else
  3244. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3245. $as_echo "no" >&6; }
  3246. no_cppunit=yes
  3247. fi
  3248. fi
  3249. if test "x$no_cppunit" = x ; then
  3250. :
  3251. else
  3252. CPPUNIT_CFLAGS=""
  3253. CPPUNIT_LIBS=""
  3254. :
  3255. fi
  3256. ac_config_headers="$ac_config_headers config.h"
  3257. case "$target" in
  3258. *mingw*|*cygwin*)
  3259. WINSOCK_LIBS="-lws2_32"
  3260. LIBS="-lws2_32 -lcrypto -lwsock32 -lgdi32 -lwinmm $LIBS"
  3261. ;;
  3262. esac
  3263. cat >>confdefs.h <<_ACEOF
  3264. #define TARGET "$target"
  3265. _ACEOF
  3266. # Checks for arguments.
  3267. # Check whether --with-gnutls was given.
  3268. if test "${with_gnutls+set}" = set; then :
  3269. withval=$with_gnutls; with_gnutls_requested=$withval with_gnutls=$withval
  3270. else
  3271. with_gnutls=yes
  3272. fi
  3273. # Check whether --with-openssl was given.
  3274. if test "${with_openssl+set}" = set; then :
  3275. withval=$with_openssl; with_openssl_requested=$withval with_openssl=$withval
  3276. else
  3277. with_openssl=yes
  3278. fi
  3279. # Check whether --with-sqlite3 was given.
  3280. if test "${with_sqlite3+set}" = set; then :
  3281. withval=$with_sqlite3; with_sqlite3_requested=$withval with_sqlite3=$withval
  3282. else
  3283. with_sqlite3=yes
  3284. fi
  3285. # Check whether --with-libxml2 was given.
  3286. if test "${with_libxml2+set}" = set; then :
  3287. withval=$with_libxml2; with_libxml2_requested=$withval with_libxml2=$withval
  3288. else
  3289. with_libxml2=yes
  3290. fi
  3291. # Check whether --with-libexpat was given.
  3292. if test "${with_libexpat+set}" = set; then :
  3293. withval=$with_libexpat; with_libexpat_requested=$withval with_libexpat=$withval
  3294. else
  3295. with_libexpat=yes
  3296. fi
  3297. # Check whether --with-libcares was given.
  3298. if test "${with_libcares+set}" = set; then :
  3299. withval=$with_libcares; with_libcares_requested=$withval with_libcares=$withval
  3300. else
  3301. with_libcares=yes
  3302. fi
  3303. # Check whether --with-libz was given.
  3304. if test "${with_libz+set}" = set; then :
  3305. withval=$with_libz; with_libz_requested=$withval with_libz=$withval
  3306. else
  3307. with_libz=yes
  3308. fi
  3309. # Check whether --enable-bittorrent was given.
  3310. if test "${enable_bittorrent+set}" = set; then :
  3311. enableval=$enable_bittorrent; enable_bittorrent_requested=$enableval enable_bittorrent=$enableval
  3312. else
  3313. enable_bittorrent=yes
  3314. fi
  3315. # Check whether --enable-metalink was given.
  3316. if test "${enable_metalink+set}" = set; then :
  3317. enableval=$enable_metalink; enable_metalink_requested=$enableval enable_metalink=$enableval
  3318. else
  3319. enable_metalink=yes
  3320. fi
  3321. # Check whether --enable-epoll was given.
  3322. if test "${enable_epoll+set}" = set; then :
  3323. enableval=$enable_epoll; enable_epoll_requested=$enableval enable_epoll=$enableval
  3324. else
  3325. enable_epoll=yes
  3326. fi
  3327. # Check whether --with-ca-bundle was given.
  3328. if test "${with_ca_bundle+set}" = set; then :
  3329. withval=$with_ca_bundle; ca_bundle=$withval
  3330. else
  3331. ca_bundle=""
  3332. fi
  3333. # Checks for programs.
  3334. ac_ext=cpp
  3335. ac_cpp='$CXXCPP $CPPFLAGS'
  3336. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3337. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3338. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3339. if test -z "$CXX"; then
  3340. if test -n "$CCC"; then
  3341. CXX=$CCC
  3342. else
  3343. if test -n "$ac_tool_prefix"; then
  3344. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3345. do
  3346. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3347. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3348. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3349. $as_echo_n "checking for $ac_word... " >&6; }
  3350. if test "${ac_cv_prog_CXX+set}" = set; then :
  3351. $as_echo_n "(cached) " >&6
  3352. else
  3353. if test -n "$CXX"; then
  3354. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  3355. else
  3356. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3357. for as_dir in $PATH
  3358. do
  3359. IFS=$as_save_IFS
  3360. test -z "$as_dir" && as_dir=.
  3361. for ac_exec_ext in '' $ac_executable_extensions; do
  3362. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3363. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  3364. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3365. break 2
  3366. fi
  3367. done
  3368. done
  3369. IFS=$as_save_IFS
  3370. fi
  3371. fi
  3372. CXX=$ac_cv_prog_CXX
  3373. if test -n "$CXX"; then
  3374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  3375. $as_echo "$CXX" >&6; }
  3376. else
  3377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3378. $as_echo "no" >&6; }
  3379. fi
  3380. test -n "$CXX" && break
  3381. done
  3382. fi
  3383. if test -z "$CXX"; then
  3384. ac_ct_CXX=$CXX
  3385. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3386. do
  3387. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3388. set dummy $ac_prog; ac_word=$2
  3389. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3390. $as_echo_n "checking for $ac_word... " >&6; }
  3391. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  3392. $as_echo_n "(cached) " >&6
  3393. else
  3394. if test -n "$ac_ct_CXX"; then
  3395. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  3396. else
  3397. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3398. for as_dir in $PATH
  3399. do
  3400. IFS=$as_save_IFS
  3401. test -z "$as_dir" && as_dir=.
  3402. for ac_exec_ext in '' $ac_executable_extensions; do
  3403. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3404. ac_cv_prog_ac_ct_CXX="$ac_prog"
  3405. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3406. break 2
  3407. fi
  3408. done
  3409. done
  3410. IFS=$as_save_IFS
  3411. fi
  3412. fi
  3413. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  3414. if test -n "$ac_ct_CXX"; then
  3415. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  3416. $as_echo "$ac_ct_CXX" >&6; }
  3417. else
  3418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3419. $as_echo "no" >&6; }
  3420. fi
  3421. test -n "$ac_ct_CXX" && break
  3422. done
  3423. if test "x$ac_ct_CXX" = x; then
  3424. CXX="g++"
  3425. else
  3426. case $cross_compiling:$ac_tool_warned in
  3427. yes:)
  3428. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3429. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3430. ac_tool_warned=yes ;;
  3431. esac
  3432. CXX=$ac_ct_CXX
  3433. fi
  3434. fi
  3435. fi
  3436. fi
  3437. # Provide some information about the compiler.
  3438. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  3439. set X $ac_compile
  3440. ac_compiler=$2
  3441. for ac_option in --version -v -V -qversion; do
  3442. { { ac_try="$ac_compiler $ac_option >&5"
  3443. case "(($ac_try" in
  3444. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3445. *) ac_try_echo=$ac_try;;
  3446. esac
  3447. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3448. $as_echo "$ac_try_echo"; } >&5
  3449. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3450. ac_status=$?
  3451. if test -s conftest.err; then
  3452. sed '10a\
  3453. ... rest of stderr output deleted ...
  3454. 10q' conftest.err >conftest.er1
  3455. cat conftest.er1 >&5
  3456. fi
  3457. rm -f conftest.er1 conftest.err
  3458. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3459. test $ac_status = 0; }
  3460. done
  3461. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3462. /* end confdefs.h. */
  3463. int
  3464. main ()
  3465. {
  3466. ;
  3467. return 0;
  3468. }
  3469. _ACEOF
  3470. ac_clean_files_save=$ac_clean_files
  3471. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3472. # Try to create an executable without -o first, disregard a.out.
  3473. # It will help us diagnose broken compilers, and finding out an intuition
  3474. # of exeext.
  3475. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
  3476. $as_echo_n "checking whether the C++ compiler works... " >&6; }
  3477. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3478. # The possible output files:
  3479. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3480. ac_rmfiles=
  3481. for ac_file in $ac_files
  3482. do
  3483. case $ac_file in
  3484. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3485. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3486. esac
  3487. done
  3488. rm -f $ac_rmfiles
  3489. if { { ac_try="$ac_link_default"
  3490. case "(($ac_try" in
  3491. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3492. *) ac_try_echo=$ac_try;;
  3493. esac
  3494. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3495. $as_echo "$ac_try_echo"; } >&5
  3496. (eval "$ac_link_default") 2>&5
  3497. ac_status=$?
  3498. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3499. test $ac_status = 0; }; then :
  3500. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3501. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3502. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3503. # so that the user can short-circuit this test for compilers unknown to
  3504. # Autoconf.
  3505. for ac_file in $ac_files ''
  3506. do
  3507. test -f "$ac_file" || continue
  3508. case $ac_file in
  3509. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3510. ;;
  3511. [ab].out )
  3512. # We found the default executable, but exeext='' is most
  3513. # certainly right.
  3514. break;;
  3515. *.* )
  3516. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3517. then :; else
  3518. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3519. fi
  3520. # We set ac_cv_exeext here because the later test for it is not
  3521. # safe: cross compilers may not add the suffix if given an `-o'
  3522. # argument, so we may need to know it at that point already.
  3523. # Even if this section looks crufty: it has the advantage of
  3524. # actually working.
  3525. break;;
  3526. * )
  3527. break;;
  3528. esac
  3529. done
  3530. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3531. else
  3532. ac_file=''
  3533. fi
  3534. if test -z "$ac_file"; then :
  3535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3536. $as_echo "no" >&6; }
  3537. $as_echo "$as_me: failed program was:" >&5
  3538. sed 's/^/| /' conftest.$ac_ext >&5
  3539. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3540. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3541. { as_fn_set_status 77
  3542. as_fn_error "C++ compiler cannot create executables
  3543. See \`config.log' for more details." "$LINENO" 5; }; }
  3544. else
  3545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3546. $as_echo "yes" >&6; }
  3547. fi
  3548. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
  3549. $as_echo_n "checking for C++ compiler default output file name... " >&6; }
  3550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3551. $as_echo "$ac_file" >&6; }
  3552. ac_exeext=$ac_cv_exeext
  3553. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3554. ac_clean_files=$ac_clean_files_save
  3555. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3556. $as_echo_n "checking for suffix of executables... " >&6; }
  3557. if { { ac_try="$ac_link"
  3558. case "(($ac_try" in
  3559. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3560. *) ac_try_echo=$ac_try;;
  3561. esac
  3562. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3563. $as_echo "$ac_try_echo"; } >&5
  3564. (eval "$ac_link") 2>&5
  3565. ac_status=$?
  3566. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3567. test $ac_status = 0; }; then :
  3568. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3569. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3570. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3571. # `rm'.
  3572. for ac_file in conftest.exe conftest conftest.*; do
  3573. test -f "$ac_file" || continue
  3574. case $ac_file in
  3575. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3576. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3577. break;;
  3578. * ) break;;
  3579. esac
  3580. done
  3581. else
  3582. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3583. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3584. as_fn_error "cannot compute suffix of executables: cannot compile and link
  3585. See \`config.log' for more details." "$LINENO" 5; }
  3586. fi
  3587. rm -f conftest conftest$ac_cv_exeext
  3588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3589. $as_echo "$ac_cv_exeext" >&6; }
  3590. rm -f conftest.$ac_ext
  3591. EXEEXT=$ac_cv_exeext
  3592. ac_exeext=$EXEEXT
  3593. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3594. /* end confdefs.h. */
  3595. #include <stdio.h>
  3596. int
  3597. main ()
  3598. {
  3599. FILE *f = fopen ("conftest.out", "w");
  3600. return ferror (f) || fclose (f) != 0;
  3601. ;
  3602. return 0;
  3603. }
  3604. _ACEOF
  3605. ac_clean_files="$ac_clean_files conftest.out"
  3606. # Check that the compiler produces executables we can run. If not, either
  3607. # the compiler is broken, or we cross compile.
  3608. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3609. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3610. if test "$cross_compiling" != yes; then
  3611. { { ac_try="$ac_link"
  3612. case "(($ac_try" in
  3613. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3614. *) ac_try_echo=$ac_try;;
  3615. esac
  3616. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3617. $as_echo "$ac_try_echo"; } >&5
  3618. (eval "$ac_link") 2>&5
  3619. ac_status=$?
  3620. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3621. test $ac_status = 0; }
  3622. if { ac_try='./conftest$ac_cv_exeext'
  3623. { { case "(($ac_try" in
  3624. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3625. *) ac_try_echo=$ac_try;;
  3626. esac
  3627. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3628. $as_echo "$ac_try_echo"; } >&5
  3629. (eval "$ac_try") 2>&5
  3630. ac_status=$?
  3631. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3632. test $ac_status = 0; }; }; then
  3633. cross_compiling=no
  3634. else
  3635. if test "$cross_compiling" = maybe; then
  3636. cross_compiling=yes
  3637. else
  3638. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3639. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3640. as_fn_error "cannot run C++ compiled programs.
  3641. If you meant to cross compile, use \`--host'.
  3642. See \`config.log' for more details." "$LINENO" 5; }
  3643. fi
  3644. fi
  3645. fi
  3646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3647. $as_echo "$cross_compiling" >&6; }
  3648. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3649. ac_clean_files=$ac_clean_files_save
  3650. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3651. $as_echo_n "checking for suffix of object files... " >&6; }
  3652. if test "${ac_cv_objext+set}" = set; then :
  3653. $as_echo_n "(cached) " >&6
  3654. else
  3655. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3656. /* end confdefs.h. */
  3657. int
  3658. main ()
  3659. {
  3660. ;
  3661. return 0;
  3662. }
  3663. _ACEOF
  3664. rm -f conftest.o conftest.obj
  3665. if { { ac_try="$ac_compile"
  3666. case "(($ac_try" in
  3667. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3668. *) ac_try_echo=$ac_try;;
  3669. esac
  3670. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3671. $as_echo "$ac_try_echo"; } >&5
  3672. (eval "$ac_compile") 2>&5
  3673. ac_status=$?
  3674. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3675. test $ac_status = 0; }; then :
  3676. for ac_file in conftest.o conftest.obj conftest.*; do
  3677. test -f "$ac_file" || continue;
  3678. case $ac_file in
  3679. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3680. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3681. break;;
  3682. esac
  3683. done
  3684. else
  3685. $as_echo "$as_me: failed program was:" >&5
  3686. sed 's/^/| /' conftest.$ac_ext >&5
  3687. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3688. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3689. as_fn_error "cannot compute suffix of object files: cannot compile
  3690. See \`config.log' for more details." "$LINENO" 5; }
  3691. fi
  3692. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3693. fi
  3694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3695. $as_echo "$ac_cv_objext" >&6; }
  3696. OBJEXT=$ac_cv_objext
  3697. ac_objext=$OBJEXT
  3698. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  3699. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  3700. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  3701. $as_echo_n "(cached) " >&6
  3702. else
  3703. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3704. /* end confdefs.h. */
  3705. int
  3706. main ()
  3707. {
  3708. #ifndef __GNUC__
  3709. choke me
  3710. #endif
  3711. ;
  3712. return 0;
  3713. }
  3714. _ACEOF
  3715. if ac_fn_cxx_try_compile "$LINENO"; then :
  3716. ac_compiler_gnu=yes
  3717. else
  3718. ac_compiler_gnu=no
  3719. fi
  3720. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3721. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3722. fi
  3723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  3724. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  3725. if test $ac_compiler_gnu = yes; then
  3726. GXX=yes
  3727. else
  3728. GXX=
  3729. fi
  3730. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3731. ac_save_CXXFLAGS=$CXXFLAGS
  3732. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  3733. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  3734. if test "${ac_cv_prog_cxx_g+set}" = set; then :
  3735. $as_echo_n "(cached) " >&6
  3736. else
  3737. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  3738. ac_cxx_werror_flag=yes
  3739. ac_cv_prog_cxx_g=no
  3740. CXXFLAGS="-g"
  3741. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3742. /* end confdefs.h. */
  3743. int
  3744. main ()
  3745. {
  3746. ;
  3747. return 0;
  3748. }
  3749. _ACEOF
  3750. if ac_fn_cxx_try_compile "$LINENO"; then :
  3751. ac_cv_prog_cxx_g=yes
  3752. else
  3753. CXXFLAGS=""
  3754. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3755. /* end confdefs.h. */
  3756. int
  3757. main ()
  3758. {
  3759. ;
  3760. return 0;
  3761. }
  3762. _ACEOF
  3763. if ac_fn_cxx_try_compile "$LINENO"; then :
  3764. else
  3765. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3766. CXXFLAGS="-g"
  3767. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3768. /* end confdefs.h. */
  3769. int
  3770. main ()
  3771. {
  3772. ;
  3773. return 0;
  3774. }
  3775. _ACEOF
  3776. if ac_fn_cxx_try_compile "$LINENO"; then :
  3777. ac_cv_prog_cxx_g=yes
  3778. fi
  3779. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3780. fi
  3781. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3782. fi
  3783. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3784. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3785. fi
  3786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  3787. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  3788. if test "$ac_test_CXXFLAGS" = set; then
  3789. CXXFLAGS=$ac_save_CXXFLAGS
  3790. elif test $ac_cv_prog_cxx_g = yes; then
  3791. if test "$GXX" = yes; then
  3792. CXXFLAGS="-g -O2"
  3793. else
  3794. CXXFLAGS="-g"
  3795. fi
  3796. else
  3797. if test "$GXX" = yes; then
  3798. CXXFLAGS="-O2"
  3799. else
  3800. CXXFLAGS=
  3801. fi
  3802. fi
  3803. ac_ext=c
  3804. ac_cpp='$CPP $CPPFLAGS'
  3805. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3806. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3807. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3808. DEPDIR="${am__leading_dot}deps"
  3809. ac_config_commands="$ac_config_commands depfiles"
  3810. am_make=${MAKE-make}
  3811. cat > confinc << 'END'
  3812. am__doit:
  3813. @echo this is the am__doit target
  3814. .PHONY: am__doit
  3815. END
  3816. # If we don't find an include directive, just comment out the code.
  3817. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3818. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3819. am__include="#"
  3820. am__quote=
  3821. _am_result=none
  3822. # First try GNU make style include.
  3823. echo "include confinc" > confmf
  3824. # Ignore all kinds of additional output from `make'.
  3825. case `$am_make -s -f confmf 2> /dev/null` in #(
  3826. *the\ am__doit\ target*)
  3827. am__include=include
  3828. am__quote=
  3829. _am_result=GNU
  3830. ;;
  3831. esac
  3832. # Now try BSD make style include.
  3833. if test "$am__include" = "#"; then
  3834. echo '.include "confinc"' > confmf
  3835. case `$am_make -s -f confmf 2> /dev/null` in #(
  3836. *the\ am__doit\ target*)
  3837. am__include=.include
  3838. am__quote="\""
  3839. _am_result=BSD
  3840. ;;
  3841. esac
  3842. fi
  3843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3844. $as_echo "$_am_result" >&6; }
  3845. rm -f confinc confmf
  3846. # Check whether --enable-dependency-tracking was given.
  3847. if test "${enable_dependency_tracking+set}" = set; then :
  3848. enableval=$enable_dependency_tracking;
  3849. fi
  3850. if test "x$enable_dependency_tracking" != xno; then
  3851. am_depcomp="$ac_aux_dir/depcomp"
  3852. AMDEPBACKSLASH='\'
  3853. fi
  3854. if test "x$enable_dependency_tracking" != xno; then
  3855. AMDEP_TRUE=
  3856. AMDEP_FALSE='#'
  3857. else
  3858. AMDEP_TRUE='#'
  3859. AMDEP_FALSE=
  3860. fi
  3861. depcc="$CXX" am_compiler_list=
  3862. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3863. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3864. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
  3865. $as_echo_n "(cached) " >&6
  3866. else
  3867. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3868. # We make a subdir and do the tests there. Otherwise we can end up
  3869. # making bogus files that we don't know about and never remove. For
  3870. # instance it was reported that on HP-UX the gcc test will end up
  3871. # making a dummy file named `D' -- because `-MD' means `put the output
  3872. # in D'.
  3873. mkdir conftest.dir
  3874. # Copy depcomp to subdir because otherwise we won't find it if we're
  3875. # using a relative directory.
  3876. cp "$am_depcomp" conftest.dir
  3877. cd conftest.dir
  3878. # We will build objects and dependencies in a subdirectory because
  3879. # it helps to detect inapplicable dependency modes. For instance
  3880. # both Tru64's cc and ICC support -MD to output dependencies as a
  3881. # side effect of compilation, but ICC will put the dependencies in
  3882. # the current directory while Tru64 will put them in the object
  3883. # directory.
  3884. mkdir sub
  3885. am_cv_CXX_dependencies_compiler_type=none
  3886. if test "$am_compiler_list" = ""; then
  3887. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3888. fi
  3889. am__universal=false
  3890. case " $depcc " in #(
  3891. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3892. esac
  3893. for depmode in $am_compiler_list; do
  3894. # Setup a source with many dependencies, because some compilers
  3895. # like to wrap large dependency lists on column 80 (with \), and
  3896. # we should not choose a depcomp mode which is confused by this.
  3897. #
  3898. # We need to recreate these files for each test, as the compiler may
  3899. # overwrite some of them when testing with obscure command lines.
  3900. # This happens at least with the AIX C compiler.
  3901. : > sub/conftest.c
  3902. for i in 1 2 3 4 5 6; do
  3903. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3904. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3905. # Solaris 8's {/usr,}/bin/sh.
  3906. touch sub/conftst$i.h
  3907. done
  3908. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3909. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3910. # mode. It turns out that the SunPro C++ compiler does not properly
  3911. # handle `-M -o', and we need to detect this. Also, some Intel
  3912. # versions had trouble with output in subdirs
  3913. am__obj=sub/conftest.${OBJEXT-o}
  3914. am__minus_obj="-o $am__obj"
  3915. case $depmode in
  3916. gcc)
  3917. # This depmode causes a compiler race in universal mode.
  3918. test "$am__universal" = false || continue
  3919. ;;
  3920. nosideeffect)
  3921. # after this tag, mechanisms are not by side-effect, so they'll
  3922. # only be used when explicitly requested
  3923. if test "x$enable_dependency_tracking" = xyes; then
  3924. continue
  3925. else
  3926. break
  3927. fi
  3928. ;;
  3929. msvisualcpp | msvcmsys)
  3930. # This compiler won't grok `-c -o', but also, the minuso test has
  3931. # not run yet. These depmodes are late enough in the game, and
  3932. # so weak that their functioning should not be impacted.
  3933. am__obj=conftest.${OBJEXT-o}
  3934. am__minus_obj=
  3935. ;;
  3936. none) break ;;
  3937. esac
  3938. if depmode=$depmode \
  3939. source=sub/conftest.c object=$am__obj \
  3940. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3941. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3942. >/dev/null 2>conftest.err &&
  3943. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3944. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3945. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3946. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3947. # icc doesn't choke on unknown options, it will just issue warnings
  3948. # or remarks (even with -Werror). So we grep stderr for any message
  3949. # that says an option was ignored or not supported.
  3950. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3951. # icc: Command line warning: ignoring option '-M'; no argument required
  3952. # The diagnosis changed in icc 8.0:
  3953. # icc: Command line remark: option '-MP' not supported
  3954. if (grep 'ignoring option' conftest.err ||
  3955. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3956. am_cv_CXX_dependencies_compiler_type=$depmode
  3957. break
  3958. fi
  3959. fi
  3960. done
  3961. cd ..
  3962. rm -rf conftest.dir
  3963. else
  3964. am_cv_CXX_dependencies_compiler_type=none
  3965. fi
  3966. fi
  3967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3968. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  3969. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3970. if
  3971. test "x$enable_dependency_tracking" != xno \
  3972. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3973. am__fastdepCXX_TRUE=
  3974. am__fastdepCXX_FALSE='#'
  3975. else
  3976. am__fastdepCXX_TRUE='#'
  3977. am__fastdepCXX_FALSE=
  3978. fi
  3979. ac_ext=c
  3980. ac_cpp='$CPP $CPPFLAGS'
  3981. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3982. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3983. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3984. if test -n "$ac_tool_prefix"; then
  3985. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3986. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3987. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3988. $as_echo_n "checking for $ac_word... " >&6; }
  3989. if test "${ac_cv_prog_CC+set}" = set; then :
  3990. $as_echo_n "(cached) " >&6
  3991. else
  3992. if test -n "$CC"; then
  3993. ac_cv_prog_CC="$CC" # Let the user override the test.
  3994. else
  3995. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3996. for as_dir in $PATH
  3997. do
  3998. IFS=$as_save_IFS
  3999. test -z "$as_dir" && as_dir=.
  4000. for ac_exec_ext in '' $ac_executable_extensions; do
  4001. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4002. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  4003. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4004. break 2
  4005. fi
  4006. done
  4007. done
  4008. IFS=$as_save_IFS
  4009. fi
  4010. fi
  4011. CC=$ac_cv_prog_CC
  4012. if test -n "$CC"; then
  4013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4014. $as_echo "$CC" >&6; }
  4015. else
  4016. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4017. $as_echo "no" >&6; }
  4018. fi
  4019. fi
  4020. if test -z "$ac_cv_prog_CC"; then
  4021. ac_ct_CC=$CC
  4022. # Extract the first word of "gcc", so it can be a program name with args.
  4023. set dummy gcc; ac_word=$2
  4024. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4025. $as_echo_n "checking for $ac_word... " >&6; }
  4026. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  4027. $as_echo_n "(cached) " >&6
  4028. else
  4029. if test -n "$ac_ct_CC"; then
  4030. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4031. else
  4032. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4033. for as_dir in $PATH
  4034. do
  4035. IFS=$as_save_IFS
  4036. test -z "$as_dir" && as_dir=.
  4037. for ac_exec_ext in '' $ac_executable_extensions; do
  4038. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4039. ac_cv_prog_ac_ct_CC="gcc"
  4040. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4041. break 2
  4042. fi
  4043. done
  4044. done
  4045. IFS=$as_save_IFS
  4046. fi
  4047. fi
  4048. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4049. if test -n "$ac_ct_CC"; then
  4050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4051. $as_echo "$ac_ct_CC" >&6; }
  4052. else
  4053. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4054. $as_echo "no" >&6; }
  4055. fi
  4056. if test "x$ac_ct_CC" = x; then
  4057. CC=""
  4058. else
  4059. case $cross_compiling:$ac_tool_warned in
  4060. yes:)
  4061. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4062. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4063. ac_tool_warned=yes ;;
  4064. esac
  4065. CC=$ac_ct_CC
  4066. fi
  4067. else
  4068. CC="$ac_cv_prog_CC"
  4069. fi
  4070. if test -z "$CC"; then
  4071. if test -n "$ac_tool_prefix"; then
  4072. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  4073. set dummy ${ac_tool_prefix}cc; ac_word=$2
  4074. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4075. $as_echo_n "checking for $ac_word... " >&6; }
  4076. if test "${ac_cv_prog_CC+set}" = set; then :
  4077. $as_echo_n "(cached) " >&6
  4078. else
  4079. if test -n "$CC"; then
  4080. ac_cv_prog_CC="$CC" # Let the user override the test.
  4081. else
  4082. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4083. for as_dir in $PATH
  4084. do
  4085. IFS=$as_save_IFS
  4086. test -z "$as_dir" && as_dir=.
  4087. for ac_exec_ext in '' $ac_executable_extensions; do
  4088. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4089. ac_cv_prog_CC="${ac_tool_prefix}cc"
  4090. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4091. break 2
  4092. fi
  4093. done
  4094. done
  4095. IFS=$as_save_IFS
  4096. fi
  4097. fi
  4098. CC=$ac_cv_prog_CC
  4099. if test -n "$CC"; then
  4100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4101. $as_echo "$CC" >&6; }
  4102. else
  4103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4104. $as_echo "no" >&6; }
  4105. fi
  4106. fi
  4107. fi
  4108. if test -z "$CC"; then
  4109. # Extract the first word of "cc", so it can be a program name with args.
  4110. set dummy cc; ac_word=$2
  4111. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4112. $as_echo_n "checking for $ac_word... " >&6; }
  4113. if test "${ac_cv_prog_CC+set}" = set; then :
  4114. $as_echo_n "(cached) " >&6
  4115. else
  4116. if test -n "$CC"; then
  4117. ac_cv_prog_CC="$CC" # Let the user override the test.
  4118. else
  4119. ac_prog_rejected=no
  4120. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4121. for as_dir in $PATH
  4122. do
  4123. IFS=$as_save_IFS
  4124. test -z "$as_dir" && as_dir=.
  4125. for ac_exec_ext in '' $ac_executable_extensions; do
  4126. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4127. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  4128. ac_prog_rejected=yes
  4129. continue
  4130. fi
  4131. ac_cv_prog_CC="cc"
  4132. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4133. break 2
  4134. fi
  4135. done
  4136. done
  4137. IFS=$as_save_IFS
  4138. if test $ac_prog_rejected = yes; then
  4139. # We found a bogon in the path, so make sure we never use it.
  4140. set dummy $ac_cv_prog_CC
  4141. shift
  4142. if test $# != 0; then
  4143. # We chose a different compiler from the bogus one.
  4144. # However, it has the same basename, so the bogon will be chosen
  4145. # first if we set CC to just the basename; use the full file name.
  4146. shift
  4147. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  4148. fi
  4149. fi
  4150. fi
  4151. fi
  4152. CC=$ac_cv_prog_CC
  4153. if test -n "$CC"; then
  4154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4155. $as_echo "$CC" >&6; }
  4156. else
  4157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4158. $as_echo "no" >&6; }
  4159. fi
  4160. fi
  4161. if test -z "$CC"; then
  4162. if test -n "$ac_tool_prefix"; then
  4163. for ac_prog in cl.exe
  4164. do
  4165. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4166. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4167. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4168. $as_echo_n "checking for $ac_word... " >&6; }
  4169. if test "${ac_cv_prog_CC+set}" = set; then :
  4170. $as_echo_n "(cached) " >&6
  4171. else
  4172. if test -n "$CC"; then
  4173. ac_cv_prog_CC="$CC" # Let the user override the test.
  4174. else
  4175. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4176. for as_dir in $PATH
  4177. do
  4178. IFS=$as_save_IFS
  4179. test -z "$as_dir" && as_dir=.
  4180. for ac_exec_ext in '' $ac_executable_extensions; do
  4181. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4182. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  4183. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4184. break 2
  4185. fi
  4186. done
  4187. done
  4188. IFS=$as_save_IFS
  4189. fi
  4190. fi
  4191. CC=$ac_cv_prog_CC
  4192. if test -n "$CC"; then
  4193. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4194. $as_echo "$CC" >&6; }
  4195. else
  4196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4197. $as_echo "no" >&6; }
  4198. fi
  4199. test -n "$CC" && break
  4200. done
  4201. fi
  4202. if test -z "$CC"; then
  4203. ac_ct_CC=$CC
  4204. for ac_prog in cl.exe
  4205. do
  4206. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4207. set dummy $ac_prog; ac_word=$2
  4208. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4209. $as_echo_n "checking for $ac_word... " >&6; }
  4210. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  4211. $as_echo_n "(cached) " >&6
  4212. else
  4213. if test -n "$ac_ct_CC"; then
  4214. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4215. else
  4216. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4217. for as_dir in $PATH
  4218. do
  4219. IFS=$as_save_IFS
  4220. test -z "$as_dir" && as_dir=.
  4221. for ac_exec_ext in '' $ac_executable_extensions; do
  4222. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4223. ac_cv_prog_ac_ct_CC="$ac_prog"
  4224. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4225. break 2
  4226. fi
  4227. done
  4228. done
  4229. IFS=$as_save_IFS
  4230. fi
  4231. fi
  4232. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4233. if test -n "$ac_ct_CC"; then
  4234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4235. $as_echo "$ac_ct_CC" >&6; }
  4236. else
  4237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4238. $as_echo "no" >&6; }
  4239. fi
  4240. test -n "$ac_ct_CC" && break
  4241. done
  4242. if test "x$ac_ct_CC" = x; then
  4243. CC=""
  4244. else
  4245. case $cross_compiling:$ac_tool_warned in
  4246. yes:)
  4247. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4248. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4249. ac_tool_warned=yes ;;
  4250. esac
  4251. CC=$ac_ct_CC
  4252. fi
  4253. fi
  4254. fi
  4255. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4256. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4257. as_fn_error "no acceptable C compiler found in \$PATH
  4258. See \`config.log' for more details." "$LINENO" 5; }
  4259. # Provide some information about the compiler.
  4260. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  4261. set X $ac_compile
  4262. ac_compiler=$2
  4263. for ac_option in --version -v -V -qversion; do
  4264. { { ac_try="$ac_compiler $ac_option >&5"
  4265. case "(($ac_try" in
  4266. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4267. *) ac_try_echo=$ac_try;;
  4268. esac
  4269. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4270. $as_echo "$ac_try_echo"; } >&5
  4271. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4272. ac_status=$?
  4273. if test -s conftest.err; then
  4274. sed '10a\
  4275. ... rest of stderr output deleted ...
  4276. 10q' conftest.err >conftest.er1
  4277. cat conftest.er1 >&5
  4278. fi
  4279. rm -f conftest.er1 conftest.err
  4280. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4281. test $ac_status = 0; }
  4282. done
  4283. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  4284. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4285. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  4286. $as_echo_n "(cached) " >&6
  4287. else
  4288. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4289. /* end confdefs.h. */
  4290. int
  4291. main ()
  4292. {
  4293. #ifndef __GNUC__
  4294. choke me
  4295. #endif
  4296. ;
  4297. return 0;
  4298. }
  4299. _ACEOF
  4300. if ac_fn_c_try_compile "$LINENO"; then :
  4301. ac_compiler_gnu=yes
  4302. else
  4303. ac_compiler_gnu=no
  4304. fi
  4305. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4306. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4307. fi
  4308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4309. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4310. if test $ac_compiler_gnu = yes; then
  4311. GCC=yes
  4312. else
  4313. GCC=
  4314. fi
  4315. ac_test_CFLAGS=${CFLAGS+set}
  4316. ac_save_CFLAGS=$CFLAGS
  4317. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4318. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4319. if test "${ac_cv_prog_cc_g+set}" = set; then :
  4320. $as_echo_n "(cached) " >&6
  4321. else
  4322. ac_save_c_werror_flag=$ac_c_werror_flag
  4323. ac_c_werror_flag=yes
  4324. ac_cv_prog_cc_g=no
  4325. CFLAGS="-g"
  4326. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4327. /* end confdefs.h. */
  4328. int
  4329. main ()
  4330. {
  4331. ;
  4332. return 0;
  4333. }
  4334. _ACEOF
  4335. if ac_fn_c_try_compile "$LINENO"; then :
  4336. ac_cv_prog_cc_g=yes
  4337. else
  4338. CFLAGS=""
  4339. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4340. /* end confdefs.h. */
  4341. int
  4342. main ()
  4343. {
  4344. ;
  4345. return 0;
  4346. }
  4347. _ACEOF
  4348. if ac_fn_c_try_compile "$LINENO"; then :
  4349. else
  4350. ac_c_werror_flag=$ac_save_c_werror_flag
  4351. CFLAGS="-g"
  4352. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4353. /* end confdefs.h. */
  4354. int
  4355. main ()
  4356. {
  4357. ;
  4358. return 0;
  4359. }
  4360. _ACEOF
  4361. if ac_fn_c_try_compile "$LINENO"; then :
  4362. ac_cv_prog_cc_g=yes
  4363. fi
  4364. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4365. fi
  4366. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4367. fi
  4368. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4369. ac_c_werror_flag=$ac_save_c_werror_flag
  4370. fi
  4371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4372. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4373. if test "$ac_test_CFLAGS" = set; then
  4374. CFLAGS=$ac_save_CFLAGS
  4375. elif test $ac_cv_prog_cc_g = yes; then
  4376. if test "$GCC" = yes; then
  4377. CFLAGS="-g -O2"
  4378. else
  4379. CFLAGS="-g"
  4380. fi
  4381. else
  4382. if test "$GCC" = yes; then
  4383. CFLAGS="-O2"
  4384. else
  4385. CFLAGS=
  4386. fi
  4387. fi
  4388. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4389. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4390. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  4391. $as_echo_n "(cached) " >&6
  4392. else
  4393. ac_cv_prog_cc_c89=no
  4394. ac_save_CC=$CC
  4395. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4396. /* end confdefs.h. */
  4397. #include <stdarg.h>
  4398. #include <stdio.h>
  4399. #include <sys/types.h>
  4400. #include <sys/stat.h>
  4401. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4402. struct buf { int x; };
  4403. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4404. static char *e (p, i)
  4405. char **p;
  4406. int i;
  4407. {
  4408. return p[i];
  4409. }
  4410. static char *f (char * (*g) (char **, int), char **p, ...)
  4411. {
  4412. char *s;
  4413. va_list v;
  4414. va_start (v,p);
  4415. s = g (p, va_arg (v,int));
  4416. va_end (v);
  4417. return s;
  4418. }
  4419. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4420. function prototypes and stuff, but not '\xHH' hex character constants.
  4421. These don't provoke an error unfortunately, instead are silently treated
  4422. as 'x'. The following induces an error, until -std is added to get
  4423. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4424. array size at least. It's necessary to write '\x00'==0 to get something
  4425. that's true only with -std. */
  4426. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4427. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4428. inside strings and character constants. */
  4429. #define FOO(x) 'x'
  4430. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4431. int test (int i, double x);
  4432. struct s1 {int (*f) (int a);};
  4433. struct s2 {int (*f) (double a);};
  4434. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4435. int argc;
  4436. char **argv;
  4437. int
  4438. main ()
  4439. {
  4440. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4441. ;
  4442. return 0;
  4443. }
  4444. _ACEOF
  4445. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4446. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4447. do
  4448. CC="$ac_save_CC $ac_arg"
  4449. if ac_fn_c_try_compile "$LINENO"; then :
  4450. ac_cv_prog_cc_c89=$ac_arg
  4451. fi
  4452. rm -f core conftest.err conftest.$ac_objext
  4453. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4454. done
  4455. rm -f conftest.$ac_ext
  4456. CC=$ac_save_CC
  4457. fi
  4458. # AC_CACHE_VAL
  4459. case "x$ac_cv_prog_cc_c89" in
  4460. x)
  4461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4462. $as_echo "none needed" >&6; } ;;
  4463. xno)
  4464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4465. $as_echo "unsupported" >&6; } ;;
  4466. *)
  4467. CC="$CC $ac_cv_prog_cc_c89"
  4468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4469. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4470. esac
  4471. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4472. fi
  4473. ac_ext=c
  4474. ac_cpp='$CPP $CPPFLAGS'
  4475. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4476. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4477. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4478. depcc="$CC" am_compiler_list=
  4479. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4480. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4481. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  4482. $as_echo_n "(cached) " >&6
  4483. else
  4484. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4485. # We make a subdir and do the tests there. Otherwise we can end up
  4486. # making bogus files that we don't know about and never remove. For
  4487. # instance it was reported that on HP-UX the gcc test will end up
  4488. # making a dummy file named `D' -- because `-MD' means `put the output
  4489. # in D'.
  4490. mkdir conftest.dir
  4491. # Copy depcomp to subdir because otherwise we won't find it if we're
  4492. # using a relative directory.
  4493. cp "$am_depcomp" conftest.dir
  4494. cd conftest.dir
  4495. # We will build objects and dependencies in a subdirectory because
  4496. # it helps to detect inapplicable dependency modes. For instance
  4497. # both Tru64's cc and ICC support -MD to output dependencies as a
  4498. # side effect of compilation, but ICC will put the dependencies in
  4499. # the current directory while Tru64 will put them in the object
  4500. # directory.
  4501. mkdir sub
  4502. am_cv_CC_dependencies_compiler_type=none
  4503. if test "$am_compiler_list" = ""; then
  4504. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4505. fi
  4506. am__universal=false
  4507. case " $depcc " in #(
  4508. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4509. esac
  4510. for depmode in $am_compiler_list; do
  4511. # Setup a source with many dependencies, because some compilers
  4512. # like to wrap large dependency lists on column 80 (with \), and
  4513. # we should not choose a depcomp mode which is confused by this.
  4514. #
  4515. # We need to recreate these files for each test, as the compiler may
  4516. # overwrite some of them when testing with obscure command lines.
  4517. # This happens at least with the AIX C compiler.
  4518. : > sub/conftest.c
  4519. for i in 1 2 3 4 5 6; do
  4520. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4521. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4522. # Solaris 8's {/usr,}/bin/sh.
  4523. touch sub/conftst$i.h
  4524. done
  4525. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4526. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4527. # mode. It turns out that the SunPro C++ compiler does not properly
  4528. # handle `-M -o', and we need to detect this. Also, some Intel
  4529. # versions had trouble with output in subdirs
  4530. am__obj=sub/conftest.${OBJEXT-o}
  4531. am__minus_obj="-o $am__obj"
  4532. case $depmode in
  4533. gcc)
  4534. # This depmode causes a compiler race in universal mode.
  4535. test "$am__universal" = false || continue
  4536. ;;
  4537. nosideeffect)
  4538. # after this tag, mechanisms are not by side-effect, so they'll
  4539. # only be used when explicitly requested
  4540. if test "x$enable_dependency_tracking" = xyes; then
  4541. continue
  4542. else
  4543. break
  4544. fi
  4545. ;;
  4546. msvisualcpp | msvcmsys)
  4547. # This compiler won't grok `-c -o', but also, the minuso test has
  4548. # not run yet. These depmodes are late enough in the game, and
  4549. # so weak that their functioning should not be impacted.
  4550. am__obj=conftest.${OBJEXT-o}
  4551. am__minus_obj=
  4552. ;;
  4553. none) break ;;
  4554. esac
  4555. if depmode=$depmode \
  4556. source=sub/conftest.c object=$am__obj \
  4557. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4558. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4559. >/dev/null 2>conftest.err &&
  4560. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4561. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4562. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4563. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4564. # icc doesn't choke on unknown options, it will just issue warnings
  4565. # or remarks (even with -Werror). So we grep stderr for any message
  4566. # that says an option was ignored or not supported.
  4567. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4568. # icc: Command line warning: ignoring option '-M'; no argument required
  4569. # The diagnosis changed in icc 8.0:
  4570. # icc: Command line remark: option '-MP' not supported
  4571. if (grep 'ignoring option' conftest.err ||
  4572. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4573. am_cv_CC_dependencies_compiler_type=$depmode
  4574. break
  4575. fi
  4576. fi
  4577. done
  4578. cd ..
  4579. rm -rf conftest.dir
  4580. else
  4581. am_cv_CC_dependencies_compiler_type=none
  4582. fi
  4583. fi
  4584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4585. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4586. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4587. if
  4588. test "x$enable_dependency_tracking" != xno \
  4589. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4590. am__fastdepCC_TRUE=
  4591. am__fastdepCC_FALSE='#'
  4592. else
  4593. am__fastdepCC_TRUE='#'
  4594. am__fastdepCC_FALSE=
  4595. fi
  4596. if test -n "$ac_tool_prefix"; then
  4597. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4598. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4599. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4600. $as_echo_n "checking for $ac_word... " >&6; }
  4601. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  4602. $as_echo_n "(cached) " >&6
  4603. else
  4604. if test -n "$RANLIB"; then
  4605. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4606. else
  4607. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4608. for as_dir in $PATH
  4609. do
  4610. IFS=$as_save_IFS
  4611. test -z "$as_dir" && as_dir=.
  4612. for ac_exec_ext in '' $ac_executable_extensions; do
  4613. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4614. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4615. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4616. break 2
  4617. fi
  4618. done
  4619. done
  4620. IFS=$as_save_IFS
  4621. fi
  4622. fi
  4623. RANLIB=$ac_cv_prog_RANLIB
  4624. if test -n "$RANLIB"; then
  4625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4626. $as_echo "$RANLIB" >&6; }
  4627. else
  4628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4629. $as_echo "no" >&6; }
  4630. fi
  4631. fi
  4632. if test -z "$ac_cv_prog_RANLIB"; then
  4633. ac_ct_RANLIB=$RANLIB
  4634. # Extract the first word of "ranlib", so it can be a program name with args.
  4635. set dummy ranlib; ac_word=$2
  4636. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4637. $as_echo_n "checking for $ac_word... " >&6; }
  4638. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  4639. $as_echo_n "(cached) " >&6
  4640. else
  4641. if test -n "$ac_ct_RANLIB"; then
  4642. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4643. else
  4644. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4645. for as_dir in $PATH
  4646. do
  4647. IFS=$as_save_IFS
  4648. test -z "$as_dir" && as_dir=.
  4649. for ac_exec_ext in '' $ac_executable_extensions; do
  4650. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4651. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4652. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4653. break 2
  4654. fi
  4655. done
  4656. done
  4657. IFS=$as_save_IFS
  4658. fi
  4659. fi
  4660. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4661. if test -n "$ac_ct_RANLIB"; then
  4662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4663. $as_echo "$ac_ct_RANLIB" >&6; }
  4664. else
  4665. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4666. $as_echo "no" >&6; }
  4667. fi
  4668. if test "x$ac_ct_RANLIB" = x; then
  4669. RANLIB=":"
  4670. else
  4671. case $cross_compiling:$ac_tool_warned in
  4672. yes:)
  4673. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4674. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4675. ac_tool_warned=yes ;;
  4676. esac
  4677. RANLIB=$ac_ct_RANLIB
  4678. fi
  4679. else
  4680. RANLIB="$ac_cv_prog_RANLIB"
  4681. fi
  4682. for ac_prog in 'bison -y' byacc
  4683. do
  4684. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4685. set dummy $ac_prog; ac_word=$2
  4686. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4687. $as_echo_n "checking for $ac_word... " >&6; }
  4688. if test "${ac_cv_prog_YACC+set}" = set; then :
  4689. $as_echo_n "(cached) " >&6
  4690. else
  4691. if test -n "$YACC"; then
  4692. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  4693. else
  4694. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4695. for as_dir in $PATH
  4696. do
  4697. IFS=$as_save_IFS
  4698. test -z "$as_dir" && as_dir=.
  4699. for ac_exec_ext in '' $ac_executable_extensions; do
  4700. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4701. ac_cv_prog_YACC="$ac_prog"
  4702. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4703. break 2
  4704. fi
  4705. done
  4706. done
  4707. IFS=$as_save_IFS
  4708. fi
  4709. fi
  4710. YACC=$ac_cv_prog_YACC
  4711. if test -n "$YACC"; then
  4712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
  4713. $as_echo "$YACC" >&6; }
  4714. else
  4715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4716. $as_echo "no" >&6; }
  4717. fi
  4718. test -n "$YACC" && break
  4719. done
  4720. test -n "$YACC" || YACC="yacc"
  4721. # Setting language choice
  4722. ac_ext=cpp
  4723. ac_cpp='$CXXCPP $CPPFLAGS'
  4724. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4725. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4726. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4727. # Enable system extensions
  4728. ac_ext=cpp
  4729. ac_cpp='$CXXCPP $CPPFLAGS'
  4730. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4731. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4732. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4733. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  4734. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  4735. if test -z "$CXXCPP"; then
  4736. if test "${ac_cv_prog_CXXCPP+set}" = set; then :
  4737. $as_echo_n "(cached) " >&6
  4738. else
  4739. # Double quotes because CXXCPP needs to be expanded
  4740. for CXXCPP in "$CXX -E" "/lib/cpp"
  4741. do
  4742. ac_preproc_ok=false
  4743. for ac_cxx_preproc_warn_flag in '' yes
  4744. do
  4745. # Use a header file that comes with gcc, so configuring glibc
  4746. # with a fresh cross-compiler works.
  4747. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4748. # <limits.h> exists even on freestanding compilers.
  4749. # On the NeXT, cc -E runs the code through the compiler's parser,
  4750. # not just through cpp. "Syntax error" is here to catch this case.
  4751. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4752. /* end confdefs.h. */
  4753. #ifdef __STDC__
  4754. # include <limits.h>
  4755. #else
  4756. # include <assert.h>
  4757. #endif
  4758. Syntax error
  4759. _ACEOF
  4760. if ac_fn_cxx_try_cpp "$LINENO"; then :
  4761. else
  4762. # Broken: fails on valid input.
  4763. continue
  4764. fi
  4765. rm -f conftest.err conftest.$ac_ext
  4766. # OK, works on sane cases. Now check whether nonexistent headers
  4767. # can be detected and how.
  4768. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4769. /* end confdefs.h. */
  4770. #include <ac_nonexistent.h>
  4771. _ACEOF
  4772. if ac_fn_cxx_try_cpp "$LINENO"; then :
  4773. # Broken: success on invalid input.
  4774. continue
  4775. else
  4776. # Passes both tests.
  4777. ac_preproc_ok=:
  4778. break
  4779. fi
  4780. rm -f conftest.err conftest.$ac_ext
  4781. done
  4782. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4783. rm -f conftest.err conftest.$ac_ext
  4784. if $ac_preproc_ok; then :
  4785. break
  4786. fi
  4787. done
  4788. ac_cv_prog_CXXCPP=$CXXCPP
  4789. fi
  4790. CXXCPP=$ac_cv_prog_CXXCPP
  4791. else
  4792. ac_cv_prog_CXXCPP=$CXXCPP
  4793. fi
  4794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  4795. $as_echo "$CXXCPP" >&6; }
  4796. ac_preproc_ok=false
  4797. for ac_cxx_preproc_warn_flag in '' yes
  4798. do
  4799. # Use a header file that comes with gcc, so configuring glibc
  4800. # with a fresh cross-compiler works.
  4801. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4802. # <limits.h> exists even on freestanding compilers.
  4803. # On the NeXT, cc -E runs the code through the compiler's parser,
  4804. # not just through cpp. "Syntax error" is here to catch this case.
  4805. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4806. /* end confdefs.h. */
  4807. #ifdef __STDC__
  4808. # include <limits.h>
  4809. #else
  4810. # include <assert.h>
  4811. #endif
  4812. Syntax error
  4813. _ACEOF
  4814. if ac_fn_cxx_try_cpp "$LINENO"; then :
  4815. else
  4816. # Broken: fails on valid input.
  4817. continue
  4818. fi
  4819. rm -f conftest.err conftest.$ac_ext
  4820. # OK, works on sane cases. Now check whether nonexistent headers
  4821. # can be detected and how.
  4822. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4823. /* end confdefs.h. */
  4824. #include <ac_nonexistent.h>
  4825. _ACEOF
  4826. if ac_fn_cxx_try_cpp "$LINENO"; then :
  4827. # Broken: success on invalid input.
  4828. continue
  4829. else
  4830. # Passes both tests.
  4831. ac_preproc_ok=:
  4832. break
  4833. fi
  4834. rm -f conftest.err conftest.$ac_ext
  4835. done
  4836. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4837. rm -f conftest.err conftest.$ac_ext
  4838. if $ac_preproc_ok; then :
  4839. else
  4840. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4841. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4842. as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
  4843. See \`config.log' for more details." "$LINENO" 5; }
  4844. fi
  4845. ac_ext=cpp
  4846. ac_cpp='$CXXCPP $CPPFLAGS'
  4847. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4848. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4849. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4850. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4851. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4852. if test "${ac_cv_path_GREP+set}" = set; then :
  4853. $as_echo_n "(cached) " >&6
  4854. else
  4855. if test -z "$GREP"; then
  4856. ac_path_GREP_found=false
  4857. # Loop through the user's path and test for each of PROGNAME-LIST
  4858. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4859. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4860. do
  4861. IFS=$as_save_IFS
  4862. test -z "$as_dir" && as_dir=.
  4863. for ac_prog in grep ggrep; do
  4864. for ac_exec_ext in '' $ac_executable_extensions; do
  4865. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4866. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4867. # Check for GNU ac_path_GREP and select it if it is found.
  4868. # Check for GNU $ac_path_GREP
  4869. case `"$ac_path_GREP" --version 2>&1` in
  4870. *GNU*)
  4871. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4872. *)
  4873. ac_count=0
  4874. $as_echo_n 0123456789 >"conftest.in"
  4875. while :
  4876. do
  4877. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4878. mv "conftest.tmp" "conftest.in"
  4879. cp "conftest.in" "conftest.nl"
  4880. $as_echo 'GREP' >> "conftest.nl"
  4881. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4882. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4883. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4884. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4885. # Best one so far, save it but keep looking for a better one
  4886. ac_cv_path_GREP="$ac_path_GREP"
  4887. ac_path_GREP_max=$ac_count
  4888. fi
  4889. # 10*(2^10) chars as input seems more than enough
  4890. test $ac_count -gt 10 && break
  4891. done
  4892. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4893. esac
  4894. $ac_path_GREP_found && break 3
  4895. done
  4896. done
  4897. done
  4898. IFS=$as_save_IFS
  4899. if test -z "$ac_cv_path_GREP"; then
  4900. as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4901. fi
  4902. else
  4903. ac_cv_path_GREP=$GREP
  4904. fi
  4905. fi
  4906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4907. $as_echo "$ac_cv_path_GREP" >&6; }
  4908. GREP="$ac_cv_path_GREP"
  4909. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4910. $as_echo_n "checking for egrep... " >&6; }
  4911. if test "${ac_cv_path_EGREP+set}" = set; then :
  4912. $as_echo_n "(cached) " >&6
  4913. else
  4914. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4915. then ac_cv_path_EGREP="$GREP -E"
  4916. else
  4917. if test -z "$EGREP"; then
  4918. ac_path_EGREP_found=false
  4919. # Loop through the user's path and test for each of PROGNAME-LIST
  4920. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4921. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4922. do
  4923. IFS=$as_save_IFS
  4924. test -z "$as_dir" && as_dir=.
  4925. for ac_prog in egrep; do
  4926. for ac_exec_ext in '' $ac_executable_extensions; do
  4927. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4928. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4929. # Check for GNU ac_path_EGREP and select it if it is found.
  4930. # Check for GNU $ac_path_EGREP
  4931. case `"$ac_path_EGREP" --version 2>&1` in
  4932. *GNU*)
  4933. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4934. *)
  4935. ac_count=0
  4936. $as_echo_n 0123456789 >"conftest.in"
  4937. while :
  4938. do
  4939. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4940. mv "conftest.tmp" "conftest.in"
  4941. cp "conftest.in" "conftest.nl"
  4942. $as_echo 'EGREP' >> "conftest.nl"
  4943. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4944. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4945. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4946. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4947. # Best one so far, save it but keep looking for a better one
  4948. ac_cv_path_EGREP="$ac_path_EGREP"
  4949. ac_path_EGREP_max=$ac_count
  4950. fi
  4951. # 10*(2^10) chars as input seems more than enough
  4952. test $ac_count -gt 10 && break
  4953. done
  4954. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4955. esac
  4956. $ac_path_EGREP_found && break 3
  4957. done
  4958. done
  4959. done
  4960. IFS=$as_save_IFS
  4961. if test -z "$ac_cv_path_EGREP"; then
  4962. as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4963. fi
  4964. else
  4965. ac_cv_path_EGREP=$EGREP
  4966. fi
  4967. fi
  4968. fi
  4969. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4970. $as_echo "$ac_cv_path_EGREP" >&6; }
  4971. EGREP="$ac_cv_path_EGREP"
  4972. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4973. $as_echo_n "checking for ANSI C header files... " >&6; }
  4974. if test "${ac_cv_header_stdc+set}" = set; then :
  4975. $as_echo_n "(cached) " >&6
  4976. else
  4977. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4978. /* end confdefs.h. */
  4979. #include <stdlib.h>
  4980. #include <stdarg.h>
  4981. #include <string.h>
  4982. #include <float.h>
  4983. int
  4984. main ()
  4985. {
  4986. ;
  4987. return 0;
  4988. }
  4989. _ACEOF
  4990. if ac_fn_cxx_try_compile "$LINENO"; then :
  4991. ac_cv_header_stdc=yes
  4992. else
  4993. ac_cv_header_stdc=no
  4994. fi
  4995. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4996. if test $ac_cv_header_stdc = yes; then
  4997. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4998. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4999. /* end confdefs.h. */
  5000. #include <string.h>
  5001. _ACEOF
  5002. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5003. $EGREP "memchr" >/dev/null 2>&1; then :
  5004. else
  5005. ac_cv_header_stdc=no
  5006. fi
  5007. rm -f conftest*
  5008. fi
  5009. if test $ac_cv_header_stdc = yes; then
  5010. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  5011. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5012. /* end confdefs.h. */
  5013. #include <stdlib.h>
  5014. _ACEOF
  5015. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5016. $EGREP "free" >/dev/null 2>&1; then :
  5017. else
  5018. ac_cv_header_stdc=no
  5019. fi
  5020. rm -f conftest*
  5021. fi
  5022. if test $ac_cv_header_stdc = yes; then
  5023. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  5024. if test "$cross_compiling" = yes; then :
  5025. :
  5026. else
  5027. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5028. /* end confdefs.h. */
  5029. #include <ctype.h>
  5030. #include <stdlib.h>
  5031. #if ((' ' & 0x0FF) == 0x020)
  5032. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  5033. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  5034. #else
  5035. # define ISLOWER(c) \
  5036. (('a' <= (c) && (c) <= 'i') \
  5037. || ('j' <= (c) && (c) <= 'r') \
  5038. || ('s' <= (c) && (c) <= 'z'))
  5039. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  5040. #endif
  5041. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  5042. int
  5043. main ()
  5044. {
  5045. int i;
  5046. for (i = 0; i < 256; i++)
  5047. if (XOR (islower (i), ISLOWER (i))
  5048. || toupper (i) != TOUPPER (i))
  5049. return 2;
  5050. return 0;
  5051. }
  5052. _ACEOF
  5053. if ac_fn_cxx_try_run "$LINENO"; then :
  5054. else
  5055. ac_cv_header_stdc=no
  5056. fi
  5057. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5058. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5059. fi
  5060. fi
  5061. fi
  5062. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  5063. $as_echo "$ac_cv_header_stdc" >&6; }
  5064. if test $ac_cv_header_stdc = yes; then
  5065. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  5066. fi
  5067. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  5068. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  5069. inttypes.h stdint.h unistd.h
  5070. do :
  5071. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5072. ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  5073. "
  5074. eval as_val=\$$as_ac_Header
  5075. if test "x$as_val" = x""yes; then :
  5076. cat >>confdefs.h <<_ACEOF
  5077. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5078. _ACEOF
  5079. fi
  5080. done
  5081. ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  5082. if test "x$ac_cv_header_minix_config_h" = x""yes; then :
  5083. MINIX=yes
  5084. else
  5085. MINIX=
  5086. fi
  5087. if test "$MINIX" = yes; then
  5088. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  5089. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  5090. $as_echo "#define _MINIX 1" >>confdefs.h
  5091. fi
  5092. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  5093. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  5094. if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
  5095. $as_echo_n "(cached) " >&6
  5096. else
  5097. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5098. /* end confdefs.h. */
  5099. # define __EXTENSIONS__ 1
  5100. $ac_includes_default
  5101. int
  5102. main ()
  5103. {
  5104. ;
  5105. return 0;
  5106. }
  5107. _ACEOF
  5108. if ac_fn_cxx_try_compile "$LINENO"; then :
  5109. ac_cv_safe_to_define___extensions__=yes
  5110. else
  5111. ac_cv_safe_to_define___extensions__=no
  5112. fi
  5113. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5114. fi
  5115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  5116. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  5117. test $ac_cv_safe_to_define___extensions__ = yes &&
  5118. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  5119. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  5120. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  5121. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  5122. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  5123. # Check pkg-config is available
  5124. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  5125. if test -n "$ac_tool_prefix"; then
  5126. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  5127. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  5128. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5129. $as_echo_n "checking for $ac_word... " >&6; }
  5130. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
  5131. $as_echo_n "(cached) " >&6
  5132. else
  5133. case $PKG_CONFIG in
  5134. [\\/]* | ?:[\\/]*)
  5135. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  5136. ;;
  5137. *)
  5138. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5139. for as_dir in $PATH
  5140. do
  5141. IFS=$as_save_IFS
  5142. test -z "$as_dir" && as_dir=.
  5143. for ac_exec_ext in '' $ac_executable_extensions; do
  5144. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5145. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5146. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5147. break 2
  5148. fi
  5149. done
  5150. done
  5151. IFS=$as_save_IFS
  5152. ;;
  5153. esac
  5154. fi
  5155. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  5156. if test -n "$PKG_CONFIG"; then
  5157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  5158. $as_echo "$PKG_CONFIG" >&6; }
  5159. else
  5160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5161. $as_echo "no" >&6; }
  5162. fi
  5163. fi
  5164. if test -z "$ac_cv_path_PKG_CONFIG"; then
  5165. ac_pt_PKG_CONFIG=$PKG_CONFIG
  5166. # Extract the first word of "pkg-config", so it can be a program name with args.
  5167. set dummy pkg-config; ac_word=$2
  5168. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5169. $as_echo_n "checking for $ac_word... " >&6; }
  5170. if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
  5171. $as_echo_n "(cached) " >&6
  5172. else
  5173. case $ac_pt_PKG_CONFIG in
  5174. [\\/]* | ?:[\\/]*)
  5175. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  5176. ;;
  5177. *)
  5178. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5179. for as_dir in $PATH
  5180. do
  5181. IFS=$as_save_IFS
  5182. test -z "$as_dir" && as_dir=.
  5183. for ac_exec_ext in '' $ac_executable_extensions; do
  5184. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5185. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5186. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5187. break 2
  5188. fi
  5189. done
  5190. done
  5191. IFS=$as_save_IFS
  5192. ;;
  5193. esac
  5194. fi
  5195. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  5196. if test -n "$ac_pt_PKG_CONFIG"; then
  5197. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  5198. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  5199. else
  5200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5201. $as_echo "no" >&6; }
  5202. fi
  5203. if test "x$ac_pt_PKG_CONFIG" = x; then
  5204. PKG_CONFIG=""
  5205. else
  5206. case $cross_compiling:$ac_tool_warned in
  5207. yes:)
  5208. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5209. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5210. ac_tool_warned=yes ;;
  5211. esac
  5212. PKG_CONFIG=$ac_pt_PKG_CONFIG
  5213. fi
  5214. else
  5215. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  5216. fi
  5217. fi
  5218. if test -n "$PKG_CONFIG"; then
  5219. _pkg_min_version=0.20
  5220. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  5221. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  5222. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  5223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5224. $as_echo "yes" >&6; }
  5225. else
  5226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5227. $as_echo "no" >&6; }
  5228. PKG_CONFIG=""
  5229. fi
  5230. fi
  5231. # Checks for libraries.
  5232. if test "x$with_libxml2" = "xyes"; then
  5233. # Check whether --with-xml-prefix was given.
  5234. if test "${with_xml_prefix+set}" = set; then :
  5235. withval=$with_xml_prefix; xml_config_prefix="$withval"
  5236. else
  5237. xml_config_prefix=""
  5238. fi
  5239. # Check whether --with-xml-exec-prefix was given.
  5240. if test "${with_xml_exec_prefix+set}" = set; then :
  5241. withval=$with_xml_exec_prefix; xml_config_exec_prefix="$withval"
  5242. else
  5243. xml_config_exec_prefix=""
  5244. fi
  5245. # Check whether --enable-xmltest was given.
  5246. if test "${enable_xmltest+set}" = set; then :
  5247. enableval=$enable_xmltest;
  5248. else
  5249. enable_xmltest=yes
  5250. fi
  5251. if test x$xml_config_exec_prefix != x ; then
  5252. xml_config_args="$xml_config_args"
  5253. if test x${XML2_CONFIG+set} != xset ; then
  5254. XML2_CONFIG=$xml_config_exec_prefix/bin/xml2-config
  5255. fi
  5256. fi
  5257. if test x$xml_config_prefix != x ; then
  5258. xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
  5259. if test x${XML2_CONFIG+set} != xset ; then
  5260. XML2_CONFIG=$xml_config_prefix/bin/xml2-config
  5261. fi
  5262. fi
  5263. # Extract the first word of "xml2-config", so it can be a program name with args.
  5264. set dummy xml2-config; ac_word=$2
  5265. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5266. $as_echo_n "checking for $ac_word... " >&6; }
  5267. if test "${ac_cv_path_XML2_CONFIG+set}" = set; then :
  5268. $as_echo_n "(cached) " >&6
  5269. else
  5270. case $XML2_CONFIG in
  5271. [\\/]* | ?:[\\/]*)
  5272. ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
  5273. ;;
  5274. *)
  5275. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5276. for as_dir in $PATH
  5277. do
  5278. IFS=$as_save_IFS
  5279. test -z "$as_dir" && as_dir=.
  5280. for ac_exec_ext in '' $ac_executable_extensions; do
  5281. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5282. ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5283. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5284. break 2
  5285. fi
  5286. done
  5287. done
  5288. IFS=$as_save_IFS
  5289. test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no"
  5290. ;;
  5291. esac
  5292. fi
  5293. XML2_CONFIG=$ac_cv_path_XML2_CONFIG
  5294. if test -n "$XML2_CONFIG"; then
  5295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5
  5296. $as_echo "$XML2_CONFIG" >&6; }
  5297. else
  5298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5299. $as_echo "no" >&6; }
  5300. fi
  5301. min_xml_version=2.6.24
  5302. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml - version >= $min_xml_version" >&5
  5303. $as_echo_n "checking for libxml - version >= $min_xml_version... " >&6; }
  5304. no_xml=""
  5305. if test "$XML2_CONFIG" = "no" ; then
  5306. no_xml=yes
  5307. else
  5308. XML_CPPFLAGS=`$XML2_CONFIG $xml_config_args --cflags`
  5309. XML_LIBS=`$XML2_CONFIG $xml_config_args --libs`
  5310. xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \
  5311. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  5312. xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \
  5313. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  5314. xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \
  5315. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  5316. if test "x$enable_xmltest" = "xyes" ; then
  5317. ac_save_CPPFLAGS="$CPPFLAGS"
  5318. ac_save_LIBS="$LIBS"
  5319. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  5320. LIBS="$XML_LIBS $LIBS"
  5321. rm -f conf.xmltest
  5322. if test "$cross_compiling" = yes; then :
  5323. echo $ac_n "cross compiling; assumed OK... $ac_c"
  5324. else
  5325. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5326. /* end confdefs.h. */
  5327. #include <stdlib.h>
  5328. #include <stdio.h>
  5329. #include <string.h>
  5330. #include <libxml/xmlversion.h>
  5331. int
  5332. main()
  5333. {
  5334. int xml_major_version, xml_minor_version, xml_micro_version;
  5335. int major, minor, micro;
  5336. char *tmp_version;
  5337. system("touch conf.xmltest");
  5338. /* Capture xml2-config output via autoconf/configure variables */
  5339. /* HP/UX 9 (%@#!) writes to sscanf strings */
  5340. tmp_version = (char *)strdup("$min_xml_version");
  5341. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  5342. printf("%s, bad version string from xml2-config\n", "$min_xml_version");
  5343. exit(1);
  5344. }
  5345. free(tmp_version);
  5346. /* Capture the version information from the header files */
  5347. tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);
  5348. if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
  5349. printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION");
  5350. exit(1);
  5351. }
  5352. free(tmp_version);
  5353. /* Compare xml2-config output to the libxml headers */
  5354. if ((xml_major_version != $xml_config_major_version) ||
  5355. (xml_minor_version != $xml_config_minor_version) ||
  5356. (xml_micro_version != $xml_config_micro_version))
  5357. {
  5358. printf("*** libxml header files (version %d.%d.%d) do not match\n",
  5359. xml_major_version, xml_minor_version, xml_micro_version);
  5360. printf("*** xml2-config (version %d.%d.%d)\n",
  5361. $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version);
  5362. return 1;
  5363. }
  5364. /* Compare the headers to the library to make sure we match */
  5365. /* Less than ideal -- doesn't provide us with return value feedback,
  5366. * only exits if there's a serious mismatch between header and library.
  5367. */
  5368. LIBXML_TEST_VERSION;
  5369. /* Test that the library is greater than our minimum version */
  5370. if ((xml_major_version > major) ||
  5371. ((xml_major_version == major) && (xml_minor_version > minor)) ||
  5372. ((xml_major_version == major) && (xml_minor_version == minor) &&
  5373. (xml_micro_version >= micro)))
  5374. {
  5375. return 0;
  5376. }
  5377. else
  5378. {
  5379. printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
  5380. xml_major_version, xml_minor_version, xml_micro_version);
  5381. printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
  5382. major, minor, micro);
  5383. printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n");
  5384. printf("***\n");
  5385. printf("*** If you have already installed a sufficiently new version, this error\n");
  5386. printf("*** probably means that the wrong copy of the xml2-config shell script is\n");
  5387. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  5388. printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
  5389. printf("*** correct copy of xml2-config. (In this case, you will have to\n");
  5390. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  5391. printf("*** so that the correct libraries are found at run-time))\n");
  5392. }
  5393. return 1;
  5394. }
  5395. _ACEOF
  5396. if ac_fn_cxx_try_run "$LINENO"; then :
  5397. else
  5398. no_xml=yes
  5399. fi
  5400. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5401. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5402. fi
  5403. CPPFLAGS="$ac_save_CPPFLAGS"
  5404. LIBS="$ac_save_LIBS"
  5405. fi
  5406. fi
  5407. if test "x$no_xml" = x ; then
  5408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&5
  5409. $as_echo "yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&6; }
  5410. have_libxml2=yes
  5411. else
  5412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5413. $as_echo "no" >&6; }
  5414. if test "$XML2_CONFIG" = "no" ; then
  5415. echo "*** The xml2-config script installed by LIBXML could not be found"
  5416. echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
  5417. echo "*** your path, or set the XML2_CONFIG environment variable to the"
  5418. echo "*** full path to xml2-config."
  5419. else
  5420. if test -f conf.xmltest ; then
  5421. :
  5422. else
  5423. echo "*** Could not run libxml test program, checking why..."
  5424. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  5425. LIBS="$LIBS $XML_LIBS"
  5426. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5427. /* end confdefs.h. */
  5428. #include <libxml/xmlversion.h>
  5429. #include <stdio.h>
  5430. int
  5431. main ()
  5432. {
  5433. LIBXML_TEST_VERSION; return 0;
  5434. ;
  5435. return 0;
  5436. }
  5437. _ACEOF
  5438. if ac_fn_cxx_try_link "$LINENO"; then :
  5439. echo "*** The test program compiled, but did not run. This usually means"
  5440. echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
  5441. echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"
  5442. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  5443. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  5444. echo "*** is required on your system"
  5445. echo "***"
  5446. echo "*** If you have an old version installed, it is best to remove it, although"
  5447. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  5448. else
  5449. echo "*** The test program failed to compile or link. See the file config.log for the"
  5450. echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
  5451. echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
  5452. echo "*** may want to edit the xml2-config script: $XML2_CONFIG"
  5453. fi
  5454. rm -f core conftest.err conftest.$ac_objext \
  5455. conftest$ac_exeext conftest.$ac_ext
  5456. CPPFLAGS="$ac_save_CPPFLAGS"
  5457. LIBS="$ac_save_LIBS"
  5458. fi
  5459. fi
  5460. XML_CPPFLAGS=""
  5461. XML_LIBS=""
  5462. :
  5463. fi
  5464. rm -f conf.xmltest
  5465. if test "x$have_libxml2" = "xyes"; then
  5466. $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
  5467. elif test "x$with_libxml2_requested" = "xyes"; then
  5468. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5469. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5470. as_fn_error "libxml2 is requested but not found in the system.
  5471. See \`config.log' for more details." "$LINENO" 5; }
  5472. fi
  5473. fi
  5474. if test "x$with_libexpat" = "xyes" && test "x$have_libxml2" != "xyes"; then
  5475. # Check whether --with-libexpat-prefix was given.
  5476. if test "${with_libexpat_prefix+set}" = set; then :
  5477. withval=$with_libexpat_prefix; libexpat_prefix=$withval
  5478. else
  5479. libexpat_prefix=""
  5480. fi
  5481. if test "x$libexpat_prefix" = "x"; then
  5482. libexpat_prefix="/usr"
  5483. fi
  5484. libexpat_prefix_lib=$libexpat_prefix/lib
  5485. libexpat_prefix_include=$libexpat_prefix/include
  5486. LIBS_save=$LIBS
  5487. CPPFLAGS_save=$CPPFLAGS
  5488. LIBS="-L$libexpat_prefix_lib $LIBS"
  5489. CPPFLAGS="-I$libexpat_prefix_include $CPPFLAGS"
  5490. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML_ParserCreate in -lexpat" >&5
  5491. $as_echo_n "checking for XML_ParserCreate in -lexpat... " >&6; }
  5492. if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then :
  5493. $as_echo_n "(cached) " >&6
  5494. else
  5495. ac_check_lib_save_LIBS=$LIBS
  5496. LIBS="-lexpat $LIBS"
  5497. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5498. /* end confdefs.h. */
  5499. /* Override any GCC internal prototype to avoid an error.
  5500. Use char because int might match the return type of a GCC
  5501. builtin and then its argument prototype would still apply. */
  5502. #ifdef __cplusplus
  5503. extern "C"
  5504. #endif
  5505. char XML_ParserCreate ();
  5506. int
  5507. main ()
  5508. {
  5509. return XML_ParserCreate ();
  5510. ;
  5511. return 0;
  5512. }
  5513. _ACEOF
  5514. if ac_fn_cxx_try_link "$LINENO"; then :
  5515. ac_cv_lib_expat_XML_ParserCreate=yes
  5516. else
  5517. ac_cv_lib_expat_XML_ParserCreate=no
  5518. fi
  5519. rm -f core conftest.err conftest.$ac_objext \
  5520. conftest$ac_exeext conftest.$ac_ext
  5521. LIBS=$ac_check_lib_save_LIBS
  5522. fi
  5523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
  5524. $as_echo "$ac_cv_lib_expat_XML_ParserCreate" >&6; }
  5525. if test "x$ac_cv_lib_expat_XML_ParserCreate" = x""yes; then :
  5526. have_libexpat=yes
  5527. fi
  5528. if test "x$have_libexpat" = "xyes"; then
  5529. $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
  5530. LIBEXPAT_LIBS="-L$libexpat_prefix_lib -lexpat"
  5531. LIBEXPAT_CPPFLAGS="-I$libexpat_prefix_include"
  5532. fi
  5533. LIBS=$LIBS_save
  5534. CPPFLAGS=$CPPFLAGS_save
  5535. if test "x$have_libexpat" != "xyes" &&
  5536. test "x$with_libexpat_requested" = "xyes"; then
  5537. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5538. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5539. as_fn_error "libexpat is requested but not found in the system.
  5540. See \`config.log' for more details." "$LINENO" 5; }
  5541. fi
  5542. fi
  5543. if test "x$with_sqlite3" = "xyes"; then
  5544. # Check whether --with-sqlite3-prefix was given.
  5545. if test "${with_sqlite3_prefix+set}" = set; then :
  5546. withval=$with_sqlite3_prefix; sqlite3_prefix=$withval
  5547. else
  5548. sqlite3_prefix=""
  5549. fi
  5550. if test "x$sqlite3_prefix" = "x"; then
  5551. sqlite3_prefix="/usr"
  5552. fi
  5553. LIBS_save=$LIBS
  5554. CPPFLAGS_save=$CPPFLAGS
  5555. pkg_failed=no
  5556. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLITE3" >&5
  5557. $as_echo_n "checking for SQLITE3... " >&6; }
  5558. if test -n "$PKG_CONFIG"; then
  5559. if test -n "$SQLITE3_CFLAGS"; then
  5560. pkg_cv_SQLITE3_CFLAGS="$SQLITE3_CFLAGS"
  5561. else
  5562. if test -n "$PKG_CONFIG" && \
  5563. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
  5564. ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
  5565. ac_status=$?
  5566. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5567. test $ac_status = 0; }; then
  5568. pkg_cv_SQLITE3_CFLAGS=`$PKG_CONFIG --cflags "sqlite3" 2>/dev/null`
  5569. else
  5570. pkg_failed=yes
  5571. fi
  5572. fi
  5573. else
  5574. pkg_failed=untried
  5575. fi
  5576. if test -n "$PKG_CONFIG"; then
  5577. if test -n "$SQLITE3_LIBS"; then
  5578. pkg_cv_SQLITE3_LIBS="$SQLITE3_LIBS"
  5579. else
  5580. if test -n "$PKG_CONFIG" && \
  5581. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
  5582. ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
  5583. ac_status=$?
  5584. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5585. test $ac_status = 0; }; then
  5586. pkg_cv_SQLITE3_LIBS=`$PKG_CONFIG --libs "sqlite3" 2>/dev/null`
  5587. else
  5588. pkg_failed=yes
  5589. fi
  5590. fi
  5591. else
  5592. pkg_failed=untried
  5593. fi
  5594. if test $pkg_failed = yes; then
  5595. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  5596. _pkg_short_errors_supported=yes
  5597. else
  5598. _pkg_short_errors_supported=no
  5599. fi
  5600. if test $_pkg_short_errors_supported = yes; then
  5601. SQLITE3_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "sqlite3"`
  5602. else
  5603. SQLITE3_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "sqlite3"`
  5604. fi
  5605. # Put the nasty error message in config.log where it belongs
  5606. echo "$SQLITE3_PKG_ERRORS" >&5
  5607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5608. $as_echo "no" >&6; }
  5609. have_sqlite3=no
  5610. elif test $pkg_failed = untried; then
  5611. have_sqlite3=no
  5612. else
  5613. SQLITE3_CFLAGS=$pkg_cv_SQLITE3_CFLAGS
  5614. SQLITE3_LIBS=$pkg_cv_SQLITE3_LIBS
  5615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5616. $as_echo "yes" >&6; }
  5617. have_sqlite3=yes
  5618. fi
  5619. if test "x$have_sqlite3" != "xyes"; then
  5620. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $SQLITE3_PKG_ERRORS" >&5
  5621. $as_echo "$as_me: WARNING: $SQLITE3_PKG_ERRORS" >&2;}
  5622. sqlite3_prefix_lib=$sqlite3_prefix/lib
  5623. sqlite3_prefix_include=$sqlite3_prefix/include
  5624. LIBS="-L$sqlite3_prefix_lib $LIBS"
  5625. CPPFLAGS="-I$sqlite3_prefix_include $CPPFLAGS"
  5626. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_open in -lsqlite3" >&5
  5627. $as_echo_n "checking for sqlite3_open in -lsqlite3... " >&6; }
  5628. if test "${ac_cv_lib_sqlite3_sqlite3_open+set}" = set; then :
  5629. $as_echo_n "(cached) " >&6
  5630. else
  5631. ac_check_lib_save_LIBS=$LIBS
  5632. LIBS="-lsqlite3 $LIBS"
  5633. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5634. /* end confdefs.h. */
  5635. /* Override any GCC internal prototype to avoid an error.
  5636. Use char because int might match the return type of a GCC
  5637. builtin and then its argument prototype would still apply. */
  5638. #ifdef __cplusplus
  5639. extern "C"
  5640. #endif
  5641. char sqlite3_open ();
  5642. int
  5643. main ()
  5644. {
  5645. return sqlite3_open ();
  5646. ;
  5647. return 0;
  5648. }
  5649. _ACEOF
  5650. if ac_fn_cxx_try_link "$LINENO"; then :
  5651. ac_cv_lib_sqlite3_sqlite3_open=yes
  5652. else
  5653. ac_cv_lib_sqlite3_sqlite3_open=no
  5654. fi
  5655. rm -f core conftest.err conftest.$ac_objext \
  5656. conftest$ac_exeext conftest.$ac_ext
  5657. LIBS=$ac_check_lib_save_LIBS
  5658. fi
  5659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5
  5660. $as_echo "$ac_cv_lib_sqlite3_sqlite3_open" >&6; }
  5661. if test "x$ac_cv_lib_sqlite3_sqlite3_open" = x""yes; then :
  5662. have_sqlite3=yes
  5663. fi
  5664. if test "x$have_sqlite3" = "xyes"; then
  5665. SQLITE3_LIBS="-L$sqlite3_prefix_lib -lsqlite3"
  5666. SQLITE3_CFLAGS="-I$sqlite3_prefix_include"
  5667. fi
  5668. fi
  5669. if test "x$have_sqlite3" = "xyes"; then
  5670. LIBS="$SQLITE3_LIBS $LIBS"
  5671. CPPFLAGS="$SQLITE3_CFLAGS $CPPFLAGS"
  5672. for ac_func in sqlite3_open_v2
  5673. do :
  5674. ac_fn_cxx_check_func "$LINENO" "sqlite3_open_v2" "ac_cv_func_sqlite3_open_v2"
  5675. if test "x$ac_cv_func_sqlite3_open_v2" = x""yes; then :
  5676. cat >>confdefs.h <<_ACEOF
  5677. #define HAVE_SQLITE3_OPEN_V2 1
  5678. _ACEOF
  5679. fi
  5680. done
  5681. $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
  5682. fi
  5683. LIBS=$LIBS_save
  5684. CPPFLAGS=$CPPFLAGS_save
  5685. if test "x$have_sqlite3" != "xyes" &&
  5686. test "x$with_sqlite3_requested" = "xyes"; then
  5687. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5688. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5689. as_fn_error "sqlite3 is requested but not found in the system.
  5690. See \`config.log' for more details." "$LINENO" 5; }
  5691. fi
  5692. fi
  5693. if test "x$with_gnutls" = "xyes"; then
  5694. # gnutls >= 2.8 doesn't have libgnutls-config anymore.
  5695. # First check the presence of libgnutls using pkg-config.
  5696. pkg_failed=no
  5697. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGNUTLS" >&5
  5698. $as_echo_n "checking for LIBGNUTLS... " >&6; }
  5699. if test -n "$PKG_CONFIG"; then
  5700. if test -n "$LIBGNUTLS_CFLAGS"; then
  5701. pkg_cv_LIBGNUTLS_CFLAGS="$LIBGNUTLS_CFLAGS"
  5702. else
  5703. if test -n "$PKG_CONFIG" && \
  5704. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= 1.2.9\""; } >&5
  5705. ($PKG_CONFIG --exists --print-errors "gnutls >= 1.2.9") 2>&5
  5706. ac_status=$?
  5707. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5708. test $ac_status = 0; }; then
  5709. pkg_cv_LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 1.2.9" 2>/dev/null`
  5710. else
  5711. pkg_failed=yes
  5712. fi
  5713. fi
  5714. else
  5715. pkg_failed=untried
  5716. fi
  5717. if test -n "$PKG_CONFIG"; then
  5718. if test -n "$LIBGNUTLS_LIBS"; then
  5719. pkg_cv_LIBGNUTLS_LIBS="$LIBGNUTLS_LIBS"
  5720. else
  5721. if test -n "$PKG_CONFIG" && \
  5722. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= 1.2.9\""; } >&5
  5723. ($PKG_CONFIG --exists --print-errors "gnutls >= 1.2.9") 2>&5
  5724. ac_status=$?
  5725. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5726. test $ac_status = 0; }; then
  5727. pkg_cv_LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 1.2.9" 2>/dev/null`
  5728. else
  5729. pkg_failed=yes
  5730. fi
  5731. fi
  5732. else
  5733. pkg_failed=untried
  5734. fi
  5735. if test $pkg_failed = yes; then
  5736. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  5737. _pkg_short_errors_supported=yes
  5738. else
  5739. _pkg_short_errors_supported=no
  5740. fi
  5741. if test $_pkg_short_errors_supported = yes; then
  5742. LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnutls >= 1.2.9"`
  5743. else
  5744. LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 1.2.9"`
  5745. fi
  5746. # Put the nasty error message in config.log where it belongs
  5747. echo "$LIBGNUTLS_PKG_ERRORS" >&5
  5748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5749. $as_echo "no" >&6; }
  5750. have_libgnutls=no
  5751. elif test $pkg_failed = untried; then
  5752. have_libgnutls=no
  5753. else
  5754. LIBGNUTLS_CFLAGS=$pkg_cv_LIBGNUTLS_CFLAGS
  5755. LIBGNUTLS_LIBS=$pkg_cv_LIBGNUTLS_LIBS
  5756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5757. $as_echo "yes" >&6; }
  5758. have_libgnutls=yes
  5759. fi
  5760. # If no libgnutls found by pkg-config, fall back to old macro
  5761. if test "x$have_libgnutls" = "xno"; then
  5762. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $LIBGNUTLS_PKG_ERRORS" >&5
  5763. $as_echo "$as_me: WARNING: $LIBGNUTLS_PKG_ERRORS" >&2;}
  5764. # Check whether --with-libgnutls-prefix was given.
  5765. if test "${with_libgnutls_prefix+set}" = set; then :
  5766. withval=$with_libgnutls_prefix; libgnutls_config_prefix="$withval"
  5767. else
  5768. libgnutls_config_prefix=""
  5769. fi
  5770. if test x$libgnutls_config_prefix != x ; then
  5771. if test x${LIBGNUTLS_CONFIG+set} != xset ; then
  5772. LIBGNUTLS_CONFIG=$libgnutls_config_prefix/bin/libgnutls-config
  5773. fi
  5774. fi
  5775. # Extract the first word of "libgnutls-config", so it can be a program name with args.
  5776. set dummy libgnutls-config; ac_word=$2
  5777. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5778. $as_echo_n "checking for $ac_word... " >&6; }
  5779. if test "${ac_cv_path_LIBGNUTLS_CONFIG+set}" = set; then :
  5780. $as_echo_n "(cached) " >&6
  5781. else
  5782. case $LIBGNUTLS_CONFIG in
  5783. [\\/]* | ?:[\\/]*)
  5784. ac_cv_path_LIBGNUTLS_CONFIG="$LIBGNUTLS_CONFIG" # Let the user override the test with a path.
  5785. ;;
  5786. *)
  5787. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5788. for as_dir in $PATH
  5789. do
  5790. IFS=$as_save_IFS
  5791. test -z "$as_dir" && as_dir=.
  5792. for ac_exec_ext in '' $ac_executable_extensions; do
  5793. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5794. ac_cv_path_LIBGNUTLS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5795. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5796. break 2
  5797. fi
  5798. done
  5799. done
  5800. IFS=$as_save_IFS
  5801. test -z "$ac_cv_path_LIBGNUTLS_CONFIG" && ac_cv_path_LIBGNUTLS_CONFIG="no"
  5802. ;;
  5803. esac
  5804. fi
  5805. LIBGNUTLS_CONFIG=$ac_cv_path_LIBGNUTLS_CONFIG
  5806. if test -n "$LIBGNUTLS_CONFIG"; then
  5807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CONFIG" >&5
  5808. $as_echo "$LIBGNUTLS_CONFIG" >&6; }
  5809. else
  5810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5811. $as_echo "no" >&6; }
  5812. fi
  5813. min_libgnutls_version=1.2.9
  5814. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgnutls - version >= $min_libgnutls_version" >&5
  5815. $as_echo_n "checking for libgnutls - version >= $min_libgnutls_version... " >&6; }
  5816. no_libgnutls=""
  5817. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  5818. no_libgnutls=yes
  5819. else
  5820. LIBGNUTLS_CFLAGS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --cflags`
  5821. LIBGNUTLS_LIBS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --libs`
  5822. libgnutls_config_version=`$LIBGNUTLS_CONFIG $libgnutls_config_args --version`
  5823. ac_save_CFLAGS="$CFLAGS"
  5824. ac_save_LIBS="$LIBS"
  5825. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  5826. LIBS="$LIBS $LIBGNUTLS_LIBS"
  5827. rm -f conf.libgnutlstest
  5828. if test "$cross_compiling" = yes; then :
  5829. echo $ac_n "cross compiling; assumed OK... $ac_c"
  5830. else
  5831. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5832. /* end confdefs.h. */
  5833. #include <stdio.h>
  5834. #include <stdlib.h>
  5835. #include <string.h>
  5836. #include <gnutls/gnutls.h>
  5837. int
  5838. main ()
  5839. {
  5840. system ("touch conf.libgnutlstest");
  5841. if( strcmp( gnutls_check_version(NULL), "$libgnutls_config_version" ) )
  5842. {
  5843. printf("\n*** 'libgnutls-config --version' returned %s, but LIBGNUTLS (%s)\n",
  5844. "$libgnutls_config_version", gnutls_check_version(NULL) );
  5845. printf("*** was found! If libgnutls-config was correct, then it is best\n");
  5846. printf("*** to remove the old version of LIBGNUTLS. You may also be able to fix the error\n");
  5847. printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
  5848. printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
  5849. printf("*** required on your system.\n");
  5850. printf("*** If libgnutls-config was wrong, set the environment variable LIBGNUTLS_CONFIG\n");
  5851. printf("*** to point to the correct copy of libgnutls-config, and remove the file config.cache\n");
  5852. printf("*** before re-running configure\n");
  5853. }
  5854. else if ( strcmp(gnutls_check_version(NULL), LIBGNUTLS_VERSION ) )
  5855. {
  5856. printf("\n*** LIBGNUTLS header file (version %s) does not match\n", LIBGNUTLS_VERSION);
  5857. printf("*** library (version %s)\n", gnutls_check_version(NULL) );
  5858. }
  5859. else
  5860. {
  5861. if ( gnutls_check_version( "$min_libgnutls_version" ) )
  5862. {
  5863. return 0;
  5864. }
  5865. else
  5866. {
  5867. printf("no\n*** An old version of LIBGNUTLS (%s) was found.\n",
  5868. gnutls_check_version(NULL) );
  5869. printf("*** You need a version of LIBGNUTLS newer than %s. The latest version of\n",
  5870. "$min_libgnutls_version" );
  5871. printf("*** LIBGNUTLS is always available from ftp://gnutls.hellug.gr/pub/gnutls.\n");
  5872. printf("*** \n");
  5873. printf("*** If you have already installed a sufficiently new version, this error\n");
  5874. printf("*** probably means that the wrong copy of the libgnutls-config shell script is\n");
  5875. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  5876. printf("*** of LIBGNUTLS, but you can also set the LIBGNUTLS_CONFIG environment to point to the\n");
  5877. printf("*** correct copy of libgnutls-config. (In this case, you will have to\n");
  5878. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  5879. printf("*** so that the correct libraries are found at run-time))\n");
  5880. }
  5881. }
  5882. return 1;
  5883. }
  5884. _ACEOF
  5885. if ac_fn_cxx_try_run "$LINENO"; then :
  5886. else
  5887. no_libgnutls=yes
  5888. fi
  5889. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5890. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5891. fi
  5892. CFLAGS="$ac_save_CFLAGS"
  5893. LIBS="$ac_save_LIBS"
  5894. fi
  5895. if test "x$no_libgnutls" = x ; then
  5896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5897. $as_echo "yes" >&6; }
  5898. have_libgnutls=yes
  5899. else
  5900. if test -f conf.libgnutlstest ; then
  5901. :
  5902. else
  5903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5904. $as_echo "no" >&6; }
  5905. fi
  5906. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  5907. echo "*** The libgnutls-config script installed by LIBGNUTLS could not be found"
  5908. echo "*** If LIBGNUTLS was installed in PREFIX, make sure PREFIX/bin is in"
  5909. echo "*** your path, or set the LIBGNUTLS_CONFIG environment variable to the"
  5910. echo "*** full path to libgnutls-config."
  5911. else
  5912. if test -f conf.libgnutlstest ; then
  5913. :
  5914. else
  5915. echo "*** Could not run libgnutls test program, checking why..."
  5916. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  5917. LIBS="$LIBS $LIBGNUTLS_LIBS"
  5918. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5919. /* end confdefs.h. */
  5920. #include <stdio.h>
  5921. #include <stdlib.h>
  5922. #include <string.h>
  5923. #include <gnutls/gnutls.h>
  5924. int
  5925. main ()
  5926. {
  5927. return !!gnutls_check_version(NULL);
  5928. ;
  5929. return 0;
  5930. }
  5931. _ACEOF
  5932. if ac_fn_cxx_try_link "$LINENO"; then :
  5933. echo "*** The test program compiled, but did not run. This usually means"
  5934. echo "*** that the run-time linker is not finding LIBGNUTLS or finding the wrong"
  5935. echo "*** version of LIBGNUTLS. If it is not finding LIBGNUTLS, you'll need to set your"
  5936. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  5937. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  5938. echo "*** is required on your system"
  5939. echo "***"
  5940. echo "*** If you have an old version installed, it is best to remove it, although"
  5941. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  5942. echo "***"
  5943. else
  5944. echo "*** The test program failed to compile or link. See the file config.log for the"
  5945. echo "*** exact error that occured. This usually means LIBGNUTLS was incorrectly installed"
  5946. echo "*** or that you have moved LIBGNUTLS since it was installed. In the latter case, you"
  5947. echo "*** may want to edit the libgnutls-config script: $LIBGNUTLS_CONFIG"
  5948. fi
  5949. rm -f core conftest.err conftest.$ac_objext \
  5950. conftest$ac_exeext conftest.$ac_ext
  5951. CFLAGS="$ac_save_CFLAGS"
  5952. LIBS="$ac_save_LIBS"
  5953. fi
  5954. fi
  5955. LIBGNUTLS_CFLAGS=""
  5956. LIBGNUTLS_LIBS=""
  5957. :
  5958. fi
  5959. rm -f conf.libgnutlstest
  5960. fi
  5961. if test "x$have_libgnutls" = "xyes"; then
  5962. $as_echo "#define HAVE_LIBGNUTLS 1" >>confdefs.h
  5963. elif test "x$with_gnutls_requested" = "xyes"; then
  5964. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5965. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5966. as_fn_error "gnutls is requested but not found in the system.
  5967. See \`config.log' for more details." "$LINENO" 5; }
  5968. fi
  5969. fi
  5970. if test "x$have_libgnutls" = "xyes"; then
  5971. # Check whether --with-libgcrypt-prefix was given.
  5972. if test "${with_libgcrypt_prefix+set}" = set; then :
  5973. withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
  5974. else
  5975. libgcrypt_config_prefix=""
  5976. fi
  5977. if test x$libgcrypt_config_prefix != x ; then
  5978. if test x${LIBGCRYPT_CONFIG+set} != xset ; then
  5979. LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
  5980. fi
  5981. fi
  5982. # Extract the first word of "libgcrypt-config", so it can be a program name with args.
  5983. set dummy libgcrypt-config; ac_word=$2
  5984. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5985. $as_echo_n "checking for $ac_word... " >&6; }
  5986. if test "${ac_cv_path_LIBGCRYPT_CONFIG+set}" = set; then :
  5987. $as_echo_n "(cached) " >&6
  5988. else
  5989. case $LIBGCRYPT_CONFIG in
  5990. [\\/]* | ?:[\\/]*)
  5991. ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
  5992. ;;
  5993. *)
  5994. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5995. for as_dir in $PATH
  5996. do
  5997. IFS=$as_save_IFS
  5998. test -z "$as_dir" && as_dir=.
  5999. for ac_exec_ext in '' $ac_executable_extensions; do
  6000. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6001. ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  6002. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6003. break 2
  6004. fi
  6005. done
  6006. done
  6007. IFS=$as_save_IFS
  6008. test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
  6009. ;;
  6010. esac
  6011. fi
  6012. LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
  6013. if test -n "$LIBGCRYPT_CONFIG"; then
  6014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT_CONFIG" >&5
  6015. $as_echo "$LIBGCRYPT_CONFIG" >&6; }
  6016. else
  6017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6018. $as_echo "no" >&6; }
  6019. fi
  6020. tmp=1.2.2
  6021. if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
  6022. req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
  6023. min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
  6024. else
  6025. req_libgcrypt_api=0
  6026. min_libgcrypt_version="$tmp"
  6027. fi
  6028. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
  6029. $as_echo_n "checking for LIBGCRYPT - version >= $min_libgcrypt_version... " >&6; }
  6030. ok=no
  6031. if test "$LIBGCRYPT_CONFIG" != "no" ; then
  6032. req_major=`echo $min_libgcrypt_version | \
  6033. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
  6034. req_minor=`echo $min_libgcrypt_version | \
  6035. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
  6036. req_micro=`echo $min_libgcrypt_version | \
  6037. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
  6038. libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
  6039. major=`echo $libgcrypt_config_version | \
  6040. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
  6041. minor=`echo $libgcrypt_config_version | \
  6042. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
  6043. micro=`echo $libgcrypt_config_version | \
  6044. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
  6045. if test "$major" -gt "$req_major"; then
  6046. ok=yes
  6047. else
  6048. if test "$major" -eq "$req_major"; then
  6049. if test "$minor" -gt "$req_minor"; then
  6050. ok=yes
  6051. else
  6052. if test "$minor" -eq "$req_minor"; then
  6053. if test "$micro" -ge "$req_micro"; then
  6054. ok=yes
  6055. fi
  6056. fi
  6057. fi
  6058. fi
  6059. fi
  6060. fi
  6061. if test $ok = yes; then
  6062. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($libgcrypt_config_version)" >&5
  6063. $as_echo "yes ($libgcrypt_config_version)" >&6; }
  6064. else
  6065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6066. $as_echo "no" >&6; }
  6067. fi
  6068. if test $ok = yes; then
  6069. # If we have a recent libgcrypt, we should also check that the
  6070. # API is compatible
  6071. if test "$req_libgcrypt_api" -gt 0 ; then
  6072. tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
  6073. if test "$tmp" -gt 0 ; then
  6074. { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGCRYPT API version" >&5
  6075. $as_echo_n "checking LIBGCRYPT API version... " >&6; }
  6076. if test "$req_libgcrypt_api" -eq "$tmp" ; then
  6077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
  6078. $as_echo "okay" >&6; }
  6079. else
  6080. ok=no
  6081. { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5
  6082. $as_echo "does not match. want=$req_libgcrypt_api got=$tmp" >&6; }
  6083. fi
  6084. fi
  6085. fi
  6086. fi
  6087. if test $ok = yes; then
  6088. LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
  6089. LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
  6090. have_libgcrypt=yes
  6091. else
  6092. LIBGCRYPT_CFLAGS=""
  6093. LIBGCRYPT_LIBS=""
  6094. :
  6095. fi
  6096. if test "x$have_libgcrypt" = "xyes"; then
  6097. $as_echo "#define HAVE_LIBGCRYPT 1" >>confdefs.h
  6098. fi
  6099. fi
  6100. if test "x$with_openssl" = "xyes" && test "x$have_libgnutls" != "xyes"; then
  6101. # Check whether --with-openssl-prefix was given.
  6102. if test "${with_openssl_prefix+set}" = set; then :
  6103. withval=$with_openssl_prefix; openssl_prefix=$withval
  6104. else
  6105. openssl_prefix=""
  6106. fi
  6107. if test "x$openssl_prefix" = "x"; then
  6108. openssl_prefix="/usr/local"
  6109. fi
  6110. LIBS_save=$LIBS
  6111. CPPFLAGS_save=$CPPFLAGS
  6112. PKG_CONFIG="$openssl_prefix/bin/pkg-config"
  6113. if test -x $PKG_CONFIG; then
  6114. { $as_echo "$as_me:${as_lineno-$LINENO}: checking checking availability of openssl using pkg-config" >&5
  6115. $as_echo_n "checking checking availability of openssl using pkg-config... " >&6; }
  6116. $PKG_CONFIG --exists openssl
  6117. if test "$?" = "0"; then
  6118. # Use pkg-config to detect LIBS and CFLAGS
  6119. OPENSSL_LIBS=`$PKG_CONFIG --libs openssl`
  6120. OPENSSL_CFLAGS=`$PKG_CONFIG --cflags openssl`
  6121. LIBS="$OPENSSL_LIBS $LIBS"
  6122. CPPFLAGS="$OPENSSL_CFLAGS $CPPFLAGS"
  6123. have_openssl=yes
  6124. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6125. $as_echo "yes" >&6; }
  6126. else
  6127. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6128. $as_echo "no" >&6; }
  6129. fi
  6130. fi
  6131. if test "x$have_openssl" != "xyes"; then
  6132. openssl_prefix_lib=$openssl_prefix/lib
  6133. openssl_prefix_include=$openssl_prefix/include
  6134. LIBS="-L$openssl_prefix_lib $LIBS"
  6135. CPPFLAGS="-I$openssl_prefix_include $CPPFLAGS"
  6136. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_library_init in -lssl" >&5
  6137. $as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
  6138. if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then :
  6139. $as_echo_n "(cached) " >&6
  6140. else
  6141. ac_check_lib_save_LIBS=$LIBS
  6142. LIBS="-lssl $LIBS"
  6143. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6144. /* end confdefs.h. */
  6145. /* Override any GCC internal prototype to avoid an error.
  6146. Use char because int might match the return type of a GCC
  6147. builtin and then its argument prototype would still apply. */
  6148. #ifdef __cplusplus
  6149. extern "C"
  6150. #endif
  6151. char SSL_library_init ();
  6152. int
  6153. main ()
  6154. {
  6155. return SSL_library_init ();
  6156. ;
  6157. return 0;
  6158. }
  6159. _ACEOF
  6160. if ac_fn_cxx_try_link "$LINENO"; then :
  6161. ac_cv_lib_ssl_SSL_library_init=yes
  6162. else
  6163. ac_cv_lib_ssl_SSL_library_init=no
  6164. fi
  6165. rm -f core conftest.err conftest.$ac_objext \
  6166. conftest$ac_exeext conftest.$ac_ext
  6167. LIBS=$ac_check_lib_save_LIBS
  6168. fi
  6169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_library_init" >&5
  6170. $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
  6171. if test "x$ac_cv_lib_ssl_SSL_library_init" = x""yes; then :
  6172. have_openssl=yes LIBS="-lssl $LIBS"
  6173. fi
  6174. if test "x$have_openssl" = "xyes"; then
  6175. have_openssl=no
  6176. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lcrypto" >&5
  6177. $as_echo_n "checking for main in -lcrypto... " >&6; }
  6178. if test "${ac_cv_lib_crypto_main+set}" = set; then :
  6179. $as_echo_n "(cached) " >&6
  6180. else
  6181. ac_check_lib_save_LIBS=$LIBS
  6182. LIBS="-lcrypto $LIBS"
  6183. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6184. /* end confdefs.h. */
  6185. int
  6186. main ()
  6187. {
  6188. return main ();
  6189. ;
  6190. return 0;
  6191. }
  6192. _ACEOF
  6193. if ac_fn_cxx_try_link "$LINENO"; then :
  6194. ac_cv_lib_crypto_main=yes
  6195. else
  6196. ac_cv_lib_crypto_main=no
  6197. fi
  6198. rm -f core conftest.err conftest.$ac_objext \
  6199. conftest$ac_exeext conftest.$ac_ext
  6200. LIBS=$ac_check_lib_save_LIBS
  6201. fi
  6202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_main" >&5
  6203. $as_echo "$ac_cv_lib_crypto_main" >&6; }
  6204. if test "x$ac_cv_lib_crypto_main" = x""yes; then :
  6205. have_openssl=yes; LIBS="-lcrypto $LIBS"
  6206. fi
  6207. if test "x$have_openssl" = "xyes"; then
  6208. OPENSSL_LIBS="-L$openssl_prefix_lib -lssl -lcrypto"
  6209. OPENSSL_CFLAGS="-I$openssl_prefix_include"
  6210. fi
  6211. fi
  6212. fi
  6213. if test "x$have_openssl" = "xyes"; then
  6214. $as_echo "#define HAVE_LIBSSL 1" >>confdefs.h
  6215. # check whether EVP_DigestInit_ex exists. Old openssl doesn't have it.
  6216. for ac_func in EVP_DigestInit_ex
  6217. do :
  6218. ac_fn_cxx_check_func "$LINENO" "EVP_DigestInit_ex" "ac_cv_func_EVP_DigestInit_ex"
  6219. if test "x$ac_cv_func_EVP_DigestInit_ex" = x""yes; then :
  6220. cat >>confdefs.h <<_ACEOF
  6221. #define HAVE_EVP_DIGESTINIT_EX 1
  6222. _ACEOF
  6223. have_digestinit_ex=yes
  6224. fi
  6225. done
  6226. if test "x$have_digestinit_ex" = "x"; then
  6227. $as_echo "#define HAVE_OLD_LIBSSL 1" >>confdefs.h
  6228. fi
  6229. # search for sha256 support
  6230. for ac_func in EVP_sha256
  6231. do :
  6232. ac_fn_cxx_check_func "$LINENO" "EVP_sha256" "ac_cv_func_EVP_sha256"
  6233. if test "x$ac_cv_func_EVP_sha256" = x""yes; then :
  6234. cat >>confdefs.h <<_ACEOF
  6235. #define HAVE_EVP_SHA256 1
  6236. _ACEOF
  6237. fi
  6238. done
  6239. fi
  6240. LIBS=$LIBS_save
  6241. CPPFLAGS=$CPPFLAGS_save
  6242. if test "x$have_openssl" != "xyes" &&
  6243. test "x$with_openssl_requested" = "xyes"; then
  6244. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6245. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6246. as_fn_error "openssl is requested but not found in the system.
  6247. See \`config.log' for more details." "$LINENO" 5; }
  6248. fi
  6249. fi
  6250. if test "x$with_libcares" = "xyes"; then
  6251. # Check whether --with-libcares-prefix was given.
  6252. if test "${with_libcares_prefix+set}" = set; then :
  6253. withval=$with_libcares_prefix; libcares_prefix=$withval
  6254. else
  6255. libcares_prefix=""
  6256. fi
  6257. if test "x$libcares_prefix" = "x"; then
  6258. libcares_prefix="/usr"
  6259. fi
  6260. libcares_prefix_lib=$libcares_prefix/lib
  6261. libcares_prefix_include=$libcares_prefix/include
  6262. LIBS_save=$LIBS
  6263. CPPFLAGS_save=$CPPFLAGS
  6264. LIBS="-L$libcares_prefix_lib $LIBS"
  6265. CPPFLAGS="-I$libcares_prefix_include -Wall $CPPFLAGS"
  6266. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ares_init in -lcares" >&5
  6267. $as_echo_n "checking for ares_init in -lcares... " >&6; }
  6268. if test "${ac_cv_lib_cares_ares_init+set}" = set; then :
  6269. $as_echo_n "(cached) " >&6
  6270. else
  6271. ac_check_lib_save_LIBS=$LIBS
  6272. LIBS="-lcares $LIBS"
  6273. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6274. /* end confdefs.h. */
  6275. /* Override any GCC internal prototype to avoid an error.
  6276. Use char because int might match the return type of a GCC
  6277. builtin and then its argument prototype would still apply. */
  6278. #ifdef __cplusplus
  6279. extern "C"
  6280. #endif
  6281. char ares_init ();
  6282. int
  6283. main ()
  6284. {
  6285. return ares_init ();
  6286. ;
  6287. return 0;
  6288. }
  6289. _ACEOF
  6290. if ac_fn_cxx_try_link "$LINENO"; then :
  6291. ac_cv_lib_cares_ares_init=yes
  6292. else
  6293. ac_cv_lib_cares_ares_init=no
  6294. fi
  6295. rm -f core conftest.err conftest.$ac_objext \
  6296. conftest$ac_exeext conftest.$ac_ext
  6297. LIBS=$ac_check_lib_save_LIBS
  6298. fi
  6299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cares_ares_init" >&5
  6300. $as_echo "$ac_cv_lib_cares_ares_init" >&6; }
  6301. if test "x$ac_cv_lib_cares_ares_init" = x""yes; then :
  6302. have_libcares=yes
  6303. fi
  6304. if test "x$have_libcares" != "xyes"; then
  6305. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ares_init in -lcares" >&5
  6306. $as_echo_n "checking for ares_init in -lcares... " >&6; }
  6307. if test "${ac_cv_lib_cares_ares_init+set}" = set; then :
  6308. $as_echo_n "(cached) " >&6
  6309. else
  6310. ac_check_lib_save_LIBS=$LIBS
  6311. LIBS="-lcares -lrt $LIBS"
  6312. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6313. /* end confdefs.h. */
  6314. /* Override any GCC internal prototype to avoid an error.
  6315. Use char because int might match the return type of a GCC
  6316. builtin and then its argument prototype would still apply. */
  6317. #ifdef __cplusplus
  6318. extern "C"
  6319. #endif
  6320. char ares_init ();
  6321. int
  6322. main ()
  6323. {
  6324. return ares_init ();
  6325. ;
  6326. return 0;
  6327. }
  6328. _ACEOF
  6329. if ac_fn_cxx_try_link "$LINENO"; then :
  6330. ac_cv_lib_cares_ares_init=yes
  6331. else
  6332. ac_cv_lib_cares_ares_init=no
  6333. fi
  6334. rm -f core conftest.err conftest.$ac_objext \
  6335. conftest$ac_exeext conftest.$ac_ext
  6336. LIBS=$ac_check_lib_save_LIBS
  6337. fi
  6338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cares_ares_init" >&5
  6339. $as_echo "$ac_cv_lib_cares_ares_init" >&6; }
  6340. if test "x$ac_cv_lib_cares_ares_init" = x""yes; then :
  6341. have_libcares=yes need_librt=yes
  6342. fi
  6343. fi
  6344. if test "x$have_libcares" = "xyes"; then
  6345. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ares_host_callback accepts timeouts(c-ares >= 1.5)" >&5
  6346. $as_echo_n "checking whether ares_host_callback accepts timeouts(c-ares >= 1.5)... " >&6; }
  6347. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6348. /* end confdefs.h. */
  6349. #include <ares.h>
  6350. void callback(void* arg, int status, int timeouts, struct hostent* host);
  6351. int
  6352. main ()
  6353. {
  6354. ares_channel channel;
  6355. ares_gethostbyname(channel, "foo", 0, callback, 0);
  6356. ;
  6357. return 0;
  6358. }
  6359. _ACEOF
  6360. if ac_fn_cxx_try_compile "$LINENO"; then :
  6361. have_libcares1_5=yes
  6362. else
  6363. have_libcares1_5=no
  6364. fi
  6365. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_libcares1_5" >&5
  6367. $as_echo "$have_libcares1_5" >&6; }
  6368. if test "x$have_libcares1_5" = "xyes"; then
  6369. $as_echo "#define HAVE_LIBCARES1_5 1" >>confdefs.h
  6370. fi
  6371. $as_echo "#define HAVE_LIBCARES 1" >>confdefs.h
  6372. LIBCARES_LIBS="-L$libcares_prefix_lib -lcares"
  6373. if test "x$need_librt" = "xyes"; then
  6374. LIBCARES_LIBS="$LIBCARES_LIBS -lrt"
  6375. fi
  6376. LIBCARES_CPPFLAGS="-I$libcares_prefix_include"
  6377. fi
  6378. LIBS=$LIBS_save
  6379. CPPFLAGS=$CPPFLAGS_save
  6380. if test "x$have_libcares" != "xyes" &&
  6381. test "x$with_libcares_requested" = "xyes"; then
  6382. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6383. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6384. as_fn_error "libcares is requested but not found in the system.
  6385. See \`config.log' for more details." "$LINENO" 5; }
  6386. fi
  6387. fi
  6388. # Check availability of libz
  6389. if test "x$with_libz" = "xyes"; then
  6390. # Check whether --with-libz-prefix was given.
  6391. if test "${with_libz_prefix+set}" = set; then :
  6392. withval=$with_libz_prefix; libz_prefix=$withval
  6393. else
  6394. libz_prefix=""
  6395. fi
  6396. if test "x$libz_prefix" = "x"; then
  6397. libz_prefix="/usr"
  6398. fi
  6399. libz_prefix_lib=$libz_prefix/lib
  6400. libz_prefix_include=$libz_prefix/include
  6401. LIBS_save=$LIBS
  6402. CPPFLAGS_save=$CPPFLAGS
  6403. LIBS="-L$libz_prefix_lib $LIBS"
  6404. CPPFLAGS="-I$libz_prefix_include $CPPFLAGS"
  6405. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5
  6406. $as_echo_n "checking for zlibVersion in -lz... " >&6; }
  6407. if test "${ac_cv_lib_z_zlibVersion+set}" = set; then :
  6408. $as_echo_n "(cached) " >&6
  6409. else
  6410. ac_check_lib_save_LIBS=$LIBS
  6411. LIBS="-lz $LIBS"
  6412. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6413. /* end confdefs.h. */
  6414. /* Override any GCC internal prototype to avoid an error.
  6415. Use char because int might match the return type of a GCC
  6416. builtin and then its argument prototype would still apply. */
  6417. #ifdef __cplusplus
  6418. extern "C"
  6419. #endif
  6420. char zlibVersion ();
  6421. int
  6422. main ()
  6423. {
  6424. return zlibVersion ();
  6425. ;
  6426. return 0;
  6427. }
  6428. _ACEOF
  6429. if ac_fn_cxx_try_link "$LINENO"; then :
  6430. ac_cv_lib_z_zlibVersion=yes
  6431. else
  6432. ac_cv_lib_z_zlibVersion=no
  6433. fi
  6434. rm -f core conftest.err conftest.$ac_objext \
  6435. conftest$ac_exeext conftest.$ac_ext
  6436. LIBS=$ac_check_lib_save_LIBS
  6437. fi
  6438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5
  6439. $as_echo "$ac_cv_lib_z_zlibVersion" >&6; }
  6440. if test "x$ac_cv_lib_z_zlibVersion" = x""yes; then :
  6441. have_libz=yes
  6442. fi
  6443. if test "x$have_libz" = "xyes"; then
  6444. $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
  6445. LIBZ_LIBS="-L$libz_prefix_lib -lz"
  6446. LIBZ_CPPFLAGS="-I$libz_prefix_include"
  6447. fi
  6448. LIBS=$LIBS_save
  6449. CPPFLAGS=$CPPFLAGS_save
  6450. if test "x$have_libz" != "xyes" && test "x$with_libz_requested" = "xyes"; then
  6451. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6452. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6453. as_fn_error "libz is requested but not found in the system.
  6454. See \`config.log' for more details." "$LINENO" 5; }
  6455. fi
  6456. fi
  6457. # Define variables based on the result of the checks for libraries.
  6458. if test "x$have_libgnutls" = "xyes" || test "x$have_openssl" = "xyes"; then
  6459. $as_echo "#define ENABLE_SSL 1" >>confdefs.h
  6460. if true; then
  6461. ENABLE_SSL_TRUE=
  6462. ENABLE_SSL_FALSE='#'
  6463. else
  6464. ENABLE_SSL_TRUE='#'
  6465. ENABLE_SSL_FALSE=
  6466. fi
  6467. else
  6468. if false; then
  6469. ENABLE_SSL_TRUE=
  6470. ENABLE_SSL_FALSE='#'
  6471. else
  6472. ENABLE_SSL_TRUE='#'
  6473. ENABLE_SSL_FALSE=
  6474. fi
  6475. fi
  6476. if test "x$have_libgnutls" = "xyes" ; then
  6477. HAVE_LIBGNUTLS_TRUE=
  6478. HAVE_LIBGNUTLS_FALSE='#'
  6479. else
  6480. HAVE_LIBGNUTLS_TRUE='#'
  6481. HAVE_LIBGNUTLS_FALSE=
  6482. fi
  6483. if test "x$have_openssl" = "xyes" ; then
  6484. HAVE_LIBSSL_TRUE=
  6485. HAVE_LIBSSL_FALSE='#'
  6486. else
  6487. HAVE_LIBSSL_TRUE='#'
  6488. HAVE_LIBSSL_FALSE=
  6489. fi
  6490. if test "x$have_libgcrypt" = "xyes" || test "x$have_openssl" = "xyes"; then
  6491. $as_echo "#define ENABLE_MESSAGE_DIGEST 1" >>confdefs.h
  6492. if true; then
  6493. ENABLE_MESSAGE_DIGEST_TRUE=
  6494. ENABLE_MESSAGE_DIGEST_FALSE='#'
  6495. else
  6496. ENABLE_MESSAGE_DIGEST_TRUE='#'
  6497. ENABLE_MESSAGE_DIGEST_FALSE=
  6498. fi
  6499. enable_message_digest=yes
  6500. else
  6501. if false; then
  6502. ENABLE_MESSAGE_DIGEST_TRUE=
  6503. ENABLE_MESSAGE_DIGEST_FALSE='#'
  6504. else
  6505. ENABLE_MESSAGE_DIGEST_TRUE='#'
  6506. ENABLE_MESSAGE_DIGEST_FALSE=
  6507. fi
  6508. fi
  6509. if test "x$enable_bittorrent" = "xyes" &&
  6510. test "x$enable_message_digest" = "xyes"; then
  6511. $as_echo "#define ENABLE_BITTORRENT 1" >>confdefs.h
  6512. if true; then
  6513. ENABLE_BITTORRENT_TRUE=
  6514. ENABLE_BITTORRENT_FALSE='#'
  6515. else
  6516. ENABLE_BITTORRENT_TRUE='#'
  6517. ENABLE_BITTORRENT_FALSE=
  6518. fi
  6519. else
  6520. if test "x$enable_bittorrent_requested" = "xyes"; then
  6521. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6522. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6523. as_fn_error "bittorrent is requested but cannot be enabled with current\
  6524. configuration.\
  6525. Make sure that dependent libraries are installed and configure script options\
  6526. are correct.
  6527. See \`config.log' for more details." "$LINENO" 5; }
  6528. fi
  6529. enable_bittorrent=no
  6530. if false; then
  6531. ENABLE_BITTORRENT_TRUE=
  6532. ENABLE_BITTORRENT_FALSE='#'
  6533. else
  6534. ENABLE_BITTORRENT_TRUE='#'
  6535. ENABLE_BITTORRENT_FALSE=
  6536. fi
  6537. fi
  6538. if (test "x$have_libxml2" = "xyes" || test "x$have_libexpat" = "xyes") &&
  6539. test "x$enable_metalink" = "xyes"; then
  6540. $as_echo "#define ENABLE_METALINK 1" >>confdefs.h
  6541. if true; then
  6542. ENABLE_METALINK_TRUE=
  6543. ENABLE_METALINK_FALSE='#'
  6544. else
  6545. ENABLE_METALINK_TRUE='#'
  6546. ENABLE_METALINK_FALSE=
  6547. fi
  6548. else
  6549. if test "x$enable_metalink_requested" = "xyes"; then
  6550. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6551. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6552. as_fn_error "metalink is requested but cannot be enabled with current\
  6553. configuration.\
  6554. Make sure that dependent libraries are installed and configure script options\
  6555. are correct.
  6556. See \`config.log' for more details." "$LINENO" 5; }
  6557. fi
  6558. enable_metalink=no
  6559. if false; then
  6560. ENABLE_METALINK_TRUE=
  6561. ENABLE_METALINK_FALSE='#'
  6562. else
  6563. ENABLE_METALINK_TRUE='#'
  6564. ENABLE_METALINK_FALSE=
  6565. fi
  6566. fi
  6567. if test "x$enable_metalink" = "xyes" && test "x$have_libxml2" = "xyes"; then
  6568. ENABLE_METALINK_LIBXML2_TRUE=
  6569. ENABLE_METALINK_LIBXML2_FALSE='#'
  6570. else
  6571. ENABLE_METALINK_LIBXML2_TRUE='#'
  6572. ENABLE_METALINK_LIBXML2_FALSE=
  6573. fi
  6574. if test "x$enable_metalink" = "xyes" && test "x$have_libexpat" = "xyes"; then
  6575. ENABLE_METALINK_LIBEXPAT_TRUE=
  6576. ENABLE_METALINK_LIBEXPAT_FALSE='#'
  6577. else
  6578. ENABLE_METALINK_LIBEXPAT_TRUE='#'
  6579. ENABLE_METALINK_LIBEXPAT_FALSE=
  6580. fi
  6581. if test "x$have_libxml2" = "xyes" || test "x$have_libexpat" = "xyes"; then
  6582. enable_xml_rpc=yes
  6583. fi
  6584. if test "x$enable_xml_rpc" = "xyes"; then
  6585. $as_echo "#define ENABLE_XML_RPC 1" >>confdefs.h
  6586. fi
  6587. if test "x$enable_xml_rpc" = "xyes"; then
  6588. ENABLE_XML_RPC_TRUE=
  6589. ENABLE_XML_RPC_FALSE='#'
  6590. else
  6591. ENABLE_XML_RPC_TRUE='#'
  6592. ENABLE_XML_RPC_FALSE=
  6593. fi
  6594. if test "x$have_libxml2" = "xyes"; then
  6595. HAVE_LIBXML2_TRUE=
  6596. HAVE_LIBXML2_FALSE='#'
  6597. else
  6598. HAVE_LIBXML2_TRUE='#'
  6599. HAVE_LIBXML2_FALSE=
  6600. fi
  6601. if test "x$have_libexpat" = "xyes"; then
  6602. HAVE_LIBEXPAT_TRUE=
  6603. HAVE_LIBEXPAT_FALSE='#'
  6604. else
  6605. HAVE_LIBEXPAT_TRUE='#'
  6606. HAVE_LIBEXPAT_FALSE=
  6607. fi
  6608. if test "x$have_libcares" = "xyes"; then
  6609. $as_echo "#define ENABLE_ASYNC_DNS 1" >>confdefs.h
  6610. if true; then
  6611. ENABLE_ASYNC_DNS_TRUE=
  6612. ENABLE_ASYNC_DNS_FALSE='#'
  6613. else
  6614. ENABLE_ASYNC_DNS_TRUE='#'
  6615. ENABLE_ASYNC_DNS_FALSE=
  6616. fi
  6617. else
  6618. if false; then
  6619. ENABLE_ASYNC_DNS_TRUE=
  6620. ENABLE_ASYNC_DNS_FALSE='#'
  6621. else
  6622. ENABLE_ASYNC_DNS_TRUE='#'
  6623. ENABLE_ASYNC_DNS_FALSE=
  6624. fi
  6625. fi
  6626. # Set conditional for libz
  6627. if test "x$have_libz" = "xyes"; then
  6628. HAVE_LIBZ_TRUE=
  6629. HAVE_LIBZ_FALSE='#'
  6630. else
  6631. HAVE_LIBZ_TRUE='#'
  6632. HAVE_LIBZ_FALSE=
  6633. fi
  6634. # Set conditional for sqlite3
  6635. if test "x$have_sqlite3" = "xyes"; then
  6636. HAVE_SQLITE3_TRUE=
  6637. HAVE_SQLITE3_FALSE='#'
  6638. else
  6639. HAVE_SQLITE3_TRUE='#'
  6640. HAVE_SQLITE3_FALSE=
  6641. fi
  6642. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
  6643. $as_echo_n "checking for library containing clock_gettime... " >&6; }
  6644. if test "${ac_cv_search_clock_gettime+set}" = set; then :
  6645. $as_echo_n "(cached) " >&6
  6646. else
  6647. ac_func_search_save_LIBS=$LIBS
  6648. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6649. /* end confdefs.h. */
  6650. /* Override any GCC internal prototype to avoid an error.
  6651. Use char because int might match the return type of a GCC
  6652. builtin and then its argument prototype would still apply. */
  6653. #ifdef __cplusplus
  6654. extern "C"
  6655. #endif
  6656. char clock_gettime ();
  6657. int
  6658. main ()
  6659. {
  6660. return clock_gettime ();
  6661. ;
  6662. return 0;
  6663. }
  6664. _ACEOF
  6665. for ac_lib in '' rt; do
  6666. if test -z "$ac_lib"; then
  6667. ac_res="none required"
  6668. else
  6669. ac_res=-l$ac_lib
  6670. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  6671. fi
  6672. if ac_fn_cxx_try_link "$LINENO"; then :
  6673. ac_cv_search_clock_gettime=$ac_res
  6674. fi
  6675. rm -f core conftest.err conftest.$ac_objext \
  6676. conftest$ac_exeext
  6677. if test "${ac_cv_search_clock_gettime+set}" = set; then :
  6678. break
  6679. fi
  6680. done
  6681. if test "${ac_cv_search_clock_gettime+set}" = set; then :
  6682. else
  6683. ac_cv_search_clock_gettime=no
  6684. fi
  6685. rm conftest.$ac_ext
  6686. LIBS=$ac_func_search_save_LIBS
  6687. fi
  6688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
  6689. $as_echo "$ac_cv_search_clock_gettime" >&6; }
  6690. ac_res=$ac_cv_search_clock_gettime
  6691. if test "$ac_res" != no; then :
  6692. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  6693. fi
  6694. case "$target" in
  6695. *solaris*)
  6696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
  6697. $as_echo_n "checking for library containing getaddrinfo... " >&6; }
  6698. if test "${ac_cv_search_getaddrinfo+set}" = set; then :
  6699. $as_echo_n "(cached) " >&6
  6700. else
  6701. ac_func_search_save_LIBS=$LIBS
  6702. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6703. /* end confdefs.h. */
  6704. /* Override any GCC internal prototype to avoid an error.
  6705. Use char because int might match the return type of a GCC
  6706. builtin and then its argument prototype would still apply. */
  6707. #ifdef __cplusplus
  6708. extern "C"
  6709. #endif
  6710. char getaddrinfo ();
  6711. int
  6712. main ()
  6713. {
  6714. return getaddrinfo ();
  6715. ;
  6716. return 0;
  6717. }
  6718. _ACEOF
  6719. for ac_lib in '' nsl socket; do
  6720. if test -z "$ac_lib"; then
  6721. ac_res="none required"
  6722. else
  6723. ac_res=-l$ac_lib
  6724. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  6725. fi
  6726. if ac_fn_cxx_try_link "$LINENO"; then :
  6727. ac_cv_search_getaddrinfo=$ac_res
  6728. fi
  6729. rm -f core conftest.err conftest.$ac_objext \
  6730. conftest$ac_exeext
  6731. if test "${ac_cv_search_getaddrinfo+set}" = set; then :
  6732. break
  6733. fi
  6734. done
  6735. if test "${ac_cv_search_getaddrinfo+set}" = set; then :
  6736. else
  6737. ac_cv_search_getaddrinfo=no
  6738. fi
  6739. rm conftest.$ac_ext
  6740. LIBS=$ac_func_search_save_LIBS
  6741. fi
  6742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
  6743. $as_echo "$ac_cv_search_getaddrinfo" >&6; }
  6744. ac_res=$ac_cv_search_getaddrinfo
  6745. if test "$ac_res" != no; then :
  6746. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  6747. fi
  6748. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
  6749. $as_echo_n "checking for library containing inet_aton... " >&6; }
  6750. if test "${ac_cv_search_inet_aton+set}" = set; then :
  6751. $as_echo_n "(cached) " >&6
  6752. else
  6753. ac_func_search_save_LIBS=$LIBS
  6754. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6755. /* end confdefs.h. */
  6756. /* Override any GCC internal prototype to avoid an error.
  6757. Use char because int might match the return type of a GCC
  6758. builtin and then its argument prototype would still apply. */
  6759. #ifdef __cplusplus
  6760. extern "C"
  6761. #endif
  6762. char inet_aton ();
  6763. int
  6764. main ()
  6765. {
  6766. return inet_aton ();
  6767. ;
  6768. return 0;
  6769. }
  6770. _ACEOF
  6771. for ac_lib in '' nsl socket; do
  6772. if test -z "$ac_lib"; then
  6773. ac_res="none required"
  6774. else
  6775. ac_res=-l$ac_lib
  6776. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  6777. fi
  6778. if ac_fn_cxx_try_link "$LINENO"; then :
  6779. ac_cv_search_inet_aton=$ac_res
  6780. fi
  6781. rm -f core conftest.err conftest.$ac_objext \
  6782. conftest$ac_exeext
  6783. if test "${ac_cv_search_inet_aton+set}" = set; then :
  6784. break
  6785. fi
  6786. done
  6787. if test "${ac_cv_search_inet_aton+set}" = set; then :
  6788. else
  6789. ac_cv_search_inet_aton=no
  6790. fi
  6791. rm conftest.$ac_ext
  6792. LIBS=$ac_func_search_save_LIBS
  6793. fi
  6794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
  6795. $as_echo "$ac_cv_search_inet_aton" >&6; }
  6796. ac_res=$ac_cv_search_inet_aton
  6797. if test "$ac_res" != no; then :
  6798. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  6799. fi
  6800. ;;
  6801. esac
  6802. # Checks for header files.
  6803. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  6804. # for constant arguments. Useless!
  6805. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  6806. $as_echo_n "checking for working alloca.h... " >&6; }
  6807. if test "${ac_cv_working_alloca_h+set}" = set; then :
  6808. $as_echo_n "(cached) " >&6
  6809. else
  6810. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6811. /* end confdefs.h. */
  6812. #include <alloca.h>
  6813. int
  6814. main ()
  6815. {
  6816. char *p = (char *) alloca (2 * sizeof (int));
  6817. if (p) return 0;
  6818. ;
  6819. return 0;
  6820. }
  6821. _ACEOF
  6822. if ac_fn_cxx_try_link "$LINENO"; then :
  6823. ac_cv_working_alloca_h=yes
  6824. else
  6825. ac_cv_working_alloca_h=no
  6826. fi
  6827. rm -f core conftest.err conftest.$ac_objext \
  6828. conftest$ac_exeext conftest.$ac_ext
  6829. fi
  6830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  6831. $as_echo "$ac_cv_working_alloca_h" >&6; }
  6832. if test $ac_cv_working_alloca_h = yes; then
  6833. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  6834. fi
  6835. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  6836. $as_echo_n "checking for alloca... " >&6; }
  6837. if test "${ac_cv_func_alloca_works+set}" = set; then :
  6838. $as_echo_n "(cached) " >&6
  6839. else
  6840. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6841. /* end confdefs.h. */
  6842. #ifdef __GNUC__
  6843. # define alloca __builtin_alloca
  6844. #else
  6845. # ifdef _MSC_VER
  6846. # include <malloc.h>
  6847. # define alloca _alloca
  6848. # else
  6849. # ifdef HAVE_ALLOCA_H
  6850. # include <alloca.h>
  6851. # else
  6852. # ifdef _AIX
  6853. #pragma alloca
  6854. # else
  6855. # ifndef alloca /* predefined by HP cc +Olibcalls */
  6856. char *alloca ();
  6857. # endif
  6858. # endif
  6859. # endif
  6860. # endif
  6861. #endif
  6862. int
  6863. main ()
  6864. {
  6865. char *p = (char *) alloca (1);
  6866. if (p) return 0;
  6867. ;
  6868. return 0;
  6869. }
  6870. _ACEOF
  6871. if ac_fn_cxx_try_link "$LINENO"; then :
  6872. ac_cv_func_alloca_works=yes
  6873. else
  6874. ac_cv_func_alloca_works=no
  6875. fi
  6876. rm -f core conftest.err conftest.$ac_objext \
  6877. conftest$ac_exeext conftest.$ac_ext
  6878. fi
  6879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  6880. $as_echo "$ac_cv_func_alloca_works" >&6; }
  6881. if test $ac_cv_func_alloca_works = yes; then
  6882. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  6883. else
  6884. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  6885. # that cause trouble. Some versions do not even contain alloca or
  6886. # contain a buggy version. If you still want to use their alloca,
  6887. # use ar to extract alloca.o from them instead of compiling alloca.c.
  6888. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  6889. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  6890. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  6891. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  6892. if test "${ac_cv_os_cray+set}" = set; then :
  6893. $as_echo_n "(cached) " >&6
  6894. else
  6895. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6896. /* end confdefs.h. */
  6897. #if defined CRAY && ! defined CRAY2
  6898. webecray
  6899. #else
  6900. wenotbecray
  6901. #endif
  6902. _ACEOF
  6903. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6904. $EGREP "webecray" >/dev/null 2>&1; then :
  6905. ac_cv_os_cray=yes
  6906. else
  6907. ac_cv_os_cray=no
  6908. fi
  6909. rm -f conftest*
  6910. fi
  6911. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  6912. $as_echo "$ac_cv_os_cray" >&6; }
  6913. if test $ac_cv_os_cray = yes; then
  6914. for ac_func in _getb67 GETB67 getb67; do
  6915. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6916. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  6917. eval as_val=\$$as_ac_var
  6918. if test "x$as_val" = x""yes; then :
  6919. cat >>confdefs.h <<_ACEOF
  6920. #define CRAY_STACKSEG_END $ac_func
  6921. _ACEOF
  6922. break
  6923. fi
  6924. done
  6925. fi
  6926. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  6927. $as_echo_n "checking stack direction for C alloca... " >&6; }
  6928. if test "${ac_cv_c_stack_direction+set}" = set; then :
  6929. $as_echo_n "(cached) " >&6
  6930. else
  6931. if test "$cross_compiling" = yes; then :
  6932. ac_cv_c_stack_direction=0
  6933. else
  6934. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6935. /* end confdefs.h. */
  6936. $ac_includes_default
  6937. int
  6938. find_stack_direction ()
  6939. {
  6940. static char *addr = 0;
  6941. auto char dummy;
  6942. if (addr == 0)
  6943. {
  6944. addr = &dummy;
  6945. return find_stack_direction ();
  6946. }
  6947. else
  6948. return (&dummy > addr) ? 1 : -1;
  6949. }
  6950. int
  6951. main ()
  6952. {
  6953. return find_stack_direction () < 0;
  6954. }
  6955. _ACEOF
  6956. if ac_fn_cxx_try_run "$LINENO"; then :
  6957. ac_cv_c_stack_direction=1
  6958. else
  6959. ac_cv_c_stack_direction=-1
  6960. fi
  6961. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6962. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6963. fi
  6964. fi
  6965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  6966. $as_echo "$ac_cv_c_stack_direction" >&6; }
  6967. cat >>confdefs.h <<_ACEOF
  6968. #define STACK_DIRECTION $ac_cv_c_stack_direction
  6969. _ACEOF
  6970. fi
  6971. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6972. $as_echo_n "checking for ANSI C header files... " >&6; }
  6973. if test "${ac_cv_header_stdc+set}" = set; then :
  6974. $as_echo_n "(cached) " >&6
  6975. else
  6976. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6977. /* end confdefs.h. */
  6978. #include <stdlib.h>
  6979. #include <stdarg.h>
  6980. #include <string.h>
  6981. #include <float.h>
  6982. int
  6983. main ()
  6984. {
  6985. ;
  6986. return 0;
  6987. }
  6988. _ACEOF
  6989. if ac_fn_cxx_try_compile "$LINENO"; then :
  6990. ac_cv_header_stdc=yes
  6991. else
  6992. ac_cv_header_stdc=no
  6993. fi
  6994. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6995. if test $ac_cv_header_stdc = yes; then
  6996. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6997. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6998. /* end confdefs.h. */
  6999. #include <string.h>
  7000. _ACEOF
  7001. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7002. $EGREP "memchr" >/dev/null 2>&1; then :
  7003. else
  7004. ac_cv_header_stdc=no
  7005. fi
  7006. rm -f conftest*
  7007. fi
  7008. if test $ac_cv_header_stdc = yes; then
  7009. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  7010. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7011. /* end confdefs.h. */
  7012. #include <stdlib.h>
  7013. _ACEOF
  7014. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7015. $EGREP "free" >/dev/null 2>&1; then :
  7016. else
  7017. ac_cv_header_stdc=no
  7018. fi
  7019. rm -f conftest*
  7020. fi
  7021. if test $ac_cv_header_stdc = yes; then
  7022. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  7023. if test "$cross_compiling" = yes; then :
  7024. :
  7025. else
  7026. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7027. /* end confdefs.h. */
  7028. #include <ctype.h>
  7029. #include <stdlib.h>
  7030. #if ((' ' & 0x0FF) == 0x020)
  7031. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  7032. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  7033. #else
  7034. # define ISLOWER(c) \
  7035. (('a' <= (c) && (c) <= 'i') \
  7036. || ('j' <= (c) && (c) <= 'r') \
  7037. || ('s' <= (c) && (c) <= 'z'))
  7038. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  7039. #endif
  7040. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  7041. int
  7042. main ()
  7043. {
  7044. int i;
  7045. for (i = 0; i < 256; i++)
  7046. if (XOR (islower (i), ISLOWER (i))
  7047. || toupper (i) != TOUPPER (i))
  7048. return 2;
  7049. return 0;
  7050. }
  7051. _ACEOF
  7052. if ac_fn_cxx_try_run "$LINENO"; then :
  7053. else
  7054. ac_cv_header_stdc=no
  7055. fi
  7056. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7057. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7058. fi
  7059. fi
  7060. fi
  7061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  7062. $as_echo "$ac_cv_header_stdc" >&6; }
  7063. if test $ac_cv_header_stdc = yes; then
  7064. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  7065. fi
  7066. case "$target" in
  7067. *mingw*)
  7068. for ac_header in windows.h \
  7069. winsock2.h \
  7070. ws2tcpip.h \
  7071. mmsystem.h
  7072. do :
  7073. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7074. ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_WINDOWS_H
  7075. # include <windows.h>
  7076. #endif
  7077. "
  7078. eval as_val=\$$as_ac_Header
  7079. if test "x$as_val" = x""yes; then :
  7080. cat >>confdefs.h <<_ACEOF
  7081. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7082. _ACEOF
  7083. fi
  7084. done
  7085. ;;
  7086. esac
  7087. for ac_header in argz.h \
  7088. arpa/inet.h \
  7089. fcntl.h \
  7090. float.h \
  7091. inttypes.h \
  7092. io.h \
  7093. langinfo.h \
  7094. libintl.h \
  7095. limits.h \
  7096. locale.h \
  7097. malloc.h \
  7098. netdb.h \
  7099. netinet/in.h \
  7100. stddef.h \
  7101. stdint.h \
  7102. stdio_ext.h \
  7103. stdlib.h \
  7104. string.h \
  7105. strings.h \
  7106. sys/ioctl.h \
  7107. sys/param.h \
  7108. sys/socket.h \
  7109. sys/time.h \
  7110. termios.h \
  7111. unistd.h \
  7112. utime.h \
  7113. wchar.h \
  7114. ifaddrs.h
  7115. do :
  7116. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7117. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  7118. eval as_val=\$$as_ac_Header
  7119. if test "x$as_val" = 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. # Checks for typedefs, structures, and compiler characteristics.
  7126. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
  7127. $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
  7128. if test "${ac_cv_header_stdbool_h+set}" = set; then :
  7129. $as_echo_n "(cached) " >&6
  7130. else
  7131. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7132. /* end confdefs.h. */
  7133. #include <stdbool.h>
  7134. #ifndef bool
  7135. "error: bool is not defined"
  7136. #endif
  7137. #ifndef false
  7138. "error: false is not defined"
  7139. #endif
  7140. #if false
  7141. "error: false is not 0"
  7142. #endif
  7143. #ifndef true
  7144. "error: true is not defined"
  7145. #endif
  7146. #if true != 1
  7147. "error: true is not 1"
  7148. #endif
  7149. #ifndef __bool_true_false_are_defined
  7150. "error: __bool_true_false_are_defined is not defined"
  7151. #endif
  7152. struct s { _Bool s: 1; _Bool t; } s;
  7153. char a[true == 1 ? 1 : -1];
  7154. char b[false == 0 ? 1 : -1];
  7155. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  7156. char d[(bool) 0.5 == true ? 1 : -1];
  7157. bool e = &s;
  7158. char f[(_Bool) 0.0 == false ? 1 : -1];
  7159. char g[true];
  7160. char h[sizeof (_Bool)];
  7161. char i[sizeof s.t];
  7162. enum { j = false, k = true, l = false * true, m = true * 256 };
  7163. /* The following fails for
  7164. HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
  7165. _Bool n[m];
  7166. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  7167. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  7168. # if defined __xlc__ || defined __GNUC__
  7169. /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
  7170. reported by James Lemley on 2005-10-05; see
  7171. http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
  7172. This test is not quite right, since xlc is allowed to
  7173. reject this program, as the initializer for xlcbug is
  7174. not one of the forms that C requires support for.
  7175. However, doing the test right would require a runtime
  7176. test, and that would make cross-compilation harder.
  7177. Let us hope that IBM fixes the xlc bug, and also adds
  7178. support for this kind of constant expression. In the
  7179. meantime, this test will reject xlc, which is OK, since
  7180. our stdbool.h substitute should suffice. We also test
  7181. this with GCC, where it should work, to detect more
  7182. quickly whether someone messes up the test in the
  7183. future. */
  7184. char digs[] = "0123456789";
  7185. int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
  7186. # endif
  7187. /* Catch a bug in an HP-UX C compiler. See
  7188. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  7189. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  7190. */
  7191. _Bool q = true;
  7192. _Bool *pq = &q;
  7193. int
  7194. main ()
  7195. {
  7196. *pq |= q;
  7197. *pq |= ! q;
  7198. /* Refer to every declared value, to avoid compiler optimizations. */
  7199. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  7200. + !m + !n + !o + !p + !q + !pq);
  7201. ;
  7202. return 0;
  7203. }
  7204. _ACEOF
  7205. if ac_fn_cxx_try_compile "$LINENO"; then :
  7206. ac_cv_header_stdbool_h=yes
  7207. else
  7208. ac_cv_header_stdbool_h=no
  7209. fi
  7210. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7211. fi
  7212. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
  7213. $as_echo "$ac_cv_header_stdbool_h" >&6; }
  7214. ac_fn_cxx_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
  7215. if test "x$ac_cv_type__Bool" = x""yes; then :
  7216. cat >>confdefs.h <<_ACEOF
  7217. #define HAVE__BOOL 1
  7218. _ACEOF
  7219. fi
  7220. if test $ac_cv_header_stdbool_h = yes; then
  7221. $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
  7222. fi
  7223. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  7224. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  7225. if test "${ac_cv_c_const+set}" = set; then :
  7226. $as_echo_n "(cached) " >&6
  7227. else
  7228. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7229. /* end confdefs.h. */
  7230. int
  7231. main ()
  7232. {
  7233. /* FIXME: Include the comments suggested by Paul. */
  7234. #ifndef __cplusplus
  7235. /* Ultrix mips cc rejects this. */
  7236. typedef int charset[2];
  7237. const charset cs;
  7238. /* SunOS 4.1.1 cc rejects this. */
  7239. char const *const *pcpcc;
  7240. char **ppc;
  7241. /* NEC SVR4.0.2 mips cc rejects this. */
  7242. struct point {int x, y;};
  7243. static struct point const zero = {0,0};
  7244. /* AIX XL C 1.02.0.0 rejects this.
  7245. It does not let you subtract one const X* pointer from another in
  7246. an arm of an if-expression whose if-part is not a constant
  7247. expression */
  7248. const char *g = "string";
  7249. pcpcc = &g + (g ? g-g : 0);
  7250. /* HPUX 7.0 cc rejects these. */
  7251. ++pcpcc;
  7252. ppc = (char**) pcpcc;
  7253. pcpcc = (char const *const *) ppc;
  7254. { /* SCO 3.2v4 cc rejects this. */
  7255. char *t;
  7256. char const *s = 0 ? (char *) 0 : (char const *) 0;
  7257. *t++ = 0;
  7258. if (s) return 0;
  7259. }
  7260. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  7261. int x[] = {25, 17};
  7262. const int *foo = &x[0];
  7263. ++foo;
  7264. }
  7265. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  7266. typedef const int *iptr;
  7267. iptr p = 0;
  7268. ++p;
  7269. }
  7270. { /* AIX XL C 1.02.0.0 rejects this saying
  7271. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  7272. struct s { int j; const int *ap[3]; };
  7273. struct s *b; b->j = 5;
  7274. }
  7275. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  7276. const int foo = 10;
  7277. if (!foo) return 0;
  7278. }
  7279. return !cs[0] && !zero.x;
  7280. #endif
  7281. ;
  7282. return 0;
  7283. }
  7284. _ACEOF
  7285. if ac_fn_cxx_try_compile "$LINENO"; then :
  7286. ac_cv_c_const=yes
  7287. else
  7288. ac_cv_c_const=no
  7289. fi
  7290. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7291. fi
  7292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  7293. $as_echo "$ac_cv_c_const" >&6; }
  7294. if test $ac_cv_c_const = no; then
  7295. $as_echo "#define const /**/" >>confdefs.h
  7296. fi
  7297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  7298. $as_echo_n "checking for inline... " >&6; }
  7299. if test "${ac_cv_c_inline+set}" = set; then :
  7300. $as_echo_n "(cached) " >&6
  7301. else
  7302. ac_cv_c_inline=no
  7303. for ac_kw in inline __inline__ __inline; do
  7304. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7305. /* end confdefs.h. */
  7306. #ifndef __cplusplus
  7307. typedef int foo_t;
  7308. static $ac_kw foo_t static_foo () {return 0; }
  7309. $ac_kw foo_t foo () {return 0; }
  7310. #endif
  7311. _ACEOF
  7312. if ac_fn_cxx_try_compile "$LINENO"; then :
  7313. ac_cv_c_inline=$ac_kw
  7314. fi
  7315. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7316. test "$ac_cv_c_inline" != no && break
  7317. done
  7318. fi
  7319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  7320. $as_echo "$ac_cv_c_inline" >&6; }
  7321. case $ac_cv_c_inline in
  7322. inline | yes) ;;
  7323. *)
  7324. case $ac_cv_c_inline in
  7325. no) ac_val=;;
  7326. *) ac_val=$ac_cv_c_inline;;
  7327. esac
  7328. cat >>confdefs.h <<_ACEOF
  7329. #ifndef __cplusplus
  7330. #define inline $ac_val
  7331. #endif
  7332. _ACEOF
  7333. ;;
  7334. esac
  7335. ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
  7336. case $ac_cv_c_int16_t in #(
  7337. no|yes) ;; #(
  7338. *)
  7339. cat >>confdefs.h <<_ACEOF
  7340. #define int16_t $ac_cv_c_int16_t
  7341. _ACEOF
  7342. ;;
  7343. esac
  7344. ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
  7345. case $ac_cv_c_int32_t in #(
  7346. no|yes) ;; #(
  7347. *)
  7348. cat >>confdefs.h <<_ACEOF
  7349. #define int32_t $ac_cv_c_int32_t
  7350. _ACEOF
  7351. ;;
  7352. esac
  7353. ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
  7354. case $ac_cv_c_int64_t in #(
  7355. no|yes) ;; #(
  7356. *)
  7357. cat >>confdefs.h <<_ACEOF
  7358. #define int64_t $ac_cv_c_int64_t
  7359. _ACEOF
  7360. ;;
  7361. esac
  7362. ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
  7363. case $ac_cv_c_int8_t in #(
  7364. no|yes) ;; #(
  7365. *)
  7366. cat >>confdefs.h <<_ACEOF
  7367. #define int8_t $ac_cv_c_int8_t
  7368. _ACEOF
  7369. ;;
  7370. esac
  7371. ac_fn_cxx_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
  7372. if test "x$ac_cv_type_mode_t" = x""yes; then :
  7373. else
  7374. cat >>confdefs.h <<_ACEOF
  7375. #define mode_t int
  7376. _ACEOF
  7377. fi
  7378. ac_fn_cxx_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
  7379. if test "x$ac_cv_type_off_t" = x""yes; then :
  7380. else
  7381. cat >>confdefs.h <<_ACEOF
  7382. #define off_t long int
  7383. _ACEOF
  7384. fi
  7385. ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  7386. if test "x$ac_cv_type_size_t" = x""yes; then :
  7387. else
  7388. cat >>confdefs.h <<_ACEOF
  7389. #define size_t unsigned int
  7390. _ACEOF
  7391. fi
  7392. ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
  7393. if test "x$ac_cv_type_ssize_t" = x""yes; then :
  7394. else
  7395. cat >>confdefs.h <<_ACEOF
  7396. #define ssize_t int
  7397. _ACEOF
  7398. fi
  7399. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  7400. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  7401. if test "${ac_cv_header_time+set}" = set; then :
  7402. $as_echo_n "(cached) " >&6
  7403. else
  7404. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7405. /* end confdefs.h. */
  7406. #include <sys/types.h>
  7407. #include <sys/time.h>
  7408. #include <time.h>
  7409. int
  7410. main ()
  7411. {
  7412. if ((struct tm *) 0)
  7413. return 0;
  7414. ;
  7415. return 0;
  7416. }
  7417. _ACEOF
  7418. if ac_fn_cxx_try_compile "$LINENO"; then :
  7419. ac_cv_header_time=yes
  7420. else
  7421. ac_cv_header_time=no
  7422. fi
  7423. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7424. fi
  7425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  7426. $as_echo "$ac_cv_header_time" >&6; }
  7427. if test $ac_cv_header_time = yes; then
  7428. $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  7429. fi
  7430. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  7431. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  7432. if test "${ac_cv_struct_tm+set}" = set; then :
  7433. $as_echo_n "(cached) " >&6
  7434. else
  7435. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7436. /* end confdefs.h. */
  7437. #include <sys/types.h>
  7438. #include <time.h>
  7439. int
  7440. main ()
  7441. {
  7442. struct tm tm;
  7443. int *p = &tm.tm_sec;
  7444. return !p;
  7445. ;
  7446. return 0;
  7447. }
  7448. _ACEOF
  7449. if ac_fn_cxx_try_compile "$LINENO"; then :
  7450. ac_cv_struct_tm=time.h
  7451. else
  7452. ac_cv_struct_tm=sys/time.h
  7453. fi
  7454. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7455. fi
  7456. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  7457. $as_echo "$ac_cv_struct_tm" >&6; }
  7458. if test $ac_cv_struct_tm = sys/time.h; then
  7459. $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
  7460. fi
  7461. ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
  7462. case $ac_cv_c_uint16_t in #(
  7463. no|yes) ;; #(
  7464. *)
  7465. cat >>confdefs.h <<_ACEOF
  7466. #define uint16_t $ac_cv_c_uint16_t
  7467. _ACEOF
  7468. ;;
  7469. esac
  7470. ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
  7471. case $ac_cv_c_uint32_t in #(
  7472. no|yes) ;; #(
  7473. *)
  7474. $as_echo "#define _UINT32_T 1" >>confdefs.h
  7475. cat >>confdefs.h <<_ACEOF
  7476. #define uint32_t $ac_cv_c_uint32_t
  7477. _ACEOF
  7478. ;;
  7479. esac
  7480. ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
  7481. case $ac_cv_c_uint64_t in #(
  7482. no|yes) ;; #(
  7483. *)
  7484. $as_echo "#define _UINT64_T 1" >>confdefs.h
  7485. cat >>confdefs.h <<_ACEOF
  7486. #define uint64_t $ac_cv_c_uint64_t
  7487. _ACEOF
  7488. ;;
  7489. esac
  7490. ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
  7491. case $ac_cv_c_uint8_t in #(
  7492. no|yes) ;; #(
  7493. *)
  7494. $as_echo "#define _UINT8_T 1" >>confdefs.h
  7495. cat >>confdefs.h <<_ACEOF
  7496. #define uint8_t $ac_cv_c_uint8_t
  7497. _ACEOF
  7498. ;;
  7499. esac
  7500. ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  7501. if test "x$ac_cv_type_pid_t" = x""yes; then :
  7502. else
  7503. cat >>confdefs.h <<_ACEOF
  7504. #define pid_t int
  7505. _ACEOF
  7506. fi
  7507. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  7508. $as_echo_n "checking for working volatile... " >&6; }
  7509. if test "${ac_cv_c_volatile+set}" = set; then :
  7510. $as_echo_n "(cached) " >&6
  7511. else
  7512. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7513. /* end confdefs.h. */
  7514. int
  7515. main ()
  7516. {
  7517. volatile int x;
  7518. int * volatile y = (int *) 0;
  7519. return !x && !y;
  7520. ;
  7521. return 0;
  7522. }
  7523. _ACEOF
  7524. if ac_fn_cxx_try_compile "$LINENO"; then :
  7525. ac_cv_c_volatile=yes
  7526. else
  7527. ac_cv_c_volatile=no
  7528. fi
  7529. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7530. fi
  7531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  7532. $as_echo "$ac_cv_c_volatile" >&6; }
  7533. if test $ac_cv_c_volatile = no; then
  7534. $as_echo "#define volatile /**/" >>confdefs.h
  7535. fi
  7536. ac_fn_cxx_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
  7537. if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
  7538. cat >>confdefs.h <<_ACEOF
  7539. #define HAVE_PTRDIFF_T 1
  7540. _ACEOF
  7541. fi
  7542. ac_fn_cxx_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "$ac_includes_default"
  7543. if test "x$ac_cv_type_struct_timespec" = x""yes; then :
  7544. cat >>confdefs.h <<_ACEOF
  7545. #define HAVE_STRUCT_TIMESPEC 1
  7546. _ACEOF
  7547. fi
  7548. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  7549. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  7550. if test "${ac_cv_c_bigendian+set}" = set; then :
  7551. $as_echo_n "(cached) " >&6
  7552. else
  7553. ac_cv_c_bigendian=unknown
  7554. # See if we're dealing with a universal compiler.
  7555. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7556. /* end confdefs.h. */
  7557. #ifndef __APPLE_CC__
  7558. not a universal capable compiler
  7559. #endif
  7560. typedef int dummy;
  7561. _ACEOF
  7562. if ac_fn_cxx_try_compile "$LINENO"; then :
  7563. # Check for potential -arch flags. It is not universal unless
  7564. # there are at least two -arch flags with different values.
  7565. ac_arch=
  7566. ac_prev=
  7567. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  7568. if test -n "$ac_prev"; then
  7569. case $ac_word in
  7570. i?86 | x86_64 | ppc | ppc64)
  7571. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  7572. ac_arch=$ac_word
  7573. else
  7574. ac_cv_c_bigendian=universal
  7575. break
  7576. fi
  7577. ;;
  7578. esac
  7579. ac_prev=
  7580. elif test "x$ac_word" = "x-arch"; then
  7581. ac_prev=arch
  7582. fi
  7583. done
  7584. fi
  7585. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7586. if test $ac_cv_c_bigendian = unknown; then
  7587. # See if sys/param.h defines the BYTE_ORDER macro.
  7588. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7589. /* end confdefs.h. */
  7590. #include <sys/types.h>
  7591. #include <sys/param.h>
  7592. int
  7593. main ()
  7594. {
  7595. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  7596. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  7597. && LITTLE_ENDIAN)
  7598. bogus endian macros
  7599. #endif
  7600. ;
  7601. return 0;
  7602. }
  7603. _ACEOF
  7604. if ac_fn_cxx_try_compile "$LINENO"; then :
  7605. # It does; now see whether it defined to BIG_ENDIAN or not.
  7606. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7607. /* end confdefs.h. */
  7608. #include <sys/types.h>
  7609. #include <sys/param.h>
  7610. int
  7611. main ()
  7612. {
  7613. #if BYTE_ORDER != BIG_ENDIAN
  7614. not big endian
  7615. #endif
  7616. ;
  7617. return 0;
  7618. }
  7619. _ACEOF
  7620. if ac_fn_cxx_try_compile "$LINENO"; then :
  7621. ac_cv_c_bigendian=yes
  7622. else
  7623. ac_cv_c_bigendian=no
  7624. fi
  7625. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7626. fi
  7627. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7628. fi
  7629. if test $ac_cv_c_bigendian = unknown; then
  7630. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  7631. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7632. /* end confdefs.h. */
  7633. #include <limits.h>
  7634. int
  7635. main ()
  7636. {
  7637. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  7638. bogus endian macros
  7639. #endif
  7640. ;
  7641. return 0;
  7642. }
  7643. _ACEOF
  7644. if ac_fn_cxx_try_compile "$LINENO"; then :
  7645. # It does; now see whether it defined to _BIG_ENDIAN or not.
  7646. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7647. /* end confdefs.h. */
  7648. #include <limits.h>
  7649. int
  7650. main ()
  7651. {
  7652. #ifndef _BIG_ENDIAN
  7653. not big endian
  7654. #endif
  7655. ;
  7656. return 0;
  7657. }
  7658. _ACEOF
  7659. if ac_fn_cxx_try_compile "$LINENO"; then :
  7660. ac_cv_c_bigendian=yes
  7661. else
  7662. ac_cv_c_bigendian=no
  7663. fi
  7664. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7665. fi
  7666. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7667. fi
  7668. if test $ac_cv_c_bigendian = unknown; then
  7669. # Compile a test program.
  7670. if test "$cross_compiling" = yes; then :
  7671. # Try to guess by grepping values from an object file.
  7672. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7673. /* end confdefs.h. */
  7674. short int ascii_mm[] =
  7675. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  7676. short int ascii_ii[] =
  7677. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  7678. int use_ascii (int i) {
  7679. return ascii_mm[i] + ascii_ii[i];
  7680. }
  7681. short int ebcdic_ii[] =
  7682. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  7683. short int ebcdic_mm[] =
  7684. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  7685. int use_ebcdic (int i) {
  7686. return ebcdic_mm[i] + ebcdic_ii[i];
  7687. }
  7688. extern int foo;
  7689. int
  7690. main ()
  7691. {
  7692. return use_ascii (foo) == use_ebcdic (foo);
  7693. ;
  7694. return 0;
  7695. }
  7696. _ACEOF
  7697. if ac_fn_cxx_try_compile "$LINENO"; then :
  7698. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  7699. ac_cv_c_bigendian=yes
  7700. fi
  7701. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  7702. if test "$ac_cv_c_bigendian" = unknown; then
  7703. ac_cv_c_bigendian=no
  7704. else
  7705. # finding both strings is unlikely to happen, but who knows?
  7706. ac_cv_c_bigendian=unknown
  7707. fi
  7708. fi
  7709. fi
  7710. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7711. else
  7712. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7713. /* end confdefs.h. */
  7714. $ac_includes_default
  7715. int
  7716. main ()
  7717. {
  7718. /* Are we little or big endian? From Harbison&Steele. */
  7719. union
  7720. {
  7721. long int l;
  7722. char c[sizeof (long int)];
  7723. } u;
  7724. u.l = 1;
  7725. return u.c[sizeof (long int) - 1] == 1;
  7726. ;
  7727. return 0;
  7728. }
  7729. _ACEOF
  7730. if ac_fn_cxx_try_run "$LINENO"; then :
  7731. ac_cv_c_bigendian=no
  7732. else
  7733. ac_cv_c_bigendian=yes
  7734. fi
  7735. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7736. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7737. fi
  7738. fi
  7739. fi
  7740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  7741. $as_echo "$ac_cv_c_bigendian" >&6; }
  7742. case $ac_cv_c_bigendian in #(
  7743. yes)
  7744. $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  7745. ;; #(
  7746. no)
  7747. ;; #(
  7748. universal)
  7749. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  7750. ;; #(
  7751. *)
  7752. as_fn_error "unknown endianness
  7753. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  7754. esac
  7755. # Check whether --enable-largefile was given.
  7756. if test "${enable_largefile+set}" = set; then :
  7757. enableval=$enable_largefile;
  7758. fi
  7759. if test "$enable_largefile" != no; then
  7760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  7761. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  7762. if test "${ac_cv_sys_largefile_CC+set}" = set; then :
  7763. $as_echo_n "(cached) " >&6
  7764. else
  7765. ac_cv_sys_largefile_CC=no
  7766. if test "$GCC" != yes; then
  7767. ac_save_CC=$CC
  7768. while :; do
  7769. # IRIX 6.2 and later do not support large files by default,
  7770. # so use the C compiler's -n32 option if that helps.
  7771. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7772. /* end confdefs.h. */
  7773. #include <sys/types.h>
  7774. /* Check that off_t can represent 2**63 - 1 correctly.
  7775. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7776. since some C++ compilers masquerading as C compilers
  7777. incorrectly reject 9223372036854775807. */
  7778. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7779. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7780. && LARGE_OFF_T % 2147483647 == 1)
  7781. ? 1 : -1];
  7782. int
  7783. main ()
  7784. {
  7785. ;
  7786. return 0;
  7787. }
  7788. _ACEOF
  7789. if ac_fn_cxx_try_compile "$LINENO"; then :
  7790. break
  7791. fi
  7792. rm -f core conftest.err conftest.$ac_objext
  7793. CC="$CC -n32"
  7794. if ac_fn_cxx_try_compile "$LINENO"; then :
  7795. ac_cv_sys_largefile_CC=' -n32'; break
  7796. fi
  7797. rm -f core conftest.err conftest.$ac_objext
  7798. break
  7799. done
  7800. CC=$ac_save_CC
  7801. rm -f conftest.$ac_ext
  7802. fi
  7803. fi
  7804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  7805. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  7806. if test "$ac_cv_sys_largefile_CC" != no; then
  7807. CC=$CC$ac_cv_sys_largefile_CC
  7808. fi
  7809. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  7810. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  7811. if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
  7812. $as_echo_n "(cached) " >&6
  7813. else
  7814. while :; do
  7815. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7816. /* end confdefs.h. */
  7817. #include <sys/types.h>
  7818. /* Check that off_t can represent 2**63 - 1 correctly.
  7819. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7820. since some C++ compilers masquerading as C compilers
  7821. incorrectly reject 9223372036854775807. */
  7822. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7823. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7824. && LARGE_OFF_T % 2147483647 == 1)
  7825. ? 1 : -1];
  7826. int
  7827. main ()
  7828. {
  7829. ;
  7830. return 0;
  7831. }
  7832. _ACEOF
  7833. if ac_fn_cxx_try_compile "$LINENO"; then :
  7834. ac_cv_sys_file_offset_bits=no; break
  7835. fi
  7836. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7837. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7838. /* end confdefs.h. */
  7839. #define _FILE_OFFSET_BITS 64
  7840. #include <sys/types.h>
  7841. /* Check that off_t can represent 2**63 - 1 correctly.
  7842. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7843. since some C++ compilers masquerading as C compilers
  7844. incorrectly reject 9223372036854775807. */
  7845. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7846. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7847. && LARGE_OFF_T % 2147483647 == 1)
  7848. ? 1 : -1];
  7849. int
  7850. main ()
  7851. {
  7852. ;
  7853. return 0;
  7854. }
  7855. _ACEOF
  7856. if ac_fn_cxx_try_compile "$LINENO"; then :
  7857. ac_cv_sys_file_offset_bits=64; break
  7858. fi
  7859. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7860. ac_cv_sys_file_offset_bits=unknown
  7861. break
  7862. done
  7863. fi
  7864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  7865. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  7866. case $ac_cv_sys_file_offset_bits in #(
  7867. no | unknown) ;;
  7868. *)
  7869. cat >>confdefs.h <<_ACEOF
  7870. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  7871. _ACEOF
  7872. ;;
  7873. esac
  7874. rm -rf conftest*
  7875. if test $ac_cv_sys_file_offset_bits = unknown; then
  7876. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  7877. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  7878. if test "${ac_cv_sys_large_files+set}" = set; then :
  7879. $as_echo_n "(cached) " >&6
  7880. else
  7881. while :; do
  7882. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7883. /* end confdefs.h. */
  7884. #include <sys/types.h>
  7885. /* Check that off_t can represent 2**63 - 1 correctly.
  7886. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7887. since some C++ compilers masquerading as C compilers
  7888. incorrectly reject 9223372036854775807. */
  7889. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7890. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7891. && LARGE_OFF_T % 2147483647 == 1)
  7892. ? 1 : -1];
  7893. int
  7894. main ()
  7895. {
  7896. ;
  7897. return 0;
  7898. }
  7899. _ACEOF
  7900. if ac_fn_cxx_try_compile "$LINENO"; then :
  7901. ac_cv_sys_large_files=no; break
  7902. fi
  7903. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7904. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7905. /* end confdefs.h. */
  7906. #define _LARGE_FILES 1
  7907. #include <sys/types.h>
  7908. /* Check that off_t can represent 2**63 - 1 correctly.
  7909. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7910. since some C++ compilers masquerading as C compilers
  7911. incorrectly reject 9223372036854775807. */
  7912. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7913. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7914. && LARGE_OFF_T % 2147483647 == 1)
  7915. ? 1 : -1];
  7916. int
  7917. main ()
  7918. {
  7919. ;
  7920. return 0;
  7921. }
  7922. _ACEOF
  7923. if ac_fn_cxx_try_compile "$LINENO"; then :
  7924. ac_cv_sys_large_files=1; break
  7925. fi
  7926. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7927. ac_cv_sys_large_files=unknown
  7928. break
  7929. done
  7930. fi
  7931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  7932. $as_echo "$ac_cv_sys_large_files" >&6; }
  7933. case $ac_cv_sys_large_files in #(
  7934. no | unknown) ;;
  7935. *)
  7936. cat >>confdefs.h <<_ACEOF
  7937. #define _LARGE_FILES $ac_cv_sys_large_files
  7938. _ACEOF
  7939. ;;
  7940. esac
  7941. rm -rf conftest*
  7942. fi
  7943. fi
  7944. # Checks for library functions.
  7945. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
  7946. $as_echo_n "checking whether NLS is requested... " >&6; }
  7947. # Check whether --enable-nls was given.
  7948. if test "${enable_nls+set}" = set; then :
  7949. enableval=$enable_nls; USE_NLS=$enableval
  7950. else
  7951. USE_NLS=yes
  7952. fi
  7953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
  7954. $as_echo "$USE_NLS" >&6; }
  7955. GETTEXT_MACRO_VERSION=0.17
  7956. # Prepare PATH_SEPARATOR.
  7957. # The user is always right.
  7958. if test "${PATH_SEPARATOR+set}" != set; then
  7959. echo "#! /bin/sh" >conf$$.sh
  7960. echo "exit 0" >>conf$$.sh
  7961. chmod +x conf$$.sh
  7962. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  7963. PATH_SEPARATOR=';'
  7964. else
  7965. PATH_SEPARATOR=:
  7966. fi
  7967. rm -f conf$$.sh
  7968. fi
  7969. # Find out how to test for executable files. Don't use a zero-byte file,
  7970. # as systems may use methods other than mode bits to determine executability.
  7971. cat >conf$$.file <<_ASEOF
  7972. #! /bin/sh
  7973. exit 0
  7974. _ASEOF
  7975. chmod +x conf$$.file
  7976. if test -x conf$$.file >/dev/null 2>&1; then
  7977. ac_executable_p="test -x"
  7978. else
  7979. ac_executable_p="test -f"
  7980. fi
  7981. rm -f conf$$.file
  7982. # Extract the first word of "msgfmt", so it can be a program name with args.
  7983. set dummy msgfmt; ac_word=$2
  7984. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7985. $as_echo_n "checking for $ac_word... " >&6; }
  7986. if test "${ac_cv_path_MSGFMT+set}" = set; then :
  7987. $as_echo_n "(cached) " >&6
  7988. else
  7989. case "$MSGFMT" in
  7990. [\\/]* | ?:[\\/]*)
  7991. ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  7992. ;;
  7993. *)
  7994. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  7995. for ac_dir in $PATH; do
  7996. IFS="$ac_save_IFS"
  7997. test -z "$ac_dir" && ac_dir=.
  7998. for ac_exec_ext in '' $ac_executable_extensions; do
  7999. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  8000. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  8001. if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
  8002. (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  8003. ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
  8004. break 2
  8005. fi
  8006. fi
  8007. done
  8008. done
  8009. IFS="$ac_save_IFS"
  8010. test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
  8011. ;;
  8012. esac
  8013. fi
  8014. MSGFMT="$ac_cv_path_MSGFMT"
  8015. if test "$MSGFMT" != ":"; then
  8016. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
  8017. $as_echo "$MSGFMT" >&6; }
  8018. else
  8019. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8020. $as_echo "no" >&6; }
  8021. fi
  8022. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  8023. set dummy gmsgfmt; ac_word=$2
  8024. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8025. $as_echo_n "checking for $ac_word... " >&6; }
  8026. if test "${ac_cv_path_GMSGFMT+set}" = set; then :
  8027. $as_echo_n "(cached) " >&6
  8028. else
  8029. case $GMSGFMT in
  8030. [\\/]* | ?:[\\/]*)
  8031. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  8032. ;;
  8033. *)
  8034. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8035. for as_dir in $PATH
  8036. do
  8037. IFS=$as_save_IFS
  8038. test -z "$as_dir" && as_dir=.
  8039. for ac_exec_ext in '' $ac_executable_extensions; do
  8040. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8041. ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  8042. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8043. break 2
  8044. fi
  8045. done
  8046. done
  8047. IFS=$as_save_IFS
  8048. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  8049. ;;
  8050. esac
  8051. fi
  8052. GMSGFMT=$ac_cv_path_GMSGFMT
  8053. if test -n "$GMSGFMT"; then
  8054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
  8055. $as_echo "$GMSGFMT" >&6; }
  8056. else
  8057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8058. $as_echo "no" >&6; }
  8059. fi
  8060. case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  8061. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
  8062. *) MSGFMT_015=$MSGFMT ;;
  8063. esac
  8064. case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  8065. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
  8066. *) GMSGFMT_015=$GMSGFMT ;;
  8067. esac
  8068. # Prepare PATH_SEPARATOR.
  8069. # The user is always right.
  8070. if test "${PATH_SEPARATOR+set}" != set; then
  8071. echo "#! /bin/sh" >conf$$.sh
  8072. echo "exit 0" >>conf$$.sh
  8073. chmod +x conf$$.sh
  8074. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  8075. PATH_SEPARATOR=';'
  8076. else
  8077. PATH_SEPARATOR=:
  8078. fi
  8079. rm -f conf$$.sh
  8080. fi
  8081. # Find out how to test for executable files. Don't use a zero-byte file,
  8082. # as systems may use methods other than mode bits to determine executability.
  8083. cat >conf$$.file <<_ASEOF
  8084. #! /bin/sh
  8085. exit 0
  8086. _ASEOF
  8087. chmod +x conf$$.file
  8088. if test -x conf$$.file >/dev/null 2>&1; then
  8089. ac_executable_p="test -x"
  8090. else
  8091. ac_executable_p="test -f"
  8092. fi
  8093. rm -f conf$$.file
  8094. # Extract the first word of "xgettext", so it can be a program name with args.
  8095. set dummy xgettext; ac_word=$2
  8096. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8097. $as_echo_n "checking for $ac_word... " >&6; }
  8098. if test "${ac_cv_path_XGETTEXT+set}" = set; then :
  8099. $as_echo_n "(cached) " >&6
  8100. else
  8101. case "$XGETTEXT" in
  8102. [\\/]* | ?:[\\/]*)
  8103. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  8104. ;;
  8105. *)
  8106. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  8107. for ac_dir in $PATH; do
  8108. IFS="$ac_save_IFS"
  8109. test -z "$ac_dir" && ac_dir=.
  8110. for ac_exec_ext in '' $ac_executable_extensions; do
  8111. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  8112. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  8113. if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
  8114. (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
  8115. ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
  8116. break 2
  8117. fi
  8118. fi
  8119. done
  8120. done
  8121. IFS="$ac_save_IFS"
  8122. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  8123. ;;
  8124. esac
  8125. fi
  8126. XGETTEXT="$ac_cv_path_XGETTEXT"
  8127. if test "$XGETTEXT" != ":"; then
  8128. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
  8129. $as_echo "$XGETTEXT" >&6; }
  8130. else
  8131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8132. $as_echo "no" >&6; }
  8133. fi
  8134. rm -f messages.po
  8135. case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  8136. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
  8137. *) XGETTEXT_015=$XGETTEXT ;;
  8138. esac
  8139. # Prepare PATH_SEPARATOR.
  8140. # The user is always right.
  8141. if test "${PATH_SEPARATOR+set}" != set; then
  8142. echo "#! /bin/sh" >conf$$.sh
  8143. echo "exit 0" >>conf$$.sh
  8144. chmod +x conf$$.sh
  8145. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  8146. PATH_SEPARATOR=';'
  8147. else
  8148. PATH_SEPARATOR=:
  8149. fi
  8150. rm -f conf$$.sh
  8151. fi
  8152. # Find out how to test for executable files. Don't use a zero-byte file,
  8153. # as systems may use methods other than mode bits to determine executability.
  8154. cat >conf$$.file <<_ASEOF
  8155. #! /bin/sh
  8156. exit 0
  8157. _ASEOF
  8158. chmod +x conf$$.file
  8159. if test -x conf$$.file >/dev/null 2>&1; then
  8160. ac_executable_p="test -x"
  8161. else
  8162. ac_executable_p="test -f"
  8163. fi
  8164. rm -f conf$$.file
  8165. # Extract the first word of "msgmerge", so it can be a program name with args.
  8166. set dummy msgmerge; ac_word=$2
  8167. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8168. $as_echo_n "checking for $ac_word... " >&6; }
  8169. if test "${ac_cv_path_MSGMERGE+set}" = set; then :
  8170. $as_echo_n "(cached) " >&6
  8171. else
  8172. case "$MSGMERGE" in
  8173. [\\/]* | ?:[\\/]*)
  8174. ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  8175. ;;
  8176. *)
  8177. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  8178. for ac_dir in $PATH; do
  8179. IFS="$ac_save_IFS"
  8180. test -z "$ac_dir" && ac_dir=.
  8181. for ac_exec_ext in '' $ac_executable_extensions; do
  8182. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  8183. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  8184. if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
  8185. ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
  8186. break 2
  8187. fi
  8188. fi
  8189. done
  8190. done
  8191. IFS="$ac_save_IFS"
  8192. test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
  8193. ;;
  8194. esac
  8195. fi
  8196. MSGMERGE="$ac_cv_path_MSGMERGE"
  8197. if test "$MSGMERGE" != ":"; then
  8198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
  8199. $as_echo "$MSGMERGE" >&6; }
  8200. else
  8201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8202. $as_echo "no" >&6; }
  8203. fi
  8204. test -n "$localedir" || localedir='${datadir}/locale'
  8205. test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
  8206. ac_config_commands="$ac_config_commands po-directories"
  8207. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
  8208. $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
  8209. if test "${ac_cv_gnu_library_2+set}" = set; then :
  8210. $as_echo_n "(cached) " >&6
  8211. else
  8212. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8213. /* end confdefs.h. */
  8214. #include <features.h>
  8215. #ifdef __GNU_LIBRARY__
  8216. #if (__GLIBC__ >= 2)
  8217. Lucky GNU user
  8218. #endif
  8219. #endif
  8220. _ACEOF
  8221. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  8222. $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
  8223. ac_cv_gnu_library_2=yes
  8224. else
  8225. ac_cv_gnu_library_2=no
  8226. fi
  8227. rm -f conftest*
  8228. fi
  8229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
  8230. $as_echo "$ac_cv_gnu_library_2" >&6; }
  8231. GLIBC2="$ac_cv_gnu_library_2"
  8232. CFLAG_VISIBILITY=
  8233. HAVE_VISIBILITY=0
  8234. if test -n "$GCC"; then
  8235. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
  8236. $as_echo_n "checking for simple visibility declarations... " >&6; }
  8237. if test "${gl_cv_cc_visibility+set}" = set; then :
  8238. $as_echo_n "(cached) " >&6
  8239. else
  8240. gl_save_CFLAGS="$CFLAGS"
  8241. CFLAGS="$CFLAGS -fvisibility=hidden"
  8242. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8243. /* end confdefs.h. */
  8244. extern __attribute__((__visibility__("hidden"))) int hiddenvar;
  8245. extern __attribute__((__visibility__("default"))) int exportedvar;
  8246. extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
  8247. extern __attribute__((__visibility__("default"))) int exportedfunc (void);
  8248. int
  8249. main ()
  8250. {
  8251. ;
  8252. return 0;
  8253. }
  8254. _ACEOF
  8255. if ac_fn_cxx_try_compile "$LINENO"; then :
  8256. gl_cv_cc_visibility=yes
  8257. else
  8258. gl_cv_cc_visibility=no
  8259. fi
  8260. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8261. CFLAGS="$gl_save_CFLAGS"
  8262. fi
  8263. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
  8264. $as_echo "$gl_cv_cc_visibility" >&6; }
  8265. if test $gl_cv_cc_visibility = yes; then
  8266. CFLAG_VISIBILITY="-fvisibility=hidden"
  8267. HAVE_VISIBILITY=1
  8268. fi
  8269. fi
  8270. cat >>confdefs.h <<_ACEOF
  8271. #define HAVE_VISIBILITY $HAVE_VISIBILITY
  8272. _ACEOF
  8273. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
  8274. $as_echo_n "checking for stdint.h... " >&6; }
  8275. if test "${gl_cv_header_stdint_h+set}" = set; then :
  8276. $as_echo_n "(cached) " >&6
  8277. else
  8278. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8279. /* end confdefs.h. */
  8280. #include <sys/types.h>
  8281. #include <stdint.h>
  8282. int
  8283. main ()
  8284. {
  8285. uintmax_t i = (uintmax_t) -1; return !i;
  8286. ;
  8287. return 0;
  8288. }
  8289. _ACEOF
  8290. if ac_fn_cxx_try_compile "$LINENO"; then :
  8291. gl_cv_header_stdint_h=yes
  8292. else
  8293. gl_cv_header_stdint_h=no
  8294. fi
  8295. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8296. fi
  8297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
  8298. $as_echo "$gl_cv_header_stdint_h" >&6; }
  8299. if test $gl_cv_header_stdint_h = yes; then
  8300. cat >>confdefs.h <<_ACEOF
  8301. #define HAVE_STDINT_H_WITH_UINTMAX 1
  8302. _ACEOF
  8303. fi
  8304. for ac_header in $ac_header_list
  8305. do :
  8306. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8307. ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  8308. "
  8309. eval as_val=\$$as_ac_Header
  8310. if test "x$as_val" = x""yes; then :
  8311. cat >>confdefs.h <<_ACEOF
  8312. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8313. _ACEOF
  8314. fi
  8315. done
  8316. for ac_func in getpagesize
  8317. do :
  8318. ac_fn_cxx_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  8319. if test "x$ac_cv_func_getpagesize" = x""yes; then :
  8320. cat >>confdefs.h <<_ACEOF
  8321. #define HAVE_GETPAGESIZE 1
  8322. _ACEOF
  8323. fi
  8324. done
  8325. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  8326. $as_echo_n "checking for working mmap... " >&6; }
  8327. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
  8328. $as_echo_n "(cached) " >&6
  8329. else
  8330. if test "$cross_compiling" = yes; then :
  8331. ac_cv_func_mmap_fixed_mapped=no
  8332. else
  8333. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8334. /* end confdefs.h. */
  8335. $ac_includes_default
  8336. /* malloc might have been renamed as rpl_malloc. */
  8337. #undef malloc
  8338. /* Thanks to Mike Haertel and Jim Avera for this test.
  8339. Here is a matrix of mmap possibilities:
  8340. mmap private not fixed
  8341. mmap private fixed at somewhere currently unmapped
  8342. mmap private fixed at somewhere already mapped
  8343. mmap shared not fixed
  8344. mmap shared fixed at somewhere currently unmapped
  8345. mmap shared fixed at somewhere already mapped
  8346. For private mappings, we should verify that changes cannot be read()
  8347. back from the file, nor mmap's back from the file at a different
  8348. address. (There have been systems where private was not correctly
  8349. implemented like the infamous i386 svr4.0, and systems where the
  8350. VM page cache was not coherent with the file system buffer cache
  8351. like early versions of FreeBSD and possibly contemporary NetBSD.)
  8352. For shared mappings, we should conversely verify that changes get
  8353. propagated back to all the places they're supposed to be.
  8354. Grep wants private fixed already mapped.
  8355. The main things grep needs to know about mmap are:
  8356. * does it exist and is it safe to write into the mmap'd area
  8357. * how to use it (BSD variants) */
  8358. #include <fcntl.h>
  8359. #include <sys/mman.h>
  8360. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  8361. char *malloc ();
  8362. #endif
  8363. /* This mess was copied from the GNU getpagesize.h. */
  8364. #ifndef HAVE_GETPAGESIZE
  8365. # ifdef _SC_PAGESIZE
  8366. # define getpagesize() sysconf(_SC_PAGESIZE)
  8367. # else /* no _SC_PAGESIZE */
  8368. # ifdef HAVE_SYS_PARAM_H
  8369. # include <sys/param.h>
  8370. # ifdef EXEC_PAGESIZE
  8371. # define getpagesize() EXEC_PAGESIZE
  8372. # else /* no EXEC_PAGESIZE */
  8373. # ifdef NBPG
  8374. # define getpagesize() NBPG * CLSIZE
  8375. # ifndef CLSIZE
  8376. # define CLSIZE 1
  8377. # endif /* no CLSIZE */
  8378. # else /* no NBPG */
  8379. # ifdef NBPC
  8380. # define getpagesize() NBPC
  8381. # else /* no NBPC */
  8382. # ifdef PAGESIZE
  8383. # define getpagesize() PAGESIZE
  8384. # endif /* PAGESIZE */
  8385. # endif /* no NBPC */
  8386. # endif /* no NBPG */
  8387. # endif /* no EXEC_PAGESIZE */
  8388. # else /* no HAVE_SYS_PARAM_H */
  8389. # define getpagesize() 8192 /* punt totally */
  8390. # endif /* no HAVE_SYS_PARAM_H */
  8391. # endif /* no _SC_PAGESIZE */
  8392. #endif /* no HAVE_GETPAGESIZE */
  8393. int
  8394. main ()
  8395. {
  8396. char *data, *data2, *data3;
  8397. const char *cdata2;
  8398. int i, pagesize;
  8399. int fd, fd2;
  8400. pagesize = getpagesize ();
  8401. /* First, make a file with some known garbage in it. */
  8402. data = (char *) malloc (pagesize);
  8403. if (!data)
  8404. return 1;
  8405. for (i = 0; i < pagesize; ++i)
  8406. *(data + i) = rand ();
  8407. umask (0);
  8408. fd = creat ("conftest.mmap", 0600);
  8409. if (fd < 0)
  8410. return 2;
  8411. if (write (fd, data, pagesize) != pagesize)
  8412. return 3;
  8413. close (fd);
  8414. /* Next, check that the tail of a page is zero-filled. File must have
  8415. non-zero length, otherwise we risk SIGBUS for entire page. */
  8416. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  8417. if (fd2 < 0)
  8418. return 4;
  8419. cdata2 = "";
  8420. if (write (fd2, cdata2, 1) != 1)
  8421. return 5;
  8422. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  8423. if (data2 == MAP_FAILED)
  8424. return 6;
  8425. for (i = 0; i < pagesize; ++i)
  8426. if (*(data2 + i))
  8427. return 7;
  8428. close (fd2);
  8429. if (munmap (data2, pagesize))
  8430. return 8;
  8431. /* Next, try to mmap the file at a fixed address which already has
  8432. something else allocated at it. If we can, also make sure that
  8433. we see the same garbage. */
  8434. fd = open ("conftest.mmap", O_RDWR);
  8435. if (fd < 0)
  8436. return 9;
  8437. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  8438. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  8439. return 10;
  8440. for (i = 0; i < pagesize; ++i)
  8441. if (*(data + i) != *(data2 + i))
  8442. return 11;
  8443. /* Finally, make sure that changes to the mapped area do not
  8444. percolate back to the file as seen by read(). (This is a bug on
  8445. some variants of i386 svr4.0.) */
  8446. for (i = 0; i < pagesize; ++i)
  8447. *(data2 + i) = *(data2 + i) + 1;
  8448. data3 = (char *) malloc (pagesize);
  8449. if (!data3)
  8450. return 12;
  8451. if (read (fd, data3, pagesize) != pagesize)
  8452. return 13;
  8453. for (i = 0; i < pagesize; ++i)
  8454. if (*(data + i) != *(data3 + i))
  8455. return 14;
  8456. close (fd);
  8457. return 0;
  8458. }
  8459. _ACEOF
  8460. if ac_fn_cxx_try_run "$LINENO"; then :
  8461. ac_cv_func_mmap_fixed_mapped=yes
  8462. else
  8463. ac_cv_func_mmap_fixed_mapped=no
  8464. fi
  8465. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  8466. conftest.$ac_objext conftest.beam conftest.$ac_ext
  8467. fi
  8468. fi
  8469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  8470. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  8471. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  8472. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  8473. fi
  8474. rm -f conftest.mmap conftest.txt
  8475. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
  8476. $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
  8477. if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
  8478. $as_echo_n "(cached) " >&6
  8479. else
  8480. gt_cv_int_divbyzero_sigfpe=
  8481. case "$host_os" in
  8482. macos* | darwin[6-9]* | darwin[1-9][0-9]*)
  8483. # On MacOS X 10.2 or newer, just assume the same as when cross-
  8484. # compiling. If we were to perform the real test, 1 Crash Report
  8485. # dialog window would pop up.
  8486. case "$host_cpu" in
  8487. i[34567]86 | x86_64)
  8488. gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
  8489. esac
  8490. ;;
  8491. esac
  8492. if test -z "$gt_cv_int_divbyzero_sigfpe"; then
  8493. if test "$cross_compiling" = yes; then :
  8494. # Guess based on the CPU.
  8495. case "$host_cpu" in
  8496. alpha* | i[34567]86 | x86_64 | m68k | s390*)
  8497. gt_cv_int_divbyzero_sigfpe="guessing yes";;
  8498. *)
  8499. gt_cv_int_divbyzero_sigfpe="guessing no";;
  8500. esac
  8501. else
  8502. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8503. /* end confdefs.h. */
  8504. #include <stdlib.h>
  8505. #include <signal.h>
  8506. static void
  8507. sigfpe_handler (int sig)
  8508. {
  8509. /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
  8510. exit (sig != SIGFPE);
  8511. }
  8512. int x = 1;
  8513. int y = 0;
  8514. int z;
  8515. int nan;
  8516. int main ()
  8517. {
  8518. signal (SIGFPE, sigfpe_handler);
  8519. /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
  8520. #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
  8521. signal (SIGTRAP, sigfpe_handler);
  8522. #endif
  8523. /* Linux/SPARC yields signal SIGILL. */
  8524. #if defined (__sparc__) && defined (__linux__)
  8525. signal (SIGILL, sigfpe_handler);
  8526. #endif
  8527. z = x / y;
  8528. nan = y / y;
  8529. exit (1);
  8530. }
  8531. _ACEOF
  8532. if ac_fn_cxx_try_run "$LINENO"; then :
  8533. gt_cv_int_divbyzero_sigfpe=yes
  8534. else
  8535. gt_cv_int_divbyzero_sigfpe=no
  8536. fi
  8537. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  8538. conftest.$ac_objext conftest.beam conftest.$ac_ext
  8539. fi
  8540. fi
  8541. fi
  8542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
  8543. $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
  8544. case "$gt_cv_int_divbyzero_sigfpe" in
  8545. *yes) value=1;;
  8546. *) value=0;;
  8547. esac
  8548. cat >>confdefs.h <<_ACEOF
  8549. #define INTDIV0_RAISES_SIGFPE $value
  8550. _ACEOF
  8551. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
  8552. $as_echo_n "checking for inttypes.h... " >&6; }
  8553. if test "${gl_cv_header_inttypes_h+set}" = set; then :
  8554. $as_echo_n "(cached) " >&6
  8555. else
  8556. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8557. /* end confdefs.h. */
  8558. #include <sys/types.h>
  8559. #include <inttypes.h>
  8560. int
  8561. main ()
  8562. {
  8563. uintmax_t i = (uintmax_t) -1; return !i;
  8564. ;
  8565. return 0;
  8566. }
  8567. _ACEOF
  8568. if ac_fn_cxx_try_compile "$LINENO"; then :
  8569. gl_cv_header_inttypes_h=yes
  8570. else
  8571. gl_cv_header_inttypes_h=no
  8572. fi
  8573. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8574. fi
  8575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
  8576. $as_echo "$gl_cv_header_inttypes_h" >&6; }
  8577. if test $gl_cv_header_inttypes_h = yes; then
  8578. cat >>confdefs.h <<_ACEOF
  8579. #define HAVE_INTTYPES_H_WITH_UINTMAX 1
  8580. _ACEOF
  8581. fi
  8582. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
  8583. $as_echo_n "checking for unsigned long long int... " >&6; }
  8584. if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
  8585. $as_echo_n "(cached) " >&6
  8586. else
  8587. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8588. /* end confdefs.h. */
  8589. /* Test preprocessor. */
  8590. #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  8591. error in preprocessor;
  8592. #endif
  8593. #if ! (18446744073709551615ULL <= -1ull)
  8594. error in preprocessor;
  8595. #endif
  8596. /* Test literals. */
  8597. long long int ll = 9223372036854775807ll;
  8598. long long int nll = -9223372036854775807LL;
  8599. unsigned long long int ull = 18446744073709551615ULL;
  8600. /* Test constant expressions. */
  8601. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  8602. ? 1 : -1)];
  8603. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  8604. ? 1 : -1)];
  8605. int i = 63;
  8606. int
  8607. main ()
  8608. {
  8609. /* Test availability of runtime routines for shift and division. */
  8610. long long int llmax = 9223372036854775807ll;
  8611. unsigned long long int ullmax = 18446744073709551615ull;
  8612. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  8613. | (llmax / ll) | (llmax % ll)
  8614. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  8615. | (ullmax / ull) | (ullmax % ull));
  8616. ;
  8617. return 0;
  8618. }
  8619. _ACEOF
  8620. if ac_fn_cxx_try_link "$LINENO"; then :
  8621. ac_cv_type_unsigned_long_long_int=yes
  8622. else
  8623. ac_cv_type_unsigned_long_long_int=no
  8624. fi
  8625. rm -f core conftest.err conftest.$ac_objext \
  8626. conftest$ac_exeext conftest.$ac_ext
  8627. fi
  8628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
  8629. $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
  8630. if test $ac_cv_type_unsigned_long_long_int = yes; then
  8631. $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
  8632. fi
  8633. if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
  8634. test $ac_cv_type_unsigned_long_long_int = yes \
  8635. && ac_type='unsigned long long' \
  8636. || ac_type='unsigned long'
  8637. cat >>confdefs.h <<_ACEOF
  8638. #define uintmax_t $ac_type
  8639. _ACEOF
  8640. else
  8641. $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
  8642. fi
  8643. for ac_header in inttypes.h
  8644. do :
  8645. ac_fn_cxx_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
  8646. if test "x$ac_cv_header_inttypes_h" = x""yes; then :
  8647. cat >>confdefs.h <<_ACEOF
  8648. #define HAVE_INTTYPES_H 1
  8649. _ACEOF
  8650. fi
  8651. done
  8652. if test $ac_cv_header_inttypes_h = yes; then
  8653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
  8654. $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
  8655. if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
  8656. $as_echo_n "(cached) " >&6
  8657. else
  8658. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8659. /* end confdefs.h. */
  8660. #include <inttypes.h>
  8661. #ifdef PRId32
  8662. char *p = PRId32;
  8663. #endif
  8664. int
  8665. main ()
  8666. {
  8667. ;
  8668. return 0;
  8669. }
  8670. _ACEOF
  8671. if ac_fn_cxx_try_compile "$LINENO"; then :
  8672. gt_cv_inttypes_pri_broken=no
  8673. else
  8674. gt_cv_inttypes_pri_broken=yes
  8675. fi
  8676. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8677. fi
  8678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
  8679. $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
  8680. fi
  8681. if test "$gt_cv_inttypes_pri_broken" = yes; then
  8682. cat >>confdefs.h <<_ACEOF
  8683. #define PRI_MACROS_BROKEN 1
  8684. _ACEOF
  8685. PRI_MACROS_BROKEN=1
  8686. else
  8687. PRI_MACROS_BROKEN=0
  8688. fi
  8689. # Check whether --enable-threads was given.
  8690. if test "${enable_threads+set}" = set; then :
  8691. enableval=$enable_threads; gl_use_threads=$enableval
  8692. else
  8693. case "$host_os" in
  8694. osf*) gl_use_threads=no ;;
  8695. *) gl_use_threads=yes ;;
  8696. esac
  8697. fi
  8698. if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
  8699. # For using <pthread.h>:
  8700. case "$host_os" in
  8701. osf*)
  8702. # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
  8703. # groks <pthread.h>. cc also understands the flag -pthread, but
  8704. # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
  8705. # 2. putting a flag into CPPFLAGS that has an effect on the linker
  8706. # causes the AC_TRY_LINK test below to succeed unexpectedly,
  8707. # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
  8708. CPPFLAGS="$CPPFLAGS -D_REENTRANT"
  8709. ;;
  8710. esac
  8711. # Some systems optimize for single-threaded programs by default, and
  8712. # need special flags to disable these optimizations. For example, the
  8713. # definition of 'errno' in <errno.h>.
  8714. case "$host_os" in
  8715. aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
  8716. solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
  8717. esac
  8718. fi
  8719. if test "X$prefix" = "XNONE"; then
  8720. acl_final_prefix="$ac_default_prefix"
  8721. else
  8722. acl_final_prefix="$prefix"
  8723. fi
  8724. if test "X$exec_prefix" = "XNONE"; then
  8725. acl_final_exec_prefix='${prefix}'
  8726. else
  8727. acl_final_exec_prefix="$exec_prefix"
  8728. fi
  8729. acl_save_prefix="$prefix"
  8730. prefix="$acl_final_prefix"
  8731. eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  8732. prefix="$acl_save_prefix"
  8733. # Check whether --with-gnu-ld was given.
  8734. if test "${with_gnu_ld+set}" = set; then :
  8735. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  8736. else
  8737. with_gnu_ld=no
  8738. fi
  8739. # Prepare PATH_SEPARATOR.
  8740. # The user is always right.
  8741. if test "${PATH_SEPARATOR+set}" != set; then
  8742. echo "#! /bin/sh" >conf$$.sh
  8743. echo "exit 0" >>conf$$.sh
  8744. chmod +x conf$$.sh
  8745. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  8746. PATH_SEPARATOR=';'
  8747. else
  8748. PATH_SEPARATOR=:
  8749. fi
  8750. rm -f conf$$.sh
  8751. fi
  8752. ac_prog=ld
  8753. if test "$GCC" = yes; then
  8754. # Check if gcc -print-prog-name=ld gives a path.
  8755. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
  8756. $as_echo_n "checking for ld used by GCC... " >&6; }
  8757. case $host in
  8758. *-*-mingw*)
  8759. # gcc leaves a trailing carriage return which upsets mingw
  8760. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  8761. *)
  8762. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  8763. esac
  8764. case $ac_prog in
  8765. # Accept absolute paths.
  8766. [\\/]* | [A-Za-z]:[\\/]*)
  8767. re_direlt='/[^/][^/]*/\.\./'
  8768. # Canonicalize the path of ld
  8769. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  8770. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  8771. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  8772. done
  8773. test -z "$LD" && LD="$ac_prog"
  8774. ;;
  8775. "")
  8776. # If it fails, then pretend we aren't using GCC.
  8777. ac_prog=ld
  8778. ;;
  8779. *)
  8780. # If it is relative, then search for the first ld in PATH.
  8781. with_gnu_ld=unknown
  8782. ;;
  8783. esac
  8784. elif test "$with_gnu_ld" = yes; then
  8785. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  8786. $as_echo_n "checking for GNU ld... " >&6; }
  8787. else
  8788. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  8789. $as_echo_n "checking for non-GNU ld... " >&6; }
  8790. fi
  8791. if test "${acl_cv_path_LD+set}" = set; then :
  8792. $as_echo_n "(cached) " >&6
  8793. else
  8794. if test -z "$LD"; then
  8795. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  8796. for ac_dir in $PATH; do
  8797. test -z "$ac_dir" && ac_dir=.
  8798. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  8799. acl_cv_path_LD="$ac_dir/$ac_prog"
  8800. # Check to see if the program is GNU ld. I'd rather use --version,
  8801. # but apparently some GNU ld's only accept -v.
  8802. # Break only if it was the GNU/non-GNU ld that we prefer.
  8803. case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
  8804. *GNU* | *'with BFD'*)
  8805. test "$with_gnu_ld" != no && break ;;
  8806. *)
  8807. test "$with_gnu_ld" != yes && break ;;
  8808. esac
  8809. fi
  8810. done
  8811. IFS="$ac_save_ifs"
  8812. else
  8813. acl_cv_path_LD="$LD" # Let the user override the test with a path.
  8814. fi
  8815. fi
  8816. LD="$acl_cv_path_LD"
  8817. if test -n "$LD"; then
  8818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  8819. $as_echo "$LD" >&6; }
  8820. else
  8821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8822. $as_echo "no" >&6; }
  8823. fi
  8824. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  8825. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  8826. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  8827. if test "${acl_cv_prog_gnu_ld+set}" = set; then :
  8828. $as_echo_n "(cached) " >&6
  8829. else
  8830. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  8831. case `$LD -v 2>&1 </dev/null` in
  8832. *GNU* | *'with BFD'*)
  8833. acl_cv_prog_gnu_ld=yes ;;
  8834. *)
  8835. acl_cv_prog_gnu_ld=no ;;
  8836. esac
  8837. fi
  8838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
  8839. $as_echo "$acl_cv_prog_gnu_ld" >&6; }
  8840. with_gnu_ld=$acl_cv_prog_gnu_ld
  8841. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
  8842. $as_echo_n "checking for shared library run path origin... " >&6; }
  8843. if test "${acl_cv_rpath+set}" = set; then :
  8844. $as_echo_n "(cached) " >&6
  8845. else
  8846. CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  8847. ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  8848. . ./conftest.sh
  8849. rm -f ./conftest.sh
  8850. acl_cv_rpath=done
  8851. fi
  8852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
  8853. $as_echo "$acl_cv_rpath" >&6; }
  8854. wl="$acl_cv_wl"
  8855. acl_libext="$acl_cv_libext"
  8856. acl_shlibext="$acl_cv_shlibext"
  8857. acl_libname_spec="$acl_cv_libname_spec"
  8858. acl_library_names_spec="$acl_cv_library_names_spec"
  8859. acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  8860. acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  8861. acl_hardcode_direct="$acl_cv_hardcode_direct"
  8862. acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
  8863. # Check whether --enable-rpath was given.
  8864. if test "${enable_rpath+set}" = set; then :
  8865. enableval=$enable_rpath; :
  8866. else
  8867. enable_rpath=yes
  8868. fi
  8869. acl_libdirstem=lib
  8870. searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
  8871. if test -n "$searchpath"; then
  8872. acl_save_IFS="${IFS= }"; IFS=":"
  8873. for searchdir in $searchpath; do
  8874. if test -d "$searchdir"; then
  8875. case "$searchdir" in
  8876. */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
  8877. *) searchdir=`cd "$searchdir" && pwd`
  8878. case "$searchdir" in
  8879. */lib64 ) acl_libdirstem=lib64 ;;
  8880. esac ;;
  8881. esac
  8882. fi
  8883. done
  8884. IFS="$acl_save_IFS"
  8885. fi
  8886. gl_threads_api=none
  8887. LIBTHREAD=
  8888. LTLIBTHREAD=
  8889. LIBMULTITHREAD=
  8890. LTLIBMULTITHREAD=
  8891. if test "$gl_use_threads" != no; then
  8892. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
  8893. $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
  8894. gl_have_weak=no
  8895. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8896. /* end confdefs.h. */
  8897. extern void xyzzy ();
  8898. #pragma weak xyzzy
  8899. int
  8900. main ()
  8901. {
  8902. xyzzy();
  8903. ;
  8904. return 0;
  8905. }
  8906. _ACEOF
  8907. if ac_fn_cxx_try_link "$LINENO"; then :
  8908. gl_have_weak=yes
  8909. fi
  8910. rm -f core conftest.err conftest.$ac_objext \
  8911. conftest$ac_exeext conftest.$ac_ext
  8912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_weak" >&5
  8913. $as_echo "$gl_have_weak" >&6; }
  8914. if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
  8915. # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
  8916. # it groks <pthread.h>. It's added above, in gl_LOCK_EARLY_BODY.
  8917. ac_fn_cxx_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
  8918. if test "x$ac_cv_header_pthread_h" = x""yes; then :
  8919. gl_have_pthread_h=yes
  8920. else
  8921. gl_have_pthread_h=no
  8922. fi
  8923. if test "$gl_have_pthread_h" = yes; then
  8924. # Other possible tests:
  8925. # -lpthreads (FSU threads, PCthreads)
  8926. # -lgthreads
  8927. gl_have_pthread=
  8928. # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
  8929. # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
  8930. # the second one only in libpthread, and lock.c needs it.
  8931. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8932. /* end confdefs.h. */
  8933. #include <pthread.h>
  8934. int
  8935. main ()
  8936. {
  8937. pthread_mutex_lock((pthread_mutex_t*)0);
  8938. pthread_mutexattr_init((pthread_mutexattr_t*)0);
  8939. ;
  8940. return 0;
  8941. }
  8942. _ACEOF
  8943. if ac_fn_cxx_try_link "$LINENO"; then :
  8944. gl_have_pthread=yes
  8945. fi
  8946. rm -f core conftest.err conftest.$ac_objext \
  8947. conftest$ac_exeext conftest.$ac_ext
  8948. # Test for libpthread by looking for pthread_kill. (Not pthread_self,
  8949. # since it is defined as a macro on OSF/1.)
  8950. if test -n "$gl_have_pthread"; then
  8951. # The program links fine without libpthread. But it may actually
  8952. # need to link with libpthread in order to create multiple threads.
  8953. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
  8954. $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
  8955. if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then :
  8956. $as_echo_n "(cached) " >&6
  8957. else
  8958. ac_check_lib_save_LIBS=$LIBS
  8959. LIBS="-lpthread $LIBS"
  8960. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8961. /* end confdefs.h. */
  8962. /* Override any GCC internal prototype to avoid an error.
  8963. Use char because int might match the return type of a GCC
  8964. builtin and then its argument prototype would still apply. */
  8965. #ifdef __cplusplus
  8966. extern "C"
  8967. #endif
  8968. char pthread_kill ();
  8969. int
  8970. main ()
  8971. {
  8972. return pthread_kill ();
  8973. ;
  8974. return 0;
  8975. }
  8976. _ACEOF
  8977. if ac_fn_cxx_try_link "$LINENO"; then :
  8978. ac_cv_lib_pthread_pthread_kill=yes
  8979. else
  8980. ac_cv_lib_pthread_pthread_kill=no
  8981. fi
  8982. rm -f core conftest.err conftest.$ac_objext \
  8983. conftest$ac_exeext conftest.$ac_ext
  8984. LIBS=$ac_check_lib_save_LIBS
  8985. fi
  8986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
  8987. $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
  8988. if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then :
  8989. LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
  8990. # On Solaris and HP-UX, most pthread functions exist also in libc.
  8991. # Therefore pthread_in_use() needs to actually try to create a
  8992. # thread: pthread_create from libc will fail, whereas
  8993. # pthread_create will actually create a thread.
  8994. case "$host_os" in
  8995. solaris* | hpux*)
  8996. $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
  8997. esac
  8998. fi
  8999. else
  9000. # Some library is needed. Try libpthread and libc_r.
  9001. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
  9002. $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
  9003. if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then :
  9004. $as_echo_n "(cached) " >&6
  9005. else
  9006. ac_check_lib_save_LIBS=$LIBS
  9007. LIBS="-lpthread $LIBS"
  9008. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9009. /* end confdefs.h. */
  9010. /* Override any GCC internal prototype to avoid an error.
  9011. Use char because int might match the return type of a GCC
  9012. builtin and then its argument prototype would still apply. */
  9013. #ifdef __cplusplus
  9014. extern "C"
  9015. #endif
  9016. char pthread_kill ();
  9017. int
  9018. main ()
  9019. {
  9020. return pthread_kill ();
  9021. ;
  9022. return 0;
  9023. }
  9024. _ACEOF
  9025. if ac_fn_cxx_try_link "$LINENO"; then :
  9026. ac_cv_lib_pthread_pthread_kill=yes
  9027. else
  9028. ac_cv_lib_pthread_pthread_kill=no
  9029. fi
  9030. rm -f core conftest.err conftest.$ac_objext \
  9031. conftest$ac_exeext conftest.$ac_ext
  9032. LIBS=$ac_check_lib_save_LIBS
  9033. fi
  9034. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
  9035. $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
  9036. if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then :
  9037. gl_have_pthread=yes
  9038. LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
  9039. LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
  9040. fi
  9041. if test -z "$gl_have_pthread"; then
  9042. # For FreeBSD 4.
  9043. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
  9044. $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
  9045. if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then :
  9046. $as_echo_n "(cached) " >&6
  9047. else
  9048. ac_check_lib_save_LIBS=$LIBS
  9049. LIBS="-lc_r $LIBS"
  9050. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9051. /* end confdefs.h. */
  9052. /* Override any GCC internal prototype to avoid an error.
  9053. Use char because int might match the return type of a GCC
  9054. builtin and then its argument prototype would still apply. */
  9055. #ifdef __cplusplus
  9056. extern "C"
  9057. #endif
  9058. char pthread_kill ();
  9059. int
  9060. main ()
  9061. {
  9062. return pthread_kill ();
  9063. ;
  9064. return 0;
  9065. }
  9066. _ACEOF
  9067. if ac_fn_cxx_try_link "$LINENO"; then :
  9068. ac_cv_lib_c_r_pthread_kill=yes
  9069. else
  9070. ac_cv_lib_c_r_pthread_kill=no
  9071. fi
  9072. rm -f core conftest.err conftest.$ac_objext \
  9073. conftest$ac_exeext conftest.$ac_ext
  9074. LIBS=$ac_check_lib_save_LIBS
  9075. fi
  9076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
  9077. $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
  9078. if test "x$ac_cv_lib_c_r_pthread_kill" = x""yes; then :
  9079. gl_have_pthread=yes
  9080. LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
  9081. LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
  9082. fi
  9083. fi
  9084. fi
  9085. if test -n "$gl_have_pthread"; then
  9086. gl_threads_api=posix
  9087. $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
  9088. if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
  9089. if test $gl_have_weak = yes; then
  9090. $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
  9091. LIBTHREAD=
  9092. LTLIBTHREAD=
  9093. fi
  9094. fi
  9095. # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
  9096. # pthread_rwlock_* functions.
  9097. ac_fn_cxx_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
  9098. "
  9099. if test "x$ac_cv_type_pthread_rwlock_t" = x""yes; then :
  9100. $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
  9101. fi
  9102. # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
  9103. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9104. /* end confdefs.h. */
  9105. #include <pthread.h>
  9106. int
  9107. main ()
  9108. {
  9109. #if __FreeBSD__ == 4
  9110. error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
  9111. #else
  9112. int x = (int)PTHREAD_MUTEX_RECURSIVE;
  9113. return !x;
  9114. #endif
  9115. ;
  9116. return 0;
  9117. }
  9118. _ACEOF
  9119. if ac_fn_cxx_try_compile "$LINENO"; then :
  9120. $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
  9121. fi
  9122. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9123. fi
  9124. fi
  9125. fi
  9126. if test -z "$gl_have_pthread"; then
  9127. if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
  9128. gl_have_solaristhread=
  9129. gl_save_LIBS="$LIBS"
  9130. LIBS="$LIBS -lthread"
  9131. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9132. /* end confdefs.h. */
  9133. #include <thread.h>
  9134. #include <synch.h>
  9135. int
  9136. main ()
  9137. {
  9138. thr_self();
  9139. ;
  9140. return 0;
  9141. }
  9142. _ACEOF
  9143. if ac_fn_cxx_try_link "$LINENO"; then :
  9144. gl_have_solaristhread=yes
  9145. fi
  9146. rm -f core conftest.err conftest.$ac_objext \
  9147. conftest$ac_exeext conftest.$ac_ext
  9148. LIBS="$gl_save_LIBS"
  9149. if test -n "$gl_have_solaristhread"; then
  9150. gl_threads_api=solaris
  9151. LIBTHREAD=-lthread
  9152. LTLIBTHREAD=-lthread
  9153. LIBMULTITHREAD="$LIBTHREAD"
  9154. LTLIBMULTITHREAD="$LTLIBTHREAD"
  9155. $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
  9156. if test $gl_have_weak = yes; then
  9157. $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
  9158. LIBTHREAD=
  9159. LTLIBTHREAD=
  9160. fi
  9161. fi
  9162. fi
  9163. fi
  9164. if test "$gl_use_threads" = pth; then
  9165. gl_save_CPPFLAGS="$CPPFLAGS"
  9166. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
  9167. $as_echo_n "checking how to link with libpth... " >&6; }
  9168. if test "${ac_cv_libpth_libs+set}" = set; then :
  9169. $as_echo_n "(cached) " >&6
  9170. else
  9171. use_additional=yes
  9172. acl_save_prefix="$prefix"
  9173. prefix="$acl_final_prefix"
  9174. acl_save_exec_prefix="$exec_prefix"
  9175. exec_prefix="$acl_final_exec_prefix"
  9176. eval additional_includedir=\"$includedir\"
  9177. eval additional_libdir=\"$libdir\"
  9178. exec_prefix="$acl_save_exec_prefix"
  9179. prefix="$acl_save_prefix"
  9180. # Check whether --with-libpth-prefix was given.
  9181. if test "${with_libpth_prefix+set}" = set; then :
  9182. withval=$with_libpth_prefix;
  9183. if test "X$withval" = "Xno"; then
  9184. use_additional=no
  9185. else
  9186. if test "X$withval" = "X"; then
  9187. acl_save_prefix="$prefix"
  9188. prefix="$acl_final_prefix"
  9189. acl_save_exec_prefix="$exec_prefix"
  9190. exec_prefix="$acl_final_exec_prefix"
  9191. eval additional_includedir=\"$includedir\"
  9192. eval additional_libdir=\"$libdir\"
  9193. exec_prefix="$acl_save_exec_prefix"
  9194. prefix="$acl_save_prefix"
  9195. else
  9196. additional_includedir="$withval/include"
  9197. additional_libdir="$withval/$acl_libdirstem"
  9198. fi
  9199. fi
  9200. fi
  9201. LIBPTH=
  9202. LTLIBPTH=
  9203. INCPTH=
  9204. LIBPTH_PREFIX=
  9205. rpathdirs=
  9206. ltrpathdirs=
  9207. names_already_handled=
  9208. names_next_round='pth '
  9209. while test -n "$names_next_round"; do
  9210. names_this_round="$names_next_round"
  9211. names_next_round=
  9212. for name in $names_this_round; do
  9213. already_handled=
  9214. for n in $names_already_handled; do
  9215. if test "$n" = "$name"; then
  9216. already_handled=yes
  9217. break
  9218. fi
  9219. done
  9220. if test -z "$already_handled"; then
  9221. names_already_handled="$names_already_handled $name"
  9222. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  9223. eval value=\"\$HAVE_LIB$uppername\"
  9224. if test -n "$value"; then
  9225. if test "$value" = yes; then
  9226. eval value=\"\$LIB$uppername\"
  9227. test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
  9228. eval value=\"\$LTLIB$uppername\"
  9229. test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
  9230. else
  9231. :
  9232. fi
  9233. else
  9234. found_dir=
  9235. found_la=
  9236. found_so=
  9237. found_a=
  9238. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  9239. if test -n "$acl_shlibext"; then
  9240. shrext=".$acl_shlibext" # typically: shrext=.so
  9241. else
  9242. shrext=
  9243. fi
  9244. if test $use_additional = yes; then
  9245. dir="$additional_libdir"
  9246. if test -n "$acl_shlibext"; then
  9247. if test -f "$dir/$libname$shrext"; then
  9248. found_dir="$dir"
  9249. found_so="$dir/$libname$shrext"
  9250. else
  9251. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  9252. ver=`(cd "$dir" && \
  9253. for f in "$libname$shrext".*; do echo "$f"; done \
  9254. | sed -e "s,^$libname$shrext\\\\.,," \
  9255. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  9256. | sed 1q ) 2>/dev/null`
  9257. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  9258. found_dir="$dir"
  9259. found_so="$dir/$libname$shrext.$ver"
  9260. fi
  9261. else
  9262. eval library_names=\"$acl_library_names_spec\"
  9263. for f in $library_names; do
  9264. if test -f "$dir/$f"; then
  9265. found_dir="$dir"
  9266. found_so="$dir/$f"
  9267. break
  9268. fi
  9269. done
  9270. fi
  9271. fi
  9272. fi
  9273. if test "X$found_dir" = "X"; then
  9274. if test -f "$dir/$libname.$acl_libext"; then
  9275. found_dir="$dir"
  9276. found_a="$dir/$libname.$acl_libext"
  9277. fi
  9278. fi
  9279. if test "X$found_dir" != "X"; then
  9280. if test -f "$dir/$libname.la"; then
  9281. found_la="$dir/$libname.la"
  9282. fi
  9283. fi
  9284. fi
  9285. if test "X$found_dir" = "X"; then
  9286. for x in $LDFLAGS $LTLIBPTH; do
  9287. acl_save_prefix="$prefix"
  9288. prefix="$acl_final_prefix"
  9289. acl_save_exec_prefix="$exec_prefix"
  9290. exec_prefix="$acl_final_exec_prefix"
  9291. eval x=\"$x\"
  9292. exec_prefix="$acl_save_exec_prefix"
  9293. prefix="$acl_save_prefix"
  9294. case "$x" in
  9295. -L*)
  9296. dir=`echo "X$x" | sed -e 's/^X-L//'`
  9297. if test -n "$acl_shlibext"; then
  9298. if test -f "$dir/$libname$shrext"; then
  9299. found_dir="$dir"
  9300. found_so="$dir/$libname$shrext"
  9301. else
  9302. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  9303. ver=`(cd "$dir" && \
  9304. for f in "$libname$shrext".*; do echo "$f"; done \
  9305. | sed -e "s,^$libname$shrext\\\\.,," \
  9306. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  9307. | sed 1q ) 2>/dev/null`
  9308. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  9309. found_dir="$dir"
  9310. found_so="$dir/$libname$shrext.$ver"
  9311. fi
  9312. else
  9313. eval library_names=\"$acl_library_names_spec\"
  9314. for f in $library_names; do
  9315. if test -f "$dir/$f"; then
  9316. found_dir="$dir"
  9317. found_so="$dir/$f"
  9318. break
  9319. fi
  9320. done
  9321. fi
  9322. fi
  9323. fi
  9324. if test "X$found_dir" = "X"; then
  9325. if test -f "$dir/$libname.$acl_libext"; then
  9326. found_dir="$dir"
  9327. found_a="$dir/$libname.$acl_libext"
  9328. fi
  9329. fi
  9330. if test "X$found_dir" != "X"; then
  9331. if test -f "$dir/$libname.la"; then
  9332. found_la="$dir/$libname.la"
  9333. fi
  9334. fi
  9335. ;;
  9336. esac
  9337. if test "X$found_dir" != "X"; then
  9338. break
  9339. fi
  9340. done
  9341. fi
  9342. if test "X$found_dir" != "X"; then
  9343. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
  9344. if test "X$found_so" != "X"; then
  9345. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  9346. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  9347. else
  9348. haveit=
  9349. for x in $ltrpathdirs; do
  9350. if test "X$x" = "X$found_dir"; then
  9351. haveit=yes
  9352. break
  9353. fi
  9354. done
  9355. if test -z "$haveit"; then
  9356. ltrpathdirs="$ltrpathdirs $found_dir"
  9357. fi
  9358. if test "$acl_hardcode_direct" = yes; then
  9359. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  9360. else
  9361. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  9362. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  9363. haveit=
  9364. for x in $rpathdirs; do
  9365. if test "X$x" = "X$found_dir"; then
  9366. haveit=yes
  9367. break
  9368. fi
  9369. done
  9370. if test -z "$haveit"; then
  9371. rpathdirs="$rpathdirs $found_dir"
  9372. fi
  9373. else
  9374. haveit=
  9375. for x in $LDFLAGS $LIBPTH; do
  9376. acl_save_prefix="$prefix"
  9377. prefix="$acl_final_prefix"
  9378. acl_save_exec_prefix="$exec_prefix"
  9379. exec_prefix="$acl_final_exec_prefix"
  9380. eval x=\"$x\"
  9381. exec_prefix="$acl_save_exec_prefix"
  9382. prefix="$acl_save_prefix"
  9383. if test "X$x" = "X-L$found_dir"; then
  9384. haveit=yes
  9385. break
  9386. fi
  9387. done
  9388. if test -z "$haveit"; then
  9389. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
  9390. fi
  9391. if test "$acl_hardcode_minus_L" != no; then
  9392. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  9393. else
  9394. LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
  9395. fi
  9396. fi
  9397. fi
  9398. fi
  9399. else
  9400. if test "X$found_a" != "X"; then
  9401. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
  9402. else
  9403. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
  9404. fi
  9405. fi
  9406. additional_includedir=
  9407. case "$found_dir" in
  9408. */$acl_libdirstem | */$acl_libdirstem/)
  9409. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  9410. LIBPTH_PREFIX="$basedir"
  9411. additional_includedir="$basedir/include"
  9412. ;;
  9413. esac
  9414. if test "X$additional_includedir" != "X"; then
  9415. if test "X$additional_includedir" != "X/usr/include"; then
  9416. haveit=
  9417. if test "X$additional_includedir" = "X/usr/local/include"; then
  9418. if test -n "$GCC"; then
  9419. case $host_os in
  9420. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  9421. esac
  9422. fi
  9423. fi
  9424. if test -z "$haveit"; then
  9425. for x in $CPPFLAGS $INCPTH; do
  9426. acl_save_prefix="$prefix"
  9427. prefix="$acl_final_prefix"
  9428. acl_save_exec_prefix="$exec_prefix"
  9429. exec_prefix="$acl_final_exec_prefix"
  9430. eval x=\"$x\"
  9431. exec_prefix="$acl_save_exec_prefix"
  9432. prefix="$acl_save_prefix"
  9433. if test "X$x" = "X-I$additional_includedir"; then
  9434. haveit=yes
  9435. break
  9436. fi
  9437. done
  9438. if test -z "$haveit"; then
  9439. if test -d "$additional_includedir"; then
  9440. INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
  9441. fi
  9442. fi
  9443. fi
  9444. fi
  9445. fi
  9446. if test -n "$found_la"; then
  9447. save_libdir="$libdir"
  9448. case "$found_la" in
  9449. */* | *\\*) . "$found_la" ;;
  9450. *) . "./$found_la" ;;
  9451. esac
  9452. libdir="$save_libdir"
  9453. for dep in $dependency_libs; do
  9454. case "$dep" in
  9455. -L*)
  9456. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  9457. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  9458. haveit=
  9459. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  9460. if test -n "$GCC"; then
  9461. case $host_os in
  9462. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  9463. esac
  9464. fi
  9465. fi
  9466. if test -z "$haveit"; then
  9467. haveit=
  9468. for x in $LDFLAGS $LIBPTH; do
  9469. acl_save_prefix="$prefix"
  9470. prefix="$acl_final_prefix"
  9471. acl_save_exec_prefix="$exec_prefix"
  9472. exec_prefix="$acl_final_exec_prefix"
  9473. eval x=\"$x\"
  9474. exec_prefix="$acl_save_exec_prefix"
  9475. prefix="$acl_save_prefix"
  9476. if test "X$x" = "X-L$additional_libdir"; then
  9477. haveit=yes
  9478. break
  9479. fi
  9480. done
  9481. if test -z "$haveit"; then
  9482. if test -d "$additional_libdir"; then
  9483. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
  9484. fi
  9485. fi
  9486. haveit=
  9487. for x in $LDFLAGS $LTLIBPTH; do
  9488. acl_save_prefix="$prefix"
  9489. prefix="$acl_final_prefix"
  9490. acl_save_exec_prefix="$exec_prefix"
  9491. exec_prefix="$acl_final_exec_prefix"
  9492. eval x=\"$x\"
  9493. exec_prefix="$acl_save_exec_prefix"
  9494. prefix="$acl_save_prefix"
  9495. if test "X$x" = "X-L$additional_libdir"; then
  9496. haveit=yes
  9497. break
  9498. fi
  9499. done
  9500. if test -z "$haveit"; then
  9501. if test -d "$additional_libdir"; then
  9502. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
  9503. fi
  9504. fi
  9505. fi
  9506. fi
  9507. ;;
  9508. -R*)
  9509. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  9510. if test "$enable_rpath" != no; then
  9511. haveit=
  9512. for x in $rpathdirs; do
  9513. if test "X$x" = "X$dir"; then
  9514. haveit=yes
  9515. break
  9516. fi
  9517. done
  9518. if test -z "$haveit"; then
  9519. rpathdirs="$rpathdirs $dir"
  9520. fi
  9521. haveit=
  9522. for x in $ltrpathdirs; do
  9523. if test "X$x" = "X$dir"; then
  9524. haveit=yes
  9525. break
  9526. fi
  9527. done
  9528. if test -z "$haveit"; then
  9529. ltrpathdirs="$ltrpathdirs $dir"
  9530. fi
  9531. fi
  9532. ;;
  9533. -l*)
  9534. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  9535. ;;
  9536. *.la)
  9537. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  9538. ;;
  9539. *)
  9540. LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
  9541. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
  9542. ;;
  9543. esac
  9544. done
  9545. fi
  9546. else
  9547. LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
  9548. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
  9549. fi
  9550. fi
  9551. fi
  9552. done
  9553. done
  9554. if test "X$rpathdirs" != "X"; then
  9555. if test -n "$acl_hardcode_libdir_separator"; then
  9556. alldirs=
  9557. for found_dir in $rpathdirs; do
  9558. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  9559. done
  9560. acl_save_libdir="$libdir"
  9561. libdir="$alldirs"
  9562. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  9563. libdir="$acl_save_libdir"
  9564. LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
  9565. else
  9566. for found_dir in $rpathdirs; do
  9567. acl_save_libdir="$libdir"
  9568. libdir="$found_dir"
  9569. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  9570. libdir="$acl_save_libdir"
  9571. LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
  9572. done
  9573. fi
  9574. fi
  9575. if test "X$ltrpathdirs" != "X"; then
  9576. for found_dir in $ltrpathdirs; do
  9577. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
  9578. done
  9579. fi
  9580. ac_cv_libpth_libs="$LIBPTH"
  9581. ac_cv_libpth_ltlibs="$LTLIBPTH"
  9582. ac_cv_libpth_cppflags="$INCPTH"
  9583. ac_cv_libpth_prefix="$LIBPTH_PREFIX"
  9584. fi
  9585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
  9586. $as_echo "$ac_cv_libpth_libs" >&6; }
  9587. LIBPTH="$ac_cv_libpth_libs"
  9588. LTLIBPTH="$ac_cv_libpth_ltlibs"
  9589. INCPTH="$ac_cv_libpth_cppflags"
  9590. LIBPTH_PREFIX="$ac_cv_libpth_prefix"
  9591. for element in $INCPTH; do
  9592. haveit=
  9593. for x in $CPPFLAGS; do
  9594. acl_save_prefix="$prefix"
  9595. prefix="$acl_final_prefix"
  9596. acl_save_exec_prefix="$exec_prefix"
  9597. exec_prefix="$acl_final_exec_prefix"
  9598. eval x=\"$x\"
  9599. exec_prefix="$acl_save_exec_prefix"
  9600. prefix="$acl_save_prefix"
  9601. if test "X$x" = "X$element"; then
  9602. haveit=yes
  9603. break
  9604. fi
  9605. done
  9606. if test -z "$haveit"; then
  9607. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  9608. fi
  9609. done
  9610. HAVE_LIBPTH=yes
  9611. gl_have_pth=
  9612. gl_save_LIBS="$LIBS"
  9613. LIBS="$LIBS -lpth"
  9614. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9615. /* end confdefs.h. */
  9616. #include <pth.h>
  9617. int
  9618. main ()
  9619. {
  9620. pth_self();
  9621. ;
  9622. return 0;
  9623. }
  9624. _ACEOF
  9625. if ac_fn_cxx_try_link "$LINENO"; then :
  9626. gl_have_pth=yes
  9627. fi
  9628. rm -f core conftest.err conftest.$ac_objext \
  9629. conftest$ac_exeext conftest.$ac_ext
  9630. LIBS="$gl_save_LIBS"
  9631. if test -n "$gl_have_pth"; then
  9632. gl_threads_api=pth
  9633. LIBTHREAD="$LIBPTH"
  9634. LTLIBTHREAD="$LTLIBPTH"
  9635. LIBMULTITHREAD="$LIBTHREAD"
  9636. LTLIBMULTITHREAD="$LTLIBTHREAD"
  9637. $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
  9638. if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
  9639. if test $gl_have_weak = yes; then
  9640. $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
  9641. LIBTHREAD=
  9642. LTLIBTHREAD=
  9643. fi
  9644. fi
  9645. else
  9646. CPPFLAGS="$gl_save_CPPFLAGS"
  9647. fi
  9648. fi
  9649. if test -z "$gl_have_pthread"; then
  9650. if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
  9651. if { case "$host_os" in
  9652. mingw*) true;;
  9653. *) false;;
  9654. esac
  9655. }; then
  9656. gl_threads_api=win32
  9657. $as_echo "#define USE_WIN32_THREADS 1" >>confdefs.h
  9658. fi
  9659. fi
  9660. fi
  9661. fi
  9662. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
  9663. $as_echo_n "checking for multithread API to use... " >&6; }
  9664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
  9665. $as_echo "$gl_threads_api" >&6; }
  9666. use_additional=yes
  9667. acl_save_prefix="$prefix"
  9668. prefix="$acl_final_prefix"
  9669. acl_save_exec_prefix="$exec_prefix"
  9670. exec_prefix="$acl_final_exec_prefix"
  9671. eval additional_includedir=\"$includedir\"
  9672. eval additional_libdir=\"$libdir\"
  9673. exec_prefix="$acl_save_exec_prefix"
  9674. prefix="$acl_save_prefix"
  9675. # Check whether --with-libiconv-prefix was given.
  9676. if test "${with_libiconv_prefix+set}" = set; then :
  9677. withval=$with_libiconv_prefix;
  9678. if test "X$withval" = "Xno"; then
  9679. use_additional=no
  9680. else
  9681. if test "X$withval" = "X"; then
  9682. acl_save_prefix="$prefix"
  9683. prefix="$acl_final_prefix"
  9684. acl_save_exec_prefix="$exec_prefix"
  9685. exec_prefix="$acl_final_exec_prefix"
  9686. eval additional_includedir=\"$includedir\"
  9687. eval additional_libdir=\"$libdir\"
  9688. exec_prefix="$acl_save_exec_prefix"
  9689. prefix="$acl_save_prefix"
  9690. else
  9691. additional_includedir="$withval/include"
  9692. additional_libdir="$withval/$acl_libdirstem"
  9693. fi
  9694. fi
  9695. fi
  9696. LIBICONV=
  9697. LTLIBICONV=
  9698. INCICONV=
  9699. LIBICONV_PREFIX=
  9700. rpathdirs=
  9701. ltrpathdirs=
  9702. names_already_handled=
  9703. names_next_round='iconv '
  9704. while test -n "$names_next_round"; do
  9705. names_this_round="$names_next_round"
  9706. names_next_round=
  9707. for name in $names_this_round; do
  9708. already_handled=
  9709. for n in $names_already_handled; do
  9710. if test "$n" = "$name"; then
  9711. already_handled=yes
  9712. break
  9713. fi
  9714. done
  9715. if test -z "$already_handled"; then
  9716. names_already_handled="$names_already_handled $name"
  9717. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  9718. eval value=\"\$HAVE_LIB$uppername\"
  9719. if test -n "$value"; then
  9720. if test "$value" = yes; then
  9721. eval value=\"\$LIB$uppername\"
  9722. test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
  9723. eval value=\"\$LTLIB$uppername\"
  9724. test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
  9725. else
  9726. :
  9727. fi
  9728. else
  9729. found_dir=
  9730. found_la=
  9731. found_so=
  9732. found_a=
  9733. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  9734. if test -n "$acl_shlibext"; then
  9735. shrext=".$acl_shlibext" # typically: shrext=.so
  9736. else
  9737. shrext=
  9738. fi
  9739. if test $use_additional = yes; then
  9740. dir="$additional_libdir"
  9741. if test -n "$acl_shlibext"; then
  9742. if test -f "$dir/$libname$shrext"; then
  9743. found_dir="$dir"
  9744. found_so="$dir/$libname$shrext"
  9745. else
  9746. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  9747. ver=`(cd "$dir" && \
  9748. for f in "$libname$shrext".*; do echo "$f"; done \
  9749. | sed -e "s,^$libname$shrext\\\\.,," \
  9750. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  9751. | sed 1q ) 2>/dev/null`
  9752. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  9753. found_dir="$dir"
  9754. found_so="$dir/$libname$shrext.$ver"
  9755. fi
  9756. else
  9757. eval library_names=\"$acl_library_names_spec\"
  9758. for f in $library_names; do
  9759. if test -f "$dir/$f"; then
  9760. found_dir="$dir"
  9761. found_so="$dir/$f"
  9762. break
  9763. fi
  9764. done
  9765. fi
  9766. fi
  9767. fi
  9768. if test "X$found_dir" = "X"; then
  9769. if test -f "$dir/$libname.$acl_libext"; then
  9770. found_dir="$dir"
  9771. found_a="$dir/$libname.$acl_libext"
  9772. fi
  9773. fi
  9774. if test "X$found_dir" != "X"; then
  9775. if test -f "$dir/$libname.la"; then
  9776. found_la="$dir/$libname.la"
  9777. fi
  9778. fi
  9779. fi
  9780. if test "X$found_dir" = "X"; then
  9781. for x in $LDFLAGS $LTLIBICONV; do
  9782. acl_save_prefix="$prefix"
  9783. prefix="$acl_final_prefix"
  9784. acl_save_exec_prefix="$exec_prefix"
  9785. exec_prefix="$acl_final_exec_prefix"
  9786. eval x=\"$x\"
  9787. exec_prefix="$acl_save_exec_prefix"
  9788. prefix="$acl_save_prefix"
  9789. case "$x" in
  9790. -L*)
  9791. dir=`echo "X$x" | sed -e 's/^X-L//'`
  9792. if test -n "$acl_shlibext"; then
  9793. if test -f "$dir/$libname$shrext"; then
  9794. found_dir="$dir"
  9795. found_so="$dir/$libname$shrext"
  9796. else
  9797. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  9798. ver=`(cd "$dir" && \
  9799. for f in "$libname$shrext".*; do echo "$f"; done \
  9800. | sed -e "s,^$libname$shrext\\\\.,," \
  9801. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  9802. | sed 1q ) 2>/dev/null`
  9803. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  9804. found_dir="$dir"
  9805. found_so="$dir/$libname$shrext.$ver"
  9806. fi
  9807. else
  9808. eval library_names=\"$acl_library_names_spec\"
  9809. for f in $library_names; do
  9810. if test -f "$dir/$f"; then
  9811. found_dir="$dir"
  9812. found_so="$dir/$f"
  9813. break
  9814. fi
  9815. done
  9816. fi
  9817. fi
  9818. fi
  9819. if test "X$found_dir" = "X"; then
  9820. if test -f "$dir/$libname.$acl_libext"; then
  9821. found_dir="$dir"
  9822. found_a="$dir/$libname.$acl_libext"
  9823. fi
  9824. fi
  9825. if test "X$found_dir" != "X"; then
  9826. if test -f "$dir/$libname.la"; then
  9827. found_la="$dir/$libname.la"
  9828. fi
  9829. fi
  9830. ;;
  9831. esac
  9832. if test "X$found_dir" != "X"; then
  9833. break
  9834. fi
  9835. done
  9836. fi
  9837. if test "X$found_dir" != "X"; then
  9838. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
  9839. if test "X$found_so" != "X"; then
  9840. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  9841. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  9842. else
  9843. haveit=
  9844. for x in $ltrpathdirs; do
  9845. if test "X$x" = "X$found_dir"; then
  9846. haveit=yes
  9847. break
  9848. fi
  9849. done
  9850. if test -z "$haveit"; then
  9851. ltrpathdirs="$ltrpathdirs $found_dir"
  9852. fi
  9853. if test "$acl_hardcode_direct" = yes; then
  9854. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  9855. else
  9856. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  9857. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  9858. haveit=
  9859. for x in $rpathdirs; do
  9860. if test "X$x" = "X$found_dir"; then
  9861. haveit=yes
  9862. break
  9863. fi
  9864. done
  9865. if test -z "$haveit"; then
  9866. rpathdirs="$rpathdirs $found_dir"
  9867. fi
  9868. else
  9869. haveit=
  9870. for x in $LDFLAGS $LIBICONV; do
  9871. acl_save_prefix="$prefix"
  9872. prefix="$acl_final_prefix"
  9873. acl_save_exec_prefix="$exec_prefix"
  9874. exec_prefix="$acl_final_exec_prefix"
  9875. eval x=\"$x\"
  9876. exec_prefix="$acl_save_exec_prefix"
  9877. prefix="$acl_save_prefix"
  9878. if test "X$x" = "X-L$found_dir"; then
  9879. haveit=yes
  9880. break
  9881. fi
  9882. done
  9883. if test -z "$haveit"; then
  9884. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
  9885. fi
  9886. if test "$acl_hardcode_minus_L" != no; then
  9887. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  9888. else
  9889. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  9890. fi
  9891. fi
  9892. fi
  9893. fi
  9894. else
  9895. if test "X$found_a" != "X"; then
  9896. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
  9897. else
  9898. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
  9899. fi
  9900. fi
  9901. additional_includedir=
  9902. case "$found_dir" in
  9903. */$acl_libdirstem | */$acl_libdirstem/)
  9904. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  9905. LIBICONV_PREFIX="$basedir"
  9906. additional_includedir="$basedir/include"
  9907. ;;
  9908. esac
  9909. if test "X$additional_includedir" != "X"; then
  9910. if test "X$additional_includedir" != "X/usr/include"; then
  9911. haveit=
  9912. if test "X$additional_includedir" = "X/usr/local/include"; then
  9913. if test -n "$GCC"; then
  9914. case $host_os in
  9915. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  9916. esac
  9917. fi
  9918. fi
  9919. if test -z "$haveit"; then
  9920. for x in $CPPFLAGS $INCICONV; do
  9921. acl_save_prefix="$prefix"
  9922. prefix="$acl_final_prefix"
  9923. acl_save_exec_prefix="$exec_prefix"
  9924. exec_prefix="$acl_final_exec_prefix"
  9925. eval x=\"$x\"
  9926. exec_prefix="$acl_save_exec_prefix"
  9927. prefix="$acl_save_prefix"
  9928. if test "X$x" = "X-I$additional_includedir"; then
  9929. haveit=yes
  9930. break
  9931. fi
  9932. done
  9933. if test -z "$haveit"; then
  9934. if test -d "$additional_includedir"; then
  9935. INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
  9936. fi
  9937. fi
  9938. fi
  9939. fi
  9940. fi
  9941. if test -n "$found_la"; then
  9942. save_libdir="$libdir"
  9943. case "$found_la" in
  9944. */* | *\\*) . "$found_la" ;;
  9945. *) . "./$found_la" ;;
  9946. esac
  9947. libdir="$save_libdir"
  9948. for dep in $dependency_libs; do
  9949. case "$dep" in
  9950. -L*)
  9951. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  9952. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  9953. haveit=
  9954. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  9955. if test -n "$GCC"; then
  9956. case $host_os in
  9957. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  9958. esac
  9959. fi
  9960. fi
  9961. if test -z "$haveit"; then
  9962. haveit=
  9963. for x in $LDFLAGS $LIBICONV; do
  9964. acl_save_prefix="$prefix"
  9965. prefix="$acl_final_prefix"
  9966. acl_save_exec_prefix="$exec_prefix"
  9967. exec_prefix="$acl_final_exec_prefix"
  9968. eval x=\"$x\"
  9969. exec_prefix="$acl_save_exec_prefix"
  9970. prefix="$acl_save_prefix"
  9971. if test "X$x" = "X-L$additional_libdir"; then
  9972. haveit=yes
  9973. break
  9974. fi
  9975. done
  9976. if test -z "$haveit"; then
  9977. if test -d "$additional_libdir"; then
  9978. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
  9979. fi
  9980. fi
  9981. haveit=
  9982. for x in $LDFLAGS $LTLIBICONV; do
  9983. acl_save_prefix="$prefix"
  9984. prefix="$acl_final_prefix"
  9985. acl_save_exec_prefix="$exec_prefix"
  9986. exec_prefix="$acl_final_exec_prefix"
  9987. eval x=\"$x\"
  9988. exec_prefix="$acl_save_exec_prefix"
  9989. prefix="$acl_save_prefix"
  9990. if test "X$x" = "X-L$additional_libdir"; then
  9991. haveit=yes
  9992. break
  9993. fi
  9994. done
  9995. if test -z "$haveit"; then
  9996. if test -d "$additional_libdir"; then
  9997. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
  9998. fi
  9999. fi
  10000. fi
  10001. fi
  10002. ;;
  10003. -R*)
  10004. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  10005. if test "$enable_rpath" != no; then
  10006. haveit=
  10007. for x in $rpathdirs; do
  10008. if test "X$x" = "X$dir"; then
  10009. haveit=yes
  10010. break
  10011. fi
  10012. done
  10013. if test -z "$haveit"; then
  10014. rpathdirs="$rpathdirs $dir"
  10015. fi
  10016. haveit=
  10017. for x in $ltrpathdirs; do
  10018. if test "X$x" = "X$dir"; then
  10019. haveit=yes
  10020. break
  10021. fi
  10022. done
  10023. if test -z "$haveit"; then
  10024. ltrpathdirs="$ltrpathdirs $dir"
  10025. fi
  10026. fi
  10027. ;;
  10028. -l*)
  10029. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  10030. ;;
  10031. *.la)
  10032. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  10033. ;;
  10034. *)
  10035. LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
  10036. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
  10037. ;;
  10038. esac
  10039. done
  10040. fi
  10041. else
  10042. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  10043. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
  10044. fi
  10045. fi
  10046. fi
  10047. done
  10048. done
  10049. if test "X$rpathdirs" != "X"; then
  10050. if test -n "$acl_hardcode_libdir_separator"; then
  10051. alldirs=
  10052. for found_dir in $rpathdirs; do
  10053. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  10054. done
  10055. acl_save_libdir="$libdir"
  10056. libdir="$alldirs"
  10057. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  10058. libdir="$acl_save_libdir"
  10059. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  10060. else
  10061. for found_dir in $rpathdirs; do
  10062. acl_save_libdir="$libdir"
  10063. libdir="$found_dir"
  10064. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  10065. libdir="$acl_save_libdir"
  10066. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  10067. done
  10068. fi
  10069. fi
  10070. if test "X$ltrpathdirs" != "X"; then
  10071. for found_dir in $ltrpathdirs; do
  10072. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
  10073. done
  10074. fi
  10075. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10076. /* end confdefs.h. */
  10077. int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
  10078. int
  10079. main ()
  10080. {
  10081. ;
  10082. return 0;
  10083. }
  10084. _ACEOF
  10085. if ac_fn_cxx_try_link "$LINENO"; then :
  10086. $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
  10087. fi
  10088. rm -f core conftest.err conftest.$ac_objext \
  10089. conftest$ac_exeext conftest.$ac_ext
  10090. for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
  10091. do :
  10092. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10093. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  10094. eval as_val=\$$as_ac_Header
  10095. if test "x$as_val" = x""yes; then :
  10096. cat >>confdefs.h <<_ACEOF
  10097. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10098. _ACEOF
  10099. fi
  10100. done
  10101. for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
  10102. stpcpy strcasecmp strdup strtoul tsearch argz_count argz_stringify \
  10103. argz_next __fsetlocking
  10104. do :
  10105. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10106. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  10107. eval as_val=\$$as_ac_var
  10108. if test "x$as_val" = x""yes; then :
  10109. cat >>confdefs.h <<_ACEOF
  10110. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10111. _ACEOF
  10112. fi
  10113. done
  10114. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
  10115. $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
  10116. if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then :
  10117. $as_echo_n "(cached) " >&6
  10118. else
  10119. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10120. /* end confdefs.h. */
  10121. #include <stdio.h>
  10122. int
  10123. main ()
  10124. {
  10125. #ifndef feof_unlocked
  10126. char *p = (char *) feof_unlocked;
  10127. #endif
  10128. ;
  10129. return 0;
  10130. }
  10131. _ACEOF
  10132. if ac_fn_cxx_try_compile "$LINENO"; then :
  10133. ac_cv_have_decl_feof_unlocked=yes
  10134. else
  10135. ac_cv_have_decl_feof_unlocked=no
  10136. fi
  10137. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10138. fi
  10139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
  10140. $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
  10141. if test $ac_cv_have_decl_feof_unlocked = yes; then
  10142. gt_value=1
  10143. else
  10144. gt_value=0
  10145. fi
  10146. cat >>confdefs.h <<_ACEOF
  10147. #define HAVE_DECL_FEOF_UNLOCKED $gt_value
  10148. _ACEOF
  10149. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
  10150. $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
  10151. if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then :
  10152. $as_echo_n "(cached) " >&6
  10153. else
  10154. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10155. /* end confdefs.h. */
  10156. #include <stdio.h>
  10157. int
  10158. main ()
  10159. {
  10160. #ifndef fgets_unlocked
  10161. char *p = (char *) fgets_unlocked;
  10162. #endif
  10163. ;
  10164. return 0;
  10165. }
  10166. _ACEOF
  10167. if ac_fn_cxx_try_compile "$LINENO"; then :
  10168. ac_cv_have_decl_fgets_unlocked=yes
  10169. else
  10170. ac_cv_have_decl_fgets_unlocked=no
  10171. fi
  10172. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10173. fi
  10174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
  10175. $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
  10176. if test $ac_cv_have_decl_fgets_unlocked = yes; then
  10177. gt_value=1
  10178. else
  10179. gt_value=0
  10180. fi
  10181. cat >>confdefs.h <<_ACEOF
  10182. #define HAVE_DECL_FGETS_UNLOCKED $gt_value
  10183. _ACEOF
  10184. am_save_CPPFLAGS="$CPPFLAGS"
  10185. for element in $INCICONV; do
  10186. haveit=
  10187. for x in $CPPFLAGS; do
  10188. acl_save_prefix="$prefix"
  10189. prefix="$acl_final_prefix"
  10190. acl_save_exec_prefix="$exec_prefix"
  10191. exec_prefix="$acl_final_exec_prefix"
  10192. eval x=\"$x\"
  10193. exec_prefix="$acl_save_exec_prefix"
  10194. prefix="$acl_save_prefix"
  10195. if test "X$x" = "X$element"; then
  10196. haveit=yes
  10197. break
  10198. fi
  10199. done
  10200. if test -z "$haveit"; then
  10201. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  10202. fi
  10203. done
  10204. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
  10205. $as_echo_n "checking for iconv... " >&6; }
  10206. if test "${am_cv_func_iconv+set}" = set; then :
  10207. $as_echo_n "(cached) " >&6
  10208. else
  10209. am_cv_func_iconv="no, consider installing GNU libiconv"
  10210. am_cv_lib_iconv=no
  10211. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10212. /* end confdefs.h. */
  10213. #include <stdlib.h>
  10214. #include <iconv.h>
  10215. int
  10216. main ()
  10217. {
  10218. iconv_t cd = iconv_open("","");
  10219. iconv(cd,NULL,NULL,NULL,NULL);
  10220. iconv_close(cd);
  10221. ;
  10222. return 0;
  10223. }
  10224. _ACEOF
  10225. if ac_fn_cxx_try_link "$LINENO"; then :
  10226. am_cv_func_iconv=yes
  10227. fi
  10228. rm -f core conftest.err conftest.$ac_objext \
  10229. conftest$ac_exeext conftest.$ac_ext
  10230. if test "$am_cv_func_iconv" != yes; then
  10231. am_save_LIBS="$LIBS"
  10232. LIBS="$LIBS $LIBICONV"
  10233. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10234. /* end confdefs.h. */
  10235. #include <stdlib.h>
  10236. #include <iconv.h>
  10237. int
  10238. main ()
  10239. {
  10240. iconv_t cd = iconv_open("","");
  10241. iconv(cd,NULL,NULL,NULL,NULL);
  10242. iconv_close(cd);
  10243. ;
  10244. return 0;
  10245. }
  10246. _ACEOF
  10247. if ac_fn_cxx_try_link "$LINENO"; then :
  10248. am_cv_lib_iconv=yes
  10249. am_cv_func_iconv=yes
  10250. fi
  10251. rm -f core conftest.err conftest.$ac_objext \
  10252. conftest$ac_exeext conftest.$ac_ext
  10253. LIBS="$am_save_LIBS"
  10254. fi
  10255. fi
  10256. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
  10257. $as_echo "$am_cv_func_iconv" >&6; }
  10258. if test "$am_cv_func_iconv" = yes; then
  10259. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
  10260. $as_echo_n "checking for working iconv... " >&6; }
  10261. if test "${am_cv_func_iconv_works+set}" = set; then :
  10262. $as_echo_n "(cached) " >&6
  10263. else
  10264. am_save_LIBS="$LIBS"
  10265. if test $am_cv_lib_iconv = yes; then
  10266. LIBS="$LIBS $LIBICONV"
  10267. fi
  10268. if test "$cross_compiling" = yes; then :
  10269. case "$host_os" in
  10270. aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
  10271. *) am_cv_func_iconv_works="guessing yes" ;;
  10272. esac
  10273. else
  10274. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10275. /* end confdefs.h. */
  10276. #include <iconv.h>
  10277. #include <string.h>
  10278. int main ()
  10279. {
  10280. /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
  10281. returns. */
  10282. {
  10283. iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
  10284. if (cd_utf8_to_88591 != (iconv_t)(-1))
  10285. {
  10286. static const char input[] = "\342\202\254"; /* EURO SIGN */
  10287. char buf[10];
  10288. const char *inptr = input;
  10289. size_t inbytesleft = strlen (input);
  10290. char *outptr = buf;
  10291. size_t outbytesleft = sizeof (buf);
  10292. size_t res = iconv (cd_utf8_to_88591,
  10293. (char **) &inptr, &inbytesleft,
  10294. &outptr, &outbytesleft);
  10295. if (res == 0)
  10296. return 1;
  10297. }
  10298. }
  10299. #if 0 /* This bug could be worked around by the caller. */
  10300. /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
  10301. {
  10302. iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
  10303. if (cd_88591_to_utf8 != (iconv_t)(-1))
  10304. {
  10305. static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
  10306. char buf[50];
  10307. const char *inptr = input;
  10308. size_t inbytesleft = strlen (input);
  10309. char *outptr = buf;
  10310. size_t outbytesleft = sizeof (buf);
  10311. size_t res = iconv (cd_88591_to_utf8,
  10312. (char **) &inptr, &inbytesleft,
  10313. &outptr, &outbytesleft);
  10314. if ((int)res > 0)
  10315. return 1;
  10316. }
  10317. }
  10318. #endif
  10319. /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
  10320. provided. */
  10321. if (/* Try standardized names. */
  10322. iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
  10323. /* Try IRIX, OSF/1 names. */
  10324. && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
  10325. /* Try AIX names. */
  10326. && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
  10327. /* Try HP-UX names. */
  10328. && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
  10329. return 1;
  10330. return 0;
  10331. }
  10332. _ACEOF
  10333. if ac_fn_cxx_try_run "$LINENO"; then :
  10334. am_cv_func_iconv_works=yes
  10335. else
  10336. am_cv_func_iconv_works=no
  10337. fi
  10338. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10339. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10340. fi
  10341. LIBS="$am_save_LIBS"
  10342. fi
  10343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
  10344. $as_echo "$am_cv_func_iconv_works" >&6; }
  10345. case "$am_cv_func_iconv_works" in
  10346. *no) am_func_iconv=no am_cv_lib_iconv=no ;;
  10347. *) am_func_iconv=yes ;;
  10348. esac
  10349. else
  10350. am_func_iconv=no am_cv_lib_iconv=no
  10351. fi
  10352. if test "$am_func_iconv" = yes; then
  10353. $as_echo "#define HAVE_ICONV 1" >>confdefs.h
  10354. fi
  10355. if test "$am_cv_lib_iconv" = yes; then
  10356. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
  10357. $as_echo_n "checking how to link with libiconv... " >&6; }
  10358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
  10359. $as_echo "$LIBICONV" >&6; }
  10360. else
  10361. CPPFLAGS="$am_save_CPPFLAGS"
  10362. LIBICONV=
  10363. LTLIBICONV=
  10364. fi
  10365. if test "$am_cv_func_iconv" = yes; then
  10366. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
  10367. $as_echo_n "checking for iconv declaration... " >&6; }
  10368. if test "${am_cv_proto_iconv+set}" = set; then :
  10369. $as_echo_n "(cached) " >&6
  10370. else
  10371. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10372. /* end confdefs.h. */
  10373. #include <stdlib.h>
  10374. #include <iconv.h>
  10375. extern
  10376. #ifdef __cplusplus
  10377. "C"
  10378. #endif
  10379. #if defined(__STDC__) || defined(__cplusplus)
  10380. size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  10381. #else
  10382. size_t iconv();
  10383. #endif
  10384. int
  10385. main ()
  10386. {
  10387. ;
  10388. return 0;
  10389. }
  10390. _ACEOF
  10391. if ac_fn_cxx_try_compile "$LINENO"; then :
  10392. am_cv_proto_iconv_arg1=""
  10393. else
  10394. am_cv_proto_iconv_arg1="const"
  10395. fi
  10396. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10397. 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);"
  10398. fi
  10399. am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  10400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
  10401. }$am_cv_proto_iconv" >&5
  10402. $as_echo "${ac_t:-
  10403. }$am_cv_proto_iconv" >&6; }
  10404. cat >>confdefs.h <<_ACEOF
  10405. #define ICONV_CONST $am_cv_proto_iconv_arg1
  10406. _ACEOF
  10407. fi
  10408. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NL_LOCALE_NAME macro" >&5
  10409. $as_echo_n "checking for NL_LOCALE_NAME macro... " >&6; }
  10410. if test "${gt_cv_nl_locale_name+set}" = set; then :
  10411. $as_echo_n "(cached) " >&6
  10412. else
  10413. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10414. /* end confdefs.h. */
  10415. #include <langinfo.h>
  10416. #include <locale.h>
  10417. int
  10418. main ()
  10419. {
  10420. char* cs = nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES));
  10421. return !cs;
  10422. ;
  10423. return 0;
  10424. }
  10425. _ACEOF
  10426. if ac_fn_cxx_try_link "$LINENO"; then :
  10427. gt_cv_nl_locale_name=yes
  10428. else
  10429. gt_cv_nl_locale_name=no
  10430. fi
  10431. rm -f core conftest.err conftest.$ac_objext \
  10432. conftest$ac_exeext conftest.$ac_ext
  10433. fi
  10434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_nl_locale_name" >&5
  10435. $as_echo "$gt_cv_nl_locale_name" >&6; }
  10436. if test $gt_cv_nl_locale_name = yes; then
  10437. $as_echo "#define HAVE_NL_LOCALE_NAME 1" >>confdefs.h
  10438. fi
  10439. for ac_prog in bison
  10440. do
  10441. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10442. set dummy $ac_prog; ac_word=$2
  10443. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10444. $as_echo_n "checking for $ac_word... " >&6; }
  10445. if test "${ac_cv_prog_INTLBISON+set}" = set; then :
  10446. $as_echo_n "(cached) " >&6
  10447. else
  10448. if test -n "$INTLBISON"; then
  10449. ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
  10450. else
  10451. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10452. for as_dir in $PATH
  10453. do
  10454. IFS=$as_save_IFS
  10455. test -z "$as_dir" && as_dir=.
  10456. for ac_exec_ext in '' $ac_executable_extensions; do
  10457. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10458. ac_cv_prog_INTLBISON="$ac_prog"
  10459. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10460. break 2
  10461. fi
  10462. done
  10463. done
  10464. IFS=$as_save_IFS
  10465. fi
  10466. fi
  10467. INTLBISON=$ac_cv_prog_INTLBISON
  10468. if test -n "$INTLBISON"; then
  10469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
  10470. $as_echo "$INTLBISON" >&6; }
  10471. else
  10472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10473. $as_echo "no" >&6; }
  10474. fi
  10475. test -n "$INTLBISON" && break
  10476. done
  10477. if test -z "$INTLBISON"; then
  10478. ac_verc_fail=yes
  10479. else
  10480. { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
  10481. $as_echo_n "checking version of bison... " >&6; }
  10482. ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
  10483. case $ac_prog_version in
  10484. '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
  10485. 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
  10486. ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
  10487. *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
  10488. esac
  10489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
  10490. $as_echo "$ac_prog_version" >&6; }
  10491. fi
  10492. if test $ac_verc_fail = yes; then
  10493. INTLBISON=:
  10494. fi
  10495. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
  10496. $as_echo_n "checking for long long int... " >&6; }
  10497. if test "${ac_cv_type_long_long_int+set}" = set; then :
  10498. $as_echo_n "(cached) " >&6
  10499. else
  10500. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10501. /* end confdefs.h. */
  10502. /* Test preprocessor. */
  10503. #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  10504. error in preprocessor;
  10505. #endif
  10506. #if ! (18446744073709551615ULL <= -1ull)
  10507. error in preprocessor;
  10508. #endif
  10509. /* Test literals. */
  10510. long long int ll = 9223372036854775807ll;
  10511. long long int nll = -9223372036854775807LL;
  10512. unsigned long long int ull = 18446744073709551615ULL;
  10513. /* Test constant expressions. */
  10514. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  10515. ? 1 : -1)];
  10516. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  10517. ? 1 : -1)];
  10518. int i = 63;
  10519. int
  10520. main ()
  10521. {
  10522. /* Test availability of runtime routines for shift and division. */
  10523. long long int llmax = 9223372036854775807ll;
  10524. unsigned long long int ullmax = 18446744073709551615ull;
  10525. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  10526. | (llmax / ll) | (llmax % ll)
  10527. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  10528. | (ullmax / ull) | (ullmax % ull));
  10529. ;
  10530. return 0;
  10531. }
  10532. _ACEOF
  10533. if ac_fn_cxx_try_link "$LINENO"; then :
  10534. if test "$cross_compiling" = yes; then :
  10535. ac_cv_type_long_long_int=yes
  10536. else
  10537. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10538. /* end confdefs.h. */
  10539. #include <limits.h>
  10540. #ifndef LLONG_MAX
  10541. # define HALF \
  10542. (1LL << (sizeof (long long int) * CHAR_BIT - 2))
  10543. # define LLONG_MAX (HALF - 1 + HALF)
  10544. #endif
  10545. int
  10546. main ()
  10547. {
  10548. long long int n = 1;
  10549. int i;
  10550. for (i = 0; ; i++)
  10551. {
  10552. long long int m = n << i;
  10553. if (m >> i != n)
  10554. return 1;
  10555. if (LLONG_MAX / 2 < m)
  10556. break;
  10557. }
  10558. return 0;
  10559. ;
  10560. return 0;
  10561. }
  10562. _ACEOF
  10563. if ac_fn_cxx_try_run "$LINENO"; then :
  10564. ac_cv_type_long_long_int=yes
  10565. else
  10566. ac_cv_type_long_long_int=no
  10567. fi
  10568. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10569. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10570. fi
  10571. else
  10572. ac_cv_type_long_long_int=no
  10573. fi
  10574. rm -f core conftest.err conftest.$ac_objext \
  10575. conftest$ac_exeext conftest.$ac_ext
  10576. fi
  10577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
  10578. $as_echo "$ac_cv_type_long_long_int" >&6; }
  10579. if test $ac_cv_type_long_long_int = yes; then
  10580. $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
  10581. fi
  10582. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
  10583. $as_echo_n "checking for wchar_t... " >&6; }
  10584. if test "${gt_cv_c_wchar_t+set}" = set; then :
  10585. $as_echo_n "(cached) " >&6
  10586. else
  10587. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10588. /* end confdefs.h. */
  10589. #include <stddef.h>
  10590. wchar_t foo = (wchar_t)'\0';
  10591. int
  10592. main ()
  10593. {
  10594. ;
  10595. return 0;
  10596. }
  10597. _ACEOF
  10598. if ac_fn_cxx_try_compile "$LINENO"; then :
  10599. gt_cv_c_wchar_t=yes
  10600. else
  10601. gt_cv_c_wchar_t=no
  10602. fi
  10603. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10604. fi
  10605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
  10606. $as_echo "$gt_cv_c_wchar_t" >&6; }
  10607. if test $gt_cv_c_wchar_t = yes; then
  10608. $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
  10609. fi
  10610. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
  10611. $as_echo_n "checking for wint_t... " >&6; }
  10612. if test "${gt_cv_c_wint_t+set}" = set; then :
  10613. $as_echo_n "(cached) " >&6
  10614. else
  10615. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10616. /* end confdefs.h. */
  10617. /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
  10618. <wchar.h>.
  10619. BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
  10620. before <wchar.h>. */
  10621. #include <stddef.h>
  10622. #include <stdio.h>
  10623. #include <time.h>
  10624. #include <wchar.h>
  10625. wint_t foo = (wchar_t)'\0';
  10626. int
  10627. main ()
  10628. {
  10629. ;
  10630. return 0;
  10631. }
  10632. _ACEOF
  10633. if ac_fn_cxx_try_compile "$LINENO"; then :
  10634. gt_cv_c_wint_t=yes
  10635. else
  10636. gt_cv_c_wint_t=no
  10637. fi
  10638. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10639. fi
  10640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
  10641. $as_echo "$gt_cv_c_wint_t" >&6; }
  10642. if test $gt_cv_c_wint_t = yes; then
  10643. $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
  10644. fi
  10645. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
  10646. $as_echo_n "checking for intmax_t... " >&6; }
  10647. if test "${gt_cv_c_intmax_t+set}" = set; then :
  10648. $as_echo_n "(cached) " >&6
  10649. else
  10650. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10651. /* end confdefs.h. */
  10652. #include <stddef.h>
  10653. #include <stdlib.h>
  10654. #if HAVE_STDINT_H_WITH_UINTMAX
  10655. #include <stdint.h>
  10656. #endif
  10657. #if HAVE_INTTYPES_H_WITH_UINTMAX
  10658. #include <inttypes.h>
  10659. #endif
  10660. int
  10661. main ()
  10662. {
  10663. intmax_t x = -1;
  10664. return !x;
  10665. ;
  10666. return 0;
  10667. }
  10668. _ACEOF
  10669. if ac_fn_cxx_try_compile "$LINENO"; then :
  10670. gt_cv_c_intmax_t=yes
  10671. else
  10672. gt_cv_c_intmax_t=no
  10673. fi
  10674. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10675. fi
  10676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
  10677. $as_echo "$gt_cv_c_intmax_t" >&6; }
  10678. if test $gt_cv_c_intmax_t = yes; then
  10679. $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
  10680. fi
  10681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
  10682. $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
  10683. if test "${gt_cv_func_printf_posix+set}" = set; then :
  10684. $as_echo_n "(cached) " >&6
  10685. else
  10686. if test "$cross_compiling" = yes; then :
  10687. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10688. /* end confdefs.h. */
  10689. #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
  10690. notposix
  10691. #endif
  10692. _ACEOF
  10693. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10694. $EGREP "notposix" >/dev/null 2>&1; then :
  10695. gt_cv_func_printf_posix="guessing no"
  10696. else
  10697. gt_cv_func_printf_posix="guessing yes"
  10698. fi
  10699. rm -f conftest*
  10700. else
  10701. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10702. /* end confdefs.h. */
  10703. #include <stdio.h>
  10704. #include <string.h>
  10705. /* The string "%2$d %1$d", with dollar characters protected from the shell's
  10706. dollar expansion (possibly an autoconf bug). */
  10707. static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
  10708. static char buf[100];
  10709. int main ()
  10710. {
  10711. sprintf (buf, format, 33, 55);
  10712. return (strcmp (buf, "55 33") != 0);
  10713. }
  10714. _ACEOF
  10715. if ac_fn_cxx_try_run "$LINENO"; then :
  10716. gt_cv_func_printf_posix=yes
  10717. else
  10718. gt_cv_func_printf_posix=no
  10719. fi
  10720. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10721. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10722. fi
  10723. fi
  10724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
  10725. $as_echo "$gt_cv_func_printf_posix" >&6; }
  10726. case $gt_cv_func_printf_posix in
  10727. *yes)
  10728. $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
  10729. ;;
  10730. esac
  10731. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
  10732. $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
  10733. if test "${ac_cv_gnu_library_2_1+set}" = set; then :
  10734. $as_echo_n "(cached) " >&6
  10735. else
  10736. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10737. /* end confdefs.h. */
  10738. #include <features.h>
  10739. #ifdef __GNU_LIBRARY__
  10740. #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
  10741. Lucky GNU user
  10742. #endif
  10743. #endif
  10744. _ACEOF
  10745. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10746. $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
  10747. ac_cv_gnu_library_2_1=yes
  10748. else
  10749. ac_cv_gnu_library_2_1=no
  10750. fi
  10751. rm -f conftest*
  10752. fi
  10753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
  10754. $as_echo "$ac_cv_gnu_library_2_1" >&6; }
  10755. GLIBC21="$ac_cv_gnu_library_2_1"
  10756. for ac_header in stdint.h
  10757. do :
  10758. ac_fn_cxx_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
  10759. if test "x$ac_cv_header_stdint_h" = x""yes; then :
  10760. cat >>confdefs.h <<_ACEOF
  10761. #define HAVE_STDINT_H 1
  10762. _ACEOF
  10763. fi
  10764. done
  10765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
  10766. $as_echo_n "checking for SIZE_MAX... " >&6; }
  10767. if test "${gl_cv_size_max+set}" = set; then :
  10768. $as_echo_n "(cached) " >&6
  10769. else
  10770. gl_cv_size_max=
  10771. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10772. /* end confdefs.h. */
  10773. #include <limits.h>
  10774. #if HAVE_STDINT_H
  10775. #include <stdint.h>
  10776. #endif
  10777. #ifdef SIZE_MAX
  10778. Found it
  10779. #endif
  10780. _ACEOF
  10781. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10782. $EGREP "Found it" >/dev/null 2>&1; then :
  10783. gl_cv_size_max=yes
  10784. fi
  10785. rm -f conftest*
  10786. if test -z "$gl_cv_size_max"; then
  10787. if ac_fn_cxx_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
  10788. #include <limits.h>"; then :
  10789. else
  10790. size_t_bits_minus_1=
  10791. fi
  10792. if ac_fn_cxx_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
  10793. else
  10794. fits_in_uint=
  10795. fi
  10796. if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
  10797. if test $fits_in_uint = 1; then
  10798. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10799. /* end confdefs.h. */
  10800. #include <stddef.h>
  10801. extern size_t foo;
  10802. extern unsigned long foo;
  10803. int
  10804. main ()
  10805. {
  10806. ;
  10807. return 0;
  10808. }
  10809. _ACEOF
  10810. if ac_fn_cxx_try_compile "$LINENO"; then :
  10811. fits_in_uint=0
  10812. fi
  10813. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10814. fi
  10815. if test $fits_in_uint = 1; then
  10816. gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
  10817. else
  10818. gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
  10819. fi
  10820. else
  10821. gl_cv_size_max='((size_t)~(size_t)0)'
  10822. fi
  10823. fi
  10824. fi
  10825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
  10826. $as_echo "$gl_cv_size_max" >&6; }
  10827. if test "$gl_cv_size_max" != yes; then
  10828. cat >>confdefs.h <<_ACEOF
  10829. #define SIZE_MAX $gl_cv_size_max
  10830. _ACEOF
  10831. fi
  10832. for ac_header in stdint.h
  10833. do :
  10834. ac_fn_cxx_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
  10835. if test "x$ac_cv_header_stdint_h" = x""yes; then :
  10836. cat >>confdefs.h <<_ACEOF
  10837. #define HAVE_STDINT_H 1
  10838. _ACEOF
  10839. fi
  10840. done
  10841. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
  10842. $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
  10843. if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
  10844. $as_echo_n "(cached) " >&6
  10845. else
  10846. gt_save_LIBS="$LIBS"
  10847. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  10848. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10849. /* end confdefs.h. */
  10850. #include <CoreFoundation/CFPreferences.h>
  10851. int
  10852. main ()
  10853. {
  10854. CFPreferencesCopyAppValue(NULL, NULL)
  10855. ;
  10856. return 0;
  10857. }
  10858. _ACEOF
  10859. if ac_fn_cxx_try_link "$LINENO"; then :
  10860. gt_cv_func_CFPreferencesCopyAppValue=yes
  10861. else
  10862. gt_cv_func_CFPreferencesCopyAppValue=no
  10863. fi
  10864. rm -f core conftest.err conftest.$ac_objext \
  10865. conftest$ac_exeext conftest.$ac_ext
  10866. LIBS="$gt_save_LIBS"
  10867. fi
  10868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
  10869. $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  10870. if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  10871. $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
  10872. fi
  10873. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
  10874. $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
  10875. if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
  10876. $as_echo_n "(cached) " >&6
  10877. else
  10878. gt_save_LIBS="$LIBS"
  10879. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  10880. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10881. /* end confdefs.h. */
  10882. #include <CoreFoundation/CFLocale.h>
  10883. int
  10884. main ()
  10885. {
  10886. CFLocaleCopyCurrent();
  10887. ;
  10888. return 0;
  10889. }
  10890. _ACEOF
  10891. if ac_fn_cxx_try_link "$LINENO"; then :
  10892. gt_cv_func_CFLocaleCopyCurrent=yes
  10893. else
  10894. gt_cv_func_CFLocaleCopyCurrent=no
  10895. fi
  10896. rm -f core conftest.err conftest.$ac_objext \
  10897. conftest$ac_exeext conftest.$ac_ext
  10898. LIBS="$gt_save_LIBS"
  10899. fi
  10900. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  10901. $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  10902. if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  10903. $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
  10904. fi
  10905. INTL_MACOSX_LIBS=
  10906. if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  10907. INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  10908. fi
  10909. ac_fn_cxx_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
  10910. if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
  10911. else
  10912. $as_echo "#define ptrdiff_t long" >>confdefs.h
  10913. fi
  10914. for ac_header in stddef.h stdlib.h string.h
  10915. do :
  10916. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10917. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  10918. eval as_val=\$$as_ac_Header
  10919. if test "x$as_val" = x""yes; then :
  10920. cat >>confdefs.h <<_ACEOF
  10921. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10922. _ACEOF
  10923. fi
  10924. done
  10925. for ac_func in asprintf fwprintf putenv setenv setlocale snprintf wcslen
  10926. do :
  10927. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10928. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  10929. eval as_val=\$$as_ac_var
  10930. if test "x$as_val" = x""yes; then :
  10931. cat >>confdefs.h <<_ACEOF
  10932. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10933. _ACEOF
  10934. fi
  10935. done
  10936. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
  10937. $as_echo_n "checking whether _snprintf is declared... " >&6; }
  10938. if test "${ac_cv_have_decl__snprintf+set}" = set; then :
  10939. $as_echo_n "(cached) " >&6
  10940. else
  10941. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10942. /* end confdefs.h. */
  10943. #include <stdio.h>
  10944. int
  10945. main ()
  10946. {
  10947. #ifndef _snprintf
  10948. char *p = (char *) _snprintf;
  10949. #endif
  10950. ;
  10951. return 0;
  10952. }
  10953. _ACEOF
  10954. if ac_fn_cxx_try_compile "$LINENO"; then :
  10955. ac_cv_have_decl__snprintf=yes
  10956. else
  10957. ac_cv_have_decl__snprintf=no
  10958. fi
  10959. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10960. fi
  10961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
  10962. $as_echo "$ac_cv_have_decl__snprintf" >&6; }
  10963. if test $ac_cv_have_decl__snprintf = yes; then
  10964. gt_value=1
  10965. else
  10966. gt_value=0
  10967. fi
  10968. cat >>confdefs.h <<_ACEOF
  10969. #define HAVE_DECL__SNPRINTF $gt_value
  10970. _ACEOF
  10971. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
  10972. $as_echo_n "checking whether _snwprintf is declared... " >&6; }
  10973. if test "${ac_cv_have_decl__snwprintf+set}" = set; then :
  10974. $as_echo_n "(cached) " >&6
  10975. else
  10976. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10977. /* end confdefs.h. */
  10978. #include <stdio.h>
  10979. int
  10980. main ()
  10981. {
  10982. #ifndef _snwprintf
  10983. char *p = (char *) _snwprintf;
  10984. #endif
  10985. ;
  10986. return 0;
  10987. }
  10988. _ACEOF
  10989. if ac_fn_cxx_try_compile "$LINENO"; then :
  10990. ac_cv_have_decl__snwprintf=yes
  10991. else
  10992. ac_cv_have_decl__snwprintf=no
  10993. fi
  10994. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10995. fi
  10996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
  10997. $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
  10998. if test $ac_cv_have_decl__snwprintf = yes; then
  10999. gt_value=1
  11000. else
  11001. gt_value=0
  11002. fi
  11003. cat >>confdefs.h <<_ACEOF
  11004. #define HAVE_DECL__SNWPRINTF $gt_value
  11005. _ACEOF
  11006. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
  11007. $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
  11008. if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then :
  11009. $as_echo_n "(cached) " >&6
  11010. else
  11011. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11012. /* end confdefs.h. */
  11013. #include <stdio.h>
  11014. int
  11015. main ()
  11016. {
  11017. #ifndef getc_unlocked
  11018. char *p = (char *) getc_unlocked;
  11019. #endif
  11020. ;
  11021. return 0;
  11022. }
  11023. _ACEOF
  11024. if ac_fn_cxx_try_compile "$LINENO"; then :
  11025. ac_cv_have_decl_getc_unlocked=yes
  11026. else
  11027. ac_cv_have_decl_getc_unlocked=no
  11028. fi
  11029. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11030. fi
  11031. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
  11032. $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
  11033. if test $ac_cv_have_decl_getc_unlocked = yes; then
  11034. gt_value=1
  11035. else
  11036. gt_value=0
  11037. fi
  11038. cat >>confdefs.h <<_ACEOF
  11039. #define HAVE_DECL_GETC_UNLOCKED $gt_value
  11040. _ACEOF
  11041. case $gt_cv_func_printf_posix in
  11042. *yes) HAVE_POSIX_PRINTF=1 ;;
  11043. *) HAVE_POSIX_PRINTF=0 ;;
  11044. esac
  11045. if test "$ac_cv_func_asprintf" = yes; then
  11046. HAVE_ASPRINTF=1
  11047. else
  11048. HAVE_ASPRINTF=0
  11049. fi
  11050. if test "$ac_cv_func_snprintf" = yes; then
  11051. HAVE_SNPRINTF=1
  11052. else
  11053. HAVE_SNPRINTF=0
  11054. fi
  11055. if test "$ac_cv_func_wprintf" = yes; then
  11056. HAVE_WPRINTF=1
  11057. else
  11058. HAVE_WPRINTF=0
  11059. fi
  11060. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
  11061. $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
  11062. if test "${am_cv_langinfo_codeset+set}" = set; then :
  11063. $as_echo_n "(cached) " >&6
  11064. else
  11065. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11066. /* end confdefs.h. */
  11067. #include <langinfo.h>
  11068. int
  11069. main ()
  11070. {
  11071. char* cs = nl_langinfo(CODESET); return !cs;
  11072. ;
  11073. return 0;
  11074. }
  11075. _ACEOF
  11076. if ac_fn_cxx_try_link "$LINENO"; then :
  11077. am_cv_langinfo_codeset=yes
  11078. else
  11079. am_cv_langinfo_codeset=no
  11080. fi
  11081. rm -f core conftest.err conftest.$ac_objext \
  11082. conftest$ac_exeext conftest.$ac_ext
  11083. fi
  11084. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
  11085. $as_echo "$am_cv_langinfo_codeset" >&6; }
  11086. if test $am_cv_langinfo_codeset = yes; then
  11087. $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
  11088. fi
  11089. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
  11090. $as_echo_n "checking for LC_MESSAGES... " >&6; }
  11091. if test "${gt_cv_val_LC_MESSAGES+set}" = set; then :
  11092. $as_echo_n "(cached) " >&6
  11093. else
  11094. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11095. /* end confdefs.h. */
  11096. #include <locale.h>
  11097. int
  11098. main ()
  11099. {
  11100. return LC_MESSAGES
  11101. ;
  11102. return 0;
  11103. }
  11104. _ACEOF
  11105. if ac_fn_cxx_try_link "$LINENO"; then :
  11106. gt_cv_val_LC_MESSAGES=yes
  11107. else
  11108. gt_cv_val_LC_MESSAGES=no
  11109. fi
  11110. rm -f core conftest.err conftest.$ac_objext \
  11111. conftest$ac_exeext conftest.$ac_ext
  11112. fi
  11113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
  11114. $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
  11115. if test $gt_cv_val_LC_MESSAGES = yes; then
  11116. $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
  11117. fi
  11118. if test "$enable_shared" = yes; then
  11119. case "$host_os" in
  11120. mingw* | cygwin*) is_woe32dll=yes ;;
  11121. *) is_woe32dll=no ;;
  11122. esac
  11123. else
  11124. is_woe32dll=no
  11125. fi
  11126. WOE32DLL=$is_woe32dll
  11127. case "$host_os" in
  11128. mingw* | cygwin*) is_woe32=yes ;;
  11129. *) is_woe32=no ;;
  11130. esac
  11131. WOE32=$is_woe32
  11132. if test $WOE32 = yes; then
  11133. if test -n "$ac_tool_prefix"; then
  11134. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  11135. set dummy ${ac_tool_prefix}windres; ac_word=$2
  11136. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11137. $as_echo_n "checking for $ac_word... " >&6; }
  11138. if test "${ac_cv_prog_WINDRES+set}" = set; then :
  11139. $as_echo_n "(cached) " >&6
  11140. else
  11141. if test -n "$WINDRES"; then
  11142. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  11143. else
  11144. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11145. for as_dir in $PATH
  11146. do
  11147. IFS=$as_save_IFS
  11148. test -z "$as_dir" && as_dir=.
  11149. for ac_exec_ext in '' $ac_executable_extensions; do
  11150. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11151. ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
  11152. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11153. break 2
  11154. fi
  11155. done
  11156. done
  11157. IFS=$as_save_IFS
  11158. fi
  11159. fi
  11160. WINDRES=$ac_cv_prog_WINDRES
  11161. if test -n "$WINDRES"; then
  11162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
  11163. $as_echo "$WINDRES" >&6; }
  11164. else
  11165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11166. $as_echo "no" >&6; }
  11167. fi
  11168. fi
  11169. if test -z "$ac_cv_prog_WINDRES"; then
  11170. ac_ct_WINDRES=$WINDRES
  11171. # Extract the first word of "windres", so it can be a program name with args.
  11172. set dummy windres; ac_word=$2
  11173. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11174. $as_echo_n "checking for $ac_word... " >&6; }
  11175. if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
  11176. $as_echo_n "(cached) " >&6
  11177. else
  11178. if test -n "$ac_ct_WINDRES"; then
  11179. ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
  11180. else
  11181. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11182. for as_dir in $PATH
  11183. do
  11184. IFS=$as_save_IFS
  11185. test -z "$as_dir" && as_dir=.
  11186. for ac_exec_ext in '' $ac_executable_extensions; do
  11187. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11188. ac_cv_prog_ac_ct_WINDRES="windres"
  11189. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11190. break 2
  11191. fi
  11192. done
  11193. done
  11194. IFS=$as_save_IFS
  11195. fi
  11196. fi
  11197. ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
  11198. if test -n "$ac_ct_WINDRES"; then
  11199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
  11200. $as_echo "$ac_ct_WINDRES" >&6; }
  11201. else
  11202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11203. $as_echo "no" >&6; }
  11204. fi
  11205. if test "x$ac_ct_WINDRES" = x; then
  11206. WINDRES=""
  11207. else
  11208. case $cross_compiling:$ac_tool_warned in
  11209. yes:)
  11210. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11211. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11212. ac_tool_warned=yes ;;
  11213. esac
  11214. WINDRES=$ac_ct_WINDRES
  11215. fi
  11216. else
  11217. WINDRES="$ac_cv_prog_WINDRES"
  11218. fi
  11219. fi
  11220. case "$host_os" in
  11221. hpux*) LTLIBC="" ;;
  11222. *) LTLIBC="-lc" ;;
  11223. esac
  11224. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
  11225. $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
  11226. if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
  11227. $as_echo_n "(cached) " >&6
  11228. else
  11229. gt_save_LIBS="$LIBS"
  11230. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  11231. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11232. /* end confdefs.h. */
  11233. #include <CoreFoundation/CFPreferences.h>
  11234. int
  11235. main ()
  11236. {
  11237. CFPreferencesCopyAppValue(NULL, NULL)
  11238. ;
  11239. return 0;
  11240. }
  11241. _ACEOF
  11242. if ac_fn_cxx_try_link "$LINENO"; then :
  11243. gt_cv_func_CFPreferencesCopyAppValue=yes
  11244. else
  11245. gt_cv_func_CFPreferencesCopyAppValue=no
  11246. fi
  11247. rm -f core conftest.err conftest.$ac_objext \
  11248. conftest$ac_exeext conftest.$ac_ext
  11249. LIBS="$gt_save_LIBS"
  11250. fi
  11251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
  11252. $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  11253. if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  11254. $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
  11255. fi
  11256. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
  11257. $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
  11258. if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
  11259. $as_echo_n "(cached) " >&6
  11260. else
  11261. gt_save_LIBS="$LIBS"
  11262. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  11263. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11264. /* end confdefs.h. */
  11265. #include <CoreFoundation/CFLocale.h>
  11266. int
  11267. main ()
  11268. {
  11269. CFLocaleCopyCurrent();
  11270. ;
  11271. return 0;
  11272. }
  11273. _ACEOF
  11274. if ac_fn_cxx_try_link "$LINENO"; then :
  11275. gt_cv_func_CFLocaleCopyCurrent=yes
  11276. else
  11277. gt_cv_func_CFLocaleCopyCurrent=no
  11278. fi
  11279. rm -f core conftest.err conftest.$ac_objext \
  11280. conftest$ac_exeext conftest.$ac_ext
  11281. LIBS="$gt_save_LIBS"
  11282. fi
  11283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  11284. $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  11285. if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  11286. $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
  11287. fi
  11288. INTL_MACOSX_LIBS=
  11289. if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  11290. INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  11291. fi
  11292. BUILD_INCLUDED_LIBINTL=no
  11293. USE_INCLUDED_LIBINTL=no
  11294. LIBINTL=
  11295. LTLIBINTL=
  11296. POSUB=
  11297. case " $gt_needs " in
  11298. *" need-formatstring-macros "*) gt_api_version=3 ;;
  11299. *" need-ngettext "*) gt_api_version=2 ;;
  11300. *) gt_api_version=1 ;;
  11301. esac
  11302. gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
  11303. gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
  11304. if test "$USE_NLS" = "yes"; then
  11305. gt_use_preinstalled_gnugettext=no
  11306. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
  11307. $as_echo_n "checking whether included gettext is requested... " >&6; }
  11308. # Check whether --with-included-gettext was given.
  11309. if test "${with_included_gettext+set}" = set; then :
  11310. withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
  11311. else
  11312. nls_cv_force_use_gnu_gettext=no
  11313. fi
  11314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
  11315. $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
  11316. nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
  11317. if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
  11318. if test $gt_api_version -ge 3; then
  11319. gt_revision_test_code='
  11320. #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
  11321. #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
  11322. #endif
  11323. typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
  11324. '
  11325. else
  11326. gt_revision_test_code=
  11327. fi
  11328. if test $gt_api_version -ge 2; then
  11329. gt_expression_test_code=' + * ngettext ("", "", 0)'
  11330. else
  11331. gt_expression_test_code=
  11332. fi
  11333. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
  11334. $as_echo_n "checking for GNU gettext in libc... " >&6; }
  11335. if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then :
  11336. $as_echo_n "(cached) " >&6
  11337. else
  11338. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11339. /* end confdefs.h. */
  11340. #include <libintl.h>
  11341. $gt_revision_test_code
  11342. extern int _nl_msg_cat_cntr;
  11343. extern int *_nl_domain_bindings;
  11344. int
  11345. main ()
  11346. {
  11347. bindtextdomain ("", "");
  11348. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
  11349. ;
  11350. return 0;
  11351. }
  11352. _ACEOF
  11353. if ac_fn_cxx_try_link "$LINENO"; then :
  11354. eval "$gt_func_gnugettext_libc=yes"
  11355. else
  11356. eval "$gt_func_gnugettext_libc=no"
  11357. fi
  11358. rm -f core conftest.err conftest.$ac_objext \
  11359. conftest$ac_exeext conftest.$ac_ext
  11360. fi
  11361. eval ac_res=\$$gt_func_gnugettext_libc
  11362. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  11363. $as_echo "$ac_res" >&6; }
  11364. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
  11365. use_additional=yes
  11366. acl_save_prefix="$prefix"
  11367. prefix="$acl_final_prefix"
  11368. acl_save_exec_prefix="$exec_prefix"
  11369. exec_prefix="$acl_final_exec_prefix"
  11370. eval additional_includedir=\"$includedir\"
  11371. eval additional_libdir=\"$libdir\"
  11372. exec_prefix="$acl_save_exec_prefix"
  11373. prefix="$acl_save_prefix"
  11374. # Check whether --with-libintl-prefix was given.
  11375. if test "${with_libintl_prefix+set}" = set; then :
  11376. withval=$with_libintl_prefix;
  11377. if test "X$withval" = "Xno"; then
  11378. use_additional=no
  11379. else
  11380. if test "X$withval" = "X"; then
  11381. acl_save_prefix="$prefix"
  11382. prefix="$acl_final_prefix"
  11383. acl_save_exec_prefix="$exec_prefix"
  11384. exec_prefix="$acl_final_exec_prefix"
  11385. eval additional_includedir=\"$includedir\"
  11386. eval additional_libdir=\"$libdir\"
  11387. exec_prefix="$acl_save_exec_prefix"
  11388. prefix="$acl_save_prefix"
  11389. else
  11390. additional_includedir="$withval/include"
  11391. additional_libdir="$withval/$acl_libdirstem"
  11392. fi
  11393. fi
  11394. fi
  11395. LIBINTL=
  11396. LTLIBINTL=
  11397. INCINTL=
  11398. LIBINTL_PREFIX=
  11399. rpathdirs=
  11400. ltrpathdirs=
  11401. names_already_handled=
  11402. names_next_round='intl '
  11403. while test -n "$names_next_round"; do
  11404. names_this_round="$names_next_round"
  11405. names_next_round=
  11406. for name in $names_this_round; do
  11407. already_handled=
  11408. for n in $names_already_handled; do
  11409. if test "$n" = "$name"; then
  11410. already_handled=yes
  11411. break
  11412. fi
  11413. done
  11414. if test -z "$already_handled"; then
  11415. names_already_handled="$names_already_handled $name"
  11416. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  11417. eval value=\"\$HAVE_LIB$uppername\"
  11418. if test -n "$value"; then
  11419. if test "$value" = yes; then
  11420. eval value=\"\$LIB$uppername\"
  11421. test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
  11422. eval value=\"\$LTLIB$uppername\"
  11423. test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
  11424. else
  11425. :
  11426. fi
  11427. else
  11428. found_dir=
  11429. found_la=
  11430. found_so=
  11431. found_a=
  11432. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  11433. if test -n "$acl_shlibext"; then
  11434. shrext=".$acl_shlibext" # typically: shrext=.so
  11435. else
  11436. shrext=
  11437. fi
  11438. if test $use_additional = yes; then
  11439. dir="$additional_libdir"
  11440. if test -n "$acl_shlibext"; then
  11441. if test -f "$dir/$libname$shrext"; then
  11442. found_dir="$dir"
  11443. found_so="$dir/$libname$shrext"
  11444. else
  11445. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  11446. ver=`(cd "$dir" && \
  11447. for f in "$libname$shrext".*; do echo "$f"; done \
  11448. | sed -e "s,^$libname$shrext\\\\.,," \
  11449. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  11450. | sed 1q ) 2>/dev/null`
  11451. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  11452. found_dir="$dir"
  11453. found_so="$dir/$libname$shrext.$ver"
  11454. fi
  11455. else
  11456. eval library_names=\"$acl_library_names_spec\"
  11457. for f in $library_names; do
  11458. if test -f "$dir/$f"; then
  11459. found_dir="$dir"
  11460. found_so="$dir/$f"
  11461. break
  11462. fi
  11463. done
  11464. fi
  11465. fi
  11466. fi
  11467. if test "X$found_dir" = "X"; then
  11468. if test -f "$dir/$libname.$acl_libext"; then
  11469. found_dir="$dir"
  11470. found_a="$dir/$libname.$acl_libext"
  11471. fi
  11472. fi
  11473. if test "X$found_dir" != "X"; then
  11474. if test -f "$dir/$libname.la"; then
  11475. found_la="$dir/$libname.la"
  11476. fi
  11477. fi
  11478. fi
  11479. if test "X$found_dir" = "X"; then
  11480. for x in $LDFLAGS $LTLIBINTL; do
  11481. acl_save_prefix="$prefix"
  11482. prefix="$acl_final_prefix"
  11483. acl_save_exec_prefix="$exec_prefix"
  11484. exec_prefix="$acl_final_exec_prefix"
  11485. eval x=\"$x\"
  11486. exec_prefix="$acl_save_exec_prefix"
  11487. prefix="$acl_save_prefix"
  11488. case "$x" in
  11489. -L*)
  11490. dir=`echo "X$x" | sed -e 's/^X-L//'`
  11491. if test -n "$acl_shlibext"; then
  11492. if test -f "$dir/$libname$shrext"; then
  11493. found_dir="$dir"
  11494. found_so="$dir/$libname$shrext"
  11495. else
  11496. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  11497. ver=`(cd "$dir" && \
  11498. for f in "$libname$shrext".*; do echo "$f"; done \
  11499. | sed -e "s,^$libname$shrext\\\\.,," \
  11500. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  11501. | sed 1q ) 2>/dev/null`
  11502. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  11503. found_dir="$dir"
  11504. found_so="$dir/$libname$shrext.$ver"
  11505. fi
  11506. else
  11507. eval library_names=\"$acl_library_names_spec\"
  11508. for f in $library_names; do
  11509. if test -f "$dir/$f"; then
  11510. found_dir="$dir"
  11511. found_so="$dir/$f"
  11512. break
  11513. fi
  11514. done
  11515. fi
  11516. fi
  11517. fi
  11518. if test "X$found_dir" = "X"; then
  11519. if test -f "$dir/$libname.$acl_libext"; then
  11520. found_dir="$dir"
  11521. found_a="$dir/$libname.$acl_libext"
  11522. fi
  11523. fi
  11524. if test "X$found_dir" != "X"; then
  11525. if test -f "$dir/$libname.la"; then
  11526. found_la="$dir/$libname.la"
  11527. fi
  11528. fi
  11529. ;;
  11530. esac
  11531. if test "X$found_dir" != "X"; then
  11532. break
  11533. fi
  11534. done
  11535. fi
  11536. if test "X$found_dir" != "X"; then
  11537. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
  11538. if test "X$found_so" != "X"; then
  11539. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  11540. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  11541. else
  11542. haveit=
  11543. for x in $ltrpathdirs; do
  11544. if test "X$x" = "X$found_dir"; then
  11545. haveit=yes
  11546. break
  11547. fi
  11548. done
  11549. if test -z "$haveit"; then
  11550. ltrpathdirs="$ltrpathdirs $found_dir"
  11551. fi
  11552. if test "$acl_hardcode_direct" = yes; then
  11553. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  11554. else
  11555. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  11556. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  11557. haveit=
  11558. for x in $rpathdirs; do
  11559. if test "X$x" = "X$found_dir"; then
  11560. haveit=yes
  11561. break
  11562. fi
  11563. done
  11564. if test -z "$haveit"; then
  11565. rpathdirs="$rpathdirs $found_dir"
  11566. fi
  11567. else
  11568. haveit=
  11569. for x in $LDFLAGS $LIBINTL; do
  11570. acl_save_prefix="$prefix"
  11571. prefix="$acl_final_prefix"
  11572. acl_save_exec_prefix="$exec_prefix"
  11573. exec_prefix="$acl_final_exec_prefix"
  11574. eval x=\"$x\"
  11575. exec_prefix="$acl_save_exec_prefix"
  11576. prefix="$acl_save_prefix"
  11577. if test "X$x" = "X-L$found_dir"; then
  11578. haveit=yes
  11579. break
  11580. fi
  11581. done
  11582. if test -z "$haveit"; then
  11583. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
  11584. fi
  11585. if test "$acl_hardcode_minus_L" != no; then
  11586. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  11587. else
  11588. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  11589. fi
  11590. fi
  11591. fi
  11592. fi
  11593. else
  11594. if test "X$found_a" != "X"; then
  11595. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
  11596. else
  11597. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
  11598. fi
  11599. fi
  11600. additional_includedir=
  11601. case "$found_dir" in
  11602. */$acl_libdirstem | */$acl_libdirstem/)
  11603. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  11604. LIBINTL_PREFIX="$basedir"
  11605. additional_includedir="$basedir/include"
  11606. ;;
  11607. esac
  11608. if test "X$additional_includedir" != "X"; then
  11609. if test "X$additional_includedir" != "X/usr/include"; then
  11610. haveit=
  11611. if test "X$additional_includedir" = "X/usr/local/include"; then
  11612. if test -n "$GCC"; then
  11613. case $host_os in
  11614. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  11615. esac
  11616. fi
  11617. fi
  11618. if test -z "$haveit"; then
  11619. for x in $CPPFLAGS $INCINTL; do
  11620. acl_save_prefix="$prefix"
  11621. prefix="$acl_final_prefix"
  11622. acl_save_exec_prefix="$exec_prefix"
  11623. exec_prefix="$acl_final_exec_prefix"
  11624. eval x=\"$x\"
  11625. exec_prefix="$acl_save_exec_prefix"
  11626. prefix="$acl_save_prefix"
  11627. if test "X$x" = "X-I$additional_includedir"; then
  11628. haveit=yes
  11629. break
  11630. fi
  11631. done
  11632. if test -z "$haveit"; then
  11633. if test -d "$additional_includedir"; then
  11634. INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
  11635. fi
  11636. fi
  11637. fi
  11638. fi
  11639. fi
  11640. if test -n "$found_la"; then
  11641. save_libdir="$libdir"
  11642. case "$found_la" in
  11643. */* | *\\*) . "$found_la" ;;
  11644. *) . "./$found_la" ;;
  11645. esac
  11646. libdir="$save_libdir"
  11647. for dep in $dependency_libs; do
  11648. case "$dep" in
  11649. -L*)
  11650. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  11651. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  11652. haveit=
  11653. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  11654. if test -n "$GCC"; then
  11655. case $host_os in
  11656. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  11657. esac
  11658. fi
  11659. fi
  11660. if test -z "$haveit"; then
  11661. haveit=
  11662. for x in $LDFLAGS $LIBINTL; do
  11663. acl_save_prefix="$prefix"
  11664. prefix="$acl_final_prefix"
  11665. acl_save_exec_prefix="$exec_prefix"
  11666. exec_prefix="$acl_final_exec_prefix"
  11667. eval x=\"$x\"
  11668. exec_prefix="$acl_save_exec_prefix"
  11669. prefix="$acl_save_prefix"
  11670. if test "X$x" = "X-L$additional_libdir"; then
  11671. haveit=yes
  11672. break
  11673. fi
  11674. done
  11675. if test -z "$haveit"; then
  11676. if test -d "$additional_libdir"; then
  11677. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
  11678. fi
  11679. fi
  11680. haveit=
  11681. for x in $LDFLAGS $LTLIBINTL; do
  11682. acl_save_prefix="$prefix"
  11683. prefix="$acl_final_prefix"
  11684. acl_save_exec_prefix="$exec_prefix"
  11685. exec_prefix="$acl_final_exec_prefix"
  11686. eval x=\"$x\"
  11687. exec_prefix="$acl_save_exec_prefix"
  11688. prefix="$acl_save_prefix"
  11689. if test "X$x" = "X-L$additional_libdir"; then
  11690. haveit=yes
  11691. break
  11692. fi
  11693. done
  11694. if test -z "$haveit"; then
  11695. if test -d "$additional_libdir"; then
  11696. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
  11697. fi
  11698. fi
  11699. fi
  11700. fi
  11701. ;;
  11702. -R*)
  11703. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  11704. if test "$enable_rpath" != no; then
  11705. haveit=
  11706. for x in $rpathdirs; do
  11707. if test "X$x" = "X$dir"; then
  11708. haveit=yes
  11709. break
  11710. fi
  11711. done
  11712. if test -z "$haveit"; then
  11713. rpathdirs="$rpathdirs $dir"
  11714. fi
  11715. haveit=
  11716. for x in $ltrpathdirs; do
  11717. if test "X$x" = "X$dir"; then
  11718. haveit=yes
  11719. break
  11720. fi
  11721. done
  11722. if test -z "$haveit"; then
  11723. ltrpathdirs="$ltrpathdirs $dir"
  11724. fi
  11725. fi
  11726. ;;
  11727. -l*)
  11728. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  11729. ;;
  11730. *.la)
  11731. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  11732. ;;
  11733. *)
  11734. LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
  11735. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
  11736. ;;
  11737. esac
  11738. done
  11739. fi
  11740. else
  11741. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  11742. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
  11743. fi
  11744. fi
  11745. fi
  11746. done
  11747. done
  11748. if test "X$rpathdirs" != "X"; then
  11749. if test -n "$acl_hardcode_libdir_separator"; then
  11750. alldirs=
  11751. for found_dir in $rpathdirs; do
  11752. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  11753. done
  11754. acl_save_libdir="$libdir"
  11755. libdir="$alldirs"
  11756. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  11757. libdir="$acl_save_libdir"
  11758. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  11759. else
  11760. for found_dir in $rpathdirs; do
  11761. acl_save_libdir="$libdir"
  11762. libdir="$found_dir"
  11763. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  11764. libdir="$acl_save_libdir"
  11765. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  11766. done
  11767. fi
  11768. fi
  11769. if test "X$ltrpathdirs" != "X"; then
  11770. for found_dir in $ltrpathdirs; do
  11771. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
  11772. done
  11773. fi
  11774. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
  11775. $as_echo_n "checking for GNU gettext in libintl... " >&6; }
  11776. if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then :
  11777. $as_echo_n "(cached) " >&6
  11778. else
  11779. gt_save_CPPFLAGS="$CPPFLAGS"
  11780. CPPFLAGS="$CPPFLAGS $INCINTL"
  11781. gt_save_LIBS="$LIBS"
  11782. LIBS="$LIBS $LIBINTL"
  11783. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11784. /* end confdefs.h. */
  11785. #include <libintl.h>
  11786. $gt_revision_test_code
  11787. extern int _nl_msg_cat_cntr;
  11788. extern
  11789. #ifdef __cplusplus
  11790. "C"
  11791. #endif
  11792. const char *_nl_expand_alias (const char *);
  11793. int
  11794. main ()
  11795. {
  11796. bindtextdomain ("", "");
  11797. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  11798. ;
  11799. return 0;
  11800. }
  11801. _ACEOF
  11802. if ac_fn_cxx_try_link "$LINENO"; then :
  11803. eval "$gt_func_gnugettext_libintl=yes"
  11804. else
  11805. eval "$gt_func_gnugettext_libintl=no"
  11806. fi
  11807. rm -f core conftest.err conftest.$ac_objext \
  11808. conftest$ac_exeext conftest.$ac_ext
  11809. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
  11810. LIBS="$LIBS $LIBICONV"
  11811. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11812. /* end confdefs.h. */
  11813. #include <libintl.h>
  11814. $gt_revision_test_code
  11815. extern int _nl_msg_cat_cntr;
  11816. extern
  11817. #ifdef __cplusplus
  11818. "C"
  11819. #endif
  11820. const char *_nl_expand_alias (const char *);
  11821. int
  11822. main ()
  11823. {
  11824. bindtextdomain ("", "");
  11825. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  11826. ;
  11827. return 0;
  11828. }
  11829. _ACEOF
  11830. if ac_fn_cxx_try_link "$LINENO"; then :
  11831. LIBINTL="$LIBINTL $LIBICONV"
  11832. LTLIBINTL="$LTLIBINTL $LTLIBICONV"
  11833. eval "$gt_func_gnugettext_libintl=yes"
  11834. fi
  11835. rm -f core conftest.err conftest.$ac_objext \
  11836. conftest$ac_exeext conftest.$ac_ext
  11837. fi
  11838. CPPFLAGS="$gt_save_CPPFLAGS"
  11839. LIBS="$gt_save_LIBS"
  11840. fi
  11841. eval ac_res=\$$gt_func_gnugettext_libintl
  11842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  11843. $as_echo "$ac_res" >&6; }
  11844. fi
  11845. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
  11846. || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
  11847. && test "$PACKAGE" != gettext-runtime \
  11848. && test "$PACKAGE" != gettext-tools; }; then
  11849. gt_use_preinstalled_gnugettext=yes
  11850. else
  11851. LIBINTL=
  11852. LTLIBINTL=
  11853. INCINTL=
  11854. fi
  11855. if test "$gt_use_preinstalled_gnugettext" != "yes"; then
  11856. nls_cv_use_gnu_gettext=yes
  11857. fi
  11858. fi
  11859. if test "$nls_cv_use_gnu_gettext" = "yes"; then
  11860. BUILD_INCLUDED_LIBINTL=yes
  11861. USE_INCLUDED_LIBINTL=yes
  11862. LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
  11863. LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
  11864. LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
  11865. fi
  11866. CATOBJEXT=
  11867. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  11868. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  11869. CATOBJEXT=.gmo
  11870. fi
  11871. if test -n "$INTL_MACOSX_LIBS"; then
  11872. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  11873. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  11874. LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
  11875. LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
  11876. fi
  11877. fi
  11878. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  11879. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  11880. $as_echo "#define ENABLE_NLS 1" >>confdefs.h
  11881. else
  11882. USE_NLS=no
  11883. fi
  11884. fi
  11885. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
  11886. $as_echo_n "checking whether to use NLS... " >&6; }
  11887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
  11888. $as_echo "$USE_NLS" >&6; }
  11889. if test "$USE_NLS" = "yes"; then
  11890. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
  11891. $as_echo_n "checking where the gettext function comes from... " >&6; }
  11892. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  11893. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  11894. gt_source="external libintl"
  11895. else
  11896. gt_source="libc"
  11897. fi
  11898. else
  11899. gt_source="included intl directory"
  11900. fi
  11901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
  11902. $as_echo "$gt_source" >&6; }
  11903. fi
  11904. if test "$USE_NLS" = "yes"; then
  11905. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  11906. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  11907. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
  11908. $as_echo_n "checking how to link with libintl... " >&6; }
  11909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
  11910. $as_echo "$LIBINTL" >&6; }
  11911. for element in $INCINTL; do
  11912. haveit=
  11913. for x in $CPPFLAGS; do
  11914. acl_save_prefix="$prefix"
  11915. prefix="$acl_final_prefix"
  11916. acl_save_exec_prefix="$exec_prefix"
  11917. exec_prefix="$acl_final_exec_prefix"
  11918. eval x=\"$x\"
  11919. exec_prefix="$acl_save_exec_prefix"
  11920. prefix="$acl_save_prefix"
  11921. if test "X$x" = "X$element"; then
  11922. haveit=yes
  11923. break
  11924. fi
  11925. done
  11926. if test -z "$haveit"; then
  11927. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  11928. fi
  11929. done
  11930. fi
  11931. $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
  11932. $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
  11933. fi
  11934. POSUB=po
  11935. fi
  11936. if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
  11937. BUILD_INCLUDED_LIBINTL=yes
  11938. fi
  11939. nls_cv_header_intl=
  11940. nls_cv_header_libgt=
  11941. DATADIRNAME=share
  11942. INSTOBJEXT=.mo
  11943. GENCAT=gencat
  11944. INTLOBJS=
  11945. if test "$USE_INCLUDED_LIBINTL" = yes; then
  11946. INTLOBJS="\$(GETTOBJS)"
  11947. fi
  11948. INTL_LIBTOOL_SUFFIX_PREFIX=
  11949. INTLLIBS="$LIBINTL"
  11950. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
  11951. $as_echo_n "checking for error_at_line... " >&6; }
  11952. if test "${ac_cv_lib_error_at_line+set}" = set; then :
  11953. $as_echo_n "(cached) " >&6
  11954. else
  11955. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11956. /* end confdefs.h. */
  11957. #include <error.h>
  11958. int
  11959. main ()
  11960. {
  11961. error_at_line (0, 0, "", 0, "an error occurred");
  11962. ;
  11963. return 0;
  11964. }
  11965. _ACEOF
  11966. if ac_fn_cxx_try_link "$LINENO"; then :
  11967. ac_cv_lib_error_at_line=yes
  11968. else
  11969. ac_cv_lib_error_at_line=no
  11970. fi
  11971. rm -f core conftest.err conftest.$ac_objext \
  11972. conftest$ac_exeext conftest.$ac_ext
  11973. fi
  11974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
  11975. $as_echo "$ac_cv_lib_error_at_line" >&6; }
  11976. if test $ac_cv_lib_error_at_line = no; then
  11977. case " $LIBOBJS " in
  11978. *" error.$ac_objext "* ) ;;
  11979. *) LIBOBJS="$LIBOBJS error.$ac_objext"
  11980. ;;
  11981. esac
  11982. fi
  11983. if test $ac_cv_c_compiler_gnu = yes; then
  11984. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
  11985. $as_echo_n "checking whether $CC needs -traditional... " >&6; }
  11986. if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
  11987. $as_echo_n "(cached) " >&6
  11988. else
  11989. ac_pattern="Autoconf.*'x'"
  11990. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11991. /* end confdefs.h. */
  11992. #include <sgtty.h>
  11993. Autoconf TIOCGETP
  11994. _ACEOF
  11995. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  11996. $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  11997. ac_cv_prog_gcc_traditional=yes
  11998. else
  11999. ac_cv_prog_gcc_traditional=no
  12000. fi
  12001. rm -f conftest*
  12002. if test $ac_cv_prog_gcc_traditional = no; then
  12003. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12004. /* end confdefs.h. */
  12005. #include <termio.h>
  12006. Autoconf TCGETA
  12007. _ACEOF
  12008. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  12009. $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  12010. ac_cv_prog_gcc_traditional=yes
  12011. fi
  12012. rm -f conftest*
  12013. fi
  12014. fi
  12015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
  12016. $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
  12017. if test $ac_cv_prog_gcc_traditional = yes; then
  12018. CC="$CC -traditional"
  12019. fi
  12020. fi
  12021. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  12022. $as_echo_n "checking for working memcmp... " >&6; }
  12023. if test "${ac_cv_func_memcmp_working+set}" = set; then :
  12024. $as_echo_n "(cached) " >&6
  12025. else
  12026. if test "$cross_compiling" = yes; then :
  12027. ac_cv_func_memcmp_working=no
  12028. else
  12029. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12030. /* end confdefs.h. */
  12031. $ac_includes_default
  12032. int
  12033. main ()
  12034. {
  12035. /* Some versions of memcmp are not 8-bit clean. */
  12036. char c0 = '\100', c1 = '\200', c2 = '\201';
  12037. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  12038. return 1;
  12039. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  12040. or more and with at least one buffer not starting on a 4-byte boundary.
  12041. William Lewis provided this test program. */
  12042. {
  12043. char foo[21];
  12044. char bar[21];
  12045. int i;
  12046. for (i = 0; i < 4; i++)
  12047. {
  12048. char *a = foo + i;
  12049. char *b = bar + i;
  12050. strcpy (a, "--------01111111");
  12051. strcpy (b, "--------10000000");
  12052. if (memcmp (a, b, 16) >= 0)
  12053. return 1;
  12054. }
  12055. return 0;
  12056. }
  12057. ;
  12058. return 0;
  12059. }
  12060. _ACEOF
  12061. if ac_fn_cxx_try_run "$LINENO"; then :
  12062. ac_cv_func_memcmp_working=yes
  12063. else
  12064. ac_cv_func_memcmp_working=no
  12065. fi
  12066. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12067. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12068. fi
  12069. fi
  12070. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  12071. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  12072. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  12073. *" memcmp.$ac_objext "* ) ;;
  12074. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  12075. ;;
  12076. esac
  12077. for ac_func in $ac_func_list
  12078. do :
  12079. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12080. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  12081. eval as_val=\$$as_ac_var
  12082. if test "x$as_val" = x""yes; then :
  12083. cat >>confdefs.h <<_ACEOF
  12084. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12085. _ACEOF
  12086. fi
  12087. done
  12088. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
  12089. $as_echo_n "checking for working mktime... " >&6; }
  12090. if test "${ac_cv_func_working_mktime+set}" = set; then :
  12091. $as_echo_n "(cached) " >&6
  12092. else
  12093. if test "$cross_compiling" = yes; then :
  12094. ac_cv_func_working_mktime=no
  12095. else
  12096. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12097. /* end confdefs.h. */
  12098. /* Test program from Paul Eggert and Tony Leneis. */
  12099. #ifdef TIME_WITH_SYS_TIME
  12100. # include <sys/time.h>
  12101. # include <time.h>
  12102. #else
  12103. # ifdef HAVE_SYS_TIME_H
  12104. # include <sys/time.h>
  12105. # else
  12106. # include <time.h>
  12107. # endif
  12108. #endif
  12109. #include <limits.h>
  12110. #include <stdlib.h>
  12111. #ifdef HAVE_UNISTD_H
  12112. # include <unistd.h>
  12113. #endif
  12114. #ifndef HAVE_ALARM
  12115. # define alarm(X) /* empty */
  12116. #endif
  12117. /* Work around redefinition to rpl_putenv by other config tests. */
  12118. #undef putenv
  12119. static time_t time_t_max;
  12120. static time_t time_t_min;
  12121. /* Values we'll use to set the TZ environment variable. */
  12122. static char *tz_strings[] = {
  12123. (char *) 0, "TZ=GMT0", "TZ=JST-9",
  12124. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  12125. };
  12126. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  12127. /* Return 0 if mktime fails to convert a date in the spring-forward gap.
  12128. Based on a problem report from Andreas Jaeger. */
  12129. static int
  12130. spring_forward_gap ()
  12131. {
  12132. /* glibc (up to about 1998-10-07) failed this test. */
  12133. struct tm tm;
  12134. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  12135. instead of "TZ=America/Vancouver" in order to detect the bug even
  12136. on systems that don't support the Olson extension, or don't have the
  12137. full zoneinfo tables installed. */
  12138. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  12139. tm.tm_year = 98;
  12140. tm.tm_mon = 3;
  12141. tm.tm_mday = 5;
  12142. tm.tm_hour = 2;
  12143. tm.tm_min = 0;
  12144. tm.tm_sec = 0;
  12145. tm.tm_isdst = -1;
  12146. return mktime (&tm) != (time_t) -1;
  12147. }
  12148. static int
  12149. mktime_test1 (now)
  12150. time_t now;
  12151. {
  12152. struct tm *lt;
  12153. return ! (lt = localtime (&now)) || mktime (lt) == now;
  12154. }
  12155. static int
  12156. mktime_test (now)
  12157. time_t now;
  12158. {
  12159. return (mktime_test1 (now)
  12160. && mktime_test1 ((time_t) (time_t_max - now))
  12161. && mktime_test1 ((time_t) (time_t_min + now)));
  12162. }
  12163. static int
  12164. irix_6_4_bug ()
  12165. {
  12166. /* Based on code from Ariel Faigon. */
  12167. struct tm tm;
  12168. tm.tm_year = 96;
  12169. tm.tm_mon = 3;
  12170. tm.tm_mday = 0;
  12171. tm.tm_hour = 0;
  12172. tm.tm_min = 0;
  12173. tm.tm_sec = 0;
  12174. tm.tm_isdst = -1;
  12175. mktime (&tm);
  12176. return tm.tm_mon == 2 && tm.tm_mday == 31;
  12177. }
  12178. static int
  12179. bigtime_test (j)
  12180. int j;
  12181. {
  12182. struct tm tm;
  12183. time_t now;
  12184. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  12185. now = mktime (&tm);
  12186. if (now != (time_t) -1)
  12187. {
  12188. struct tm *lt = localtime (&now);
  12189. if (! (lt
  12190. && lt->tm_year == tm.tm_year
  12191. && lt->tm_mon == tm.tm_mon
  12192. && lt->tm_mday == tm.tm_mday
  12193. && lt->tm_hour == tm.tm_hour
  12194. && lt->tm_min == tm.tm_min
  12195. && lt->tm_sec == tm.tm_sec
  12196. && lt->tm_yday == tm.tm_yday
  12197. && lt->tm_wday == tm.tm_wday
  12198. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  12199. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  12200. return 0;
  12201. }
  12202. return 1;
  12203. }
  12204. static int
  12205. year_2050_test ()
  12206. {
  12207. /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
  12208. ignoring leap seconds. */
  12209. unsigned long int answer = 2527315200UL;
  12210. struct tm tm;
  12211. time_t t;
  12212. tm.tm_year = 2050 - 1900;
  12213. tm.tm_mon = 2 - 1;
  12214. tm.tm_mday = 1;
  12215. tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
  12216. tm.tm_isdst = -1;
  12217. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  12218. instead of "TZ=America/Vancouver" in order to detect the bug even
  12219. on systems that don't support the Olson extension, or don't have the
  12220. full zoneinfo tables installed. */
  12221. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  12222. t = mktime (&tm);
  12223. /* Check that the result is either a failure, or close enough
  12224. to the correct answer that we can assume the discrepancy is
  12225. due to leap seconds. */
  12226. return (t == (time_t) -1
  12227. || (0 < t && answer - 120 <= t && t <= answer + 120));
  12228. }
  12229. int
  12230. main ()
  12231. {
  12232. time_t t, delta;
  12233. int i, j;
  12234. /* This test makes some buggy mktime implementations loop.
  12235. Give up after 60 seconds; a mktime slower than that
  12236. isn't worth using anyway. */
  12237. alarm (60);
  12238. for (;;)
  12239. {
  12240. t = (time_t_max << 1) + 1;
  12241. if (t <= time_t_max)
  12242. break;
  12243. time_t_max = t;
  12244. }
  12245. time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
  12246. delta = time_t_max / 997; /* a suitable prime number */
  12247. for (i = 0; i < N_STRINGS; i++)
  12248. {
  12249. if (tz_strings[i])
  12250. putenv (tz_strings[i]);
  12251. for (t = 0; t <= time_t_max - delta; t += delta)
  12252. if (! mktime_test (t))
  12253. return 1;
  12254. if (! (mktime_test ((time_t) 1)
  12255. && mktime_test ((time_t) (60 * 60))
  12256. && mktime_test ((time_t) (60 * 60 * 24))))
  12257. return 1;
  12258. for (j = 1; ; j <<= 1)
  12259. if (! bigtime_test (j))
  12260. return 1;
  12261. else if (INT_MAX / 2 < j)
  12262. break;
  12263. if (! bigtime_test (INT_MAX))
  12264. return 1;
  12265. }
  12266. return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
  12267. }
  12268. _ACEOF
  12269. if ac_fn_cxx_try_run "$LINENO"; then :
  12270. ac_cv_func_working_mktime=yes
  12271. else
  12272. ac_cv_func_working_mktime=no
  12273. fi
  12274. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12275. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12276. fi
  12277. fi
  12278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
  12279. $as_echo "$ac_cv_func_working_mktime" >&6; }
  12280. if test $ac_cv_func_working_mktime = no; then
  12281. case " $LIBOBJS " in
  12282. *" mktime.$ac_objext "* ) ;;
  12283. *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
  12284. ;;
  12285. esac
  12286. fi
  12287. for ac_func in getpagesize
  12288. do :
  12289. ac_fn_cxx_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  12290. if test "x$ac_cv_func_getpagesize" = x""yes; then :
  12291. cat >>confdefs.h <<_ACEOF
  12292. #define HAVE_GETPAGESIZE 1
  12293. _ACEOF
  12294. fi
  12295. done
  12296. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  12297. $as_echo_n "checking for working mmap... " >&6; }
  12298. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
  12299. $as_echo_n "(cached) " >&6
  12300. else
  12301. if test "$cross_compiling" = yes; then :
  12302. ac_cv_func_mmap_fixed_mapped=no
  12303. else
  12304. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12305. /* end confdefs.h. */
  12306. $ac_includes_default
  12307. /* malloc might have been renamed as rpl_malloc. */
  12308. #undef malloc
  12309. /* Thanks to Mike Haertel and Jim Avera for this test.
  12310. Here is a matrix of mmap possibilities:
  12311. mmap private not fixed
  12312. mmap private fixed at somewhere currently unmapped
  12313. mmap private fixed at somewhere already mapped
  12314. mmap shared not fixed
  12315. mmap shared fixed at somewhere currently unmapped
  12316. mmap shared fixed at somewhere already mapped
  12317. For private mappings, we should verify that changes cannot be read()
  12318. back from the file, nor mmap's back from the file at a different
  12319. address. (There have been systems where private was not correctly
  12320. implemented like the infamous i386 svr4.0, and systems where the
  12321. VM page cache was not coherent with the file system buffer cache
  12322. like early versions of FreeBSD and possibly contemporary NetBSD.)
  12323. For shared mappings, we should conversely verify that changes get
  12324. propagated back to all the places they're supposed to be.
  12325. Grep wants private fixed already mapped.
  12326. The main things grep needs to know about mmap are:
  12327. * does it exist and is it safe to write into the mmap'd area
  12328. * how to use it (BSD variants) */
  12329. #include <fcntl.h>
  12330. #include <sys/mman.h>
  12331. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  12332. char *malloc ();
  12333. #endif
  12334. /* This mess was copied from the GNU getpagesize.h. */
  12335. #ifndef HAVE_GETPAGESIZE
  12336. # ifdef _SC_PAGESIZE
  12337. # define getpagesize() sysconf(_SC_PAGESIZE)
  12338. # else /* no _SC_PAGESIZE */
  12339. # ifdef HAVE_SYS_PARAM_H
  12340. # include <sys/param.h>
  12341. # ifdef EXEC_PAGESIZE
  12342. # define getpagesize() EXEC_PAGESIZE
  12343. # else /* no EXEC_PAGESIZE */
  12344. # ifdef NBPG
  12345. # define getpagesize() NBPG * CLSIZE
  12346. # ifndef CLSIZE
  12347. # define CLSIZE 1
  12348. # endif /* no CLSIZE */
  12349. # else /* no NBPG */
  12350. # ifdef NBPC
  12351. # define getpagesize() NBPC
  12352. # else /* no NBPC */
  12353. # ifdef PAGESIZE
  12354. # define getpagesize() PAGESIZE
  12355. # endif /* PAGESIZE */
  12356. # endif /* no NBPC */
  12357. # endif /* no NBPG */
  12358. # endif /* no EXEC_PAGESIZE */
  12359. # else /* no HAVE_SYS_PARAM_H */
  12360. # define getpagesize() 8192 /* punt totally */
  12361. # endif /* no HAVE_SYS_PARAM_H */
  12362. # endif /* no _SC_PAGESIZE */
  12363. #endif /* no HAVE_GETPAGESIZE */
  12364. int
  12365. main ()
  12366. {
  12367. char *data, *data2, *data3;
  12368. const char *cdata2;
  12369. int i, pagesize;
  12370. int fd, fd2;
  12371. pagesize = getpagesize ();
  12372. /* First, make a file with some known garbage in it. */
  12373. data = (char *) malloc (pagesize);
  12374. if (!data)
  12375. return 1;
  12376. for (i = 0; i < pagesize; ++i)
  12377. *(data + i) = rand ();
  12378. umask (0);
  12379. fd = creat ("conftest.mmap", 0600);
  12380. if (fd < 0)
  12381. return 2;
  12382. if (write (fd, data, pagesize) != pagesize)
  12383. return 3;
  12384. close (fd);
  12385. /* Next, check that the tail of a page is zero-filled. File must have
  12386. non-zero length, otherwise we risk SIGBUS for entire page. */
  12387. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  12388. if (fd2 < 0)
  12389. return 4;
  12390. cdata2 = "";
  12391. if (write (fd2, cdata2, 1) != 1)
  12392. return 5;
  12393. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  12394. if (data2 == MAP_FAILED)
  12395. return 6;
  12396. for (i = 0; i < pagesize; ++i)
  12397. if (*(data2 + i))
  12398. return 7;
  12399. close (fd2);
  12400. if (munmap (data2, pagesize))
  12401. return 8;
  12402. /* Next, try to mmap the file at a fixed address which already has
  12403. something else allocated at it. If we can, also make sure that
  12404. we see the same garbage. */
  12405. fd = open ("conftest.mmap", O_RDWR);
  12406. if (fd < 0)
  12407. return 9;
  12408. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  12409. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  12410. return 10;
  12411. for (i = 0; i < pagesize; ++i)
  12412. if (*(data + i) != *(data2 + i))
  12413. return 11;
  12414. /* Finally, make sure that changes to the mapped area do not
  12415. percolate back to the file as seen by read(). (This is a bug on
  12416. some variants of i386 svr4.0.) */
  12417. for (i = 0; i < pagesize; ++i)
  12418. *(data2 + i) = *(data2 + i) + 1;
  12419. data3 = (char *) malloc (pagesize);
  12420. if (!data3)
  12421. return 12;
  12422. if (read (fd, data3, pagesize) != pagesize)
  12423. return 13;
  12424. for (i = 0; i < pagesize; ++i)
  12425. if (*(data + i) != *(data3 + i))
  12426. return 14;
  12427. close (fd);
  12428. return 0;
  12429. }
  12430. _ACEOF
  12431. if ac_fn_cxx_try_run "$LINENO"; then :
  12432. ac_cv_func_mmap_fixed_mapped=yes
  12433. else
  12434. ac_cv_func_mmap_fixed_mapped=no
  12435. fi
  12436. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12437. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12438. fi
  12439. fi
  12440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  12441. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  12442. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  12443. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  12444. fi
  12445. rm -f conftest.mmap conftest.txt
  12446. for ac_header in sys/select.h sys/socket.h
  12447. do :
  12448. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  12449. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  12450. eval as_val=\$$as_ac_Header
  12451. if test "x$as_val" = x""yes; then :
  12452. cat >>confdefs.h <<_ACEOF
  12453. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  12454. _ACEOF
  12455. fi
  12456. done
  12457. { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
  12458. $as_echo_n "checking types of arguments for select... " >&6; }
  12459. if test "${ac_cv_func_select_args+set}" = set; then :
  12460. $as_echo_n "(cached) " >&6
  12461. else
  12462. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  12463. for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
  12464. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  12465. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12466. /* end confdefs.h. */
  12467. $ac_includes_default
  12468. #ifdef HAVE_SYS_SELECT_H
  12469. # include <sys/select.h>
  12470. #endif
  12471. #ifdef HAVE_SYS_SOCKET_H
  12472. # include <sys/socket.h>
  12473. #endif
  12474. int
  12475. main ()
  12476. {
  12477. extern int select ($ac_arg1,
  12478. $ac_arg234, $ac_arg234, $ac_arg234,
  12479. $ac_arg5);
  12480. ;
  12481. return 0;
  12482. }
  12483. _ACEOF
  12484. if ac_fn_cxx_try_compile "$LINENO"; then :
  12485. ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  12486. fi
  12487. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12488. done
  12489. done
  12490. done
  12491. # Provide a safe default value.
  12492. : ${ac_cv_func_select_args='int,int *,struct timeval *'}
  12493. fi
  12494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
  12495. $as_echo "$ac_cv_func_select_args" >&6; }
  12496. ac_save_IFS=$IFS; IFS=','
  12497. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  12498. IFS=$ac_save_IFS
  12499. shift
  12500. cat >>confdefs.h <<_ACEOF
  12501. #define SELECT_TYPE_ARG1 $1
  12502. _ACEOF
  12503. cat >>confdefs.h <<_ACEOF
  12504. #define SELECT_TYPE_ARG234 ($2)
  12505. _ACEOF
  12506. cat >>confdefs.h <<_ACEOF
  12507. #define SELECT_TYPE_ARG5 ($3)
  12508. _ACEOF
  12509. rm -f conftest*
  12510. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
  12511. $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
  12512. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
  12513. $as_echo_n "(cached) " >&6
  12514. else
  12515. rm -f conftest.sym conftest.file
  12516. echo >conftest.file
  12517. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  12518. if test "$cross_compiling" = yes; then :
  12519. ac_cv_func_lstat_dereferences_slashed_symlink=no
  12520. else
  12521. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12522. /* end confdefs.h. */
  12523. $ac_includes_default
  12524. int
  12525. main ()
  12526. {
  12527. struct stat sbuf;
  12528. /* Linux will dereference the symlink and fail, as required by POSIX.
  12529. That is better in the sense that it means we will not
  12530. have to compile and use the lstat wrapper. */
  12531. return lstat ("conftest.sym/", &sbuf) == 0;
  12532. ;
  12533. return 0;
  12534. }
  12535. _ACEOF
  12536. if ac_fn_cxx_try_run "$LINENO"; then :
  12537. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  12538. else
  12539. ac_cv_func_lstat_dereferences_slashed_symlink=no
  12540. fi
  12541. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12542. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12543. fi
  12544. else
  12545. # If the `ln -s' command failed, then we probably don't even
  12546. # have an lstat function.
  12547. ac_cv_func_lstat_dereferences_slashed_symlink=no
  12548. fi
  12549. rm -f conftest.sym conftest.file
  12550. fi
  12551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  12552. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  12553. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  12554. cat >>confdefs.h <<_ACEOF
  12555. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  12556. _ACEOF
  12557. if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
  12558. case " $LIBOBJS " in
  12559. *" lstat.$ac_objext "* ) ;;
  12560. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  12561. ;;
  12562. esac
  12563. fi
  12564. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
  12565. $as_echo_n "checking whether stat accepts an empty string... " >&6; }
  12566. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
  12567. $as_echo_n "(cached) " >&6
  12568. else
  12569. if test "$cross_compiling" = yes; then :
  12570. ac_cv_func_stat_empty_string_bug=yes
  12571. else
  12572. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12573. /* end confdefs.h. */
  12574. $ac_includes_default
  12575. int
  12576. main ()
  12577. {
  12578. struct stat sbuf;
  12579. return stat ("", &sbuf) == 0;
  12580. ;
  12581. return 0;
  12582. }
  12583. _ACEOF
  12584. if ac_fn_cxx_try_run "$LINENO"; then :
  12585. ac_cv_func_stat_empty_string_bug=no
  12586. else
  12587. ac_cv_func_stat_empty_string_bug=yes
  12588. fi
  12589. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12590. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12591. fi
  12592. fi
  12593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
  12594. $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
  12595. if test $ac_cv_func_stat_empty_string_bug = yes; then
  12596. case " $LIBOBJS " in
  12597. *" stat.$ac_objext "* ) ;;
  12598. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  12599. ;;
  12600. esac
  12601. cat >>confdefs.h <<_ACEOF
  12602. #define HAVE_STAT_EMPTY_STRING_BUG 1
  12603. _ACEOF
  12604. fi
  12605. for ac_func in strftime
  12606. do :
  12607. ac_fn_cxx_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
  12608. if test "x$ac_cv_func_strftime" = x""yes; then :
  12609. cat >>confdefs.h <<_ACEOF
  12610. #define HAVE_STRFTIME 1
  12611. _ACEOF
  12612. else
  12613. # strftime is in -lintl on SCO UNIX.
  12614. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
  12615. $as_echo_n "checking for strftime in -lintl... " >&6; }
  12616. if test "${ac_cv_lib_intl_strftime+set}" = set; then :
  12617. $as_echo_n "(cached) " >&6
  12618. else
  12619. ac_check_lib_save_LIBS=$LIBS
  12620. LIBS="-lintl $LIBS"
  12621. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12622. /* end confdefs.h. */
  12623. /* Override any GCC internal prototype to avoid an error.
  12624. Use char because int might match the return type of a GCC
  12625. builtin and then its argument prototype would still apply. */
  12626. #ifdef __cplusplus
  12627. extern "C"
  12628. #endif
  12629. char strftime ();
  12630. int
  12631. main ()
  12632. {
  12633. return strftime ();
  12634. ;
  12635. return 0;
  12636. }
  12637. _ACEOF
  12638. if ac_fn_cxx_try_link "$LINENO"; then :
  12639. ac_cv_lib_intl_strftime=yes
  12640. else
  12641. ac_cv_lib_intl_strftime=no
  12642. fi
  12643. rm -f core conftest.err conftest.$ac_objext \
  12644. conftest$ac_exeext conftest.$ac_ext
  12645. LIBS=$ac_check_lib_save_LIBS
  12646. fi
  12647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
  12648. $as_echo "$ac_cv_lib_intl_strftime" >&6; }
  12649. if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
  12650. $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
  12651. LIBS="-lintl $LIBS"
  12652. fi
  12653. fi
  12654. done
  12655. for ac_func in vprintf
  12656. do :
  12657. ac_fn_cxx_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
  12658. if test "x$ac_cv_func_vprintf" = x""yes; then :
  12659. cat >>confdefs.h <<_ACEOF
  12660. #define HAVE_VPRINTF 1
  12661. _ACEOF
  12662. ac_fn_cxx_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
  12663. if test "x$ac_cv_func__doprnt" = x""yes; then :
  12664. $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
  12665. fi
  12666. fi
  12667. done
  12668. for ac_header in vfork.h
  12669. do :
  12670. ac_fn_cxx_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
  12671. if test "x$ac_cv_header_vfork_h" = x""yes; then :
  12672. cat >>confdefs.h <<_ACEOF
  12673. #define HAVE_VFORK_H 1
  12674. _ACEOF
  12675. fi
  12676. done
  12677. for ac_func in fork vfork
  12678. do :
  12679. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12680. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  12681. eval as_val=\$$as_ac_var
  12682. if test "x$as_val" = x""yes; then :
  12683. cat >>confdefs.h <<_ACEOF
  12684. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12685. _ACEOF
  12686. fi
  12687. done
  12688. if test "x$ac_cv_func_fork" = xyes; then
  12689. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  12690. $as_echo_n "checking for working fork... " >&6; }
  12691. if test "${ac_cv_func_fork_works+set}" = set; then :
  12692. $as_echo_n "(cached) " >&6
  12693. else
  12694. if test "$cross_compiling" = yes; then :
  12695. ac_cv_func_fork_works=cross
  12696. else
  12697. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12698. /* end confdefs.h. */
  12699. $ac_includes_default
  12700. int
  12701. main ()
  12702. {
  12703. /* By Ruediger Kuhlmann. */
  12704. return fork () < 0;
  12705. ;
  12706. return 0;
  12707. }
  12708. _ACEOF
  12709. if ac_fn_cxx_try_run "$LINENO"; then :
  12710. ac_cv_func_fork_works=yes
  12711. else
  12712. ac_cv_func_fork_works=no
  12713. fi
  12714. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12715. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12716. fi
  12717. fi
  12718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  12719. $as_echo "$ac_cv_func_fork_works" >&6; }
  12720. else
  12721. ac_cv_func_fork_works=$ac_cv_func_fork
  12722. fi
  12723. if test "x$ac_cv_func_fork_works" = xcross; then
  12724. case $host in
  12725. *-*-amigaos* | *-*-msdosdjgpp*)
  12726. # Override, as these systems have only a dummy fork() stub
  12727. ac_cv_func_fork_works=no
  12728. ;;
  12729. *)
  12730. ac_cv_func_fork_works=yes
  12731. ;;
  12732. esac
  12733. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  12734. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  12735. fi
  12736. ac_cv_func_vfork_works=$ac_cv_func_vfork
  12737. if test "x$ac_cv_func_vfork" = xyes; then
  12738. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  12739. $as_echo_n "checking for working vfork... " >&6; }
  12740. if test "${ac_cv_func_vfork_works+set}" = set; then :
  12741. $as_echo_n "(cached) " >&6
  12742. else
  12743. if test "$cross_compiling" = yes; then :
  12744. ac_cv_func_vfork_works=cross
  12745. else
  12746. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12747. /* end confdefs.h. */
  12748. /* Thanks to Paul Eggert for this test. */
  12749. $ac_includes_default
  12750. #include <sys/wait.h>
  12751. #ifdef HAVE_VFORK_H
  12752. # include <vfork.h>
  12753. #endif
  12754. /* On some sparc systems, changes by the child to local and incoming
  12755. argument registers are propagated back to the parent. The compiler
  12756. is told about this with #include <vfork.h>, but some compilers
  12757. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  12758. static variable whose address is put into a register that is
  12759. clobbered by the vfork. */
  12760. static void
  12761. #ifdef __cplusplus
  12762. sparc_address_test (int arg)
  12763. # else
  12764. sparc_address_test (arg) int arg;
  12765. #endif
  12766. {
  12767. static pid_t child;
  12768. if (!child) {
  12769. child = vfork ();
  12770. if (child < 0) {
  12771. perror ("vfork");
  12772. _exit(2);
  12773. }
  12774. if (!child) {
  12775. arg = getpid();
  12776. write(-1, "", 0);
  12777. _exit (arg);
  12778. }
  12779. }
  12780. }
  12781. int
  12782. main ()
  12783. {
  12784. pid_t parent = getpid ();
  12785. pid_t child;
  12786. sparc_address_test (0);
  12787. child = vfork ();
  12788. if (child == 0) {
  12789. /* Here is another test for sparc vfork register problems. This
  12790. test uses lots of local variables, at least as many local
  12791. variables as main has allocated so far including compiler
  12792. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  12793. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  12794. reuse the register of parent for one of the local variables,
  12795. since it will think that parent can't possibly be used any more
  12796. in this routine. Assigning to the local variable will thus
  12797. munge parent in the parent process. */
  12798. pid_t
  12799. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  12800. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  12801. /* Convince the compiler that p..p7 are live; otherwise, it might
  12802. use the same hardware register for all 8 local variables. */
  12803. if (p != p1 || p != p2 || p != p3 || p != p4
  12804. || p != p5 || p != p6 || p != p7)
  12805. _exit(1);
  12806. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  12807. from child file descriptors. If the child closes a descriptor
  12808. before it execs or exits, this munges the parent's descriptor
  12809. as well. Test for this by closing stdout in the child. */
  12810. _exit(close(fileno(stdout)) != 0);
  12811. } else {
  12812. int status;
  12813. struct stat st;
  12814. while (wait(&status) != child)
  12815. ;
  12816. return (
  12817. /* Was there some problem with vforking? */
  12818. child < 0
  12819. /* Did the child fail? (This shouldn't happen.) */
  12820. || status
  12821. /* Did the vfork/compiler bug occur? */
  12822. || parent != getpid()
  12823. /* Did the file descriptor bug occur? */
  12824. || fstat(fileno(stdout), &st) != 0
  12825. );
  12826. }
  12827. }
  12828. _ACEOF
  12829. if ac_fn_cxx_try_run "$LINENO"; then :
  12830. ac_cv_func_vfork_works=yes
  12831. else
  12832. ac_cv_func_vfork_works=no
  12833. fi
  12834. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12835. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12836. fi
  12837. fi
  12838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  12839. $as_echo "$ac_cv_func_vfork_works" >&6; }
  12840. fi;
  12841. if test "x$ac_cv_func_fork_works" = xcross; then
  12842. ac_cv_func_vfork_works=$ac_cv_func_vfork
  12843. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  12844. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  12845. fi
  12846. if test "x$ac_cv_func_vfork_works" = xyes; then
  12847. $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
  12848. else
  12849. $as_echo "#define vfork fork" >>confdefs.h
  12850. fi
  12851. if test "x$ac_cv_func_fork_works" = xyes; then
  12852. $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
  12853. fi
  12854. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  12855. $as_echo_n "checking for working strtod... " >&6; }
  12856. if test "${ac_cv_func_strtod+set}" = set; then :
  12857. $as_echo_n "(cached) " >&6
  12858. else
  12859. if test "$cross_compiling" = yes; then :
  12860. ac_cv_func_strtod=no
  12861. else
  12862. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12863. /* end confdefs.h. */
  12864. $ac_includes_default
  12865. #ifndef strtod
  12866. double strtod ();
  12867. #endif
  12868. int
  12869. main()
  12870. {
  12871. {
  12872. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  12873. char *string = " +69";
  12874. char *term;
  12875. double value;
  12876. value = strtod (string, &term);
  12877. if (value != 69 || term != (string + 4))
  12878. return 1;
  12879. }
  12880. {
  12881. /* Under Solaris 2.4, strtod returns the wrong value for the
  12882. terminating character under some conditions. */
  12883. char *string = "NaN";
  12884. char *term;
  12885. strtod (string, &term);
  12886. if (term != string && *(term - 1) == 0)
  12887. return 1;
  12888. }
  12889. return 0;
  12890. }
  12891. _ACEOF
  12892. if ac_fn_cxx_try_run "$LINENO"; then :
  12893. ac_cv_func_strtod=yes
  12894. else
  12895. ac_cv_func_strtod=no
  12896. fi
  12897. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12898. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12899. fi
  12900. fi
  12901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  12902. $as_echo "$ac_cv_func_strtod" >&6; }
  12903. if test $ac_cv_func_strtod = no; then
  12904. case " $LIBOBJS " in
  12905. *" strtod.$ac_objext "* ) ;;
  12906. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  12907. ;;
  12908. esac
  12909. ac_fn_cxx_check_func "$LINENO" "pow" "ac_cv_func_pow"
  12910. if test "x$ac_cv_func_pow" = x""yes; then :
  12911. fi
  12912. if test $ac_cv_func_pow = no; then
  12913. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  12914. $as_echo_n "checking for pow in -lm... " >&6; }
  12915. if test "${ac_cv_lib_m_pow+set}" = set; then :
  12916. $as_echo_n "(cached) " >&6
  12917. else
  12918. ac_check_lib_save_LIBS=$LIBS
  12919. LIBS="-lm $LIBS"
  12920. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12921. /* end confdefs.h. */
  12922. /* Override any GCC internal prototype to avoid an error.
  12923. Use char because int might match the return type of a GCC
  12924. builtin and then its argument prototype would still apply. */
  12925. #ifdef __cplusplus
  12926. extern "C"
  12927. #endif
  12928. char pow ();
  12929. int
  12930. main ()
  12931. {
  12932. return pow ();
  12933. ;
  12934. return 0;
  12935. }
  12936. _ACEOF
  12937. if ac_fn_cxx_try_link "$LINENO"; then :
  12938. ac_cv_lib_m_pow=yes
  12939. else
  12940. ac_cv_lib_m_pow=no
  12941. fi
  12942. rm -f core conftest.err conftest.$ac_objext \
  12943. conftest$ac_exeext conftest.$ac_ext
  12944. LIBS=$ac_check_lib_save_LIBS
  12945. fi
  12946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  12947. $as_echo "$ac_cv_lib_m_pow" >&6; }
  12948. if test "x$ac_cv_lib_m_pow" = x""yes; then :
  12949. POW_LIB=-lm
  12950. else
  12951. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  12952. $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  12953. fi
  12954. fi
  12955. fi
  12956. for ac_func in __argz_count \
  12957. __argz_next \
  12958. __argz_stringify \
  12959. atexit \
  12960. ftruncate \
  12961. getcwd \
  12962. gethostbyaddr \
  12963. gethostbyname \
  12964. getifaddrs \
  12965. getpagesize \
  12966. inet_ntoa \
  12967. memchr \
  12968. memmove \
  12969. mempcpy \
  12970. memset \
  12971. mkdir \
  12972. munmap \
  12973. nl_langinfo \
  12974. posix_memalign \
  12975. pow \
  12976. putenv \
  12977. rmdir \
  12978. select \
  12979. setlocale \
  12980. sleep \
  12981. socket \
  12982. stpcpy \
  12983. strcasecmp \
  12984. strchr \
  12985. strcspn \
  12986. strdup \
  12987. strerror \
  12988. strncasecmp \
  12989. strstr \
  12990. strtol \
  12991. strtoul \
  12992. strtoull \
  12993. tzset \
  12994. unsetenv \
  12995. usleep \
  12996. utime
  12997. do :
  12998. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12999. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  13000. eval as_val=\$$as_ac_var
  13001. if test "x$as_val" = x""yes; then :
  13002. cat >>confdefs.h <<_ACEOF
  13003. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  13004. _ACEOF
  13005. fi
  13006. done
  13007. if test "x$enable_epoll" = "xyes"; then
  13008. for ac_func in epoll_create
  13009. do :
  13010. ac_fn_cxx_check_func "$LINENO" "epoll_create" "ac_cv_func_epoll_create"
  13011. if test "x$ac_cv_func_epoll_create" = x""yes; then :
  13012. cat >>confdefs.h <<_ACEOF
  13013. #define HAVE_EPOLL_CREATE 1
  13014. _ACEOF
  13015. have_epoll=yes
  13016. fi
  13017. done
  13018. if test "x$have_epoll" = "xyes"; then
  13019. $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
  13020. fi
  13021. fi
  13022. if test "x$have_epoll" = "xyes"; then
  13023. HAVE_EPOLL_TRUE=
  13024. HAVE_EPOLL_FALSE='#'
  13025. else
  13026. HAVE_EPOLL_TRUE='#'
  13027. HAVE_EPOLL_FALSE=
  13028. fi
  13029. for ac_func in posix_fallocate
  13030. do :
  13031. ac_fn_cxx_check_func "$LINENO" "posix_fallocate" "ac_cv_func_posix_fallocate"
  13032. if test "x$ac_cv_func_posix_fallocate" = x""yes; then :
  13033. cat >>confdefs.h <<_ACEOF
  13034. #define HAVE_POSIX_FALLOCATE 1
  13035. _ACEOF
  13036. have_posix_fallocate=yes
  13037. fi
  13038. done
  13039. if test "x$have_posix_fallocate" = "xyes"; then
  13040. HAVE_POSIX_FALLOCATE_TRUE=
  13041. HAVE_POSIX_FALLOCATE_FALSE='#'
  13042. else
  13043. HAVE_POSIX_FALLOCATE_TRUE='#'
  13044. HAVE_POSIX_FALLOCATE_FALSE=
  13045. fi
  13046. for ac_func in asctime_r
  13047. do :
  13048. ac_fn_cxx_check_func "$LINENO" "asctime_r" "ac_cv_func_asctime_r"
  13049. if test "x$ac_cv_func_asctime_r" = x""yes; then :
  13050. cat >>confdefs.h <<_ACEOF
  13051. #define HAVE_ASCTIME_R 1
  13052. _ACEOF
  13053. if true; then
  13054. HAVE_ASCTIME_R_TRUE=
  13055. HAVE_ASCTIME_R_FALSE='#'
  13056. else
  13057. HAVE_ASCTIME_R_TRUE='#'
  13058. HAVE_ASCTIME_R_FALSE=
  13059. fi
  13060. else
  13061. if false; then
  13062. HAVE_ASCTIME_R_TRUE=
  13063. HAVE_ASCTIME_R_FALSE='#'
  13064. else
  13065. HAVE_ASCTIME_R_TRUE='#'
  13066. HAVE_ASCTIME_R_FALSE=
  13067. fi
  13068. fi
  13069. done
  13070. for ac_func in basename
  13071. do :
  13072. ac_fn_cxx_check_func "$LINENO" "basename" "ac_cv_func_basename"
  13073. if test "x$ac_cv_func_basename" = x""yes; then :
  13074. cat >>confdefs.h <<_ACEOF
  13075. #define HAVE_BASENAME 1
  13076. _ACEOF
  13077. if true; then
  13078. HAVE_BASENAME_TRUE=
  13079. HAVE_BASENAME_FALSE='#'
  13080. else
  13081. HAVE_BASENAME_TRUE='#'
  13082. HAVE_BASENAME_FALSE=
  13083. fi
  13084. else
  13085. if false; then
  13086. HAVE_BASENAME_TRUE=
  13087. HAVE_BASENAME_FALSE='#'
  13088. else
  13089. HAVE_BASENAME_TRUE='#'
  13090. HAVE_BASENAME_FALSE=
  13091. fi
  13092. fi
  13093. done
  13094. for ac_func in gai_strerror
  13095. do :
  13096. ac_fn_cxx_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
  13097. if test "x$ac_cv_func_gai_strerror" = x""yes; then :
  13098. cat >>confdefs.h <<_ACEOF
  13099. #define HAVE_GAI_STRERROR 1
  13100. _ACEOF
  13101. if true; then
  13102. HAVE_GAI_STRERROR_TRUE=
  13103. HAVE_GAI_STRERROR_FALSE='#'
  13104. else
  13105. HAVE_GAI_STRERROR_TRUE='#'
  13106. HAVE_GAI_STRERROR_FALSE=
  13107. fi
  13108. else
  13109. if false; then
  13110. HAVE_GAI_STRERROR_TRUE=
  13111. HAVE_GAI_STRERROR_FALSE='#'
  13112. else
  13113. HAVE_GAI_STRERROR_TRUE='#'
  13114. HAVE_GAI_STRERROR_FALSE=
  13115. fi
  13116. fi
  13117. done
  13118. for ac_func in getaddrinfo
  13119. do :
  13120. ac_fn_cxx_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
  13121. if test "x$ac_cv_func_getaddrinfo" = x""yes; then :
  13122. cat >>confdefs.h <<_ACEOF
  13123. #define HAVE_GETADDRINFO 1
  13124. _ACEOF
  13125. if true; then
  13126. HAVE_GETADDRINFO_TRUE=
  13127. HAVE_GETADDRINFO_FALSE='#'
  13128. else
  13129. HAVE_GETADDRINFO_TRUE='#'
  13130. HAVE_GETADDRINFO_FALSE=
  13131. fi
  13132. else
  13133. if false; then
  13134. HAVE_GETADDRINFO_TRUE=
  13135. HAVE_GETADDRINFO_FALSE='#'
  13136. else
  13137. HAVE_GETADDRINFO_TRUE='#'
  13138. HAVE_GETADDRINFO_FALSE=
  13139. fi
  13140. fi
  13141. done
  13142. for ac_func in gettimeofday
  13143. do :
  13144. ac_fn_cxx_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
  13145. if test "x$ac_cv_func_gettimeofday" = x""yes; then :
  13146. cat >>confdefs.h <<_ACEOF
  13147. #define HAVE_GETTIMEOFDAY 1
  13148. _ACEOF
  13149. if true; then
  13150. HAVE_GETTIMEOFDAY_TRUE=
  13151. HAVE_GETTIMEOFDAY_FALSE='#'
  13152. else
  13153. HAVE_GETTIMEOFDAY_TRUE='#'
  13154. HAVE_GETTIMEOFDAY_FALSE=
  13155. fi
  13156. else
  13157. if false; then
  13158. HAVE_GETTIMEOFDAY_TRUE=
  13159. HAVE_GETTIMEOFDAY_FALSE='#'
  13160. else
  13161. HAVE_GETTIMEOFDAY_TRUE='#'
  13162. HAVE_GETTIMEOFDAY_FALSE=
  13163. fi
  13164. fi
  13165. done
  13166. for ac_func in inet_aton
  13167. do :
  13168. ac_fn_cxx_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
  13169. if test "x$ac_cv_func_inet_aton" = x""yes; then :
  13170. cat >>confdefs.h <<_ACEOF
  13171. #define HAVE_INET_ATON 1
  13172. _ACEOF
  13173. if true; then
  13174. HAVE_INET_ATON_TRUE=
  13175. HAVE_INET_ATON_FALSE='#'
  13176. else
  13177. HAVE_INET_ATON_TRUE='#'
  13178. HAVE_INET_ATON_FALSE=
  13179. fi
  13180. else
  13181. if false; then
  13182. HAVE_INET_ATON_TRUE=
  13183. HAVE_INET_ATON_FALSE='#'
  13184. else
  13185. HAVE_INET_ATON_TRUE='#'
  13186. HAVE_INET_ATON_FALSE=
  13187. fi
  13188. fi
  13189. done
  13190. for ac_func in localtime_r
  13191. do :
  13192. ac_fn_cxx_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r"
  13193. if test "x$ac_cv_func_localtime_r" = x""yes; then :
  13194. cat >>confdefs.h <<_ACEOF
  13195. #define HAVE_LOCALTIME_R 1
  13196. _ACEOF
  13197. if true; then
  13198. HAVE_LOCALTIME_R_TRUE=
  13199. HAVE_LOCALTIME_R_FALSE='#'
  13200. else
  13201. HAVE_LOCALTIME_R_TRUE='#'
  13202. HAVE_LOCALTIME_R_FALSE=
  13203. fi
  13204. else
  13205. if false; then
  13206. HAVE_LOCALTIME_R_TRUE=
  13207. HAVE_LOCALTIME_R_FALSE='#'
  13208. else
  13209. HAVE_LOCALTIME_R_TRUE='#'
  13210. HAVE_LOCALTIME_R_FALSE=
  13211. fi
  13212. fi
  13213. done
  13214. for ac_func in strptime
  13215. do :
  13216. ac_fn_cxx_check_func "$LINENO" "strptime" "ac_cv_func_strptime"
  13217. if test "x$ac_cv_func_strptime" = x""yes; then :
  13218. cat >>confdefs.h <<_ACEOF
  13219. #define HAVE_STRPTIME 1
  13220. _ACEOF
  13221. if true; then
  13222. HAVE_STRPTIME_TRUE=
  13223. HAVE_STRPTIME_FALSE='#'
  13224. else
  13225. HAVE_STRPTIME_TRUE='#'
  13226. HAVE_STRPTIME_FALSE=
  13227. fi
  13228. else
  13229. if false; then
  13230. HAVE_STRPTIME_TRUE=
  13231. HAVE_STRPTIME_FALSE='#'
  13232. else
  13233. HAVE_STRPTIME_TRUE='#'
  13234. HAVE_STRPTIME_FALSE=
  13235. fi
  13236. fi
  13237. done
  13238. for ac_func in timegm
  13239. do :
  13240. ac_fn_cxx_check_func "$LINENO" "timegm" "ac_cv_func_timegm"
  13241. if test "x$ac_cv_func_timegm" = x""yes; then :
  13242. cat >>confdefs.h <<_ACEOF
  13243. #define HAVE_TIMEGM 1
  13244. _ACEOF
  13245. if true; then
  13246. HAVE_TIMEGM_TRUE=
  13247. HAVE_TIMEGM_FALSE='#'
  13248. else
  13249. HAVE_TIMEGM_TRUE='#'
  13250. HAVE_TIMEGM_FALSE=
  13251. fi
  13252. else
  13253. if false; then
  13254. HAVE_TIMEGM_TRUE=
  13255. HAVE_TIMEGM_FALSE='#'
  13256. else
  13257. HAVE_TIMEGM_TRUE='#'
  13258. HAVE_TIMEGM_FALSE=
  13259. fi
  13260. fi
  13261. done
  13262. for ac_func in daemon
  13263. do :
  13264. ac_fn_cxx_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
  13265. if test "x$ac_cv_func_daemon" = x""yes; then :
  13266. cat >>confdefs.h <<_ACEOF
  13267. #define HAVE_DAEMON 1
  13268. _ACEOF
  13269. have_daemon=yes
  13270. fi
  13271. done
  13272. if test "x$have_daemon" = "xyes"; then
  13273. HAVE_DAEMON_TRUE=
  13274. HAVE_DAEMON_FALSE='#'
  13275. else
  13276. HAVE_DAEMON_TRUE='#'
  13277. HAVE_DAEMON_FALSE=
  13278. fi
  13279. for ac_func in clock_gettime
  13280. do :
  13281. ac_fn_cxx_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
  13282. if test "x$ac_cv_func_clock_gettime" = x""yes; then :
  13283. cat >>confdefs.h <<_ACEOF
  13284. #define HAVE_CLOCK_GETTIME 1
  13285. _ACEOF
  13286. have_clock_gettime=yes
  13287. fi
  13288. done
  13289. if test "x$have_clock_gettime" != "xyes"; then
  13290. for ac_func in mach_absolute_time
  13291. do :
  13292. ac_fn_cxx_check_func "$LINENO" "mach_absolute_time" "ac_cv_func_mach_absolute_time"
  13293. if test "x$ac_cv_func_mach_absolute_time" = x""yes; then :
  13294. cat >>confdefs.h <<_ACEOF
  13295. #define HAVE_MACH_ABSOLUTE_TIME 1
  13296. _ACEOF
  13297. have_mach_absolute_time=yes
  13298. fi
  13299. done
  13300. fi
  13301. if test "x$have_mach_absolute_time" = "xyes"; then
  13302. HAVE_MACH_ABSOLUTE_TIME_TRUE=
  13303. HAVE_MACH_ABSOLUTE_TIME_FALSE='#'
  13304. else
  13305. HAVE_MACH_ABSOLUTE_TIME_TRUE='#'
  13306. HAVE_MACH_ABSOLUTE_TIME_FALSE=
  13307. fi
  13308. case "$target" in
  13309. *mingw*)
  13310. if true; then
  13311. HAVE_GETADDRINFO_TRUE=
  13312. HAVE_GETADDRINFO_FALSE='#'
  13313. else
  13314. HAVE_GETADDRINFO_TRUE='#'
  13315. HAVE_GETADDRINFO_FALSE=
  13316. fi
  13317. if false; then
  13318. HAVE_GAI_STRERROR_TRUE=
  13319. HAVE_GAI_STRERROR_FALSE='#'
  13320. else
  13321. HAVE_GAI_STRERROR_TRUE='#'
  13322. HAVE_GAI_STRERROR_FALSE=
  13323. fi
  13324. if test "x$have_clock_gettime" != "xyes"; then
  13325. if true; then
  13326. HAVE_TIMEGETTIME_TRUE=
  13327. HAVE_TIMEGETTIME_FALSE='#'
  13328. else
  13329. HAVE_TIMEGETTIME_TRUE='#'
  13330. HAVE_TIMEGETTIME_FALSE=
  13331. fi
  13332. fi
  13333. ;;
  13334. *)
  13335. if false; then
  13336. HAVE_TIMEGETTIME_TRUE=
  13337. HAVE_TIMEGETTIME_FALSE='#'
  13338. else
  13339. HAVE_TIMEGETTIME_TRUE='#'
  13340. HAVE_TIMEGETTIME_FALSE=
  13341. fi
  13342. ;;
  13343. esac
  13344. ac_fn_cxx_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <netinet/in.h>
  13345. "
  13346. if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = x""yes; then :
  13347. $as_echo "#define HAVE_SOCKADDR_IN_SIN_LEN 1" >>confdefs.h
  13348. fi
  13349. # Check struct option.name is assignable from const char*. struct
  13350. # option.name in opensolaris is of type char*. In Linux, it is const
  13351. # char*
  13352. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct option.name is assignable from const char*" >&5
  13353. $as_echo_n "checking whether struct option.name is assignable from const char*... " >&6; }
  13354. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13355. /* end confdefs.h. */
  13356. #include <unistd.h>
  13357. #include <getopt.h>
  13358. int
  13359. main ()
  13360. {
  13361. const char* s = "const char";
  13362. option op;
  13363. op.name = s;
  13364. ;
  13365. return 0;
  13366. }
  13367. _ACEOF
  13368. if ac_fn_cxx_try_compile "$LINENO"; then :
  13369. have_option_const_name=yes
  13370. else
  13371. have_option_const_name=no
  13372. fi
  13373. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_option_const_name" >&5
  13375. $as_echo "$have_option_const_name" >&6; }
  13376. if test "x$have_option_const_name" = "xyes"; then
  13377. $as_echo "#define HAVE_OPTION_CONST_NAME 1" >>confdefs.h
  13378. fi
  13379. ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile po/Makefile.in intl/Makefile lib/Makefile doc/Makefile"
  13380. cat >confcache <<\_ACEOF
  13381. # This file is a shell script that caches the results of configure
  13382. # tests run on this system so they can be shared between configure
  13383. # scripts and configure runs, see configure's option --config-cache.
  13384. # It is not useful on other systems. If it contains results you don't
  13385. # want to keep, you may remove or edit it.
  13386. #
  13387. # config.status only pays attention to the cache file if you give it
  13388. # the --recheck option to rerun configure.
  13389. #
  13390. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  13391. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  13392. # following values.
  13393. _ACEOF
  13394. # The following way of writing the cache mishandles newlines in values,
  13395. # but we know of no workaround that is simple, portable, and efficient.
  13396. # So, we kill variables containing newlines.
  13397. # Ultrix sh set writes to stderr and can't be redirected directly,
  13398. # and sets the high bit in the cache file unless we assign to the vars.
  13399. (
  13400. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  13401. eval ac_val=\$$ac_var
  13402. case $ac_val in #(
  13403. *${as_nl}*)
  13404. case $ac_var in #(
  13405. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  13406. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  13407. esac
  13408. case $ac_var in #(
  13409. _ | IFS | as_nl) ;; #(
  13410. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  13411. *) { eval $ac_var=; unset $ac_var;} ;;
  13412. esac ;;
  13413. esac
  13414. done
  13415. (set) 2>&1 |
  13416. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  13417. *${as_nl}ac_space=\ *)
  13418. # `set' does not quote correctly, so add quotes: double-quote
  13419. # substitution turns \\\\ into \\, and sed turns \\ into \.
  13420. sed -n \
  13421. "s/'/'\\\\''/g;
  13422. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  13423. ;; #(
  13424. *)
  13425. # `set' quotes correctly as required by POSIX, so do not add quotes.
  13426. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  13427. ;;
  13428. esac |
  13429. sort
  13430. ) |
  13431. sed '
  13432. /^ac_cv_env_/b end
  13433. t clear
  13434. :clear
  13435. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  13436. t end
  13437. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  13438. :end' >>confcache
  13439. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  13440. if test -w "$cache_file"; then
  13441. test "x$cache_file" != "x/dev/null" &&
  13442. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  13443. $as_echo "$as_me: updating cache $cache_file" >&6;}
  13444. cat confcache >$cache_file
  13445. else
  13446. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  13447. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  13448. fi
  13449. fi
  13450. rm -f confcache
  13451. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  13452. # Let make expand exec_prefix.
  13453. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  13454. DEFS=-DHAVE_CONFIG_H
  13455. ac_libobjs=
  13456. ac_ltlibobjs=
  13457. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  13458. # 1. Remove the extension, and $U if already installed.
  13459. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  13460. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  13461. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  13462. # will be set to the directory where LIBOBJS objects are built.
  13463. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  13464. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  13465. done
  13466. LIBOBJS=$ac_libobjs
  13467. LTLIBOBJS=$ac_ltlibobjs
  13468. if test -n "$EXEEXT"; then
  13469. am__EXEEXT_TRUE=
  13470. am__EXEEXT_FALSE='#'
  13471. else
  13472. am__EXEEXT_TRUE='#'
  13473. am__EXEEXT_FALSE=
  13474. fi
  13475. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  13476. as_fn_error "conditional \"AMDEP\" was never defined.
  13477. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13478. fi
  13479. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  13480. as_fn_error "conditional \"am__fastdepCXX\" was never defined.
  13481. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13482. fi
  13483. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  13484. as_fn_error "conditional \"am__fastdepCC\" was never defined.
  13485. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13486. fi
  13487. if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
  13488. as_fn_error "conditional \"ENABLE_SSL\" was never defined.
  13489. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13490. fi
  13491. if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
  13492. as_fn_error "conditional \"ENABLE_SSL\" was never defined.
  13493. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13494. fi
  13495. if test -z "${HAVE_LIBGNUTLS_TRUE}" && test -z "${HAVE_LIBGNUTLS_FALSE}"; then
  13496. as_fn_error "conditional \"HAVE_LIBGNUTLS\" was never defined.
  13497. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13498. fi
  13499. if test -z "${HAVE_LIBSSL_TRUE}" && test -z "${HAVE_LIBSSL_FALSE}"; then
  13500. as_fn_error "conditional \"HAVE_LIBSSL\" was never defined.
  13501. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13502. fi
  13503. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  13504. as_fn_error "conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  13505. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13506. fi
  13507. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  13508. as_fn_error "conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  13509. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13510. fi
  13511. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  13512. as_fn_error "conditional \"ENABLE_BITTORRENT\" was never defined.
  13513. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13514. fi
  13515. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  13516. as_fn_error "conditional \"ENABLE_BITTORRENT\" was never defined.
  13517. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13518. fi
  13519. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  13520. as_fn_error "conditional \"ENABLE_METALINK\" was never defined.
  13521. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13522. fi
  13523. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  13524. as_fn_error "conditional \"ENABLE_METALINK\" was never defined.
  13525. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13526. fi
  13527. if test -z "${ENABLE_METALINK_LIBXML2_TRUE}" && test -z "${ENABLE_METALINK_LIBXML2_FALSE}"; then
  13528. as_fn_error "conditional \"ENABLE_METALINK_LIBXML2\" was never defined.
  13529. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13530. fi
  13531. if test -z "${ENABLE_METALINK_LIBEXPAT_TRUE}" && test -z "${ENABLE_METALINK_LIBEXPAT_FALSE}"; then
  13532. as_fn_error "conditional \"ENABLE_METALINK_LIBEXPAT\" was never defined.
  13533. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13534. fi
  13535. if test -z "${ENABLE_XML_RPC_TRUE}" && test -z "${ENABLE_XML_RPC_FALSE}"; then
  13536. as_fn_error "conditional \"ENABLE_XML_RPC\" was never defined.
  13537. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13538. fi
  13539. if test -z "${HAVE_LIBXML2_TRUE}" && test -z "${HAVE_LIBXML2_FALSE}"; then
  13540. as_fn_error "conditional \"HAVE_LIBXML2\" was never defined.
  13541. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13542. fi
  13543. if test -z "${HAVE_LIBEXPAT_TRUE}" && test -z "${HAVE_LIBEXPAT_FALSE}"; then
  13544. as_fn_error "conditional \"HAVE_LIBEXPAT\" was never defined.
  13545. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13546. fi
  13547. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  13548. as_fn_error "conditional \"ENABLE_ASYNC_DNS\" was never defined.
  13549. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13550. fi
  13551. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  13552. as_fn_error "conditional \"ENABLE_ASYNC_DNS\" was never defined.
  13553. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13554. fi
  13555. if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
  13556. as_fn_error "conditional \"HAVE_LIBZ\" was never defined.
  13557. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13558. fi
  13559. if test -z "${HAVE_SQLITE3_TRUE}" && test -z "${HAVE_SQLITE3_FALSE}"; then
  13560. as_fn_error "conditional \"HAVE_SQLITE3\" was never defined.
  13561. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13562. fi
  13563. if test -z "${HAVE_EPOLL_TRUE}" && test -z "${HAVE_EPOLL_FALSE}"; then
  13564. as_fn_error "conditional \"HAVE_EPOLL\" was never defined.
  13565. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13566. fi
  13567. if test -z "${HAVE_POSIX_FALLOCATE_TRUE}" && test -z "${HAVE_POSIX_FALLOCATE_FALSE}"; then
  13568. as_fn_error "conditional \"HAVE_POSIX_FALLOCATE\" was never defined.
  13569. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13570. fi
  13571. if test -z "${HAVE_ASCTIME_R_TRUE}" && test -z "${HAVE_ASCTIME_R_FALSE}"; then
  13572. as_fn_error "conditional \"HAVE_ASCTIME_R\" was never defined.
  13573. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13574. fi
  13575. if test -z "${HAVE_ASCTIME_R_TRUE}" && test -z "${HAVE_ASCTIME_R_FALSE}"; then
  13576. as_fn_error "conditional \"HAVE_ASCTIME_R\" was never defined.
  13577. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13578. fi
  13579. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  13580. as_fn_error "conditional \"HAVE_BASENAME\" was never defined.
  13581. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13582. fi
  13583. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  13584. as_fn_error "conditional \"HAVE_BASENAME\" was never defined.
  13585. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13586. fi
  13587. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  13588. as_fn_error "conditional \"HAVE_GAI_STRERROR\" was never defined.
  13589. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13590. fi
  13591. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  13592. as_fn_error "conditional \"HAVE_GAI_STRERROR\" was never defined.
  13593. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13594. fi
  13595. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  13596. as_fn_error "conditional \"HAVE_GETADDRINFO\" was never defined.
  13597. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13598. fi
  13599. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  13600. as_fn_error "conditional \"HAVE_GETADDRINFO\" was never defined.
  13601. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13602. fi
  13603. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  13604. as_fn_error "conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  13605. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13606. fi
  13607. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  13608. as_fn_error "conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  13609. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13610. fi
  13611. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  13612. as_fn_error "conditional \"HAVE_INET_ATON\" was never defined.
  13613. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13614. fi
  13615. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  13616. as_fn_error "conditional \"HAVE_INET_ATON\" was never defined.
  13617. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13618. fi
  13619. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  13620. as_fn_error "conditional \"HAVE_LOCALTIME_R\" was never defined.
  13621. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13622. fi
  13623. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  13624. as_fn_error "conditional \"HAVE_LOCALTIME_R\" was never defined.
  13625. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13626. fi
  13627. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  13628. as_fn_error "conditional \"HAVE_STRPTIME\" was never defined.
  13629. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13630. fi
  13631. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  13632. as_fn_error "conditional \"HAVE_STRPTIME\" was never defined.
  13633. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13634. fi
  13635. if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
  13636. as_fn_error "conditional \"HAVE_TIMEGM\" was never defined.
  13637. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13638. fi
  13639. if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
  13640. as_fn_error "conditional \"HAVE_TIMEGM\" was never defined.
  13641. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13642. fi
  13643. if test -z "${HAVE_DAEMON_TRUE}" && test -z "${HAVE_DAEMON_FALSE}"; then
  13644. as_fn_error "conditional \"HAVE_DAEMON\" was never defined.
  13645. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13646. fi
  13647. if test -z "${HAVE_MACH_ABSOLUTE_TIME_TRUE}" && test -z "${HAVE_MACH_ABSOLUTE_TIME_FALSE}"; then
  13648. as_fn_error "conditional \"HAVE_MACH_ABSOLUTE_TIME\" was never defined.
  13649. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13650. fi
  13651. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  13652. as_fn_error "conditional \"HAVE_GETADDRINFO\" was never defined.
  13653. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13654. fi
  13655. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  13656. as_fn_error "conditional \"HAVE_GAI_STRERROR\" was never defined.
  13657. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13658. fi
  13659. if test -z "${HAVE_TIMEGETTIME_TRUE}" && test -z "${HAVE_TIMEGETTIME_FALSE}"; then
  13660. as_fn_error "conditional \"HAVE_TIMEGETTIME\" was never defined.
  13661. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13662. fi
  13663. if test -z "${HAVE_TIMEGETTIME_TRUE}" && test -z "${HAVE_TIMEGETTIME_FALSE}"; then
  13664. as_fn_error "conditional \"HAVE_TIMEGETTIME\" was never defined.
  13665. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13666. fi
  13667. : ${CONFIG_STATUS=./config.status}
  13668. ac_write_fail=0
  13669. ac_clean_files_save=$ac_clean_files
  13670. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  13671. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  13672. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  13673. as_write_fail=0
  13674. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  13675. #! $SHELL
  13676. # Generated by $as_me.
  13677. # Run this file to recreate the current configuration.
  13678. # Compiler output produced by configure, useful for debugging
  13679. # configure, is in config.log if it exists.
  13680. debug=false
  13681. ac_cs_recheck=false
  13682. ac_cs_silent=false
  13683. SHELL=\${CONFIG_SHELL-$SHELL}
  13684. export SHELL
  13685. _ASEOF
  13686. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  13687. ## -------------------- ##
  13688. ## M4sh Initialization. ##
  13689. ## -------------------- ##
  13690. # Be more Bourne compatible
  13691. DUALCASE=1; export DUALCASE # for MKS sh
  13692. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  13693. emulate sh
  13694. NULLCMD=:
  13695. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  13696. # is contrary to our usage. Disable this feature.
  13697. alias -g '${1+"$@"}'='"$@"'
  13698. setopt NO_GLOB_SUBST
  13699. else
  13700. case `(set -o) 2>/dev/null` in #(
  13701. *posix*) :
  13702. set -o posix ;; #(
  13703. *) :
  13704. ;;
  13705. esac
  13706. fi
  13707. as_nl='
  13708. '
  13709. export as_nl
  13710. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  13711. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  13712. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  13713. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  13714. # Prefer a ksh shell builtin over an external printf program on Solaris,
  13715. # but without wasting forks for bash or zsh.
  13716. if test -z "$BASH_VERSION$ZSH_VERSION" \
  13717. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  13718. as_echo='print -r --'
  13719. as_echo_n='print -rn --'
  13720. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  13721. as_echo='printf %s\n'
  13722. as_echo_n='printf %s'
  13723. else
  13724. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  13725. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  13726. as_echo_n='/usr/ucb/echo -n'
  13727. else
  13728. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  13729. as_echo_n_body='eval
  13730. arg=$1;
  13731. case $arg in #(
  13732. *"$as_nl"*)
  13733. expr "X$arg" : "X\\(.*\\)$as_nl";
  13734. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  13735. esac;
  13736. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  13737. '
  13738. export as_echo_n_body
  13739. as_echo_n='sh -c $as_echo_n_body as_echo'
  13740. fi
  13741. export as_echo_body
  13742. as_echo='sh -c $as_echo_body as_echo'
  13743. fi
  13744. # The user is always right.
  13745. if test "${PATH_SEPARATOR+set}" != set; then
  13746. PATH_SEPARATOR=:
  13747. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  13748. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  13749. PATH_SEPARATOR=';'
  13750. }
  13751. fi
  13752. # IFS
  13753. # We need space, tab and new line, in precisely that order. Quoting is
  13754. # there to prevent editors from complaining about space-tab.
  13755. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  13756. # splitting by setting IFS to empty value.)
  13757. IFS=" "" $as_nl"
  13758. # Find who we are. Look in the path if we contain no directory separator.
  13759. case $0 in #((
  13760. *[\\/]* ) as_myself=$0 ;;
  13761. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13762. for as_dir in $PATH
  13763. do
  13764. IFS=$as_save_IFS
  13765. test -z "$as_dir" && as_dir=.
  13766. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  13767. done
  13768. IFS=$as_save_IFS
  13769. ;;
  13770. esac
  13771. # We did not find ourselves, most probably we were run as `sh COMMAND'
  13772. # in which case we are not to be found in the path.
  13773. if test "x$as_myself" = x; then
  13774. as_myself=$0
  13775. fi
  13776. if test ! -f "$as_myself"; then
  13777. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  13778. exit 1
  13779. fi
  13780. # Unset variables that we do not need and which cause bugs (e.g. in
  13781. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  13782. # suppresses any "Segmentation fault" message there. '((' could
  13783. # trigger a bug in pdksh 5.2.14.
  13784. for as_var in BASH_ENV ENV MAIL MAILPATH
  13785. do eval test x\${$as_var+set} = xset \
  13786. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  13787. done
  13788. PS1='$ '
  13789. PS2='> '
  13790. PS4='+ '
  13791. # NLS nuisances.
  13792. LC_ALL=C
  13793. export LC_ALL
  13794. LANGUAGE=C
  13795. export LANGUAGE
  13796. # CDPATH.
  13797. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13798. # as_fn_error ERROR [LINENO LOG_FD]
  13799. # ---------------------------------
  13800. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  13801. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  13802. # script with status $?, using 1 if that was 0.
  13803. as_fn_error ()
  13804. {
  13805. as_status=$?; test $as_status -eq 0 && as_status=1
  13806. if test "$3"; then
  13807. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  13808. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  13809. fi
  13810. $as_echo "$as_me: error: $1" >&2
  13811. as_fn_exit $as_status
  13812. } # as_fn_error
  13813. # as_fn_set_status STATUS
  13814. # -----------------------
  13815. # Set $? to STATUS, without forking.
  13816. as_fn_set_status ()
  13817. {
  13818. return $1
  13819. } # as_fn_set_status
  13820. # as_fn_exit STATUS
  13821. # -----------------
  13822. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  13823. as_fn_exit ()
  13824. {
  13825. set +e
  13826. as_fn_set_status $1
  13827. exit $1
  13828. } # as_fn_exit
  13829. # as_fn_unset VAR
  13830. # ---------------
  13831. # Portably unset VAR.
  13832. as_fn_unset ()
  13833. {
  13834. { eval $1=; unset $1;}
  13835. }
  13836. as_unset=as_fn_unset
  13837. # as_fn_append VAR VALUE
  13838. # ----------------------
  13839. # Append the text in VALUE to the end of the definition contained in VAR. Take
  13840. # advantage of any shell optimizations that allow amortized linear growth over
  13841. # repeated appends, instead of the typical quadratic growth present in naive
  13842. # implementations.
  13843. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  13844. eval 'as_fn_append ()
  13845. {
  13846. eval $1+=\$2
  13847. }'
  13848. else
  13849. as_fn_append ()
  13850. {
  13851. eval $1=\$$1\$2
  13852. }
  13853. fi # as_fn_append
  13854. # as_fn_arith ARG...
  13855. # ------------------
  13856. # Perform arithmetic evaluation on the ARGs, and store the result in the
  13857. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  13858. # must be portable across $(()) and expr.
  13859. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  13860. eval 'as_fn_arith ()
  13861. {
  13862. as_val=$(( $* ))
  13863. }'
  13864. else
  13865. as_fn_arith ()
  13866. {
  13867. as_val=`expr "$@" || test $? -eq 1`
  13868. }
  13869. fi # as_fn_arith
  13870. if expr a : '\(a\)' >/dev/null 2>&1 &&
  13871. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  13872. as_expr=expr
  13873. else
  13874. as_expr=false
  13875. fi
  13876. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  13877. as_basename=basename
  13878. else
  13879. as_basename=false
  13880. fi
  13881. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  13882. as_dirname=dirname
  13883. else
  13884. as_dirname=false
  13885. fi
  13886. as_me=`$as_basename -- "$0" ||
  13887. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  13888. X"$0" : 'X\(//\)$' \| \
  13889. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  13890. $as_echo X/"$0" |
  13891. sed '/^.*\/\([^/][^/]*\)\/*$/{
  13892. s//\1/
  13893. q
  13894. }
  13895. /^X\/\(\/\/\)$/{
  13896. s//\1/
  13897. q
  13898. }
  13899. /^X\/\(\/\).*/{
  13900. s//\1/
  13901. q
  13902. }
  13903. s/.*/./; q'`
  13904. # Avoid depending upon Character Ranges.
  13905. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  13906. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  13907. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  13908. as_cr_digits='0123456789'
  13909. as_cr_alnum=$as_cr_Letters$as_cr_digits
  13910. ECHO_C= ECHO_N= ECHO_T=
  13911. case `echo -n x` in #(((((
  13912. -n*)
  13913. case `echo 'xy\c'` in
  13914. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  13915. xy) ECHO_C='\c';;
  13916. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  13917. ECHO_T=' ';;
  13918. esac;;
  13919. *)
  13920. ECHO_N='-n';;
  13921. esac
  13922. rm -f conf$$ conf$$.exe conf$$.file
  13923. if test -d conf$$.dir; then
  13924. rm -f conf$$.dir/conf$$.file
  13925. else
  13926. rm -f conf$$.dir
  13927. mkdir conf$$.dir 2>/dev/null
  13928. fi
  13929. if (echo >conf$$.file) 2>/dev/null; then
  13930. if ln -s conf$$.file conf$$ 2>/dev/null; then
  13931. as_ln_s='ln -s'
  13932. # ... but there are two gotchas:
  13933. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  13934. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  13935. # In both cases, we have to default to `cp -p'.
  13936. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  13937. as_ln_s='cp -p'
  13938. elif ln conf$$.file conf$$ 2>/dev/null; then
  13939. as_ln_s=ln
  13940. else
  13941. as_ln_s='cp -p'
  13942. fi
  13943. else
  13944. as_ln_s='cp -p'
  13945. fi
  13946. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  13947. rmdir conf$$.dir 2>/dev/null
  13948. # as_fn_mkdir_p
  13949. # -------------
  13950. # Create "$as_dir" as a directory, including parents if necessary.
  13951. as_fn_mkdir_p ()
  13952. {
  13953. case $as_dir in #(
  13954. -*) as_dir=./$as_dir;;
  13955. esac
  13956. test -d "$as_dir" || eval $as_mkdir_p || {
  13957. as_dirs=
  13958. while :; do
  13959. case $as_dir in #(
  13960. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  13961. *) as_qdir=$as_dir;;
  13962. esac
  13963. as_dirs="'$as_qdir' $as_dirs"
  13964. as_dir=`$as_dirname -- "$as_dir" ||
  13965. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13966. X"$as_dir" : 'X\(//\)[^/]' \| \
  13967. X"$as_dir" : 'X\(//\)$' \| \
  13968. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  13969. $as_echo X"$as_dir" |
  13970. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13971. s//\1/
  13972. q
  13973. }
  13974. /^X\(\/\/\)[^/].*/{
  13975. s//\1/
  13976. q
  13977. }
  13978. /^X\(\/\/\)$/{
  13979. s//\1/
  13980. q
  13981. }
  13982. /^X\(\/\).*/{
  13983. s//\1/
  13984. q
  13985. }
  13986. s/.*/./; q'`
  13987. test -d "$as_dir" && break
  13988. done
  13989. test -z "$as_dirs" || eval "mkdir $as_dirs"
  13990. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  13991. } # as_fn_mkdir_p
  13992. if mkdir -p . 2>/dev/null; then
  13993. as_mkdir_p='mkdir -p "$as_dir"'
  13994. else
  13995. test -d ./-p && rmdir ./-p
  13996. as_mkdir_p=false
  13997. fi
  13998. if test -x / >/dev/null 2>&1; then
  13999. as_test_x='test -x'
  14000. else
  14001. if ls -dL / >/dev/null 2>&1; then
  14002. as_ls_L_option=L
  14003. else
  14004. as_ls_L_option=
  14005. fi
  14006. as_test_x='
  14007. eval sh -c '\''
  14008. if test -d "$1"; then
  14009. test -d "$1/.";
  14010. else
  14011. case $1 in #(
  14012. -*)set "./$1";;
  14013. esac;
  14014. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  14015. ???[sx]*):;;*)false;;esac;fi
  14016. '\'' sh
  14017. '
  14018. fi
  14019. as_executable_p=$as_test_x
  14020. # Sed expression to map a string onto a valid CPP name.
  14021. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  14022. # Sed expression to map a string onto a valid variable name.
  14023. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  14024. exec 6>&1
  14025. ## ----------------------------------- ##
  14026. ## Main body of $CONFIG_STATUS script. ##
  14027. ## ----------------------------------- ##
  14028. _ASEOF
  14029. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  14030. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14031. # Save the log message, to keep $0 and so on meaningful, and to
  14032. # report actual input values of CONFIG_FILES etc. instead of their
  14033. # values after options handling.
  14034. ac_log="
  14035. This file was extended by aria2 $as_me 1.9.1, which was
  14036. generated by GNU Autoconf 2.65. Invocation command line was
  14037. CONFIG_FILES = $CONFIG_FILES
  14038. CONFIG_HEADERS = $CONFIG_HEADERS
  14039. CONFIG_LINKS = $CONFIG_LINKS
  14040. CONFIG_COMMANDS = $CONFIG_COMMANDS
  14041. $ $0 $@
  14042. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  14043. "
  14044. _ACEOF
  14045. case $ac_config_files in *"
  14046. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  14047. esac
  14048. case $ac_config_headers in *"
  14049. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  14050. esac
  14051. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14052. # Files that config.status was made for.
  14053. config_files="$ac_config_files"
  14054. config_headers="$ac_config_headers"
  14055. config_commands="$ac_config_commands"
  14056. _ACEOF
  14057. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14058. ac_cs_usage="\
  14059. \`$as_me' instantiates files and other configuration actions
  14060. from templates according to the current configuration. Unless the files
  14061. and actions are specified as TAGs, all are instantiated by default.
  14062. Usage: $0 [OPTION]... [TAG]...
  14063. -h, --help print this help, then exit
  14064. -V, --version print version number and configuration settings, then exit
  14065. --config print configuration, then exit
  14066. -q, --quiet, --silent
  14067. do not print progress messages
  14068. -d, --debug don't remove temporary files
  14069. --recheck update $as_me by reconfiguring in the same conditions
  14070. --file=FILE[:TEMPLATE]
  14071. instantiate the configuration file FILE
  14072. --header=FILE[:TEMPLATE]
  14073. instantiate the configuration header FILE
  14074. Configuration files:
  14075. $config_files
  14076. Configuration headers:
  14077. $config_headers
  14078. Configuration commands:
  14079. $config_commands
  14080. Report bugs to <t-tujikawa@users.sourceforge.net>.
  14081. aria2 home page: <http://aria2.sourceforge.net/>."
  14082. _ACEOF
  14083. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14084. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  14085. ac_cs_version="\\
  14086. aria2 config.status 1.9.1
  14087. configured by $0, generated by GNU Autoconf 2.65,
  14088. with options \\"\$ac_cs_config\\"
  14089. Copyright (C) 2009 Free Software Foundation, Inc.
  14090. This config.status script is free software; the Free Software Foundation
  14091. gives unlimited permission to copy, distribute and modify it."
  14092. ac_pwd='$ac_pwd'
  14093. srcdir='$srcdir'
  14094. INSTALL='$INSTALL'
  14095. MKDIR_P='$MKDIR_P'
  14096. AWK='$AWK'
  14097. test -n "\$AWK" || AWK=awk
  14098. _ACEOF
  14099. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14100. # The default lists apply if the user does not specify any file.
  14101. ac_need_defaults=:
  14102. while test $# != 0
  14103. do
  14104. case $1 in
  14105. --*=*)
  14106. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  14107. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  14108. ac_shift=:
  14109. ;;
  14110. *)
  14111. ac_option=$1
  14112. ac_optarg=$2
  14113. ac_shift=shift
  14114. ;;
  14115. esac
  14116. case $ac_option in
  14117. # Handling of the options.
  14118. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  14119. ac_cs_recheck=: ;;
  14120. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  14121. $as_echo "$ac_cs_version"; exit ;;
  14122. --config | --confi | --conf | --con | --co | --c )
  14123. $as_echo "$ac_cs_config"; exit ;;
  14124. --debug | --debu | --deb | --de | --d | -d )
  14125. debug=: ;;
  14126. --file | --fil | --fi | --f )
  14127. $ac_shift
  14128. case $ac_optarg in
  14129. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14130. esac
  14131. as_fn_append CONFIG_FILES " '$ac_optarg'"
  14132. ac_need_defaults=false;;
  14133. --header | --heade | --head | --hea )
  14134. $ac_shift
  14135. case $ac_optarg in
  14136. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14137. esac
  14138. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  14139. ac_need_defaults=false;;
  14140. --he | --h)
  14141. # Conflict between --help and --header
  14142. as_fn_error "ambiguous option: \`$1'
  14143. Try \`$0 --help' for more information.";;
  14144. --help | --hel | -h )
  14145. $as_echo "$ac_cs_usage"; exit ;;
  14146. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  14147. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  14148. ac_cs_silent=: ;;
  14149. # This is an error.
  14150. -*) as_fn_error "unrecognized option: \`$1'
  14151. Try \`$0 --help' for more information." ;;
  14152. *) as_fn_append ac_config_targets " $1"
  14153. ac_need_defaults=false ;;
  14154. esac
  14155. shift
  14156. done
  14157. ac_configure_extra_args=
  14158. if $ac_cs_silent; then
  14159. exec 6>/dev/null
  14160. ac_configure_extra_args="$ac_configure_extra_args --silent"
  14161. fi
  14162. _ACEOF
  14163. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14164. if \$ac_cs_recheck; then
  14165. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  14166. shift
  14167. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  14168. CONFIG_SHELL='$SHELL'
  14169. export CONFIG_SHELL
  14170. exec "\$@"
  14171. fi
  14172. _ACEOF
  14173. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14174. exec 5>>config.log
  14175. {
  14176. echo
  14177. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  14178. ## Running $as_me. ##
  14179. _ASBOX
  14180. $as_echo "$ac_log"
  14181. } >&5
  14182. _ACEOF
  14183. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14184. #
  14185. # INIT-COMMANDS
  14186. #
  14187. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  14188. # Capture the value of obsolete ALL_LINGUAS because we need it to compute
  14189. # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
  14190. # from automake < 1.5.
  14191. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
  14192. # Capture the value of LINGUAS because we need it to compute CATALOGS.
  14193. LINGUAS="${LINGUAS-%UNSET%}"
  14194. _ACEOF
  14195. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14196. # Handling of arguments.
  14197. for ac_config_target in $ac_config_targets
  14198. do
  14199. case $ac_config_target in
  14200. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  14201. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  14202. "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
  14203. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  14204. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  14205. "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  14206. "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
  14207. "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
  14208. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  14209. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  14210. *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  14211. esac
  14212. done
  14213. # If the user did not use the arguments to specify the items to instantiate,
  14214. # then the envvar interface is used. Set only those that are not.
  14215. # We use the long form for the default assignment because of an extremely
  14216. # bizarre bug on SunOS 4.1.3.
  14217. if $ac_need_defaults; then
  14218. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  14219. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  14220. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  14221. fi
  14222. # Have a temporary directory for convenience. Make it in the build tree
  14223. # simply because there is no reason against having it here, and in addition,
  14224. # creating and moving files from /tmp can sometimes cause problems.
  14225. # Hook for its removal unless debugging.
  14226. # Note that there is a small window in which the directory will not be cleaned:
  14227. # after its creation but before its name has been assigned to `$tmp'.
  14228. $debug ||
  14229. {
  14230. tmp=
  14231. trap 'exit_status=$?
  14232. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  14233. ' 0
  14234. trap 'as_fn_exit 1' 1 2 13 15
  14235. }
  14236. # Create a (secure) tmp directory for tmp files.
  14237. {
  14238. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  14239. test -n "$tmp" && test -d "$tmp"
  14240. } ||
  14241. {
  14242. tmp=./conf$$-$RANDOM
  14243. (umask 077 && mkdir "$tmp")
  14244. } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  14245. # Set up the scripts for CONFIG_FILES section.
  14246. # No need to generate them if there are no CONFIG_FILES.
  14247. # This happens for instance with `./config.status config.h'.
  14248. if test -n "$CONFIG_FILES"; then
  14249. ac_cr=`echo X | tr X '\015'`
  14250. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  14251. # But we know of no other shell where ac_cr would be empty at this
  14252. # point, so we can use a bashism as a fallback.
  14253. if test "x$ac_cr" = x; then
  14254. eval ac_cr=\$\'\\r\'
  14255. fi
  14256. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  14257. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  14258. ac_cs_awk_cr='\r'
  14259. else
  14260. ac_cs_awk_cr=$ac_cr
  14261. fi
  14262. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  14263. _ACEOF
  14264. {
  14265. echo "cat >conf$$subs.awk <<_ACEOF" &&
  14266. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  14267. echo "_ACEOF"
  14268. } >conf$$subs.sh ||
  14269. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  14270. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  14271. ac_delim='%!_!# '
  14272. for ac_last_try in false false false false false :; do
  14273. . ./conf$$subs.sh ||
  14274. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  14275. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  14276. if test $ac_delim_n = $ac_delim_num; then
  14277. break
  14278. elif $ac_last_try; then
  14279. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  14280. else
  14281. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  14282. fi
  14283. done
  14284. rm -f conf$$subs.sh
  14285. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14286. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  14287. _ACEOF
  14288. sed -n '
  14289. h
  14290. s/^/S["/; s/!.*/"]=/
  14291. p
  14292. g
  14293. s/^[^!]*!//
  14294. :repl
  14295. t repl
  14296. s/'"$ac_delim"'$//
  14297. t delim
  14298. :nl
  14299. h
  14300. s/\(.\{148\}\)..*/\1/
  14301. t more1
  14302. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  14303. p
  14304. n
  14305. b repl
  14306. :more1
  14307. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14308. p
  14309. g
  14310. s/.\{148\}//
  14311. t nl
  14312. :delim
  14313. h
  14314. s/\(.\{148\}\)..*/\1/
  14315. t more2
  14316. s/["\\]/\\&/g; s/^/"/; s/$/"/
  14317. p
  14318. b
  14319. :more2
  14320. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14321. p
  14322. g
  14323. s/.\{148\}//
  14324. t delim
  14325. ' <conf$$subs.awk | sed '
  14326. /^[^""]/{
  14327. N
  14328. s/\n//
  14329. }
  14330. ' >>$CONFIG_STATUS || ac_write_fail=1
  14331. rm -f conf$$subs.awk
  14332. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14333. _ACAWK
  14334. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  14335. for (key in S) S_is_set[key] = 1
  14336. FS = ""
  14337. }
  14338. {
  14339. line = $ 0
  14340. nfields = split(line, field, "@")
  14341. substed = 0
  14342. len = length(field[1])
  14343. for (i = 2; i < nfields; i++) {
  14344. key = field[i]
  14345. keylen = length(key)
  14346. if (S_is_set[key]) {
  14347. value = S[key]
  14348. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  14349. len += length(value) + length(field[++i])
  14350. substed = 1
  14351. } else
  14352. len += 1 + keylen
  14353. }
  14354. print line
  14355. }
  14356. _ACAWK
  14357. _ACEOF
  14358. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14359. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  14360. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  14361. else
  14362. cat
  14363. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  14364. || as_fn_error "could not setup config files machinery" "$LINENO" 5
  14365. _ACEOF
  14366. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  14367. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  14368. # trailing colons and then remove the whole line if VPATH becomes empty
  14369. # (actually we leave an empty line to preserve line numbers).
  14370. if test "x$srcdir" = x.; then
  14371. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  14372. s/:*\$(srcdir):*/:/
  14373. s/:*\${srcdir}:*/:/
  14374. s/:*@srcdir@:*/:/
  14375. s/^\([^=]*=[ ]*\):*/\1/
  14376. s/:*$//
  14377. s/^[^=]*=[ ]*$//
  14378. }'
  14379. fi
  14380. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14381. fi # test -n "$CONFIG_FILES"
  14382. # Set up the scripts for CONFIG_HEADERS section.
  14383. # No need to generate them if there are no CONFIG_HEADERS.
  14384. # This happens for instance with `./config.status Makefile'.
  14385. if test -n "$CONFIG_HEADERS"; then
  14386. cat >"$tmp/defines.awk" <<\_ACAWK ||
  14387. BEGIN {
  14388. _ACEOF
  14389. # Transform confdefs.h into an awk script `defines.awk', embedded as
  14390. # here-document in config.status, that substitutes the proper values into
  14391. # config.h.in to produce config.h.
  14392. # Create a delimiter string that does not exist in confdefs.h, to ease
  14393. # handling of long lines.
  14394. ac_delim='%!_!# '
  14395. for ac_last_try in false false :; do
  14396. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  14397. if test -z "$ac_t"; then
  14398. break
  14399. elif $ac_last_try; then
  14400. as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  14401. else
  14402. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  14403. fi
  14404. done
  14405. # For the awk script, D is an array of macro values keyed by name,
  14406. # likewise P contains macro parameters if any. Preserve backslash
  14407. # newline sequences.
  14408. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  14409. sed -n '
  14410. s/.\{148\}/&'"$ac_delim"'/g
  14411. t rset
  14412. :rset
  14413. s/^[ ]*#[ ]*define[ ][ ]*/ /
  14414. t def
  14415. d
  14416. :def
  14417. s/\\$//
  14418. t bsnl
  14419. s/["\\]/\\&/g
  14420. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  14421. D["\1"]=" \3"/p
  14422. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  14423. d
  14424. :bsnl
  14425. s/["\\]/\\&/g
  14426. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  14427. D["\1"]=" \3\\\\\\n"\\/p
  14428. t cont
  14429. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  14430. t cont
  14431. d
  14432. :cont
  14433. n
  14434. s/.\{148\}/&'"$ac_delim"'/g
  14435. t clear
  14436. :clear
  14437. s/\\$//
  14438. t bsnlc
  14439. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  14440. d
  14441. :bsnlc
  14442. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  14443. b cont
  14444. ' <confdefs.h | sed '
  14445. s/'"$ac_delim"'/"\\\
  14446. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  14447. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14448. for (key in D) D_is_set[key] = 1
  14449. FS = ""
  14450. }
  14451. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  14452. line = \$ 0
  14453. split(line, arg, " ")
  14454. if (arg[1] == "#") {
  14455. defundef = arg[2]
  14456. mac1 = arg[3]
  14457. } else {
  14458. defundef = substr(arg[1], 2)
  14459. mac1 = arg[2]
  14460. }
  14461. split(mac1, mac2, "(") #)
  14462. macro = mac2[1]
  14463. prefix = substr(line, 1, index(line, defundef) - 1)
  14464. if (D_is_set[macro]) {
  14465. # Preserve the white space surrounding the "#".
  14466. print prefix "define", macro P[macro] D[macro]
  14467. next
  14468. } else {
  14469. # Replace #undef with comments. This is necessary, for example,
  14470. # in the case of _POSIX_SOURCE, which is predefined and required
  14471. # on some systems where configure will not decide to define it.
  14472. if (defundef == "undef") {
  14473. print "/*", prefix defundef, macro, "*/"
  14474. next
  14475. }
  14476. }
  14477. }
  14478. { print }
  14479. _ACAWK
  14480. _ACEOF
  14481. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14482. as_fn_error "could not setup config headers machinery" "$LINENO" 5
  14483. fi # test -n "$CONFIG_HEADERS"
  14484. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  14485. shift
  14486. for ac_tag
  14487. do
  14488. case $ac_tag in
  14489. :[FHLC]) ac_mode=$ac_tag; continue;;
  14490. esac
  14491. case $ac_mode$ac_tag in
  14492. :[FHL]*:*);;
  14493. :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  14494. :[FH]-) ac_tag=-:-;;
  14495. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  14496. esac
  14497. ac_save_IFS=$IFS
  14498. IFS=:
  14499. set x $ac_tag
  14500. IFS=$ac_save_IFS
  14501. shift
  14502. ac_file=$1
  14503. shift
  14504. case $ac_mode in
  14505. :L) ac_source=$1;;
  14506. :[FH])
  14507. ac_file_inputs=
  14508. for ac_f
  14509. do
  14510. case $ac_f in
  14511. -) ac_f="$tmp/stdin";;
  14512. *) # Look for the file first in the build tree, then in the source tree
  14513. # (if the path is not absolute). The absolute path cannot be DOS-style,
  14514. # because $ac_f cannot contain `:'.
  14515. test -f "$ac_f" ||
  14516. case $ac_f in
  14517. [\\/$]*) false;;
  14518. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  14519. esac ||
  14520. as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  14521. esac
  14522. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  14523. as_fn_append ac_file_inputs " '$ac_f'"
  14524. done
  14525. # Let's still pretend it is `configure' which instantiates (i.e., don't
  14526. # use $as_me), people would be surprised to read:
  14527. # /* config.h. Generated by config.status. */
  14528. configure_input='Generated from '`
  14529. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  14530. `' by configure.'
  14531. if test x"$ac_file" != x-; then
  14532. configure_input="$ac_file. $configure_input"
  14533. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  14534. $as_echo "$as_me: creating $ac_file" >&6;}
  14535. fi
  14536. # Neutralize special characters interpreted by sed in replacement strings.
  14537. case $configure_input in #(
  14538. *\&* | *\|* | *\\* )
  14539. ac_sed_conf_input=`$as_echo "$configure_input" |
  14540. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  14541. *) ac_sed_conf_input=$configure_input;;
  14542. esac
  14543. case $ac_tag in
  14544. *:-:* | *:-) cat >"$tmp/stdin" \
  14545. || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  14546. esac
  14547. ;;
  14548. esac
  14549. ac_dir=`$as_dirname -- "$ac_file" ||
  14550. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14551. X"$ac_file" : 'X\(//\)[^/]' \| \
  14552. X"$ac_file" : 'X\(//\)$' \| \
  14553. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  14554. $as_echo X"$ac_file" |
  14555. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14556. s//\1/
  14557. q
  14558. }
  14559. /^X\(\/\/\)[^/].*/{
  14560. s//\1/
  14561. q
  14562. }
  14563. /^X\(\/\/\)$/{
  14564. s//\1/
  14565. q
  14566. }
  14567. /^X\(\/\).*/{
  14568. s//\1/
  14569. q
  14570. }
  14571. s/.*/./; q'`
  14572. as_dir="$ac_dir"; as_fn_mkdir_p
  14573. ac_builddir=.
  14574. case "$ac_dir" in
  14575. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14576. *)
  14577. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  14578. # A ".." for each directory in $ac_dir_suffix.
  14579. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  14580. case $ac_top_builddir_sub in
  14581. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14582. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  14583. esac ;;
  14584. esac
  14585. ac_abs_top_builddir=$ac_pwd
  14586. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  14587. # for backward compatibility:
  14588. ac_top_builddir=$ac_top_build_prefix
  14589. case $srcdir in
  14590. .) # We are building in place.
  14591. ac_srcdir=.
  14592. ac_top_srcdir=$ac_top_builddir_sub
  14593. ac_abs_top_srcdir=$ac_pwd ;;
  14594. [\\/]* | ?:[\\/]* ) # Absolute name.
  14595. ac_srcdir=$srcdir$ac_dir_suffix;
  14596. ac_top_srcdir=$srcdir
  14597. ac_abs_top_srcdir=$srcdir ;;
  14598. *) # Relative name.
  14599. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  14600. ac_top_srcdir=$ac_top_build_prefix$srcdir
  14601. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  14602. esac
  14603. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  14604. case $ac_mode in
  14605. :F)
  14606. #
  14607. # CONFIG_FILE
  14608. #
  14609. case $INSTALL in
  14610. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  14611. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  14612. esac
  14613. ac_MKDIR_P=$MKDIR_P
  14614. case $MKDIR_P in
  14615. [\\/$]* | ?:[\\/]* ) ;;
  14616. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  14617. esac
  14618. _ACEOF
  14619. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14620. # If the template does not know about datarootdir, expand it.
  14621. # FIXME: This hack should be removed a few years after 2.60.
  14622. ac_datarootdir_hack=; ac_datarootdir_seen=
  14623. ac_sed_dataroot='
  14624. /datarootdir/ {
  14625. p
  14626. q
  14627. }
  14628. /@datadir@/p
  14629. /@docdir@/p
  14630. /@infodir@/p
  14631. /@localedir@/p
  14632. /@mandir@/p'
  14633. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  14634. *datarootdir*) ac_datarootdir_seen=yes;;
  14635. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  14636. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  14637. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  14638. _ACEOF
  14639. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14640. ac_datarootdir_hack='
  14641. s&@datadir@&$datadir&g
  14642. s&@docdir@&$docdir&g
  14643. s&@infodir@&$infodir&g
  14644. s&@localedir@&$localedir&g
  14645. s&@mandir@&$mandir&g
  14646. s&\\\${datarootdir}&$datarootdir&g' ;;
  14647. esac
  14648. _ACEOF
  14649. # Neutralize VPATH when `$srcdir' = `.'.
  14650. # Shell code in configure.ac might set extrasub.
  14651. # FIXME: do we really want to maintain this feature?
  14652. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14653. ac_sed_extra="$ac_vpsub
  14654. $extrasub
  14655. _ACEOF
  14656. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14657. :t
  14658. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  14659. s|@configure_input@|$ac_sed_conf_input|;t t
  14660. s&@top_builddir@&$ac_top_builddir_sub&;t t
  14661. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  14662. s&@srcdir@&$ac_srcdir&;t t
  14663. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  14664. s&@top_srcdir@&$ac_top_srcdir&;t t
  14665. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  14666. s&@builddir@&$ac_builddir&;t t
  14667. s&@abs_builddir@&$ac_abs_builddir&;t t
  14668. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  14669. s&@INSTALL@&$ac_INSTALL&;t t
  14670. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  14671. $ac_datarootdir_hack
  14672. "
  14673. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  14674. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14675. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  14676. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  14677. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  14678. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14679. which seems to be undefined. Please make sure it is defined." >&5
  14680. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14681. which seems to be undefined. Please make sure it is defined." >&2;}
  14682. rm -f "$tmp/stdin"
  14683. case $ac_file in
  14684. -) cat "$tmp/out" && rm -f "$tmp/out";;
  14685. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  14686. esac \
  14687. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14688. ;;
  14689. :H)
  14690. #
  14691. # CONFIG_HEADER
  14692. #
  14693. if test x"$ac_file" != x-; then
  14694. {
  14695. $as_echo "/* $configure_input */" \
  14696. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  14697. } >"$tmp/config.h" \
  14698. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14699. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  14700. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  14701. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  14702. else
  14703. rm -f "$ac_file"
  14704. mv "$tmp/config.h" "$ac_file" \
  14705. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14706. fi
  14707. else
  14708. $as_echo "/* $configure_input */" \
  14709. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  14710. || as_fn_error "could not create -" "$LINENO" 5
  14711. fi
  14712. # Compute "$ac_file"'s index in $config_headers.
  14713. _am_arg="$ac_file"
  14714. _am_stamp_count=1
  14715. for _am_header in $config_headers :; do
  14716. case $_am_header in
  14717. $_am_arg | $_am_arg:* )
  14718. break ;;
  14719. * )
  14720. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  14721. esac
  14722. done
  14723. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  14724. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14725. X"$_am_arg" : 'X\(//\)[^/]' \| \
  14726. X"$_am_arg" : 'X\(//\)$' \| \
  14727. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  14728. $as_echo X"$_am_arg" |
  14729. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14730. s//\1/
  14731. q
  14732. }
  14733. /^X\(\/\/\)[^/].*/{
  14734. s//\1/
  14735. q
  14736. }
  14737. /^X\(\/\/\)$/{
  14738. s//\1/
  14739. q
  14740. }
  14741. /^X\(\/\).*/{
  14742. s//\1/
  14743. q
  14744. }
  14745. s/.*/./; q'`/stamp-h$_am_stamp_count
  14746. ;;
  14747. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  14748. $as_echo "$as_me: executing $ac_file commands" >&6;}
  14749. ;;
  14750. esac
  14751. case $ac_file$ac_mode in
  14752. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  14753. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  14754. # are listed without --file. Let's play safe and only enable the eval
  14755. # if we detect the quoting.
  14756. case $CONFIG_FILES in
  14757. *\'*) eval set x "$CONFIG_FILES" ;;
  14758. *) set x $CONFIG_FILES ;;
  14759. esac
  14760. shift
  14761. for mf
  14762. do
  14763. # Strip MF so we end up with the name of the file.
  14764. mf=`echo "$mf" | sed -e 's/:.*$//'`
  14765. # Check whether this is an Automake generated Makefile or not.
  14766. # We used to match only the files named `Makefile.in', but
  14767. # some people rename them; so instead we look at the file content.
  14768. # Grep'ing the first line is not enough: some people post-process
  14769. # each Makefile.in and add a new line on top of each file to say so.
  14770. # Grep'ing the whole file is not good either: AIX grep has a line
  14771. # limit of 2048, but all sed's we know have understand at least 4000.
  14772. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  14773. dirpart=`$as_dirname -- "$mf" ||
  14774. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14775. X"$mf" : 'X\(//\)[^/]' \| \
  14776. X"$mf" : 'X\(//\)$' \| \
  14777. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  14778. $as_echo X"$mf" |
  14779. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14780. s//\1/
  14781. q
  14782. }
  14783. /^X\(\/\/\)[^/].*/{
  14784. s//\1/
  14785. q
  14786. }
  14787. /^X\(\/\/\)$/{
  14788. s//\1/
  14789. q
  14790. }
  14791. /^X\(\/\).*/{
  14792. s//\1/
  14793. q
  14794. }
  14795. s/.*/./; q'`
  14796. else
  14797. continue
  14798. fi
  14799. # Extract the definition of DEPDIR, am__include, and am__quote
  14800. # from the Makefile without running `make'.
  14801. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  14802. test -z "$DEPDIR" && continue
  14803. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  14804. test -z "am__include" && continue
  14805. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  14806. # When using ansi2knr, U may be empty or an underscore; expand it
  14807. U=`sed -n 's/^U = //p' < "$mf"`
  14808. # Find all dependency output files, they are included files with
  14809. # $(DEPDIR) in their names. We invoke sed twice because it is the
  14810. # simplest approach to changing $(DEPDIR) to its actual value in the
  14811. # expansion.
  14812. for file in `sed -n "
  14813. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  14814. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  14815. # Make sure the directory exists.
  14816. test -f "$dirpart/$file" && continue
  14817. fdir=`$as_dirname -- "$file" ||
  14818. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14819. X"$file" : 'X\(//\)[^/]' \| \
  14820. X"$file" : 'X\(//\)$' \| \
  14821. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  14822. $as_echo X"$file" |
  14823. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14824. s//\1/
  14825. q
  14826. }
  14827. /^X\(\/\/\)[^/].*/{
  14828. s//\1/
  14829. q
  14830. }
  14831. /^X\(\/\/\)$/{
  14832. s//\1/
  14833. q
  14834. }
  14835. /^X\(\/\).*/{
  14836. s//\1/
  14837. q
  14838. }
  14839. s/.*/./; q'`
  14840. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  14841. # echo "creating $dirpart/$file"
  14842. echo '# dummy' > "$dirpart/$file"
  14843. done
  14844. done
  14845. }
  14846. ;;
  14847. "po-directories":C)
  14848. for ac_file in $CONFIG_FILES; do
  14849. # Support "outfile[:infile[:infile...]]"
  14850. case "$ac_file" in
  14851. *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  14852. esac
  14853. # PO directories have a Makefile.in generated from Makefile.in.in.
  14854. case "$ac_file" in */Makefile.in)
  14855. # Adjust a relative srcdir.
  14856. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  14857. ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
  14858. ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  14859. # In autoconf-2.13 it is called $ac_given_srcdir.
  14860. # In autoconf-2.50 it is called $srcdir.
  14861. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  14862. case "$ac_given_srcdir" in
  14863. .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  14864. /*) top_srcdir="$ac_given_srcdir" ;;
  14865. *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
  14866. esac
  14867. # Treat a directory as a PO directory if and only if it has a
  14868. # POTFILES.in file. This allows packages to have multiple PO
  14869. # directories under different names or in different locations.
  14870. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
  14871. rm -f "$ac_dir/POTFILES"
  14872. test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
  14873. cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
  14874. POMAKEFILEDEPS="POTFILES.in"
  14875. # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
  14876. # on $ac_dir but don't depend on user-specified configuration
  14877. # parameters.
  14878. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  14879. # The LINGUAS file contains the set of available languages.
  14880. if test -n "$OBSOLETE_ALL_LINGUAS"; then
  14881. test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
  14882. fi
  14883. ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  14884. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  14885. eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  14886. POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  14887. else
  14888. # The set of available languages was given in configure.in.
  14889. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  14890. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
  14891. fi
  14892. # Compute POFILES
  14893. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
  14894. # Compute UPDATEPOFILES
  14895. # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
  14896. # Compute DUMMYPOFILES
  14897. # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
  14898. # Compute GMOFILES
  14899. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
  14900. case "$ac_given_srcdir" in
  14901. .) srcdirpre= ;;
  14902. *) srcdirpre='$(srcdir)/' ;;
  14903. esac
  14904. POFILES=
  14905. UPDATEPOFILES=
  14906. DUMMYPOFILES=
  14907. GMOFILES=
  14908. for lang in $ALL_LINGUAS; do
  14909. POFILES="$POFILES $srcdirpre$lang.po"
  14910. UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  14911. DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  14912. GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  14913. done
  14914. # CATALOGS depends on both $ac_dir and the user's LINGUAS
  14915. # environment variable.
  14916. INST_LINGUAS=
  14917. if test -n "$ALL_LINGUAS"; then
  14918. for presentlang in $ALL_LINGUAS; do
  14919. useit=no
  14920. if test "%UNSET%" != "$LINGUAS"; then
  14921. desiredlanguages="$LINGUAS"
  14922. else
  14923. desiredlanguages="$ALL_LINGUAS"
  14924. fi
  14925. for desiredlang in $desiredlanguages; do
  14926. # Use the presentlang catalog if desiredlang is
  14927. # a. equal to presentlang, or
  14928. # b. a variant of presentlang (because in this case,
  14929. # presentlang can be used as a fallback for messages
  14930. # which are not translated in the desiredlang catalog).
  14931. case "$desiredlang" in
  14932. "$presentlang"*) useit=yes;;
  14933. esac
  14934. done
  14935. if test $useit = yes; then
  14936. INST_LINGUAS="$INST_LINGUAS $presentlang"
  14937. fi
  14938. done
  14939. fi
  14940. CATALOGS=
  14941. if test -n "$INST_LINGUAS"; then
  14942. for lang in $INST_LINGUAS; do
  14943. CATALOGS="$CATALOGS $lang.gmo"
  14944. done
  14945. fi
  14946. test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
  14947. 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"
  14948. for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
  14949. if test -f "$f"; then
  14950. case "$f" in
  14951. *.orig | *.bak | *~) ;;
  14952. *) cat "$f" >> "$ac_dir/Makefile" ;;
  14953. esac
  14954. fi
  14955. done
  14956. fi
  14957. ;;
  14958. esac
  14959. done ;;
  14960. esac
  14961. done # for ac_tag
  14962. as_fn_exit 0
  14963. _ACEOF
  14964. ac_clean_files=$ac_clean_files_save
  14965. test $ac_write_fail = 0 ||
  14966. as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  14967. # configure is writing to config.log, and then calls config.status.
  14968. # config.status does its own redirection, appending to config.log.
  14969. # Unfortunately, on DOS this fails, as config.log is still kept open
  14970. # by configure, so config.status won't be able to write to it; its
  14971. # output is simply discarded. So we exec the FD to /dev/null,
  14972. # effectively closing config.log, so it can be properly (re)opened and
  14973. # appended to by config.status. When coming back to configure, we
  14974. # need to make the FD available again.
  14975. if test "$no_create" != yes; then
  14976. ac_cs_success=:
  14977. ac_config_status_args=
  14978. test "$silent" = yes &&
  14979. ac_config_status_args="$ac_config_status_args --quiet"
  14980. exec 5>/dev/null
  14981. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  14982. exec 5>>config.log
  14983. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  14984. # would make configure fail if this is the last instruction.
  14985. $ac_cs_success || as_fn_exit $?
  14986. fi
  14987. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  14988. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  14989. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  14990. fi
  14991. echo " "
  14992. echo "Build: $build"
  14993. echo "Target: $target"
  14994. echo "Install prefix: $prefix"
  14995. echo "CXXFLAGS: $CXXFLAGS"
  14996. echo "CFLAGS: $CFLAGS"
  14997. echo "CPPFLAGS: $CPPFLAGS"
  14998. echo "LDFLAGS: $LDFLAGS"
  14999. echo "LIBS: $LIBS"
  15000. echo "SQLite3: $have_sqlite3"
  15001. echo "GnuTLS: $have_libgnutls"
  15002. echo "OpenSSL: $have_openssl"
  15003. echo "CA Bundle: $ca_bundle"
  15004. echo "LibXML2: $have_libxml2"
  15005. echo "LibExpat: $have_libexpat"
  15006. echo "LibCares: $have_libcares"
  15007. echo "Libz: $have_libz"
  15008. echo "Epoll: $have_epoll"
  15009. echo "Bittorrent: $enable_bittorrent"
  15010. echo "Metalink: $enable_metalink"
  15011. echo "XML-RPC: $enable_xml_rpc"