configure 479 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967
  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_POLL_FALSE
  557. HAVE_POLL_TRUE
  558. HAVE_MACH_ABSOLUTE_TIME_FALSE
  559. HAVE_MACH_ABSOLUTE_TIME_TRUE
  560. HAVE_DAEMON_FALSE
  561. HAVE_DAEMON_TRUE
  562. HAVE_TIMEGM_FALSE
  563. HAVE_TIMEGM_TRUE
  564. HAVE_STRPTIME_FALSE
  565. HAVE_STRPTIME_TRUE
  566. HAVE_LOCALTIME_R_FALSE
  567. HAVE_LOCALTIME_R_TRUE
  568. HAVE_INET_ATON_FALSE
  569. HAVE_INET_ATON_TRUE
  570. HAVE_GETTIMEOFDAY_FALSE
  571. HAVE_GETTIMEOFDAY_TRUE
  572. HAVE_GETADDRINFO_FALSE
  573. HAVE_GETADDRINFO_TRUE
  574. HAVE_GAI_STRERROR_FALSE
  575. HAVE_GAI_STRERROR_TRUE
  576. HAVE_BASENAME_FALSE
  577. HAVE_BASENAME_TRUE
  578. HAVE_ASCTIME_R_FALSE
  579. HAVE_ASCTIME_R_TRUE
  580. HAVE_POSIX_FALLOCATE_FALSE
  581. HAVE_POSIX_FALLOCATE_TRUE
  582. HAVE_EPOLL_FALSE
  583. HAVE_EPOLL_TRUE
  584. POW_LIB
  585. LIBOBJS
  586. POSUB
  587. LTLIBINTL
  588. LIBINTL
  589. INTLLIBS
  590. INTL_LIBTOOL_SUFFIX_PREFIX
  591. INTLOBJS
  592. GENCAT
  593. INSTOBJEXT
  594. DATADIRNAME
  595. CATOBJEXT
  596. USE_INCLUDED_LIBINTL
  597. BUILD_INCLUDED_LIBINTL
  598. LTLIBC
  599. WINDRES
  600. WOE32
  601. WOE32DLL
  602. HAVE_WPRINTF
  603. HAVE_SNPRINTF
  604. HAVE_ASPRINTF
  605. HAVE_POSIX_PRINTF
  606. INTL_MACOSX_LIBS
  607. GLIBC21
  608. INTLBISON
  609. LTLIBICONV
  610. LIBICONV
  611. LTLIBMULTITHREAD
  612. LIBMULTITHREAD
  613. LTLIBTHREAD
  614. LIBTHREAD
  615. LIBPTH_PREFIX
  616. LTLIBPTH
  617. LIBPTH
  618. PRI_MACROS_BROKEN
  619. HAVE_VISIBILITY
  620. CFLAG_VISIBILITY
  621. GLIBC2
  622. XGETTEXT_EXTRA_OPTIONS
  623. MSGMERGE
  624. XGETTEXT_015
  625. XGETTEXT
  626. GMSGFMT_015
  627. MSGFMT_015
  628. GMSGFMT
  629. MSGFMT
  630. GETTEXT_MACRO_VERSION
  631. USE_NLS
  632. ALLOCA
  633. HAVE_SQLITE3_FALSE
  634. HAVE_SQLITE3_TRUE
  635. HAVE_LIBZ_FALSE
  636. HAVE_LIBZ_TRUE
  637. ENABLE_ASYNC_DNS_FALSE
  638. ENABLE_ASYNC_DNS_TRUE
  639. HAVE_LIBEXPAT_FALSE
  640. HAVE_LIBEXPAT_TRUE
  641. HAVE_LIBXML2_FALSE
  642. HAVE_LIBXML2_TRUE
  643. ENABLE_XML_RPC_FALSE
  644. ENABLE_XML_RPC_TRUE
  645. ENABLE_METALINK_LIBEXPAT_FALSE
  646. ENABLE_METALINK_LIBEXPAT_TRUE
  647. ENABLE_METALINK_LIBXML2_FALSE
  648. ENABLE_METALINK_LIBXML2_TRUE
  649. ENABLE_METALINK_FALSE
  650. ENABLE_METALINK_TRUE
  651. ENABLE_BITTORRENT_FALSE
  652. ENABLE_BITTORRENT_TRUE
  653. ENABLE_MESSAGE_DIGEST_FALSE
  654. ENABLE_MESSAGE_DIGEST_TRUE
  655. HAVE_LIBSSL_FALSE
  656. HAVE_LIBSSL_TRUE
  657. HAVE_LIBGNUTLS_FALSE
  658. HAVE_LIBGNUTLS_TRUE
  659. ca_bundle
  660. ENABLE_SSL_FALSE
  661. ENABLE_SSL_TRUE
  662. LIBZ_CPPFLAGS
  663. LIBZ_LIBS
  664. LIBCARES_CPPFLAGS
  665. LIBCARES_LIBS
  666. OPENSSL_CFLAGS
  667. OPENSSL_LIBS
  668. LIBGCRYPT_LIBS
  669. LIBGCRYPT_CFLAGS
  670. LIBGCRYPT_CONFIG
  671. LIBGNUTLS_CONFIG
  672. LIBGNUTLS_LIBS
  673. LIBGNUTLS_CFLAGS
  674. SQLITE3_LIBS
  675. SQLITE3_CFLAGS
  676. LIBEXPAT_CPPFLAGS
  677. LIBEXPAT_LIBS
  678. XML_LIBS
  679. XML_CPPFLAGS
  680. XML2_CONFIG
  681. PKG_CONFIG
  682. EGREP
  683. GREP
  684. CXXCPP
  685. YFLAGS
  686. YACC
  687. RANLIB
  688. am__fastdepCC_FALSE
  689. am__fastdepCC_TRUE
  690. CCDEPMODE
  691. ac_ct_CC
  692. CFLAGS
  693. CC
  694. am__fastdepCXX_FALSE
  695. am__fastdepCXX_TRUE
  696. CXXDEPMODE
  697. AMDEPBACKSLASH
  698. AMDEP_FALSE
  699. AMDEP_TRUE
  700. am__quote
  701. am__include
  702. DEPDIR
  703. OBJEXT
  704. EXEEXT
  705. ac_ct_CXX
  706. CPPFLAGS
  707. LDFLAGS
  708. CXXFLAGS
  709. CXX
  710. WINSOCK_LIBS
  711. CPPUNIT_LIBS
  712. CPPUNIT_CFLAGS
  713. CPPUNIT_CONFIG
  714. am__untar
  715. am__tar
  716. AMTAR
  717. am__leading_dot
  718. SET_MAKE
  719. AWK
  720. mkdir_p
  721. MKDIR_P
  722. INSTALL_STRIP_PROGRAM
  723. STRIP
  724. install_sh
  725. MAKEINFO
  726. AUTOHEADER
  727. AUTOMAKE
  728. AUTOCONF
  729. ACLOCAL
  730. VERSION
  731. PACKAGE
  732. CYGPATH_W
  733. am__isrc
  734. INSTALL_DATA
  735. INSTALL_SCRIPT
  736. INSTALL_PROGRAM
  737. target_os
  738. target_vendor
  739. target_cpu
  740. target
  741. host_os
  742. host_vendor
  743. host_cpu
  744. host
  745. build_os
  746. build_vendor
  747. build_cpu
  748. build
  749. target_alias
  750. host_alias
  751. build_alias
  752. LIBS
  753. ECHO_T
  754. ECHO_N
  755. ECHO_C
  756. DEFS
  757. mandir
  758. localedir
  759. libdir
  760. psdir
  761. pdfdir
  762. dvidir
  763. htmldir
  764. infodir
  765. docdir
  766. oldincludedir
  767. includedir
  768. localstatedir
  769. sharedstatedir
  770. sysconfdir
  771. datadir
  772. datarootdir
  773. libexecdir
  774. sbindir
  775. bindir
  776. program_transform_name
  777. prefix
  778. exec_prefix
  779. PACKAGE_URL
  780. PACKAGE_BUGREPORT
  781. PACKAGE_STRING
  782. PACKAGE_VERSION
  783. PACKAGE_TARNAME
  784. PACKAGE_NAME
  785. PATH_SEPARATOR
  786. SHELL'
  787. ac_subst_files=''
  788. ac_user_opts='
  789. enable_option_checking
  790. with_cppunit_prefix
  791. with_cppunit_exec_prefix
  792. with_gnutls
  793. with_openssl
  794. with_sqlite3
  795. with_libxml2
  796. with_libexpat
  797. with_libcares
  798. with_libz
  799. enable_bittorrent
  800. enable_metalink
  801. enable_epoll
  802. with_ca_bundle
  803. enable_dependency_tracking
  804. with_xml_prefix
  805. with_xml_exec_prefix
  806. enable_xmltest
  807. with_libexpat_prefix
  808. with_sqlite3_prefix
  809. with_libgnutls_prefix
  810. with_libgcrypt_prefix
  811. with_openssl_prefix
  812. with_libcares_prefix
  813. with_libz_prefix
  814. enable_largefile
  815. enable_nls
  816. enable_threads
  817. with_gnu_ld
  818. enable_rpath
  819. with_libpth_prefix
  820. with_libiconv_prefix
  821. with_included_gettext
  822. with_libintl_prefix
  823. '
  824. ac_precious_vars='build_alias
  825. host_alias
  826. target_alias
  827. CXX
  828. CXXFLAGS
  829. LDFLAGS
  830. LIBS
  831. CPPFLAGS
  832. CCC
  833. CC
  834. CFLAGS
  835. YACC
  836. YFLAGS
  837. CXXCPP
  838. PKG_CONFIG
  839. SQLITE3_CFLAGS
  840. SQLITE3_LIBS
  841. LIBGNUTLS_CFLAGS
  842. LIBGNUTLS_LIBS'
  843. # Initialize some variables set by options.
  844. ac_init_help=
  845. ac_init_version=false
  846. ac_unrecognized_opts=
  847. ac_unrecognized_sep=
  848. # The variables have the same names as the options, with
  849. # dashes changed to underlines.
  850. cache_file=/dev/null
  851. exec_prefix=NONE
  852. no_create=
  853. no_recursion=
  854. prefix=NONE
  855. program_prefix=NONE
  856. program_suffix=NONE
  857. program_transform_name=s,x,x,
  858. silent=
  859. site=
  860. srcdir=
  861. verbose=
  862. x_includes=NONE
  863. x_libraries=NONE
  864. # Installation directory options.
  865. # These are left unexpanded so users can "make install exec_prefix=/foo"
  866. # and all the variables that are supposed to be based on exec_prefix
  867. # by default will actually change.
  868. # Use braces instead of parens because sh, perl, etc. also accept them.
  869. # (The list follows the same order as the GNU Coding Standards.)
  870. bindir='${exec_prefix}/bin'
  871. sbindir='${exec_prefix}/sbin'
  872. libexecdir='${exec_prefix}/libexec'
  873. datarootdir='${prefix}/share'
  874. datadir='${datarootdir}'
  875. sysconfdir='${prefix}/etc'
  876. sharedstatedir='${prefix}/com'
  877. localstatedir='${prefix}/var'
  878. includedir='${prefix}/include'
  879. oldincludedir='/usr/include'
  880. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  881. infodir='${datarootdir}/info'
  882. htmldir='${docdir}'
  883. dvidir='${docdir}'
  884. pdfdir='${docdir}'
  885. psdir='${docdir}'
  886. libdir='${exec_prefix}/lib'
  887. localedir='${datarootdir}/locale'
  888. mandir='${datarootdir}/man'
  889. ac_prev=
  890. ac_dashdash=
  891. for ac_option
  892. do
  893. # If the previous option needs an argument, assign it.
  894. if test -n "$ac_prev"; then
  895. eval $ac_prev=\$ac_option
  896. ac_prev=
  897. continue
  898. fi
  899. case $ac_option in
  900. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  901. *) ac_optarg=yes ;;
  902. esac
  903. # Accept the important Cygnus configure options, so we can diagnose typos.
  904. case $ac_dashdash$ac_option in
  905. --)
  906. ac_dashdash=yes ;;
  907. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  908. ac_prev=bindir ;;
  909. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  910. bindir=$ac_optarg ;;
  911. -build | --build | --buil | --bui | --bu)
  912. ac_prev=build_alias ;;
  913. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  914. build_alias=$ac_optarg ;;
  915. -cache-file | --cache-file | --cache-fil | --cache-fi \
  916. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  917. ac_prev=cache_file ;;
  918. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  919. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  920. cache_file=$ac_optarg ;;
  921. --config-cache | -C)
  922. cache_file=config.cache ;;
  923. -datadir | --datadir | --datadi | --datad)
  924. ac_prev=datadir ;;
  925. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  926. datadir=$ac_optarg ;;
  927. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  928. | --dataroo | --dataro | --datar)
  929. ac_prev=datarootdir ;;
  930. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  931. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  932. datarootdir=$ac_optarg ;;
  933. -disable-* | --disable-*)
  934. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  935. # Reject names that are not valid shell variable names.
  936. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  937. as_fn_error "invalid feature name: $ac_useropt"
  938. ac_useropt_orig=$ac_useropt
  939. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  940. case $ac_user_opts in
  941. *"
  942. "enable_$ac_useropt"
  943. "*) ;;
  944. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  945. ac_unrecognized_sep=', ';;
  946. esac
  947. eval enable_$ac_useropt=no ;;
  948. -docdir | --docdir | --docdi | --doc | --do)
  949. ac_prev=docdir ;;
  950. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  951. docdir=$ac_optarg ;;
  952. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  953. ac_prev=dvidir ;;
  954. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  955. dvidir=$ac_optarg ;;
  956. -enable-* | --enable-*)
  957. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  958. # Reject names that are not valid shell variable names.
  959. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  960. as_fn_error "invalid feature name: $ac_useropt"
  961. ac_useropt_orig=$ac_useropt
  962. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  963. case $ac_user_opts in
  964. *"
  965. "enable_$ac_useropt"
  966. "*) ;;
  967. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  968. ac_unrecognized_sep=', ';;
  969. esac
  970. eval enable_$ac_useropt=\$ac_optarg ;;
  971. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  972. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  973. | --exec | --exe | --ex)
  974. ac_prev=exec_prefix ;;
  975. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  976. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  977. | --exec=* | --exe=* | --ex=*)
  978. exec_prefix=$ac_optarg ;;
  979. -gas | --gas | --ga | --g)
  980. # Obsolete; use --with-gas.
  981. with_gas=yes ;;
  982. -help | --help | --hel | --he | -h)
  983. ac_init_help=long ;;
  984. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  985. ac_init_help=recursive ;;
  986. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  987. ac_init_help=short ;;
  988. -host | --host | --hos | --ho)
  989. ac_prev=host_alias ;;
  990. -host=* | --host=* | --hos=* | --ho=*)
  991. host_alias=$ac_optarg ;;
  992. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  993. ac_prev=htmldir ;;
  994. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  995. | --ht=*)
  996. htmldir=$ac_optarg ;;
  997. -includedir | --includedir | --includedi | --included | --include \
  998. | --includ | --inclu | --incl | --inc)
  999. ac_prev=includedir ;;
  1000. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1001. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1002. includedir=$ac_optarg ;;
  1003. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1004. ac_prev=infodir ;;
  1005. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1006. infodir=$ac_optarg ;;
  1007. -libdir | --libdir | --libdi | --libd)
  1008. ac_prev=libdir ;;
  1009. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1010. libdir=$ac_optarg ;;
  1011. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1012. | --libexe | --libex | --libe)
  1013. ac_prev=libexecdir ;;
  1014. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1015. | --libexe=* | --libex=* | --libe=*)
  1016. libexecdir=$ac_optarg ;;
  1017. -localedir | --localedir | --localedi | --localed | --locale)
  1018. ac_prev=localedir ;;
  1019. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1020. localedir=$ac_optarg ;;
  1021. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1022. | --localstate | --localstat | --localsta | --localst | --locals)
  1023. ac_prev=localstatedir ;;
  1024. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1025. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1026. localstatedir=$ac_optarg ;;
  1027. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1028. ac_prev=mandir ;;
  1029. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1030. mandir=$ac_optarg ;;
  1031. -nfp | --nfp | --nf)
  1032. # Obsolete; use --without-fp.
  1033. with_fp=no ;;
  1034. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1035. | --no-cr | --no-c | -n)
  1036. no_create=yes ;;
  1037. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1038. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1039. no_recursion=yes ;;
  1040. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1041. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1042. | --oldin | --oldi | --old | --ol | --o)
  1043. ac_prev=oldincludedir ;;
  1044. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1045. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1046. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1047. oldincludedir=$ac_optarg ;;
  1048. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1049. ac_prev=prefix ;;
  1050. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1051. prefix=$ac_optarg ;;
  1052. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1053. | --program-pre | --program-pr | --program-p)
  1054. ac_prev=program_prefix ;;
  1055. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1056. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1057. program_prefix=$ac_optarg ;;
  1058. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1059. | --program-suf | --program-su | --program-s)
  1060. ac_prev=program_suffix ;;
  1061. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1062. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1063. program_suffix=$ac_optarg ;;
  1064. -program-transform-name | --program-transform-name \
  1065. | --program-transform-nam | --program-transform-na \
  1066. | --program-transform-n | --program-transform- \
  1067. | --program-transform | --program-transfor \
  1068. | --program-transfo | --program-transf \
  1069. | --program-trans | --program-tran \
  1070. | --progr-tra | --program-tr | --program-t)
  1071. ac_prev=program_transform_name ;;
  1072. -program-transform-name=* | --program-transform-name=* \
  1073. | --program-transform-nam=* | --program-transform-na=* \
  1074. | --program-transform-n=* | --program-transform-=* \
  1075. | --program-transform=* | --program-transfor=* \
  1076. | --program-transfo=* | --program-transf=* \
  1077. | --program-trans=* | --program-tran=* \
  1078. | --progr-tra=* | --program-tr=* | --program-t=*)
  1079. program_transform_name=$ac_optarg ;;
  1080. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1081. ac_prev=pdfdir ;;
  1082. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1083. pdfdir=$ac_optarg ;;
  1084. -psdir | --psdir | --psdi | --psd | --ps)
  1085. ac_prev=psdir ;;
  1086. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1087. psdir=$ac_optarg ;;
  1088. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1089. | -silent | --silent | --silen | --sile | --sil)
  1090. silent=yes ;;
  1091. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1092. ac_prev=sbindir ;;
  1093. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1094. | --sbi=* | --sb=*)
  1095. sbindir=$ac_optarg ;;
  1096. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1097. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1098. | --sharedst | --shareds | --shared | --share | --shar \
  1099. | --sha | --sh)
  1100. ac_prev=sharedstatedir ;;
  1101. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1102. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1103. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1104. | --sha=* | --sh=*)
  1105. sharedstatedir=$ac_optarg ;;
  1106. -site | --site | --sit)
  1107. ac_prev=site ;;
  1108. -site=* | --site=* | --sit=*)
  1109. site=$ac_optarg ;;
  1110. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1111. ac_prev=srcdir ;;
  1112. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1113. srcdir=$ac_optarg ;;
  1114. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1115. | --syscon | --sysco | --sysc | --sys | --sy)
  1116. ac_prev=sysconfdir ;;
  1117. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1118. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1119. sysconfdir=$ac_optarg ;;
  1120. -target | --target | --targe | --targ | --tar | --ta | --t)
  1121. ac_prev=target_alias ;;
  1122. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1123. target_alias=$ac_optarg ;;
  1124. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1125. verbose=yes ;;
  1126. -version | --version | --versio | --versi | --vers | -V)
  1127. ac_init_version=: ;;
  1128. -with-* | --with-*)
  1129. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1130. # Reject names that are not valid shell variable names.
  1131. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1132. as_fn_error "invalid package name: $ac_useropt"
  1133. ac_useropt_orig=$ac_useropt
  1134. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1135. case $ac_user_opts in
  1136. *"
  1137. "with_$ac_useropt"
  1138. "*) ;;
  1139. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1140. ac_unrecognized_sep=', ';;
  1141. esac
  1142. eval with_$ac_useropt=\$ac_optarg ;;
  1143. -without-* | --without-*)
  1144. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1145. # Reject names that are not valid shell variable names.
  1146. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1147. as_fn_error "invalid package name: $ac_useropt"
  1148. ac_useropt_orig=$ac_useropt
  1149. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1150. case $ac_user_opts in
  1151. *"
  1152. "with_$ac_useropt"
  1153. "*) ;;
  1154. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1155. ac_unrecognized_sep=', ';;
  1156. esac
  1157. eval with_$ac_useropt=no ;;
  1158. --x)
  1159. # Obsolete; use --with-x.
  1160. with_x=yes ;;
  1161. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1162. | --x-incl | --x-inc | --x-in | --x-i)
  1163. ac_prev=x_includes ;;
  1164. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1165. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1166. x_includes=$ac_optarg ;;
  1167. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1168. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1169. ac_prev=x_libraries ;;
  1170. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1171. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1172. x_libraries=$ac_optarg ;;
  1173. -*) as_fn_error "unrecognized option: \`$ac_option'
  1174. Try \`$0 --help' for more information."
  1175. ;;
  1176. *=*)
  1177. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1178. # Reject names that are not valid shell variable names.
  1179. case $ac_envvar in #(
  1180. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1181. as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  1182. esac
  1183. eval $ac_envvar=\$ac_optarg
  1184. export $ac_envvar ;;
  1185. *)
  1186. # FIXME: should be removed in autoconf 3.0.
  1187. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1188. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1189. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1190. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1191. ;;
  1192. esac
  1193. done
  1194. if test -n "$ac_prev"; then
  1195. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1196. as_fn_error "missing argument to $ac_option"
  1197. fi
  1198. if test -n "$ac_unrecognized_opts"; then
  1199. case $enable_option_checking in
  1200. no) ;;
  1201. fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  1202. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1203. esac
  1204. fi
  1205. # Check all directory arguments for consistency.
  1206. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1207. datadir sysconfdir sharedstatedir localstatedir includedir \
  1208. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1209. libdir localedir mandir
  1210. do
  1211. eval ac_val=\$$ac_var
  1212. # Remove trailing slashes.
  1213. case $ac_val in
  1214. */ )
  1215. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1216. eval $ac_var=\$ac_val;;
  1217. esac
  1218. # Be sure to have absolute directory names.
  1219. case $ac_val in
  1220. [\\/$]* | ?:[\\/]* ) continue;;
  1221. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1222. esac
  1223. as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  1224. done
  1225. # There might be people who depend on the old broken behavior: `$host'
  1226. # used to hold the argument of --host etc.
  1227. # FIXME: To remove some day.
  1228. build=$build_alias
  1229. host=$host_alias
  1230. target=$target_alias
  1231. # FIXME: To remove some day.
  1232. if test "x$host_alias" != x; then
  1233. if test "x$build_alias" = x; then
  1234. cross_compiling=maybe
  1235. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1236. If a cross compiler is detected then cross compile mode will be used." >&2
  1237. elif test "x$build_alias" != "x$host_alias"; then
  1238. cross_compiling=yes
  1239. fi
  1240. fi
  1241. ac_tool_prefix=
  1242. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1243. test "$silent" = yes && exec 6>/dev/null
  1244. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1245. ac_ls_di=`ls -di .` &&
  1246. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1247. as_fn_error "working directory cannot be determined"
  1248. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1249. as_fn_error "pwd does not report name of working directory"
  1250. # Find the source files, if location was not specified.
  1251. if test -z "$srcdir"; then
  1252. ac_srcdir_defaulted=yes
  1253. # Try the directory containing this script, then the parent directory.
  1254. ac_confdir=`$as_dirname -- "$as_myself" ||
  1255. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1256. X"$as_myself" : 'X\(//\)[^/]' \| \
  1257. X"$as_myself" : 'X\(//\)$' \| \
  1258. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1259. $as_echo X"$as_myself" |
  1260. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1261. s//\1/
  1262. q
  1263. }
  1264. /^X\(\/\/\)[^/].*/{
  1265. s//\1/
  1266. q
  1267. }
  1268. /^X\(\/\/\)$/{
  1269. s//\1/
  1270. q
  1271. }
  1272. /^X\(\/\).*/{
  1273. s//\1/
  1274. q
  1275. }
  1276. s/.*/./; q'`
  1277. srcdir=$ac_confdir
  1278. if test ! -r "$srcdir/$ac_unique_file"; then
  1279. srcdir=..
  1280. fi
  1281. else
  1282. ac_srcdir_defaulted=no
  1283. fi
  1284. if test ! -r "$srcdir/$ac_unique_file"; then
  1285. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1286. as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  1287. fi
  1288. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1289. ac_abs_confdir=`(
  1290. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  1291. pwd)`
  1292. # When building in place, set srcdir=.
  1293. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1294. srcdir=.
  1295. fi
  1296. # Remove unnecessary trailing slashes from srcdir.
  1297. # Double slashes in file names in object file debugging info
  1298. # mess up M-x gdb in Emacs.
  1299. case $srcdir in
  1300. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1301. esac
  1302. for ac_var in $ac_precious_vars; do
  1303. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1304. eval ac_env_${ac_var}_value=\$${ac_var}
  1305. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1306. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1307. done
  1308. #
  1309. # Report the --help message.
  1310. #
  1311. if test "$ac_init_help" = "long"; then
  1312. # Omit some internal or obsolete options to make the list less imposing.
  1313. # This message is too long to be a string in the A/UX 3.1 sh.
  1314. cat <<_ACEOF
  1315. \`configure' configures aria2 1.9.1 to adapt to many kinds of systems.
  1316. Usage: $0 [OPTION]... [VAR=VALUE]...
  1317. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1318. VAR=VALUE. See below for descriptions of some of the useful variables.
  1319. Defaults for the options are specified in brackets.
  1320. Configuration:
  1321. -h, --help display this help and exit
  1322. --help=short display options specific to this package
  1323. --help=recursive display the short help of all the included packages
  1324. -V, --version display version information and exit
  1325. -q, --quiet, --silent do not print \`checking...' messages
  1326. --cache-file=FILE cache test results in FILE [disabled]
  1327. -C, --config-cache alias for \`--cache-file=config.cache'
  1328. -n, --no-create do not create output files
  1329. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1330. Installation directories:
  1331. --prefix=PREFIX install architecture-independent files in PREFIX
  1332. [$ac_default_prefix]
  1333. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1334. [PREFIX]
  1335. By default, \`make install' will install all the files in
  1336. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1337. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1338. for instance \`--prefix=\$HOME'.
  1339. For better control, use the options below.
  1340. Fine tuning of the installation directories:
  1341. --bindir=DIR user executables [EPREFIX/bin]
  1342. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1343. --libexecdir=DIR program executables [EPREFIX/libexec]
  1344. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1345. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1346. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1347. --libdir=DIR object code libraries [EPREFIX/lib]
  1348. --includedir=DIR C header files [PREFIX/include]
  1349. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1350. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1351. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1352. --infodir=DIR info documentation [DATAROOTDIR/info]
  1353. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1354. --mandir=DIR man documentation [DATAROOTDIR/man]
  1355. --docdir=DIR documentation root [DATAROOTDIR/doc/aria2]
  1356. --htmldir=DIR html documentation [DOCDIR]
  1357. --dvidir=DIR dvi documentation [DOCDIR]
  1358. --pdfdir=DIR pdf documentation [DOCDIR]
  1359. --psdir=DIR ps documentation [DOCDIR]
  1360. _ACEOF
  1361. cat <<\_ACEOF
  1362. Program names:
  1363. --program-prefix=PREFIX prepend PREFIX to installed program names
  1364. --program-suffix=SUFFIX append SUFFIX to installed program names
  1365. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1366. System types:
  1367. --build=BUILD configure for building on BUILD [guessed]
  1368. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1369. --target=TARGET configure for building compilers for TARGET [HOST]
  1370. _ACEOF
  1371. fi
  1372. if test -n "$ac_init_help"; then
  1373. case $ac_init_help in
  1374. short | recursive ) echo "Configuration of aria2 1.9.1:";;
  1375. esac
  1376. cat <<\_ACEOF
  1377. Optional Features:
  1378. --disable-option-checking ignore unrecognized --enable/--with options
  1379. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1380. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1381. --enable-bittorrent Enable bittorrent support.
  1382. --enable-metalink Enable metalink support.
  1383. --enable-epoll Enable epoll support.
  1384. --disable-dependency-tracking speeds up one-time build
  1385. --enable-dependency-tracking do not reject slow dependency extractors
  1386. --disable-xmltest Do not try to compile and run a test LIBXML program
  1387. --disable-largefile omit support for large files
  1388. --disable-nls do not use Native Language Support
  1389. --enable-threads={posix|solaris|pth|win32}
  1390. specify multithreading API
  1391. --disable-threads build without multithread safety
  1392. --disable-rpath do not hardcode runtime library paths
  1393. Optional Packages:
  1394. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1395. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1396. --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
  1397. --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
  1398. --with-gnutls Use gnutls if it is installed.
  1399. --with-openssl Use openssl if it is installed.
  1400. --with-sqlite3 Use sqlite3 if it is installed.
  1401. --with-libxml2 Use libxml2 if it is installed.
  1402. --with-libexpat Use libexpat if it is installed.
  1403. --with-libcares Use libcares if it is installed.
  1404. --with-libz Use libz if it is installed.
  1405. --with-ca-bundle=FILE Use FILE as default CA bundle.
  1406. --with-xml-prefix=PFX Prefix where libxml is installed (optional)
  1407. --with-xml-exec-prefix=PFX Exec prefix where libxml is installed (optional)
  1408. --with-libexpat-prefix=PREFIX Prefix where libexpat installed (optional)
  1409. --with-sqlite3-prefix=PREFIX Prefix where SQLite3 installed (optional)
  1410. --with-libgnutls-prefix=PFX Prefix where libgnutls is installed (optional)
  1411. --with-libgcrypt-prefix=PFX
  1412. prefix where LIBGCRYPT is installed (optional)
  1413. --with-openssl-prefix=PREFIX Prefix where OpenSSL installed (optional)
  1414. --with-libcares-prefix=PREFIX Prefix where libcares installed (optional)
  1415. --with-libz-prefix=PREFIX Prefix where libz installed (optional)
  1416. --with-gnu-ld assume the C compiler uses GNU ld default=no
  1417. --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
  1418. --without-libpth-prefix don't search for libpth in includedir and libdir
  1419. --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
  1420. --without-libiconv-prefix don't search for libiconv in includedir and libdir
  1421. --with-included-gettext use the GNU gettext library included here
  1422. --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
  1423. --without-libintl-prefix don't search for libintl in includedir and libdir
  1424. Some influential environment variables:
  1425. CXX C++ compiler command
  1426. CXXFLAGS C++ compiler flags
  1427. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1428. nonstandard directory <lib dir>
  1429. LIBS libraries to pass to the linker, e.g. -l<library>
  1430. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1431. you have headers in a nonstandard directory <include dir>
  1432. CC C compiler command
  1433. CFLAGS C compiler flags
  1434. YACC The `Yet Another C Compiler' implementation to use. Defaults to
  1435. the first program found out of: `bison -y', `byacc', `yacc'.
  1436. YFLAGS The list of arguments that will be passed by default to $YACC.
  1437. This script will default YFLAGS to the empty string to avoid a
  1438. default value of `-d' given by some make applications.
  1439. CXXCPP C++ preprocessor
  1440. PKG_CONFIG path to pkg-config utility
  1441. SQLITE3_CFLAGS
  1442. C compiler flags for SQLITE3, overriding pkg-config
  1443. SQLITE3_LIBS
  1444. linker flags for SQLITE3, overriding pkg-config
  1445. LIBGNUTLS_CFLAGS
  1446. C compiler flags for LIBGNUTLS, overriding pkg-config
  1447. LIBGNUTLS_LIBS
  1448. linker flags for LIBGNUTLS, overriding pkg-config
  1449. Use these variables to override the choices made by `configure' or to help
  1450. it to find libraries and programs with nonstandard names/locations.
  1451. Report bugs to <t-tujikawa@users.sourceforge.net>.
  1452. aria2 home page: <http://aria2.sourceforge.net/>.
  1453. _ACEOF
  1454. ac_status=$?
  1455. fi
  1456. if test "$ac_init_help" = "recursive"; then
  1457. # If there are subdirs, report their specific --help.
  1458. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1459. test -d "$ac_dir" ||
  1460. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1461. continue
  1462. ac_builddir=.
  1463. case "$ac_dir" in
  1464. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1465. *)
  1466. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1467. # A ".." for each directory in $ac_dir_suffix.
  1468. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1469. case $ac_top_builddir_sub in
  1470. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1471. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1472. esac ;;
  1473. esac
  1474. ac_abs_top_builddir=$ac_pwd
  1475. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1476. # for backward compatibility:
  1477. ac_top_builddir=$ac_top_build_prefix
  1478. case $srcdir in
  1479. .) # We are building in place.
  1480. ac_srcdir=.
  1481. ac_top_srcdir=$ac_top_builddir_sub
  1482. ac_abs_top_srcdir=$ac_pwd ;;
  1483. [\\/]* | ?:[\\/]* ) # Absolute name.
  1484. ac_srcdir=$srcdir$ac_dir_suffix;
  1485. ac_top_srcdir=$srcdir
  1486. ac_abs_top_srcdir=$srcdir ;;
  1487. *) # Relative name.
  1488. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1489. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1490. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1491. esac
  1492. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1493. cd "$ac_dir" || { ac_status=$?; continue; }
  1494. # Check for guested configure.
  1495. if test -f "$ac_srcdir/configure.gnu"; then
  1496. echo &&
  1497. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1498. elif test -f "$ac_srcdir/configure"; then
  1499. echo &&
  1500. $SHELL "$ac_srcdir/configure" --help=recursive
  1501. else
  1502. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1503. fi || ac_status=$?
  1504. cd "$ac_pwd" || { ac_status=$?; break; }
  1505. done
  1506. fi
  1507. test -n "$ac_init_help" && exit $ac_status
  1508. if $ac_init_version; then
  1509. cat <<\_ACEOF
  1510. aria2 configure 1.9.1
  1511. generated by GNU Autoconf 2.65
  1512. Copyright (C) 2009 Free Software Foundation, Inc.
  1513. This configure script is free software; the Free Software Foundation
  1514. gives unlimited permission to copy, distribute and modify it.
  1515. _ACEOF
  1516. exit
  1517. fi
  1518. ## ------------------------ ##
  1519. ## Autoconf initialization. ##
  1520. ## ------------------------ ##
  1521. # ac_fn_cxx_try_compile LINENO
  1522. # ----------------------------
  1523. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1524. ac_fn_cxx_try_compile ()
  1525. {
  1526. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1527. rm -f conftest.$ac_objext
  1528. if { { ac_try="$ac_compile"
  1529. case "(($ac_try" in
  1530. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1531. *) ac_try_echo=$ac_try;;
  1532. esac
  1533. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1534. $as_echo "$ac_try_echo"; } >&5
  1535. (eval "$ac_compile") 2>conftest.err
  1536. ac_status=$?
  1537. if test -s conftest.err; then
  1538. grep -v '^ *+' conftest.err >conftest.er1
  1539. cat conftest.er1 >&5
  1540. mv -f conftest.er1 conftest.err
  1541. fi
  1542. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1543. test $ac_status = 0; } && {
  1544. test -z "$ac_cxx_werror_flag" ||
  1545. test ! -s conftest.err
  1546. } && test -s conftest.$ac_objext; then :
  1547. ac_retval=0
  1548. else
  1549. $as_echo "$as_me: failed program was:" >&5
  1550. sed 's/^/| /' conftest.$ac_ext >&5
  1551. ac_retval=1
  1552. fi
  1553. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1554. as_fn_set_status $ac_retval
  1555. } # ac_fn_cxx_try_compile
  1556. # ac_fn_c_try_compile LINENO
  1557. # --------------------------
  1558. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1559. ac_fn_c_try_compile ()
  1560. {
  1561. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1562. rm -f conftest.$ac_objext
  1563. if { { ac_try="$ac_compile"
  1564. case "(($ac_try" in
  1565. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1566. *) ac_try_echo=$ac_try;;
  1567. esac
  1568. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1569. $as_echo "$ac_try_echo"; } >&5
  1570. (eval "$ac_compile") 2>conftest.err
  1571. ac_status=$?
  1572. if test -s conftest.err; then
  1573. grep -v '^ *+' conftest.err >conftest.er1
  1574. cat conftest.er1 >&5
  1575. mv -f conftest.er1 conftest.err
  1576. fi
  1577. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1578. test $ac_status = 0; } && {
  1579. test -z "$ac_c_werror_flag" ||
  1580. test ! -s conftest.err
  1581. } && test -s conftest.$ac_objext; then :
  1582. ac_retval=0
  1583. else
  1584. $as_echo "$as_me: failed program was:" >&5
  1585. sed 's/^/| /' conftest.$ac_ext >&5
  1586. ac_retval=1
  1587. fi
  1588. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1589. as_fn_set_status $ac_retval
  1590. } # ac_fn_c_try_compile
  1591. # ac_fn_cxx_try_cpp LINENO
  1592. # ------------------------
  1593. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1594. ac_fn_cxx_try_cpp ()
  1595. {
  1596. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1597. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1598. case "(($ac_try" in
  1599. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1600. *) ac_try_echo=$ac_try;;
  1601. esac
  1602. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1603. $as_echo "$ac_try_echo"; } >&5
  1604. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1605. ac_status=$?
  1606. if test -s conftest.err; then
  1607. grep -v '^ *+' conftest.err >conftest.er1
  1608. cat conftest.er1 >&5
  1609. mv -f conftest.er1 conftest.err
  1610. fi
  1611. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1612. test $ac_status = 0; } >/dev/null && {
  1613. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1614. test ! -s conftest.err
  1615. }; then :
  1616. ac_retval=0
  1617. else
  1618. $as_echo "$as_me: failed program was:" >&5
  1619. sed 's/^/| /' conftest.$ac_ext >&5
  1620. ac_retval=1
  1621. fi
  1622. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1623. as_fn_set_status $ac_retval
  1624. } # ac_fn_cxx_try_cpp
  1625. # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
  1626. # ---------------------------------------------------------
  1627. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1628. # the include files in INCLUDES and setting the cache variable VAR
  1629. # accordingly.
  1630. ac_fn_cxx_check_header_mongrel ()
  1631. {
  1632. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1633. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1634. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1635. $as_echo_n "checking for $2... " >&6; }
  1636. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1637. $as_echo_n "(cached) " >&6
  1638. fi
  1639. eval ac_res=\$$3
  1640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1641. $as_echo "$ac_res" >&6; }
  1642. else
  1643. # Is the header compilable?
  1644. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1645. $as_echo_n "checking $2 usability... " >&6; }
  1646. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1647. /* end confdefs.h. */
  1648. $4
  1649. #include <$2>
  1650. _ACEOF
  1651. if ac_fn_cxx_try_compile "$LINENO"; then :
  1652. ac_header_compiler=yes
  1653. else
  1654. ac_header_compiler=no
  1655. fi
  1656. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1658. $as_echo "$ac_header_compiler" >&6; }
  1659. # Is the header present?
  1660. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1661. $as_echo_n "checking $2 presence... " >&6; }
  1662. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1663. /* end confdefs.h. */
  1664. #include <$2>
  1665. _ACEOF
  1666. if ac_fn_cxx_try_cpp "$LINENO"; then :
  1667. ac_header_preproc=yes
  1668. else
  1669. ac_header_preproc=no
  1670. fi
  1671. rm -f conftest.err conftest.$ac_ext
  1672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1673. $as_echo "$ac_header_preproc" >&6; }
  1674. # So? What about this header?
  1675. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
  1676. yes:no: )
  1677. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1678. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1679. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1680. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1681. ;;
  1682. no:yes:* )
  1683. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1684. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1685. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1686. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1687. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1688. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1689. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1690. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1691. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1692. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1693. ( cat <<\_ASBOX
  1694. ## ----------------------------------------------- ##
  1695. ## Report this to t-tujikawa@users.sourceforge.net ##
  1696. ## ----------------------------------------------- ##
  1697. _ASBOX
  1698. ) | sed "s/^/$as_me: WARNING: /" >&2
  1699. ;;
  1700. esac
  1701. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1702. $as_echo_n "checking for $2... " >&6; }
  1703. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1704. $as_echo_n "(cached) " >&6
  1705. else
  1706. eval "$3=\$ac_header_compiler"
  1707. fi
  1708. eval ac_res=\$$3
  1709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1710. $as_echo "$ac_res" >&6; }
  1711. fi
  1712. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1713. } # ac_fn_cxx_check_header_mongrel
  1714. # ac_fn_cxx_try_run LINENO
  1715. # ------------------------
  1716. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1717. # that executables *can* be run.
  1718. ac_fn_cxx_try_run ()
  1719. {
  1720. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1721. if { { ac_try="$ac_link"
  1722. case "(($ac_try" in
  1723. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1724. *) ac_try_echo=$ac_try;;
  1725. esac
  1726. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1727. $as_echo "$ac_try_echo"; } >&5
  1728. (eval "$ac_link") 2>&5
  1729. ac_status=$?
  1730. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1731. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1732. { { case "(($ac_try" in
  1733. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1734. *) ac_try_echo=$ac_try;;
  1735. esac
  1736. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1737. $as_echo "$ac_try_echo"; } >&5
  1738. (eval "$ac_try") 2>&5
  1739. ac_status=$?
  1740. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1741. test $ac_status = 0; }; }; then :
  1742. ac_retval=0
  1743. else
  1744. $as_echo "$as_me: program exited with status $ac_status" >&5
  1745. $as_echo "$as_me: failed program was:" >&5
  1746. sed 's/^/| /' conftest.$ac_ext >&5
  1747. ac_retval=$ac_status
  1748. fi
  1749. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1750. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1751. as_fn_set_status $ac_retval
  1752. } # ac_fn_cxx_try_run
  1753. # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
  1754. # ---------------------------------------------------------
  1755. # Tests whether HEADER exists and can be compiled using the include files in
  1756. # INCLUDES, setting the cache variable VAR accordingly.
  1757. ac_fn_cxx_check_header_compile ()
  1758. {
  1759. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1761. $as_echo_n "checking for $2... " >&6; }
  1762. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1763. $as_echo_n "(cached) " >&6
  1764. else
  1765. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1766. /* end confdefs.h. */
  1767. $4
  1768. #include <$2>
  1769. _ACEOF
  1770. if ac_fn_cxx_try_compile "$LINENO"; then :
  1771. eval "$3=yes"
  1772. else
  1773. eval "$3=no"
  1774. fi
  1775. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1776. fi
  1777. eval ac_res=\$$3
  1778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1779. $as_echo "$ac_res" >&6; }
  1780. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1781. } # ac_fn_cxx_check_header_compile
  1782. # ac_fn_cxx_try_link LINENO
  1783. # -------------------------
  1784. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1785. ac_fn_cxx_try_link ()
  1786. {
  1787. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1788. rm -f conftest.$ac_objext conftest$ac_exeext
  1789. if { { ac_try="$ac_link"
  1790. case "(($ac_try" in
  1791. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1792. *) ac_try_echo=$ac_try;;
  1793. esac
  1794. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1795. $as_echo "$ac_try_echo"; } >&5
  1796. (eval "$ac_link") 2>conftest.err
  1797. ac_status=$?
  1798. if test -s conftest.err; then
  1799. grep -v '^ *+' conftest.err >conftest.er1
  1800. cat conftest.er1 >&5
  1801. mv -f conftest.er1 conftest.err
  1802. fi
  1803. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1804. test $ac_status = 0; } && {
  1805. test -z "$ac_cxx_werror_flag" ||
  1806. test ! -s conftest.err
  1807. } && test -s conftest$ac_exeext && {
  1808. test "$cross_compiling" = yes ||
  1809. $as_test_x conftest$ac_exeext
  1810. }; then :
  1811. ac_retval=0
  1812. else
  1813. $as_echo "$as_me: failed program was:" >&5
  1814. sed 's/^/| /' conftest.$ac_ext >&5
  1815. ac_retval=1
  1816. fi
  1817. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1818. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1819. # interfere with the next link command; also delete a directory that is
  1820. # left behind by Apple's compiler. We do this before executing the actions.
  1821. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1822. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1823. as_fn_set_status $ac_retval
  1824. } # ac_fn_cxx_try_link
  1825. # ac_fn_cxx_check_func LINENO FUNC VAR
  1826. # ------------------------------------
  1827. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1828. ac_fn_cxx_check_func ()
  1829. {
  1830. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1831. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1832. $as_echo_n "checking for $2... " >&6; }
  1833. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1834. $as_echo_n "(cached) " >&6
  1835. else
  1836. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1837. /* end confdefs.h. */
  1838. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1839. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1840. #define $2 innocuous_$2
  1841. /* System header to define __stub macros and hopefully few prototypes,
  1842. which can conflict with char $2 (); below.
  1843. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1844. <limits.h> exists even on freestanding compilers. */
  1845. #ifdef __STDC__
  1846. # include <limits.h>
  1847. #else
  1848. # include <assert.h>
  1849. #endif
  1850. #undef $2
  1851. /* Override any GCC internal prototype to avoid an error.
  1852. Use char because int might match the return type of a GCC
  1853. builtin and then its argument prototype would still apply. */
  1854. #ifdef __cplusplus
  1855. extern "C"
  1856. #endif
  1857. char $2 ();
  1858. /* The GNU C library defines this for functions which it implements
  1859. to always fail with ENOSYS. Some functions are actually named
  1860. something starting with __ and the normal name is an alias. */
  1861. #if defined __stub_$2 || defined __stub___$2
  1862. choke me
  1863. #endif
  1864. int
  1865. main ()
  1866. {
  1867. return $2 ();
  1868. ;
  1869. return 0;
  1870. }
  1871. _ACEOF
  1872. if ac_fn_cxx_try_link "$LINENO"; then :
  1873. eval "$3=yes"
  1874. else
  1875. eval "$3=no"
  1876. fi
  1877. rm -f core conftest.err conftest.$ac_objext \
  1878. conftest$ac_exeext conftest.$ac_ext
  1879. fi
  1880. eval ac_res=\$$3
  1881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1882. $as_echo "$ac_res" >&6; }
  1883. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1884. } # ac_fn_cxx_check_func
  1885. # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
  1886. # ---------------------------------------------
  1887. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1888. # variable VAR accordingly.
  1889. ac_fn_cxx_check_type ()
  1890. {
  1891. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1892. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1893. $as_echo_n "checking for $2... " >&6; }
  1894. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1895. $as_echo_n "(cached) " >&6
  1896. else
  1897. eval "$3=no"
  1898. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1899. /* end confdefs.h. */
  1900. $4
  1901. int
  1902. main ()
  1903. {
  1904. if (sizeof ($2))
  1905. return 0;
  1906. ;
  1907. return 0;
  1908. }
  1909. _ACEOF
  1910. if ac_fn_cxx_try_compile "$LINENO"; then :
  1911. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1912. /* end confdefs.h. */
  1913. $4
  1914. int
  1915. main ()
  1916. {
  1917. if (sizeof (($2)))
  1918. return 0;
  1919. ;
  1920. return 0;
  1921. }
  1922. _ACEOF
  1923. if ac_fn_cxx_try_compile "$LINENO"; then :
  1924. else
  1925. eval "$3=yes"
  1926. fi
  1927. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1928. fi
  1929. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1930. fi
  1931. eval ac_res=\$$3
  1932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1933. $as_echo "$ac_res" >&6; }
  1934. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1935. } # ac_fn_cxx_check_type
  1936. # ac_fn_c_find_intX_t LINENO BITS VAR
  1937. # -----------------------------------
  1938. # Finds a signed integer type with width BITS, setting cache variable VAR
  1939. # accordingly.
  1940. ac_fn_c_find_intX_t ()
  1941. {
  1942. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1943. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
  1944. $as_echo_n "checking for int$2_t... " >&6; }
  1945. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1946. $as_echo_n "(cached) " >&6
  1947. else
  1948. eval "$3=no"
  1949. # Order is important - never check a type that is potentially smaller
  1950. # than half of the expected target width.
  1951. for ac_type in int$2_t 'int' 'long int' \
  1952. 'long long int' 'short int' 'signed char'; do
  1953. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1954. /* end confdefs.h. */
  1955. $ac_includes_default
  1956. enum { N = $2 / 2 - 1 };
  1957. int
  1958. main ()
  1959. {
  1960. static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
  1961. test_array [0] = 0
  1962. ;
  1963. return 0;
  1964. }
  1965. _ACEOF
  1966. if ac_fn_cxx_try_compile "$LINENO"; then :
  1967. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1968. /* end confdefs.h. */
  1969. $ac_includes_default
  1970. enum { N = $2 / 2 - 1 };
  1971. int
  1972. main ()
  1973. {
  1974. static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
  1975. < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
  1976. test_array [0] = 0
  1977. ;
  1978. return 0;
  1979. }
  1980. _ACEOF
  1981. if ac_fn_cxx_try_compile "$LINENO"; then :
  1982. else
  1983. case $ac_type in #(
  1984. int$2_t) :
  1985. eval "$3=yes" ;; #(
  1986. *) :
  1987. eval "$3=\$ac_type" ;;
  1988. esac
  1989. fi
  1990. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1991. fi
  1992. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1993. eval as_val=\$$3
  1994. if test "x$as_val" = x""no; then :
  1995. else
  1996. break
  1997. fi
  1998. done
  1999. fi
  2000. eval ac_res=\$$3
  2001. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2002. $as_echo "$ac_res" >&6; }
  2003. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2004. } # ac_fn_c_find_intX_t
  2005. # ac_fn_c_find_uintX_t LINENO BITS VAR
  2006. # ------------------------------------
  2007. # Finds an unsigned integer type with width BITS, setting cache variable VAR
  2008. # accordingly.
  2009. ac_fn_c_find_uintX_t ()
  2010. {
  2011. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2012. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
  2013. $as_echo_n "checking for uint$2_t... " >&6; }
  2014. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  2015. $as_echo_n "(cached) " >&6
  2016. else
  2017. eval "$3=no"
  2018. # Order is important - never check a type that is potentially smaller
  2019. # than half of the expected target width.
  2020. for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
  2021. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  2022. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2023. /* end confdefs.h. */
  2024. $ac_includes_default
  2025. int
  2026. main ()
  2027. {
  2028. static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
  2029. test_array [0] = 0
  2030. ;
  2031. return 0;
  2032. }
  2033. _ACEOF
  2034. if ac_fn_cxx_try_compile "$LINENO"; then :
  2035. case $ac_type in #(
  2036. uint$2_t) :
  2037. eval "$3=yes" ;; #(
  2038. *) :
  2039. eval "$3=\$ac_type" ;;
  2040. esac
  2041. fi
  2042. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2043. eval as_val=\$$3
  2044. if test "x$as_val" = x""no; then :
  2045. else
  2046. break
  2047. fi
  2048. done
  2049. fi
  2050. eval ac_res=\$$3
  2051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2052. $as_echo "$ac_res" >&6; }
  2053. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2054. } # ac_fn_c_find_uintX_t
  2055. # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
  2056. # ----------------------------------------------
  2057. # Tries to find the compile-time value of EXPR in a program that includes
  2058. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  2059. # computed
  2060. ac_fn_cxx_compute_int ()
  2061. {
  2062. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2063. if test "$cross_compiling" = yes; then
  2064. # Depending upon the size, compute the lo and hi bounds.
  2065. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2066. /* end confdefs.h. */
  2067. $4
  2068. int
  2069. main ()
  2070. {
  2071. static int test_array [1 - 2 * !(($2) >= 0)];
  2072. test_array [0] = 0
  2073. ;
  2074. return 0;
  2075. }
  2076. _ACEOF
  2077. if ac_fn_cxx_try_compile "$LINENO"; then :
  2078. ac_lo=0 ac_mid=0
  2079. while :; do
  2080. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2081. /* end confdefs.h. */
  2082. $4
  2083. int
  2084. main ()
  2085. {
  2086. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2087. test_array [0] = 0
  2088. ;
  2089. return 0;
  2090. }
  2091. _ACEOF
  2092. if ac_fn_cxx_try_compile "$LINENO"; then :
  2093. ac_hi=$ac_mid; break
  2094. else
  2095. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  2096. if test $ac_lo -le $ac_mid; then
  2097. ac_lo= ac_hi=
  2098. break
  2099. fi
  2100. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  2101. fi
  2102. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2103. done
  2104. else
  2105. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2106. /* end confdefs.h. */
  2107. $4
  2108. int
  2109. main ()
  2110. {
  2111. static int test_array [1 - 2 * !(($2) < 0)];
  2112. test_array [0] = 0
  2113. ;
  2114. return 0;
  2115. }
  2116. _ACEOF
  2117. if ac_fn_cxx_try_compile "$LINENO"; then :
  2118. ac_hi=-1 ac_mid=-1
  2119. while :; do
  2120. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2121. /* end confdefs.h. */
  2122. $4
  2123. int
  2124. main ()
  2125. {
  2126. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  2127. test_array [0] = 0
  2128. ;
  2129. return 0;
  2130. }
  2131. _ACEOF
  2132. if ac_fn_cxx_try_compile "$LINENO"; then :
  2133. ac_lo=$ac_mid; break
  2134. else
  2135. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  2136. if test $ac_mid -le $ac_hi; then
  2137. ac_lo= ac_hi=
  2138. break
  2139. fi
  2140. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  2141. fi
  2142. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2143. done
  2144. else
  2145. ac_lo= ac_hi=
  2146. fi
  2147. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2148. fi
  2149. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2150. # Binary search between lo and hi bounds.
  2151. while test "x$ac_lo" != "x$ac_hi"; do
  2152. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  2153. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2154. /* end confdefs.h. */
  2155. $4
  2156. int
  2157. main ()
  2158. {
  2159. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2160. test_array [0] = 0
  2161. ;
  2162. return 0;
  2163. }
  2164. _ACEOF
  2165. if ac_fn_cxx_try_compile "$LINENO"; then :
  2166. ac_hi=$ac_mid
  2167. else
  2168. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  2169. fi
  2170. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2171. done
  2172. case $ac_lo in #((
  2173. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  2174. '') ac_retval=1 ;;
  2175. esac
  2176. else
  2177. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2178. /* end confdefs.h. */
  2179. $4
  2180. static long int longval () { return $2; }
  2181. static unsigned long int ulongval () { return $2; }
  2182. #include <stdio.h>
  2183. #include <stdlib.h>
  2184. int
  2185. main ()
  2186. {
  2187. FILE *f = fopen ("conftest.val", "w");
  2188. if (! f)
  2189. return 1;
  2190. if (($2) < 0)
  2191. {
  2192. long int i = longval ();
  2193. if (i != ($2))
  2194. return 1;
  2195. fprintf (f, "%ld", i);
  2196. }
  2197. else
  2198. {
  2199. unsigned long int i = ulongval ();
  2200. if (i != ($2))
  2201. return 1;
  2202. fprintf (f, "%lu", i);
  2203. }
  2204. /* Do not output a trailing newline, as this causes \r\n confusion
  2205. on some platforms. */
  2206. return ferror (f) || fclose (f) != 0;
  2207. ;
  2208. return 0;
  2209. }
  2210. _ACEOF
  2211. if ac_fn_cxx_try_run "$LINENO"; then :
  2212. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  2213. else
  2214. ac_retval=1
  2215. fi
  2216. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  2217. conftest.$ac_objext conftest.beam conftest.$ac_ext
  2218. rm -f conftest.val
  2219. fi
  2220. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2221. as_fn_set_status $ac_retval
  2222. } # ac_fn_cxx_compute_int
  2223. # ac_fn_cxx_check_member LINENO AGGR MEMBER VAR INCLUDES
  2224. # ------------------------------------------------------
  2225. # Tries to find if the field MEMBER exists in type AGGR, after including
  2226. # INCLUDES, setting cache variable VAR accordingly.
  2227. ac_fn_cxx_check_member ()
  2228. {
  2229. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2230. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2231. $as_echo_n "checking for $2.$3... " >&6; }
  2232. if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
  2233. $as_echo_n "(cached) " >&6
  2234. else
  2235. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2236. /* end confdefs.h. */
  2237. $5
  2238. int
  2239. main ()
  2240. {
  2241. static $2 ac_aggr;
  2242. if (ac_aggr.$3)
  2243. return 0;
  2244. ;
  2245. return 0;
  2246. }
  2247. _ACEOF
  2248. if ac_fn_cxx_try_compile "$LINENO"; then :
  2249. eval "$4=yes"
  2250. else
  2251. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2252. /* end confdefs.h. */
  2253. $5
  2254. int
  2255. main ()
  2256. {
  2257. static $2 ac_aggr;
  2258. if (sizeof ac_aggr.$3)
  2259. return 0;
  2260. ;
  2261. return 0;
  2262. }
  2263. _ACEOF
  2264. if ac_fn_cxx_try_compile "$LINENO"; then :
  2265. eval "$4=yes"
  2266. else
  2267. eval "$4=no"
  2268. fi
  2269. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2270. fi
  2271. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2272. fi
  2273. eval ac_res=\$$4
  2274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2275. $as_echo "$ac_res" >&6; }
  2276. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2277. } # ac_fn_cxx_check_member
  2278. cat >config.log <<_ACEOF
  2279. This file contains any messages produced by compilers while
  2280. running configure, to aid debugging if configure makes a mistake.
  2281. It was created by aria2 $as_me 1.9.1, which was
  2282. generated by GNU Autoconf 2.65. Invocation command line was
  2283. $ $0 $@
  2284. _ACEOF
  2285. exec 5>>config.log
  2286. {
  2287. cat <<_ASUNAME
  2288. ## --------- ##
  2289. ## Platform. ##
  2290. ## --------- ##
  2291. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2292. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2293. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2294. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2295. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2296. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2297. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2298. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2299. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2300. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2301. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2302. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2303. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2304. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2305. _ASUNAME
  2306. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2307. for as_dir in $PATH
  2308. do
  2309. IFS=$as_save_IFS
  2310. test -z "$as_dir" && as_dir=.
  2311. $as_echo "PATH: $as_dir"
  2312. done
  2313. IFS=$as_save_IFS
  2314. } >&5
  2315. cat >&5 <<_ACEOF
  2316. ## ----------- ##
  2317. ## Core tests. ##
  2318. ## ----------- ##
  2319. _ACEOF
  2320. # Keep a trace of the command line.
  2321. # Strip out --no-create and --no-recursion so they do not pile up.
  2322. # Strip out --silent because we don't want to record it for future runs.
  2323. # Also quote any args containing shell meta-characters.
  2324. # Make two passes to allow for proper duplicate-argument suppression.
  2325. ac_configure_args=
  2326. ac_configure_args0=
  2327. ac_configure_args1=
  2328. ac_must_keep_next=false
  2329. for ac_pass in 1 2
  2330. do
  2331. for ac_arg
  2332. do
  2333. case $ac_arg in
  2334. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2335. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2336. | -silent | --silent | --silen | --sile | --sil)
  2337. continue ;;
  2338. *\'*)
  2339. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2340. esac
  2341. case $ac_pass in
  2342. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2343. 2)
  2344. as_fn_append ac_configure_args1 " '$ac_arg'"
  2345. if test $ac_must_keep_next = true; then
  2346. ac_must_keep_next=false # Got value, back to normal.
  2347. else
  2348. case $ac_arg in
  2349. *=* | --config-cache | -C | -disable-* | --disable-* \
  2350. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2351. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2352. | -with-* | --with-* | -without-* | --without-* | --x)
  2353. case "$ac_configure_args0 " in
  2354. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2355. esac
  2356. ;;
  2357. -* ) ac_must_keep_next=true ;;
  2358. esac
  2359. fi
  2360. as_fn_append ac_configure_args " '$ac_arg'"
  2361. ;;
  2362. esac
  2363. done
  2364. done
  2365. { ac_configure_args0=; unset ac_configure_args0;}
  2366. { ac_configure_args1=; unset ac_configure_args1;}
  2367. # When interrupted or exit'd, cleanup temporary files, and complete
  2368. # config.log. We remove comments because anyway the quotes in there
  2369. # would cause problems or look ugly.
  2370. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2371. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2372. trap 'exit_status=$?
  2373. # Save into config.log some information that might help in debugging.
  2374. {
  2375. echo
  2376. cat <<\_ASBOX
  2377. ## ---------------- ##
  2378. ## Cache variables. ##
  2379. ## ---------------- ##
  2380. _ASBOX
  2381. echo
  2382. # The following way of writing the cache mishandles newlines in values,
  2383. (
  2384. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2385. eval ac_val=\$$ac_var
  2386. case $ac_val in #(
  2387. *${as_nl}*)
  2388. case $ac_var in #(
  2389. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2390. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2391. esac
  2392. case $ac_var in #(
  2393. _ | IFS | as_nl) ;; #(
  2394. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2395. *) { eval $ac_var=; unset $ac_var;} ;;
  2396. esac ;;
  2397. esac
  2398. done
  2399. (set) 2>&1 |
  2400. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2401. *${as_nl}ac_space=\ *)
  2402. sed -n \
  2403. "s/'\''/'\''\\\\'\'''\''/g;
  2404. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2405. ;; #(
  2406. *)
  2407. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2408. ;;
  2409. esac |
  2410. sort
  2411. )
  2412. echo
  2413. cat <<\_ASBOX
  2414. ## ----------------- ##
  2415. ## Output variables. ##
  2416. ## ----------------- ##
  2417. _ASBOX
  2418. echo
  2419. for ac_var in $ac_subst_vars
  2420. do
  2421. eval ac_val=\$$ac_var
  2422. case $ac_val in
  2423. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2424. esac
  2425. $as_echo "$ac_var='\''$ac_val'\''"
  2426. done | sort
  2427. echo
  2428. if test -n "$ac_subst_files"; then
  2429. cat <<\_ASBOX
  2430. ## ------------------- ##
  2431. ## File substitutions. ##
  2432. ## ------------------- ##
  2433. _ASBOX
  2434. echo
  2435. for ac_var in $ac_subst_files
  2436. do
  2437. eval ac_val=\$$ac_var
  2438. case $ac_val in
  2439. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2440. esac
  2441. $as_echo "$ac_var='\''$ac_val'\''"
  2442. done | sort
  2443. echo
  2444. fi
  2445. if test -s confdefs.h; then
  2446. cat <<\_ASBOX
  2447. ## ----------- ##
  2448. ## confdefs.h. ##
  2449. ## ----------- ##
  2450. _ASBOX
  2451. echo
  2452. cat confdefs.h
  2453. echo
  2454. fi
  2455. test "$ac_signal" != 0 &&
  2456. $as_echo "$as_me: caught signal $ac_signal"
  2457. $as_echo "$as_me: exit $exit_status"
  2458. } >&5
  2459. rm -f core *.core core.conftest.* &&
  2460. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2461. exit $exit_status
  2462. ' 0
  2463. for ac_signal in 1 2 13 15; do
  2464. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2465. done
  2466. ac_signal=0
  2467. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2468. rm -f -r conftest* confdefs.h
  2469. $as_echo "/* confdefs.h */" > confdefs.h
  2470. # Predefined preprocessor variables.
  2471. cat >>confdefs.h <<_ACEOF
  2472. #define PACKAGE_NAME "$PACKAGE_NAME"
  2473. _ACEOF
  2474. cat >>confdefs.h <<_ACEOF
  2475. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2476. _ACEOF
  2477. cat >>confdefs.h <<_ACEOF
  2478. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2479. _ACEOF
  2480. cat >>confdefs.h <<_ACEOF
  2481. #define PACKAGE_STRING "$PACKAGE_STRING"
  2482. _ACEOF
  2483. cat >>confdefs.h <<_ACEOF
  2484. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2485. _ACEOF
  2486. cat >>confdefs.h <<_ACEOF
  2487. #define PACKAGE_URL "$PACKAGE_URL"
  2488. _ACEOF
  2489. # Let the site file select an alternate cache file if it wants to.
  2490. # Prefer an explicitly selected file to automatically selected ones.
  2491. ac_site_file1=NONE
  2492. ac_site_file2=NONE
  2493. if test -n "$CONFIG_SITE"; then
  2494. ac_site_file1=$CONFIG_SITE
  2495. elif test "x$prefix" != xNONE; then
  2496. ac_site_file1=$prefix/share/config.site
  2497. ac_site_file2=$prefix/etc/config.site
  2498. else
  2499. ac_site_file1=$ac_default_prefix/share/config.site
  2500. ac_site_file2=$ac_default_prefix/etc/config.site
  2501. fi
  2502. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2503. do
  2504. test "x$ac_site_file" = xNONE && continue
  2505. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2506. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2507. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2508. sed 's/^/| /' "$ac_site_file" >&5
  2509. . "$ac_site_file"
  2510. fi
  2511. done
  2512. if test -r "$cache_file"; then
  2513. # Some versions of bash will fail to source /dev/null (special files
  2514. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2515. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2516. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2517. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2518. case $cache_file in
  2519. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2520. *) . "./$cache_file";;
  2521. esac
  2522. fi
  2523. else
  2524. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2525. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2526. >$cache_file
  2527. fi
  2528. gt_needs="$gt_needs "
  2529. as_fn_append ac_header_list " stdlib.h"
  2530. as_fn_append ac_header_list " unistd.h"
  2531. as_fn_append ac_header_list " sys/param.h"
  2532. as_fn_append ac_header_list " sys/time.h"
  2533. as_fn_append ac_func_list " alarm"
  2534. # Check that the precious variables saved in the cache have kept the same
  2535. # value.
  2536. ac_cache_corrupted=false
  2537. for ac_var in $ac_precious_vars; do
  2538. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2539. eval ac_new_set=\$ac_env_${ac_var}_set
  2540. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2541. eval ac_new_val=\$ac_env_${ac_var}_value
  2542. case $ac_old_set,$ac_new_set in
  2543. set,)
  2544. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2545. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2546. ac_cache_corrupted=: ;;
  2547. ,set)
  2548. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2549. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2550. ac_cache_corrupted=: ;;
  2551. ,);;
  2552. *)
  2553. if test "x$ac_old_val" != "x$ac_new_val"; then
  2554. # differences in whitespace do not lead to failure.
  2555. ac_old_val_w=`echo x $ac_old_val`
  2556. ac_new_val_w=`echo x $ac_new_val`
  2557. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2558. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2559. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2560. ac_cache_corrupted=:
  2561. else
  2562. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2563. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2564. eval $ac_var=\$ac_old_val
  2565. fi
  2566. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2567. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2568. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2569. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2570. fi;;
  2571. esac
  2572. # Pass precious variables to config.status.
  2573. if test "$ac_new_set" = set; then
  2574. case $ac_new_val in
  2575. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2576. *) ac_arg=$ac_var=$ac_new_val ;;
  2577. esac
  2578. case " $ac_configure_args " in
  2579. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2580. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2581. esac
  2582. fi
  2583. done
  2584. if $ac_cache_corrupted; then
  2585. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2586. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2587. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2588. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2589. as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2590. fi
  2591. ## -------------------- ##
  2592. ## Main body of script. ##
  2593. ## -------------------- ##
  2594. ac_ext=c
  2595. ac_cpp='$CPP $CPPFLAGS'
  2596. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2597. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2598. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2599. ac_aux_dir=
  2600. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2601. for ac_t in install-sh install.sh shtool; do
  2602. if test -f "$ac_dir/$ac_t"; then
  2603. ac_aux_dir=$ac_dir
  2604. ac_install_sh="$ac_aux_dir/$ac_t -c"
  2605. break 2
  2606. fi
  2607. done
  2608. done
  2609. if test -z "$ac_aux_dir"; then
  2610. as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2611. fi
  2612. # These three variables are undocumented and unsupported,
  2613. # and are intended to be withdrawn in a future Autoconf release.
  2614. # They can cause serious problems if a builder's source tree is in a directory
  2615. # whose full name contains unusual characters.
  2616. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2617. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2618. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2619. # Make sure we can run config.sub.
  2620. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2621. as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2623. $as_echo_n "checking build system type... " >&6; }
  2624. if test "${ac_cv_build+set}" = set; then :
  2625. $as_echo_n "(cached) " >&6
  2626. else
  2627. ac_build_alias=$build_alias
  2628. test "x$ac_build_alias" = x &&
  2629. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2630. test "x$ac_build_alias" = x &&
  2631. as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  2632. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2633. as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2634. fi
  2635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2636. $as_echo "$ac_cv_build" >&6; }
  2637. case $ac_cv_build in
  2638. *-*-*) ;;
  2639. *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  2640. esac
  2641. build=$ac_cv_build
  2642. ac_save_IFS=$IFS; IFS='-'
  2643. set x $ac_cv_build
  2644. shift
  2645. build_cpu=$1
  2646. build_vendor=$2
  2647. shift; shift
  2648. # Remember, the first character of IFS is used to create $*,
  2649. # except with old shells:
  2650. build_os=$*
  2651. IFS=$ac_save_IFS
  2652. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2654. $as_echo_n "checking host system type... " >&6; }
  2655. if test "${ac_cv_host+set}" = set; then :
  2656. $as_echo_n "(cached) " >&6
  2657. else
  2658. if test "x$host_alias" = x; then
  2659. ac_cv_host=$ac_cv_build
  2660. else
  2661. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2662. as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2663. fi
  2664. fi
  2665. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2666. $as_echo "$ac_cv_host" >&6; }
  2667. case $ac_cv_host in
  2668. *-*-*) ;;
  2669. *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  2670. esac
  2671. host=$ac_cv_host
  2672. ac_save_IFS=$IFS; IFS='-'
  2673. set x $ac_cv_host
  2674. shift
  2675. host_cpu=$1
  2676. host_vendor=$2
  2677. shift; shift
  2678. # Remember, the first character of IFS is used to create $*,
  2679. # except with old shells:
  2680. host_os=$*
  2681. IFS=$ac_save_IFS
  2682. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2683. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2684. $as_echo_n "checking target system type... " >&6; }
  2685. if test "${ac_cv_target+set}" = set; then :
  2686. $as_echo_n "(cached) " >&6
  2687. else
  2688. if test "x$target_alias" = x; then
  2689. ac_cv_target=$ac_cv_host
  2690. else
  2691. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2692. as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2693. fi
  2694. fi
  2695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2696. $as_echo "$ac_cv_target" >&6; }
  2697. case $ac_cv_target in
  2698. *-*-*) ;;
  2699. *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
  2700. esac
  2701. target=$ac_cv_target
  2702. ac_save_IFS=$IFS; IFS='-'
  2703. set x $ac_cv_target
  2704. shift
  2705. target_cpu=$1
  2706. target_vendor=$2
  2707. shift; shift
  2708. # Remember, the first character of IFS is used to create $*,
  2709. # except with old shells:
  2710. target_os=$*
  2711. IFS=$ac_save_IFS
  2712. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2713. # The aliases save the names the user supplied, while $host etc.
  2714. # will get canonicalized.
  2715. test -n "$target_alias" &&
  2716. test "$program_prefix$program_suffix$program_transform_name" = \
  2717. NONENONEs,x,x, &&
  2718. program_prefix=${target_alias}-
  2719. am__api_version='1.11'
  2720. # Find a good install program. We prefer a C program (faster),
  2721. # so one script is as good as another. But avoid the broken or
  2722. # incompatible versions:
  2723. # SysV /etc/install, /usr/sbin/install
  2724. # SunOS /usr/etc/install
  2725. # IRIX /sbin/install
  2726. # AIX /bin/install
  2727. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2728. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2729. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2730. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2731. # OS/2's system install, which has a completely different semantic
  2732. # ./install, which can be erroneously created by make from ./install.sh.
  2733. # Reject install programs that cannot install multiple files.
  2734. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2735. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2736. if test -z "$INSTALL"; then
  2737. if test "${ac_cv_path_install+set}" = set; then :
  2738. $as_echo_n "(cached) " >&6
  2739. else
  2740. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2741. for as_dir in $PATH
  2742. do
  2743. IFS=$as_save_IFS
  2744. test -z "$as_dir" && as_dir=.
  2745. # Account for people who put trailing slashes in PATH elements.
  2746. case $as_dir/ in #((
  2747. ./ | .// | /[cC]/* | \
  2748. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2749. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2750. /usr/ucb/* ) ;;
  2751. *)
  2752. # OSF1 and SCO ODT 3.0 have their own names for install.
  2753. # Don't use installbsd from OSF since it installs stuff as root
  2754. # by default.
  2755. for ac_prog in ginstall scoinst install; do
  2756. for ac_exec_ext in '' $ac_executable_extensions; do
  2757. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2758. if test $ac_prog = install &&
  2759. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2760. # AIX install. It has an incompatible calling convention.
  2761. :
  2762. elif test $ac_prog = install &&
  2763. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2764. # program-specific install script used by HP pwplus--don't use.
  2765. :
  2766. else
  2767. rm -rf conftest.one conftest.two conftest.dir
  2768. echo one > conftest.one
  2769. echo two > conftest.two
  2770. mkdir conftest.dir
  2771. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2772. test -s conftest.one && test -s conftest.two &&
  2773. test -s conftest.dir/conftest.one &&
  2774. test -s conftest.dir/conftest.two
  2775. then
  2776. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2777. break 3
  2778. fi
  2779. fi
  2780. fi
  2781. done
  2782. done
  2783. ;;
  2784. esac
  2785. done
  2786. IFS=$as_save_IFS
  2787. rm -rf conftest.one conftest.two conftest.dir
  2788. fi
  2789. if test "${ac_cv_path_install+set}" = set; then
  2790. INSTALL=$ac_cv_path_install
  2791. else
  2792. # As a last resort, use the slow shell script. Don't cache a
  2793. # value for INSTALL within a source directory, because that will
  2794. # break other packages using the cache if that directory is
  2795. # removed, or if the value is a relative name.
  2796. INSTALL=$ac_install_sh
  2797. fi
  2798. fi
  2799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2800. $as_echo "$INSTALL" >&6; }
  2801. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2802. # It thinks the first close brace ends the variable substitution.
  2803. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2804. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2805. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2806. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2807. $as_echo_n "checking whether build environment is sane... " >&6; }
  2808. # Just in case
  2809. sleep 1
  2810. echo timestamp > conftest.file
  2811. # Reject unsafe characters in $srcdir or the absolute working directory
  2812. # name. Accept space and tab only in the latter.
  2813. am_lf='
  2814. '
  2815. case `pwd` in
  2816. *[\\\"\#\$\&\'\`$am_lf]*)
  2817. as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
  2818. esac
  2819. case $srcdir in
  2820. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2821. as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  2822. esac
  2823. # Do `set' in a subshell so we don't clobber the current shell's
  2824. # arguments. Must try -L first in case configure is actually a
  2825. # symlink; some systems play weird games with the mod time of symlinks
  2826. # (eg FreeBSD returns the mod time of the symlink's containing
  2827. # directory).
  2828. if (
  2829. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2830. if test "$*" = "X"; then
  2831. # -L didn't work.
  2832. set X `ls -t "$srcdir/configure" conftest.file`
  2833. fi
  2834. rm -f conftest.file
  2835. if test "$*" != "X $srcdir/configure conftest.file" \
  2836. && test "$*" != "X conftest.file $srcdir/configure"; then
  2837. # If neither matched, then we have a broken ls. This can happen
  2838. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2839. # broken ls alias from the environment. This has actually
  2840. # happened. Such a system could not be considered "sane".
  2841. as_fn_error "ls -t appears to fail. Make sure there is not a broken
  2842. alias in your environment" "$LINENO" 5
  2843. fi
  2844. test "$2" = conftest.file
  2845. )
  2846. then
  2847. # Ok.
  2848. :
  2849. else
  2850. as_fn_error "newly created file is older than distributed files!
  2851. Check your system clock" "$LINENO" 5
  2852. fi
  2853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2854. $as_echo "yes" >&6; }
  2855. test "$program_prefix" != NONE &&
  2856. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2857. # Use a double $ so make ignores it.
  2858. test "$program_suffix" != NONE &&
  2859. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2860. # Double any \ or $.
  2861. # By default was `s,x,x', remove it if useless.
  2862. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2863. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2864. # expand $ac_aux_dir to an absolute path
  2865. am_aux_dir=`cd $ac_aux_dir && pwd`
  2866. if test x"${MISSING+set}" != xset; then
  2867. case $am_aux_dir in
  2868. *\ * | *\ *)
  2869. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2870. *)
  2871. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2872. esac
  2873. fi
  2874. # Use eval to expand $SHELL
  2875. if eval "$MISSING --run true"; then
  2876. am_missing_run="$MISSING --run "
  2877. else
  2878. am_missing_run=
  2879. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  2880. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2881. fi
  2882. if test x"${install_sh}" != xset; then
  2883. case $am_aux_dir in
  2884. *\ * | *\ *)
  2885. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2886. *)
  2887. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2888. esac
  2889. fi
  2890. # Installed binaries are usually stripped using `strip' when the user
  2891. # run `make install-strip'. However `strip' might not be the right
  2892. # tool to use in cross-compilation environments, therefore Automake
  2893. # will honor the `STRIP' environment variable to overrule this program.
  2894. if test "$cross_compiling" != no; then
  2895. if test -n "$ac_tool_prefix"; then
  2896. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2897. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2898. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2899. $as_echo_n "checking for $ac_word... " >&6; }
  2900. if test "${ac_cv_prog_STRIP+set}" = set; then :
  2901. $as_echo_n "(cached) " >&6
  2902. else
  2903. if test -n "$STRIP"; then
  2904. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2905. else
  2906. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2907. for as_dir in $PATH
  2908. do
  2909. IFS=$as_save_IFS
  2910. test -z "$as_dir" && as_dir=.
  2911. for ac_exec_ext in '' $ac_executable_extensions; do
  2912. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2913. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2914. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2915. break 2
  2916. fi
  2917. done
  2918. done
  2919. IFS=$as_save_IFS
  2920. fi
  2921. fi
  2922. STRIP=$ac_cv_prog_STRIP
  2923. if test -n "$STRIP"; then
  2924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2925. $as_echo "$STRIP" >&6; }
  2926. else
  2927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2928. $as_echo "no" >&6; }
  2929. fi
  2930. fi
  2931. if test -z "$ac_cv_prog_STRIP"; then
  2932. ac_ct_STRIP=$STRIP
  2933. # Extract the first word of "strip", so it can be a program name with args.
  2934. set dummy strip; ac_word=$2
  2935. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2936. $as_echo_n "checking for $ac_word... " >&6; }
  2937. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  2938. $as_echo_n "(cached) " >&6
  2939. else
  2940. if test -n "$ac_ct_STRIP"; then
  2941. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2942. else
  2943. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2944. for as_dir in $PATH
  2945. do
  2946. IFS=$as_save_IFS
  2947. test -z "$as_dir" && as_dir=.
  2948. for ac_exec_ext in '' $ac_executable_extensions; do
  2949. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2950. ac_cv_prog_ac_ct_STRIP="strip"
  2951. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2952. break 2
  2953. fi
  2954. done
  2955. done
  2956. IFS=$as_save_IFS
  2957. fi
  2958. fi
  2959. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2960. if test -n "$ac_ct_STRIP"; then
  2961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2962. $as_echo "$ac_ct_STRIP" >&6; }
  2963. else
  2964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2965. $as_echo "no" >&6; }
  2966. fi
  2967. if test "x$ac_ct_STRIP" = x; then
  2968. STRIP=":"
  2969. else
  2970. case $cross_compiling:$ac_tool_warned in
  2971. yes:)
  2972. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2973. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2974. ac_tool_warned=yes ;;
  2975. esac
  2976. STRIP=$ac_ct_STRIP
  2977. fi
  2978. else
  2979. STRIP="$ac_cv_prog_STRIP"
  2980. fi
  2981. fi
  2982. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2983. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2984. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2985. if test -z "$MKDIR_P"; then
  2986. if test "${ac_cv_path_mkdir+set}" = set; then :
  2987. $as_echo_n "(cached) " >&6
  2988. else
  2989. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2990. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2991. do
  2992. IFS=$as_save_IFS
  2993. test -z "$as_dir" && as_dir=.
  2994. for ac_prog in mkdir gmkdir; do
  2995. for ac_exec_ext in '' $ac_executable_extensions; do
  2996. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2997. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2998. 'mkdir (GNU coreutils) '* | \
  2999. 'mkdir (coreutils) '* | \
  3000. 'mkdir (fileutils) '4.1*)
  3001. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  3002. break 3;;
  3003. esac
  3004. done
  3005. done
  3006. done
  3007. IFS=$as_save_IFS
  3008. fi
  3009. test -d ./--version && rmdir ./--version
  3010. if test "${ac_cv_path_mkdir+set}" = set; then
  3011. MKDIR_P="$ac_cv_path_mkdir -p"
  3012. else
  3013. # As a last resort, use the slow shell script. Don't cache a
  3014. # value for MKDIR_P within a source directory, because that will
  3015. # break other packages using the cache if that directory is
  3016. # removed, or if the value is a relative name.
  3017. MKDIR_P="$ac_install_sh -d"
  3018. fi
  3019. fi
  3020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  3021. $as_echo "$MKDIR_P" >&6; }
  3022. mkdir_p="$MKDIR_P"
  3023. case $mkdir_p in
  3024. [\\/$]* | ?:[\\/]*) ;;
  3025. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  3026. esac
  3027. for ac_prog in gawk mawk nawk awk
  3028. do
  3029. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3030. set dummy $ac_prog; ac_word=$2
  3031. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3032. $as_echo_n "checking for $ac_word... " >&6; }
  3033. if test "${ac_cv_prog_AWK+set}" = set; then :
  3034. $as_echo_n "(cached) " >&6
  3035. else
  3036. if test -n "$AWK"; then
  3037. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3038. else
  3039. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3040. for as_dir in $PATH
  3041. do
  3042. IFS=$as_save_IFS
  3043. test -z "$as_dir" && as_dir=.
  3044. for ac_exec_ext in '' $ac_executable_extensions; do
  3045. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3046. ac_cv_prog_AWK="$ac_prog"
  3047. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3048. break 2
  3049. fi
  3050. done
  3051. done
  3052. IFS=$as_save_IFS
  3053. fi
  3054. fi
  3055. AWK=$ac_cv_prog_AWK
  3056. if test -n "$AWK"; then
  3057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  3058. $as_echo "$AWK" >&6; }
  3059. else
  3060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3061. $as_echo "no" >&6; }
  3062. fi
  3063. test -n "$AWK" && break
  3064. done
  3065. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3066. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3067. set x ${MAKE-make}
  3068. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3069. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  3070. $as_echo_n "(cached) " >&6
  3071. else
  3072. cat >conftest.make <<\_ACEOF
  3073. SHELL = /bin/sh
  3074. all:
  3075. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3076. _ACEOF
  3077. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  3078. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3079. *@@@%%%=?*=@@@%%%*)
  3080. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3081. *)
  3082. eval ac_cv_prog_make_${ac_make}_set=no;;
  3083. esac
  3084. rm -f conftest.make
  3085. fi
  3086. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3088. $as_echo "yes" >&6; }
  3089. SET_MAKE=
  3090. else
  3091. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3092. $as_echo "no" >&6; }
  3093. SET_MAKE="MAKE=${MAKE-make}"
  3094. fi
  3095. rm -rf .tst 2>/dev/null
  3096. mkdir .tst 2>/dev/null
  3097. if test -d .tst; then
  3098. am__leading_dot=.
  3099. else
  3100. am__leading_dot=_
  3101. fi
  3102. rmdir .tst 2>/dev/null
  3103. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  3104. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  3105. # is not polluted with repeated "-I."
  3106. am__isrc=' -I$(srcdir)'
  3107. # test to see if srcdir already configured
  3108. if test -f $srcdir/config.status; then
  3109. as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  3110. fi
  3111. fi
  3112. # test whether we have cygpath
  3113. if test -z "$CYGPATH_W"; then
  3114. if (cygpath --version) >/dev/null 2>/dev/null; then
  3115. CYGPATH_W='cygpath -w'
  3116. else
  3117. CYGPATH_W=echo
  3118. fi
  3119. fi
  3120. # Define the identity of the package.
  3121. PACKAGE='aria2'
  3122. VERSION='1.9.1'
  3123. cat >>confdefs.h <<_ACEOF
  3124. #define PACKAGE "$PACKAGE"
  3125. _ACEOF
  3126. cat >>confdefs.h <<_ACEOF
  3127. #define VERSION "$VERSION"
  3128. _ACEOF
  3129. # Some tools Automake needs.
  3130. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  3131. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  3132. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  3133. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  3134. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  3135. # We need awk for the "check" target. The system "awk" is bad on
  3136. # some platforms.
  3137. # Always define AMTAR for backward compatibility.
  3138. AMTAR=${AMTAR-"${am_missing_run}tar"}
  3139. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  3140. # Check whether --with-cppunit-prefix was given.
  3141. if test "${with_cppunit_prefix+set}" = set; then :
  3142. withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
  3143. else
  3144. cppunit_config_prefix=""
  3145. fi
  3146. # Check whether --with-cppunit-exec-prefix was given.
  3147. if test "${with_cppunit_exec_prefix+set}" = set; then :
  3148. withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
  3149. else
  3150. cppunit_config_exec_prefix=""
  3151. fi
  3152. if test x$cppunit_config_exec_prefix != x ; then
  3153. cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
  3154. if test x${CPPUNIT_CONFIG+set} != xset ; then
  3155. CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
  3156. fi
  3157. fi
  3158. if test x$cppunit_config_prefix != x ; then
  3159. cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
  3160. if test x${CPPUNIT_CONFIG+set} != xset ; then
  3161. CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
  3162. fi
  3163. fi
  3164. # Extract the first word of "cppunit-config", so it can be a program name with args.
  3165. set dummy cppunit-config; ac_word=$2
  3166. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3167. $as_echo_n "checking for $ac_word... " >&6; }
  3168. if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then :
  3169. $as_echo_n "(cached) " >&6
  3170. else
  3171. case $CPPUNIT_CONFIG in
  3172. [\\/]* | ?:[\\/]*)
  3173. ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
  3174. ;;
  3175. *)
  3176. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3177. for as_dir in $PATH
  3178. do
  3179. IFS=$as_save_IFS
  3180. test -z "$as_dir" && as_dir=.
  3181. for ac_exec_ext in '' $ac_executable_extensions; do
  3182. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3183. ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  3184. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3185. break 2
  3186. fi
  3187. done
  3188. done
  3189. IFS=$as_save_IFS
  3190. test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
  3191. ;;
  3192. esac
  3193. fi
  3194. CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
  3195. if test -n "$CPPUNIT_CONFIG"; then
  3196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPUNIT_CONFIG" >&5
  3197. $as_echo "$CPPUNIT_CONFIG" >&6; }
  3198. else
  3199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3200. $as_echo "no" >&6; }
  3201. fi
  3202. cppunit_version_min=1.10.2
  3203. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cppunit - version >= $cppunit_version_min" >&5
  3204. $as_echo_n "checking for Cppunit - version >= $cppunit_version_min... " >&6; }
  3205. no_cppunit=""
  3206. if test "$CPPUNIT_CONFIG" = "no" ; then
  3207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3208. $as_echo "no" >&6; }
  3209. no_cppunit=yes
  3210. else
  3211. CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
  3212. CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
  3213. cppunit_version=`$CPPUNIT_CONFIG --version`
  3214. cppunit_major_version=`echo $cppunit_version | \
  3215. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  3216. cppunit_minor_version=`echo $cppunit_version | \
  3217. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  3218. cppunit_micro_version=`echo $cppunit_version | \
  3219. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  3220. cppunit_major_min=`echo $cppunit_version_min | \
  3221. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  3222. if test "x${cppunit_major_min}" = "x" ; then
  3223. cppunit_major_min=0
  3224. fi
  3225. cppunit_minor_min=`echo $cppunit_version_min | \
  3226. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  3227. if test "x${cppunit_minor_min}" = "x" ; then
  3228. cppunit_minor_min=0
  3229. fi
  3230. cppunit_micro_min=`echo $cppunit_version_min | \
  3231. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  3232. if test "x${cppunit_micro_min}" = "x" ; then
  3233. cppunit_micro_min=0
  3234. fi
  3235. cppunit_version_proper=`expr \
  3236. $cppunit_major_version \> $cppunit_major_min \| \
  3237. $cppunit_major_version \= $cppunit_major_min \& \
  3238. $cppunit_minor_version \> $cppunit_minor_min \| \
  3239. $cppunit_major_version \= $cppunit_major_min \& \
  3240. $cppunit_minor_version \= $cppunit_minor_min \& \
  3241. $cppunit_micro_version \>= $cppunit_micro_min `
  3242. if test "$cppunit_version_proper" = "1" ; then
  3243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
  3244. $as_echo "$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
  3245. else
  3246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3247. $as_echo "no" >&6; }
  3248. no_cppunit=yes
  3249. fi
  3250. fi
  3251. if test "x$no_cppunit" = x ; then
  3252. :
  3253. else
  3254. CPPUNIT_CFLAGS=""
  3255. CPPUNIT_LIBS=""
  3256. :
  3257. fi
  3258. ac_config_headers="$ac_config_headers config.h"
  3259. case "$target" in
  3260. *mingw*|*cygwin*)
  3261. WINSOCK_LIBS="-lws2_32"
  3262. LIBS="-lws2_32 -lcrypto -lwsock32 -lgdi32 -lwinmm $LIBS"
  3263. ;;
  3264. esac
  3265. cat >>confdefs.h <<_ACEOF
  3266. #define TARGET "$target"
  3267. _ACEOF
  3268. # Checks for arguments.
  3269. # Check whether --with-gnutls was given.
  3270. if test "${with_gnutls+set}" = set; then :
  3271. withval=$with_gnutls; with_gnutls_requested=$withval with_gnutls=$withval
  3272. else
  3273. with_gnutls=yes
  3274. fi
  3275. # Check whether --with-openssl was given.
  3276. if test "${with_openssl+set}" = set; then :
  3277. withval=$with_openssl; with_openssl_requested=$withval with_openssl=$withval
  3278. else
  3279. with_openssl=yes
  3280. fi
  3281. # Check whether --with-sqlite3 was given.
  3282. if test "${with_sqlite3+set}" = set; then :
  3283. withval=$with_sqlite3; with_sqlite3_requested=$withval with_sqlite3=$withval
  3284. else
  3285. with_sqlite3=yes
  3286. fi
  3287. # Check whether --with-libxml2 was given.
  3288. if test "${with_libxml2+set}" = set; then :
  3289. withval=$with_libxml2; with_libxml2_requested=$withval with_libxml2=$withval
  3290. else
  3291. with_libxml2=yes
  3292. fi
  3293. # Check whether --with-libexpat was given.
  3294. if test "${with_libexpat+set}" = set; then :
  3295. withval=$with_libexpat; with_libexpat_requested=$withval with_libexpat=$withval
  3296. else
  3297. with_libexpat=yes
  3298. fi
  3299. # Check whether --with-libcares was given.
  3300. if test "${with_libcares+set}" = set; then :
  3301. withval=$with_libcares; with_libcares_requested=$withval with_libcares=$withval
  3302. else
  3303. with_libcares=yes
  3304. fi
  3305. # Check whether --with-libz was given.
  3306. if test "${with_libz+set}" = set; then :
  3307. withval=$with_libz; with_libz_requested=$withval with_libz=$withval
  3308. else
  3309. with_libz=yes
  3310. fi
  3311. # Check whether --enable-bittorrent was given.
  3312. if test "${enable_bittorrent+set}" = set; then :
  3313. enableval=$enable_bittorrent; enable_bittorrent_requested=$enableval enable_bittorrent=$enableval
  3314. else
  3315. enable_bittorrent=yes
  3316. fi
  3317. # Check whether --enable-metalink was given.
  3318. if test "${enable_metalink+set}" = set; then :
  3319. enableval=$enable_metalink; enable_metalink_requested=$enableval enable_metalink=$enableval
  3320. else
  3321. enable_metalink=yes
  3322. fi
  3323. # Check whether --enable-epoll was given.
  3324. if test "${enable_epoll+set}" = set; then :
  3325. enableval=$enable_epoll; enable_epoll_requested=$enableval enable_epoll=$enableval
  3326. else
  3327. enable_epoll=yes
  3328. fi
  3329. # Check whether --with-ca-bundle was given.
  3330. if test "${with_ca_bundle+set}" = set; then :
  3331. withval=$with_ca_bundle; ca_bundle=$withval
  3332. else
  3333. ca_bundle=""
  3334. fi
  3335. # Checks for programs.
  3336. ac_ext=cpp
  3337. ac_cpp='$CXXCPP $CPPFLAGS'
  3338. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3339. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3340. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3341. if test -z "$CXX"; then
  3342. if test -n "$CCC"; then
  3343. CXX=$CCC
  3344. else
  3345. if test -n "$ac_tool_prefix"; then
  3346. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3347. do
  3348. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3349. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3350. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3351. $as_echo_n "checking for $ac_word... " >&6; }
  3352. if test "${ac_cv_prog_CXX+set}" = set; then :
  3353. $as_echo_n "(cached) " >&6
  3354. else
  3355. if test -n "$CXX"; then
  3356. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  3357. else
  3358. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3359. for as_dir in $PATH
  3360. do
  3361. IFS=$as_save_IFS
  3362. test -z "$as_dir" && as_dir=.
  3363. for ac_exec_ext in '' $ac_executable_extensions; do
  3364. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3365. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  3366. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3367. break 2
  3368. fi
  3369. done
  3370. done
  3371. IFS=$as_save_IFS
  3372. fi
  3373. fi
  3374. CXX=$ac_cv_prog_CXX
  3375. if test -n "$CXX"; then
  3376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  3377. $as_echo "$CXX" >&6; }
  3378. else
  3379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3380. $as_echo "no" >&6; }
  3381. fi
  3382. test -n "$CXX" && break
  3383. done
  3384. fi
  3385. if test -z "$CXX"; then
  3386. ac_ct_CXX=$CXX
  3387. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3388. do
  3389. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3390. set dummy $ac_prog; ac_word=$2
  3391. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3392. $as_echo_n "checking for $ac_word... " >&6; }
  3393. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  3394. $as_echo_n "(cached) " >&6
  3395. else
  3396. if test -n "$ac_ct_CXX"; then
  3397. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  3398. else
  3399. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3400. for as_dir in $PATH
  3401. do
  3402. IFS=$as_save_IFS
  3403. test -z "$as_dir" && as_dir=.
  3404. for ac_exec_ext in '' $ac_executable_extensions; do
  3405. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3406. ac_cv_prog_ac_ct_CXX="$ac_prog"
  3407. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3408. break 2
  3409. fi
  3410. done
  3411. done
  3412. IFS=$as_save_IFS
  3413. fi
  3414. fi
  3415. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  3416. if test -n "$ac_ct_CXX"; then
  3417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  3418. $as_echo "$ac_ct_CXX" >&6; }
  3419. else
  3420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3421. $as_echo "no" >&6; }
  3422. fi
  3423. test -n "$ac_ct_CXX" && break
  3424. done
  3425. if test "x$ac_ct_CXX" = x; then
  3426. CXX="g++"
  3427. else
  3428. case $cross_compiling:$ac_tool_warned in
  3429. yes:)
  3430. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3431. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3432. ac_tool_warned=yes ;;
  3433. esac
  3434. CXX=$ac_ct_CXX
  3435. fi
  3436. fi
  3437. fi
  3438. fi
  3439. # Provide some information about the compiler.
  3440. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  3441. set X $ac_compile
  3442. ac_compiler=$2
  3443. for ac_option in --version -v -V -qversion; do
  3444. { { ac_try="$ac_compiler $ac_option >&5"
  3445. case "(($ac_try" in
  3446. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3447. *) ac_try_echo=$ac_try;;
  3448. esac
  3449. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3450. $as_echo "$ac_try_echo"; } >&5
  3451. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3452. ac_status=$?
  3453. if test -s conftest.err; then
  3454. sed '10a\
  3455. ... rest of stderr output deleted ...
  3456. 10q' conftest.err >conftest.er1
  3457. cat conftest.er1 >&5
  3458. fi
  3459. rm -f conftest.er1 conftest.err
  3460. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3461. test $ac_status = 0; }
  3462. done
  3463. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3464. /* end confdefs.h. */
  3465. int
  3466. main ()
  3467. {
  3468. ;
  3469. return 0;
  3470. }
  3471. _ACEOF
  3472. ac_clean_files_save=$ac_clean_files
  3473. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3474. # Try to create an executable without -o first, disregard a.out.
  3475. # It will help us diagnose broken compilers, and finding out an intuition
  3476. # of exeext.
  3477. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
  3478. $as_echo_n "checking whether the C++ compiler works... " >&6; }
  3479. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3480. # The possible output files:
  3481. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3482. ac_rmfiles=
  3483. for ac_file in $ac_files
  3484. do
  3485. case $ac_file in
  3486. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3487. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3488. esac
  3489. done
  3490. rm -f $ac_rmfiles
  3491. if { { ac_try="$ac_link_default"
  3492. case "(($ac_try" in
  3493. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3494. *) ac_try_echo=$ac_try;;
  3495. esac
  3496. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3497. $as_echo "$ac_try_echo"; } >&5
  3498. (eval "$ac_link_default") 2>&5
  3499. ac_status=$?
  3500. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3501. test $ac_status = 0; }; then :
  3502. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3503. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3504. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3505. # so that the user can short-circuit this test for compilers unknown to
  3506. # Autoconf.
  3507. for ac_file in $ac_files ''
  3508. do
  3509. test -f "$ac_file" || continue
  3510. case $ac_file in
  3511. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3512. ;;
  3513. [ab].out )
  3514. # We found the default executable, but exeext='' is most
  3515. # certainly right.
  3516. break;;
  3517. *.* )
  3518. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3519. then :; else
  3520. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3521. fi
  3522. # We set ac_cv_exeext here because the later test for it is not
  3523. # safe: cross compilers may not add the suffix if given an `-o'
  3524. # argument, so we may need to know it at that point already.
  3525. # Even if this section looks crufty: it has the advantage of
  3526. # actually working.
  3527. break;;
  3528. * )
  3529. break;;
  3530. esac
  3531. done
  3532. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3533. else
  3534. ac_file=''
  3535. fi
  3536. if test -z "$ac_file"; then :
  3537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3538. $as_echo "no" >&6; }
  3539. $as_echo "$as_me: failed program was:" >&5
  3540. sed 's/^/| /' conftest.$ac_ext >&5
  3541. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3542. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3543. { as_fn_set_status 77
  3544. as_fn_error "C++ compiler cannot create executables
  3545. See \`config.log' for more details." "$LINENO" 5; }; }
  3546. else
  3547. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3548. $as_echo "yes" >&6; }
  3549. fi
  3550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
  3551. $as_echo_n "checking for C++ compiler default output file name... " >&6; }
  3552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3553. $as_echo "$ac_file" >&6; }
  3554. ac_exeext=$ac_cv_exeext
  3555. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3556. ac_clean_files=$ac_clean_files_save
  3557. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3558. $as_echo_n "checking for suffix of executables... " >&6; }
  3559. if { { ac_try="$ac_link"
  3560. case "(($ac_try" in
  3561. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3562. *) ac_try_echo=$ac_try;;
  3563. esac
  3564. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3565. $as_echo "$ac_try_echo"; } >&5
  3566. (eval "$ac_link") 2>&5
  3567. ac_status=$?
  3568. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3569. test $ac_status = 0; }; then :
  3570. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3571. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3572. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3573. # `rm'.
  3574. for ac_file in conftest.exe conftest conftest.*; do
  3575. test -f "$ac_file" || continue
  3576. case $ac_file in
  3577. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3578. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3579. break;;
  3580. * ) break;;
  3581. esac
  3582. done
  3583. else
  3584. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3585. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3586. as_fn_error "cannot compute suffix of executables: cannot compile and link
  3587. See \`config.log' for more details." "$LINENO" 5; }
  3588. fi
  3589. rm -f conftest conftest$ac_cv_exeext
  3590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3591. $as_echo "$ac_cv_exeext" >&6; }
  3592. rm -f conftest.$ac_ext
  3593. EXEEXT=$ac_cv_exeext
  3594. ac_exeext=$EXEEXT
  3595. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3596. /* end confdefs.h. */
  3597. #include <stdio.h>
  3598. int
  3599. main ()
  3600. {
  3601. FILE *f = fopen ("conftest.out", "w");
  3602. return ferror (f) || fclose (f) != 0;
  3603. ;
  3604. return 0;
  3605. }
  3606. _ACEOF
  3607. ac_clean_files="$ac_clean_files conftest.out"
  3608. # Check that the compiler produces executables we can run. If not, either
  3609. # the compiler is broken, or we cross compile.
  3610. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3611. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3612. if test "$cross_compiling" != yes; then
  3613. { { ac_try="$ac_link"
  3614. case "(($ac_try" in
  3615. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3616. *) ac_try_echo=$ac_try;;
  3617. esac
  3618. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3619. $as_echo "$ac_try_echo"; } >&5
  3620. (eval "$ac_link") 2>&5
  3621. ac_status=$?
  3622. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3623. test $ac_status = 0; }
  3624. if { ac_try='./conftest$ac_cv_exeext'
  3625. { { case "(($ac_try" in
  3626. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3627. *) ac_try_echo=$ac_try;;
  3628. esac
  3629. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3630. $as_echo "$ac_try_echo"; } >&5
  3631. (eval "$ac_try") 2>&5
  3632. ac_status=$?
  3633. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3634. test $ac_status = 0; }; }; then
  3635. cross_compiling=no
  3636. else
  3637. if test "$cross_compiling" = maybe; then
  3638. cross_compiling=yes
  3639. else
  3640. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3641. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3642. as_fn_error "cannot run C++ compiled programs.
  3643. If you meant to cross compile, use \`--host'.
  3644. See \`config.log' for more details." "$LINENO" 5; }
  3645. fi
  3646. fi
  3647. fi
  3648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3649. $as_echo "$cross_compiling" >&6; }
  3650. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3651. ac_clean_files=$ac_clean_files_save
  3652. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3653. $as_echo_n "checking for suffix of object files... " >&6; }
  3654. if test "${ac_cv_objext+set}" = set; then :
  3655. $as_echo_n "(cached) " >&6
  3656. else
  3657. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3658. /* end confdefs.h. */
  3659. int
  3660. main ()
  3661. {
  3662. ;
  3663. return 0;
  3664. }
  3665. _ACEOF
  3666. rm -f conftest.o conftest.obj
  3667. if { { ac_try="$ac_compile"
  3668. case "(($ac_try" in
  3669. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3670. *) ac_try_echo=$ac_try;;
  3671. esac
  3672. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3673. $as_echo "$ac_try_echo"; } >&5
  3674. (eval "$ac_compile") 2>&5
  3675. ac_status=$?
  3676. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3677. test $ac_status = 0; }; then :
  3678. for ac_file in conftest.o conftest.obj conftest.*; do
  3679. test -f "$ac_file" || continue;
  3680. case $ac_file in
  3681. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3682. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3683. break;;
  3684. esac
  3685. done
  3686. else
  3687. $as_echo "$as_me: failed program was:" >&5
  3688. sed 's/^/| /' conftest.$ac_ext >&5
  3689. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3690. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3691. as_fn_error "cannot compute suffix of object files: cannot compile
  3692. See \`config.log' for more details." "$LINENO" 5; }
  3693. fi
  3694. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3695. fi
  3696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3697. $as_echo "$ac_cv_objext" >&6; }
  3698. OBJEXT=$ac_cv_objext
  3699. ac_objext=$OBJEXT
  3700. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  3701. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  3702. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  3703. $as_echo_n "(cached) " >&6
  3704. else
  3705. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3706. /* end confdefs.h. */
  3707. int
  3708. main ()
  3709. {
  3710. #ifndef __GNUC__
  3711. choke me
  3712. #endif
  3713. ;
  3714. return 0;
  3715. }
  3716. _ACEOF
  3717. if ac_fn_cxx_try_compile "$LINENO"; then :
  3718. ac_compiler_gnu=yes
  3719. else
  3720. ac_compiler_gnu=no
  3721. fi
  3722. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3723. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3724. fi
  3725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  3726. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  3727. if test $ac_compiler_gnu = yes; then
  3728. GXX=yes
  3729. else
  3730. GXX=
  3731. fi
  3732. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3733. ac_save_CXXFLAGS=$CXXFLAGS
  3734. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  3735. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  3736. if test "${ac_cv_prog_cxx_g+set}" = set; then :
  3737. $as_echo_n "(cached) " >&6
  3738. else
  3739. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  3740. ac_cxx_werror_flag=yes
  3741. ac_cv_prog_cxx_g=no
  3742. CXXFLAGS="-g"
  3743. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3744. /* end confdefs.h. */
  3745. int
  3746. main ()
  3747. {
  3748. ;
  3749. return 0;
  3750. }
  3751. _ACEOF
  3752. if ac_fn_cxx_try_compile "$LINENO"; then :
  3753. ac_cv_prog_cxx_g=yes
  3754. else
  3755. CXXFLAGS=""
  3756. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3757. /* end confdefs.h. */
  3758. int
  3759. main ()
  3760. {
  3761. ;
  3762. return 0;
  3763. }
  3764. _ACEOF
  3765. if ac_fn_cxx_try_compile "$LINENO"; then :
  3766. else
  3767. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3768. CXXFLAGS="-g"
  3769. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3770. /* end confdefs.h. */
  3771. int
  3772. main ()
  3773. {
  3774. ;
  3775. return 0;
  3776. }
  3777. _ACEOF
  3778. if ac_fn_cxx_try_compile "$LINENO"; then :
  3779. ac_cv_prog_cxx_g=yes
  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. fi
  3785. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3786. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3787. fi
  3788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  3789. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  3790. if test "$ac_test_CXXFLAGS" = set; then
  3791. CXXFLAGS=$ac_save_CXXFLAGS
  3792. elif test $ac_cv_prog_cxx_g = yes; then
  3793. if test "$GXX" = yes; then
  3794. CXXFLAGS="-g -O2"
  3795. else
  3796. CXXFLAGS="-g"
  3797. fi
  3798. else
  3799. if test "$GXX" = yes; then
  3800. CXXFLAGS="-O2"
  3801. else
  3802. CXXFLAGS=
  3803. fi
  3804. fi
  3805. ac_ext=c
  3806. ac_cpp='$CPP $CPPFLAGS'
  3807. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3808. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3809. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3810. DEPDIR="${am__leading_dot}deps"
  3811. ac_config_commands="$ac_config_commands depfiles"
  3812. am_make=${MAKE-make}
  3813. cat > confinc << 'END'
  3814. am__doit:
  3815. @echo this is the am__doit target
  3816. .PHONY: am__doit
  3817. END
  3818. # If we don't find an include directive, just comment out the code.
  3819. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3820. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3821. am__include="#"
  3822. am__quote=
  3823. _am_result=none
  3824. # First try GNU make style include.
  3825. echo "include confinc" > confmf
  3826. # Ignore all kinds of additional output from `make'.
  3827. case `$am_make -s -f confmf 2> /dev/null` in #(
  3828. *the\ am__doit\ target*)
  3829. am__include=include
  3830. am__quote=
  3831. _am_result=GNU
  3832. ;;
  3833. esac
  3834. # Now try BSD make style include.
  3835. if test "$am__include" = "#"; then
  3836. echo '.include "confinc"' > confmf
  3837. case `$am_make -s -f confmf 2> /dev/null` in #(
  3838. *the\ am__doit\ target*)
  3839. am__include=.include
  3840. am__quote="\""
  3841. _am_result=BSD
  3842. ;;
  3843. esac
  3844. fi
  3845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3846. $as_echo "$_am_result" >&6; }
  3847. rm -f confinc confmf
  3848. # Check whether --enable-dependency-tracking was given.
  3849. if test "${enable_dependency_tracking+set}" = set; then :
  3850. enableval=$enable_dependency_tracking;
  3851. fi
  3852. if test "x$enable_dependency_tracking" != xno; then
  3853. am_depcomp="$ac_aux_dir/depcomp"
  3854. AMDEPBACKSLASH='\'
  3855. fi
  3856. if test "x$enable_dependency_tracking" != xno; then
  3857. AMDEP_TRUE=
  3858. AMDEP_FALSE='#'
  3859. else
  3860. AMDEP_TRUE='#'
  3861. AMDEP_FALSE=
  3862. fi
  3863. depcc="$CXX" am_compiler_list=
  3864. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3865. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3866. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
  3867. $as_echo_n "(cached) " >&6
  3868. else
  3869. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3870. # We make a subdir and do the tests there. Otherwise we can end up
  3871. # making bogus files that we don't know about and never remove. For
  3872. # instance it was reported that on HP-UX the gcc test will end up
  3873. # making a dummy file named `D' -- because `-MD' means `put the output
  3874. # in D'.
  3875. mkdir conftest.dir
  3876. # Copy depcomp to subdir because otherwise we won't find it if we're
  3877. # using a relative directory.
  3878. cp "$am_depcomp" conftest.dir
  3879. cd conftest.dir
  3880. # We will build objects and dependencies in a subdirectory because
  3881. # it helps to detect inapplicable dependency modes. For instance
  3882. # both Tru64's cc and ICC support -MD to output dependencies as a
  3883. # side effect of compilation, but ICC will put the dependencies in
  3884. # the current directory while Tru64 will put them in the object
  3885. # directory.
  3886. mkdir sub
  3887. am_cv_CXX_dependencies_compiler_type=none
  3888. if test "$am_compiler_list" = ""; then
  3889. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3890. fi
  3891. am__universal=false
  3892. case " $depcc " in #(
  3893. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3894. esac
  3895. for depmode in $am_compiler_list; do
  3896. # Setup a source with many dependencies, because some compilers
  3897. # like to wrap large dependency lists on column 80 (with \), and
  3898. # we should not choose a depcomp mode which is confused by this.
  3899. #
  3900. # We need to recreate these files for each test, as the compiler may
  3901. # overwrite some of them when testing with obscure command lines.
  3902. # This happens at least with the AIX C compiler.
  3903. : > sub/conftest.c
  3904. for i in 1 2 3 4 5 6; do
  3905. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3906. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3907. # Solaris 8's {/usr,}/bin/sh.
  3908. touch sub/conftst$i.h
  3909. done
  3910. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3911. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3912. # mode. It turns out that the SunPro C++ compiler does not properly
  3913. # handle `-M -o', and we need to detect this. Also, some Intel
  3914. # versions had trouble with output in subdirs
  3915. am__obj=sub/conftest.${OBJEXT-o}
  3916. am__minus_obj="-o $am__obj"
  3917. case $depmode in
  3918. gcc)
  3919. # This depmode causes a compiler race in universal mode.
  3920. test "$am__universal" = false || continue
  3921. ;;
  3922. nosideeffect)
  3923. # after this tag, mechanisms are not by side-effect, so they'll
  3924. # only be used when explicitly requested
  3925. if test "x$enable_dependency_tracking" = xyes; then
  3926. continue
  3927. else
  3928. break
  3929. fi
  3930. ;;
  3931. msvisualcpp | msvcmsys)
  3932. # This compiler won't grok `-c -o', but also, the minuso test has
  3933. # not run yet. These depmodes are late enough in the game, and
  3934. # so weak that their functioning should not be impacted.
  3935. am__obj=conftest.${OBJEXT-o}
  3936. am__minus_obj=
  3937. ;;
  3938. none) break ;;
  3939. esac
  3940. if depmode=$depmode \
  3941. source=sub/conftest.c object=$am__obj \
  3942. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3943. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3944. >/dev/null 2>conftest.err &&
  3945. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3946. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3947. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3948. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3949. # icc doesn't choke on unknown options, it will just issue warnings
  3950. # or remarks (even with -Werror). So we grep stderr for any message
  3951. # that says an option was ignored or not supported.
  3952. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3953. # icc: Command line warning: ignoring option '-M'; no argument required
  3954. # The diagnosis changed in icc 8.0:
  3955. # icc: Command line remark: option '-MP' not supported
  3956. if (grep 'ignoring option' conftest.err ||
  3957. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3958. am_cv_CXX_dependencies_compiler_type=$depmode
  3959. break
  3960. fi
  3961. fi
  3962. done
  3963. cd ..
  3964. rm -rf conftest.dir
  3965. else
  3966. am_cv_CXX_dependencies_compiler_type=none
  3967. fi
  3968. fi
  3969. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3970. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  3971. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3972. if
  3973. test "x$enable_dependency_tracking" != xno \
  3974. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3975. am__fastdepCXX_TRUE=
  3976. am__fastdepCXX_FALSE='#'
  3977. else
  3978. am__fastdepCXX_TRUE='#'
  3979. am__fastdepCXX_FALSE=
  3980. fi
  3981. ac_ext=c
  3982. ac_cpp='$CPP $CPPFLAGS'
  3983. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3984. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3985. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3986. if test -n "$ac_tool_prefix"; then
  3987. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3988. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3989. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3990. $as_echo_n "checking for $ac_word... " >&6; }
  3991. if test "${ac_cv_prog_CC+set}" = set; then :
  3992. $as_echo_n "(cached) " >&6
  3993. else
  3994. if test -n "$CC"; then
  3995. ac_cv_prog_CC="$CC" # Let the user override the test.
  3996. else
  3997. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3998. for as_dir in $PATH
  3999. do
  4000. IFS=$as_save_IFS
  4001. test -z "$as_dir" && as_dir=.
  4002. for ac_exec_ext in '' $ac_executable_extensions; do
  4003. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4004. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  4005. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4006. break 2
  4007. fi
  4008. done
  4009. done
  4010. IFS=$as_save_IFS
  4011. fi
  4012. fi
  4013. CC=$ac_cv_prog_CC
  4014. if test -n "$CC"; then
  4015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4016. $as_echo "$CC" >&6; }
  4017. else
  4018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4019. $as_echo "no" >&6; }
  4020. fi
  4021. fi
  4022. if test -z "$ac_cv_prog_CC"; then
  4023. ac_ct_CC=$CC
  4024. # Extract the first word of "gcc", so it can be a program name with args.
  4025. set dummy gcc; ac_word=$2
  4026. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4027. $as_echo_n "checking for $ac_word... " >&6; }
  4028. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  4029. $as_echo_n "(cached) " >&6
  4030. else
  4031. if test -n "$ac_ct_CC"; then
  4032. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4033. else
  4034. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4035. for as_dir in $PATH
  4036. do
  4037. IFS=$as_save_IFS
  4038. test -z "$as_dir" && as_dir=.
  4039. for ac_exec_ext in '' $ac_executable_extensions; do
  4040. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4041. ac_cv_prog_ac_ct_CC="gcc"
  4042. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4043. break 2
  4044. fi
  4045. done
  4046. done
  4047. IFS=$as_save_IFS
  4048. fi
  4049. fi
  4050. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4051. if test -n "$ac_ct_CC"; then
  4052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4053. $as_echo "$ac_ct_CC" >&6; }
  4054. else
  4055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4056. $as_echo "no" >&6; }
  4057. fi
  4058. if test "x$ac_ct_CC" = x; then
  4059. CC=""
  4060. else
  4061. case $cross_compiling:$ac_tool_warned in
  4062. yes:)
  4063. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4064. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4065. ac_tool_warned=yes ;;
  4066. esac
  4067. CC=$ac_ct_CC
  4068. fi
  4069. else
  4070. CC="$ac_cv_prog_CC"
  4071. fi
  4072. if test -z "$CC"; then
  4073. if test -n "$ac_tool_prefix"; then
  4074. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  4075. set dummy ${ac_tool_prefix}cc; ac_word=$2
  4076. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4077. $as_echo_n "checking for $ac_word... " >&6; }
  4078. if test "${ac_cv_prog_CC+set}" = set; then :
  4079. $as_echo_n "(cached) " >&6
  4080. else
  4081. if test -n "$CC"; then
  4082. ac_cv_prog_CC="$CC" # Let the user override the test.
  4083. else
  4084. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4085. for as_dir in $PATH
  4086. do
  4087. IFS=$as_save_IFS
  4088. test -z "$as_dir" && as_dir=.
  4089. for ac_exec_ext in '' $ac_executable_extensions; do
  4090. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4091. ac_cv_prog_CC="${ac_tool_prefix}cc"
  4092. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4093. break 2
  4094. fi
  4095. done
  4096. done
  4097. IFS=$as_save_IFS
  4098. fi
  4099. fi
  4100. CC=$ac_cv_prog_CC
  4101. if test -n "$CC"; then
  4102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4103. $as_echo "$CC" >&6; }
  4104. else
  4105. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4106. $as_echo "no" >&6; }
  4107. fi
  4108. fi
  4109. fi
  4110. if test -z "$CC"; then
  4111. # Extract the first word of "cc", so it can be a program name with args.
  4112. set dummy cc; ac_word=$2
  4113. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4114. $as_echo_n "checking for $ac_word... " >&6; }
  4115. if test "${ac_cv_prog_CC+set}" = set; then :
  4116. $as_echo_n "(cached) " >&6
  4117. else
  4118. if test -n "$CC"; then
  4119. ac_cv_prog_CC="$CC" # Let the user override the test.
  4120. else
  4121. ac_prog_rejected=no
  4122. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4123. for as_dir in $PATH
  4124. do
  4125. IFS=$as_save_IFS
  4126. test -z "$as_dir" && as_dir=.
  4127. for ac_exec_ext in '' $ac_executable_extensions; do
  4128. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4129. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  4130. ac_prog_rejected=yes
  4131. continue
  4132. fi
  4133. ac_cv_prog_CC="cc"
  4134. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4135. break 2
  4136. fi
  4137. done
  4138. done
  4139. IFS=$as_save_IFS
  4140. if test $ac_prog_rejected = yes; then
  4141. # We found a bogon in the path, so make sure we never use it.
  4142. set dummy $ac_cv_prog_CC
  4143. shift
  4144. if test $# != 0; then
  4145. # We chose a different compiler from the bogus one.
  4146. # However, it has the same basename, so the bogon will be chosen
  4147. # first if we set CC to just the basename; use the full file name.
  4148. shift
  4149. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  4150. fi
  4151. fi
  4152. fi
  4153. fi
  4154. CC=$ac_cv_prog_CC
  4155. if test -n "$CC"; then
  4156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4157. $as_echo "$CC" >&6; }
  4158. else
  4159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4160. $as_echo "no" >&6; }
  4161. fi
  4162. fi
  4163. if test -z "$CC"; then
  4164. if test -n "$ac_tool_prefix"; then
  4165. for ac_prog in cl.exe
  4166. do
  4167. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4168. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4169. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4170. $as_echo_n "checking for $ac_word... " >&6; }
  4171. if test "${ac_cv_prog_CC+set}" = set; then :
  4172. $as_echo_n "(cached) " >&6
  4173. else
  4174. if test -n "$CC"; then
  4175. ac_cv_prog_CC="$CC" # Let the user override the test.
  4176. else
  4177. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4178. for as_dir in $PATH
  4179. do
  4180. IFS=$as_save_IFS
  4181. test -z "$as_dir" && as_dir=.
  4182. for ac_exec_ext in '' $ac_executable_extensions; do
  4183. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4184. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  4185. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4186. break 2
  4187. fi
  4188. done
  4189. done
  4190. IFS=$as_save_IFS
  4191. fi
  4192. fi
  4193. CC=$ac_cv_prog_CC
  4194. if test -n "$CC"; then
  4195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4196. $as_echo "$CC" >&6; }
  4197. else
  4198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4199. $as_echo "no" >&6; }
  4200. fi
  4201. test -n "$CC" && break
  4202. done
  4203. fi
  4204. if test -z "$CC"; then
  4205. ac_ct_CC=$CC
  4206. for ac_prog in cl.exe
  4207. do
  4208. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4209. set dummy $ac_prog; ac_word=$2
  4210. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4211. $as_echo_n "checking for $ac_word... " >&6; }
  4212. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  4213. $as_echo_n "(cached) " >&6
  4214. else
  4215. if test -n "$ac_ct_CC"; then
  4216. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4217. else
  4218. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4219. for as_dir in $PATH
  4220. do
  4221. IFS=$as_save_IFS
  4222. test -z "$as_dir" && as_dir=.
  4223. for ac_exec_ext in '' $ac_executable_extensions; do
  4224. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4225. ac_cv_prog_ac_ct_CC="$ac_prog"
  4226. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4227. break 2
  4228. fi
  4229. done
  4230. done
  4231. IFS=$as_save_IFS
  4232. fi
  4233. fi
  4234. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4235. if test -n "$ac_ct_CC"; then
  4236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4237. $as_echo "$ac_ct_CC" >&6; }
  4238. else
  4239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4240. $as_echo "no" >&6; }
  4241. fi
  4242. test -n "$ac_ct_CC" && break
  4243. done
  4244. if test "x$ac_ct_CC" = x; then
  4245. CC=""
  4246. else
  4247. case $cross_compiling:$ac_tool_warned in
  4248. yes:)
  4249. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4250. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4251. ac_tool_warned=yes ;;
  4252. esac
  4253. CC=$ac_ct_CC
  4254. fi
  4255. fi
  4256. fi
  4257. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4258. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4259. as_fn_error "no acceptable C compiler found in \$PATH
  4260. See \`config.log' for more details." "$LINENO" 5; }
  4261. # Provide some information about the compiler.
  4262. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  4263. set X $ac_compile
  4264. ac_compiler=$2
  4265. for ac_option in --version -v -V -qversion; do
  4266. { { ac_try="$ac_compiler $ac_option >&5"
  4267. case "(($ac_try" in
  4268. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4269. *) ac_try_echo=$ac_try;;
  4270. esac
  4271. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4272. $as_echo "$ac_try_echo"; } >&5
  4273. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4274. ac_status=$?
  4275. if test -s conftest.err; then
  4276. sed '10a\
  4277. ... rest of stderr output deleted ...
  4278. 10q' conftest.err >conftest.er1
  4279. cat conftest.er1 >&5
  4280. fi
  4281. rm -f conftest.er1 conftest.err
  4282. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4283. test $ac_status = 0; }
  4284. done
  4285. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  4286. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4287. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  4288. $as_echo_n "(cached) " >&6
  4289. else
  4290. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4291. /* end confdefs.h. */
  4292. int
  4293. main ()
  4294. {
  4295. #ifndef __GNUC__
  4296. choke me
  4297. #endif
  4298. ;
  4299. return 0;
  4300. }
  4301. _ACEOF
  4302. if ac_fn_c_try_compile "$LINENO"; then :
  4303. ac_compiler_gnu=yes
  4304. else
  4305. ac_compiler_gnu=no
  4306. fi
  4307. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4308. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4309. fi
  4310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4311. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4312. if test $ac_compiler_gnu = yes; then
  4313. GCC=yes
  4314. else
  4315. GCC=
  4316. fi
  4317. ac_test_CFLAGS=${CFLAGS+set}
  4318. ac_save_CFLAGS=$CFLAGS
  4319. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4320. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4321. if test "${ac_cv_prog_cc_g+set}" = set; then :
  4322. $as_echo_n "(cached) " >&6
  4323. else
  4324. ac_save_c_werror_flag=$ac_c_werror_flag
  4325. ac_c_werror_flag=yes
  4326. ac_cv_prog_cc_g=no
  4327. CFLAGS="-g"
  4328. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4329. /* end confdefs.h. */
  4330. int
  4331. main ()
  4332. {
  4333. ;
  4334. return 0;
  4335. }
  4336. _ACEOF
  4337. if ac_fn_c_try_compile "$LINENO"; then :
  4338. ac_cv_prog_cc_g=yes
  4339. else
  4340. CFLAGS=""
  4341. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4342. /* end confdefs.h. */
  4343. int
  4344. main ()
  4345. {
  4346. ;
  4347. return 0;
  4348. }
  4349. _ACEOF
  4350. if ac_fn_c_try_compile "$LINENO"; then :
  4351. else
  4352. ac_c_werror_flag=$ac_save_c_werror_flag
  4353. CFLAGS="-g"
  4354. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4355. /* end confdefs.h. */
  4356. int
  4357. main ()
  4358. {
  4359. ;
  4360. return 0;
  4361. }
  4362. _ACEOF
  4363. if ac_fn_c_try_compile "$LINENO"; then :
  4364. ac_cv_prog_cc_g=yes
  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. fi
  4370. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4371. ac_c_werror_flag=$ac_save_c_werror_flag
  4372. fi
  4373. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4374. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4375. if test "$ac_test_CFLAGS" = set; then
  4376. CFLAGS=$ac_save_CFLAGS
  4377. elif test $ac_cv_prog_cc_g = yes; then
  4378. if test "$GCC" = yes; then
  4379. CFLAGS="-g -O2"
  4380. else
  4381. CFLAGS="-g"
  4382. fi
  4383. else
  4384. if test "$GCC" = yes; then
  4385. CFLAGS="-O2"
  4386. else
  4387. CFLAGS=
  4388. fi
  4389. fi
  4390. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4391. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4392. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  4393. $as_echo_n "(cached) " >&6
  4394. else
  4395. ac_cv_prog_cc_c89=no
  4396. ac_save_CC=$CC
  4397. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4398. /* end confdefs.h. */
  4399. #include <stdarg.h>
  4400. #include <stdio.h>
  4401. #include <sys/types.h>
  4402. #include <sys/stat.h>
  4403. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4404. struct buf { int x; };
  4405. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4406. static char *e (p, i)
  4407. char **p;
  4408. int i;
  4409. {
  4410. return p[i];
  4411. }
  4412. static char *f (char * (*g) (char **, int), char **p, ...)
  4413. {
  4414. char *s;
  4415. va_list v;
  4416. va_start (v,p);
  4417. s = g (p, va_arg (v,int));
  4418. va_end (v);
  4419. return s;
  4420. }
  4421. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4422. function prototypes and stuff, but not '\xHH' hex character constants.
  4423. These don't provoke an error unfortunately, instead are silently treated
  4424. as 'x'. The following induces an error, until -std is added to get
  4425. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4426. array size at least. It's necessary to write '\x00'==0 to get something
  4427. that's true only with -std. */
  4428. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4429. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4430. inside strings and character constants. */
  4431. #define FOO(x) 'x'
  4432. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4433. int test (int i, double x);
  4434. struct s1 {int (*f) (int a);};
  4435. struct s2 {int (*f) (double a);};
  4436. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4437. int argc;
  4438. char **argv;
  4439. int
  4440. main ()
  4441. {
  4442. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4443. ;
  4444. return 0;
  4445. }
  4446. _ACEOF
  4447. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4448. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4449. do
  4450. CC="$ac_save_CC $ac_arg"
  4451. if ac_fn_c_try_compile "$LINENO"; then :
  4452. ac_cv_prog_cc_c89=$ac_arg
  4453. fi
  4454. rm -f core conftest.err conftest.$ac_objext
  4455. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4456. done
  4457. rm -f conftest.$ac_ext
  4458. CC=$ac_save_CC
  4459. fi
  4460. # AC_CACHE_VAL
  4461. case "x$ac_cv_prog_cc_c89" in
  4462. x)
  4463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4464. $as_echo "none needed" >&6; } ;;
  4465. xno)
  4466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4467. $as_echo "unsupported" >&6; } ;;
  4468. *)
  4469. CC="$CC $ac_cv_prog_cc_c89"
  4470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4471. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4472. esac
  4473. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4474. fi
  4475. ac_ext=c
  4476. ac_cpp='$CPP $CPPFLAGS'
  4477. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4478. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4479. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4480. depcc="$CC" am_compiler_list=
  4481. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4482. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4483. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  4484. $as_echo_n "(cached) " >&6
  4485. else
  4486. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4487. # We make a subdir and do the tests there. Otherwise we can end up
  4488. # making bogus files that we don't know about and never remove. For
  4489. # instance it was reported that on HP-UX the gcc test will end up
  4490. # making a dummy file named `D' -- because `-MD' means `put the output
  4491. # in D'.
  4492. mkdir conftest.dir
  4493. # Copy depcomp to subdir because otherwise we won't find it if we're
  4494. # using a relative directory.
  4495. cp "$am_depcomp" conftest.dir
  4496. cd conftest.dir
  4497. # We will build objects and dependencies in a subdirectory because
  4498. # it helps to detect inapplicable dependency modes. For instance
  4499. # both Tru64's cc and ICC support -MD to output dependencies as a
  4500. # side effect of compilation, but ICC will put the dependencies in
  4501. # the current directory while Tru64 will put them in the object
  4502. # directory.
  4503. mkdir sub
  4504. am_cv_CC_dependencies_compiler_type=none
  4505. if test "$am_compiler_list" = ""; then
  4506. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4507. fi
  4508. am__universal=false
  4509. case " $depcc " in #(
  4510. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4511. esac
  4512. for depmode in $am_compiler_list; do
  4513. # Setup a source with many dependencies, because some compilers
  4514. # like to wrap large dependency lists on column 80 (with \), and
  4515. # we should not choose a depcomp mode which is confused by this.
  4516. #
  4517. # We need to recreate these files for each test, as the compiler may
  4518. # overwrite some of them when testing with obscure command lines.
  4519. # This happens at least with the AIX C compiler.
  4520. : > sub/conftest.c
  4521. for i in 1 2 3 4 5 6; do
  4522. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4523. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4524. # Solaris 8's {/usr,}/bin/sh.
  4525. touch sub/conftst$i.h
  4526. done
  4527. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4528. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4529. # mode. It turns out that the SunPro C++ compiler does not properly
  4530. # handle `-M -o', and we need to detect this. Also, some Intel
  4531. # versions had trouble with output in subdirs
  4532. am__obj=sub/conftest.${OBJEXT-o}
  4533. am__minus_obj="-o $am__obj"
  4534. case $depmode in
  4535. gcc)
  4536. # This depmode causes a compiler race in universal mode.
  4537. test "$am__universal" = false || continue
  4538. ;;
  4539. nosideeffect)
  4540. # after this tag, mechanisms are not by side-effect, so they'll
  4541. # only be used when explicitly requested
  4542. if test "x$enable_dependency_tracking" = xyes; then
  4543. continue
  4544. else
  4545. break
  4546. fi
  4547. ;;
  4548. msvisualcpp | msvcmsys)
  4549. # This compiler won't grok `-c -o', but also, the minuso test has
  4550. # not run yet. These depmodes are late enough in the game, and
  4551. # so weak that their functioning should not be impacted.
  4552. am__obj=conftest.${OBJEXT-o}
  4553. am__minus_obj=
  4554. ;;
  4555. none) break ;;
  4556. esac
  4557. if depmode=$depmode \
  4558. source=sub/conftest.c object=$am__obj \
  4559. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4560. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4561. >/dev/null 2>conftest.err &&
  4562. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4563. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4564. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4565. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4566. # icc doesn't choke on unknown options, it will just issue warnings
  4567. # or remarks (even with -Werror). So we grep stderr for any message
  4568. # that says an option was ignored or not supported.
  4569. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4570. # icc: Command line warning: ignoring option '-M'; no argument required
  4571. # The diagnosis changed in icc 8.0:
  4572. # icc: Command line remark: option '-MP' not supported
  4573. if (grep 'ignoring option' conftest.err ||
  4574. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4575. am_cv_CC_dependencies_compiler_type=$depmode
  4576. break
  4577. fi
  4578. fi
  4579. done
  4580. cd ..
  4581. rm -rf conftest.dir
  4582. else
  4583. am_cv_CC_dependencies_compiler_type=none
  4584. fi
  4585. fi
  4586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4587. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4588. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4589. if
  4590. test "x$enable_dependency_tracking" != xno \
  4591. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4592. am__fastdepCC_TRUE=
  4593. am__fastdepCC_FALSE='#'
  4594. else
  4595. am__fastdepCC_TRUE='#'
  4596. am__fastdepCC_FALSE=
  4597. fi
  4598. if test -n "$ac_tool_prefix"; then
  4599. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4600. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4601. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4602. $as_echo_n "checking for $ac_word... " >&6; }
  4603. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  4604. $as_echo_n "(cached) " >&6
  4605. else
  4606. if test -n "$RANLIB"; then
  4607. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4608. else
  4609. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4610. for as_dir in $PATH
  4611. do
  4612. IFS=$as_save_IFS
  4613. test -z "$as_dir" && as_dir=.
  4614. for ac_exec_ext in '' $ac_executable_extensions; do
  4615. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4616. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4617. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4618. break 2
  4619. fi
  4620. done
  4621. done
  4622. IFS=$as_save_IFS
  4623. fi
  4624. fi
  4625. RANLIB=$ac_cv_prog_RANLIB
  4626. if test -n "$RANLIB"; then
  4627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4628. $as_echo "$RANLIB" >&6; }
  4629. else
  4630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4631. $as_echo "no" >&6; }
  4632. fi
  4633. fi
  4634. if test -z "$ac_cv_prog_RANLIB"; then
  4635. ac_ct_RANLIB=$RANLIB
  4636. # Extract the first word of "ranlib", so it can be a program name with args.
  4637. set dummy ranlib; ac_word=$2
  4638. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4639. $as_echo_n "checking for $ac_word... " >&6; }
  4640. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  4641. $as_echo_n "(cached) " >&6
  4642. else
  4643. if test -n "$ac_ct_RANLIB"; then
  4644. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4645. else
  4646. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4647. for as_dir in $PATH
  4648. do
  4649. IFS=$as_save_IFS
  4650. test -z "$as_dir" && as_dir=.
  4651. for ac_exec_ext in '' $ac_executable_extensions; do
  4652. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4653. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4654. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4655. break 2
  4656. fi
  4657. done
  4658. done
  4659. IFS=$as_save_IFS
  4660. fi
  4661. fi
  4662. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4663. if test -n "$ac_ct_RANLIB"; then
  4664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4665. $as_echo "$ac_ct_RANLIB" >&6; }
  4666. else
  4667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4668. $as_echo "no" >&6; }
  4669. fi
  4670. if test "x$ac_ct_RANLIB" = x; then
  4671. RANLIB=":"
  4672. else
  4673. case $cross_compiling:$ac_tool_warned in
  4674. yes:)
  4675. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4676. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4677. ac_tool_warned=yes ;;
  4678. esac
  4679. RANLIB=$ac_ct_RANLIB
  4680. fi
  4681. else
  4682. RANLIB="$ac_cv_prog_RANLIB"
  4683. fi
  4684. for ac_prog in 'bison -y' byacc
  4685. do
  4686. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4687. set dummy $ac_prog; ac_word=$2
  4688. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4689. $as_echo_n "checking for $ac_word... " >&6; }
  4690. if test "${ac_cv_prog_YACC+set}" = set; then :
  4691. $as_echo_n "(cached) " >&6
  4692. else
  4693. if test -n "$YACC"; then
  4694. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  4695. else
  4696. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4697. for as_dir in $PATH
  4698. do
  4699. IFS=$as_save_IFS
  4700. test -z "$as_dir" && as_dir=.
  4701. for ac_exec_ext in '' $ac_executable_extensions; do
  4702. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4703. ac_cv_prog_YACC="$ac_prog"
  4704. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4705. break 2
  4706. fi
  4707. done
  4708. done
  4709. IFS=$as_save_IFS
  4710. fi
  4711. fi
  4712. YACC=$ac_cv_prog_YACC
  4713. if test -n "$YACC"; then
  4714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
  4715. $as_echo "$YACC" >&6; }
  4716. else
  4717. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4718. $as_echo "no" >&6; }
  4719. fi
  4720. test -n "$YACC" && break
  4721. done
  4722. test -n "$YACC" || YACC="yacc"
  4723. # Setting language choice
  4724. ac_ext=cpp
  4725. ac_cpp='$CXXCPP $CPPFLAGS'
  4726. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4727. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4728. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4729. # Enable system extensions
  4730. ac_ext=cpp
  4731. ac_cpp='$CXXCPP $CPPFLAGS'
  4732. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4733. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4734. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4735. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  4736. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  4737. if test -z "$CXXCPP"; then
  4738. if test "${ac_cv_prog_CXXCPP+set}" = set; then :
  4739. $as_echo_n "(cached) " >&6
  4740. else
  4741. # Double quotes because CXXCPP needs to be expanded
  4742. for CXXCPP in "$CXX -E" "/lib/cpp"
  4743. do
  4744. ac_preproc_ok=false
  4745. for ac_cxx_preproc_warn_flag in '' yes
  4746. do
  4747. # Use a header file that comes with gcc, so configuring glibc
  4748. # with a fresh cross-compiler works.
  4749. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4750. # <limits.h> exists even on freestanding compilers.
  4751. # On the NeXT, cc -E runs the code through the compiler's parser,
  4752. # not just through cpp. "Syntax error" is here to catch this case.
  4753. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4754. /* end confdefs.h. */
  4755. #ifdef __STDC__
  4756. # include <limits.h>
  4757. #else
  4758. # include <assert.h>
  4759. #endif
  4760. Syntax error
  4761. _ACEOF
  4762. if ac_fn_cxx_try_cpp "$LINENO"; then :
  4763. else
  4764. # Broken: fails on valid input.
  4765. continue
  4766. fi
  4767. rm -f conftest.err conftest.$ac_ext
  4768. # OK, works on sane cases. Now check whether nonexistent headers
  4769. # can be detected and how.
  4770. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4771. /* end confdefs.h. */
  4772. #include <ac_nonexistent.h>
  4773. _ACEOF
  4774. if ac_fn_cxx_try_cpp "$LINENO"; then :
  4775. # Broken: success on invalid input.
  4776. continue
  4777. else
  4778. # Passes both tests.
  4779. ac_preproc_ok=:
  4780. break
  4781. fi
  4782. rm -f conftest.err conftest.$ac_ext
  4783. done
  4784. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4785. rm -f conftest.err conftest.$ac_ext
  4786. if $ac_preproc_ok; then :
  4787. break
  4788. fi
  4789. done
  4790. ac_cv_prog_CXXCPP=$CXXCPP
  4791. fi
  4792. CXXCPP=$ac_cv_prog_CXXCPP
  4793. else
  4794. ac_cv_prog_CXXCPP=$CXXCPP
  4795. fi
  4796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  4797. $as_echo "$CXXCPP" >&6; }
  4798. ac_preproc_ok=false
  4799. for ac_cxx_preproc_warn_flag in '' yes
  4800. do
  4801. # Use a header file that comes with gcc, so configuring glibc
  4802. # with a fresh cross-compiler works.
  4803. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4804. # <limits.h> exists even on freestanding compilers.
  4805. # On the NeXT, cc -E runs the code through the compiler's parser,
  4806. # not just through cpp. "Syntax error" is here to catch this case.
  4807. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4808. /* end confdefs.h. */
  4809. #ifdef __STDC__
  4810. # include <limits.h>
  4811. #else
  4812. # include <assert.h>
  4813. #endif
  4814. Syntax error
  4815. _ACEOF
  4816. if ac_fn_cxx_try_cpp "$LINENO"; then :
  4817. else
  4818. # Broken: fails on valid input.
  4819. continue
  4820. fi
  4821. rm -f conftest.err conftest.$ac_ext
  4822. # OK, works on sane cases. Now check whether nonexistent headers
  4823. # can be detected and how.
  4824. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4825. /* end confdefs.h. */
  4826. #include <ac_nonexistent.h>
  4827. _ACEOF
  4828. if ac_fn_cxx_try_cpp "$LINENO"; then :
  4829. # Broken: success on invalid input.
  4830. continue
  4831. else
  4832. # Passes both tests.
  4833. ac_preproc_ok=:
  4834. break
  4835. fi
  4836. rm -f conftest.err conftest.$ac_ext
  4837. done
  4838. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4839. rm -f conftest.err conftest.$ac_ext
  4840. if $ac_preproc_ok; then :
  4841. else
  4842. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4843. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4844. as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
  4845. See \`config.log' for more details." "$LINENO" 5; }
  4846. fi
  4847. ac_ext=cpp
  4848. ac_cpp='$CXXCPP $CPPFLAGS'
  4849. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4850. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4851. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4852. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4853. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4854. if test "${ac_cv_path_GREP+set}" = set; then :
  4855. $as_echo_n "(cached) " >&6
  4856. else
  4857. if test -z "$GREP"; then
  4858. ac_path_GREP_found=false
  4859. # Loop through the user's path and test for each of PROGNAME-LIST
  4860. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4861. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4862. do
  4863. IFS=$as_save_IFS
  4864. test -z "$as_dir" && as_dir=.
  4865. for ac_prog in grep ggrep; do
  4866. for ac_exec_ext in '' $ac_executable_extensions; do
  4867. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4868. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4869. # Check for GNU ac_path_GREP and select it if it is found.
  4870. # Check for GNU $ac_path_GREP
  4871. case `"$ac_path_GREP" --version 2>&1` in
  4872. *GNU*)
  4873. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4874. *)
  4875. ac_count=0
  4876. $as_echo_n 0123456789 >"conftest.in"
  4877. while :
  4878. do
  4879. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4880. mv "conftest.tmp" "conftest.in"
  4881. cp "conftest.in" "conftest.nl"
  4882. $as_echo 'GREP' >> "conftest.nl"
  4883. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4884. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4885. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4886. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4887. # Best one so far, save it but keep looking for a better one
  4888. ac_cv_path_GREP="$ac_path_GREP"
  4889. ac_path_GREP_max=$ac_count
  4890. fi
  4891. # 10*(2^10) chars as input seems more than enough
  4892. test $ac_count -gt 10 && break
  4893. done
  4894. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4895. esac
  4896. $ac_path_GREP_found && break 3
  4897. done
  4898. done
  4899. done
  4900. IFS=$as_save_IFS
  4901. if test -z "$ac_cv_path_GREP"; then
  4902. as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4903. fi
  4904. else
  4905. ac_cv_path_GREP=$GREP
  4906. fi
  4907. fi
  4908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4909. $as_echo "$ac_cv_path_GREP" >&6; }
  4910. GREP="$ac_cv_path_GREP"
  4911. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4912. $as_echo_n "checking for egrep... " >&6; }
  4913. if test "${ac_cv_path_EGREP+set}" = set; then :
  4914. $as_echo_n "(cached) " >&6
  4915. else
  4916. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4917. then ac_cv_path_EGREP="$GREP -E"
  4918. else
  4919. if test -z "$EGREP"; then
  4920. ac_path_EGREP_found=false
  4921. # Loop through the user's path and test for each of PROGNAME-LIST
  4922. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4923. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4924. do
  4925. IFS=$as_save_IFS
  4926. test -z "$as_dir" && as_dir=.
  4927. for ac_prog in egrep; do
  4928. for ac_exec_ext in '' $ac_executable_extensions; do
  4929. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4930. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4931. # Check for GNU ac_path_EGREP and select it if it is found.
  4932. # Check for GNU $ac_path_EGREP
  4933. case `"$ac_path_EGREP" --version 2>&1` in
  4934. *GNU*)
  4935. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4936. *)
  4937. ac_count=0
  4938. $as_echo_n 0123456789 >"conftest.in"
  4939. while :
  4940. do
  4941. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4942. mv "conftest.tmp" "conftest.in"
  4943. cp "conftest.in" "conftest.nl"
  4944. $as_echo 'EGREP' >> "conftest.nl"
  4945. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4946. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4947. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4948. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4949. # Best one so far, save it but keep looking for a better one
  4950. ac_cv_path_EGREP="$ac_path_EGREP"
  4951. ac_path_EGREP_max=$ac_count
  4952. fi
  4953. # 10*(2^10) chars as input seems more than enough
  4954. test $ac_count -gt 10 && break
  4955. done
  4956. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4957. esac
  4958. $ac_path_EGREP_found && break 3
  4959. done
  4960. done
  4961. done
  4962. IFS=$as_save_IFS
  4963. if test -z "$ac_cv_path_EGREP"; then
  4964. as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4965. fi
  4966. else
  4967. ac_cv_path_EGREP=$EGREP
  4968. fi
  4969. fi
  4970. fi
  4971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4972. $as_echo "$ac_cv_path_EGREP" >&6; }
  4973. EGREP="$ac_cv_path_EGREP"
  4974. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4975. $as_echo_n "checking for ANSI C header files... " >&6; }
  4976. if test "${ac_cv_header_stdc+set}" = set; then :
  4977. $as_echo_n "(cached) " >&6
  4978. else
  4979. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4980. /* end confdefs.h. */
  4981. #include <stdlib.h>
  4982. #include <stdarg.h>
  4983. #include <string.h>
  4984. #include <float.h>
  4985. int
  4986. main ()
  4987. {
  4988. ;
  4989. return 0;
  4990. }
  4991. _ACEOF
  4992. if ac_fn_cxx_try_compile "$LINENO"; then :
  4993. ac_cv_header_stdc=yes
  4994. else
  4995. ac_cv_header_stdc=no
  4996. fi
  4997. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4998. if test $ac_cv_header_stdc = yes; then
  4999. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  5000. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5001. /* end confdefs.h. */
  5002. #include <string.h>
  5003. _ACEOF
  5004. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5005. $EGREP "memchr" >/dev/null 2>&1; then :
  5006. else
  5007. ac_cv_header_stdc=no
  5008. fi
  5009. rm -f conftest*
  5010. fi
  5011. if test $ac_cv_header_stdc = yes; then
  5012. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  5013. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5014. /* end confdefs.h. */
  5015. #include <stdlib.h>
  5016. _ACEOF
  5017. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5018. $EGREP "free" >/dev/null 2>&1; then :
  5019. else
  5020. ac_cv_header_stdc=no
  5021. fi
  5022. rm -f conftest*
  5023. fi
  5024. if test $ac_cv_header_stdc = yes; then
  5025. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  5026. if test "$cross_compiling" = yes; then :
  5027. :
  5028. else
  5029. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5030. /* end confdefs.h. */
  5031. #include <ctype.h>
  5032. #include <stdlib.h>
  5033. #if ((' ' & 0x0FF) == 0x020)
  5034. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  5035. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  5036. #else
  5037. # define ISLOWER(c) \
  5038. (('a' <= (c) && (c) <= 'i') \
  5039. || ('j' <= (c) && (c) <= 'r') \
  5040. || ('s' <= (c) && (c) <= 'z'))
  5041. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  5042. #endif
  5043. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  5044. int
  5045. main ()
  5046. {
  5047. int i;
  5048. for (i = 0; i < 256; i++)
  5049. if (XOR (islower (i), ISLOWER (i))
  5050. || toupper (i) != TOUPPER (i))
  5051. return 2;
  5052. return 0;
  5053. }
  5054. _ACEOF
  5055. if ac_fn_cxx_try_run "$LINENO"; then :
  5056. else
  5057. ac_cv_header_stdc=no
  5058. fi
  5059. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5060. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5061. fi
  5062. fi
  5063. fi
  5064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  5065. $as_echo "$ac_cv_header_stdc" >&6; }
  5066. if test $ac_cv_header_stdc = yes; then
  5067. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  5068. fi
  5069. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  5070. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  5071. inttypes.h stdint.h unistd.h
  5072. do :
  5073. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5074. ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  5075. "
  5076. eval as_val=\$$as_ac_Header
  5077. if test "x$as_val" = x""yes; then :
  5078. cat >>confdefs.h <<_ACEOF
  5079. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5080. _ACEOF
  5081. fi
  5082. done
  5083. ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  5084. if test "x$ac_cv_header_minix_config_h" = x""yes; then :
  5085. MINIX=yes
  5086. else
  5087. MINIX=
  5088. fi
  5089. if test "$MINIX" = yes; then
  5090. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  5091. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  5092. $as_echo "#define _MINIX 1" >>confdefs.h
  5093. fi
  5094. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  5095. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  5096. if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
  5097. $as_echo_n "(cached) " >&6
  5098. else
  5099. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5100. /* end confdefs.h. */
  5101. # define __EXTENSIONS__ 1
  5102. $ac_includes_default
  5103. int
  5104. main ()
  5105. {
  5106. ;
  5107. return 0;
  5108. }
  5109. _ACEOF
  5110. if ac_fn_cxx_try_compile "$LINENO"; then :
  5111. ac_cv_safe_to_define___extensions__=yes
  5112. else
  5113. ac_cv_safe_to_define___extensions__=no
  5114. fi
  5115. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5116. fi
  5117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  5118. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  5119. test $ac_cv_safe_to_define___extensions__ = yes &&
  5120. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  5121. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  5122. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  5123. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  5124. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  5125. # Check pkg-config is available
  5126. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  5127. if test -n "$ac_tool_prefix"; then
  5128. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  5129. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  5130. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5131. $as_echo_n "checking for $ac_word... " >&6; }
  5132. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
  5133. $as_echo_n "(cached) " >&6
  5134. else
  5135. case $PKG_CONFIG in
  5136. [\\/]* | ?:[\\/]*)
  5137. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  5138. ;;
  5139. *)
  5140. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5141. for as_dir in $PATH
  5142. do
  5143. IFS=$as_save_IFS
  5144. test -z "$as_dir" && as_dir=.
  5145. for ac_exec_ext in '' $ac_executable_extensions; do
  5146. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5147. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5148. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5149. break 2
  5150. fi
  5151. done
  5152. done
  5153. IFS=$as_save_IFS
  5154. ;;
  5155. esac
  5156. fi
  5157. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  5158. if test -n "$PKG_CONFIG"; then
  5159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  5160. $as_echo "$PKG_CONFIG" >&6; }
  5161. else
  5162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5163. $as_echo "no" >&6; }
  5164. fi
  5165. fi
  5166. if test -z "$ac_cv_path_PKG_CONFIG"; then
  5167. ac_pt_PKG_CONFIG=$PKG_CONFIG
  5168. # Extract the first word of "pkg-config", so it can be a program name with args.
  5169. set dummy pkg-config; ac_word=$2
  5170. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5171. $as_echo_n "checking for $ac_word... " >&6; }
  5172. if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
  5173. $as_echo_n "(cached) " >&6
  5174. else
  5175. case $ac_pt_PKG_CONFIG in
  5176. [\\/]* | ?:[\\/]*)
  5177. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  5178. ;;
  5179. *)
  5180. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5181. for as_dir in $PATH
  5182. do
  5183. IFS=$as_save_IFS
  5184. test -z "$as_dir" && as_dir=.
  5185. for ac_exec_ext in '' $ac_executable_extensions; do
  5186. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5187. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5188. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5189. break 2
  5190. fi
  5191. done
  5192. done
  5193. IFS=$as_save_IFS
  5194. ;;
  5195. esac
  5196. fi
  5197. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  5198. if test -n "$ac_pt_PKG_CONFIG"; then
  5199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  5200. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  5201. else
  5202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5203. $as_echo "no" >&6; }
  5204. fi
  5205. if test "x$ac_pt_PKG_CONFIG" = x; then
  5206. PKG_CONFIG=""
  5207. else
  5208. case $cross_compiling:$ac_tool_warned in
  5209. yes:)
  5210. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5211. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5212. ac_tool_warned=yes ;;
  5213. esac
  5214. PKG_CONFIG=$ac_pt_PKG_CONFIG
  5215. fi
  5216. else
  5217. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  5218. fi
  5219. fi
  5220. if test -n "$PKG_CONFIG"; then
  5221. _pkg_min_version=0.20
  5222. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  5223. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  5224. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  5225. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5226. $as_echo "yes" >&6; }
  5227. else
  5228. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5229. $as_echo "no" >&6; }
  5230. PKG_CONFIG=""
  5231. fi
  5232. fi
  5233. # Checks for libraries.
  5234. if test "x$with_libxml2" = "xyes"; then
  5235. # Check whether --with-xml-prefix was given.
  5236. if test "${with_xml_prefix+set}" = set; then :
  5237. withval=$with_xml_prefix; xml_config_prefix="$withval"
  5238. else
  5239. xml_config_prefix=""
  5240. fi
  5241. # Check whether --with-xml-exec-prefix was given.
  5242. if test "${with_xml_exec_prefix+set}" = set; then :
  5243. withval=$with_xml_exec_prefix; xml_config_exec_prefix="$withval"
  5244. else
  5245. xml_config_exec_prefix=""
  5246. fi
  5247. # Check whether --enable-xmltest was given.
  5248. if test "${enable_xmltest+set}" = set; then :
  5249. enableval=$enable_xmltest;
  5250. else
  5251. enable_xmltest=yes
  5252. fi
  5253. if test x$xml_config_exec_prefix != x ; then
  5254. xml_config_args="$xml_config_args"
  5255. if test x${XML2_CONFIG+set} != xset ; then
  5256. XML2_CONFIG=$xml_config_exec_prefix/bin/xml2-config
  5257. fi
  5258. fi
  5259. if test x$xml_config_prefix != x ; then
  5260. xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
  5261. if test x${XML2_CONFIG+set} != xset ; then
  5262. XML2_CONFIG=$xml_config_prefix/bin/xml2-config
  5263. fi
  5264. fi
  5265. # Extract the first word of "xml2-config", so it can be a program name with args.
  5266. set dummy xml2-config; ac_word=$2
  5267. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5268. $as_echo_n "checking for $ac_word... " >&6; }
  5269. if test "${ac_cv_path_XML2_CONFIG+set}" = set; then :
  5270. $as_echo_n "(cached) " >&6
  5271. else
  5272. case $XML2_CONFIG in
  5273. [\\/]* | ?:[\\/]*)
  5274. ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
  5275. ;;
  5276. *)
  5277. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5278. for as_dir in $PATH
  5279. do
  5280. IFS=$as_save_IFS
  5281. test -z "$as_dir" && as_dir=.
  5282. for ac_exec_ext in '' $ac_executable_extensions; do
  5283. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5284. ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5285. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5286. break 2
  5287. fi
  5288. done
  5289. done
  5290. IFS=$as_save_IFS
  5291. test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no"
  5292. ;;
  5293. esac
  5294. fi
  5295. XML2_CONFIG=$ac_cv_path_XML2_CONFIG
  5296. if test -n "$XML2_CONFIG"; then
  5297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5
  5298. $as_echo "$XML2_CONFIG" >&6; }
  5299. else
  5300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5301. $as_echo "no" >&6; }
  5302. fi
  5303. min_xml_version=2.6.24
  5304. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml - version >= $min_xml_version" >&5
  5305. $as_echo_n "checking for libxml - version >= $min_xml_version... " >&6; }
  5306. no_xml=""
  5307. if test "$XML2_CONFIG" = "no" ; then
  5308. no_xml=yes
  5309. else
  5310. XML_CPPFLAGS=`$XML2_CONFIG $xml_config_args --cflags`
  5311. XML_LIBS=`$XML2_CONFIG $xml_config_args --libs`
  5312. xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \
  5313. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  5314. xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \
  5315. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  5316. xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \
  5317. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  5318. if test "x$enable_xmltest" = "xyes" ; then
  5319. ac_save_CPPFLAGS="$CPPFLAGS"
  5320. ac_save_LIBS="$LIBS"
  5321. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  5322. LIBS="$XML_LIBS $LIBS"
  5323. rm -f conf.xmltest
  5324. if test "$cross_compiling" = yes; then :
  5325. echo $ac_n "cross compiling; assumed OK... $ac_c"
  5326. else
  5327. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5328. /* end confdefs.h. */
  5329. #include <stdlib.h>
  5330. #include <stdio.h>
  5331. #include <string.h>
  5332. #include <libxml/xmlversion.h>
  5333. int
  5334. main()
  5335. {
  5336. int xml_major_version, xml_minor_version, xml_micro_version;
  5337. int major, minor, micro;
  5338. char *tmp_version;
  5339. system("touch conf.xmltest");
  5340. /* Capture xml2-config output via autoconf/configure variables */
  5341. /* HP/UX 9 (%@#!) writes to sscanf strings */
  5342. tmp_version = (char *)strdup("$min_xml_version");
  5343. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  5344. printf("%s, bad version string from xml2-config\n", "$min_xml_version");
  5345. exit(1);
  5346. }
  5347. free(tmp_version);
  5348. /* Capture the version information from the header files */
  5349. tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);
  5350. if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
  5351. printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION");
  5352. exit(1);
  5353. }
  5354. free(tmp_version);
  5355. /* Compare xml2-config output to the libxml headers */
  5356. if ((xml_major_version != $xml_config_major_version) ||
  5357. (xml_minor_version != $xml_config_minor_version) ||
  5358. (xml_micro_version != $xml_config_micro_version))
  5359. {
  5360. printf("*** libxml header files (version %d.%d.%d) do not match\n",
  5361. xml_major_version, xml_minor_version, xml_micro_version);
  5362. printf("*** xml2-config (version %d.%d.%d)\n",
  5363. $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version);
  5364. return 1;
  5365. }
  5366. /* Compare the headers to the library to make sure we match */
  5367. /* Less than ideal -- doesn't provide us with return value feedback,
  5368. * only exits if there's a serious mismatch between header and library.
  5369. */
  5370. LIBXML_TEST_VERSION;
  5371. /* Test that the library is greater than our minimum version */
  5372. if ((xml_major_version > major) ||
  5373. ((xml_major_version == major) && (xml_minor_version > minor)) ||
  5374. ((xml_major_version == major) && (xml_minor_version == minor) &&
  5375. (xml_micro_version >= micro)))
  5376. {
  5377. return 0;
  5378. }
  5379. else
  5380. {
  5381. printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
  5382. xml_major_version, xml_minor_version, xml_micro_version);
  5383. printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
  5384. major, minor, micro);
  5385. printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n");
  5386. printf("***\n");
  5387. printf("*** If you have already installed a sufficiently new version, this error\n");
  5388. printf("*** probably means that the wrong copy of the xml2-config shell script is\n");
  5389. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  5390. printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
  5391. printf("*** correct copy of xml2-config. (In this case, you will have to\n");
  5392. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  5393. printf("*** so that the correct libraries are found at run-time))\n");
  5394. }
  5395. return 1;
  5396. }
  5397. _ACEOF
  5398. if ac_fn_cxx_try_run "$LINENO"; then :
  5399. else
  5400. no_xml=yes
  5401. fi
  5402. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5403. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5404. fi
  5405. CPPFLAGS="$ac_save_CPPFLAGS"
  5406. LIBS="$ac_save_LIBS"
  5407. fi
  5408. fi
  5409. if test "x$no_xml" = x ; then
  5410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&5
  5411. $as_echo "yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&6; }
  5412. have_libxml2=yes
  5413. else
  5414. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5415. $as_echo "no" >&6; }
  5416. if test "$XML2_CONFIG" = "no" ; then
  5417. echo "*** The xml2-config script installed by LIBXML could not be found"
  5418. echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
  5419. echo "*** your path, or set the XML2_CONFIG environment variable to the"
  5420. echo "*** full path to xml2-config."
  5421. else
  5422. if test -f conf.xmltest ; then
  5423. :
  5424. else
  5425. echo "*** Could not run libxml test program, checking why..."
  5426. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  5427. LIBS="$LIBS $XML_LIBS"
  5428. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5429. /* end confdefs.h. */
  5430. #include <libxml/xmlversion.h>
  5431. #include <stdio.h>
  5432. int
  5433. main ()
  5434. {
  5435. LIBXML_TEST_VERSION; return 0;
  5436. ;
  5437. return 0;
  5438. }
  5439. _ACEOF
  5440. if ac_fn_cxx_try_link "$LINENO"; then :
  5441. echo "*** The test program compiled, but did not run. This usually means"
  5442. echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
  5443. echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"
  5444. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  5445. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  5446. echo "*** is required on your system"
  5447. echo "***"
  5448. echo "*** If you have an old version installed, it is best to remove it, although"
  5449. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  5450. else
  5451. echo "*** The test program failed to compile or link. See the file config.log for the"
  5452. echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
  5453. echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
  5454. echo "*** may want to edit the xml2-config script: $XML2_CONFIG"
  5455. fi
  5456. rm -f core conftest.err conftest.$ac_objext \
  5457. conftest$ac_exeext conftest.$ac_ext
  5458. CPPFLAGS="$ac_save_CPPFLAGS"
  5459. LIBS="$ac_save_LIBS"
  5460. fi
  5461. fi
  5462. XML_CPPFLAGS=""
  5463. XML_LIBS=""
  5464. :
  5465. fi
  5466. rm -f conf.xmltest
  5467. if test "x$have_libxml2" = "xyes"; then
  5468. $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
  5469. elif test "x$with_libxml2_requested" = "xyes"; then
  5470. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5471. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5472. as_fn_error "libxml2 is requested but not found in the system.
  5473. See \`config.log' for more details." "$LINENO" 5; }
  5474. fi
  5475. fi
  5476. if test "x$with_libexpat" = "xyes" && test "x$have_libxml2" != "xyes"; then
  5477. # Check whether --with-libexpat-prefix was given.
  5478. if test "${with_libexpat_prefix+set}" = set; then :
  5479. withval=$with_libexpat_prefix; libexpat_prefix=$withval
  5480. else
  5481. libexpat_prefix=""
  5482. fi
  5483. if test "x$libexpat_prefix" = "x"; then
  5484. libexpat_prefix="/usr"
  5485. fi
  5486. libexpat_prefix_lib=$libexpat_prefix/lib
  5487. libexpat_prefix_include=$libexpat_prefix/include
  5488. LIBS_save=$LIBS
  5489. CPPFLAGS_save=$CPPFLAGS
  5490. LIBS="-L$libexpat_prefix_lib $LIBS"
  5491. CPPFLAGS="-I$libexpat_prefix_include $CPPFLAGS"
  5492. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML_ParserCreate in -lexpat" >&5
  5493. $as_echo_n "checking for XML_ParserCreate in -lexpat... " >&6; }
  5494. if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then :
  5495. $as_echo_n "(cached) " >&6
  5496. else
  5497. ac_check_lib_save_LIBS=$LIBS
  5498. LIBS="-lexpat $LIBS"
  5499. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5500. /* end confdefs.h. */
  5501. /* Override any GCC internal prototype to avoid an error.
  5502. Use char because int might match the return type of a GCC
  5503. builtin and then its argument prototype would still apply. */
  5504. #ifdef __cplusplus
  5505. extern "C"
  5506. #endif
  5507. char XML_ParserCreate ();
  5508. int
  5509. main ()
  5510. {
  5511. return XML_ParserCreate ();
  5512. ;
  5513. return 0;
  5514. }
  5515. _ACEOF
  5516. if ac_fn_cxx_try_link "$LINENO"; then :
  5517. ac_cv_lib_expat_XML_ParserCreate=yes
  5518. else
  5519. ac_cv_lib_expat_XML_ParserCreate=no
  5520. fi
  5521. rm -f core conftest.err conftest.$ac_objext \
  5522. conftest$ac_exeext conftest.$ac_ext
  5523. LIBS=$ac_check_lib_save_LIBS
  5524. fi
  5525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
  5526. $as_echo "$ac_cv_lib_expat_XML_ParserCreate" >&6; }
  5527. if test "x$ac_cv_lib_expat_XML_ParserCreate" = x""yes; then :
  5528. have_libexpat=yes
  5529. fi
  5530. if test "x$have_libexpat" = "xyes"; then
  5531. $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
  5532. LIBEXPAT_LIBS="-L$libexpat_prefix_lib -lexpat"
  5533. LIBEXPAT_CPPFLAGS="-I$libexpat_prefix_include"
  5534. fi
  5535. LIBS=$LIBS_save
  5536. CPPFLAGS=$CPPFLAGS_save
  5537. if test "x$have_libexpat" != "xyes" &&
  5538. test "x$with_libexpat_requested" = "xyes"; then
  5539. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5540. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5541. as_fn_error "libexpat is requested but not found in the system.
  5542. See \`config.log' for more details." "$LINENO" 5; }
  5543. fi
  5544. fi
  5545. if test "x$with_sqlite3" = "xyes"; then
  5546. # Check whether --with-sqlite3-prefix was given.
  5547. if test "${with_sqlite3_prefix+set}" = set; then :
  5548. withval=$with_sqlite3_prefix; sqlite3_prefix=$withval
  5549. else
  5550. sqlite3_prefix=""
  5551. fi
  5552. if test "x$sqlite3_prefix" = "x"; then
  5553. sqlite3_prefix="/usr"
  5554. fi
  5555. LIBS_save=$LIBS
  5556. CPPFLAGS_save=$CPPFLAGS
  5557. pkg_failed=no
  5558. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLITE3" >&5
  5559. $as_echo_n "checking for SQLITE3... " >&6; }
  5560. if test -n "$PKG_CONFIG"; then
  5561. if test -n "$SQLITE3_CFLAGS"; then
  5562. pkg_cv_SQLITE3_CFLAGS="$SQLITE3_CFLAGS"
  5563. else
  5564. if test -n "$PKG_CONFIG" && \
  5565. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
  5566. ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
  5567. ac_status=$?
  5568. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5569. test $ac_status = 0; }; then
  5570. pkg_cv_SQLITE3_CFLAGS=`$PKG_CONFIG --cflags "sqlite3" 2>/dev/null`
  5571. else
  5572. pkg_failed=yes
  5573. fi
  5574. fi
  5575. else
  5576. pkg_failed=untried
  5577. fi
  5578. if test -n "$PKG_CONFIG"; then
  5579. if test -n "$SQLITE3_LIBS"; then
  5580. pkg_cv_SQLITE3_LIBS="$SQLITE3_LIBS"
  5581. else
  5582. if test -n "$PKG_CONFIG" && \
  5583. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
  5584. ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
  5585. ac_status=$?
  5586. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5587. test $ac_status = 0; }; then
  5588. pkg_cv_SQLITE3_LIBS=`$PKG_CONFIG --libs "sqlite3" 2>/dev/null`
  5589. else
  5590. pkg_failed=yes
  5591. fi
  5592. fi
  5593. else
  5594. pkg_failed=untried
  5595. fi
  5596. if test $pkg_failed = yes; then
  5597. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  5598. _pkg_short_errors_supported=yes
  5599. else
  5600. _pkg_short_errors_supported=no
  5601. fi
  5602. if test $_pkg_short_errors_supported = yes; then
  5603. SQLITE3_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "sqlite3"`
  5604. else
  5605. SQLITE3_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "sqlite3"`
  5606. fi
  5607. # Put the nasty error message in config.log where it belongs
  5608. echo "$SQLITE3_PKG_ERRORS" >&5
  5609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5610. $as_echo "no" >&6; }
  5611. have_sqlite3=no
  5612. elif test $pkg_failed = untried; then
  5613. have_sqlite3=no
  5614. else
  5615. SQLITE3_CFLAGS=$pkg_cv_SQLITE3_CFLAGS
  5616. SQLITE3_LIBS=$pkg_cv_SQLITE3_LIBS
  5617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5618. $as_echo "yes" >&6; }
  5619. have_sqlite3=yes
  5620. fi
  5621. if test "x$have_sqlite3" != "xyes"; then
  5622. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $SQLITE3_PKG_ERRORS" >&5
  5623. $as_echo "$as_me: WARNING: $SQLITE3_PKG_ERRORS" >&2;}
  5624. sqlite3_prefix_lib=$sqlite3_prefix/lib
  5625. sqlite3_prefix_include=$sqlite3_prefix/include
  5626. LIBS="-L$sqlite3_prefix_lib $LIBS"
  5627. CPPFLAGS="-I$sqlite3_prefix_include $CPPFLAGS"
  5628. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_open in -lsqlite3" >&5
  5629. $as_echo_n "checking for sqlite3_open in -lsqlite3... " >&6; }
  5630. if test "${ac_cv_lib_sqlite3_sqlite3_open+set}" = set; then :
  5631. $as_echo_n "(cached) " >&6
  5632. else
  5633. ac_check_lib_save_LIBS=$LIBS
  5634. LIBS="-lsqlite3 $LIBS"
  5635. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5636. /* end confdefs.h. */
  5637. /* Override any GCC internal prototype to avoid an error.
  5638. Use char because int might match the return type of a GCC
  5639. builtin and then its argument prototype would still apply. */
  5640. #ifdef __cplusplus
  5641. extern "C"
  5642. #endif
  5643. char sqlite3_open ();
  5644. int
  5645. main ()
  5646. {
  5647. return sqlite3_open ();
  5648. ;
  5649. return 0;
  5650. }
  5651. _ACEOF
  5652. if ac_fn_cxx_try_link "$LINENO"; then :
  5653. ac_cv_lib_sqlite3_sqlite3_open=yes
  5654. else
  5655. ac_cv_lib_sqlite3_sqlite3_open=no
  5656. fi
  5657. rm -f core conftest.err conftest.$ac_objext \
  5658. conftest$ac_exeext conftest.$ac_ext
  5659. LIBS=$ac_check_lib_save_LIBS
  5660. fi
  5661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5
  5662. $as_echo "$ac_cv_lib_sqlite3_sqlite3_open" >&6; }
  5663. if test "x$ac_cv_lib_sqlite3_sqlite3_open" = x""yes; then :
  5664. have_sqlite3=yes
  5665. fi
  5666. if test "x$have_sqlite3" = "xyes"; then
  5667. SQLITE3_LIBS="-L$sqlite3_prefix_lib -lsqlite3"
  5668. SQLITE3_CFLAGS="-I$sqlite3_prefix_include"
  5669. fi
  5670. fi
  5671. if test "x$have_sqlite3" = "xyes"; then
  5672. LIBS="$SQLITE3_LIBS $LIBS"
  5673. CPPFLAGS="$SQLITE3_CFLAGS $CPPFLAGS"
  5674. for ac_func in sqlite3_open_v2
  5675. do :
  5676. ac_fn_cxx_check_func "$LINENO" "sqlite3_open_v2" "ac_cv_func_sqlite3_open_v2"
  5677. if test "x$ac_cv_func_sqlite3_open_v2" = x""yes; then :
  5678. cat >>confdefs.h <<_ACEOF
  5679. #define HAVE_SQLITE3_OPEN_V2 1
  5680. _ACEOF
  5681. fi
  5682. done
  5683. $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
  5684. fi
  5685. LIBS=$LIBS_save
  5686. CPPFLAGS=$CPPFLAGS_save
  5687. if test "x$have_sqlite3" != "xyes" &&
  5688. test "x$with_sqlite3_requested" = "xyes"; then
  5689. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5690. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5691. as_fn_error "sqlite3 is requested but not found in the system.
  5692. See \`config.log' for more details." "$LINENO" 5; }
  5693. fi
  5694. fi
  5695. if test "x$with_gnutls" = "xyes"; then
  5696. # gnutls >= 2.8 doesn't have libgnutls-config anymore.
  5697. # First check the presence of libgnutls using pkg-config.
  5698. pkg_failed=no
  5699. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGNUTLS" >&5
  5700. $as_echo_n "checking for LIBGNUTLS... " >&6; }
  5701. if test -n "$PKG_CONFIG"; then
  5702. if test -n "$LIBGNUTLS_CFLAGS"; then
  5703. pkg_cv_LIBGNUTLS_CFLAGS="$LIBGNUTLS_CFLAGS"
  5704. else
  5705. if test -n "$PKG_CONFIG" && \
  5706. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= 1.2.9\""; } >&5
  5707. ($PKG_CONFIG --exists --print-errors "gnutls >= 1.2.9") 2>&5
  5708. ac_status=$?
  5709. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5710. test $ac_status = 0; }; then
  5711. pkg_cv_LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 1.2.9" 2>/dev/null`
  5712. else
  5713. pkg_failed=yes
  5714. fi
  5715. fi
  5716. else
  5717. pkg_failed=untried
  5718. fi
  5719. if test -n "$PKG_CONFIG"; then
  5720. if test -n "$LIBGNUTLS_LIBS"; then
  5721. pkg_cv_LIBGNUTLS_LIBS="$LIBGNUTLS_LIBS"
  5722. else
  5723. if test -n "$PKG_CONFIG" && \
  5724. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= 1.2.9\""; } >&5
  5725. ($PKG_CONFIG --exists --print-errors "gnutls >= 1.2.9") 2>&5
  5726. ac_status=$?
  5727. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5728. test $ac_status = 0; }; then
  5729. pkg_cv_LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 1.2.9" 2>/dev/null`
  5730. else
  5731. pkg_failed=yes
  5732. fi
  5733. fi
  5734. else
  5735. pkg_failed=untried
  5736. fi
  5737. if test $pkg_failed = yes; then
  5738. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  5739. _pkg_short_errors_supported=yes
  5740. else
  5741. _pkg_short_errors_supported=no
  5742. fi
  5743. if test $_pkg_short_errors_supported = yes; then
  5744. LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnutls >= 1.2.9"`
  5745. else
  5746. LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 1.2.9"`
  5747. fi
  5748. # Put the nasty error message in config.log where it belongs
  5749. echo "$LIBGNUTLS_PKG_ERRORS" >&5
  5750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5751. $as_echo "no" >&6; }
  5752. have_libgnutls=no
  5753. elif test $pkg_failed = untried; then
  5754. have_libgnutls=no
  5755. else
  5756. LIBGNUTLS_CFLAGS=$pkg_cv_LIBGNUTLS_CFLAGS
  5757. LIBGNUTLS_LIBS=$pkg_cv_LIBGNUTLS_LIBS
  5758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5759. $as_echo "yes" >&6; }
  5760. have_libgnutls=yes
  5761. fi
  5762. # If no libgnutls found by pkg-config, fall back to old macro
  5763. if test "x$have_libgnutls" = "xno"; then
  5764. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $LIBGNUTLS_PKG_ERRORS" >&5
  5765. $as_echo "$as_me: WARNING: $LIBGNUTLS_PKG_ERRORS" >&2;}
  5766. # Check whether --with-libgnutls-prefix was given.
  5767. if test "${with_libgnutls_prefix+set}" = set; then :
  5768. withval=$with_libgnutls_prefix; libgnutls_config_prefix="$withval"
  5769. else
  5770. libgnutls_config_prefix=""
  5771. fi
  5772. if test x$libgnutls_config_prefix != x ; then
  5773. if test x${LIBGNUTLS_CONFIG+set} != xset ; then
  5774. LIBGNUTLS_CONFIG=$libgnutls_config_prefix/bin/libgnutls-config
  5775. fi
  5776. fi
  5777. # Extract the first word of "libgnutls-config", so it can be a program name with args.
  5778. set dummy libgnutls-config; ac_word=$2
  5779. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5780. $as_echo_n "checking for $ac_word... " >&6; }
  5781. if test "${ac_cv_path_LIBGNUTLS_CONFIG+set}" = set; then :
  5782. $as_echo_n "(cached) " >&6
  5783. else
  5784. case $LIBGNUTLS_CONFIG in
  5785. [\\/]* | ?:[\\/]*)
  5786. ac_cv_path_LIBGNUTLS_CONFIG="$LIBGNUTLS_CONFIG" # Let the user override the test with a path.
  5787. ;;
  5788. *)
  5789. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5790. for as_dir in $PATH
  5791. do
  5792. IFS=$as_save_IFS
  5793. test -z "$as_dir" && as_dir=.
  5794. for ac_exec_ext in '' $ac_executable_extensions; do
  5795. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5796. ac_cv_path_LIBGNUTLS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5797. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5798. break 2
  5799. fi
  5800. done
  5801. done
  5802. IFS=$as_save_IFS
  5803. test -z "$ac_cv_path_LIBGNUTLS_CONFIG" && ac_cv_path_LIBGNUTLS_CONFIG="no"
  5804. ;;
  5805. esac
  5806. fi
  5807. LIBGNUTLS_CONFIG=$ac_cv_path_LIBGNUTLS_CONFIG
  5808. if test -n "$LIBGNUTLS_CONFIG"; then
  5809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CONFIG" >&5
  5810. $as_echo "$LIBGNUTLS_CONFIG" >&6; }
  5811. else
  5812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5813. $as_echo "no" >&6; }
  5814. fi
  5815. min_libgnutls_version=1.2.9
  5816. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgnutls - version >= $min_libgnutls_version" >&5
  5817. $as_echo_n "checking for libgnutls - version >= $min_libgnutls_version... " >&6; }
  5818. no_libgnutls=""
  5819. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  5820. no_libgnutls=yes
  5821. else
  5822. LIBGNUTLS_CFLAGS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --cflags`
  5823. LIBGNUTLS_LIBS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --libs`
  5824. libgnutls_config_version=`$LIBGNUTLS_CONFIG $libgnutls_config_args --version`
  5825. ac_save_CFLAGS="$CFLAGS"
  5826. ac_save_LIBS="$LIBS"
  5827. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  5828. LIBS="$LIBS $LIBGNUTLS_LIBS"
  5829. rm -f conf.libgnutlstest
  5830. if test "$cross_compiling" = yes; then :
  5831. echo $ac_n "cross compiling; assumed OK... $ac_c"
  5832. else
  5833. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5834. /* end confdefs.h. */
  5835. #include <stdio.h>
  5836. #include <stdlib.h>
  5837. #include <string.h>
  5838. #include <gnutls/gnutls.h>
  5839. int
  5840. main ()
  5841. {
  5842. system ("touch conf.libgnutlstest");
  5843. if( strcmp( gnutls_check_version(NULL), "$libgnutls_config_version" ) )
  5844. {
  5845. printf("\n*** 'libgnutls-config --version' returned %s, but LIBGNUTLS (%s)\n",
  5846. "$libgnutls_config_version", gnutls_check_version(NULL) );
  5847. printf("*** was found! If libgnutls-config was correct, then it is best\n");
  5848. printf("*** to remove the old version of LIBGNUTLS. You may also be able to fix the error\n");
  5849. printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
  5850. printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
  5851. printf("*** required on your system.\n");
  5852. printf("*** If libgnutls-config was wrong, set the environment variable LIBGNUTLS_CONFIG\n");
  5853. printf("*** to point to the correct copy of libgnutls-config, and remove the file config.cache\n");
  5854. printf("*** before re-running configure\n");
  5855. }
  5856. else if ( strcmp(gnutls_check_version(NULL), LIBGNUTLS_VERSION ) )
  5857. {
  5858. printf("\n*** LIBGNUTLS header file (version %s) does not match\n", LIBGNUTLS_VERSION);
  5859. printf("*** library (version %s)\n", gnutls_check_version(NULL) );
  5860. }
  5861. else
  5862. {
  5863. if ( gnutls_check_version( "$min_libgnutls_version" ) )
  5864. {
  5865. return 0;
  5866. }
  5867. else
  5868. {
  5869. printf("no\n*** An old version of LIBGNUTLS (%s) was found.\n",
  5870. gnutls_check_version(NULL) );
  5871. printf("*** You need a version of LIBGNUTLS newer than %s. The latest version of\n",
  5872. "$min_libgnutls_version" );
  5873. printf("*** LIBGNUTLS is always available from ftp://gnutls.hellug.gr/pub/gnutls.\n");
  5874. printf("*** \n");
  5875. printf("*** If you have already installed a sufficiently new version, this error\n");
  5876. printf("*** probably means that the wrong copy of the libgnutls-config shell script is\n");
  5877. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  5878. printf("*** of LIBGNUTLS, but you can also set the LIBGNUTLS_CONFIG environment to point to the\n");
  5879. printf("*** correct copy of libgnutls-config. (In this case, you will have to\n");
  5880. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  5881. printf("*** so that the correct libraries are found at run-time))\n");
  5882. }
  5883. }
  5884. return 1;
  5885. }
  5886. _ACEOF
  5887. if ac_fn_cxx_try_run "$LINENO"; then :
  5888. else
  5889. no_libgnutls=yes
  5890. fi
  5891. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5892. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5893. fi
  5894. CFLAGS="$ac_save_CFLAGS"
  5895. LIBS="$ac_save_LIBS"
  5896. fi
  5897. if test "x$no_libgnutls" = x ; then
  5898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5899. $as_echo "yes" >&6; }
  5900. have_libgnutls=yes
  5901. else
  5902. if test -f conf.libgnutlstest ; then
  5903. :
  5904. else
  5905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5906. $as_echo "no" >&6; }
  5907. fi
  5908. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  5909. echo "*** The libgnutls-config script installed by LIBGNUTLS could not be found"
  5910. echo "*** If LIBGNUTLS was installed in PREFIX, make sure PREFIX/bin is in"
  5911. echo "*** your path, or set the LIBGNUTLS_CONFIG environment variable to the"
  5912. echo "*** full path to libgnutls-config."
  5913. else
  5914. if test -f conf.libgnutlstest ; then
  5915. :
  5916. else
  5917. echo "*** Could not run libgnutls test program, checking why..."
  5918. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  5919. LIBS="$LIBS $LIBGNUTLS_LIBS"
  5920. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5921. /* end confdefs.h. */
  5922. #include <stdio.h>
  5923. #include <stdlib.h>
  5924. #include <string.h>
  5925. #include <gnutls/gnutls.h>
  5926. int
  5927. main ()
  5928. {
  5929. return !!gnutls_check_version(NULL);
  5930. ;
  5931. return 0;
  5932. }
  5933. _ACEOF
  5934. if ac_fn_cxx_try_link "$LINENO"; then :
  5935. echo "*** The test program compiled, but did not run. This usually means"
  5936. echo "*** that the run-time linker is not finding LIBGNUTLS or finding the wrong"
  5937. echo "*** version of LIBGNUTLS. If it is not finding LIBGNUTLS, you'll need to set your"
  5938. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  5939. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  5940. echo "*** is required on your system"
  5941. echo "***"
  5942. echo "*** If you have an old version installed, it is best to remove it, although"
  5943. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  5944. echo "***"
  5945. else
  5946. echo "*** The test program failed to compile or link. See the file config.log for the"
  5947. echo "*** exact error that occured. This usually means LIBGNUTLS was incorrectly installed"
  5948. echo "*** or that you have moved LIBGNUTLS since it was installed. In the latter case, you"
  5949. echo "*** may want to edit the libgnutls-config script: $LIBGNUTLS_CONFIG"
  5950. fi
  5951. rm -f core conftest.err conftest.$ac_objext \
  5952. conftest$ac_exeext conftest.$ac_ext
  5953. CFLAGS="$ac_save_CFLAGS"
  5954. LIBS="$ac_save_LIBS"
  5955. fi
  5956. fi
  5957. LIBGNUTLS_CFLAGS=""
  5958. LIBGNUTLS_LIBS=""
  5959. :
  5960. fi
  5961. rm -f conf.libgnutlstest
  5962. fi
  5963. if test "x$have_libgnutls" = "xyes"; then
  5964. $as_echo "#define HAVE_LIBGNUTLS 1" >>confdefs.h
  5965. elif test "x$with_gnutls_requested" = "xyes"; then
  5966. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5967. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5968. as_fn_error "gnutls is requested but not found in the system.
  5969. See \`config.log' for more details." "$LINENO" 5; }
  5970. fi
  5971. fi
  5972. if test "x$have_libgnutls" = "xyes"; then
  5973. # Check whether --with-libgcrypt-prefix was given.
  5974. if test "${with_libgcrypt_prefix+set}" = set; then :
  5975. withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
  5976. else
  5977. libgcrypt_config_prefix=""
  5978. fi
  5979. if test x$libgcrypt_config_prefix != x ; then
  5980. if test x${LIBGCRYPT_CONFIG+set} != xset ; then
  5981. LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
  5982. fi
  5983. fi
  5984. # Extract the first word of "libgcrypt-config", so it can be a program name with args.
  5985. set dummy libgcrypt-config; ac_word=$2
  5986. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5987. $as_echo_n "checking for $ac_word... " >&6; }
  5988. if test "${ac_cv_path_LIBGCRYPT_CONFIG+set}" = set; then :
  5989. $as_echo_n "(cached) " >&6
  5990. else
  5991. case $LIBGCRYPT_CONFIG in
  5992. [\\/]* | ?:[\\/]*)
  5993. ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
  5994. ;;
  5995. *)
  5996. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5997. for as_dir in $PATH
  5998. do
  5999. IFS=$as_save_IFS
  6000. test -z "$as_dir" && as_dir=.
  6001. for ac_exec_ext in '' $ac_executable_extensions; do
  6002. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6003. ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  6004. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6005. break 2
  6006. fi
  6007. done
  6008. done
  6009. IFS=$as_save_IFS
  6010. test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
  6011. ;;
  6012. esac
  6013. fi
  6014. LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
  6015. if test -n "$LIBGCRYPT_CONFIG"; then
  6016. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT_CONFIG" >&5
  6017. $as_echo "$LIBGCRYPT_CONFIG" >&6; }
  6018. else
  6019. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6020. $as_echo "no" >&6; }
  6021. fi
  6022. tmp=1.2.2
  6023. if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
  6024. req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
  6025. min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
  6026. else
  6027. req_libgcrypt_api=0
  6028. min_libgcrypt_version="$tmp"
  6029. fi
  6030. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
  6031. $as_echo_n "checking for LIBGCRYPT - version >= $min_libgcrypt_version... " >&6; }
  6032. ok=no
  6033. if test "$LIBGCRYPT_CONFIG" != "no" ; then
  6034. req_major=`echo $min_libgcrypt_version | \
  6035. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
  6036. req_minor=`echo $min_libgcrypt_version | \
  6037. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
  6038. req_micro=`echo $min_libgcrypt_version | \
  6039. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
  6040. libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
  6041. major=`echo $libgcrypt_config_version | \
  6042. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
  6043. minor=`echo $libgcrypt_config_version | \
  6044. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
  6045. micro=`echo $libgcrypt_config_version | \
  6046. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
  6047. if test "$major" -gt "$req_major"; then
  6048. ok=yes
  6049. else
  6050. if test "$major" -eq "$req_major"; then
  6051. if test "$minor" -gt "$req_minor"; then
  6052. ok=yes
  6053. else
  6054. if test "$minor" -eq "$req_minor"; then
  6055. if test "$micro" -ge "$req_micro"; then
  6056. ok=yes
  6057. fi
  6058. fi
  6059. fi
  6060. fi
  6061. fi
  6062. fi
  6063. if test $ok = yes; then
  6064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($libgcrypt_config_version)" >&5
  6065. $as_echo "yes ($libgcrypt_config_version)" >&6; }
  6066. else
  6067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6068. $as_echo "no" >&6; }
  6069. fi
  6070. if test $ok = yes; then
  6071. # If we have a recent libgcrypt, we should also check that the
  6072. # API is compatible
  6073. if test "$req_libgcrypt_api" -gt 0 ; then
  6074. tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
  6075. if test "$tmp" -gt 0 ; then
  6076. { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGCRYPT API version" >&5
  6077. $as_echo_n "checking LIBGCRYPT API version... " >&6; }
  6078. if test "$req_libgcrypt_api" -eq "$tmp" ; then
  6079. { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
  6080. $as_echo "okay" >&6; }
  6081. else
  6082. ok=no
  6083. { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5
  6084. $as_echo "does not match. want=$req_libgcrypt_api got=$tmp" >&6; }
  6085. fi
  6086. fi
  6087. fi
  6088. fi
  6089. if test $ok = yes; then
  6090. LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
  6091. LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
  6092. have_libgcrypt=yes
  6093. else
  6094. LIBGCRYPT_CFLAGS=""
  6095. LIBGCRYPT_LIBS=""
  6096. :
  6097. fi
  6098. if test "x$have_libgcrypt" = "xyes"; then
  6099. $as_echo "#define HAVE_LIBGCRYPT 1" >>confdefs.h
  6100. fi
  6101. fi
  6102. if test "x$with_openssl" = "xyes" && test "x$have_libgnutls" != "xyes"; then
  6103. # Check whether --with-openssl-prefix was given.
  6104. if test "${with_openssl_prefix+set}" = set; then :
  6105. withval=$with_openssl_prefix; openssl_prefix=$withval
  6106. else
  6107. openssl_prefix=""
  6108. fi
  6109. if test "x$openssl_prefix" = "x"; then
  6110. openssl_prefix="/usr/local"
  6111. fi
  6112. LIBS_save=$LIBS
  6113. CPPFLAGS_save=$CPPFLAGS
  6114. PKG_CONFIG="$openssl_prefix/bin/pkg-config"
  6115. if test -x $PKG_CONFIG; then
  6116. { $as_echo "$as_me:${as_lineno-$LINENO}: checking checking availability of openssl using pkg-config" >&5
  6117. $as_echo_n "checking checking availability of openssl using pkg-config... " >&6; }
  6118. $PKG_CONFIG --exists openssl
  6119. if test "$?" = "0"; then
  6120. # Use pkg-config to detect LIBS and CFLAGS
  6121. OPENSSL_LIBS=`$PKG_CONFIG --libs openssl`
  6122. OPENSSL_CFLAGS=`$PKG_CONFIG --cflags openssl`
  6123. LIBS="$OPENSSL_LIBS $LIBS"
  6124. CPPFLAGS="$OPENSSL_CFLAGS $CPPFLAGS"
  6125. have_openssl=yes
  6126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6127. $as_echo "yes" >&6; }
  6128. else
  6129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6130. $as_echo "no" >&6; }
  6131. fi
  6132. fi
  6133. if test "x$have_openssl" != "xyes"; then
  6134. openssl_prefix_lib=$openssl_prefix/lib
  6135. openssl_prefix_include=$openssl_prefix/include
  6136. LIBS="-L$openssl_prefix_lib $LIBS"
  6137. CPPFLAGS="-I$openssl_prefix_include $CPPFLAGS"
  6138. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_library_init in -lssl" >&5
  6139. $as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
  6140. if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then :
  6141. $as_echo_n "(cached) " >&6
  6142. else
  6143. ac_check_lib_save_LIBS=$LIBS
  6144. LIBS="-lssl $LIBS"
  6145. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6146. /* end confdefs.h. */
  6147. /* Override any GCC internal prototype to avoid an error.
  6148. Use char because int might match the return type of a GCC
  6149. builtin and then its argument prototype would still apply. */
  6150. #ifdef __cplusplus
  6151. extern "C"
  6152. #endif
  6153. char SSL_library_init ();
  6154. int
  6155. main ()
  6156. {
  6157. return SSL_library_init ();
  6158. ;
  6159. return 0;
  6160. }
  6161. _ACEOF
  6162. if ac_fn_cxx_try_link "$LINENO"; then :
  6163. ac_cv_lib_ssl_SSL_library_init=yes
  6164. else
  6165. ac_cv_lib_ssl_SSL_library_init=no
  6166. fi
  6167. rm -f core conftest.err conftest.$ac_objext \
  6168. conftest$ac_exeext conftest.$ac_ext
  6169. LIBS=$ac_check_lib_save_LIBS
  6170. fi
  6171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_library_init" >&5
  6172. $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
  6173. if test "x$ac_cv_lib_ssl_SSL_library_init" = x""yes; then :
  6174. have_openssl=yes LIBS="-lssl $LIBS"
  6175. fi
  6176. if test "x$have_openssl" = "xyes"; then
  6177. have_openssl=no
  6178. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lcrypto" >&5
  6179. $as_echo_n "checking for main in -lcrypto... " >&6; }
  6180. if test "${ac_cv_lib_crypto_main+set}" = set; then :
  6181. $as_echo_n "(cached) " >&6
  6182. else
  6183. ac_check_lib_save_LIBS=$LIBS
  6184. LIBS="-lcrypto $LIBS"
  6185. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6186. /* end confdefs.h. */
  6187. int
  6188. main ()
  6189. {
  6190. return main ();
  6191. ;
  6192. return 0;
  6193. }
  6194. _ACEOF
  6195. if ac_fn_cxx_try_link "$LINENO"; then :
  6196. ac_cv_lib_crypto_main=yes
  6197. else
  6198. ac_cv_lib_crypto_main=no
  6199. fi
  6200. rm -f core conftest.err conftest.$ac_objext \
  6201. conftest$ac_exeext conftest.$ac_ext
  6202. LIBS=$ac_check_lib_save_LIBS
  6203. fi
  6204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_main" >&5
  6205. $as_echo "$ac_cv_lib_crypto_main" >&6; }
  6206. if test "x$ac_cv_lib_crypto_main" = x""yes; then :
  6207. have_openssl=yes; LIBS="-lcrypto $LIBS"
  6208. fi
  6209. if test "x$have_openssl" = "xyes"; then
  6210. OPENSSL_LIBS="-L$openssl_prefix_lib -lssl -lcrypto"
  6211. OPENSSL_CFLAGS="-I$openssl_prefix_include"
  6212. fi
  6213. fi
  6214. fi
  6215. if test "x$have_openssl" = "xyes"; then
  6216. $as_echo "#define HAVE_LIBSSL 1" >>confdefs.h
  6217. # check whether EVP_DigestInit_ex exists. Old openssl doesn't have it.
  6218. for ac_func in EVP_DigestInit_ex
  6219. do :
  6220. ac_fn_cxx_check_func "$LINENO" "EVP_DigestInit_ex" "ac_cv_func_EVP_DigestInit_ex"
  6221. if test "x$ac_cv_func_EVP_DigestInit_ex" = x""yes; then :
  6222. cat >>confdefs.h <<_ACEOF
  6223. #define HAVE_EVP_DIGESTINIT_EX 1
  6224. _ACEOF
  6225. have_digestinit_ex=yes
  6226. fi
  6227. done
  6228. if test "x$have_digestinit_ex" = "x"; then
  6229. $as_echo "#define HAVE_OLD_LIBSSL 1" >>confdefs.h
  6230. fi
  6231. # search for sha256 support
  6232. for ac_func in EVP_sha256
  6233. do :
  6234. ac_fn_cxx_check_func "$LINENO" "EVP_sha256" "ac_cv_func_EVP_sha256"
  6235. if test "x$ac_cv_func_EVP_sha256" = x""yes; then :
  6236. cat >>confdefs.h <<_ACEOF
  6237. #define HAVE_EVP_SHA256 1
  6238. _ACEOF
  6239. fi
  6240. done
  6241. fi
  6242. LIBS=$LIBS_save
  6243. CPPFLAGS=$CPPFLAGS_save
  6244. if test "x$have_openssl" != "xyes" &&
  6245. test "x$with_openssl_requested" = "xyes"; then
  6246. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6247. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6248. as_fn_error "openssl is requested but not found in the system.
  6249. See \`config.log' for more details." "$LINENO" 5; }
  6250. fi
  6251. fi
  6252. if test "x$with_libcares" = "xyes"; then
  6253. # Check whether --with-libcares-prefix was given.
  6254. if test "${with_libcares_prefix+set}" = set; then :
  6255. withval=$with_libcares_prefix; libcares_prefix=$withval
  6256. else
  6257. libcares_prefix=""
  6258. fi
  6259. if test "x$libcares_prefix" = "x"; then
  6260. libcares_prefix="/usr"
  6261. fi
  6262. libcares_prefix_lib=$libcares_prefix/lib
  6263. libcares_prefix_include=$libcares_prefix/include
  6264. LIBS_save=$LIBS
  6265. CPPFLAGS_save=$CPPFLAGS
  6266. LIBS="-L$libcares_prefix_lib $LIBS"
  6267. CPPFLAGS="-I$libcares_prefix_include -Wall $CPPFLAGS"
  6268. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ares_init in -lcares" >&5
  6269. $as_echo_n "checking for ares_init in -lcares... " >&6; }
  6270. if test "${ac_cv_lib_cares_ares_init+set}" = set; then :
  6271. $as_echo_n "(cached) " >&6
  6272. else
  6273. ac_check_lib_save_LIBS=$LIBS
  6274. LIBS="-lcares $LIBS"
  6275. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6276. /* end confdefs.h. */
  6277. /* Override any GCC internal prototype to avoid an error.
  6278. Use char because int might match the return type of a GCC
  6279. builtin and then its argument prototype would still apply. */
  6280. #ifdef __cplusplus
  6281. extern "C"
  6282. #endif
  6283. char ares_init ();
  6284. int
  6285. main ()
  6286. {
  6287. return ares_init ();
  6288. ;
  6289. return 0;
  6290. }
  6291. _ACEOF
  6292. if ac_fn_cxx_try_link "$LINENO"; then :
  6293. ac_cv_lib_cares_ares_init=yes
  6294. else
  6295. ac_cv_lib_cares_ares_init=no
  6296. fi
  6297. rm -f core conftest.err conftest.$ac_objext \
  6298. conftest$ac_exeext conftest.$ac_ext
  6299. LIBS=$ac_check_lib_save_LIBS
  6300. fi
  6301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cares_ares_init" >&5
  6302. $as_echo "$ac_cv_lib_cares_ares_init" >&6; }
  6303. if test "x$ac_cv_lib_cares_ares_init" = x""yes; then :
  6304. have_libcares=yes
  6305. fi
  6306. if test "x$have_libcares" != "xyes"; then
  6307. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ares_init in -lcares" >&5
  6308. $as_echo_n "checking for ares_init in -lcares... " >&6; }
  6309. if test "${ac_cv_lib_cares_ares_init+set}" = set; then :
  6310. $as_echo_n "(cached) " >&6
  6311. else
  6312. ac_check_lib_save_LIBS=$LIBS
  6313. LIBS="-lcares -lrt $LIBS"
  6314. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6315. /* end confdefs.h. */
  6316. /* Override any GCC internal prototype to avoid an error.
  6317. Use char because int might match the return type of a GCC
  6318. builtin and then its argument prototype would still apply. */
  6319. #ifdef __cplusplus
  6320. extern "C"
  6321. #endif
  6322. char ares_init ();
  6323. int
  6324. main ()
  6325. {
  6326. return ares_init ();
  6327. ;
  6328. return 0;
  6329. }
  6330. _ACEOF
  6331. if ac_fn_cxx_try_link "$LINENO"; then :
  6332. ac_cv_lib_cares_ares_init=yes
  6333. else
  6334. ac_cv_lib_cares_ares_init=no
  6335. fi
  6336. rm -f core conftest.err conftest.$ac_objext \
  6337. conftest$ac_exeext conftest.$ac_ext
  6338. LIBS=$ac_check_lib_save_LIBS
  6339. fi
  6340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cares_ares_init" >&5
  6341. $as_echo "$ac_cv_lib_cares_ares_init" >&6; }
  6342. if test "x$ac_cv_lib_cares_ares_init" = x""yes; then :
  6343. have_libcares=yes need_librt=yes
  6344. fi
  6345. fi
  6346. if test "x$have_libcares" = "xyes"; then
  6347. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ares_host_callback accepts timeouts(c-ares >= 1.5)" >&5
  6348. $as_echo_n "checking whether ares_host_callback accepts timeouts(c-ares >= 1.5)... " >&6; }
  6349. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6350. /* end confdefs.h. */
  6351. #include <ares.h>
  6352. void callback(void* arg, int status, int timeouts, struct hostent* host);
  6353. int
  6354. main ()
  6355. {
  6356. ares_channel channel;
  6357. ares_gethostbyname(channel, "foo", 0, callback, 0);
  6358. ;
  6359. return 0;
  6360. }
  6361. _ACEOF
  6362. if ac_fn_cxx_try_compile "$LINENO"; then :
  6363. have_libcares1_5=yes
  6364. else
  6365. have_libcares1_5=no
  6366. fi
  6367. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6368. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_libcares1_5" >&5
  6369. $as_echo "$have_libcares1_5" >&6; }
  6370. if test "x$have_libcares1_5" = "xyes"; then
  6371. $as_echo "#define HAVE_LIBCARES1_5 1" >>confdefs.h
  6372. fi
  6373. $as_echo "#define HAVE_LIBCARES 1" >>confdefs.h
  6374. LIBCARES_LIBS="-L$libcares_prefix_lib -lcares"
  6375. if test "x$need_librt" = "xyes"; then
  6376. LIBCARES_LIBS="$LIBCARES_LIBS -lrt"
  6377. fi
  6378. LIBCARES_CPPFLAGS="-I$libcares_prefix_include"
  6379. fi
  6380. LIBS=$LIBS_save
  6381. CPPFLAGS=$CPPFLAGS_save
  6382. if test "x$have_libcares" != "xyes" &&
  6383. test "x$with_libcares_requested" = "xyes"; then
  6384. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6385. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6386. as_fn_error "libcares is requested but not found in the system.
  6387. See \`config.log' for more details." "$LINENO" 5; }
  6388. fi
  6389. fi
  6390. # Check availability of libz
  6391. if test "x$with_libz" = "xyes"; then
  6392. # Check whether --with-libz-prefix was given.
  6393. if test "${with_libz_prefix+set}" = set; then :
  6394. withval=$with_libz_prefix; libz_prefix=$withval
  6395. else
  6396. libz_prefix=""
  6397. fi
  6398. if test "x$libz_prefix" = "x"; then
  6399. libz_prefix="/usr"
  6400. fi
  6401. libz_prefix_lib=$libz_prefix/lib
  6402. libz_prefix_include=$libz_prefix/include
  6403. LIBS_save=$LIBS
  6404. CPPFLAGS_save=$CPPFLAGS
  6405. LIBS="-L$libz_prefix_lib $LIBS"
  6406. CPPFLAGS="-I$libz_prefix_include $CPPFLAGS"
  6407. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5
  6408. $as_echo_n "checking for zlibVersion in -lz... " >&6; }
  6409. if test "${ac_cv_lib_z_zlibVersion+set}" = set; then :
  6410. $as_echo_n "(cached) " >&6
  6411. else
  6412. ac_check_lib_save_LIBS=$LIBS
  6413. LIBS="-lz $LIBS"
  6414. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6415. /* end confdefs.h. */
  6416. /* Override any GCC internal prototype to avoid an error.
  6417. Use char because int might match the return type of a GCC
  6418. builtin and then its argument prototype would still apply. */
  6419. #ifdef __cplusplus
  6420. extern "C"
  6421. #endif
  6422. char zlibVersion ();
  6423. int
  6424. main ()
  6425. {
  6426. return zlibVersion ();
  6427. ;
  6428. return 0;
  6429. }
  6430. _ACEOF
  6431. if ac_fn_cxx_try_link "$LINENO"; then :
  6432. ac_cv_lib_z_zlibVersion=yes
  6433. else
  6434. ac_cv_lib_z_zlibVersion=no
  6435. fi
  6436. rm -f core conftest.err conftest.$ac_objext \
  6437. conftest$ac_exeext conftest.$ac_ext
  6438. LIBS=$ac_check_lib_save_LIBS
  6439. fi
  6440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5
  6441. $as_echo "$ac_cv_lib_z_zlibVersion" >&6; }
  6442. if test "x$ac_cv_lib_z_zlibVersion" = x""yes; then :
  6443. have_libz=yes
  6444. fi
  6445. if test "x$have_libz" = "xyes"; then
  6446. $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
  6447. LIBZ_LIBS="-L$libz_prefix_lib -lz"
  6448. LIBZ_CPPFLAGS="-I$libz_prefix_include"
  6449. fi
  6450. LIBS=$LIBS_save
  6451. CPPFLAGS=$CPPFLAGS_save
  6452. if test "x$have_libz" != "xyes" && test "x$with_libz_requested" = "xyes"; then
  6453. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6454. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6455. as_fn_error "libz is requested but not found in the system.
  6456. See \`config.log' for more details." "$LINENO" 5; }
  6457. fi
  6458. fi
  6459. # Define variables based on the result of the checks for libraries.
  6460. if test "x$have_libgnutls" = "xyes" || test "x$have_openssl" = "xyes"; then
  6461. $as_echo "#define ENABLE_SSL 1" >>confdefs.h
  6462. if true; then
  6463. ENABLE_SSL_TRUE=
  6464. ENABLE_SSL_FALSE='#'
  6465. else
  6466. ENABLE_SSL_TRUE='#'
  6467. ENABLE_SSL_FALSE=
  6468. fi
  6469. else
  6470. if false; then
  6471. ENABLE_SSL_TRUE=
  6472. ENABLE_SSL_FALSE='#'
  6473. else
  6474. ENABLE_SSL_TRUE='#'
  6475. ENABLE_SSL_FALSE=
  6476. fi
  6477. fi
  6478. if test "x$have_libgnutls" = "xyes" ; then
  6479. HAVE_LIBGNUTLS_TRUE=
  6480. HAVE_LIBGNUTLS_FALSE='#'
  6481. else
  6482. HAVE_LIBGNUTLS_TRUE='#'
  6483. HAVE_LIBGNUTLS_FALSE=
  6484. fi
  6485. if test "x$have_openssl" = "xyes" ; then
  6486. HAVE_LIBSSL_TRUE=
  6487. HAVE_LIBSSL_FALSE='#'
  6488. else
  6489. HAVE_LIBSSL_TRUE='#'
  6490. HAVE_LIBSSL_FALSE=
  6491. fi
  6492. if test "x$have_libgcrypt" = "xyes" || test "x$have_openssl" = "xyes"; then
  6493. $as_echo "#define ENABLE_MESSAGE_DIGEST 1" >>confdefs.h
  6494. if true; then
  6495. ENABLE_MESSAGE_DIGEST_TRUE=
  6496. ENABLE_MESSAGE_DIGEST_FALSE='#'
  6497. else
  6498. ENABLE_MESSAGE_DIGEST_TRUE='#'
  6499. ENABLE_MESSAGE_DIGEST_FALSE=
  6500. fi
  6501. enable_message_digest=yes
  6502. else
  6503. if false; then
  6504. ENABLE_MESSAGE_DIGEST_TRUE=
  6505. ENABLE_MESSAGE_DIGEST_FALSE='#'
  6506. else
  6507. ENABLE_MESSAGE_DIGEST_TRUE='#'
  6508. ENABLE_MESSAGE_DIGEST_FALSE=
  6509. fi
  6510. fi
  6511. if test "x$enable_bittorrent" = "xyes" &&
  6512. test "x$enable_message_digest" = "xyes"; then
  6513. $as_echo "#define ENABLE_BITTORRENT 1" >>confdefs.h
  6514. if true; then
  6515. ENABLE_BITTORRENT_TRUE=
  6516. ENABLE_BITTORRENT_FALSE='#'
  6517. else
  6518. ENABLE_BITTORRENT_TRUE='#'
  6519. ENABLE_BITTORRENT_FALSE=
  6520. fi
  6521. else
  6522. if test "x$enable_bittorrent_requested" = "xyes"; then
  6523. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6524. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6525. as_fn_error "bittorrent is requested but cannot be enabled with current\
  6526. configuration.\
  6527. Make sure that dependent libraries are installed and configure script options\
  6528. are correct.
  6529. See \`config.log' for more details." "$LINENO" 5; }
  6530. fi
  6531. enable_bittorrent=no
  6532. if false; then
  6533. ENABLE_BITTORRENT_TRUE=
  6534. ENABLE_BITTORRENT_FALSE='#'
  6535. else
  6536. ENABLE_BITTORRENT_TRUE='#'
  6537. ENABLE_BITTORRENT_FALSE=
  6538. fi
  6539. fi
  6540. if (test "x$have_libxml2" = "xyes" || test "x$have_libexpat" = "xyes") &&
  6541. test "x$enable_metalink" = "xyes"; then
  6542. $as_echo "#define ENABLE_METALINK 1" >>confdefs.h
  6543. if true; then
  6544. ENABLE_METALINK_TRUE=
  6545. ENABLE_METALINK_FALSE='#'
  6546. else
  6547. ENABLE_METALINK_TRUE='#'
  6548. ENABLE_METALINK_FALSE=
  6549. fi
  6550. else
  6551. if test "x$enable_metalink_requested" = "xyes"; then
  6552. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6553. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6554. as_fn_error "metalink is requested but cannot be enabled with current\
  6555. configuration.\
  6556. Make sure that dependent libraries are installed and configure script options\
  6557. are correct.
  6558. See \`config.log' for more details." "$LINENO" 5; }
  6559. fi
  6560. enable_metalink=no
  6561. if false; then
  6562. ENABLE_METALINK_TRUE=
  6563. ENABLE_METALINK_FALSE='#'
  6564. else
  6565. ENABLE_METALINK_TRUE='#'
  6566. ENABLE_METALINK_FALSE=
  6567. fi
  6568. fi
  6569. if test "x$enable_metalink" = "xyes" && test "x$have_libxml2" = "xyes"; then
  6570. ENABLE_METALINK_LIBXML2_TRUE=
  6571. ENABLE_METALINK_LIBXML2_FALSE='#'
  6572. else
  6573. ENABLE_METALINK_LIBXML2_TRUE='#'
  6574. ENABLE_METALINK_LIBXML2_FALSE=
  6575. fi
  6576. if test "x$enable_metalink" = "xyes" && test "x$have_libexpat" = "xyes"; then
  6577. ENABLE_METALINK_LIBEXPAT_TRUE=
  6578. ENABLE_METALINK_LIBEXPAT_FALSE='#'
  6579. else
  6580. ENABLE_METALINK_LIBEXPAT_TRUE='#'
  6581. ENABLE_METALINK_LIBEXPAT_FALSE=
  6582. fi
  6583. if test "x$have_libxml2" = "xyes" || test "x$have_libexpat" = "xyes"; then
  6584. enable_xml_rpc=yes
  6585. fi
  6586. if test "x$enable_xml_rpc" = "xyes"; then
  6587. $as_echo "#define ENABLE_XML_RPC 1" >>confdefs.h
  6588. fi
  6589. if test "x$enable_xml_rpc" = "xyes"; then
  6590. ENABLE_XML_RPC_TRUE=
  6591. ENABLE_XML_RPC_FALSE='#'
  6592. else
  6593. ENABLE_XML_RPC_TRUE='#'
  6594. ENABLE_XML_RPC_FALSE=
  6595. fi
  6596. if test "x$have_libxml2" = "xyes"; then
  6597. HAVE_LIBXML2_TRUE=
  6598. HAVE_LIBXML2_FALSE='#'
  6599. else
  6600. HAVE_LIBXML2_TRUE='#'
  6601. HAVE_LIBXML2_FALSE=
  6602. fi
  6603. if test "x$have_libexpat" = "xyes"; then
  6604. HAVE_LIBEXPAT_TRUE=
  6605. HAVE_LIBEXPAT_FALSE='#'
  6606. else
  6607. HAVE_LIBEXPAT_TRUE='#'
  6608. HAVE_LIBEXPAT_FALSE=
  6609. fi
  6610. if test "x$have_libcares" = "xyes"; then
  6611. $as_echo "#define ENABLE_ASYNC_DNS 1" >>confdefs.h
  6612. if true; then
  6613. ENABLE_ASYNC_DNS_TRUE=
  6614. ENABLE_ASYNC_DNS_FALSE='#'
  6615. else
  6616. ENABLE_ASYNC_DNS_TRUE='#'
  6617. ENABLE_ASYNC_DNS_FALSE=
  6618. fi
  6619. else
  6620. if false; then
  6621. ENABLE_ASYNC_DNS_TRUE=
  6622. ENABLE_ASYNC_DNS_FALSE='#'
  6623. else
  6624. ENABLE_ASYNC_DNS_TRUE='#'
  6625. ENABLE_ASYNC_DNS_FALSE=
  6626. fi
  6627. fi
  6628. # Set conditional for libz
  6629. if test "x$have_libz" = "xyes"; then
  6630. HAVE_LIBZ_TRUE=
  6631. HAVE_LIBZ_FALSE='#'
  6632. else
  6633. HAVE_LIBZ_TRUE='#'
  6634. HAVE_LIBZ_FALSE=
  6635. fi
  6636. # Set conditional for sqlite3
  6637. if test "x$have_sqlite3" = "xyes"; then
  6638. HAVE_SQLITE3_TRUE=
  6639. HAVE_SQLITE3_FALSE='#'
  6640. else
  6641. HAVE_SQLITE3_TRUE='#'
  6642. HAVE_SQLITE3_FALSE=
  6643. fi
  6644. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
  6645. $as_echo_n "checking for library containing clock_gettime... " >&6; }
  6646. if test "${ac_cv_search_clock_gettime+set}" = set; then :
  6647. $as_echo_n "(cached) " >&6
  6648. else
  6649. ac_func_search_save_LIBS=$LIBS
  6650. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6651. /* end confdefs.h. */
  6652. /* Override any GCC internal prototype to avoid an error.
  6653. Use char because int might match the return type of a GCC
  6654. builtin and then its argument prototype would still apply. */
  6655. #ifdef __cplusplus
  6656. extern "C"
  6657. #endif
  6658. char clock_gettime ();
  6659. int
  6660. main ()
  6661. {
  6662. return clock_gettime ();
  6663. ;
  6664. return 0;
  6665. }
  6666. _ACEOF
  6667. for ac_lib in '' rt; do
  6668. if test -z "$ac_lib"; then
  6669. ac_res="none required"
  6670. else
  6671. ac_res=-l$ac_lib
  6672. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  6673. fi
  6674. if ac_fn_cxx_try_link "$LINENO"; then :
  6675. ac_cv_search_clock_gettime=$ac_res
  6676. fi
  6677. rm -f core conftest.err conftest.$ac_objext \
  6678. conftest$ac_exeext
  6679. if test "${ac_cv_search_clock_gettime+set}" = set; then :
  6680. break
  6681. fi
  6682. done
  6683. if test "${ac_cv_search_clock_gettime+set}" = set; then :
  6684. else
  6685. ac_cv_search_clock_gettime=no
  6686. fi
  6687. rm conftest.$ac_ext
  6688. LIBS=$ac_func_search_save_LIBS
  6689. fi
  6690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
  6691. $as_echo "$ac_cv_search_clock_gettime" >&6; }
  6692. ac_res=$ac_cv_search_clock_gettime
  6693. if test "$ac_res" != no; then :
  6694. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  6695. fi
  6696. case "$target" in
  6697. *solaris*)
  6698. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
  6699. $as_echo_n "checking for library containing getaddrinfo... " >&6; }
  6700. if test "${ac_cv_search_getaddrinfo+set}" = set; then :
  6701. $as_echo_n "(cached) " >&6
  6702. else
  6703. ac_func_search_save_LIBS=$LIBS
  6704. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6705. /* end confdefs.h. */
  6706. /* Override any GCC internal prototype to avoid an error.
  6707. Use char because int might match the return type of a GCC
  6708. builtin and then its argument prototype would still apply. */
  6709. #ifdef __cplusplus
  6710. extern "C"
  6711. #endif
  6712. char getaddrinfo ();
  6713. int
  6714. main ()
  6715. {
  6716. return getaddrinfo ();
  6717. ;
  6718. return 0;
  6719. }
  6720. _ACEOF
  6721. for ac_lib in '' nsl socket; do
  6722. if test -z "$ac_lib"; then
  6723. ac_res="none required"
  6724. else
  6725. ac_res=-l$ac_lib
  6726. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  6727. fi
  6728. if ac_fn_cxx_try_link "$LINENO"; then :
  6729. ac_cv_search_getaddrinfo=$ac_res
  6730. fi
  6731. rm -f core conftest.err conftest.$ac_objext \
  6732. conftest$ac_exeext
  6733. if test "${ac_cv_search_getaddrinfo+set}" = set; then :
  6734. break
  6735. fi
  6736. done
  6737. if test "${ac_cv_search_getaddrinfo+set}" = set; then :
  6738. else
  6739. ac_cv_search_getaddrinfo=no
  6740. fi
  6741. rm conftest.$ac_ext
  6742. LIBS=$ac_func_search_save_LIBS
  6743. fi
  6744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
  6745. $as_echo "$ac_cv_search_getaddrinfo" >&6; }
  6746. ac_res=$ac_cv_search_getaddrinfo
  6747. if test "$ac_res" != no; then :
  6748. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  6749. fi
  6750. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
  6751. $as_echo_n "checking for library containing inet_aton... " >&6; }
  6752. if test "${ac_cv_search_inet_aton+set}" = set; then :
  6753. $as_echo_n "(cached) " >&6
  6754. else
  6755. ac_func_search_save_LIBS=$LIBS
  6756. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6757. /* end confdefs.h. */
  6758. /* Override any GCC internal prototype to avoid an error.
  6759. Use char because int might match the return type of a GCC
  6760. builtin and then its argument prototype would still apply. */
  6761. #ifdef __cplusplus
  6762. extern "C"
  6763. #endif
  6764. char inet_aton ();
  6765. int
  6766. main ()
  6767. {
  6768. return inet_aton ();
  6769. ;
  6770. return 0;
  6771. }
  6772. _ACEOF
  6773. for ac_lib in '' nsl socket; do
  6774. if test -z "$ac_lib"; then
  6775. ac_res="none required"
  6776. else
  6777. ac_res=-l$ac_lib
  6778. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  6779. fi
  6780. if ac_fn_cxx_try_link "$LINENO"; then :
  6781. ac_cv_search_inet_aton=$ac_res
  6782. fi
  6783. rm -f core conftest.err conftest.$ac_objext \
  6784. conftest$ac_exeext
  6785. if test "${ac_cv_search_inet_aton+set}" = set; then :
  6786. break
  6787. fi
  6788. done
  6789. if test "${ac_cv_search_inet_aton+set}" = set; then :
  6790. else
  6791. ac_cv_search_inet_aton=no
  6792. fi
  6793. rm conftest.$ac_ext
  6794. LIBS=$ac_func_search_save_LIBS
  6795. fi
  6796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
  6797. $as_echo "$ac_cv_search_inet_aton" >&6; }
  6798. ac_res=$ac_cv_search_inet_aton
  6799. if test "$ac_res" != no; then :
  6800. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  6801. fi
  6802. ;;
  6803. esac
  6804. # Checks for header files.
  6805. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  6806. # for constant arguments. Useless!
  6807. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  6808. $as_echo_n "checking for working alloca.h... " >&6; }
  6809. if test "${ac_cv_working_alloca_h+set}" = set; then :
  6810. $as_echo_n "(cached) " >&6
  6811. else
  6812. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6813. /* end confdefs.h. */
  6814. #include <alloca.h>
  6815. int
  6816. main ()
  6817. {
  6818. char *p = (char *) alloca (2 * sizeof (int));
  6819. if (p) return 0;
  6820. ;
  6821. return 0;
  6822. }
  6823. _ACEOF
  6824. if ac_fn_cxx_try_link "$LINENO"; then :
  6825. ac_cv_working_alloca_h=yes
  6826. else
  6827. ac_cv_working_alloca_h=no
  6828. fi
  6829. rm -f core conftest.err conftest.$ac_objext \
  6830. conftest$ac_exeext conftest.$ac_ext
  6831. fi
  6832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  6833. $as_echo "$ac_cv_working_alloca_h" >&6; }
  6834. if test $ac_cv_working_alloca_h = yes; then
  6835. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  6836. fi
  6837. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  6838. $as_echo_n "checking for alloca... " >&6; }
  6839. if test "${ac_cv_func_alloca_works+set}" = set; then :
  6840. $as_echo_n "(cached) " >&6
  6841. else
  6842. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6843. /* end confdefs.h. */
  6844. #ifdef __GNUC__
  6845. # define alloca __builtin_alloca
  6846. #else
  6847. # ifdef _MSC_VER
  6848. # include <malloc.h>
  6849. # define alloca _alloca
  6850. # else
  6851. # ifdef HAVE_ALLOCA_H
  6852. # include <alloca.h>
  6853. # else
  6854. # ifdef _AIX
  6855. #pragma alloca
  6856. # else
  6857. # ifndef alloca /* predefined by HP cc +Olibcalls */
  6858. char *alloca ();
  6859. # endif
  6860. # endif
  6861. # endif
  6862. # endif
  6863. #endif
  6864. int
  6865. main ()
  6866. {
  6867. char *p = (char *) alloca (1);
  6868. if (p) return 0;
  6869. ;
  6870. return 0;
  6871. }
  6872. _ACEOF
  6873. if ac_fn_cxx_try_link "$LINENO"; then :
  6874. ac_cv_func_alloca_works=yes
  6875. else
  6876. ac_cv_func_alloca_works=no
  6877. fi
  6878. rm -f core conftest.err conftest.$ac_objext \
  6879. conftest$ac_exeext conftest.$ac_ext
  6880. fi
  6881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  6882. $as_echo "$ac_cv_func_alloca_works" >&6; }
  6883. if test $ac_cv_func_alloca_works = yes; then
  6884. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  6885. else
  6886. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  6887. # that cause trouble. Some versions do not even contain alloca or
  6888. # contain a buggy version. If you still want to use their alloca,
  6889. # use ar to extract alloca.o from them instead of compiling alloca.c.
  6890. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  6891. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  6892. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  6893. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  6894. if test "${ac_cv_os_cray+set}" = set; then :
  6895. $as_echo_n "(cached) " >&6
  6896. else
  6897. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6898. /* end confdefs.h. */
  6899. #if defined CRAY && ! defined CRAY2
  6900. webecray
  6901. #else
  6902. wenotbecray
  6903. #endif
  6904. _ACEOF
  6905. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6906. $EGREP "webecray" >/dev/null 2>&1; then :
  6907. ac_cv_os_cray=yes
  6908. else
  6909. ac_cv_os_cray=no
  6910. fi
  6911. rm -f conftest*
  6912. fi
  6913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  6914. $as_echo "$ac_cv_os_cray" >&6; }
  6915. if test $ac_cv_os_cray = yes; then
  6916. for ac_func in _getb67 GETB67 getb67; do
  6917. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6918. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  6919. eval as_val=\$$as_ac_var
  6920. if test "x$as_val" = x""yes; then :
  6921. cat >>confdefs.h <<_ACEOF
  6922. #define CRAY_STACKSEG_END $ac_func
  6923. _ACEOF
  6924. break
  6925. fi
  6926. done
  6927. fi
  6928. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  6929. $as_echo_n "checking stack direction for C alloca... " >&6; }
  6930. if test "${ac_cv_c_stack_direction+set}" = set; then :
  6931. $as_echo_n "(cached) " >&6
  6932. else
  6933. if test "$cross_compiling" = yes; then :
  6934. ac_cv_c_stack_direction=0
  6935. else
  6936. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6937. /* end confdefs.h. */
  6938. $ac_includes_default
  6939. int
  6940. find_stack_direction ()
  6941. {
  6942. static char *addr = 0;
  6943. auto char dummy;
  6944. if (addr == 0)
  6945. {
  6946. addr = &dummy;
  6947. return find_stack_direction ();
  6948. }
  6949. else
  6950. return (&dummy > addr) ? 1 : -1;
  6951. }
  6952. int
  6953. main ()
  6954. {
  6955. return find_stack_direction () < 0;
  6956. }
  6957. _ACEOF
  6958. if ac_fn_cxx_try_run "$LINENO"; then :
  6959. ac_cv_c_stack_direction=1
  6960. else
  6961. ac_cv_c_stack_direction=-1
  6962. fi
  6963. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6964. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6965. fi
  6966. fi
  6967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  6968. $as_echo "$ac_cv_c_stack_direction" >&6; }
  6969. cat >>confdefs.h <<_ACEOF
  6970. #define STACK_DIRECTION $ac_cv_c_stack_direction
  6971. _ACEOF
  6972. fi
  6973. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6974. $as_echo_n "checking for ANSI C header files... " >&6; }
  6975. if test "${ac_cv_header_stdc+set}" = set; then :
  6976. $as_echo_n "(cached) " >&6
  6977. else
  6978. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6979. /* end confdefs.h. */
  6980. #include <stdlib.h>
  6981. #include <stdarg.h>
  6982. #include <string.h>
  6983. #include <float.h>
  6984. int
  6985. main ()
  6986. {
  6987. ;
  6988. return 0;
  6989. }
  6990. _ACEOF
  6991. if ac_fn_cxx_try_compile "$LINENO"; then :
  6992. ac_cv_header_stdc=yes
  6993. else
  6994. ac_cv_header_stdc=no
  6995. fi
  6996. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6997. if test $ac_cv_header_stdc = yes; then
  6998. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6999. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7000. /* end confdefs.h. */
  7001. #include <string.h>
  7002. _ACEOF
  7003. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7004. $EGREP "memchr" >/dev/null 2>&1; then :
  7005. else
  7006. ac_cv_header_stdc=no
  7007. fi
  7008. rm -f conftest*
  7009. fi
  7010. if test $ac_cv_header_stdc = yes; then
  7011. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  7012. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7013. /* end confdefs.h. */
  7014. #include <stdlib.h>
  7015. _ACEOF
  7016. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7017. $EGREP "free" >/dev/null 2>&1; then :
  7018. else
  7019. ac_cv_header_stdc=no
  7020. fi
  7021. rm -f conftest*
  7022. fi
  7023. if test $ac_cv_header_stdc = yes; then
  7024. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  7025. if test "$cross_compiling" = yes; then :
  7026. :
  7027. else
  7028. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7029. /* end confdefs.h. */
  7030. #include <ctype.h>
  7031. #include <stdlib.h>
  7032. #if ((' ' & 0x0FF) == 0x020)
  7033. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  7034. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  7035. #else
  7036. # define ISLOWER(c) \
  7037. (('a' <= (c) && (c) <= 'i') \
  7038. || ('j' <= (c) && (c) <= 'r') \
  7039. || ('s' <= (c) && (c) <= 'z'))
  7040. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  7041. #endif
  7042. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  7043. int
  7044. main ()
  7045. {
  7046. int i;
  7047. for (i = 0; i < 256; i++)
  7048. if (XOR (islower (i), ISLOWER (i))
  7049. || toupper (i) != TOUPPER (i))
  7050. return 2;
  7051. return 0;
  7052. }
  7053. _ACEOF
  7054. if ac_fn_cxx_try_run "$LINENO"; then :
  7055. else
  7056. ac_cv_header_stdc=no
  7057. fi
  7058. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7059. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7060. fi
  7061. fi
  7062. fi
  7063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  7064. $as_echo "$ac_cv_header_stdc" >&6; }
  7065. if test $ac_cv_header_stdc = yes; then
  7066. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  7067. fi
  7068. case "$target" in
  7069. *mingw*)
  7070. for ac_header in windows.h \
  7071. winsock2.h \
  7072. ws2tcpip.h \
  7073. mmsystem.h
  7074. do :
  7075. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7076. ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_WINDOWS_H
  7077. # include <windows.h>
  7078. #endif
  7079. "
  7080. eval as_val=\$$as_ac_Header
  7081. if test "x$as_val" = x""yes; then :
  7082. cat >>confdefs.h <<_ACEOF
  7083. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7084. _ACEOF
  7085. fi
  7086. done
  7087. ;;
  7088. esac
  7089. for ac_header in argz.h \
  7090. arpa/inet.h \
  7091. fcntl.h \
  7092. float.h \
  7093. inttypes.h \
  7094. io.h \
  7095. langinfo.h \
  7096. libintl.h \
  7097. limits.h \
  7098. locale.h \
  7099. malloc.h \
  7100. netdb.h \
  7101. netinet/in.h \
  7102. poll.h \
  7103. stddef.h \
  7104. stdint.h \
  7105. stdio_ext.h \
  7106. stdlib.h \
  7107. string.h \
  7108. strings.h \
  7109. sys/ioctl.h \
  7110. sys/param.h \
  7111. sys/socket.h \
  7112. sys/time.h \
  7113. termios.h \
  7114. unistd.h \
  7115. utime.h \
  7116. wchar.h \
  7117. ifaddrs.h
  7118. do :
  7119. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7120. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  7121. eval as_val=\$$as_ac_Header
  7122. if test "x$as_val" = x""yes; then :
  7123. cat >>confdefs.h <<_ACEOF
  7124. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7125. _ACEOF
  7126. fi
  7127. done
  7128. # Checks for typedefs, structures, and compiler characteristics.
  7129. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
  7130. $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
  7131. if test "${ac_cv_header_stdbool_h+set}" = set; then :
  7132. $as_echo_n "(cached) " >&6
  7133. else
  7134. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7135. /* end confdefs.h. */
  7136. #include <stdbool.h>
  7137. #ifndef bool
  7138. "error: bool is not defined"
  7139. #endif
  7140. #ifndef false
  7141. "error: false is not defined"
  7142. #endif
  7143. #if false
  7144. "error: false is not 0"
  7145. #endif
  7146. #ifndef true
  7147. "error: true is not defined"
  7148. #endif
  7149. #if true != 1
  7150. "error: true is not 1"
  7151. #endif
  7152. #ifndef __bool_true_false_are_defined
  7153. "error: __bool_true_false_are_defined is not defined"
  7154. #endif
  7155. struct s { _Bool s: 1; _Bool t; } s;
  7156. char a[true == 1 ? 1 : -1];
  7157. char b[false == 0 ? 1 : -1];
  7158. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  7159. char d[(bool) 0.5 == true ? 1 : -1];
  7160. bool e = &s;
  7161. char f[(_Bool) 0.0 == false ? 1 : -1];
  7162. char g[true];
  7163. char h[sizeof (_Bool)];
  7164. char i[sizeof s.t];
  7165. enum { j = false, k = true, l = false * true, m = true * 256 };
  7166. /* The following fails for
  7167. HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
  7168. _Bool n[m];
  7169. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  7170. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  7171. # if defined __xlc__ || defined __GNUC__
  7172. /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
  7173. reported by James Lemley on 2005-10-05; see
  7174. http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
  7175. This test is not quite right, since xlc is allowed to
  7176. reject this program, as the initializer for xlcbug is
  7177. not one of the forms that C requires support for.
  7178. However, doing the test right would require a runtime
  7179. test, and that would make cross-compilation harder.
  7180. Let us hope that IBM fixes the xlc bug, and also adds
  7181. support for this kind of constant expression. In the
  7182. meantime, this test will reject xlc, which is OK, since
  7183. our stdbool.h substitute should suffice. We also test
  7184. this with GCC, where it should work, to detect more
  7185. quickly whether someone messes up the test in the
  7186. future. */
  7187. char digs[] = "0123456789";
  7188. int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
  7189. # endif
  7190. /* Catch a bug in an HP-UX C compiler. See
  7191. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  7192. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  7193. */
  7194. _Bool q = true;
  7195. _Bool *pq = &q;
  7196. int
  7197. main ()
  7198. {
  7199. *pq |= q;
  7200. *pq |= ! q;
  7201. /* Refer to every declared value, to avoid compiler optimizations. */
  7202. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  7203. + !m + !n + !o + !p + !q + !pq);
  7204. ;
  7205. return 0;
  7206. }
  7207. _ACEOF
  7208. if ac_fn_cxx_try_compile "$LINENO"; then :
  7209. ac_cv_header_stdbool_h=yes
  7210. else
  7211. ac_cv_header_stdbool_h=no
  7212. fi
  7213. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7214. fi
  7215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
  7216. $as_echo "$ac_cv_header_stdbool_h" >&6; }
  7217. ac_fn_cxx_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
  7218. if test "x$ac_cv_type__Bool" = x""yes; then :
  7219. cat >>confdefs.h <<_ACEOF
  7220. #define HAVE__BOOL 1
  7221. _ACEOF
  7222. fi
  7223. if test $ac_cv_header_stdbool_h = yes; then
  7224. $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
  7225. fi
  7226. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  7227. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  7228. if test "${ac_cv_c_const+set}" = set; then :
  7229. $as_echo_n "(cached) " >&6
  7230. else
  7231. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7232. /* end confdefs.h. */
  7233. int
  7234. main ()
  7235. {
  7236. /* FIXME: Include the comments suggested by Paul. */
  7237. #ifndef __cplusplus
  7238. /* Ultrix mips cc rejects this. */
  7239. typedef int charset[2];
  7240. const charset cs;
  7241. /* SunOS 4.1.1 cc rejects this. */
  7242. char const *const *pcpcc;
  7243. char **ppc;
  7244. /* NEC SVR4.0.2 mips cc rejects this. */
  7245. struct point {int x, y;};
  7246. static struct point const zero = {0,0};
  7247. /* AIX XL C 1.02.0.0 rejects this.
  7248. It does not let you subtract one const X* pointer from another in
  7249. an arm of an if-expression whose if-part is not a constant
  7250. expression */
  7251. const char *g = "string";
  7252. pcpcc = &g + (g ? g-g : 0);
  7253. /* HPUX 7.0 cc rejects these. */
  7254. ++pcpcc;
  7255. ppc = (char**) pcpcc;
  7256. pcpcc = (char const *const *) ppc;
  7257. { /* SCO 3.2v4 cc rejects this. */
  7258. char *t;
  7259. char const *s = 0 ? (char *) 0 : (char const *) 0;
  7260. *t++ = 0;
  7261. if (s) return 0;
  7262. }
  7263. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  7264. int x[] = {25, 17};
  7265. const int *foo = &x[0];
  7266. ++foo;
  7267. }
  7268. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  7269. typedef const int *iptr;
  7270. iptr p = 0;
  7271. ++p;
  7272. }
  7273. { /* AIX XL C 1.02.0.0 rejects this saying
  7274. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  7275. struct s { int j; const int *ap[3]; };
  7276. struct s *b; b->j = 5;
  7277. }
  7278. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  7279. const int foo = 10;
  7280. if (!foo) return 0;
  7281. }
  7282. return !cs[0] && !zero.x;
  7283. #endif
  7284. ;
  7285. return 0;
  7286. }
  7287. _ACEOF
  7288. if ac_fn_cxx_try_compile "$LINENO"; then :
  7289. ac_cv_c_const=yes
  7290. else
  7291. ac_cv_c_const=no
  7292. fi
  7293. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7294. fi
  7295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  7296. $as_echo "$ac_cv_c_const" >&6; }
  7297. if test $ac_cv_c_const = no; then
  7298. $as_echo "#define const /**/" >>confdefs.h
  7299. fi
  7300. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  7301. $as_echo_n "checking for inline... " >&6; }
  7302. if test "${ac_cv_c_inline+set}" = set; then :
  7303. $as_echo_n "(cached) " >&6
  7304. else
  7305. ac_cv_c_inline=no
  7306. for ac_kw in inline __inline__ __inline; do
  7307. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7308. /* end confdefs.h. */
  7309. #ifndef __cplusplus
  7310. typedef int foo_t;
  7311. static $ac_kw foo_t static_foo () {return 0; }
  7312. $ac_kw foo_t foo () {return 0; }
  7313. #endif
  7314. _ACEOF
  7315. if ac_fn_cxx_try_compile "$LINENO"; then :
  7316. ac_cv_c_inline=$ac_kw
  7317. fi
  7318. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7319. test "$ac_cv_c_inline" != no && break
  7320. done
  7321. fi
  7322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  7323. $as_echo "$ac_cv_c_inline" >&6; }
  7324. case $ac_cv_c_inline in
  7325. inline | yes) ;;
  7326. *)
  7327. case $ac_cv_c_inline in
  7328. no) ac_val=;;
  7329. *) ac_val=$ac_cv_c_inline;;
  7330. esac
  7331. cat >>confdefs.h <<_ACEOF
  7332. #ifndef __cplusplus
  7333. #define inline $ac_val
  7334. #endif
  7335. _ACEOF
  7336. ;;
  7337. esac
  7338. ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
  7339. case $ac_cv_c_int16_t in #(
  7340. no|yes) ;; #(
  7341. *)
  7342. cat >>confdefs.h <<_ACEOF
  7343. #define int16_t $ac_cv_c_int16_t
  7344. _ACEOF
  7345. ;;
  7346. esac
  7347. ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
  7348. case $ac_cv_c_int32_t in #(
  7349. no|yes) ;; #(
  7350. *)
  7351. cat >>confdefs.h <<_ACEOF
  7352. #define int32_t $ac_cv_c_int32_t
  7353. _ACEOF
  7354. ;;
  7355. esac
  7356. ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
  7357. case $ac_cv_c_int64_t in #(
  7358. no|yes) ;; #(
  7359. *)
  7360. cat >>confdefs.h <<_ACEOF
  7361. #define int64_t $ac_cv_c_int64_t
  7362. _ACEOF
  7363. ;;
  7364. esac
  7365. ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
  7366. case $ac_cv_c_int8_t in #(
  7367. no|yes) ;; #(
  7368. *)
  7369. cat >>confdefs.h <<_ACEOF
  7370. #define int8_t $ac_cv_c_int8_t
  7371. _ACEOF
  7372. ;;
  7373. esac
  7374. ac_fn_cxx_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
  7375. if test "x$ac_cv_type_mode_t" = x""yes; then :
  7376. else
  7377. cat >>confdefs.h <<_ACEOF
  7378. #define mode_t int
  7379. _ACEOF
  7380. fi
  7381. ac_fn_cxx_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
  7382. if test "x$ac_cv_type_off_t" = x""yes; then :
  7383. else
  7384. cat >>confdefs.h <<_ACEOF
  7385. #define off_t long int
  7386. _ACEOF
  7387. fi
  7388. ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  7389. if test "x$ac_cv_type_size_t" = x""yes; then :
  7390. else
  7391. cat >>confdefs.h <<_ACEOF
  7392. #define size_t unsigned int
  7393. _ACEOF
  7394. fi
  7395. ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
  7396. if test "x$ac_cv_type_ssize_t" = x""yes; then :
  7397. else
  7398. cat >>confdefs.h <<_ACEOF
  7399. #define ssize_t int
  7400. _ACEOF
  7401. fi
  7402. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  7403. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  7404. if test "${ac_cv_header_time+set}" = set; then :
  7405. $as_echo_n "(cached) " >&6
  7406. else
  7407. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7408. /* end confdefs.h. */
  7409. #include <sys/types.h>
  7410. #include <sys/time.h>
  7411. #include <time.h>
  7412. int
  7413. main ()
  7414. {
  7415. if ((struct tm *) 0)
  7416. return 0;
  7417. ;
  7418. return 0;
  7419. }
  7420. _ACEOF
  7421. if ac_fn_cxx_try_compile "$LINENO"; then :
  7422. ac_cv_header_time=yes
  7423. else
  7424. ac_cv_header_time=no
  7425. fi
  7426. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7427. fi
  7428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  7429. $as_echo "$ac_cv_header_time" >&6; }
  7430. if test $ac_cv_header_time = yes; then
  7431. $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  7432. fi
  7433. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  7434. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  7435. if test "${ac_cv_struct_tm+set}" = set; then :
  7436. $as_echo_n "(cached) " >&6
  7437. else
  7438. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7439. /* end confdefs.h. */
  7440. #include <sys/types.h>
  7441. #include <time.h>
  7442. int
  7443. main ()
  7444. {
  7445. struct tm tm;
  7446. int *p = &tm.tm_sec;
  7447. return !p;
  7448. ;
  7449. return 0;
  7450. }
  7451. _ACEOF
  7452. if ac_fn_cxx_try_compile "$LINENO"; then :
  7453. ac_cv_struct_tm=time.h
  7454. else
  7455. ac_cv_struct_tm=sys/time.h
  7456. fi
  7457. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7458. fi
  7459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  7460. $as_echo "$ac_cv_struct_tm" >&6; }
  7461. if test $ac_cv_struct_tm = sys/time.h; then
  7462. $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
  7463. fi
  7464. ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
  7465. case $ac_cv_c_uint16_t in #(
  7466. no|yes) ;; #(
  7467. *)
  7468. cat >>confdefs.h <<_ACEOF
  7469. #define uint16_t $ac_cv_c_uint16_t
  7470. _ACEOF
  7471. ;;
  7472. esac
  7473. ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
  7474. case $ac_cv_c_uint32_t in #(
  7475. no|yes) ;; #(
  7476. *)
  7477. $as_echo "#define _UINT32_T 1" >>confdefs.h
  7478. cat >>confdefs.h <<_ACEOF
  7479. #define uint32_t $ac_cv_c_uint32_t
  7480. _ACEOF
  7481. ;;
  7482. esac
  7483. ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
  7484. case $ac_cv_c_uint64_t in #(
  7485. no|yes) ;; #(
  7486. *)
  7487. $as_echo "#define _UINT64_T 1" >>confdefs.h
  7488. cat >>confdefs.h <<_ACEOF
  7489. #define uint64_t $ac_cv_c_uint64_t
  7490. _ACEOF
  7491. ;;
  7492. esac
  7493. ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
  7494. case $ac_cv_c_uint8_t in #(
  7495. no|yes) ;; #(
  7496. *)
  7497. $as_echo "#define _UINT8_T 1" >>confdefs.h
  7498. cat >>confdefs.h <<_ACEOF
  7499. #define uint8_t $ac_cv_c_uint8_t
  7500. _ACEOF
  7501. ;;
  7502. esac
  7503. ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  7504. if test "x$ac_cv_type_pid_t" = x""yes; then :
  7505. else
  7506. cat >>confdefs.h <<_ACEOF
  7507. #define pid_t int
  7508. _ACEOF
  7509. fi
  7510. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  7511. $as_echo_n "checking for working volatile... " >&6; }
  7512. if test "${ac_cv_c_volatile+set}" = set; then :
  7513. $as_echo_n "(cached) " >&6
  7514. else
  7515. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7516. /* end confdefs.h. */
  7517. int
  7518. main ()
  7519. {
  7520. volatile int x;
  7521. int * volatile y = (int *) 0;
  7522. return !x && !y;
  7523. ;
  7524. return 0;
  7525. }
  7526. _ACEOF
  7527. if ac_fn_cxx_try_compile "$LINENO"; then :
  7528. ac_cv_c_volatile=yes
  7529. else
  7530. ac_cv_c_volatile=no
  7531. fi
  7532. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7533. fi
  7534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  7535. $as_echo "$ac_cv_c_volatile" >&6; }
  7536. if test $ac_cv_c_volatile = no; then
  7537. $as_echo "#define volatile /**/" >>confdefs.h
  7538. fi
  7539. ac_fn_cxx_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
  7540. if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
  7541. cat >>confdefs.h <<_ACEOF
  7542. #define HAVE_PTRDIFF_T 1
  7543. _ACEOF
  7544. fi
  7545. ac_fn_cxx_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "$ac_includes_default"
  7546. if test "x$ac_cv_type_struct_timespec" = x""yes; then :
  7547. cat >>confdefs.h <<_ACEOF
  7548. #define HAVE_STRUCT_TIMESPEC 1
  7549. _ACEOF
  7550. fi
  7551. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  7552. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  7553. if test "${ac_cv_c_bigendian+set}" = set; then :
  7554. $as_echo_n "(cached) " >&6
  7555. else
  7556. ac_cv_c_bigendian=unknown
  7557. # See if we're dealing with a universal compiler.
  7558. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7559. /* end confdefs.h. */
  7560. #ifndef __APPLE_CC__
  7561. not a universal capable compiler
  7562. #endif
  7563. typedef int dummy;
  7564. _ACEOF
  7565. if ac_fn_cxx_try_compile "$LINENO"; then :
  7566. # Check for potential -arch flags. It is not universal unless
  7567. # there are at least two -arch flags with different values.
  7568. ac_arch=
  7569. ac_prev=
  7570. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  7571. if test -n "$ac_prev"; then
  7572. case $ac_word in
  7573. i?86 | x86_64 | ppc | ppc64)
  7574. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  7575. ac_arch=$ac_word
  7576. else
  7577. ac_cv_c_bigendian=universal
  7578. break
  7579. fi
  7580. ;;
  7581. esac
  7582. ac_prev=
  7583. elif test "x$ac_word" = "x-arch"; then
  7584. ac_prev=arch
  7585. fi
  7586. done
  7587. fi
  7588. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7589. if test $ac_cv_c_bigendian = unknown; then
  7590. # See if sys/param.h defines the BYTE_ORDER macro.
  7591. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7592. /* end confdefs.h. */
  7593. #include <sys/types.h>
  7594. #include <sys/param.h>
  7595. int
  7596. main ()
  7597. {
  7598. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  7599. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  7600. && LITTLE_ENDIAN)
  7601. bogus endian macros
  7602. #endif
  7603. ;
  7604. return 0;
  7605. }
  7606. _ACEOF
  7607. if ac_fn_cxx_try_compile "$LINENO"; then :
  7608. # It does; now see whether it defined to BIG_ENDIAN or not.
  7609. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7610. /* end confdefs.h. */
  7611. #include <sys/types.h>
  7612. #include <sys/param.h>
  7613. int
  7614. main ()
  7615. {
  7616. #if BYTE_ORDER != BIG_ENDIAN
  7617. not big endian
  7618. #endif
  7619. ;
  7620. return 0;
  7621. }
  7622. _ACEOF
  7623. if ac_fn_cxx_try_compile "$LINENO"; then :
  7624. ac_cv_c_bigendian=yes
  7625. else
  7626. ac_cv_c_bigendian=no
  7627. fi
  7628. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7629. fi
  7630. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7631. fi
  7632. if test $ac_cv_c_bigendian = unknown; then
  7633. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  7634. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7635. /* end confdefs.h. */
  7636. #include <limits.h>
  7637. int
  7638. main ()
  7639. {
  7640. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  7641. bogus endian macros
  7642. #endif
  7643. ;
  7644. return 0;
  7645. }
  7646. _ACEOF
  7647. if ac_fn_cxx_try_compile "$LINENO"; then :
  7648. # It does; now see whether it defined to _BIG_ENDIAN or not.
  7649. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7650. /* end confdefs.h. */
  7651. #include <limits.h>
  7652. int
  7653. main ()
  7654. {
  7655. #ifndef _BIG_ENDIAN
  7656. not big endian
  7657. #endif
  7658. ;
  7659. return 0;
  7660. }
  7661. _ACEOF
  7662. if ac_fn_cxx_try_compile "$LINENO"; then :
  7663. ac_cv_c_bigendian=yes
  7664. else
  7665. ac_cv_c_bigendian=no
  7666. fi
  7667. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7668. fi
  7669. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7670. fi
  7671. if test $ac_cv_c_bigendian = unknown; then
  7672. # Compile a test program.
  7673. if test "$cross_compiling" = yes; then :
  7674. # Try to guess by grepping values from an object file.
  7675. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7676. /* end confdefs.h. */
  7677. short int ascii_mm[] =
  7678. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  7679. short int ascii_ii[] =
  7680. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  7681. int use_ascii (int i) {
  7682. return ascii_mm[i] + ascii_ii[i];
  7683. }
  7684. short int ebcdic_ii[] =
  7685. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  7686. short int ebcdic_mm[] =
  7687. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  7688. int use_ebcdic (int i) {
  7689. return ebcdic_mm[i] + ebcdic_ii[i];
  7690. }
  7691. extern int foo;
  7692. int
  7693. main ()
  7694. {
  7695. return use_ascii (foo) == use_ebcdic (foo);
  7696. ;
  7697. return 0;
  7698. }
  7699. _ACEOF
  7700. if ac_fn_cxx_try_compile "$LINENO"; then :
  7701. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  7702. ac_cv_c_bigendian=yes
  7703. fi
  7704. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  7705. if test "$ac_cv_c_bigendian" = unknown; then
  7706. ac_cv_c_bigendian=no
  7707. else
  7708. # finding both strings is unlikely to happen, but who knows?
  7709. ac_cv_c_bigendian=unknown
  7710. fi
  7711. fi
  7712. fi
  7713. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7714. else
  7715. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7716. /* end confdefs.h. */
  7717. $ac_includes_default
  7718. int
  7719. main ()
  7720. {
  7721. /* Are we little or big endian? From Harbison&Steele. */
  7722. union
  7723. {
  7724. long int l;
  7725. char c[sizeof (long int)];
  7726. } u;
  7727. u.l = 1;
  7728. return u.c[sizeof (long int) - 1] == 1;
  7729. ;
  7730. return 0;
  7731. }
  7732. _ACEOF
  7733. if ac_fn_cxx_try_run "$LINENO"; then :
  7734. ac_cv_c_bigendian=no
  7735. else
  7736. ac_cv_c_bigendian=yes
  7737. fi
  7738. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7739. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7740. fi
  7741. fi
  7742. fi
  7743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  7744. $as_echo "$ac_cv_c_bigendian" >&6; }
  7745. case $ac_cv_c_bigendian in #(
  7746. yes)
  7747. $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  7748. ;; #(
  7749. no)
  7750. ;; #(
  7751. universal)
  7752. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  7753. ;; #(
  7754. *)
  7755. as_fn_error "unknown endianness
  7756. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  7757. esac
  7758. # Check whether --enable-largefile was given.
  7759. if test "${enable_largefile+set}" = set; then :
  7760. enableval=$enable_largefile;
  7761. fi
  7762. if test "$enable_largefile" != no; then
  7763. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  7764. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  7765. if test "${ac_cv_sys_largefile_CC+set}" = set; then :
  7766. $as_echo_n "(cached) " >&6
  7767. else
  7768. ac_cv_sys_largefile_CC=no
  7769. if test "$GCC" != yes; then
  7770. ac_save_CC=$CC
  7771. while :; do
  7772. # IRIX 6.2 and later do not support large files by default,
  7773. # so use the C compiler's -n32 option if that helps.
  7774. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7775. /* end confdefs.h. */
  7776. #include <sys/types.h>
  7777. /* Check that off_t can represent 2**63 - 1 correctly.
  7778. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7779. since some C++ compilers masquerading as C compilers
  7780. incorrectly reject 9223372036854775807. */
  7781. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7782. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7783. && LARGE_OFF_T % 2147483647 == 1)
  7784. ? 1 : -1];
  7785. int
  7786. main ()
  7787. {
  7788. ;
  7789. return 0;
  7790. }
  7791. _ACEOF
  7792. if ac_fn_cxx_try_compile "$LINENO"; then :
  7793. break
  7794. fi
  7795. rm -f core conftest.err conftest.$ac_objext
  7796. CC="$CC -n32"
  7797. if ac_fn_cxx_try_compile "$LINENO"; then :
  7798. ac_cv_sys_largefile_CC=' -n32'; break
  7799. fi
  7800. rm -f core conftest.err conftest.$ac_objext
  7801. break
  7802. done
  7803. CC=$ac_save_CC
  7804. rm -f conftest.$ac_ext
  7805. fi
  7806. fi
  7807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  7808. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  7809. if test "$ac_cv_sys_largefile_CC" != no; then
  7810. CC=$CC$ac_cv_sys_largefile_CC
  7811. fi
  7812. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  7813. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  7814. if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
  7815. $as_echo_n "(cached) " >&6
  7816. else
  7817. while :; do
  7818. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7819. /* end confdefs.h. */
  7820. #include <sys/types.h>
  7821. /* Check that off_t can represent 2**63 - 1 correctly.
  7822. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7823. since some C++ compilers masquerading as C compilers
  7824. incorrectly reject 9223372036854775807. */
  7825. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7826. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7827. && LARGE_OFF_T % 2147483647 == 1)
  7828. ? 1 : -1];
  7829. int
  7830. main ()
  7831. {
  7832. ;
  7833. return 0;
  7834. }
  7835. _ACEOF
  7836. if ac_fn_cxx_try_compile "$LINENO"; then :
  7837. ac_cv_sys_file_offset_bits=no; break
  7838. fi
  7839. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7840. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7841. /* end confdefs.h. */
  7842. #define _FILE_OFFSET_BITS 64
  7843. #include <sys/types.h>
  7844. /* Check that off_t can represent 2**63 - 1 correctly.
  7845. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7846. since some C++ compilers masquerading as C compilers
  7847. incorrectly reject 9223372036854775807. */
  7848. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7849. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7850. && LARGE_OFF_T % 2147483647 == 1)
  7851. ? 1 : -1];
  7852. int
  7853. main ()
  7854. {
  7855. ;
  7856. return 0;
  7857. }
  7858. _ACEOF
  7859. if ac_fn_cxx_try_compile "$LINENO"; then :
  7860. ac_cv_sys_file_offset_bits=64; break
  7861. fi
  7862. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7863. ac_cv_sys_file_offset_bits=unknown
  7864. break
  7865. done
  7866. fi
  7867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  7868. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  7869. case $ac_cv_sys_file_offset_bits in #(
  7870. no | unknown) ;;
  7871. *)
  7872. cat >>confdefs.h <<_ACEOF
  7873. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  7874. _ACEOF
  7875. ;;
  7876. esac
  7877. rm -rf conftest*
  7878. if test $ac_cv_sys_file_offset_bits = unknown; then
  7879. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  7880. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  7881. if test "${ac_cv_sys_large_files+set}" = set; then :
  7882. $as_echo_n "(cached) " >&6
  7883. else
  7884. while :; do
  7885. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7886. /* end confdefs.h. */
  7887. #include <sys/types.h>
  7888. /* Check that off_t can represent 2**63 - 1 correctly.
  7889. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7890. since some C++ compilers masquerading as C compilers
  7891. incorrectly reject 9223372036854775807. */
  7892. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7893. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7894. && LARGE_OFF_T % 2147483647 == 1)
  7895. ? 1 : -1];
  7896. int
  7897. main ()
  7898. {
  7899. ;
  7900. return 0;
  7901. }
  7902. _ACEOF
  7903. if ac_fn_cxx_try_compile "$LINENO"; then :
  7904. ac_cv_sys_large_files=no; break
  7905. fi
  7906. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7907. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7908. /* end confdefs.h. */
  7909. #define _LARGE_FILES 1
  7910. #include <sys/types.h>
  7911. /* Check that off_t can represent 2**63 - 1 correctly.
  7912. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7913. since some C++ compilers masquerading as C compilers
  7914. incorrectly reject 9223372036854775807. */
  7915. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7916. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7917. && LARGE_OFF_T % 2147483647 == 1)
  7918. ? 1 : -1];
  7919. int
  7920. main ()
  7921. {
  7922. ;
  7923. return 0;
  7924. }
  7925. _ACEOF
  7926. if ac_fn_cxx_try_compile "$LINENO"; then :
  7927. ac_cv_sys_large_files=1; break
  7928. fi
  7929. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7930. ac_cv_sys_large_files=unknown
  7931. break
  7932. done
  7933. fi
  7934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  7935. $as_echo "$ac_cv_sys_large_files" >&6; }
  7936. case $ac_cv_sys_large_files in #(
  7937. no | unknown) ;;
  7938. *)
  7939. cat >>confdefs.h <<_ACEOF
  7940. #define _LARGE_FILES $ac_cv_sys_large_files
  7941. _ACEOF
  7942. ;;
  7943. esac
  7944. rm -rf conftest*
  7945. fi
  7946. fi
  7947. # Checks for library functions.
  7948. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
  7949. $as_echo_n "checking whether NLS is requested... " >&6; }
  7950. # Check whether --enable-nls was given.
  7951. if test "${enable_nls+set}" = set; then :
  7952. enableval=$enable_nls; USE_NLS=$enableval
  7953. else
  7954. USE_NLS=yes
  7955. fi
  7956. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
  7957. $as_echo "$USE_NLS" >&6; }
  7958. GETTEXT_MACRO_VERSION=0.17
  7959. # Prepare PATH_SEPARATOR.
  7960. # The user is always right.
  7961. if test "${PATH_SEPARATOR+set}" != set; then
  7962. echo "#! /bin/sh" >conf$$.sh
  7963. echo "exit 0" >>conf$$.sh
  7964. chmod +x conf$$.sh
  7965. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  7966. PATH_SEPARATOR=';'
  7967. else
  7968. PATH_SEPARATOR=:
  7969. fi
  7970. rm -f conf$$.sh
  7971. fi
  7972. # Find out how to test for executable files. Don't use a zero-byte file,
  7973. # as systems may use methods other than mode bits to determine executability.
  7974. cat >conf$$.file <<_ASEOF
  7975. #! /bin/sh
  7976. exit 0
  7977. _ASEOF
  7978. chmod +x conf$$.file
  7979. if test -x conf$$.file >/dev/null 2>&1; then
  7980. ac_executable_p="test -x"
  7981. else
  7982. ac_executable_p="test -f"
  7983. fi
  7984. rm -f conf$$.file
  7985. # Extract the first word of "msgfmt", so it can be a program name with args.
  7986. set dummy msgfmt; ac_word=$2
  7987. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7988. $as_echo_n "checking for $ac_word... " >&6; }
  7989. if test "${ac_cv_path_MSGFMT+set}" = set; then :
  7990. $as_echo_n "(cached) " >&6
  7991. else
  7992. case "$MSGFMT" in
  7993. [\\/]* | ?:[\\/]*)
  7994. ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  7995. ;;
  7996. *)
  7997. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  7998. for ac_dir in $PATH; do
  7999. IFS="$ac_save_IFS"
  8000. test -z "$ac_dir" && ac_dir=.
  8001. for ac_exec_ext in '' $ac_executable_extensions; do
  8002. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  8003. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  8004. if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
  8005. (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  8006. ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
  8007. break 2
  8008. fi
  8009. fi
  8010. done
  8011. done
  8012. IFS="$ac_save_IFS"
  8013. test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
  8014. ;;
  8015. esac
  8016. fi
  8017. MSGFMT="$ac_cv_path_MSGFMT"
  8018. if test "$MSGFMT" != ":"; then
  8019. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
  8020. $as_echo "$MSGFMT" >&6; }
  8021. else
  8022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8023. $as_echo "no" >&6; }
  8024. fi
  8025. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  8026. set dummy gmsgfmt; ac_word=$2
  8027. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8028. $as_echo_n "checking for $ac_word... " >&6; }
  8029. if test "${ac_cv_path_GMSGFMT+set}" = set; then :
  8030. $as_echo_n "(cached) " >&6
  8031. else
  8032. case $GMSGFMT in
  8033. [\\/]* | ?:[\\/]*)
  8034. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  8035. ;;
  8036. *)
  8037. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8038. for as_dir in $PATH
  8039. do
  8040. IFS=$as_save_IFS
  8041. test -z "$as_dir" && as_dir=.
  8042. for ac_exec_ext in '' $ac_executable_extensions; do
  8043. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8044. ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  8045. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8046. break 2
  8047. fi
  8048. done
  8049. done
  8050. IFS=$as_save_IFS
  8051. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  8052. ;;
  8053. esac
  8054. fi
  8055. GMSGFMT=$ac_cv_path_GMSGFMT
  8056. if test -n "$GMSGFMT"; then
  8057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
  8058. $as_echo "$GMSGFMT" >&6; }
  8059. else
  8060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8061. $as_echo "no" >&6; }
  8062. fi
  8063. case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  8064. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
  8065. *) MSGFMT_015=$MSGFMT ;;
  8066. esac
  8067. case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  8068. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
  8069. *) GMSGFMT_015=$GMSGFMT ;;
  8070. esac
  8071. # Prepare PATH_SEPARATOR.
  8072. # The user is always right.
  8073. if test "${PATH_SEPARATOR+set}" != set; then
  8074. echo "#! /bin/sh" >conf$$.sh
  8075. echo "exit 0" >>conf$$.sh
  8076. chmod +x conf$$.sh
  8077. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  8078. PATH_SEPARATOR=';'
  8079. else
  8080. PATH_SEPARATOR=:
  8081. fi
  8082. rm -f conf$$.sh
  8083. fi
  8084. # Find out how to test for executable files. Don't use a zero-byte file,
  8085. # as systems may use methods other than mode bits to determine executability.
  8086. cat >conf$$.file <<_ASEOF
  8087. #! /bin/sh
  8088. exit 0
  8089. _ASEOF
  8090. chmod +x conf$$.file
  8091. if test -x conf$$.file >/dev/null 2>&1; then
  8092. ac_executable_p="test -x"
  8093. else
  8094. ac_executable_p="test -f"
  8095. fi
  8096. rm -f conf$$.file
  8097. # Extract the first word of "xgettext", so it can be a program name with args.
  8098. set dummy xgettext; ac_word=$2
  8099. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8100. $as_echo_n "checking for $ac_word... " >&6; }
  8101. if test "${ac_cv_path_XGETTEXT+set}" = set; then :
  8102. $as_echo_n "(cached) " >&6
  8103. else
  8104. case "$XGETTEXT" in
  8105. [\\/]* | ?:[\\/]*)
  8106. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  8107. ;;
  8108. *)
  8109. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  8110. for ac_dir in $PATH; do
  8111. IFS="$ac_save_IFS"
  8112. test -z "$ac_dir" && ac_dir=.
  8113. for ac_exec_ext in '' $ac_executable_extensions; do
  8114. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  8115. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  8116. if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
  8117. (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
  8118. ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
  8119. break 2
  8120. fi
  8121. fi
  8122. done
  8123. done
  8124. IFS="$ac_save_IFS"
  8125. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  8126. ;;
  8127. esac
  8128. fi
  8129. XGETTEXT="$ac_cv_path_XGETTEXT"
  8130. if test "$XGETTEXT" != ":"; then
  8131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
  8132. $as_echo "$XGETTEXT" >&6; }
  8133. else
  8134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8135. $as_echo "no" >&6; }
  8136. fi
  8137. rm -f messages.po
  8138. case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  8139. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
  8140. *) XGETTEXT_015=$XGETTEXT ;;
  8141. esac
  8142. # Prepare PATH_SEPARATOR.
  8143. # The user is always right.
  8144. if test "${PATH_SEPARATOR+set}" != set; then
  8145. echo "#! /bin/sh" >conf$$.sh
  8146. echo "exit 0" >>conf$$.sh
  8147. chmod +x conf$$.sh
  8148. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  8149. PATH_SEPARATOR=';'
  8150. else
  8151. PATH_SEPARATOR=:
  8152. fi
  8153. rm -f conf$$.sh
  8154. fi
  8155. # Find out how to test for executable files. Don't use a zero-byte file,
  8156. # as systems may use methods other than mode bits to determine executability.
  8157. cat >conf$$.file <<_ASEOF
  8158. #! /bin/sh
  8159. exit 0
  8160. _ASEOF
  8161. chmod +x conf$$.file
  8162. if test -x conf$$.file >/dev/null 2>&1; then
  8163. ac_executable_p="test -x"
  8164. else
  8165. ac_executable_p="test -f"
  8166. fi
  8167. rm -f conf$$.file
  8168. # Extract the first word of "msgmerge", so it can be a program name with args.
  8169. set dummy msgmerge; ac_word=$2
  8170. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8171. $as_echo_n "checking for $ac_word... " >&6; }
  8172. if test "${ac_cv_path_MSGMERGE+set}" = set; then :
  8173. $as_echo_n "(cached) " >&6
  8174. else
  8175. case "$MSGMERGE" in
  8176. [\\/]* | ?:[\\/]*)
  8177. ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  8178. ;;
  8179. *)
  8180. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  8181. for ac_dir in $PATH; do
  8182. IFS="$ac_save_IFS"
  8183. test -z "$ac_dir" && ac_dir=.
  8184. for ac_exec_ext in '' $ac_executable_extensions; do
  8185. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  8186. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  8187. if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
  8188. ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
  8189. break 2
  8190. fi
  8191. fi
  8192. done
  8193. done
  8194. IFS="$ac_save_IFS"
  8195. test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
  8196. ;;
  8197. esac
  8198. fi
  8199. MSGMERGE="$ac_cv_path_MSGMERGE"
  8200. if test "$MSGMERGE" != ":"; then
  8201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
  8202. $as_echo "$MSGMERGE" >&6; }
  8203. else
  8204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8205. $as_echo "no" >&6; }
  8206. fi
  8207. test -n "$localedir" || localedir='${datadir}/locale'
  8208. test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
  8209. ac_config_commands="$ac_config_commands po-directories"
  8210. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
  8211. $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
  8212. if test "${ac_cv_gnu_library_2+set}" = set; then :
  8213. $as_echo_n "(cached) " >&6
  8214. else
  8215. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8216. /* end confdefs.h. */
  8217. #include <features.h>
  8218. #ifdef __GNU_LIBRARY__
  8219. #if (__GLIBC__ >= 2)
  8220. Lucky GNU user
  8221. #endif
  8222. #endif
  8223. _ACEOF
  8224. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  8225. $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
  8226. ac_cv_gnu_library_2=yes
  8227. else
  8228. ac_cv_gnu_library_2=no
  8229. fi
  8230. rm -f conftest*
  8231. fi
  8232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
  8233. $as_echo "$ac_cv_gnu_library_2" >&6; }
  8234. GLIBC2="$ac_cv_gnu_library_2"
  8235. CFLAG_VISIBILITY=
  8236. HAVE_VISIBILITY=0
  8237. if test -n "$GCC"; then
  8238. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
  8239. $as_echo_n "checking for simple visibility declarations... " >&6; }
  8240. if test "${gl_cv_cc_visibility+set}" = set; then :
  8241. $as_echo_n "(cached) " >&6
  8242. else
  8243. gl_save_CFLAGS="$CFLAGS"
  8244. CFLAGS="$CFLAGS -fvisibility=hidden"
  8245. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8246. /* end confdefs.h. */
  8247. extern __attribute__((__visibility__("hidden"))) int hiddenvar;
  8248. extern __attribute__((__visibility__("default"))) int exportedvar;
  8249. extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
  8250. extern __attribute__((__visibility__("default"))) int exportedfunc (void);
  8251. int
  8252. main ()
  8253. {
  8254. ;
  8255. return 0;
  8256. }
  8257. _ACEOF
  8258. if ac_fn_cxx_try_compile "$LINENO"; then :
  8259. gl_cv_cc_visibility=yes
  8260. else
  8261. gl_cv_cc_visibility=no
  8262. fi
  8263. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8264. CFLAGS="$gl_save_CFLAGS"
  8265. fi
  8266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
  8267. $as_echo "$gl_cv_cc_visibility" >&6; }
  8268. if test $gl_cv_cc_visibility = yes; then
  8269. CFLAG_VISIBILITY="-fvisibility=hidden"
  8270. HAVE_VISIBILITY=1
  8271. fi
  8272. fi
  8273. cat >>confdefs.h <<_ACEOF
  8274. #define HAVE_VISIBILITY $HAVE_VISIBILITY
  8275. _ACEOF
  8276. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
  8277. $as_echo_n "checking for stdint.h... " >&6; }
  8278. if test "${gl_cv_header_stdint_h+set}" = set; then :
  8279. $as_echo_n "(cached) " >&6
  8280. else
  8281. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8282. /* end confdefs.h. */
  8283. #include <sys/types.h>
  8284. #include <stdint.h>
  8285. int
  8286. main ()
  8287. {
  8288. uintmax_t i = (uintmax_t) -1; return !i;
  8289. ;
  8290. return 0;
  8291. }
  8292. _ACEOF
  8293. if ac_fn_cxx_try_compile "$LINENO"; then :
  8294. gl_cv_header_stdint_h=yes
  8295. else
  8296. gl_cv_header_stdint_h=no
  8297. fi
  8298. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8299. fi
  8300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
  8301. $as_echo "$gl_cv_header_stdint_h" >&6; }
  8302. if test $gl_cv_header_stdint_h = yes; then
  8303. cat >>confdefs.h <<_ACEOF
  8304. #define HAVE_STDINT_H_WITH_UINTMAX 1
  8305. _ACEOF
  8306. fi
  8307. for ac_header in $ac_header_list
  8308. do :
  8309. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8310. ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  8311. "
  8312. eval as_val=\$$as_ac_Header
  8313. if test "x$as_val" = x""yes; then :
  8314. cat >>confdefs.h <<_ACEOF
  8315. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8316. _ACEOF
  8317. fi
  8318. done
  8319. for ac_func in getpagesize
  8320. do :
  8321. ac_fn_cxx_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  8322. if test "x$ac_cv_func_getpagesize" = x""yes; then :
  8323. cat >>confdefs.h <<_ACEOF
  8324. #define HAVE_GETPAGESIZE 1
  8325. _ACEOF
  8326. fi
  8327. done
  8328. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  8329. $as_echo_n "checking for working mmap... " >&6; }
  8330. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
  8331. $as_echo_n "(cached) " >&6
  8332. else
  8333. if test "$cross_compiling" = yes; then :
  8334. ac_cv_func_mmap_fixed_mapped=no
  8335. else
  8336. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8337. /* end confdefs.h. */
  8338. $ac_includes_default
  8339. /* malloc might have been renamed as rpl_malloc. */
  8340. #undef malloc
  8341. /* Thanks to Mike Haertel and Jim Avera for this test.
  8342. Here is a matrix of mmap possibilities:
  8343. mmap private not fixed
  8344. mmap private fixed at somewhere currently unmapped
  8345. mmap private fixed at somewhere already mapped
  8346. mmap shared not fixed
  8347. mmap shared fixed at somewhere currently unmapped
  8348. mmap shared fixed at somewhere already mapped
  8349. For private mappings, we should verify that changes cannot be read()
  8350. back from the file, nor mmap's back from the file at a different
  8351. address. (There have been systems where private was not correctly
  8352. implemented like the infamous i386 svr4.0, and systems where the
  8353. VM page cache was not coherent with the file system buffer cache
  8354. like early versions of FreeBSD and possibly contemporary NetBSD.)
  8355. For shared mappings, we should conversely verify that changes get
  8356. propagated back to all the places they're supposed to be.
  8357. Grep wants private fixed already mapped.
  8358. The main things grep needs to know about mmap are:
  8359. * does it exist and is it safe to write into the mmap'd area
  8360. * how to use it (BSD variants) */
  8361. #include <fcntl.h>
  8362. #include <sys/mman.h>
  8363. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  8364. char *malloc ();
  8365. #endif
  8366. /* This mess was copied from the GNU getpagesize.h. */
  8367. #ifndef HAVE_GETPAGESIZE
  8368. # ifdef _SC_PAGESIZE
  8369. # define getpagesize() sysconf(_SC_PAGESIZE)
  8370. # else /* no _SC_PAGESIZE */
  8371. # ifdef HAVE_SYS_PARAM_H
  8372. # include <sys/param.h>
  8373. # ifdef EXEC_PAGESIZE
  8374. # define getpagesize() EXEC_PAGESIZE
  8375. # else /* no EXEC_PAGESIZE */
  8376. # ifdef NBPG
  8377. # define getpagesize() NBPG * CLSIZE
  8378. # ifndef CLSIZE
  8379. # define CLSIZE 1
  8380. # endif /* no CLSIZE */
  8381. # else /* no NBPG */
  8382. # ifdef NBPC
  8383. # define getpagesize() NBPC
  8384. # else /* no NBPC */
  8385. # ifdef PAGESIZE
  8386. # define getpagesize() PAGESIZE
  8387. # endif /* PAGESIZE */
  8388. # endif /* no NBPC */
  8389. # endif /* no NBPG */
  8390. # endif /* no EXEC_PAGESIZE */
  8391. # else /* no HAVE_SYS_PARAM_H */
  8392. # define getpagesize() 8192 /* punt totally */
  8393. # endif /* no HAVE_SYS_PARAM_H */
  8394. # endif /* no _SC_PAGESIZE */
  8395. #endif /* no HAVE_GETPAGESIZE */
  8396. int
  8397. main ()
  8398. {
  8399. char *data, *data2, *data3;
  8400. const char *cdata2;
  8401. int i, pagesize;
  8402. int fd, fd2;
  8403. pagesize = getpagesize ();
  8404. /* First, make a file with some known garbage in it. */
  8405. data = (char *) malloc (pagesize);
  8406. if (!data)
  8407. return 1;
  8408. for (i = 0; i < pagesize; ++i)
  8409. *(data + i) = rand ();
  8410. umask (0);
  8411. fd = creat ("conftest.mmap", 0600);
  8412. if (fd < 0)
  8413. return 2;
  8414. if (write (fd, data, pagesize) != pagesize)
  8415. return 3;
  8416. close (fd);
  8417. /* Next, check that the tail of a page is zero-filled. File must have
  8418. non-zero length, otherwise we risk SIGBUS for entire page. */
  8419. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  8420. if (fd2 < 0)
  8421. return 4;
  8422. cdata2 = "";
  8423. if (write (fd2, cdata2, 1) != 1)
  8424. return 5;
  8425. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  8426. if (data2 == MAP_FAILED)
  8427. return 6;
  8428. for (i = 0; i < pagesize; ++i)
  8429. if (*(data2 + i))
  8430. return 7;
  8431. close (fd2);
  8432. if (munmap (data2, pagesize))
  8433. return 8;
  8434. /* Next, try to mmap the file at a fixed address which already has
  8435. something else allocated at it. If we can, also make sure that
  8436. we see the same garbage. */
  8437. fd = open ("conftest.mmap", O_RDWR);
  8438. if (fd < 0)
  8439. return 9;
  8440. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  8441. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  8442. return 10;
  8443. for (i = 0; i < pagesize; ++i)
  8444. if (*(data + i) != *(data2 + i))
  8445. return 11;
  8446. /* Finally, make sure that changes to the mapped area do not
  8447. percolate back to the file as seen by read(). (This is a bug on
  8448. some variants of i386 svr4.0.) */
  8449. for (i = 0; i < pagesize; ++i)
  8450. *(data2 + i) = *(data2 + i) + 1;
  8451. data3 = (char *) malloc (pagesize);
  8452. if (!data3)
  8453. return 12;
  8454. if (read (fd, data3, pagesize) != pagesize)
  8455. return 13;
  8456. for (i = 0; i < pagesize; ++i)
  8457. if (*(data + i) != *(data3 + i))
  8458. return 14;
  8459. close (fd);
  8460. return 0;
  8461. }
  8462. _ACEOF
  8463. if ac_fn_cxx_try_run "$LINENO"; then :
  8464. ac_cv_func_mmap_fixed_mapped=yes
  8465. else
  8466. ac_cv_func_mmap_fixed_mapped=no
  8467. fi
  8468. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  8469. conftest.$ac_objext conftest.beam conftest.$ac_ext
  8470. fi
  8471. fi
  8472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  8473. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  8474. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  8475. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  8476. fi
  8477. rm -f conftest.mmap conftest.txt
  8478. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
  8479. $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
  8480. if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
  8481. $as_echo_n "(cached) " >&6
  8482. else
  8483. gt_cv_int_divbyzero_sigfpe=
  8484. case "$host_os" in
  8485. macos* | darwin[6-9]* | darwin[1-9][0-9]*)
  8486. # On MacOS X 10.2 or newer, just assume the same as when cross-
  8487. # compiling. If we were to perform the real test, 1 Crash Report
  8488. # dialog window would pop up.
  8489. case "$host_cpu" in
  8490. i[34567]86 | x86_64)
  8491. gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
  8492. esac
  8493. ;;
  8494. esac
  8495. if test -z "$gt_cv_int_divbyzero_sigfpe"; then
  8496. if test "$cross_compiling" = yes; then :
  8497. # Guess based on the CPU.
  8498. case "$host_cpu" in
  8499. alpha* | i[34567]86 | x86_64 | m68k | s390*)
  8500. gt_cv_int_divbyzero_sigfpe="guessing yes";;
  8501. *)
  8502. gt_cv_int_divbyzero_sigfpe="guessing no";;
  8503. esac
  8504. else
  8505. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8506. /* end confdefs.h. */
  8507. #include <stdlib.h>
  8508. #include <signal.h>
  8509. static void
  8510. sigfpe_handler (int sig)
  8511. {
  8512. /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
  8513. exit (sig != SIGFPE);
  8514. }
  8515. int x = 1;
  8516. int y = 0;
  8517. int z;
  8518. int nan;
  8519. int main ()
  8520. {
  8521. signal (SIGFPE, sigfpe_handler);
  8522. /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
  8523. #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
  8524. signal (SIGTRAP, sigfpe_handler);
  8525. #endif
  8526. /* Linux/SPARC yields signal SIGILL. */
  8527. #if defined (__sparc__) && defined (__linux__)
  8528. signal (SIGILL, sigfpe_handler);
  8529. #endif
  8530. z = x / y;
  8531. nan = y / y;
  8532. exit (1);
  8533. }
  8534. _ACEOF
  8535. if ac_fn_cxx_try_run "$LINENO"; then :
  8536. gt_cv_int_divbyzero_sigfpe=yes
  8537. else
  8538. gt_cv_int_divbyzero_sigfpe=no
  8539. fi
  8540. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  8541. conftest.$ac_objext conftest.beam conftest.$ac_ext
  8542. fi
  8543. fi
  8544. fi
  8545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
  8546. $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
  8547. case "$gt_cv_int_divbyzero_sigfpe" in
  8548. *yes) value=1;;
  8549. *) value=0;;
  8550. esac
  8551. cat >>confdefs.h <<_ACEOF
  8552. #define INTDIV0_RAISES_SIGFPE $value
  8553. _ACEOF
  8554. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
  8555. $as_echo_n "checking for inttypes.h... " >&6; }
  8556. if test "${gl_cv_header_inttypes_h+set}" = set; then :
  8557. $as_echo_n "(cached) " >&6
  8558. else
  8559. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8560. /* end confdefs.h. */
  8561. #include <sys/types.h>
  8562. #include <inttypes.h>
  8563. int
  8564. main ()
  8565. {
  8566. uintmax_t i = (uintmax_t) -1; return !i;
  8567. ;
  8568. return 0;
  8569. }
  8570. _ACEOF
  8571. if ac_fn_cxx_try_compile "$LINENO"; then :
  8572. gl_cv_header_inttypes_h=yes
  8573. else
  8574. gl_cv_header_inttypes_h=no
  8575. fi
  8576. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8577. fi
  8578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
  8579. $as_echo "$gl_cv_header_inttypes_h" >&6; }
  8580. if test $gl_cv_header_inttypes_h = yes; then
  8581. cat >>confdefs.h <<_ACEOF
  8582. #define HAVE_INTTYPES_H_WITH_UINTMAX 1
  8583. _ACEOF
  8584. fi
  8585. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
  8586. $as_echo_n "checking for unsigned long long int... " >&6; }
  8587. if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
  8588. $as_echo_n "(cached) " >&6
  8589. else
  8590. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8591. /* end confdefs.h. */
  8592. /* Test preprocessor. */
  8593. #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  8594. error in preprocessor;
  8595. #endif
  8596. #if ! (18446744073709551615ULL <= -1ull)
  8597. error in preprocessor;
  8598. #endif
  8599. /* Test literals. */
  8600. long long int ll = 9223372036854775807ll;
  8601. long long int nll = -9223372036854775807LL;
  8602. unsigned long long int ull = 18446744073709551615ULL;
  8603. /* Test constant expressions. */
  8604. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  8605. ? 1 : -1)];
  8606. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  8607. ? 1 : -1)];
  8608. int i = 63;
  8609. int
  8610. main ()
  8611. {
  8612. /* Test availability of runtime routines for shift and division. */
  8613. long long int llmax = 9223372036854775807ll;
  8614. unsigned long long int ullmax = 18446744073709551615ull;
  8615. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  8616. | (llmax / ll) | (llmax % ll)
  8617. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  8618. | (ullmax / ull) | (ullmax % ull));
  8619. ;
  8620. return 0;
  8621. }
  8622. _ACEOF
  8623. if ac_fn_cxx_try_link "$LINENO"; then :
  8624. ac_cv_type_unsigned_long_long_int=yes
  8625. else
  8626. ac_cv_type_unsigned_long_long_int=no
  8627. fi
  8628. rm -f core conftest.err conftest.$ac_objext \
  8629. conftest$ac_exeext conftest.$ac_ext
  8630. fi
  8631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
  8632. $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
  8633. if test $ac_cv_type_unsigned_long_long_int = yes; then
  8634. $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
  8635. fi
  8636. if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
  8637. test $ac_cv_type_unsigned_long_long_int = yes \
  8638. && ac_type='unsigned long long' \
  8639. || ac_type='unsigned long'
  8640. cat >>confdefs.h <<_ACEOF
  8641. #define uintmax_t $ac_type
  8642. _ACEOF
  8643. else
  8644. $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
  8645. fi
  8646. for ac_header in inttypes.h
  8647. do :
  8648. ac_fn_cxx_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
  8649. if test "x$ac_cv_header_inttypes_h" = x""yes; then :
  8650. cat >>confdefs.h <<_ACEOF
  8651. #define HAVE_INTTYPES_H 1
  8652. _ACEOF
  8653. fi
  8654. done
  8655. if test $ac_cv_header_inttypes_h = yes; then
  8656. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
  8657. $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
  8658. if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
  8659. $as_echo_n "(cached) " >&6
  8660. else
  8661. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8662. /* end confdefs.h. */
  8663. #include <inttypes.h>
  8664. #ifdef PRId32
  8665. char *p = PRId32;
  8666. #endif
  8667. int
  8668. main ()
  8669. {
  8670. ;
  8671. return 0;
  8672. }
  8673. _ACEOF
  8674. if ac_fn_cxx_try_compile "$LINENO"; then :
  8675. gt_cv_inttypes_pri_broken=no
  8676. else
  8677. gt_cv_inttypes_pri_broken=yes
  8678. fi
  8679. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8680. fi
  8681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
  8682. $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
  8683. fi
  8684. if test "$gt_cv_inttypes_pri_broken" = yes; then
  8685. cat >>confdefs.h <<_ACEOF
  8686. #define PRI_MACROS_BROKEN 1
  8687. _ACEOF
  8688. PRI_MACROS_BROKEN=1
  8689. else
  8690. PRI_MACROS_BROKEN=0
  8691. fi
  8692. # Check whether --enable-threads was given.
  8693. if test "${enable_threads+set}" = set; then :
  8694. enableval=$enable_threads; gl_use_threads=$enableval
  8695. else
  8696. case "$host_os" in
  8697. osf*) gl_use_threads=no ;;
  8698. *) gl_use_threads=yes ;;
  8699. esac
  8700. fi
  8701. if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
  8702. # For using <pthread.h>:
  8703. case "$host_os" in
  8704. osf*)
  8705. # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
  8706. # groks <pthread.h>. cc also understands the flag -pthread, but
  8707. # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
  8708. # 2. putting a flag into CPPFLAGS that has an effect on the linker
  8709. # causes the AC_TRY_LINK test below to succeed unexpectedly,
  8710. # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
  8711. CPPFLAGS="$CPPFLAGS -D_REENTRANT"
  8712. ;;
  8713. esac
  8714. # Some systems optimize for single-threaded programs by default, and
  8715. # need special flags to disable these optimizations. For example, the
  8716. # definition of 'errno' in <errno.h>.
  8717. case "$host_os" in
  8718. aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
  8719. solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
  8720. esac
  8721. fi
  8722. if test "X$prefix" = "XNONE"; then
  8723. acl_final_prefix="$ac_default_prefix"
  8724. else
  8725. acl_final_prefix="$prefix"
  8726. fi
  8727. if test "X$exec_prefix" = "XNONE"; then
  8728. acl_final_exec_prefix='${prefix}'
  8729. else
  8730. acl_final_exec_prefix="$exec_prefix"
  8731. fi
  8732. acl_save_prefix="$prefix"
  8733. prefix="$acl_final_prefix"
  8734. eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  8735. prefix="$acl_save_prefix"
  8736. # Check whether --with-gnu-ld was given.
  8737. if test "${with_gnu_ld+set}" = set; then :
  8738. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  8739. else
  8740. with_gnu_ld=no
  8741. fi
  8742. # Prepare PATH_SEPARATOR.
  8743. # The user is always right.
  8744. if test "${PATH_SEPARATOR+set}" != set; then
  8745. echo "#! /bin/sh" >conf$$.sh
  8746. echo "exit 0" >>conf$$.sh
  8747. chmod +x conf$$.sh
  8748. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  8749. PATH_SEPARATOR=';'
  8750. else
  8751. PATH_SEPARATOR=:
  8752. fi
  8753. rm -f conf$$.sh
  8754. fi
  8755. ac_prog=ld
  8756. if test "$GCC" = yes; then
  8757. # Check if gcc -print-prog-name=ld gives a path.
  8758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
  8759. $as_echo_n "checking for ld used by GCC... " >&6; }
  8760. case $host in
  8761. *-*-mingw*)
  8762. # gcc leaves a trailing carriage return which upsets mingw
  8763. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  8764. *)
  8765. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  8766. esac
  8767. case $ac_prog in
  8768. # Accept absolute paths.
  8769. [\\/]* | [A-Za-z]:[\\/]*)
  8770. re_direlt='/[^/][^/]*/\.\./'
  8771. # Canonicalize the path of ld
  8772. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  8773. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  8774. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  8775. done
  8776. test -z "$LD" && LD="$ac_prog"
  8777. ;;
  8778. "")
  8779. # If it fails, then pretend we aren't using GCC.
  8780. ac_prog=ld
  8781. ;;
  8782. *)
  8783. # If it is relative, then search for the first ld in PATH.
  8784. with_gnu_ld=unknown
  8785. ;;
  8786. esac
  8787. elif test "$with_gnu_ld" = yes; then
  8788. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  8789. $as_echo_n "checking for GNU ld... " >&6; }
  8790. else
  8791. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  8792. $as_echo_n "checking for non-GNU ld... " >&6; }
  8793. fi
  8794. if test "${acl_cv_path_LD+set}" = set; then :
  8795. $as_echo_n "(cached) " >&6
  8796. else
  8797. if test -z "$LD"; then
  8798. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  8799. for ac_dir in $PATH; do
  8800. test -z "$ac_dir" && ac_dir=.
  8801. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  8802. acl_cv_path_LD="$ac_dir/$ac_prog"
  8803. # Check to see if the program is GNU ld. I'd rather use --version,
  8804. # but apparently some GNU ld's only accept -v.
  8805. # Break only if it was the GNU/non-GNU ld that we prefer.
  8806. case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
  8807. *GNU* | *'with BFD'*)
  8808. test "$with_gnu_ld" != no && break ;;
  8809. *)
  8810. test "$with_gnu_ld" != yes && break ;;
  8811. esac
  8812. fi
  8813. done
  8814. IFS="$ac_save_ifs"
  8815. else
  8816. acl_cv_path_LD="$LD" # Let the user override the test with a path.
  8817. fi
  8818. fi
  8819. LD="$acl_cv_path_LD"
  8820. if test -n "$LD"; then
  8821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  8822. $as_echo "$LD" >&6; }
  8823. else
  8824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8825. $as_echo "no" >&6; }
  8826. fi
  8827. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  8828. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  8829. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  8830. if test "${acl_cv_prog_gnu_ld+set}" = set; then :
  8831. $as_echo_n "(cached) " >&6
  8832. else
  8833. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  8834. case `$LD -v 2>&1 </dev/null` in
  8835. *GNU* | *'with BFD'*)
  8836. acl_cv_prog_gnu_ld=yes ;;
  8837. *)
  8838. acl_cv_prog_gnu_ld=no ;;
  8839. esac
  8840. fi
  8841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
  8842. $as_echo "$acl_cv_prog_gnu_ld" >&6; }
  8843. with_gnu_ld=$acl_cv_prog_gnu_ld
  8844. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
  8845. $as_echo_n "checking for shared library run path origin... " >&6; }
  8846. if test "${acl_cv_rpath+set}" = set; then :
  8847. $as_echo_n "(cached) " >&6
  8848. else
  8849. CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  8850. ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  8851. . ./conftest.sh
  8852. rm -f ./conftest.sh
  8853. acl_cv_rpath=done
  8854. fi
  8855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
  8856. $as_echo "$acl_cv_rpath" >&6; }
  8857. wl="$acl_cv_wl"
  8858. acl_libext="$acl_cv_libext"
  8859. acl_shlibext="$acl_cv_shlibext"
  8860. acl_libname_spec="$acl_cv_libname_spec"
  8861. acl_library_names_spec="$acl_cv_library_names_spec"
  8862. acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  8863. acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  8864. acl_hardcode_direct="$acl_cv_hardcode_direct"
  8865. acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
  8866. # Check whether --enable-rpath was given.
  8867. if test "${enable_rpath+set}" = set; then :
  8868. enableval=$enable_rpath; :
  8869. else
  8870. enable_rpath=yes
  8871. fi
  8872. acl_libdirstem=lib
  8873. searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
  8874. if test -n "$searchpath"; then
  8875. acl_save_IFS="${IFS= }"; IFS=":"
  8876. for searchdir in $searchpath; do
  8877. if test -d "$searchdir"; then
  8878. case "$searchdir" in
  8879. */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
  8880. *) searchdir=`cd "$searchdir" && pwd`
  8881. case "$searchdir" in
  8882. */lib64 ) acl_libdirstem=lib64 ;;
  8883. esac ;;
  8884. esac
  8885. fi
  8886. done
  8887. IFS="$acl_save_IFS"
  8888. fi
  8889. gl_threads_api=none
  8890. LIBTHREAD=
  8891. LTLIBTHREAD=
  8892. LIBMULTITHREAD=
  8893. LTLIBMULTITHREAD=
  8894. if test "$gl_use_threads" != no; then
  8895. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
  8896. $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
  8897. gl_have_weak=no
  8898. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8899. /* end confdefs.h. */
  8900. extern void xyzzy ();
  8901. #pragma weak xyzzy
  8902. int
  8903. main ()
  8904. {
  8905. xyzzy();
  8906. ;
  8907. return 0;
  8908. }
  8909. _ACEOF
  8910. if ac_fn_cxx_try_link "$LINENO"; then :
  8911. gl_have_weak=yes
  8912. fi
  8913. rm -f core conftest.err conftest.$ac_objext \
  8914. conftest$ac_exeext conftest.$ac_ext
  8915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_weak" >&5
  8916. $as_echo "$gl_have_weak" >&6; }
  8917. if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
  8918. # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
  8919. # it groks <pthread.h>. It's added above, in gl_LOCK_EARLY_BODY.
  8920. ac_fn_cxx_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
  8921. if test "x$ac_cv_header_pthread_h" = x""yes; then :
  8922. gl_have_pthread_h=yes
  8923. else
  8924. gl_have_pthread_h=no
  8925. fi
  8926. if test "$gl_have_pthread_h" = yes; then
  8927. # Other possible tests:
  8928. # -lpthreads (FSU threads, PCthreads)
  8929. # -lgthreads
  8930. gl_have_pthread=
  8931. # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
  8932. # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
  8933. # the second one only in libpthread, and lock.c needs it.
  8934. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8935. /* end confdefs.h. */
  8936. #include <pthread.h>
  8937. int
  8938. main ()
  8939. {
  8940. pthread_mutex_lock((pthread_mutex_t*)0);
  8941. pthread_mutexattr_init((pthread_mutexattr_t*)0);
  8942. ;
  8943. return 0;
  8944. }
  8945. _ACEOF
  8946. if ac_fn_cxx_try_link "$LINENO"; then :
  8947. gl_have_pthread=yes
  8948. fi
  8949. rm -f core conftest.err conftest.$ac_objext \
  8950. conftest$ac_exeext conftest.$ac_ext
  8951. # Test for libpthread by looking for pthread_kill. (Not pthread_self,
  8952. # since it is defined as a macro on OSF/1.)
  8953. if test -n "$gl_have_pthread"; then
  8954. # The program links fine without libpthread. But it may actually
  8955. # need to link with libpthread in order to create multiple threads.
  8956. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
  8957. $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
  8958. if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then :
  8959. $as_echo_n "(cached) " >&6
  8960. else
  8961. ac_check_lib_save_LIBS=$LIBS
  8962. LIBS="-lpthread $LIBS"
  8963. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8964. /* end confdefs.h. */
  8965. /* Override any GCC internal prototype to avoid an error.
  8966. Use char because int might match the return type of a GCC
  8967. builtin and then its argument prototype would still apply. */
  8968. #ifdef __cplusplus
  8969. extern "C"
  8970. #endif
  8971. char pthread_kill ();
  8972. int
  8973. main ()
  8974. {
  8975. return pthread_kill ();
  8976. ;
  8977. return 0;
  8978. }
  8979. _ACEOF
  8980. if ac_fn_cxx_try_link "$LINENO"; then :
  8981. ac_cv_lib_pthread_pthread_kill=yes
  8982. else
  8983. ac_cv_lib_pthread_pthread_kill=no
  8984. fi
  8985. rm -f core conftest.err conftest.$ac_objext \
  8986. conftest$ac_exeext conftest.$ac_ext
  8987. LIBS=$ac_check_lib_save_LIBS
  8988. fi
  8989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
  8990. $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
  8991. if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then :
  8992. LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
  8993. # On Solaris and HP-UX, most pthread functions exist also in libc.
  8994. # Therefore pthread_in_use() needs to actually try to create a
  8995. # thread: pthread_create from libc will fail, whereas
  8996. # pthread_create will actually create a thread.
  8997. case "$host_os" in
  8998. solaris* | hpux*)
  8999. $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
  9000. esac
  9001. fi
  9002. else
  9003. # Some library is needed. Try libpthread and libc_r.
  9004. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
  9005. $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
  9006. if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then :
  9007. $as_echo_n "(cached) " >&6
  9008. else
  9009. ac_check_lib_save_LIBS=$LIBS
  9010. LIBS="-lpthread $LIBS"
  9011. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9012. /* end confdefs.h. */
  9013. /* Override any GCC internal prototype to avoid an error.
  9014. Use char because int might match the return type of a GCC
  9015. builtin and then its argument prototype would still apply. */
  9016. #ifdef __cplusplus
  9017. extern "C"
  9018. #endif
  9019. char pthread_kill ();
  9020. int
  9021. main ()
  9022. {
  9023. return pthread_kill ();
  9024. ;
  9025. return 0;
  9026. }
  9027. _ACEOF
  9028. if ac_fn_cxx_try_link "$LINENO"; then :
  9029. ac_cv_lib_pthread_pthread_kill=yes
  9030. else
  9031. ac_cv_lib_pthread_pthread_kill=no
  9032. fi
  9033. rm -f core conftest.err conftest.$ac_objext \
  9034. conftest$ac_exeext conftest.$ac_ext
  9035. LIBS=$ac_check_lib_save_LIBS
  9036. fi
  9037. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
  9038. $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
  9039. if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then :
  9040. gl_have_pthread=yes
  9041. LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
  9042. LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
  9043. fi
  9044. if test -z "$gl_have_pthread"; then
  9045. # For FreeBSD 4.
  9046. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
  9047. $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
  9048. if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then :
  9049. $as_echo_n "(cached) " >&6
  9050. else
  9051. ac_check_lib_save_LIBS=$LIBS
  9052. LIBS="-lc_r $LIBS"
  9053. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9054. /* end confdefs.h. */
  9055. /* Override any GCC internal prototype to avoid an error.
  9056. Use char because int might match the return type of a GCC
  9057. builtin and then its argument prototype would still apply. */
  9058. #ifdef __cplusplus
  9059. extern "C"
  9060. #endif
  9061. char pthread_kill ();
  9062. int
  9063. main ()
  9064. {
  9065. return pthread_kill ();
  9066. ;
  9067. return 0;
  9068. }
  9069. _ACEOF
  9070. if ac_fn_cxx_try_link "$LINENO"; then :
  9071. ac_cv_lib_c_r_pthread_kill=yes
  9072. else
  9073. ac_cv_lib_c_r_pthread_kill=no
  9074. fi
  9075. rm -f core conftest.err conftest.$ac_objext \
  9076. conftest$ac_exeext conftest.$ac_ext
  9077. LIBS=$ac_check_lib_save_LIBS
  9078. fi
  9079. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
  9080. $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
  9081. if test "x$ac_cv_lib_c_r_pthread_kill" = x""yes; then :
  9082. gl_have_pthread=yes
  9083. LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
  9084. LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
  9085. fi
  9086. fi
  9087. fi
  9088. if test -n "$gl_have_pthread"; then
  9089. gl_threads_api=posix
  9090. $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
  9091. if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
  9092. if test $gl_have_weak = yes; then
  9093. $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
  9094. LIBTHREAD=
  9095. LTLIBTHREAD=
  9096. fi
  9097. fi
  9098. # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
  9099. # pthread_rwlock_* functions.
  9100. ac_fn_cxx_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
  9101. "
  9102. if test "x$ac_cv_type_pthread_rwlock_t" = x""yes; then :
  9103. $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
  9104. fi
  9105. # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
  9106. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9107. /* end confdefs.h. */
  9108. #include <pthread.h>
  9109. int
  9110. main ()
  9111. {
  9112. #if __FreeBSD__ == 4
  9113. error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
  9114. #else
  9115. int x = (int)PTHREAD_MUTEX_RECURSIVE;
  9116. return !x;
  9117. #endif
  9118. ;
  9119. return 0;
  9120. }
  9121. _ACEOF
  9122. if ac_fn_cxx_try_compile "$LINENO"; then :
  9123. $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
  9124. fi
  9125. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9126. fi
  9127. fi
  9128. fi
  9129. if test -z "$gl_have_pthread"; then
  9130. if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
  9131. gl_have_solaristhread=
  9132. gl_save_LIBS="$LIBS"
  9133. LIBS="$LIBS -lthread"
  9134. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9135. /* end confdefs.h. */
  9136. #include <thread.h>
  9137. #include <synch.h>
  9138. int
  9139. main ()
  9140. {
  9141. thr_self();
  9142. ;
  9143. return 0;
  9144. }
  9145. _ACEOF
  9146. if ac_fn_cxx_try_link "$LINENO"; then :
  9147. gl_have_solaristhread=yes
  9148. fi
  9149. rm -f core conftest.err conftest.$ac_objext \
  9150. conftest$ac_exeext conftest.$ac_ext
  9151. LIBS="$gl_save_LIBS"
  9152. if test -n "$gl_have_solaristhread"; then
  9153. gl_threads_api=solaris
  9154. LIBTHREAD=-lthread
  9155. LTLIBTHREAD=-lthread
  9156. LIBMULTITHREAD="$LIBTHREAD"
  9157. LTLIBMULTITHREAD="$LTLIBTHREAD"
  9158. $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
  9159. if test $gl_have_weak = yes; then
  9160. $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
  9161. LIBTHREAD=
  9162. LTLIBTHREAD=
  9163. fi
  9164. fi
  9165. fi
  9166. fi
  9167. if test "$gl_use_threads" = pth; then
  9168. gl_save_CPPFLAGS="$CPPFLAGS"
  9169. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
  9170. $as_echo_n "checking how to link with libpth... " >&6; }
  9171. if test "${ac_cv_libpth_libs+set}" = set; then :
  9172. $as_echo_n "(cached) " >&6
  9173. else
  9174. use_additional=yes
  9175. acl_save_prefix="$prefix"
  9176. prefix="$acl_final_prefix"
  9177. acl_save_exec_prefix="$exec_prefix"
  9178. exec_prefix="$acl_final_exec_prefix"
  9179. eval additional_includedir=\"$includedir\"
  9180. eval additional_libdir=\"$libdir\"
  9181. exec_prefix="$acl_save_exec_prefix"
  9182. prefix="$acl_save_prefix"
  9183. # Check whether --with-libpth-prefix was given.
  9184. if test "${with_libpth_prefix+set}" = set; then :
  9185. withval=$with_libpth_prefix;
  9186. if test "X$withval" = "Xno"; then
  9187. use_additional=no
  9188. else
  9189. if test "X$withval" = "X"; then
  9190. acl_save_prefix="$prefix"
  9191. prefix="$acl_final_prefix"
  9192. acl_save_exec_prefix="$exec_prefix"
  9193. exec_prefix="$acl_final_exec_prefix"
  9194. eval additional_includedir=\"$includedir\"
  9195. eval additional_libdir=\"$libdir\"
  9196. exec_prefix="$acl_save_exec_prefix"
  9197. prefix="$acl_save_prefix"
  9198. else
  9199. additional_includedir="$withval/include"
  9200. additional_libdir="$withval/$acl_libdirstem"
  9201. fi
  9202. fi
  9203. fi
  9204. LIBPTH=
  9205. LTLIBPTH=
  9206. INCPTH=
  9207. LIBPTH_PREFIX=
  9208. rpathdirs=
  9209. ltrpathdirs=
  9210. names_already_handled=
  9211. names_next_round='pth '
  9212. while test -n "$names_next_round"; do
  9213. names_this_round="$names_next_round"
  9214. names_next_round=
  9215. for name in $names_this_round; do
  9216. already_handled=
  9217. for n in $names_already_handled; do
  9218. if test "$n" = "$name"; then
  9219. already_handled=yes
  9220. break
  9221. fi
  9222. done
  9223. if test -z "$already_handled"; then
  9224. names_already_handled="$names_already_handled $name"
  9225. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  9226. eval value=\"\$HAVE_LIB$uppername\"
  9227. if test -n "$value"; then
  9228. if test "$value" = yes; then
  9229. eval value=\"\$LIB$uppername\"
  9230. test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
  9231. eval value=\"\$LTLIB$uppername\"
  9232. test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
  9233. else
  9234. :
  9235. fi
  9236. else
  9237. found_dir=
  9238. found_la=
  9239. found_so=
  9240. found_a=
  9241. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  9242. if test -n "$acl_shlibext"; then
  9243. shrext=".$acl_shlibext" # typically: shrext=.so
  9244. else
  9245. shrext=
  9246. fi
  9247. if test $use_additional = yes; then
  9248. dir="$additional_libdir"
  9249. if test -n "$acl_shlibext"; then
  9250. if test -f "$dir/$libname$shrext"; then
  9251. found_dir="$dir"
  9252. found_so="$dir/$libname$shrext"
  9253. else
  9254. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  9255. ver=`(cd "$dir" && \
  9256. for f in "$libname$shrext".*; do echo "$f"; done \
  9257. | sed -e "s,^$libname$shrext\\\\.,," \
  9258. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  9259. | sed 1q ) 2>/dev/null`
  9260. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  9261. found_dir="$dir"
  9262. found_so="$dir/$libname$shrext.$ver"
  9263. fi
  9264. else
  9265. eval library_names=\"$acl_library_names_spec\"
  9266. for f in $library_names; do
  9267. if test -f "$dir/$f"; then
  9268. found_dir="$dir"
  9269. found_so="$dir/$f"
  9270. break
  9271. fi
  9272. done
  9273. fi
  9274. fi
  9275. fi
  9276. if test "X$found_dir" = "X"; then
  9277. if test -f "$dir/$libname.$acl_libext"; then
  9278. found_dir="$dir"
  9279. found_a="$dir/$libname.$acl_libext"
  9280. fi
  9281. fi
  9282. if test "X$found_dir" != "X"; then
  9283. if test -f "$dir/$libname.la"; then
  9284. found_la="$dir/$libname.la"
  9285. fi
  9286. fi
  9287. fi
  9288. if test "X$found_dir" = "X"; then
  9289. for x in $LDFLAGS $LTLIBPTH; do
  9290. acl_save_prefix="$prefix"
  9291. prefix="$acl_final_prefix"
  9292. acl_save_exec_prefix="$exec_prefix"
  9293. exec_prefix="$acl_final_exec_prefix"
  9294. eval x=\"$x\"
  9295. exec_prefix="$acl_save_exec_prefix"
  9296. prefix="$acl_save_prefix"
  9297. case "$x" in
  9298. -L*)
  9299. dir=`echo "X$x" | sed -e 's/^X-L//'`
  9300. if test -n "$acl_shlibext"; then
  9301. if test -f "$dir/$libname$shrext"; then
  9302. found_dir="$dir"
  9303. found_so="$dir/$libname$shrext"
  9304. else
  9305. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  9306. ver=`(cd "$dir" && \
  9307. for f in "$libname$shrext".*; do echo "$f"; done \
  9308. | sed -e "s,^$libname$shrext\\\\.,," \
  9309. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  9310. | sed 1q ) 2>/dev/null`
  9311. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  9312. found_dir="$dir"
  9313. found_so="$dir/$libname$shrext.$ver"
  9314. fi
  9315. else
  9316. eval library_names=\"$acl_library_names_spec\"
  9317. for f in $library_names; do
  9318. if test -f "$dir/$f"; then
  9319. found_dir="$dir"
  9320. found_so="$dir/$f"
  9321. break
  9322. fi
  9323. done
  9324. fi
  9325. fi
  9326. fi
  9327. if test "X$found_dir" = "X"; then
  9328. if test -f "$dir/$libname.$acl_libext"; then
  9329. found_dir="$dir"
  9330. found_a="$dir/$libname.$acl_libext"
  9331. fi
  9332. fi
  9333. if test "X$found_dir" != "X"; then
  9334. if test -f "$dir/$libname.la"; then
  9335. found_la="$dir/$libname.la"
  9336. fi
  9337. fi
  9338. ;;
  9339. esac
  9340. if test "X$found_dir" != "X"; then
  9341. break
  9342. fi
  9343. done
  9344. fi
  9345. if test "X$found_dir" != "X"; then
  9346. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
  9347. if test "X$found_so" != "X"; then
  9348. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  9349. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  9350. else
  9351. haveit=
  9352. for x in $ltrpathdirs; do
  9353. if test "X$x" = "X$found_dir"; then
  9354. haveit=yes
  9355. break
  9356. fi
  9357. done
  9358. if test -z "$haveit"; then
  9359. ltrpathdirs="$ltrpathdirs $found_dir"
  9360. fi
  9361. if test "$acl_hardcode_direct" = yes; then
  9362. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  9363. else
  9364. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  9365. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  9366. haveit=
  9367. for x in $rpathdirs; do
  9368. if test "X$x" = "X$found_dir"; then
  9369. haveit=yes
  9370. break
  9371. fi
  9372. done
  9373. if test -z "$haveit"; then
  9374. rpathdirs="$rpathdirs $found_dir"
  9375. fi
  9376. else
  9377. haveit=
  9378. for x in $LDFLAGS $LIBPTH; do
  9379. acl_save_prefix="$prefix"
  9380. prefix="$acl_final_prefix"
  9381. acl_save_exec_prefix="$exec_prefix"
  9382. exec_prefix="$acl_final_exec_prefix"
  9383. eval x=\"$x\"
  9384. exec_prefix="$acl_save_exec_prefix"
  9385. prefix="$acl_save_prefix"
  9386. if test "X$x" = "X-L$found_dir"; then
  9387. haveit=yes
  9388. break
  9389. fi
  9390. done
  9391. if test -z "$haveit"; then
  9392. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
  9393. fi
  9394. if test "$acl_hardcode_minus_L" != no; then
  9395. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  9396. else
  9397. LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
  9398. fi
  9399. fi
  9400. fi
  9401. fi
  9402. else
  9403. if test "X$found_a" != "X"; then
  9404. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
  9405. else
  9406. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
  9407. fi
  9408. fi
  9409. additional_includedir=
  9410. case "$found_dir" in
  9411. */$acl_libdirstem | */$acl_libdirstem/)
  9412. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  9413. LIBPTH_PREFIX="$basedir"
  9414. additional_includedir="$basedir/include"
  9415. ;;
  9416. esac
  9417. if test "X$additional_includedir" != "X"; then
  9418. if test "X$additional_includedir" != "X/usr/include"; then
  9419. haveit=
  9420. if test "X$additional_includedir" = "X/usr/local/include"; then
  9421. if test -n "$GCC"; then
  9422. case $host_os in
  9423. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  9424. esac
  9425. fi
  9426. fi
  9427. if test -z "$haveit"; then
  9428. for x in $CPPFLAGS $INCPTH; do
  9429. acl_save_prefix="$prefix"
  9430. prefix="$acl_final_prefix"
  9431. acl_save_exec_prefix="$exec_prefix"
  9432. exec_prefix="$acl_final_exec_prefix"
  9433. eval x=\"$x\"
  9434. exec_prefix="$acl_save_exec_prefix"
  9435. prefix="$acl_save_prefix"
  9436. if test "X$x" = "X-I$additional_includedir"; then
  9437. haveit=yes
  9438. break
  9439. fi
  9440. done
  9441. if test -z "$haveit"; then
  9442. if test -d "$additional_includedir"; then
  9443. INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
  9444. fi
  9445. fi
  9446. fi
  9447. fi
  9448. fi
  9449. if test -n "$found_la"; then
  9450. save_libdir="$libdir"
  9451. case "$found_la" in
  9452. */* | *\\*) . "$found_la" ;;
  9453. *) . "./$found_la" ;;
  9454. esac
  9455. libdir="$save_libdir"
  9456. for dep in $dependency_libs; do
  9457. case "$dep" in
  9458. -L*)
  9459. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  9460. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  9461. haveit=
  9462. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  9463. if test -n "$GCC"; then
  9464. case $host_os in
  9465. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  9466. esac
  9467. fi
  9468. fi
  9469. if test -z "$haveit"; then
  9470. haveit=
  9471. for x in $LDFLAGS $LIBPTH; do
  9472. acl_save_prefix="$prefix"
  9473. prefix="$acl_final_prefix"
  9474. acl_save_exec_prefix="$exec_prefix"
  9475. exec_prefix="$acl_final_exec_prefix"
  9476. eval x=\"$x\"
  9477. exec_prefix="$acl_save_exec_prefix"
  9478. prefix="$acl_save_prefix"
  9479. if test "X$x" = "X-L$additional_libdir"; then
  9480. haveit=yes
  9481. break
  9482. fi
  9483. done
  9484. if test -z "$haveit"; then
  9485. if test -d "$additional_libdir"; then
  9486. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
  9487. fi
  9488. fi
  9489. haveit=
  9490. for x in $LDFLAGS $LTLIBPTH; do
  9491. acl_save_prefix="$prefix"
  9492. prefix="$acl_final_prefix"
  9493. acl_save_exec_prefix="$exec_prefix"
  9494. exec_prefix="$acl_final_exec_prefix"
  9495. eval x=\"$x\"
  9496. exec_prefix="$acl_save_exec_prefix"
  9497. prefix="$acl_save_prefix"
  9498. if test "X$x" = "X-L$additional_libdir"; then
  9499. haveit=yes
  9500. break
  9501. fi
  9502. done
  9503. if test -z "$haveit"; then
  9504. if test -d "$additional_libdir"; then
  9505. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
  9506. fi
  9507. fi
  9508. fi
  9509. fi
  9510. ;;
  9511. -R*)
  9512. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  9513. if test "$enable_rpath" != no; then
  9514. haveit=
  9515. for x in $rpathdirs; do
  9516. if test "X$x" = "X$dir"; then
  9517. haveit=yes
  9518. break
  9519. fi
  9520. done
  9521. if test -z "$haveit"; then
  9522. rpathdirs="$rpathdirs $dir"
  9523. fi
  9524. haveit=
  9525. for x in $ltrpathdirs; do
  9526. if test "X$x" = "X$dir"; then
  9527. haveit=yes
  9528. break
  9529. fi
  9530. done
  9531. if test -z "$haveit"; then
  9532. ltrpathdirs="$ltrpathdirs $dir"
  9533. fi
  9534. fi
  9535. ;;
  9536. -l*)
  9537. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  9538. ;;
  9539. *.la)
  9540. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  9541. ;;
  9542. *)
  9543. LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
  9544. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
  9545. ;;
  9546. esac
  9547. done
  9548. fi
  9549. else
  9550. LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
  9551. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
  9552. fi
  9553. fi
  9554. fi
  9555. done
  9556. done
  9557. if test "X$rpathdirs" != "X"; then
  9558. if test -n "$acl_hardcode_libdir_separator"; then
  9559. alldirs=
  9560. for found_dir in $rpathdirs; do
  9561. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  9562. done
  9563. acl_save_libdir="$libdir"
  9564. libdir="$alldirs"
  9565. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  9566. libdir="$acl_save_libdir"
  9567. LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
  9568. else
  9569. for found_dir in $rpathdirs; do
  9570. acl_save_libdir="$libdir"
  9571. libdir="$found_dir"
  9572. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  9573. libdir="$acl_save_libdir"
  9574. LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
  9575. done
  9576. fi
  9577. fi
  9578. if test "X$ltrpathdirs" != "X"; then
  9579. for found_dir in $ltrpathdirs; do
  9580. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
  9581. done
  9582. fi
  9583. ac_cv_libpth_libs="$LIBPTH"
  9584. ac_cv_libpth_ltlibs="$LTLIBPTH"
  9585. ac_cv_libpth_cppflags="$INCPTH"
  9586. ac_cv_libpth_prefix="$LIBPTH_PREFIX"
  9587. fi
  9588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
  9589. $as_echo "$ac_cv_libpth_libs" >&6; }
  9590. LIBPTH="$ac_cv_libpth_libs"
  9591. LTLIBPTH="$ac_cv_libpth_ltlibs"
  9592. INCPTH="$ac_cv_libpth_cppflags"
  9593. LIBPTH_PREFIX="$ac_cv_libpth_prefix"
  9594. for element in $INCPTH; do
  9595. haveit=
  9596. for x in $CPPFLAGS; do
  9597. acl_save_prefix="$prefix"
  9598. prefix="$acl_final_prefix"
  9599. acl_save_exec_prefix="$exec_prefix"
  9600. exec_prefix="$acl_final_exec_prefix"
  9601. eval x=\"$x\"
  9602. exec_prefix="$acl_save_exec_prefix"
  9603. prefix="$acl_save_prefix"
  9604. if test "X$x" = "X$element"; then
  9605. haveit=yes
  9606. break
  9607. fi
  9608. done
  9609. if test -z "$haveit"; then
  9610. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  9611. fi
  9612. done
  9613. HAVE_LIBPTH=yes
  9614. gl_have_pth=
  9615. gl_save_LIBS="$LIBS"
  9616. LIBS="$LIBS -lpth"
  9617. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9618. /* end confdefs.h. */
  9619. #include <pth.h>
  9620. int
  9621. main ()
  9622. {
  9623. pth_self();
  9624. ;
  9625. return 0;
  9626. }
  9627. _ACEOF
  9628. if ac_fn_cxx_try_link "$LINENO"; then :
  9629. gl_have_pth=yes
  9630. fi
  9631. rm -f core conftest.err conftest.$ac_objext \
  9632. conftest$ac_exeext conftest.$ac_ext
  9633. LIBS="$gl_save_LIBS"
  9634. if test -n "$gl_have_pth"; then
  9635. gl_threads_api=pth
  9636. LIBTHREAD="$LIBPTH"
  9637. LTLIBTHREAD="$LTLIBPTH"
  9638. LIBMULTITHREAD="$LIBTHREAD"
  9639. LTLIBMULTITHREAD="$LTLIBTHREAD"
  9640. $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
  9641. if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
  9642. if test $gl_have_weak = yes; then
  9643. $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
  9644. LIBTHREAD=
  9645. LTLIBTHREAD=
  9646. fi
  9647. fi
  9648. else
  9649. CPPFLAGS="$gl_save_CPPFLAGS"
  9650. fi
  9651. fi
  9652. if test -z "$gl_have_pthread"; then
  9653. if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
  9654. if { case "$host_os" in
  9655. mingw*) true;;
  9656. *) false;;
  9657. esac
  9658. }; then
  9659. gl_threads_api=win32
  9660. $as_echo "#define USE_WIN32_THREADS 1" >>confdefs.h
  9661. fi
  9662. fi
  9663. fi
  9664. fi
  9665. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
  9666. $as_echo_n "checking for multithread API to use... " >&6; }
  9667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
  9668. $as_echo "$gl_threads_api" >&6; }
  9669. use_additional=yes
  9670. acl_save_prefix="$prefix"
  9671. prefix="$acl_final_prefix"
  9672. acl_save_exec_prefix="$exec_prefix"
  9673. exec_prefix="$acl_final_exec_prefix"
  9674. eval additional_includedir=\"$includedir\"
  9675. eval additional_libdir=\"$libdir\"
  9676. exec_prefix="$acl_save_exec_prefix"
  9677. prefix="$acl_save_prefix"
  9678. # Check whether --with-libiconv-prefix was given.
  9679. if test "${with_libiconv_prefix+set}" = set; then :
  9680. withval=$with_libiconv_prefix;
  9681. if test "X$withval" = "Xno"; then
  9682. use_additional=no
  9683. else
  9684. if test "X$withval" = "X"; then
  9685. acl_save_prefix="$prefix"
  9686. prefix="$acl_final_prefix"
  9687. acl_save_exec_prefix="$exec_prefix"
  9688. exec_prefix="$acl_final_exec_prefix"
  9689. eval additional_includedir=\"$includedir\"
  9690. eval additional_libdir=\"$libdir\"
  9691. exec_prefix="$acl_save_exec_prefix"
  9692. prefix="$acl_save_prefix"
  9693. else
  9694. additional_includedir="$withval/include"
  9695. additional_libdir="$withval/$acl_libdirstem"
  9696. fi
  9697. fi
  9698. fi
  9699. LIBICONV=
  9700. LTLIBICONV=
  9701. INCICONV=
  9702. LIBICONV_PREFIX=
  9703. rpathdirs=
  9704. ltrpathdirs=
  9705. names_already_handled=
  9706. names_next_round='iconv '
  9707. while test -n "$names_next_round"; do
  9708. names_this_round="$names_next_round"
  9709. names_next_round=
  9710. for name in $names_this_round; do
  9711. already_handled=
  9712. for n in $names_already_handled; do
  9713. if test "$n" = "$name"; then
  9714. already_handled=yes
  9715. break
  9716. fi
  9717. done
  9718. if test -z "$already_handled"; then
  9719. names_already_handled="$names_already_handled $name"
  9720. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  9721. eval value=\"\$HAVE_LIB$uppername\"
  9722. if test -n "$value"; then
  9723. if test "$value" = yes; then
  9724. eval value=\"\$LIB$uppername\"
  9725. test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
  9726. eval value=\"\$LTLIB$uppername\"
  9727. test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
  9728. else
  9729. :
  9730. fi
  9731. else
  9732. found_dir=
  9733. found_la=
  9734. found_so=
  9735. found_a=
  9736. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  9737. if test -n "$acl_shlibext"; then
  9738. shrext=".$acl_shlibext" # typically: shrext=.so
  9739. else
  9740. shrext=
  9741. fi
  9742. if test $use_additional = yes; then
  9743. dir="$additional_libdir"
  9744. if test -n "$acl_shlibext"; then
  9745. if test -f "$dir/$libname$shrext"; then
  9746. found_dir="$dir"
  9747. found_so="$dir/$libname$shrext"
  9748. else
  9749. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  9750. ver=`(cd "$dir" && \
  9751. for f in "$libname$shrext".*; do echo "$f"; done \
  9752. | sed -e "s,^$libname$shrext\\\\.,," \
  9753. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  9754. | sed 1q ) 2>/dev/null`
  9755. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  9756. found_dir="$dir"
  9757. found_so="$dir/$libname$shrext.$ver"
  9758. fi
  9759. else
  9760. eval library_names=\"$acl_library_names_spec\"
  9761. for f in $library_names; do
  9762. if test -f "$dir/$f"; then
  9763. found_dir="$dir"
  9764. found_so="$dir/$f"
  9765. break
  9766. fi
  9767. done
  9768. fi
  9769. fi
  9770. fi
  9771. if test "X$found_dir" = "X"; then
  9772. if test -f "$dir/$libname.$acl_libext"; then
  9773. found_dir="$dir"
  9774. found_a="$dir/$libname.$acl_libext"
  9775. fi
  9776. fi
  9777. if test "X$found_dir" != "X"; then
  9778. if test -f "$dir/$libname.la"; then
  9779. found_la="$dir/$libname.la"
  9780. fi
  9781. fi
  9782. fi
  9783. if test "X$found_dir" = "X"; then
  9784. for x in $LDFLAGS $LTLIBICONV; do
  9785. acl_save_prefix="$prefix"
  9786. prefix="$acl_final_prefix"
  9787. acl_save_exec_prefix="$exec_prefix"
  9788. exec_prefix="$acl_final_exec_prefix"
  9789. eval x=\"$x\"
  9790. exec_prefix="$acl_save_exec_prefix"
  9791. prefix="$acl_save_prefix"
  9792. case "$x" in
  9793. -L*)
  9794. dir=`echo "X$x" | sed -e 's/^X-L//'`
  9795. if test -n "$acl_shlibext"; then
  9796. if test -f "$dir/$libname$shrext"; then
  9797. found_dir="$dir"
  9798. found_so="$dir/$libname$shrext"
  9799. else
  9800. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  9801. ver=`(cd "$dir" && \
  9802. for f in "$libname$shrext".*; do echo "$f"; done \
  9803. | sed -e "s,^$libname$shrext\\\\.,," \
  9804. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  9805. | sed 1q ) 2>/dev/null`
  9806. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  9807. found_dir="$dir"
  9808. found_so="$dir/$libname$shrext.$ver"
  9809. fi
  9810. else
  9811. eval library_names=\"$acl_library_names_spec\"
  9812. for f in $library_names; do
  9813. if test -f "$dir/$f"; then
  9814. found_dir="$dir"
  9815. found_so="$dir/$f"
  9816. break
  9817. fi
  9818. done
  9819. fi
  9820. fi
  9821. fi
  9822. if test "X$found_dir" = "X"; then
  9823. if test -f "$dir/$libname.$acl_libext"; then
  9824. found_dir="$dir"
  9825. found_a="$dir/$libname.$acl_libext"
  9826. fi
  9827. fi
  9828. if test "X$found_dir" != "X"; then
  9829. if test -f "$dir/$libname.la"; then
  9830. found_la="$dir/$libname.la"
  9831. fi
  9832. fi
  9833. ;;
  9834. esac
  9835. if test "X$found_dir" != "X"; then
  9836. break
  9837. fi
  9838. done
  9839. fi
  9840. if test "X$found_dir" != "X"; then
  9841. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
  9842. if test "X$found_so" != "X"; then
  9843. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  9844. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  9845. else
  9846. haveit=
  9847. for x in $ltrpathdirs; do
  9848. if test "X$x" = "X$found_dir"; then
  9849. haveit=yes
  9850. break
  9851. fi
  9852. done
  9853. if test -z "$haveit"; then
  9854. ltrpathdirs="$ltrpathdirs $found_dir"
  9855. fi
  9856. if test "$acl_hardcode_direct" = yes; then
  9857. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  9858. else
  9859. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  9860. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  9861. haveit=
  9862. for x in $rpathdirs; do
  9863. if test "X$x" = "X$found_dir"; then
  9864. haveit=yes
  9865. break
  9866. fi
  9867. done
  9868. if test -z "$haveit"; then
  9869. rpathdirs="$rpathdirs $found_dir"
  9870. fi
  9871. else
  9872. haveit=
  9873. for x in $LDFLAGS $LIBICONV; do
  9874. acl_save_prefix="$prefix"
  9875. prefix="$acl_final_prefix"
  9876. acl_save_exec_prefix="$exec_prefix"
  9877. exec_prefix="$acl_final_exec_prefix"
  9878. eval x=\"$x\"
  9879. exec_prefix="$acl_save_exec_prefix"
  9880. prefix="$acl_save_prefix"
  9881. if test "X$x" = "X-L$found_dir"; then
  9882. haveit=yes
  9883. break
  9884. fi
  9885. done
  9886. if test -z "$haveit"; then
  9887. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
  9888. fi
  9889. if test "$acl_hardcode_minus_L" != no; then
  9890. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  9891. else
  9892. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  9893. fi
  9894. fi
  9895. fi
  9896. fi
  9897. else
  9898. if test "X$found_a" != "X"; then
  9899. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
  9900. else
  9901. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
  9902. fi
  9903. fi
  9904. additional_includedir=
  9905. case "$found_dir" in
  9906. */$acl_libdirstem | */$acl_libdirstem/)
  9907. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  9908. LIBICONV_PREFIX="$basedir"
  9909. additional_includedir="$basedir/include"
  9910. ;;
  9911. esac
  9912. if test "X$additional_includedir" != "X"; then
  9913. if test "X$additional_includedir" != "X/usr/include"; then
  9914. haveit=
  9915. if test "X$additional_includedir" = "X/usr/local/include"; then
  9916. if test -n "$GCC"; then
  9917. case $host_os in
  9918. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  9919. esac
  9920. fi
  9921. fi
  9922. if test -z "$haveit"; then
  9923. for x in $CPPFLAGS $INCICONV; do
  9924. acl_save_prefix="$prefix"
  9925. prefix="$acl_final_prefix"
  9926. acl_save_exec_prefix="$exec_prefix"
  9927. exec_prefix="$acl_final_exec_prefix"
  9928. eval x=\"$x\"
  9929. exec_prefix="$acl_save_exec_prefix"
  9930. prefix="$acl_save_prefix"
  9931. if test "X$x" = "X-I$additional_includedir"; then
  9932. haveit=yes
  9933. break
  9934. fi
  9935. done
  9936. if test -z "$haveit"; then
  9937. if test -d "$additional_includedir"; then
  9938. INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
  9939. fi
  9940. fi
  9941. fi
  9942. fi
  9943. fi
  9944. if test -n "$found_la"; then
  9945. save_libdir="$libdir"
  9946. case "$found_la" in
  9947. */* | *\\*) . "$found_la" ;;
  9948. *) . "./$found_la" ;;
  9949. esac
  9950. libdir="$save_libdir"
  9951. for dep in $dependency_libs; do
  9952. case "$dep" in
  9953. -L*)
  9954. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  9955. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  9956. haveit=
  9957. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  9958. if test -n "$GCC"; then
  9959. case $host_os in
  9960. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  9961. esac
  9962. fi
  9963. fi
  9964. if test -z "$haveit"; then
  9965. haveit=
  9966. for x in $LDFLAGS $LIBICONV; do
  9967. acl_save_prefix="$prefix"
  9968. prefix="$acl_final_prefix"
  9969. acl_save_exec_prefix="$exec_prefix"
  9970. exec_prefix="$acl_final_exec_prefix"
  9971. eval x=\"$x\"
  9972. exec_prefix="$acl_save_exec_prefix"
  9973. prefix="$acl_save_prefix"
  9974. if test "X$x" = "X-L$additional_libdir"; then
  9975. haveit=yes
  9976. break
  9977. fi
  9978. done
  9979. if test -z "$haveit"; then
  9980. if test -d "$additional_libdir"; then
  9981. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
  9982. fi
  9983. fi
  9984. haveit=
  9985. for x in $LDFLAGS $LTLIBICONV; do
  9986. acl_save_prefix="$prefix"
  9987. prefix="$acl_final_prefix"
  9988. acl_save_exec_prefix="$exec_prefix"
  9989. exec_prefix="$acl_final_exec_prefix"
  9990. eval x=\"$x\"
  9991. exec_prefix="$acl_save_exec_prefix"
  9992. prefix="$acl_save_prefix"
  9993. if test "X$x" = "X-L$additional_libdir"; then
  9994. haveit=yes
  9995. break
  9996. fi
  9997. done
  9998. if test -z "$haveit"; then
  9999. if test -d "$additional_libdir"; then
  10000. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
  10001. fi
  10002. fi
  10003. fi
  10004. fi
  10005. ;;
  10006. -R*)
  10007. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  10008. if test "$enable_rpath" != no; then
  10009. haveit=
  10010. for x in $rpathdirs; do
  10011. if test "X$x" = "X$dir"; then
  10012. haveit=yes
  10013. break
  10014. fi
  10015. done
  10016. if test -z "$haveit"; then
  10017. rpathdirs="$rpathdirs $dir"
  10018. fi
  10019. haveit=
  10020. for x in $ltrpathdirs; do
  10021. if test "X$x" = "X$dir"; then
  10022. haveit=yes
  10023. break
  10024. fi
  10025. done
  10026. if test -z "$haveit"; then
  10027. ltrpathdirs="$ltrpathdirs $dir"
  10028. fi
  10029. fi
  10030. ;;
  10031. -l*)
  10032. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  10033. ;;
  10034. *.la)
  10035. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  10036. ;;
  10037. *)
  10038. LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
  10039. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
  10040. ;;
  10041. esac
  10042. done
  10043. fi
  10044. else
  10045. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  10046. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
  10047. fi
  10048. fi
  10049. fi
  10050. done
  10051. done
  10052. if test "X$rpathdirs" != "X"; then
  10053. if test -n "$acl_hardcode_libdir_separator"; then
  10054. alldirs=
  10055. for found_dir in $rpathdirs; do
  10056. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  10057. done
  10058. acl_save_libdir="$libdir"
  10059. libdir="$alldirs"
  10060. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  10061. libdir="$acl_save_libdir"
  10062. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  10063. else
  10064. for found_dir in $rpathdirs; do
  10065. acl_save_libdir="$libdir"
  10066. libdir="$found_dir"
  10067. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  10068. libdir="$acl_save_libdir"
  10069. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  10070. done
  10071. fi
  10072. fi
  10073. if test "X$ltrpathdirs" != "X"; then
  10074. for found_dir in $ltrpathdirs; do
  10075. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
  10076. done
  10077. fi
  10078. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10079. /* end confdefs.h. */
  10080. int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
  10081. int
  10082. main ()
  10083. {
  10084. ;
  10085. return 0;
  10086. }
  10087. _ACEOF
  10088. if ac_fn_cxx_try_link "$LINENO"; then :
  10089. $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
  10090. fi
  10091. rm -f core conftest.err conftest.$ac_objext \
  10092. conftest$ac_exeext conftest.$ac_ext
  10093. for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
  10094. do :
  10095. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10096. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  10097. eval as_val=\$$as_ac_Header
  10098. if test "x$as_val" = x""yes; then :
  10099. cat >>confdefs.h <<_ACEOF
  10100. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10101. _ACEOF
  10102. fi
  10103. done
  10104. for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
  10105. stpcpy strcasecmp strdup strtoul tsearch argz_count argz_stringify \
  10106. argz_next __fsetlocking
  10107. do :
  10108. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10109. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  10110. eval as_val=\$$as_ac_var
  10111. if test "x$as_val" = x""yes; then :
  10112. cat >>confdefs.h <<_ACEOF
  10113. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10114. _ACEOF
  10115. fi
  10116. done
  10117. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
  10118. $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
  10119. if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then :
  10120. $as_echo_n "(cached) " >&6
  10121. else
  10122. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10123. /* end confdefs.h. */
  10124. #include <stdio.h>
  10125. int
  10126. main ()
  10127. {
  10128. #ifndef feof_unlocked
  10129. char *p = (char *) feof_unlocked;
  10130. #endif
  10131. ;
  10132. return 0;
  10133. }
  10134. _ACEOF
  10135. if ac_fn_cxx_try_compile "$LINENO"; then :
  10136. ac_cv_have_decl_feof_unlocked=yes
  10137. else
  10138. ac_cv_have_decl_feof_unlocked=no
  10139. fi
  10140. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10141. fi
  10142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
  10143. $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
  10144. if test $ac_cv_have_decl_feof_unlocked = yes; then
  10145. gt_value=1
  10146. else
  10147. gt_value=0
  10148. fi
  10149. cat >>confdefs.h <<_ACEOF
  10150. #define HAVE_DECL_FEOF_UNLOCKED $gt_value
  10151. _ACEOF
  10152. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
  10153. $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
  10154. if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then :
  10155. $as_echo_n "(cached) " >&6
  10156. else
  10157. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10158. /* end confdefs.h. */
  10159. #include <stdio.h>
  10160. int
  10161. main ()
  10162. {
  10163. #ifndef fgets_unlocked
  10164. char *p = (char *) fgets_unlocked;
  10165. #endif
  10166. ;
  10167. return 0;
  10168. }
  10169. _ACEOF
  10170. if ac_fn_cxx_try_compile "$LINENO"; then :
  10171. ac_cv_have_decl_fgets_unlocked=yes
  10172. else
  10173. ac_cv_have_decl_fgets_unlocked=no
  10174. fi
  10175. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10176. fi
  10177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
  10178. $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
  10179. if test $ac_cv_have_decl_fgets_unlocked = yes; then
  10180. gt_value=1
  10181. else
  10182. gt_value=0
  10183. fi
  10184. cat >>confdefs.h <<_ACEOF
  10185. #define HAVE_DECL_FGETS_UNLOCKED $gt_value
  10186. _ACEOF
  10187. am_save_CPPFLAGS="$CPPFLAGS"
  10188. for element in $INCICONV; do
  10189. haveit=
  10190. for x in $CPPFLAGS; do
  10191. acl_save_prefix="$prefix"
  10192. prefix="$acl_final_prefix"
  10193. acl_save_exec_prefix="$exec_prefix"
  10194. exec_prefix="$acl_final_exec_prefix"
  10195. eval x=\"$x\"
  10196. exec_prefix="$acl_save_exec_prefix"
  10197. prefix="$acl_save_prefix"
  10198. if test "X$x" = "X$element"; then
  10199. haveit=yes
  10200. break
  10201. fi
  10202. done
  10203. if test -z "$haveit"; then
  10204. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  10205. fi
  10206. done
  10207. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
  10208. $as_echo_n "checking for iconv... " >&6; }
  10209. if test "${am_cv_func_iconv+set}" = set; then :
  10210. $as_echo_n "(cached) " >&6
  10211. else
  10212. am_cv_func_iconv="no, consider installing GNU libiconv"
  10213. am_cv_lib_iconv=no
  10214. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10215. /* end confdefs.h. */
  10216. #include <stdlib.h>
  10217. #include <iconv.h>
  10218. int
  10219. main ()
  10220. {
  10221. iconv_t cd = iconv_open("","");
  10222. iconv(cd,NULL,NULL,NULL,NULL);
  10223. iconv_close(cd);
  10224. ;
  10225. return 0;
  10226. }
  10227. _ACEOF
  10228. if ac_fn_cxx_try_link "$LINENO"; then :
  10229. am_cv_func_iconv=yes
  10230. fi
  10231. rm -f core conftest.err conftest.$ac_objext \
  10232. conftest$ac_exeext conftest.$ac_ext
  10233. if test "$am_cv_func_iconv" != yes; then
  10234. am_save_LIBS="$LIBS"
  10235. LIBS="$LIBS $LIBICONV"
  10236. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10237. /* end confdefs.h. */
  10238. #include <stdlib.h>
  10239. #include <iconv.h>
  10240. int
  10241. main ()
  10242. {
  10243. iconv_t cd = iconv_open("","");
  10244. iconv(cd,NULL,NULL,NULL,NULL);
  10245. iconv_close(cd);
  10246. ;
  10247. return 0;
  10248. }
  10249. _ACEOF
  10250. if ac_fn_cxx_try_link "$LINENO"; then :
  10251. am_cv_lib_iconv=yes
  10252. am_cv_func_iconv=yes
  10253. fi
  10254. rm -f core conftest.err conftest.$ac_objext \
  10255. conftest$ac_exeext conftest.$ac_ext
  10256. LIBS="$am_save_LIBS"
  10257. fi
  10258. fi
  10259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
  10260. $as_echo "$am_cv_func_iconv" >&6; }
  10261. if test "$am_cv_func_iconv" = yes; then
  10262. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
  10263. $as_echo_n "checking for working iconv... " >&6; }
  10264. if test "${am_cv_func_iconv_works+set}" = set; then :
  10265. $as_echo_n "(cached) " >&6
  10266. else
  10267. am_save_LIBS="$LIBS"
  10268. if test $am_cv_lib_iconv = yes; then
  10269. LIBS="$LIBS $LIBICONV"
  10270. fi
  10271. if test "$cross_compiling" = yes; then :
  10272. case "$host_os" in
  10273. aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
  10274. *) am_cv_func_iconv_works="guessing yes" ;;
  10275. esac
  10276. else
  10277. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10278. /* end confdefs.h. */
  10279. #include <iconv.h>
  10280. #include <string.h>
  10281. int main ()
  10282. {
  10283. /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
  10284. returns. */
  10285. {
  10286. iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
  10287. if (cd_utf8_to_88591 != (iconv_t)(-1))
  10288. {
  10289. static const char input[] = "\342\202\254"; /* EURO SIGN */
  10290. char buf[10];
  10291. const char *inptr = input;
  10292. size_t inbytesleft = strlen (input);
  10293. char *outptr = buf;
  10294. size_t outbytesleft = sizeof (buf);
  10295. size_t res = iconv (cd_utf8_to_88591,
  10296. (char **) &inptr, &inbytesleft,
  10297. &outptr, &outbytesleft);
  10298. if (res == 0)
  10299. return 1;
  10300. }
  10301. }
  10302. #if 0 /* This bug could be worked around by the caller. */
  10303. /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
  10304. {
  10305. iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
  10306. if (cd_88591_to_utf8 != (iconv_t)(-1))
  10307. {
  10308. static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
  10309. char buf[50];
  10310. const char *inptr = input;
  10311. size_t inbytesleft = strlen (input);
  10312. char *outptr = buf;
  10313. size_t outbytesleft = sizeof (buf);
  10314. size_t res = iconv (cd_88591_to_utf8,
  10315. (char **) &inptr, &inbytesleft,
  10316. &outptr, &outbytesleft);
  10317. if ((int)res > 0)
  10318. return 1;
  10319. }
  10320. }
  10321. #endif
  10322. /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
  10323. provided. */
  10324. if (/* Try standardized names. */
  10325. iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
  10326. /* Try IRIX, OSF/1 names. */
  10327. && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
  10328. /* Try AIX names. */
  10329. && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
  10330. /* Try HP-UX names. */
  10331. && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
  10332. return 1;
  10333. return 0;
  10334. }
  10335. _ACEOF
  10336. if ac_fn_cxx_try_run "$LINENO"; then :
  10337. am_cv_func_iconv_works=yes
  10338. else
  10339. am_cv_func_iconv_works=no
  10340. fi
  10341. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10342. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10343. fi
  10344. LIBS="$am_save_LIBS"
  10345. fi
  10346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
  10347. $as_echo "$am_cv_func_iconv_works" >&6; }
  10348. case "$am_cv_func_iconv_works" in
  10349. *no) am_func_iconv=no am_cv_lib_iconv=no ;;
  10350. *) am_func_iconv=yes ;;
  10351. esac
  10352. else
  10353. am_func_iconv=no am_cv_lib_iconv=no
  10354. fi
  10355. if test "$am_func_iconv" = yes; then
  10356. $as_echo "#define HAVE_ICONV 1" >>confdefs.h
  10357. fi
  10358. if test "$am_cv_lib_iconv" = yes; then
  10359. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
  10360. $as_echo_n "checking how to link with libiconv... " >&6; }
  10361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
  10362. $as_echo "$LIBICONV" >&6; }
  10363. else
  10364. CPPFLAGS="$am_save_CPPFLAGS"
  10365. LIBICONV=
  10366. LTLIBICONV=
  10367. fi
  10368. if test "$am_cv_func_iconv" = yes; then
  10369. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
  10370. $as_echo_n "checking for iconv declaration... " >&6; }
  10371. if test "${am_cv_proto_iconv+set}" = set; then :
  10372. $as_echo_n "(cached) " >&6
  10373. else
  10374. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10375. /* end confdefs.h. */
  10376. #include <stdlib.h>
  10377. #include <iconv.h>
  10378. extern
  10379. #ifdef __cplusplus
  10380. "C"
  10381. #endif
  10382. #if defined(__STDC__) || defined(__cplusplus)
  10383. size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  10384. #else
  10385. size_t iconv();
  10386. #endif
  10387. int
  10388. main ()
  10389. {
  10390. ;
  10391. return 0;
  10392. }
  10393. _ACEOF
  10394. if ac_fn_cxx_try_compile "$LINENO"; then :
  10395. am_cv_proto_iconv_arg1=""
  10396. else
  10397. am_cv_proto_iconv_arg1="const"
  10398. fi
  10399. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10400. 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);"
  10401. fi
  10402. am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  10403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
  10404. }$am_cv_proto_iconv" >&5
  10405. $as_echo "${ac_t:-
  10406. }$am_cv_proto_iconv" >&6; }
  10407. cat >>confdefs.h <<_ACEOF
  10408. #define ICONV_CONST $am_cv_proto_iconv_arg1
  10409. _ACEOF
  10410. fi
  10411. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NL_LOCALE_NAME macro" >&5
  10412. $as_echo_n "checking for NL_LOCALE_NAME macro... " >&6; }
  10413. if test "${gt_cv_nl_locale_name+set}" = set; then :
  10414. $as_echo_n "(cached) " >&6
  10415. else
  10416. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10417. /* end confdefs.h. */
  10418. #include <langinfo.h>
  10419. #include <locale.h>
  10420. int
  10421. main ()
  10422. {
  10423. char* cs = nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES));
  10424. return !cs;
  10425. ;
  10426. return 0;
  10427. }
  10428. _ACEOF
  10429. if ac_fn_cxx_try_link "$LINENO"; then :
  10430. gt_cv_nl_locale_name=yes
  10431. else
  10432. gt_cv_nl_locale_name=no
  10433. fi
  10434. rm -f core conftest.err conftest.$ac_objext \
  10435. conftest$ac_exeext conftest.$ac_ext
  10436. fi
  10437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_nl_locale_name" >&5
  10438. $as_echo "$gt_cv_nl_locale_name" >&6; }
  10439. if test $gt_cv_nl_locale_name = yes; then
  10440. $as_echo "#define HAVE_NL_LOCALE_NAME 1" >>confdefs.h
  10441. fi
  10442. for ac_prog in bison
  10443. do
  10444. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10445. set dummy $ac_prog; ac_word=$2
  10446. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10447. $as_echo_n "checking for $ac_word... " >&6; }
  10448. if test "${ac_cv_prog_INTLBISON+set}" = set; then :
  10449. $as_echo_n "(cached) " >&6
  10450. else
  10451. if test -n "$INTLBISON"; then
  10452. ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
  10453. else
  10454. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10455. for as_dir in $PATH
  10456. do
  10457. IFS=$as_save_IFS
  10458. test -z "$as_dir" && as_dir=.
  10459. for ac_exec_ext in '' $ac_executable_extensions; do
  10460. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10461. ac_cv_prog_INTLBISON="$ac_prog"
  10462. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10463. break 2
  10464. fi
  10465. done
  10466. done
  10467. IFS=$as_save_IFS
  10468. fi
  10469. fi
  10470. INTLBISON=$ac_cv_prog_INTLBISON
  10471. if test -n "$INTLBISON"; then
  10472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
  10473. $as_echo "$INTLBISON" >&6; }
  10474. else
  10475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10476. $as_echo "no" >&6; }
  10477. fi
  10478. test -n "$INTLBISON" && break
  10479. done
  10480. if test -z "$INTLBISON"; then
  10481. ac_verc_fail=yes
  10482. else
  10483. { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
  10484. $as_echo_n "checking version of bison... " >&6; }
  10485. ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
  10486. case $ac_prog_version in
  10487. '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
  10488. 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
  10489. ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
  10490. *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
  10491. esac
  10492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
  10493. $as_echo "$ac_prog_version" >&6; }
  10494. fi
  10495. if test $ac_verc_fail = yes; then
  10496. INTLBISON=:
  10497. fi
  10498. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
  10499. $as_echo_n "checking for long long int... " >&6; }
  10500. if test "${ac_cv_type_long_long_int+set}" = set; then :
  10501. $as_echo_n "(cached) " >&6
  10502. else
  10503. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10504. /* end confdefs.h. */
  10505. /* Test preprocessor. */
  10506. #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  10507. error in preprocessor;
  10508. #endif
  10509. #if ! (18446744073709551615ULL <= -1ull)
  10510. error in preprocessor;
  10511. #endif
  10512. /* Test literals. */
  10513. long long int ll = 9223372036854775807ll;
  10514. long long int nll = -9223372036854775807LL;
  10515. unsigned long long int ull = 18446744073709551615ULL;
  10516. /* Test constant expressions. */
  10517. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  10518. ? 1 : -1)];
  10519. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  10520. ? 1 : -1)];
  10521. int i = 63;
  10522. int
  10523. main ()
  10524. {
  10525. /* Test availability of runtime routines for shift and division. */
  10526. long long int llmax = 9223372036854775807ll;
  10527. unsigned long long int ullmax = 18446744073709551615ull;
  10528. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  10529. | (llmax / ll) | (llmax % ll)
  10530. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  10531. | (ullmax / ull) | (ullmax % ull));
  10532. ;
  10533. return 0;
  10534. }
  10535. _ACEOF
  10536. if ac_fn_cxx_try_link "$LINENO"; then :
  10537. if test "$cross_compiling" = yes; then :
  10538. ac_cv_type_long_long_int=yes
  10539. else
  10540. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10541. /* end confdefs.h. */
  10542. #include <limits.h>
  10543. #ifndef LLONG_MAX
  10544. # define HALF \
  10545. (1LL << (sizeof (long long int) * CHAR_BIT - 2))
  10546. # define LLONG_MAX (HALF - 1 + HALF)
  10547. #endif
  10548. int
  10549. main ()
  10550. {
  10551. long long int n = 1;
  10552. int i;
  10553. for (i = 0; ; i++)
  10554. {
  10555. long long int m = n << i;
  10556. if (m >> i != n)
  10557. return 1;
  10558. if (LLONG_MAX / 2 < m)
  10559. break;
  10560. }
  10561. return 0;
  10562. ;
  10563. return 0;
  10564. }
  10565. _ACEOF
  10566. if ac_fn_cxx_try_run "$LINENO"; then :
  10567. ac_cv_type_long_long_int=yes
  10568. else
  10569. ac_cv_type_long_long_int=no
  10570. fi
  10571. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10572. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10573. fi
  10574. else
  10575. ac_cv_type_long_long_int=no
  10576. fi
  10577. rm -f core conftest.err conftest.$ac_objext \
  10578. conftest$ac_exeext conftest.$ac_ext
  10579. fi
  10580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
  10581. $as_echo "$ac_cv_type_long_long_int" >&6; }
  10582. if test $ac_cv_type_long_long_int = yes; then
  10583. $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
  10584. fi
  10585. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
  10586. $as_echo_n "checking for wchar_t... " >&6; }
  10587. if test "${gt_cv_c_wchar_t+set}" = set; then :
  10588. $as_echo_n "(cached) " >&6
  10589. else
  10590. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10591. /* end confdefs.h. */
  10592. #include <stddef.h>
  10593. wchar_t foo = (wchar_t)'\0';
  10594. int
  10595. main ()
  10596. {
  10597. ;
  10598. return 0;
  10599. }
  10600. _ACEOF
  10601. if ac_fn_cxx_try_compile "$LINENO"; then :
  10602. gt_cv_c_wchar_t=yes
  10603. else
  10604. gt_cv_c_wchar_t=no
  10605. fi
  10606. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10607. fi
  10608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
  10609. $as_echo "$gt_cv_c_wchar_t" >&6; }
  10610. if test $gt_cv_c_wchar_t = yes; then
  10611. $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
  10612. fi
  10613. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
  10614. $as_echo_n "checking for wint_t... " >&6; }
  10615. if test "${gt_cv_c_wint_t+set}" = set; then :
  10616. $as_echo_n "(cached) " >&6
  10617. else
  10618. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10619. /* end confdefs.h. */
  10620. /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
  10621. <wchar.h>.
  10622. BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
  10623. before <wchar.h>. */
  10624. #include <stddef.h>
  10625. #include <stdio.h>
  10626. #include <time.h>
  10627. #include <wchar.h>
  10628. wint_t foo = (wchar_t)'\0';
  10629. int
  10630. main ()
  10631. {
  10632. ;
  10633. return 0;
  10634. }
  10635. _ACEOF
  10636. if ac_fn_cxx_try_compile "$LINENO"; then :
  10637. gt_cv_c_wint_t=yes
  10638. else
  10639. gt_cv_c_wint_t=no
  10640. fi
  10641. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10642. fi
  10643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
  10644. $as_echo "$gt_cv_c_wint_t" >&6; }
  10645. if test $gt_cv_c_wint_t = yes; then
  10646. $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
  10647. fi
  10648. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
  10649. $as_echo_n "checking for intmax_t... " >&6; }
  10650. if test "${gt_cv_c_intmax_t+set}" = set; then :
  10651. $as_echo_n "(cached) " >&6
  10652. else
  10653. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10654. /* end confdefs.h. */
  10655. #include <stddef.h>
  10656. #include <stdlib.h>
  10657. #if HAVE_STDINT_H_WITH_UINTMAX
  10658. #include <stdint.h>
  10659. #endif
  10660. #if HAVE_INTTYPES_H_WITH_UINTMAX
  10661. #include <inttypes.h>
  10662. #endif
  10663. int
  10664. main ()
  10665. {
  10666. intmax_t x = -1;
  10667. return !x;
  10668. ;
  10669. return 0;
  10670. }
  10671. _ACEOF
  10672. if ac_fn_cxx_try_compile "$LINENO"; then :
  10673. gt_cv_c_intmax_t=yes
  10674. else
  10675. gt_cv_c_intmax_t=no
  10676. fi
  10677. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10678. fi
  10679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
  10680. $as_echo "$gt_cv_c_intmax_t" >&6; }
  10681. if test $gt_cv_c_intmax_t = yes; then
  10682. $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
  10683. fi
  10684. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
  10685. $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
  10686. if test "${gt_cv_func_printf_posix+set}" = set; then :
  10687. $as_echo_n "(cached) " >&6
  10688. else
  10689. if test "$cross_compiling" = yes; then :
  10690. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10691. /* end confdefs.h. */
  10692. #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
  10693. notposix
  10694. #endif
  10695. _ACEOF
  10696. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10697. $EGREP "notposix" >/dev/null 2>&1; then :
  10698. gt_cv_func_printf_posix="guessing no"
  10699. else
  10700. gt_cv_func_printf_posix="guessing yes"
  10701. fi
  10702. rm -f conftest*
  10703. else
  10704. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10705. /* end confdefs.h. */
  10706. #include <stdio.h>
  10707. #include <string.h>
  10708. /* The string "%2$d %1$d", with dollar characters protected from the shell's
  10709. dollar expansion (possibly an autoconf bug). */
  10710. static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
  10711. static char buf[100];
  10712. int main ()
  10713. {
  10714. sprintf (buf, format, 33, 55);
  10715. return (strcmp (buf, "55 33") != 0);
  10716. }
  10717. _ACEOF
  10718. if ac_fn_cxx_try_run "$LINENO"; then :
  10719. gt_cv_func_printf_posix=yes
  10720. else
  10721. gt_cv_func_printf_posix=no
  10722. fi
  10723. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10724. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10725. fi
  10726. fi
  10727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
  10728. $as_echo "$gt_cv_func_printf_posix" >&6; }
  10729. case $gt_cv_func_printf_posix in
  10730. *yes)
  10731. $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
  10732. ;;
  10733. esac
  10734. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
  10735. $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
  10736. if test "${ac_cv_gnu_library_2_1+set}" = set; then :
  10737. $as_echo_n "(cached) " >&6
  10738. else
  10739. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10740. /* end confdefs.h. */
  10741. #include <features.h>
  10742. #ifdef __GNU_LIBRARY__
  10743. #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
  10744. Lucky GNU user
  10745. #endif
  10746. #endif
  10747. _ACEOF
  10748. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10749. $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
  10750. ac_cv_gnu_library_2_1=yes
  10751. else
  10752. ac_cv_gnu_library_2_1=no
  10753. fi
  10754. rm -f conftest*
  10755. fi
  10756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
  10757. $as_echo "$ac_cv_gnu_library_2_1" >&6; }
  10758. GLIBC21="$ac_cv_gnu_library_2_1"
  10759. for ac_header in stdint.h
  10760. do :
  10761. ac_fn_cxx_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
  10762. if test "x$ac_cv_header_stdint_h" = x""yes; then :
  10763. cat >>confdefs.h <<_ACEOF
  10764. #define HAVE_STDINT_H 1
  10765. _ACEOF
  10766. fi
  10767. done
  10768. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
  10769. $as_echo_n "checking for SIZE_MAX... " >&6; }
  10770. if test "${gl_cv_size_max+set}" = set; then :
  10771. $as_echo_n "(cached) " >&6
  10772. else
  10773. gl_cv_size_max=
  10774. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10775. /* end confdefs.h. */
  10776. #include <limits.h>
  10777. #if HAVE_STDINT_H
  10778. #include <stdint.h>
  10779. #endif
  10780. #ifdef SIZE_MAX
  10781. Found it
  10782. #endif
  10783. _ACEOF
  10784. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10785. $EGREP "Found it" >/dev/null 2>&1; then :
  10786. gl_cv_size_max=yes
  10787. fi
  10788. rm -f conftest*
  10789. if test -z "$gl_cv_size_max"; then
  10790. if ac_fn_cxx_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
  10791. #include <limits.h>"; then :
  10792. else
  10793. size_t_bits_minus_1=
  10794. fi
  10795. if ac_fn_cxx_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
  10796. else
  10797. fits_in_uint=
  10798. fi
  10799. if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
  10800. if test $fits_in_uint = 1; then
  10801. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10802. /* end confdefs.h. */
  10803. #include <stddef.h>
  10804. extern size_t foo;
  10805. extern unsigned long foo;
  10806. int
  10807. main ()
  10808. {
  10809. ;
  10810. return 0;
  10811. }
  10812. _ACEOF
  10813. if ac_fn_cxx_try_compile "$LINENO"; then :
  10814. fits_in_uint=0
  10815. fi
  10816. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10817. fi
  10818. if test $fits_in_uint = 1; then
  10819. gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
  10820. else
  10821. gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
  10822. fi
  10823. else
  10824. gl_cv_size_max='((size_t)~(size_t)0)'
  10825. fi
  10826. fi
  10827. fi
  10828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
  10829. $as_echo "$gl_cv_size_max" >&6; }
  10830. if test "$gl_cv_size_max" != yes; then
  10831. cat >>confdefs.h <<_ACEOF
  10832. #define SIZE_MAX $gl_cv_size_max
  10833. _ACEOF
  10834. fi
  10835. for ac_header in stdint.h
  10836. do :
  10837. ac_fn_cxx_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
  10838. if test "x$ac_cv_header_stdint_h" = x""yes; then :
  10839. cat >>confdefs.h <<_ACEOF
  10840. #define HAVE_STDINT_H 1
  10841. _ACEOF
  10842. fi
  10843. done
  10844. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
  10845. $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
  10846. if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
  10847. $as_echo_n "(cached) " >&6
  10848. else
  10849. gt_save_LIBS="$LIBS"
  10850. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  10851. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10852. /* end confdefs.h. */
  10853. #include <CoreFoundation/CFPreferences.h>
  10854. int
  10855. main ()
  10856. {
  10857. CFPreferencesCopyAppValue(NULL, NULL)
  10858. ;
  10859. return 0;
  10860. }
  10861. _ACEOF
  10862. if ac_fn_cxx_try_link "$LINENO"; then :
  10863. gt_cv_func_CFPreferencesCopyAppValue=yes
  10864. else
  10865. gt_cv_func_CFPreferencesCopyAppValue=no
  10866. fi
  10867. rm -f core conftest.err conftest.$ac_objext \
  10868. conftest$ac_exeext conftest.$ac_ext
  10869. LIBS="$gt_save_LIBS"
  10870. fi
  10871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
  10872. $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  10873. if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  10874. $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
  10875. fi
  10876. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
  10877. $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
  10878. if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
  10879. $as_echo_n "(cached) " >&6
  10880. else
  10881. gt_save_LIBS="$LIBS"
  10882. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  10883. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10884. /* end confdefs.h. */
  10885. #include <CoreFoundation/CFLocale.h>
  10886. int
  10887. main ()
  10888. {
  10889. CFLocaleCopyCurrent();
  10890. ;
  10891. return 0;
  10892. }
  10893. _ACEOF
  10894. if ac_fn_cxx_try_link "$LINENO"; then :
  10895. gt_cv_func_CFLocaleCopyCurrent=yes
  10896. else
  10897. gt_cv_func_CFLocaleCopyCurrent=no
  10898. fi
  10899. rm -f core conftest.err conftest.$ac_objext \
  10900. conftest$ac_exeext conftest.$ac_ext
  10901. LIBS="$gt_save_LIBS"
  10902. fi
  10903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  10904. $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  10905. if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  10906. $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
  10907. fi
  10908. INTL_MACOSX_LIBS=
  10909. if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  10910. INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  10911. fi
  10912. ac_fn_cxx_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
  10913. if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
  10914. else
  10915. $as_echo "#define ptrdiff_t long" >>confdefs.h
  10916. fi
  10917. for ac_header in stddef.h stdlib.h string.h
  10918. do :
  10919. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10920. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  10921. eval as_val=\$$as_ac_Header
  10922. if test "x$as_val" = x""yes; then :
  10923. cat >>confdefs.h <<_ACEOF
  10924. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10925. _ACEOF
  10926. fi
  10927. done
  10928. for ac_func in asprintf fwprintf putenv setenv setlocale snprintf wcslen
  10929. do :
  10930. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10931. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  10932. eval as_val=\$$as_ac_var
  10933. if test "x$as_val" = x""yes; then :
  10934. cat >>confdefs.h <<_ACEOF
  10935. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10936. _ACEOF
  10937. fi
  10938. done
  10939. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
  10940. $as_echo_n "checking whether _snprintf is declared... " >&6; }
  10941. if test "${ac_cv_have_decl__snprintf+set}" = set; then :
  10942. $as_echo_n "(cached) " >&6
  10943. else
  10944. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10945. /* end confdefs.h. */
  10946. #include <stdio.h>
  10947. int
  10948. main ()
  10949. {
  10950. #ifndef _snprintf
  10951. char *p = (char *) _snprintf;
  10952. #endif
  10953. ;
  10954. return 0;
  10955. }
  10956. _ACEOF
  10957. if ac_fn_cxx_try_compile "$LINENO"; then :
  10958. ac_cv_have_decl__snprintf=yes
  10959. else
  10960. ac_cv_have_decl__snprintf=no
  10961. fi
  10962. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10963. fi
  10964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
  10965. $as_echo "$ac_cv_have_decl__snprintf" >&6; }
  10966. if test $ac_cv_have_decl__snprintf = yes; then
  10967. gt_value=1
  10968. else
  10969. gt_value=0
  10970. fi
  10971. cat >>confdefs.h <<_ACEOF
  10972. #define HAVE_DECL__SNPRINTF $gt_value
  10973. _ACEOF
  10974. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
  10975. $as_echo_n "checking whether _snwprintf is declared... " >&6; }
  10976. if test "${ac_cv_have_decl__snwprintf+set}" = set; then :
  10977. $as_echo_n "(cached) " >&6
  10978. else
  10979. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10980. /* end confdefs.h. */
  10981. #include <stdio.h>
  10982. int
  10983. main ()
  10984. {
  10985. #ifndef _snwprintf
  10986. char *p = (char *) _snwprintf;
  10987. #endif
  10988. ;
  10989. return 0;
  10990. }
  10991. _ACEOF
  10992. if ac_fn_cxx_try_compile "$LINENO"; then :
  10993. ac_cv_have_decl__snwprintf=yes
  10994. else
  10995. ac_cv_have_decl__snwprintf=no
  10996. fi
  10997. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10998. fi
  10999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
  11000. $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
  11001. if test $ac_cv_have_decl__snwprintf = yes; then
  11002. gt_value=1
  11003. else
  11004. gt_value=0
  11005. fi
  11006. cat >>confdefs.h <<_ACEOF
  11007. #define HAVE_DECL__SNWPRINTF $gt_value
  11008. _ACEOF
  11009. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
  11010. $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
  11011. if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then :
  11012. $as_echo_n "(cached) " >&6
  11013. else
  11014. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11015. /* end confdefs.h. */
  11016. #include <stdio.h>
  11017. int
  11018. main ()
  11019. {
  11020. #ifndef getc_unlocked
  11021. char *p = (char *) getc_unlocked;
  11022. #endif
  11023. ;
  11024. return 0;
  11025. }
  11026. _ACEOF
  11027. if ac_fn_cxx_try_compile "$LINENO"; then :
  11028. ac_cv_have_decl_getc_unlocked=yes
  11029. else
  11030. ac_cv_have_decl_getc_unlocked=no
  11031. fi
  11032. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11033. fi
  11034. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
  11035. $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
  11036. if test $ac_cv_have_decl_getc_unlocked = yes; then
  11037. gt_value=1
  11038. else
  11039. gt_value=0
  11040. fi
  11041. cat >>confdefs.h <<_ACEOF
  11042. #define HAVE_DECL_GETC_UNLOCKED $gt_value
  11043. _ACEOF
  11044. case $gt_cv_func_printf_posix in
  11045. *yes) HAVE_POSIX_PRINTF=1 ;;
  11046. *) HAVE_POSIX_PRINTF=0 ;;
  11047. esac
  11048. if test "$ac_cv_func_asprintf" = yes; then
  11049. HAVE_ASPRINTF=1
  11050. else
  11051. HAVE_ASPRINTF=0
  11052. fi
  11053. if test "$ac_cv_func_snprintf" = yes; then
  11054. HAVE_SNPRINTF=1
  11055. else
  11056. HAVE_SNPRINTF=0
  11057. fi
  11058. if test "$ac_cv_func_wprintf" = yes; then
  11059. HAVE_WPRINTF=1
  11060. else
  11061. HAVE_WPRINTF=0
  11062. fi
  11063. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
  11064. $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
  11065. if test "${am_cv_langinfo_codeset+set}" = set; then :
  11066. $as_echo_n "(cached) " >&6
  11067. else
  11068. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11069. /* end confdefs.h. */
  11070. #include <langinfo.h>
  11071. int
  11072. main ()
  11073. {
  11074. char* cs = nl_langinfo(CODESET); return !cs;
  11075. ;
  11076. return 0;
  11077. }
  11078. _ACEOF
  11079. if ac_fn_cxx_try_link "$LINENO"; then :
  11080. am_cv_langinfo_codeset=yes
  11081. else
  11082. am_cv_langinfo_codeset=no
  11083. fi
  11084. rm -f core conftest.err conftest.$ac_objext \
  11085. conftest$ac_exeext conftest.$ac_ext
  11086. fi
  11087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
  11088. $as_echo "$am_cv_langinfo_codeset" >&6; }
  11089. if test $am_cv_langinfo_codeset = yes; then
  11090. $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
  11091. fi
  11092. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
  11093. $as_echo_n "checking for LC_MESSAGES... " >&6; }
  11094. if test "${gt_cv_val_LC_MESSAGES+set}" = set; then :
  11095. $as_echo_n "(cached) " >&6
  11096. else
  11097. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11098. /* end confdefs.h. */
  11099. #include <locale.h>
  11100. int
  11101. main ()
  11102. {
  11103. return LC_MESSAGES
  11104. ;
  11105. return 0;
  11106. }
  11107. _ACEOF
  11108. if ac_fn_cxx_try_link "$LINENO"; then :
  11109. gt_cv_val_LC_MESSAGES=yes
  11110. else
  11111. gt_cv_val_LC_MESSAGES=no
  11112. fi
  11113. rm -f core conftest.err conftest.$ac_objext \
  11114. conftest$ac_exeext conftest.$ac_ext
  11115. fi
  11116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
  11117. $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
  11118. if test $gt_cv_val_LC_MESSAGES = yes; then
  11119. $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
  11120. fi
  11121. if test "$enable_shared" = yes; then
  11122. case "$host_os" in
  11123. mingw* | cygwin*) is_woe32dll=yes ;;
  11124. *) is_woe32dll=no ;;
  11125. esac
  11126. else
  11127. is_woe32dll=no
  11128. fi
  11129. WOE32DLL=$is_woe32dll
  11130. case "$host_os" in
  11131. mingw* | cygwin*) is_woe32=yes ;;
  11132. *) is_woe32=no ;;
  11133. esac
  11134. WOE32=$is_woe32
  11135. if test $WOE32 = yes; then
  11136. if test -n "$ac_tool_prefix"; then
  11137. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  11138. set dummy ${ac_tool_prefix}windres; ac_word=$2
  11139. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11140. $as_echo_n "checking for $ac_word... " >&6; }
  11141. if test "${ac_cv_prog_WINDRES+set}" = set; then :
  11142. $as_echo_n "(cached) " >&6
  11143. else
  11144. if test -n "$WINDRES"; then
  11145. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  11146. else
  11147. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11148. for as_dir in $PATH
  11149. do
  11150. IFS=$as_save_IFS
  11151. test -z "$as_dir" && as_dir=.
  11152. for ac_exec_ext in '' $ac_executable_extensions; do
  11153. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11154. ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
  11155. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11156. break 2
  11157. fi
  11158. done
  11159. done
  11160. IFS=$as_save_IFS
  11161. fi
  11162. fi
  11163. WINDRES=$ac_cv_prog_WINDRES
  11164. if test -n "$WINDRES"; then
  11165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
  11166. $as_echo "$WINDRES" >&6; }
  11167. else
  11168. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11169. $as_echo "no" >&6; }
  11170. fi
  11171. fi
  11172. if test -z "$ac_cv_prog_WINDRES"; then
  11173. ac_ct_WINDRES=$WINDRES
  11174. # Extract the first word of "windres", so it can be a program name with args.
  11175. set dummy windres; ac_word=$2
  11176. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11177. $as_echo_n "checking for $ac_word... " >&6; }
  11178. if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
  11179. $as_echo_n "(cached) " >&6
  11180. else
  11181. if test -n "$ac_ct_WINDRES"; then
  11182. ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
  11183. else
  11184. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11185. for as_dir in $PATH
  11186. do
  11187. IFS=$as_save_IFS
  11188. test -z "$as_dir" && as_dir=.
  11189. for ac_exec_ext in '' $ac_executable_extensions; do
  11190. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11191. ac_cv_prog_ac_ct_WINDRES="windres"
  11192. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11193. break 2
  11194. fi
  11195. done
  11196. done
  11197. IFS=$as_save_IFS
  11198. fi
  11199. fi
  11200. ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
  11201. if test -n "$ac_ct_WINDRES"; then
  11202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
  11203. $as_echo "$ac_ct_WINDRES" >&6; }
  11204. else
  11205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11206. $as_echo "no" >&6; }
  11207. fi
  11208. if test "x$ac_ct_WINDRES" = x; then
  11209. WINDRES=""
  11210. else
  11211. case $cross_compiling:$ac_tool_warned in
  11212. yes:)
  11213. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11214. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11215. ac_tool_warned=yes ;;
  11216. esac
  11217. WINDRES=$ac_ct_WINDRES
  11218. fi
  11219. else
  11220. WINDRES="$ac_cv_prog_WINDRES"
  11221. fi
  11222. fi
  11223. case "$host_os" in
  11224. hpux*) LTLIBC="" ;;
  11225. *) LTLIBC="-lc" ;;
  11226. esac
  11227. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
  11228. $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
  11229. if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
  11230. $as_echo_n "(cached) " >&6
  11231. else
  11232. gt_save_LIBS="$LIBS"
  11233. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  11234. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11235. /* end confdefs.h. */
  11236. #include <CoreFoundation/CFPreferences.h>
  11237. int
  11238. main ()
  11239. {
  11240. CFPreferencesCopyAppValue(NULL, NULL)
  11241. ;
  11242. return 0;
  11243. }
  11244. _ACEOF
  11245. if ac_fn_cxx_try_link "$LINENO"; then :
  11246. gt_cv_func_CFPreferencesCopyAppValue=yes
  11247. else
  11248. gt_cv_func_CFPreferencesCopyAppValue=no
  11249. fi
  11250. rm -f core conftest.err conftest.$ac_objext \
  11251. conftest$ac_exeext conftest.$ac_ext
  11252. LIBS="$gt_save_LIBS"
  11253. fi
  11254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
  11255. $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  11256. if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  11257. $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
  11258. fi
  11259. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
  11260. $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
  11261. if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
  11262. $as_echo_n "(cached) " >&6
  11263. else
  11264. gt_save_LIBS="$LIBS"
  11265. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  11266. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11267. /* end confdefs.h. */
  11268. #include <CoreFoundation/CFLocale.h>
  11269. int
  11270. main ()
  11271. {
  11272. CFLocaleCopyCurrent();
  11273. ;
  11274. return 0;
  11275. }
  11276. _ACEOF
  11277. if ac_fn_cxx_try_link "$LINENO"; then :
  11278. gt_cv_func_CFLocaleCopyCurrent=yes
  11279. else
  11280. gt_cv_func_CFLocaleCopyCurrent=no
  11281. fi
  11282. rm -f core conftest.err conftest.$ac_objext \
  11283. conftest$ac_exeext conftest.$ac_ext
  11284. LIBS="$gt_save_LIBS"
  11285. fi
  11286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  11287. $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  11288. if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  11289. $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
  11290. fi
  11291. INTL_MACOSX_LIBS=
  11292. if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  11293. INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  11294. fi
  11295. BUILD_INCLUDED_LIBINTL=no
  11296. USE_INCLUDED_LIBINTL=no
  11297. LIBINTL=
  11298. LTLIBINTL=
  11299. POSUB=
  11300. case " $gt_needs " in
  11301. *" need-formatstring-macros "*) gt_api_version=3 ;;
  11302. *" need-ngettext "*) gt_api_version=2 ;;
  11303. *) gt_api_version=1 ;;
  11304. esac
  11305. gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
  11306. gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
  11307. if test "$USE_NLS" = "yes"; then
  11308. gt_use_preinstalled_gnugettext=no
  11309. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
  11310. $as_echo_n "checking whether included gettext is requested... " >&6; }
  11311. # Check whether --with-included-gettext was given.
  11312. if test "${with_included_gettext+set}" = set; then :
  11313. withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
  11314. else
  11315. nls_cv_force_use_gnu_gettext=no
  11316. fi
  11317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
  11318. $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
  11319. nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
  11320. if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
  11321. if test $gt_api_version -ge 3; then
  11322. gt_revision_test_code='
  11323. #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
  11324. #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
  11325. #endif
  11326. typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
  11327. '
  11328. else
  11329. gt_revision_test_code=
  11330. fi
  11331. if test $gt_api_version -ge 2; then
  11332. gt_expression_test_code=' + * ngettext ("", "", 0)'
  11333. else
  11334. gt_expression_test_code=
  11335. fi
  11336. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
  11337. $as_echo_n "checking for GNU gettext in libc... " >&6; }
  11338. if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then :
  11339. $as_echo_n "(cached) " >&6
  11340. else
  11341. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11342. /* end confdefs.h. */
  11343. #include <libintl.h>
  11344. $gt_revision_test_code
  11345. extern int _nl_msg_cat_cntr;
  11346. extern int *_nl_domain_bindings;
  11347. int
  11348. main ()
  11349. {
  11350. bindtextdomain ("", "");
  11351. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
  11352. ;
  11353. return 0;
  11354. }
  11355. _ACEOF
  11356. if ac_fn_cxx_try_link "$LINENO"; then :
  11357. eval "$gt_func_gnugettext_libc=yes"
  11358. else
  11359. eval "$gt_func_gnugettext_libc=no"
  11360. fi
  11361. rm -f core conftest.err conftest.$ac_objext \
  11362. conftest$ac_exeext conftest.$ac_ext
  11363. fi
  11364. eval ac_res=\$$gt_func_gnugettext_libc
  11365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  11366. $as_echo "$ac_res" >&6; }
  11367. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
  11368. use_additional=yes
  11369. acl_save_prefix="$prefix"
  11370. prefix="$acl_final_prefix"
  11371. acl_save_exec_prefix="$exec_prefix"
  11372. exec_prefix="$acl_final_exec_prefix"
  11373. eval additional_includedir=\"$includedir\"
  11374. eval additional_libdir=\"$libdir\"
  11375. exec_prefix="$acl_save_exec_prefix"
  11376. prefix="$acl_save_prefix"
  11377. # Check whether --with-libintl-prefix was given.
  11378. if test "${with_libintl_prefix+set}" = set; then :
  11379. withval=$with_libintl_prefix;
  11380. if test "X$withval" = "Xno"; then
  11381. use_additional=no
  11382. else
  11383. if test "X$withval" = "X"; then
  11384. acl_save_prefix="$prefix"
  11385. prefix="$acl_final_prefix"
  11386. acl_save_exec_prefix="$exec_prefix"
  11387. exec_prefix="$acl_final_exec_prefix"
  11388. eval additional_includedir=\"$includedir\"
  11389. eval additional_libdir=\"$libdir\"
  11390. exec_prefix="$acl_save_exec_prefix"
  11391. prefix="$acl_save_prefix"
  11392. else
  11393. additional_includedir="$withval/include"
  11394. additional_libdir="$withval/$acl_libdirstem"
  11395. fi
  11396. fi
  11397. fi
  11398. LIBINTL=
  11399. LTLIBINTL=
  11400. INCINTL=
  11401. LIBINTL_PREFIX=
  11402. rpathdirs=
  11403. ltrpathdirs=
  11404. names_already_handled=
  11405. names_next_round='intl '
  11406. while test -n "$names_next_round"; do
  11407. names_this_round="$names_next_round"
  11408. names_next_round=
  11409. for name in $names_this_round; do
  11410. already_handled=
  11411. for n in $names_already_handled; do
  11412. if test "$n" = "$name"; then
  11413. already_handled=yes
  11414. break
  11415. fi
  11416. done
  11417. if test -z "$already_handled"; then
  11418. names_already_handled="$names_already_handled $name"
  11419. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  11420. eval value=\"\$HAVE_LIB$uppername\"
  11421. if test -n "$value"; then
  11422. if test "$value" = yes; then
  11423. eval value=\"\$LIB$uppername\"
  11424. test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
  11425. eval value=\"\$LTLIB$uppername\"
  11426. test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
  11427. else
  11428. :
  11429. fi
  11430. else
  11431. found_dir=
  11432. found_la=
  11433. found_so=
  11434. found_a=
  11435. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  11436. if test -n "$acl_shlibext"; then
  11437. shrext=".$acl_shlibext" # typically: shrext=.so
  11438. else
  11439. shrext=
  11440. fi
  11441. if test $use_additional = yes; then
  11442. dir="$additional_libdir"
  11443. if test -n "$acl_shlibext"; then
  11444. if test -f "$dir/$libname$shrext"; then
  11445. found_dir="$dir"
  11446. found_so="$dir/$libname$shrext"
  11447. else
  11448. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  11449. ver=`(cd "$dir" && \
  11450. for f in "$libname$shrext".*; do echo "$f"; done \
  11451. | sed -e "s,^$libname$shrext\\\\.,," \
  11452. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  11453. | sed 1q ) 2>/dev/null`
  11454. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  11455. found_dir="$dir"
  11456. found_so="$dir/$libname$shrext.$ver"
  11457. fi
  11458. else
  11459. eval library_names=\"$acl_library_names_spec\"
  11460. for f in $library_names; do
  11461. if test -f "$dir/$f"; then
  11462. found_dir="$dir"
  11463. found_so="$dir/$f"
  11464. break
  11465. fi
  11466. done
  11467. fi
  11468. fi
  11469. fi
  11470. if test "X$found_dir" = "X"; then
  11471. if test -f "$dir/$libname.$acl_libext"; then
  11472. found_dir="$dir"
  11473. found_a="$dir/$libname.$acl_libext"
  11474. fi
  11475. fi
  11476. if test "X$found_dir" != "X"; then
  11477. if test -f "$dir/$libname.la"; then
  11478. found_la="$dir/$libname.la"
  11479. fi
  11480. fi
  11481. fi
  11482. if test "X$found_dir" = "X"; then
  11483. for x in $LDFLAGS $LTLIBINTL; do
  11484. acl_save_prefix="$prefix"
  11485. prefix="$acl_final_prefix"
  11486. acl_save_exec_prefix="$exec_prefix"
  11487. exec_prefix="$acl_final_exec_prefix"
  11488. eval x=\"$x\"
  11489. exec_prefix="$acl_save_exec_prefix"
  11490. prefix="$acl_save_prefix"
  11491. case "$x" in
  11492. -L*)
  11493. dir=`echo "X$x" | sed -e 's/^X-L//'`
  11494. if test -n "$acl_shlibext"; then
  11495. if test -f "$dir/$libname$shrext"; then
  11496. found_dir="$dir"
  11497. found_so="$dir/$libname$shrext"
  11498. else
  11499. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  11500. ver=`(cd "$dir" && \
  11501. for f in "$libname$shrext".*; do echo "$f"; done \
  11502. | sed -e "s,^$libname$shrext\\\\.,," \
  11503. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  11504. | sed 1q ) 2>/dev/null`
  11505. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  11506. found_dir="$dir"
  11507. found_so="$dir/$libname$shrext.$ver"
  11508. fi
  11509. else
  11510. eval library_names=\"$acl_library_names_spec\"
  11511. for f in $library_names; do
  11512. if test -f "$dir/$f"; then
  11513. found_dir="$dir"
  11514. found_so="$dir/$f"
  11515. break
  11516. fi
  11517. done
  11518. fi
  11519. fi
  11520. fi
  11521. if test "X$found_dir" = "X"; then
  11522. if test -f "$dir/$libname.$acl_libext"; then
  11523. found_dir="$dir"
  11524. found_a="$dir/$libname.$acl_libext"
  11525. fi
  11526. fi
  11527. if test "X$found_dir" != "X"; then
  11528. if test -f "$dir/$libname.la"; then
  11529. found_la="$dir/$libname.la"
  11530. fi
  11531. fi
  11532. ;;
  11533. esac
  11534. if test "X$found_dir" != "X"; then
  11535. break
  11536. fi
  11537. done
  11538. fi
  11539. if test "X$found_dir" != "X"; then
  11540. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
  11541. if test "X$found_so" != "X"; then
  11542. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  11543. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  11544. else
  11545. haveit=
  11546. for x in $ltrpathdirs; do
  11547. if test "X$x" = "X$found_dir"; then
  11548. haveit=yes
  11549. break
  11550. fi
  11551. done
  11552. if test -z "$haveit"; then
  11553. ltrpathdirs="$ltrpathdirs $found_dir"
  11554. fi
  11555. if test "$acl_hardcode_direct" = yes; then
  11556. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  11557. else
  11558. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  11559. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  11560. haveit=
  11561. for x in $rpathdirs; do
  11562. if test "X$x" = "X$found_dir"; then
  11563. haveit=yes
  11564. break
  11565. fi
  11566. done
  11567. if test -z "$haveit"; then
  11568. rpathdirs="$rpathdirs $found_dir"
  11569. fi
  11570. else
  11571. haveit=
  11572. for x in $LDFLAGS $LIBINTL; do
  11573. acl_save_prefix="$prefix"
  11574. prefix="$acl_final_prefix"
  11575. acl_save_exec_prefix="$exec_prefix"
  11576. exec_prefix="$acl_final_exec_prefix"
  11577. eval x=\"$x\"
  11578. exec_prefix="$acl_save_exec_prefix"
  11579. prefix="$acl_save_prefix"
  11580. if test "X$x" = "X-L$found_dir"; then
  11581. haveit=yes
  11582. break
  11583. fi
  11584. done
  11585. if test -z "$haveit"; then
  11586. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
  11587. fi
  11588. if test "$acl_hardcode_minus_L" != no; then
  11589. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  11590. else
  11591. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  11592. fi
  11593. fi
  11594. fi
  11595. fi
  11596. else
  11597. if test "X$found_a" != "X"; then
  11598. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
  11599. else
  11600. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
  11601. fi
  11602. fi
  11603. additional_includedir=
  11604. case "$found_dir" in
  11605. */$acl_libdirstem | */$acl_libdirstem/)
  11606. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  11607. LIBINTL_PREFIX="$basedir"
  11608. additional_includedir="$basedir/include"
  11609. ;;
  11610. esac
  11611. if test "X$additional_includedir" != "X"; then
  11612. if test "X$additional_includedir" != "X/usr/include"; then
  11613. haveit=
  11614. if test "X$additional_includedir" = "X/usr/local/include"; then
  11615. if test -n "$GCC"; then
  11616. case $host_os in
  11617. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  11618. esac
  11619. fi
  11620. fi
  11621. if test -z "$haveit"; then
  11622. for x in $CPPFLAGS $INCINTL; do
  11623. acl_save_prefix="$prefix"
  11624. prefix="$acl_final_prefix"
  11625. acl_save_exec_prefix="$exec_prefix"
  11626. exec_prefix="$acl_final_exec_prefix"
  11627. eval x=\"$x\"
  11628. exec_prefix="$acl_save_exec_prefix"
  11629. prefix="$acl_save_prefix"
  11630. if test "X$x" = "X-I$additional_includedir"; then
  11631. haveit=yes
  11632. break
  11633. fi
  11634. done
  11635. if test -z "$haveit"; then
  11636. if test -d "$additional_includedir"; then
  11637. INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
  11638. fi
  11639. fi
  11640. fi
  11641. fi
  11642. fi
  11643. if test -n "$found_la"; then
  11644. save_libdir="$libdir"
  11645. case "$found_la" in
  11646. */* | *\\*) . "$found_la" ;;
  11647. *) . "./$found_la" ;;
  11648. esac
  11649. libdir="$save_libdir"
  11650. for dep in $dependency_libs; do
  11651. case "$dep" in
  11652. -L*)
  11653. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  11654. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  11655. haveit=
  11656. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  11657. if test -n "$GCC"; then
  11658. case $host_os in
  11659. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  11660. esac
  11661. fi
  11662. fi
  11663. if test -z "$haveit"; then
  11664. haveit=
  11665. for x in $LDFLAGS $LIBINTL; do
  11666. acl_save_prefix="$prefix"
  11667. prefix="$acl_final_prefix"
  11668. acl_save_exec_prefix="$exec_prefix"
  11669. exec_prefix="$acl_final_exec_prefix"
  11670. eval x=\"$x\"
  11671. exec_prefix="$acl_save_exec_prefix"
  11672. prefix="$acl_save_prefix"
  11673. if test "X$x" = "X-L$additional_libdir"; then
  11674. haveit=yes
  11675. break
  11676. fi
  11677. done
  11678. if test -z "$haveit"; then
  11679. if test -d "$additional_libdir"; then
  11680. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
  11681. fi
  11682. fi
  11683. haveit=
  11684. for x in $LDFLAGS $LTLIBINTL; do
  11685. acl_save_prefix="$prefix"
  11686. prefix="$acl_final_prefix"
  11687. acl_save_exec_prefix="$exec_prefix"
  11688. exec_prefix="$acl_final_exec_prefix"
  11689. eval x=\"$x\"
  11690. exec_prefix="$acl_save_exec_prefix"
  11691. prefix="$acl_save_prefix"
  11692. if test "X$x" = "X-L$additional_libdir"; then
  11693. haveit=yes
  11694. break
  11695. fi
  11696. done
  11697. if test -z "$haveit"; then
  11698. if test -d "$additional_libdir"; then
  11699. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
  11700. fi
  11701. fi
  11702. fi
  11703. fi
  11704. ;;
  11705. -R*)
  11706. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  11707. if test "$enable_rpath" != no; then
  11708. haveit=
  11709. for x in $rpathdirs; do
  11710. if test "X$x" = "X$dir"; then
  11711. haveit=yes
  11712. break
  11713. fi
  11714. done
  11715. if test -z "$haveit"; then
  11716. rpathdirs="$rpathdirs $dir"
  11717. fi
  11718. haveit=
  11719. for x in $ltrpathdirs; do
  11720. if test "X$x" = "X$dir"; then
  11721. haveit=yes
  11722. break
  11723. fi
  11724. done
  11725. if test -z "$haveit"; then
  11726. ltrpathdirs="$ltrpathdirs $dir"
  11727. fi
  11728. fi
  11729. ;;
  11730. -l*)
  11731. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  11732. ;;
  11733. *.la)
  11734. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  11735. ;;
  11736. *)
  11737. LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
  11738. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
  11739. ;;
  11740. esac
  11741. done
  11742. fi
  11743. else
  11744. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  11745. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
  11746. fi
  11747. fi
  11748. fi
  11749. done
  11750. done
  11751. if test "X$rpathdirs" != "X"; then
  11752. if test -n "$acl_hardcode_libdir_separator"; then
  11753. alldirs=
  11754. for found_dir in $rpathdirs; do
  11755. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  11756. done
  11757. acl_save_libdir="$libdir"
  11758. libdir="$alldirs"
  11759. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  11760. libdir="$acl_save_libdir"
  11761. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  11762. else
  11763. for found_dir in $rpathdirs; do
  11764. acl_save_libdir="$libdir"
  11765. libdir="$found_dir"
  11766. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  11767. libdir="$acl_save_libdir"
  11768. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  11769. done
  11770. fi
  11771. fi
  11772. if test "X$ltrpathdirs" != "X"; then
  11773. for found_dir in $ltrpathdirs; do
  11774. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
  11775. done
  11776. fi
  11777. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
  11778. $as_echo_n "checking for GNU gettext in libintl... " >&6; }
  11779. if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then :
  11780. $as_echo_n "(cached) " >&6
  11781. else
  11782. gt_save_CPPFLAGS="$CPPFLAGS"
  11783. CPPFLAGS="$CPPFLAGS $INCINTL"
  11784. gt_save_LIBS="$LIBS"
  11785. LIBS="$LIBS $LIBINTL"
  11786. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11787. /* end confdefs.h. */
  11788. #include <libintl.h>
  11789. $gt_revision_test_code
  11790. extern int _nl_msg_cat_cntr;
  11791. extern
  11792. #ifdef __cplusplus
  11793. "C"
  11794. #endif
  11795. const char *_nl_expand_alias (const char *);
  11796. int
  11797. main ()
  11798. {
  11799. bindtextdomain ("", "");
  11800. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  11801. ;
  11802. return 0;
  11803. }
  11804. _ACEOF
  11805. if ac_fn_cxx_try_link "$LINENO"; then :
  11806. eval "$gt_func_gnugettext_libintl=yes"
  11807. else
  11808. eval "$gt_func_gnugettext_libintl=no"
  11809. fi
  11810. rm -f core conftest.err conftest.$ac_objext \
  11811. conftest$ac_exeext conftest.$ac_ext
  11812. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
  11813. LIBS="$LIBS $LIBICONV"
  11814. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11815. /* end confdefs.h. */
  11816. #include <libintl.h>
  11817. $gt_revision_test_code
  11818. extern int _nl_msg_cat_cntr;
  11819. extern
  11820. #ifdef __cplusplus
  11821. "C"
  11822. #endif
  11823. const char *_nl_expand_alias (const char *);
  11824. int
  11825. main ()
  11826. {
  11827. bindtextdomain ("", "");
  11828. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  11829. ;
  11830. return 0;
  11831. }
  11832. _ACEOF
  11833. if ac_fn_cxx_try_link "$LINENO"; then :
  11834. LIBINTL="$LIBINTL $LIBICONV"
  11835. LTLIBINTL="$LTLIBINTL $LTLIBICONV"
  11836. eval "$gt_func_gnugettext_libintl=yes"
  11837. fi
  11838. rm -f core conftest.err conftest.$ac_objext \
  11839. conftest$ac_exeext conftest.$ac_ext
  11840. fi
  11841. CPPFLAGS="$gt_save_CPPFLAGS"
  11842. LIBS="$gt_save_LIBS"
  11843. fi
  11844. eval ac_res=\$$gt_func_gnugettext_libintl
  11845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  11846. $as_echo "$ac_res" >&6; }
  11847. fi
  11848. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
  11849. || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
  11850. && test "$PACKAGE" != gettext-runtime \
  11851. && test "$PACKAGE" != gettext-tools; }; then
  11852. gt_use_preinstalled_gnugettext=yes
  11853. else
  11854. LIBINTL=
  11855. LTLIBINTL=
  11856. INCINTL=
  11857. fi
  11858. if test "$gt_use_preinstalled_gnugettext" != "yes"; then
  11859. nls_cv_use_gnu_gettext=yes
  11860. fi
  11861. fi
  11862. if test "$nls_cv_use_gnu_gettext" = "yes"; then
  11863. BUILD_INCLUDED_LIBINTL=yes
  11864. USE_INCLUDED_LIBINTL=yes
  11865. LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
  11866. LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
  11867. LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
  11868. fi
  11869. CATOBJEXT=
  11870. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  11871. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  11872. CATOBJEXT=.gmo
  11873. fi
  11874. if test -n "$INTL_MACOSX_LIBS"; then
  11875. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  11876. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  11877. LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
  11878. LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
  11879. fi
  11880. fi
  11881. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  11882. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  11883. $as_echo "#define ENABLE_NLS 1" >>confdefs.h
  11884. else
  11885. USE_NLS=no
  11886. fi
  11887. fi
  11888. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
  11889. $as_echo_n "checking whether to use NLS... " >&6; }
  11890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
  11891. $as_echo "$USE_NLS" >&6; }
  11892. if test "$USE_NLS" = "yes"; then
  11893. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
  11894. $as_echo_n "checking where the gettext function comes from... " >&6; }
  11895. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  11896. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  11897. gt_source="external libintl"
  11898. else
  11899. gt_source="libc"
  11900. fi
  11901. else
  11902. gt_source="included intl directory"
  11903. fi
  11904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
  11905. $as_echo "$gt_source" >&6; }
  11906. fi
  11907. if test "$USE_NLS" = "yes"; then
  11908. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  11909. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  11910. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
  11911. $as_echo_n "checking how to link with libintl... " >&6; }
  11912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
  11913. $as_echo "$LIBINTL" >&6; }
  11914. for element in $INCINTL; do
  11915. haveit=
  11916. for x in $CPPFLAGS; do
  11917. acl_save_prefix="$prefix"
  11918. prefix="$acl_final_prefix"
  11919. acl_save_exec_prefix="$exec_prefix"
  11920. exec_prefix="$acl_final_exec_prefix"
  11921. eval x=\"$x\"
  11922. exec_prefix="$acl_save_exec_prefix"
  11923. prefix="$acl_save_prefix"
  11924. if test "X$x" = "X$element"; then
  11925. haveit=yes
  11926. break
  11927. fi
  11928. done
  11929. if test -z "$haveit"; then
  11930. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  11931. fi
  11932. done
  11933. fi
  11934. $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
  11935. $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
  11936. fi
  11937. POSUB=po
  11938. fi
  11939. if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
  11940. BUILD_INCLUDED_LIBINTL=yes
  11941. fi
  11942. nls_cv_header_intl=
  11943. nls_cv_header_libgt=
  11944. DATADIRNAME=share
  11945. INSTOBJEXT=.mo
  11946. GENCAT=gencat
  11947. INTLOBJS=
  11948. if test "$USE_INCLUDED_LIBINTL" = yes; then
  11949. INTLOBJS="\$(GETTOBJS)"
  11950. fi
  11951. INTL_LIBTOOL_SUFFIX_PREFIX=
  11952. INTLLIBS="$LIBINTL"
  11953. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
  11954. $as_echo_n "checking for error_at_line... " >&6; }
  11955. if test "${ac_cv_lib_error_at_line+set}" = set; then :
  11956. $as_echo_n "(cached) " >&6
  11957. else
  11958. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11959. /* end confdefs.h. */
  11960. #include <error.h>
  11961. int
  11962. main ()
  11963. {
  11964. error_at_line (0, 0, "", 0, "an error occurred");
  11965. ;
  11966. return 0;
  11967. }
  11968. _ACEOF
  11969. if ac_fn_cxx_try_link "$LINENO"; then :
  11970. ac_cv_lib_error_at_line=yes
  11971. else
  11972. ac_cv_lib_error_at_line=no
  11973. fi
  11974. rm -f core conftest.err conftest.$ac_objext \
  11975. conftest$ac_exeext conftest.$ac_ext
  11976. fi
  11977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
  11978. $as_echo "$ac_cv_lib_error_at_line" >&6; }
  11979. if test $ac_cv_lib_error_at_line = no; then
  11980. case " $LIBOBJS " in
  11981. *" error.$ac_objext "* ) ;;
  11982. *) LIBOBJS="$LIBOBJS error.$ac_objext"
  11983. ;;
  11984. esac
  11985. fi
  11986. if test $ac_cv_c_compiler_gnu = yes; then
  11987. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
  11988. $as_echo_n "checking whether $CC needs -traditional... " >&6; }
  11989. if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
  11990. $as_echo_n "(cached) " >&6
  11991. else
  11992. ac_pattern="Autoconf.*'x'"
  11993. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11994. /* end confdefs.h. */
  11995. #include <sgtty.h>
  11996. Autoconf TIOCGETP
  11997. _ACEOF
  11998. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  11999. $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  12000. ac_cv_prog_gcc_traditional=yes
  12001. else
  12002. ac_cv_prog_gcc_traditional=no
  12003. fi
  12004. rm -f conftest*
  12005. if test $ac_cv_prog_gcc_traditional = no; then
  12006. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12007. /* end confdefs.h. */
  12008. #include <termio.h>
  12009. Autoconf TCGETA
  12010. _ACEOF
  12011. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  12012. $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  12013. ac_cv_prog_gcc_traditional=yes
  12014. fi
  12015. rm -f conftest*
  12016. fi
  12017. fi
  12018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
  12019. $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
  12020. if test $ac_cv_prog_gcc_traditional = yes; then
  12021. CC="$CC -traditional"
  12022. fi
  12023. fi
  12024. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  12025. $as_echo_n "checking for working memcmp... " >&6; }
  12026. if test "${ac_cv_func_memcmp_working+set}" = set; then :
  12027. $as_echo_n "(cached) " >&6
  12028. else
  12029. if test "$cross_compiling" = yes; then :
  12030. ac_cv_func_memcmp_working=no
  12031. else
  12032. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12033. /* end confdefs.h. */
  12034. $ac_includes_default
  12035. int
  12036. main ()
  12037. {
  12038. /* Some versions of memcmp are not 8-bit clean. */
  12039. char c0 = '\100', c1 = '\200', c2 = '\201';
  12040. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  12041. return 1;
  12042. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  12043. or more and with at least one buffer not starting on a 4-byte boundary.
  12044. William Lewis provided this test program. */
  12045. {
  12046. char foo[21];
  12047. char bar[21];
  12048. int i;
  12049. for (i = 0; i < 4; i++)
  12050. {
  12051. char *a = foo + i;
  12052. char *b = bar + i;
  12053. strcpy (a, "--------01111111");
  12054. strcpy (b, "--------10000000");
  12055. if (memcmp (a, b, 16) >= 0)
  12056. return 1;
  12057. }
  12058. return 0;
  12059. }
  12060. ;
  12061. return 0;
  12062. }
  12063. _ACEOF
  12064. if ac_fn_cxx_try_run "$LINENO"; then :
  12065. ac_cv_func_memcmp_working=yes
  12066. else
  12067. ac_cv_func_memcmp_working=no
  12068. fi
  12069. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12070. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12071. fi
  12072. fi
  12073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  12074. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  12075. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  12076. *" memcmp.$ac_objext "* ) ;;
  12077. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  12078. ;;
  12079. esac
  12080. for ac_func in $ac_func_list
  12081. do :
  12082. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12083. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  12084. eval as_val=\$$as_ac_var
  12085. if test "x$as_val" = x""yes; then :
  12086. cat >>confdefs.h <<_ACEOF
  12087. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12088. _ACEOF
  12089. fi
  12090. done
  12091. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
  12092. $as_echo_n "checking for working mktime... " >&6; }
  12093. if test "${ac_cv_func_working_mktime+set}" = set; then :
  12094. $as_echo_n "(cached) " >&6
  12095. else
  12096. if test "$cross_compiling" = yes; then :
  12097. ac_cv_func_working_mktime=no
  12098. else
  12099. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12100. /* end confdefs.h. */
  12101. /* Test program from Paul Eggert and Tony Leneis. */
  12102. #ifdef TIME_WITH_SYS_TIME
  12103. # include <sys/time.h>
  12104. # include <time.h>
  12105. #else
  12106. # ifdef HAVE_SYS_TIME_H
  12107. # include <sys/time.h>
  12108. # else
  12109. # include <time.h>
  12110. # endif
  12111. #endif
  12112. #include <limits.h>
  12113. #include <stdlib.h>
  12114. #ifdef HAVE_UNISTD_H
  12115. # include <unistd.h>
  12116. #endif
  12117. #ifndef HAVE_ALARM
  12118. # define alarm(X) /* empty */
  12119. #endif
  12120. /* Work around redefinition to rpl_putenv by other config tests. */
  12121. #undef putenv
  12122. static time_t time_t_max;
  12123. static time_t time_t_min;
  12124. /* Values we'll use to set the TZ environment variable. */
  12125. static char *tz_strings[] = {
  12126. (char *) 0, "TZ=GMT0", "TZ=JST-9",
  12127. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  12128. };
  12129. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  12130. /* Return 0 if mktime fails to convert a date in the spring-forward gap.
  12131. Based on a problem report from Andreas Jaeger. */
  12132. static int
  12133. spring_forward_gap ()
  12134. {
  12135. /* glibc (up to about 1998-10-07) failed this test. */
  12136. struct tm tm;
  12137. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  12138. instead of "TZ=America/Vancouver" in order to detect the bug even
  12139. on systems that don't support the Olson extension, or don't have the
  12140. full zoneinfo tables installed. */
  12141. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  12142. tm.tm_year = 98;
  12143. tm.tm_mon = 3;
  12144. tm.tm_mday = 5;
  12145. tm.tm_hour = 2;
  12146. tm.tm_min = 0;
  12147. tm.tm_sec = 0;
  12148. tm.tm_isdst = -1;
  12149. return mktime (&tm) != (time_t) -1;
  12150. }
  12151. static int
  12152. mktime_test1 (now)
  12153. time_t now;
  12154. {
  12155. struct tm *lt;
  12156. return ! (lt = localtime (&now)) || mktime (lt) == now;
  12157. }
  12158. static int
  12159. mktime_test (now)
  12160. time_t now;
  12161. {
  12162. return (mktime_test1 (now)
  12163. && mktime_test1 ((time_t) (time_t_max - now))
  12164. && mktime_test1 ((time_t) (time_t_min + now)));
  12165. }
  12166. static int
  12167. irix_6_4_bug ()
  12168. {
  12169. /* Based on code from Ariel Faigon. */
  12170. struct tm tm;
  12171. tm.tm_year = 96;
  12172. tm.tm_mon = 3;
  12173. tm.tm_mday = 0;
  12174. tm.tm_hour = 0;
  12175. tm.tm_min = 0;
  12176. tm.tm_sec = 0;
  12177. tm.tm_isdst = -1;
  12178. mktime (&tm);
  12179. return tm.tm_mon == 2 && tm.tm_mday == 31;
  12180. }
  12181. static int
  12182. bigtime_test (j)
  12183. int j;
  12184. {
  12185. struct tm tm;
  12186. time_t now;
  12187. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  12188. now = mktime (&tm);
  12189. if (now != (time_t) -1)
  12190. {
  12191. struct tm *lt = localtime (&now);
  12192. if (! (lt
  12193. && lt->tm_year == tm.tm_year
  12194. && lt->tm_mon == tm.tm_mon
  12195. && lt->tm_mday == tm.tm_mday
  12196. && lt->tm_hour == tm.tm_hour
  12197. && lt->tm_min == tm.tm_min
  12198. && lt->tm_sec == tm.tm_sec
  12199. && lt->tm_yday == tm.tm_yday
  12200. && lt->tm_wday == tm.tm_wday
  12201. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  12202. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  12203. return 0;
  12204. }
  12205. return 1;
  12206. }
  12207. static int
  12208. year_2050_test ()
  12209. {
  12210. /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
  12211. ignoring leap seconds. */
  12212. unsigned long int answer = 2527315200UL;
  12213. struct tm tm;
  12214. time_t t;
  12215. tm.tm_year = 2050 - 1900;
  12216. tm.tm_mon = 2 - 1;
  12217. tm.tm_mday = 1;
  12218. tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
  12219. tm.tm_isdst = -1;
  12220. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  12221. instead of "TZ=America/Vancouver" in order to detect the bug even
  12222. on systems that don't support the Olson extension, or don't have the
  12223. full zoneinfo tables installed. */
  12224. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  12225. t = mktime (&tm);
  12226. /* Check that the result is either a failure, or close enough
  12227. to the correct answer that we can assume the discrepancy is
  12228. due to leap seconds. */
  12229. return (t == (time_t) -1
  12230. || (0 < t && answer - 120 <= t && t <= answer + 120));
  12231. }
  12232. int
  12233. main ()
  12234. {
  12235. time_t t, delta;
  12236. int i, j;
  12237. /* This test makes some buggy mktime implementations loop.
  12238. Give up after 60 seconds; a mktime slower than that
  12239. isn't worth using anyway. */
  12240. alarm (60);
  12241. for (;;)
  12242. {
  12243. t = (time_t_max << 1) + 1;
  12244. if (t <= time_t_max)
  12245. break;
  12246. time_t_max = t;
  12247. }
  12248. time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
  12249. delta = time_t_max / 997; /* a suitable prime number */
  12250. for (i = 0; i < N_STRINGS; i++)
  12251. {
  12252. if (tz_strings[i])
  12253. putenv (tz_strings[i]);
  12254. for (t = 0; t <= time_t_max - delta; t += delta)
  12255. if (! mktime_test (t))
  12256. return 1;
  12257. if (! (mktime_test ((time_t) 1)
  12258. && mktime_test ((time_t) (60 * 60))
  12259. && mktime_test ((time_t) (60 * 60 * 24))))
  12260. return 1;
  12261. for (j = 1; ; j <<= 1)
  12262. if (! bigtime_test (j))
  12263. return 1;
  12264. else if (INT_MAX / 2 < j)
  12265. break;
  12266. if (! bigtime_test (INT_MAX))
  12267. return 1;
  12268. }
  12269. return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
  12270. }
  12271. _ACEOF
  12272. if ac_fn_cxx_try_run "$LINENO"; then :
  12273. ac_cv_func_working_mktime=yes
  12274. else
  12275. ac_cv_func_working_mktime=no
  12276. fi
  12277. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12278. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12279. fi
  12280. fi
  12281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
  12282. $as_echo "$ac_cv_func_working_mktime" >&6; }
  12283. if test $ac_cv_func_working_mktime = no; then
  12284. case " $LIBOBJS " in
  12285. *" mktime.$ac_objext "* ) ;;
  12286. *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
  12287. ;;
  12288. esac
  12289. fi
  12290. for ac_func in getpagesize
  12291. do :
  12292. ac_fn_cxx_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  12293. if test "x$ac_cv_func_getpagesize" = x""yes; then :
  12294. cat >>confdefs.h <<_ACEOF
  12295. #define HAVE_GETPAGESIZE 1
  12296. _ACEOF
  12297. fi
  12298. done
  12299. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  12300. $as_echo_n "checking for working mmap... " >&6; }
  12301. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
  12302. $as_echo_n "(cached) " >&6
  12303. else
  12304. if test "$cross_compiling" = yes; then :
  12305. ac_cv_func_mmap_fixed_mapped=no
  12306. else
  12307. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12308. /* end confdefs.h. */
  12309. $ac_includes_default
  12310. /* malloc might have been renamed as rpl_malloc. */
  12311. #undef malloc
  12312. /* Thanks to Mike Haertel and Jim Avera for this test.
  12313. Here is a matrix of mmap possibilities:
  12314. mmap private not fixed
  12315. mmap private fixed at somewhere currently unmapped
  12316. mmap private fixed at somewhere already mapped
  12317. mmap shared not fixed
  12318. mmap shared fixed at somewhere currently unmapped
  12319. mmap shared fixed at somewhere already mapped
  12320. For private mappings, we should verify that changes cannot be read()
  12321. back from the file, nor mmap's back from the file at a different
  12322. address. (There have been systems where private was not correctly
  12323. implemented like the infamous i386 svr4.0, and systems where the
  12324. VM page cache was not coherent with the file system buffer cache
  12325. like early versions of FreeBSD and possibly contemporary NetBSD.)
  12326. For shared mappings, we should conversely verify that changes get
  12327. propagated back to all the places they're supposed to be.
  12328. Grep wants private fixed already mapped.
  12329. The main things grep needs to know about mmap are:
  12330. * does it exist and is it safe to write into the mmap'd area
  12331. * how to use it (BSD variants) */
  12332. #include <fcntl.h>
  12333. #include <sys/mman.h>
  12334. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  12335. char *malloc ();
  12336. #endif
  12337. /* This mess was copied from the GNU getpagesize.h. */
  12338. #ifndef HAVE_GETPAGESIZE
  12339. # ifdef _SC_PAGESIZE
  12340. # define getpagesize() sysconf(_SC_PAGESIZE)
  12341. # else /* no _SC_PAGESIZE */
  12342. # ifdef HAVE_SYS_PARAM_H
  12343. # include <sys/param.h>
  12344. # ifdef EXEC_PAGESIZE
  12345. # define getpagesize() EXEC_PAGESIZE
  12346. # else /* no EXEC_PAGESIZE */
  12347. # ifdef NBPG
  12348. # define getpagesize() NBPG * CLSIZE
  12349. # ifndef CLSIZE
  12350. # define CLSIZE 1
  12351. # endif /* no CLSIZE */
  12352. # else /* no NBPG */
  12353. # ifdef NBPC
  12354. # define getpagesize() NBPC
  12355. # else /* no NBPC */
  12356. # ifdef PAGESIZE
  12357. # define getpagesize() PAGESIZE
  12358. # endif /* PAGESIZE */
  12359. # endif /* no NBPC */
  12360. # endif /* no NBPG */
  12361. # endif /* no EXEC_PAGESIZE */
  12362. # else /* no HAVE_SYS_PARAM_H */
  12363. # define getpagesize() 8192 /* punt totally */
  12364. # endif /* no HAVE_SYS_PARAM_H */
  12365. # endif /* no _SC_PAGESIZE */
  12366. #endif /* no HAVE_GETPAGESIZE */
  12367. int
  12368. main ()
  12369. {
  12370. char *data, *data2, *data3;
  12371. const char *cdata2;
  12372. int i, pagesize;
  12373. int fd, fd2;
  12374. pagesize = getpagesize ();
  12375. /* First, make a file with some known garbage in it. */
  12376. data = (char *) malloc (pagesize);
  12377. if (!data)
  12378. return 1;
  12379. for (i = 0; i < pagesize; ++i)
  12380. *(data + i) = rand ();
  12381. umask (0);
  12382. fd = creat ("conftest.mmap", 0600);
  12383. if (fd < 0)
  12384. return 2;
  12385. if (write (fd, data, pagesize) != pagesize)
  12386. return 3;
  12387. close (fd);
  12388. /* Next, check that the tail of a page is zero-filled. File must have
  12389. non-zero length, otherwise we risk SIGBUS for entire page. */
  12390. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  12391. if (fd2 < 0)
  12392. return 4;
  12393. cdata2 = "";
  12394. if (write (fd2, cdata2, 1) != 1)
  12395. return 5;
  12396. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  12397. if (data2 == MAP_FAILED)
  12398. return 6;
  12399. for (i = 0; i < pagesize; ++i)
  12400. if (*(data2 + i))
  12401. return 7;
  12402. close (fd2);
  12403. if (munmap (data2, pagesize))
  12404. return 8;
  12405. /* Next, try to mmap the file at a fixed address which already has
  12406. something else allocated at it. If we can, also make sure that
  12407. we see the same garbage. */
  12408. fd = open ("conftest.mmap", O_RDWR);
  12409. if (fd < 0)
  12410. return 9;
  12411. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  12412. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  12413. return 10;
  12414. for (i = 0; i < pagesize; ++i)
  12415. if (*(data + i) != *(data2 + i))
  12416. return 11;
  12417. /* Finally, make sure that changes to the mapped area do not
  12418. percolate back to the file as seen by read(). (This is a bug on
  12419. some variants of i386 svr4.0.) */
  12420. for (i = 0; i < pagesize; ++i)
  12421. *(data2 + i) = *(data2 + i) + 1;
  12422. data3 = (char *) malloc (pagesize);
  12423. if (!data3)
  12424. return 12;
  12425. if (read (fd, data3, pagesize) != pagesize)
  12426. return 13;
  12427. for (i = 0; i < pagesize; ++i)
  12428. if (*(data + i) != *(data3 + i))
  12429. return 14;
  12430. close (fd);
  12431. return 0;
  12432. }
  12433. _ACEOF
  12434. if ac_fn_cxx_try_run "$LINENO"; then :
  12435. ac_cv_func_mmap_fixed_mapped=yes
  12436. else
  12437. ac_cv_func_mmap_fixed_mapped=no
  12438. fi
  12439. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12440. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12441. fi
  12442. fi
  12443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  12444. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  12445. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  12446. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  12447. fi
  12448. rm -f conftest.mmap conftest.txt
  12449. for ac_header in sys/select.h sys/socket.h
  12450. do :
  12451. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  12452. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  12453. eval as_val=\$$as_ac_Header
  12454. if test "x$as_val" = x""yes; then :
  12455. cat >>confdefs.h <<_ACEOF
  12456. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  12457. _ACEOF
  12458. fi
  12459. done
  12460. { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
  12461. $as_echo_n "checking types of arguments for select... " >&6; }
  12462. if test "${ac_cv_func_select_args+set}" = set; then :
  12463. $as_echo_n "(cached) " >&6
  12464. else
  12465. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  12466. for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
  12467. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  12468. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12469. /* end confdefs.h. */
  12470. $ac_includes_default
  12471. #ifdef HAVE_SYS_SELECT_H
  12472. # include <sys/select.h>
  12473. #endif
  12474. #ifdef HAVE_SYS_SOCKET_H
  12475. # include <sys/socket.h>
  12476. #endif
  12477. int
  12478. main ()
  12479. {
  12480. extern int select ($ac_arg1,
  12481. $ac_arg234, $ac_arg234, $ac_arg234,
  12482. $ac_arg5);
  12483. ;
  12484. return 0;
  12485. }
  12486. _ACEOF
  12487. if ac_fn_cxx_try_compile "$LINENO"; then :
  12488. ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  12489. fi
  12490. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12491. done
  12492. done
  12493. done
  12494. # Provide a safe default value.
  12495. : ${ac_cv_func_select_args='int,int *,struct timeval *'}
  12496. fi
  12497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
  12498. $as_echo "$ac_cv_func_select_args" >&6; }
  12499. ac_save_IFS=$IFS; IFS=','
  12500. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  12501. IFS=$ac_save_IFS
  12502. shift
  12503. cat >>confdefs.h <<_ACEOF
  12504. #define SELECT_TYPE_ARG1 $1
  12505. _ACEOF
  12506. cat >>confdefs.h <<_ACEOF
  12507. #define SELECT_TYPE_ARG234 ($2)
  12508. _ACEOF
  12509. cat >>confdefs.h <<_ACEOF
  12510. #define SELECT_TYPE_ARG5 ($3)
  12511. _ACEOF
  12512. rm -f conftest*
  12513. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
  12514. $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
  12515. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
  12516. $as_echo_n "(cached) " >&6
  12517. else
  12518. rm -f conftest.sym conftest.file
  12519. echo >conftest.file
  12520. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  12521. if test "$cross_compiling" = yes; then :
  12522. ac_cv_func_lstat_dereferences_slashed_symlink=no
  12523. else
  12524. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12525. /* end confdefs.h. */
  12526. $ac_includes_default
  12527. int
  12528. main ()
  12529. {
  12530. struct stat sbuf;
  12531. /* Linux will dereference the symlink and fail, as required by POSIX.
  12532. That is better in the sense that it means we will not
  12533. have to compile and use the lstat wrapper. */
  12534. return lstat ("conftest.sym/", &sbuf) == 0;
  12535. ;
  12536. return 0;
  12537. }
  12538. _ACEOF
  12539. if ac_fn_cxx_try_run "$LINENO"; then :
  12540. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  12541. else
  12542. ac_cv_func_lstat_dereferences_slashed_symlink=no
  12543. fi
  12544. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12545. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12546. fi
  12547. else
  12548. # If the `ln -s' command failed, then we probably don't even
  12549. # have an lstat function.
  12550. ac_cv_func_lstat_dereferences_slashed_symlink=no
  12551. fi
  12552. rm -f conftest.sym conftest.file
  12553. fi
  12554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  12555. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  12556. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  12557. cat >>confdefs.h <<_ACEOF
  12558. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  12559. _ACEOF
  12560. if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
  12561. case " $LIBOBJS " in
  12562. *" lstat.$ac_objext "* ) ;;
  12563. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  12564. ;;
  12565. esac
  12566. fi
  12567. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
  12568. $as_echo_n "checking whether stat accepts an empty string... " >&6; }
  12569. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
  12570. $as_echo_n "(cached) " >&6
  12571. else
  12572. if test "$cross_compiling" = yes; then :
  12573. ac_cv_func_stat_empty_string_bug=yes
  12574. else
  12575. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12576. /* end confdefs.h. */
  12577. $ac_includes_default
  12578. int
  12579. main ()
  12580. {
  12581. struct stat sbuf;
  12582. return stat ("", &sbuf) == 0;
  12583. ;
  12584. return 0;
  12585. }
  12586. _ACEOF
  12587. if ac_fn_cxx_try_run "$LINENO"; then :
  12588. ac_cv_func_stat_empty_string_bug=no
  12589. else
  12590. ac_cv_func_stat_empty_string_bug=yes
  12591. fi
  12592. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12593. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12594. fi
  12595. fi
  12596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
  12597. $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
  12598. if test $ac_cv_func_stat_empty_string_bug = yes; then
  12599. case " $LIBOBJS " in
  12600. *" stat.$ac_objext "* ) ;;
  12601. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  12602. ;;
  12603. esac
  12604. cat >>confdefs.h <<_ACEOF
  12605. #define HAVE_STAT_EMPTY_STRING_BUG 1
  12606. _ACEOF
  12607. fi
  12608. for ac_func in strftime
  12609. do :
  12610. ac_fn_cxx_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
  12611. if test "x$ac_cv_func_strftime" = x""yes; then :
  12612. cat >>confdefs.h <<_ACEOF
  12613. #define HAVE_STRFTIME 1
  12614. _ACEOF
  12615. else
  12616. # strftime is in -lintl on SCO UNIX.
  12617. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
  12618. $as_echo_n "checking for strftime in -lintl... " >&6; }
  12619. if test "${ac_cv_lib_intl_strftime+set}" = set; then :
  12620. $as_echo_n "(cached) " >&6
  12621. else
  12622. ac_check_lib_save_LIBS=$LIBS
  12623. LIBS="-lintl $LIBS"
  12624. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12625. /* end confdefs.h. */
  12626. /* Override any GCC internal prototype to avoid an error.
  12627. Use char because int might match the return type of a GCC
  12628. builtin and then its argument prototype would still apply. */
  12629. #ifdef __cplusplus
  12630. extern "C"
  12631. #endif
  12632. char strftime ();
  12633. int
  12634. main ()
  12635. {
  12636. return strftime ();
  12637. ;
  12638. return 0;
  12639. }
  12640. _ACEOF
  12641. if ac_fn_cxx_try_link "$LINENO"; then :
  12642. ac_cv_lib_intl_strftime=yes
  12643. else
  12644. ac_cv_lib_intl_strftime=no
  12645. fi
  12646. rm -f core conftest.err conftest.$ac_objext \
  12647. conftest$ac_exeext conftest.$ac_ext
  12648. LIBS=$ac_check_lib_save_LIBS
  12649. fi
  12650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
  12651. $as_echo "$ac_cv_lib_intl_strftime" >&6; }
  12652. if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
  12653. $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
  12654. LIBS="-lintl $LIBS"
  12655. fi
  12656. fi
  12657. done
  12658. for ac_func in vprintf
  12659. do :
  12660. ac_fn_cxx_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
  12661. if test "x$ac_cv_func_vprintf" = x""yes; then :
  12662. cat >>confdefs.h <<_ACEOF
  12663. #define HAVE_VPRINTF 1
  12664. _ACEOF
  12665. ac_fn_cxx_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
  12666. if test "x$ac_cv_func__doprnt" = x""yes; then :
  12667. $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
  12668. fi
  12669. fi
  12670. done
  12671. for ac_header in vfork.h
  12672. do :
  12673. ac_fn_cxx_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
  12674. if test "x$ac_cv_header_vfork_h" = x""yes; then :
  12675. cat >>confdefs.h <<_ACEOF
  12676. #define HAVE_VFORK_H 1
  12677. _ACEOF
  12678. fi
  12679. done
  12680. for ac_func in fork vfork
  12681. do :
  12682. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12683. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  12684. eval as_val=\$$as_ac_var
  12685. if test "x$as_val" = x""yes; then :
  12686. cat >>confdefs.h <<_ACEOF
  12687. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12688. _ACEOF
  12689. fi
  12690. done
  12691. if test "x$ac_cv_func_fork" = xyes; then
  12692. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  12693. $as_echo_n "checking for working fork... " >&6; }
  12694. if test "${ac_cv_func_fork_works+set}" = set; then :
  12695. $as_echo_n "(cached) " >&6
  12696. else
  12697. if test "$cross_compiling" = yes; then :
  12698. ac_cv_func_fork_works=cross
  12699. else
  12700. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12701. /* end confdefs.h. */
  12702. $ac_includes_default
  12703. int
  12704. main ()
  12705. {
  12706. /* By Ruediger Kuhlmann. */
  12707. return fork () < 0;
  12708. ;
  12709. return 0;
  12710. }
  12711. _ACEOF
  12712. if ac_fn_cxx_try_run "$LINENO"; then :
  12713. ac_cv_func_fork_works=yes
  12714. else
  12715. ac_cv_func_fork_works=no
  12716. fi
  12717. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12718. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12719. fi
  12720. fi
  12721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  12722. $as_echo "$ac_cv_func_fork_works" >&6; }
  12723. else
  12724. ac_cv_func_fork_works=$ac_cv_func_fork
  12725. fi
  12726. if test "x$ac_cv_func_fork_works" = xcross; then
  12727. case $host in
  12728. *-*-amigaos* | *-*-msdosdjgpp*)
  12729. # Override, as these systems have only a dummy fork() stub
  12730. ac_cv_func_fork_works=no
  12731. ;;
  12732. *)
  12733. ac_cv_func_fork_works=yes
  12734. ;;
  12735. esac
  12736. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  12737. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  12738. fi
  12739. ac_cv_func_vfork_works=$ac_cv_func_vfork
  12740. if test "x$ac_cv_func_vfork" = xyes; then
  12741. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  12742. $as_echo_n "checking for working vfork... " >&6; }
  12743. if test "${ac_cv_func_vfork_works+set}" = set; then :
  12744. $as_echo_n "(cached) " >&6
  12745. else
  12746. if test "$cross_compiling" = yes; then :
  12747. ac_cv_func_vfork_works=cross
  12748. else
  12749. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12750. /* end confdefs.h. */
  12751. /* Thanks to Paul Eggert for this test. */
  12752. $ac_includes_default
  12753. #include <sys/wait.h>
  12754. #ifdef HAVE_VFORK_H
  12755. # include <vfork.h>
  12756. #endif
  12757. /* On some sparc systems, changes by the child to local and incoming
  12758. argument registers are propagated back to the parent. The compiler
  12759. is told about this with #include <vfork.h>, but some compilers
  12760. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  12761. static variable whose address is put into a register that is
  12762. clobbered by the vfork. */
  12763. static void
  12764. #ifdef __cplusplus
  12765. sparc_address_test (int arg)
  12766. # else
  12767. sparc_address_test (arg) int arg;
  12768. #endif
  12769. {
  12770. static pid_t child;
  12771. if (!child) {
  12772. child = vfork ();
  12773. if (child < 0) {
  12774. perror ("vfork");
  12775. _exit(2);
  12776. }
  12777. if (!child) {
  12778. arg = getpid();
  12779. write(-1, "", 0);
  12780. _exit (arg);
  12781. }
  12782. }
  12783. }
  12784. int
  12785. main ()
  12786. {
  12787. pid_t parent = getpid ();
  12788. pid_t child;
  12789. sparc_address_test (0);
  12790. child = vfork ();
  12791. if (child == 0) {
  12792. /* Here is another test for sparc vfork register problems. This
  12793. test uses lots of local variables, at least as many local
  12794. variables as main has allocated so far including compiler
  12795. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  12796. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  12797. reuse the register of parent for one of the local variables,
  12798. since it will think that parent can't possibly be used any more
  12799. in this routine. Assigning to the local variable will thus
  12800. munge parent in the parent process. */
  12801. pid_t
  12802. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  12803. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  12804. /* Convince the compiler that p..p7 are live; otherwise, it might
  12805. use the same hardware register for all 8 local variables. */
  12806. if (p != p1 || p != p2 || p != p3 || p != p4
  12807. || p != p5 || p != p6 || p != p7)
  12808. _exit(1);
  12809. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  12810. from child file descriptors. If the child closes a descriptor
  12811. before it execs or exits, this munges the parent's descriptor
  12812. as well. Test for this by closing stdout in the child. */
  12813. _exit(close(fileno(stdout)) != 0);
  12814. } else {
  12815. int status;
  12816. struct stat st;
  12817. while (wait(&status) != child)
  12818. ;
  12819. return (
  12820. /* Was there some problem with vforking? */
  12821. child < 0
  12822. /* Did the child fail? (This shouldn't happen.) */
  12823. || status
  12824. /* Did the vfork/compiler bug occur? */
  12825. || parent != getpid()
  12826. /* Did the file descriptor bug occur? */
  12827. || fstat(fileno(stdout), &st) != 0
  12828. );
  12829. }
  12830. }
  12831. _ACEOF
  12832. if ac_fn_cxx_try_run "$LINENO"; then :
  12833. ac_cv_func_vfork_works=yes
  12834. else
  12835. ac_cv_func_vfork_works=no
  12836. fi
  12837. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12838. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12839. fi
  12840. fi
  12841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  12842. $as_echo "$ac_cv_func_vfork_works" >&6; }
  12843. fi;
  12844. if test "x$ac_cv_func_fork_works" = xcross; then
  12845. ac_cv_func_vfork_works=$ac_cv_func_vfork
  12846. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  12847. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  12848. fi
  12849. if test "x$ac_cv_func_vfork_works" = xyes; then
  12850. $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
  12851. else
  12852. $as_echo "#define vfork fork" >>confdefs.h
  12853. fi
  12854. if test "x$ac_cv_func_fork_works" = xyes; then
  12855. $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
  12856. fi
  12857. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  12858. $as_echo_n "checking for working strtod... " >&6; }
  12859. if test "${ac_cv_func_strtod+set}" = set; then :
  12860. $as_echo_n "(cached) " >&6
  12861. else
  12862. if test "$cross_compiling" = yes; then :
  12863. ac_cv_func_strtod=no
  12864. else
  12865. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12866. /* end confdefs.h. */
  12867. $ac_includes_default
  12868. #ifndef strtod
  12869. double strtod ();
  12870. #endif
  12871. int
  12872. main()
  12873. {
  12874. {
  12875. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  12876. char *string = " +69";
  12877. char *term;
  12878. double value;
  12879. value = strtod (string, &term);
  12880. if (value != 69 || term != (string + 4))
  12881. return 1;
  12882. }
  12883. {
  12884. /* Under Solaris 2.4, strtod returns the wrong value for the
  12885. terminating character under some conditions. */
  12886. char *string = "NaN";
  12887. char *term;
  12888. strtod (string, &term);
  12889. if (term != string && *(term - 1) == 0)
  12890. return 1;
  12891. }
  12892. return 0;
  12893. }
  12894. _ACEOF
  12895. if ac_fn_cxx_try_run "$LINENO"; then :
  12896. ac_cv_func_strtod=yes
  12897. else
  12898. ac_cv_func_strtod=no
  12899. fi
  12900. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12901. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12902. fi
  12903. fi
  12904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  12905. $as_echo "$ac_cv_func_strtod" >&6; }
  12906. if test $ac_cv_func_strtod = no; then
  12907. case " $LIBOBJS " in
  12908. *" strtod.$ac_objext "* ) ;;
  12909. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  12910. ;;
  12911. esac
  12912. ac_fn_cxx_check_func "$LINENO" "pow" "ac_cv_func_pow"
  12913. if test "x$ac_cv_func_pow" = x""yes; then :
  12914. fi
  12915. if test $ac_cv_func_pow = no; then
  12916. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  12917. $as_echo_n "checking for pow in -lm... " >&6; }
  12918. if test "${ac_cv_lib_m_pow+set}" = set; then :
  12919. $as_echo_n "(cached) " >&6
  12920. else
  12921. ac_check_lib_save_LIBS=$LIBS
  12922. LIBS="-lm $LIBS"
  12923. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12924. /* end confdefs.h. */
  12925. /* Override any GCC internal prototype to avoid an error.
  12926. Use char because int might match the return type of a GCC
  12927. builtin and then its argument prototype would still apply. */
  12928. #ifdef __cplusplus
  12929. extern "C"
  12930. #endif
  12931. char pow ();
  12932. int
  12933. main ()
  12934. {
  12935. return pow ();
  12936. ;
  12937. return 0;
  12938. }
  12939. _ACEOF
  12940. if ac_fn_cxx_try_link "$LINENO"; then :
  12941. ac_cv_lib_m_pow=yes
  12942. else
  12943. ac_cv_lib_m_pow=no
  12944. fi
  12945. rm -f core conftest.err conftest.$ac_objext \
  12946. conftest$ac_exeext conftest.$ac_ext
  12947. LIBS=$ac_check_lib_save_LIBS
  12948. fi
  12949. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  12950. $as_echo "$ac_cv_lib_m_pow" >&6; }
  12951. if test "x$ac_cv_lib_m_pow" = x""yes; then :
  12952. POW_LIB=-lm
  12953. else
  12954. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  12955. $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  12956. fi
  12957. fi
  12958. fi
  12959. for ac_func in __argz_count \
  12960. __argz_next \
  12961. __argz_stringify \
  12962. atexit \
  12963. ftruncate \
  12964. getcwd \
  12965. gethostbyaddr \
  12966. gethostbyname \
  12967. getifaddrs \
  12968. getpagesize \
  12969. inet_ntoa \
  12970. memchr \
  12971. memmove \
  12972. mempcpy \
  12973. memset \
  12974. mkdir \
  12975. munmap \
  12976. nl_langinfo \
  12977. posix_memalign \
  12978. pow \
  12979. putenv \
  12980. rmdir \
  12981. select \
  12982. setlocale \
  12983. sleep \
  12984. socket \
  12985. stpcpy \
  12986. strcasecmp \
  12987. strchr \
  12988. strcspn \
  12989. strdup \
  12990. strerror \
  12991. strncasecmp \
  12992. strstr \
  12993. strtol \
  12994. strtoul \
  12995. strtoull \
  12996. tzset \
  12997. unsetenv \
  12998. usleep \
  12999. utime
  13000. do :
  13001. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  13002. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  13003. eval as_val=\$$as_ac_var
  13004. if test "x$as_val" = x""yes; then :
  13005. cat >>confdefs.h <<_ACEOF
  13006. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  13007. _ACEOF
  13008. fi
  13009. done
  13010. if test "x$enable_epoll" = "xyes"; then
  13011. for ac_func in epoll_create
  13012. do :
  13013. ac_fn_cxx_check_func "$LINENO" "epoll_create" "ac_cv_func_epoll_create"
  13014. if test "x$ac_cv_func_epoll_create" = x""yes; then :
  13015. cat >>confdefs.h <<_ACEOF
  13016. #define HAVE_EPOLL_CREATE 1
  13017. _ACEOF
  13018. have_epoll=yes
  13019. fi
  13020. done
  13021. if test "x$have_epoll" = "xyes"; then
  13022. $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
  13023. fi
  13024. fi
  13025. if test "x$have_epoll" = "xyes"; then
  13026. HAVE_EPOLL_TRUE=
  13027. HAVE_EPOLL_FALSE='#'
  13028. else
  13029. HAVE_EPOLL_TRUE='#'
  13030. HAVE_EPOLL_FALSE=
  13031. fi
  13032. for ac_func in posix_fallocate
  13033. do :
  13034. ac_fn_cxx_check_func "$LINENO" "posix_fallocate" "ac_cv_func_posix_fallocate"
  13035. if test "x$ac_cv_func_posix_fallocate" = x""yes; then :
  13036. cat >>confdefs.h <<_ACEOF
  13037. #define HAVE_POSIX_FALLOCATE 1
  13038. _ACEOF
  13039. have_posix_fallocate=yes
  13040. fi
  13041. done
  13042. if test "x$have_posix_fallocate" = "xyes"; then
  13043. HAVE_POSIX_FALLOCATE_TRUE=
  13044. HAVE_POSIX_FALLOCATE_FALSE='#'
  13045. else
  13046. HAVE_POSIX_FALLOCATE_TRUE='#'
  13047. HAVE_POSIX_FALLOCATE_FALSE=
  13048. fi
  13049. for ac_func in asctime_r
  13050. do :
  13051. ac_fn_cxx_check_func "$LINENO" "asctime_r" "ac_cv_func_asctime_r"
  13052. if test "x$ac_cv_func_asctime_r" = x""yes; then :
  13053. cat >>confdefs.h <<_ACEOF
  13054. #define HAVE_ASCTIME_R 1
  13055. _ACEOF
  13056. if true; then
  13057. HAVE_ASCTIME_R_TRUE=
  13058. HAVE_ASCTIME_R_FALSE='#'
  13059. else
  13060. HAVE_ASCTIME_R_TRUE='#'
  13061. HAVE_ASCTIME_R_FALSE=
  13062. fi
  13063. else
  13064. if false; then
  13065. HAVE_ASCTIME_R_TRUE=
  13066. HAVE_ASCTIME_R_FALSE='#'
  13067. else
  13068. HAVE_ASCTIME_R_TRUE='#'
  13069. HAVE_ASCTIME_R_FALSE=
  13070. fi
  13071. fi
  13072. done
  13073. for ac_func in basename
  13074. do :
  13075. ac_fn_cxx_check_func "$LINENO" "basename" "ac_cv_func_basename"
  13076. if test "x$ac_cv_func_basename" = x""yes; then :
  13077. cat >>confdefs.h <<_ACEOF
  13078. #define HAVE_BASENAME 1
  13079. _ACEOF
  13080. if true; then
  13081. HAVE_BASENAME_TRUE=
  13082. HAVE_BASENAME_FALSE='#'
  13083. else
  13084. HAVE_BASENAME_TRUE='#'
  13085. HAVE_BASENAME_FALSE=
  13086. fi
  13087. else
  13088. if false; then
  13089. HAVE_BASENAME_TRUE=
  13090. HAVE_BASENAME_FALSE='#'
  13091. else
  13092. HAVE_BASENAME_TRUE='#'
  13093. HAVE_BASENAME_FALSE=
  13094. fi
  13095. fi
  13096. done
  13097. for ac_func in gai_strerror
  13098. do :
  13099. ac_fn_cxx_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
  13100. if test "x$ac_cv_func_gai_strerror" = x""yes; then :
  13101. cat >>confdefs.h <<_ACEOF
  13102. #define HAVE_GAI_STRERROR 1
  13103. _ACEOF
  13104. if true; then
  13105. HAVE_GAI_STRERROR_TRUE=
  13106. HAVE_GAI_STRERROR_FALSE='#'
  13107. else
  13108. HAVE_GAI_STRERROR_TRUE='#'
  13109. HAVE_GAI_STRERROR_FALSE=
  13110. fi
  13111. else
  13112. if false; then
  13113. HAVE_GAI_STRERROR_TRUE=
  13114. HAVE_GAI_STRERROR_FALSE='#'
  13115. else
  13116. HAVE_GAI_STRERROR_TRUE='#'
  13117. HAVE_GAI_STRERROR_FALSE=
  13118. fi
  13119. fi
  13120. done
  13121. for ac_func in getaddrinfo
  13122. do :
  13123. ac_fn_cxx_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
  13124. if test "x$ac_cv_func_getaddrinfo" = x""yes; then :
  13125. cat >>confdefs.h <<_ACEOF
  13126. #define HAVE_GETADDRINFO 1
  13127. _ACEOF
  13128. if true; then
  13129. HAVE_GETADDRINFO_TRUE=
  13130. HAVE_GETADDRINFO_FALSE='#'
  13131. else
  13132. HAVE_GETADDRINFO_TRUE='#'
  13133. HAVE_GETADDRINFO_FALSE=
  13134. fi
  13135. else
  13136. if false; then
  13137. HAVE_GETADDRINFO_TRUE=
  13138. HAVE_GETADDRINFO_FALSE='#'
  13139. else
  13140. HAVE_GETADDRINFO_TRUE='#'
  13141. HAVE_GETADDRINFO_FALSE=
  13142. fi
  13143. fi
  13144. done
  13145. for ac_func in gettimeofday
  13146. do :
  13147. ac_fn_cxx_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
  13148. if test "x$ac_cv_func_gettimeofday" = x""yes; then :
  13149. cat >>confdefs.h <<_ACEOF
  13150. #define HAVE_GETTIMEOFDAY 1
  13151. _ACEOF
  13152. if true; then
  13153. HAVE_GETTIMEOFDAY_TRUE=
  13154. HAVE_GETTIMEOFDAY_FALSE='#'
  13155. else
  13156. HAVE_GETTIMEOFDAY_TRUE='#'
  13157. HAVE_GETTIMEOFDAY_FALSE=
  13158. fi
  13159. else
  13160. if false; then
  13161. HAVE_GETTIMEOFDAY_TRUE=
  13162. HAVE_GETTIMEOFDAY_FALSE='#'
  13163. else
  13164. HAVE_GETTIMEOFDAY_TRUE='#'
  13165. HAVE_GETTIMEOFDAY_FALSE=
  13166. fi
  13167. fi
  13168. done
  13169. for ac_func in inet_aton
  13170. do :
  13171. ac_fn_cxx_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
  13172. if test "x$ac_cv_func_inet_aton" = x""yes; then :
  13173. cat >>confdefs.h <<_ACEOF
  13174. #define HAVE_INET_ATON 1
  13175. _ACEOF
  13176. if true; then
  13177. HAVE_INET_ATON_TRUE=
  13178. HAVE_INET_ATON_FALSE='#'
  13179. else
  13180. HAVE_INET_ATON_TRUE='#'
  13181. HAVE_INET_ATON_FALSE=
  13182. fi
  13183. else
  13184. if false; then
  13185. HAVE_INET_ATON_TRUE=
  13186. HAVE_INET_ATON_FALSE='#'
  13187. else
  13188. HAVE_INET_ATON_TRUE='#'
  13189. HAVE_INET_ATON_FALSE=
  13190. fi
  13191. fi
  13192. done
  13193. for ac_func in localtime_r
  13194. do :
  13195. ac_fn_cxx_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r"
  13196. if test "x$ac_cv_func_localtime_r" = x""yes; then :
  13197. cat >>confdefs.h <<_ACEOF
  13198. #define HAVE_LOCALTIME_R 1
  13199. _ACEOF
  13200. if true; then
  13201. HAVE_LOCALTIME_R_TRUE=
  13202. HAVE_LOCALTIME_R_FALSE='#'
  13203. else
  13204. HAVE_LOCALTIME_R_TRUE='#'
  13205. HAVE_LOCALTIME_R_FALSE=
  13206. fi
  13207. else
  13208. if false; then
  13209. HAVE_LOCALTIME_R_TRUE=
  13210. HAVE_LOCALTIME_R_FALSE='#'
  13211. else
  13212. HAVE_LOCALTIME_R_TRUE='#'
  13213. HAVE_LOCALTIME_R_FALSE=
  13214. fi
  13215. fi
  13216. done
  13217. for ac_func in strptime
  13218. do :
  13219. ac_fn_cxx_check_func "$LINENO" "strptime" "ac_cv_func_strptime"
  13220. if test "x$ac_cv_func_strptime" = x""yes; then :
  13221. cat >>confdefs.h <<_ACEOF
  13222. #define HAVE_STRPTIME 1
  13223. _ACEOF
  13224. if true; then
  13225. HAVE_STRPTIME_TRUE=
  13226. HAVE_STRPTIME_FALSE='#'
  13227. else
  13228. HAVE_STRPTIME_TRUE='#'
  13229. HAVE_STRPTIME_FALSE=
  13230. fi
  13231. else
  13232. if false; then
  13233. HAVE_STRPTIME_TRUE=
  13234. HAVE_STRPTIME_FALSE='#'
  13235. else
  13236. HAVE_STRPTIME_TRUE='#'
  13237. HAVE_STRPTIME_FALSE=
  13238. fi
  13239. fi
  13240. done
  13241. for ac_func in timegm
  13242. do :
  13243. ac_fn_cxx_check_func "$LINENO" "timegm" "ac_cv_func_timegm"
  13244. if test "x$ac_cv_func_timegm" = x""yes; then :
  13245. cat >>confdefs.h <<_ACEOF
  13246. #define HAVE_TIMEGM 1
  13247. _ACEOF
  13248. if true; then
  13249. HAVE_TIMEGM_TRUE=
  13250. HAVE_TIMEGM_FALSE='#'
  13251. else
  13252. HAVE_TIMEGM_TRUE='#'
  13253. HAVE_TIMEGM_FALSE=
  13254. fi
  13255. else
  13256. if false; then
  13257. HAVE_TIMEGM_TRUE=
  13258. HAVE_TIMEGM_FALSE='#'
  13259. else
  13260. HAVE_TIMEGM_TRUE='#'
  13261. HAVE_TIMEGM_FALSE=
  13262. fi
  13263. fi
  13264. done
  13265. for ac_func in daemon
  13266. do :
  13267. ac_fn_cxx_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
  13268. if test "x$ac_cv_func_daemon" = x""yes; then :
  13269. cat >>confdefs.h <<_ACEOF
  13270. #define HAVE_DAEMON 1
  13271. _ACEOF
  13272. have_daemon=yes
  13273. fi
  13274. done
  13275. if test "x$have_daemon" = "xyes"; then
  13276. HAVE_DAEMON_TRUE=
  13277. HAVE_DAEMON_FALSE='#'
  13278. else
  13279. HAVE_DAEMON_TRUE='#'
  13280. HAVE_DAEMON_FALSE=
  13281. fi
  13282. for ac_func in clock_gettime
  13283. do :
  13284. ac_fn_cxx_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
  13285. if test "x$ac_cv_func_clock_gettime" = x""yes; then :
  13286. cat >>confdefs.h <<_ACEOF
  13287. #define HAVE_CLOCK_GETTIME 1
  13288. _ACEOF
  13289. have_clock_gettime=yes
  13290. fi
  13291. done
  13292. if test "x$have_clock_gettime" != "xyes"; then
  13293. for ac_func in mach_absolute_time
  13294. do :
  13295. ac_fn_cxx_check_func "$LINENO" "mach_absolute_time" "ac_cv_func_mach_absolute_time"
  13296. if test "x$ac_cv_func_mach_absolute_time" = x""yes; then :
  13297. cat >>confdefs.h <<_ACEOF
  13298. #define HAVE_MACH_ABSOLUTE_TIME 1
  13299. _ACEOF
  13300. have_mach_absolute_time=yes
  13301. fi
  13302. done
  13303. fi
  13304. if test "x$have_mach_absolute_time" = "xyes"; then
  13305. HAVE_MACH_ABSOLUTE_TIME_TRUE=
  13306. HAVE_MACH_ABSOLUTE_TIME_FALSE='#'
  13307. else
  13308. HAVE_MACH_ABSOLUTE_TIME_TRUE='#'
  13309. HAVE_MACH_ABSOLUTE_TIME_FALSE=
  13310. fi
  13311. for ac_func in poll
  13312. do :
  13313. ac_fn_cxx_check_func "$LINENO" "poll" "ac_cv_func_poll"
  13314. if test "x$ac_cv_func_poll" = x""yes; then :
  13315. cat >>confdefs.h <<_ACEOF
  13316. #define HAVE_POLL 1
  13317. _ACEOF
  13318. have_poll=yes
  13319. fi
  13320. done
  13321. if test "x$have_poll" = "xyes"; then
  13322. HAVE_POLL_TRUE=
  13323. HAVE_POLL_FALSE='#'
  13324. else
  13325. HAVE_POLL_TRUE='#'
  13326. HAVE_POLL_FALSE=
  13327. fi
  13328. case "$target" in
  13329. *mingw*)
  13330. if true; then
  13331. HAVE_GETADDRINFO_TRUE=
  13332. HAVE_GETADDRINFO_FALSE='#'
  13333. else
  13334. HAVE_GETADDRINFO_TRUE='#'
  13335. HAVE_GETADDRINFO_FALSE=
  13336. fi
  13337. if false; then
  13338. HAVE_GAI_STRERROR_TRUE=
  13339. HAVE_GAI_STRERROR_FALSE='#'
  13340. else
  13341. HAVE_GAI_STRERROR_TRUE='#'
  13342. HAVE_GAI_STRERROR_FALSE=
  13343. fi
  13344. if test "x$have_clock_gettime" != "xyes"; then
  13345. if true; then
  13346. HAVE_TIMEGETTIME_TRUE=
  13347. HAVE_TIMEGETTIME_FALSE='#'
  13348. else
  13349. HAVE_TIMEGETTIME_TRUE='#'
  13350. HAVE_TIMEGETTIME_FALSE=
  13351. fi
  13352. fi
  13353. ;;
  13354. *)
  13355. if false; then
  13356. HAVE_TIMEGETTIME_TRUE=
  13357. HAVE_TIMEGETTIME_FALSE='#'
  13358. else
  13359. HAVE_TIMEGETTIME_TRUE='#'
  13360. HAVE_TIMEGETTIME_FALSE=
  13361. fi
  13362. ;;
  13363. esac
  13364. ac_fn_cxx_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <netinet/in.h>
  13365. "
  13366. if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = x""yes; then :
  13367. $as_echo "#define HAVE_SOCKADDR_IN_SIN_LEN 1" >>confdefs.h
  13368. fi
  13369. # Check struct option.name is assignable from const char*. struct
  13370. # option.name in opensolaris is of type char*. In Linux, it is const
  13371. # char*
  13372. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct option.name is assignable from const char*" >&5
  13373. $as_echo_n "checking whether struct option.name is assignable from const char*... " >&6; }
  13374. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13375. /* end confdefs.h. */
  13376. #include <unistd.h>
  13377. #include <getopt.h>
  13378. int
  13379. main ()
  13380. {
  13381. const char* s = "const char";
  13382. option op;
  13383. op.name = s;
  13384. ;
  13385. return 0;
  13386. }
  13387. _ACEOF
  13388. if ac_fn_cxx_try_compile "$LINENO"; then :
  13389. have_option_const_name=yes
  13390. else
  13391. have_option_const_name=no
  13392. fi
  13393. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_option_const_name" >&5
  13395. $as_echo "$have_option_const_name" >&6; }
  13396. if test "x$have_option_const_name" = "xyes"; then
  13397. $as_echo "#define HAVE_OPTION_CONST_NAME 1" >>confdefs.h
  13398. fi
  13399. ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile po/Makefile.in intl/Makefile lib/Makefile doc/Makefile"
  13400. cat >confcache <<\_ACEOF
  13401. # This file is a shell script that caches the results of configure
  13402. # tests run on this system so they can be shared between configure
  13403. # scripts and configure runs, see configure's option --config-cache.
  13404. # It is not useful on other systems. If it contains results you don't
  13405. # want to keep, you may remove or edit it.
  13406. #
  13407. # config.status only pays attention to the cache file if you give it
  13408. # the --recheck option to rerun configure.
  13409. #
  13410. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  13411. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  13412. # following values.
  13413. _ACEOF
  13414. # The following way of writing the cache mishandles newlines in values,
  13415. # but we know of no workaround that is simple, portable, and efficient.
  13416. # So, we kill variables containing newlines.
  13417. # Ultrix sh set writes to stderr and can't be redirected directly,
  13418. # and sets the high bit in the cache file unless we assign to the vars.
  13419. (
  13420. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  13421. eval ac_val=\$$ac_var
  13422. case $ac_val in #(
  13423. *${as_nl}*)
  13424. case $ac_var in #(
  13425. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  13426. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  13427. esac
  13428. case $ac_var in #(
  13429. _ | IFS | as_nl) ;; #(
  13430. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  13431. *) { eval $ac_var=; unset $ac_var;} ;;
  13432. esac ;;
  13433. esac
  13434. done
  13435. (set) 2>&1 |
  13436. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  13437. *${as_nl}ac_space=\ *)
  13438. # `set' does not quote correctly, so add quotes: double-quote
  13439. # substitution turns \\\\ into \\, and sed turns \\ into \.
  13440. sed -n \
  13441. "s/'/'\\\\''/g;
  13442. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  13443. ;; #(
  13444. *)
  13445. # `set' quotes correctly as required by POSIX, so do not add quotes.
  13446. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  13447. ;;
  13448. esac |
  13449. sort
  13450. ) |
  13451. sed '
  13452. /^ac_cv_env_/b end
  13453. t clear
  13454. :clear
  13455. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  13456. t end
  13457. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  13458. :end' >>confcache
  13459. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  13460. if test -w "$cache_file"; then
  13461. test "x$cache_file" != "x/dev/null" &&
  13462. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  13463. $as_echo "$as_me: updating cache $cache_file" >&6;}
  13464. cat confcache >$cache_file
  13465. else
  13466. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  13467. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  13468. fi
  13469. fi
  13470. rm -f confcache
  13471. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  13472. # Let make expand exec_prefix.
  13473. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  13474. DEFS=-DHAVE_CONFIG_H
  13475. ac_libobjs=
  13476. ac_ltlibobjs=
  13477. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  13478. # 1. Remove the extension, and $U if already installed.
  13479. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  13480. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  13481. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  13482. # will be set to the directory where LIBOBJS objects are built.
  13483. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  13484. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  13485. done
  13486. LIBOBJS=$ac_libobjs
  13487. LTLIBOBJS=$ac_ltlibobjs
  13488. if test -n "$EXEEXT"; then
  13489. am__EXEEXT_TRUE=
  13490. am__EXEEXT_FALSE='#'
  13491. else
  13492. am__EXEEXT_TRUE='#'
  13493. am__EXEEXT_FALSE=
  13494. fi
  13495. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  13496. as_fn_error "conditional \"AMDEP\" was never defined.
  13497. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13498. fi
  13499. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  13500. as_fn_error "conditional \"am__fastdepCXX\" was never defined.
  13501. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13502. fi
  13503. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  13504. as_fn_error "conditional \"am__fastdepCC\" was never defined.
  13505. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13506. fi
  13507. if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
  13508. as_fn_error "conditional \"ENABLE_SSL\" was never defined.
  13509. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13510. fi
  13511. if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
  13512. as_fn_error "conditional \"ENABLE_SSL\" was never defined.
  13513. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13514. fi
  13515. if test -z "${HAVE_LIBGNUTLS_TRUE}" && test -z "${HAVE_LIBGNUTLS_FALSE}"; then
  13516. as_fn_error "conditional \"HAVE_LIBGNUTLS\" was never defined.
  13517. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13518. fi
  13519. if test -z "${HAVE_LIBSSL_TRUE}" && test -z "${HAVE_LIBSSL_FALSE}"; then
  13520. as_fn_error "conditional \"HAVE_LIBSSL\" was never defined.
  13521. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13522. fi
  13523. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  13524. as_fn_error "conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  13525. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13526. fi
  13527. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  13528. as_fn_error "conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  13529. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13530. fi
  13531. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  13532. as_fn_error "conditional \"ENABLE_BITTORRENT\" was never defined.
  13533. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13534. fi
  13535. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  13536. as_fn_error "conditional \"ENABLE_BITTORRENT\" was never defined.
  13537. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13538. fi
  13539. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  13540. as_fn_error "conditional \"ENABLE_METALINK\" was never defined.
  13541. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13542. fi
  13543. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  13544. as_fn_error "conditional \"ENABLE_METALINK\" was never defined.
  13545. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13546. fi
  13547. if test -z "${ENABLE_METALINK_LIBXML2_TRUE}" && test -z "${ENABLE_METALINK_LIBXML2_FALSE}"; then
  13548. as_fn_error "conditional \"ENABLE_METALINK_LIBXML2\" was never defined.
  13549. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13550. fi
  13551. if test -z "${ENABLE_METALINK_LIBEXPAT_TRUE}" && test -z "${ENABLE_METALINK_LIBEXPAT_FALSE}"; then
  13552. as_fn_error "conditional \"ENABLE_METALINK_LIBEXPAT\" was never defined.
  13553. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13554. fi
  13555. if test -z "${ENABLE_XML_RPC_TRUE}" && test -z "${ENABLE_XML_RPC_FALSE}"; then
  13556. as_fn_error "conditional \"ENABLE_XML_RPC\" was never defined.
  13557. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13558. fi
  13559. if test -z "${HAVE_LIBXML2_TRUE}" && test -z "${HAVE_LIBXML2_FALSE}"; then
  13560. as_fn_error "conditional \"HAVE_LIBXML2\" was never defined.
  13561. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13562. fi
  13563. if test -z "${HAVE_LIBEXPAT_TRUE}" && test -z "${HAVE_LIBEXPAT_FALSE}"; then
  13564. as_fn_error "conditional \"HAVE_LIBEXPAT\" was never defined.
  13565. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13566. fi
  13567. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  13568. as_fn_error "conditional \"ENABLE_ASYNC_DNS\" was never defined.
  13569. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13570. fi
  13571. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  13572. as_fn_error "conditional \"ENABLE_ASYNC_DNS\" was never defined.
  13573. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13574. fi
  13575. if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
  13576. as_fn_error "conditional \"HAVE_LIBZ\" was never defined.
  13577. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13578. fi
  13579. if test -z "${HAVE_SQLITE3_TRUE}" && test -z "${HAVE_SQLITE3_FALSE}"; then
  13580. as_fn_error "conditional \"HAVE_SQLITE3\" was never defined.
  13581. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13582. fi
  13583. if test -z "${HAVE_EPOLL_TRUE}" && test -z "${HAVE_EPOLL_FALSE}"; then
  13584. as_fn_error "conditional \"HAVE_EPOLL\" was never defined.
  13585. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13586. fi
  13587. if test -z "${HAVE_POSIX_FALLOCATE_TRUE}" && test -z "${HAVE_POSIX_FALLOCATE_FALSE}"; then
  13588. as_fn_error "conditional \"HAVE_POSIX_FALLOCATE\" was never defined.
  13589. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13590. fi
  13591. if test -z "${HAVE_ASCTIME_R_TRUE}" && test -z "${HAVE_ASCTIME_R_FALSE}"; then
  13592. as_fn_error "conditional \"HAVE_ASCTIME_R\" was never defined.
  13593. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13594. fi
  13595. if test -z "${HAVE_ASCTIME_R_TRUE}" && test -z "${HAVE_ASCTIME_R_FALSE}"; then
  13596. as_fn_error "conditional \"HAVE_ASCTIME_R\" was never defined.
  13597. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13598. fi
  13599. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  13600. as_fn_error "conditional \"HAVE_BASENAME\" was never defined.
  13601. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13602. fi
  13603. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  13604. as_fn_error "conditional \"HAVE_BASENAME\" was never defined.
  13605. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13606. fi
  13607. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  13608. as_fn_error "conditional \"HAVE_GAI_STRERROR\" was never defined.
  13609. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13610. fi
  13611. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  13612. as_fn_error "conditional \"HAVE_GAI_STRERROR\" was never defined.
  13613. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13614. fi
  13615. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  13616. as_fn_error "conditional \"HAVE_GETADDRINFO\" was never defined.
  13617. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13618. fi
  13619. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  13620. as_fn_error "conditional \"HAVE_GETADDRINFO\" was never defined.
  13621. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13622. fi
  13623. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  13624. as_fn_error "conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  13625. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13626. fi
  13627. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  13628. as_fn_error "conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  13629. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13630. fi
  13631. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  13632. as_fn_error "conditional \"HAVE_INET_ATON\" was never defined.
  13633. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13634. fi
  13635. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  13636. as_fn_error "conditional \"HAVE_INET_ATON\" was never defined.
  13637. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13638. fi
  13639. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  13640. as_fn_error "conditional \"HAVE_LOCALTIME_R\" was never defined.
  13641. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13642. fi
  13643. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  13644. as_fn_error "conditional \"HAVE_LOCALTIME_R\" was never defined.
  13645. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13646. fi
  13647. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  13648. as_fn_error "conditional \"HAVE_STRPTIME\" was never defined.
  13649. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13650. fi
  13651. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  13652. as_fn_error "conditional \"HAVE_STRPTIME\" was never defined.
  13653. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13654. fi
  13655. if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
  13656. as_fn_error "conditional \"HAVE_TIMEGM\" was never defined.
  13657. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13658. fi
  13659. if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
  13660. as_fn_error "conditional \"HAVE_TIMEGM\" was never defined.
  13661. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13662. fi
  13663. if test -z "${HAVE_DAEMON_TRUE}" && test -z "${HAVE_DAEMON_FALSE}"; then
  13664. as_fn_error "conditional \"HAVE_DAEMON\" was never defined.
  13665. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13666. fi
  13667. if test -z "${HAVE_MACH_ABSOLUTE_TIME_TRUE}" && test -z "${HAVE_MACH_ABSOLUTE_TIME_FALSE}"; then
  13668. as_fn_error "conditional \"HAVE_MACH_ABSOLUTE_TIME\" was never defined.
  13669. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13670. fi
  13671. if test -z "${HAVE_POLL_TRUE}" && test -z "${HAVE_POLL_FALSE}"; then
  13672. as_fn_error "conditional \"HAVE_POLL\" was never defined.
  13673. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13674. fi
  13675. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  13676. as_fn_error "conditional \"HAVE_GETADDRINFO\" was never defined.
  13677. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13678. fi
  13679. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  13680. as_fn_error "conditional \"HAVE_GAI_STRERROR\" was never defined.
  13681. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13682. fi
  13683. if test -z "${HAVE_TIMEGETTIME_TRUE}" && test -z "${HAVE_TIMEGETTIME_FALSE}"; then
  13684. as_fn_error "conditional \"HAVE_TIMEGETTIME\" was never defined.
  13685. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13686. fi
  13687. if test -z "${HAVE_TIMEGETTIME_TRUE}" && test -z "${HAVE_TIMEGETTIME_FALSE}"; then
  13688. as_fn_error "conditional \"HAVE_TIMEGETTIME\" was never defined.
  13689. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13690. fi
  13691. : ${CONFIG_STATUS=./config.status}
  13692. ac_write_fail=0
  13693. ac_clean_files_save=$ac_clean_files
  13694. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  13695. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  13696. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  13697. as_write_fail=0
  13698. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  13699. #! $SHELL
  13700. # Generated by $as_me.
  13701. # Run this file to recreate the current configuration.
  13702. # Compiler output produced by configure, useful for debugging
  13703. # configure, is in config.log if it exists.
  13704. debug=false
  13705. ac_cs_recheck=false
  13706. ac_cs_silent=false
  13707. SHELL=\${CONFIG_SHELL-$SHELL}
  13708. export SHELL
  13709. _ASEOF
  13710. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  13711. ## -------------------- ##
  13712. ## M4sh Initialization. ##
  13713. ## -------------------- ##
  13714. # Be more Bourne compatible
  13715. DUALCASE=1; export DUALCASE # for MKS sh
  13716. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  13717. emulate sh
  13718. NULLCMD=:
  13719. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  13720. # is contrary to our usage. Disable this feature.
  13721. alias -g '${1+"$@"}'='"$@"'
  13722. setopt NO_GLOB_SUBST
  13723. else
  13724. case `(set -o) 2>/dev/null` in #(
  13725. *posix*) :
  13726. set -o posix ;; #(
  13727. *) :
  13728. ;;
  13729. esac
  13730. fi
  13731. as_nl='
  13732. '
  13733. export as_nl
  13734. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  13735. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  13736. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  13737. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  13738. # Prefer a ksh shell builtin over an external printf program on Solaris,
  13739. # but without wasting forks for bash or zsh.
  13740. if test -z "$BASH_VERSION$ZSH_VERSION" \
  13741. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  13742. as_echo='print -r --'
  13743. as_echo_n='print -rn --'
  13744. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  13745. as_echo='printf %s\n'
  13746. as_echo_n='printf %s'
  13747. else
  13748. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  13749. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  13750. as_echo_n='/usr/ucb/echo -n'
  13751. else
  13752. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  13753. as_echo_n_body='eval
  13754. arg=$1;
  13755. case $arg in #(
  13756. *"$as_nl"*)
  13757. expr "X$arg" : "X\\(.*\\)$as_nl";
  13758. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  13759. esac;
  13760. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  13761. '
  13762. export as_echo_n_body
  13763. as_echo_n='sh -c $as_echo_n_body as_echo'
  13764. fi
  13765. export as_echo_body
  13766. as_echo='sh -c $as_echo_body as_echo'
  13767. fi
  13768. # The user is always right.
  13769. if test "${PATH_SEPARATOR+set}" != set; then
  13770. PATH_SEPARATOR=:
  13771. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  13772. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  13773. PATH_SEPARATOR=';'
  13774. }
  13775. fi
  13776. # IFS
  13777. # We need space, tab and new line, in precisely that order. Quoting is
  13778. # there to prevent editors from complaining about space-tab.
  13779. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  13780. # splitting by setting IFS to empty value.)
  13781. IFS=" "" $as_nl"
  13782. # Find who we are. Look in the path if we contain no directory separator.
  13783. case $0 in #((
  13784. *[\\/]* ) as_myself=$0 ;;
  13785. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13786. for as_dir in $PATH
  13787. do
  13788. IFS=$as_save_IFS
  13789. test -z "$as_dir" && as_dir=.
  13790. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  13791. done
  13792. IFS=$as_save_IFS
  13793. ;;
  13794. esac
  13795. # We did not find ourselves, most probably we were run as `sh COMMAND'
  13796. # in which case we are not to be found in the path.
  13797. if test "x$as_myself" = x; then
  13798. as_myself=$0
  13799. fi
  13800. if test ! -f "$as_myself"; then
  13801. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  13802. exit 1
  13803. fi
  13804. # Unset variables that we do not need and which cause bugs (e.g. in
  13805. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  13806. # suppresses any "Segmentation fault" message there. '((' could
  13807. # trigger a bug in pdksh 5.2.14.
  13808. for as_var in BASH_ENV ENV MAIL MAILPATH
  13809. do eval test x\${$as_var+set} = xset \
  13810. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  13811. done
  13812. PS1='$ '
  13813. PS2='> '
  13814. PS4='+ '
  13815. # NLS nuisances.
  13816. LC_ALL=C
  13817. export LC_ALL
  13818. LANGUAGE=C
  13819. export LANGUAGE
  13820. # CDPATH.
  13821. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13822. # as_fn_error ERROR [LINENO LOG_FD]
  13823. # ---------------------------------
  13824. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  13825. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  13826. # script with status $?, using 1 if that was 0.
  13827. as_fn_error ()
  13828. {
  13829. as_status=$?; test $as_status -eq 0 && as_status=1
  13830. if test "$3"; then
  13831. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  13832. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  13833. fi
  13834. $as_echo "$as_me: error: $1" >&2
  13835. as_fn_exit $as_status
  13836. } # as_fn_error
  13837. # as_fn_set_status STATUS
  13838. # -----------------------
  13839. # Set $? to STATUS, without forking.
  13840. as_fn_set_status ()
  13841. {
  13842. return $1
  13843. } # as_fn_set_status
  13844. # as_fn_exit STATUS
  13845. # -----------------
  13846. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  13847. as_fn_exit ()
  13848. {
  13849. set +e
  13850. as_fn_set_status $1
  13851. exit $1
  13852. } # as_fn_exit
  13853. # as_fn_unset VAR
  13854. # ---------------
  13855. # Portably unset VAR.
  13856. as_fn_unset ()
  13857. {
  13858. { eval $1=; unset $1;}
  13859. }
  13860. as_unset=as_fn_unset
  13861. # as_fn_append VAR VALUE
  13862. # ----------------------
  13863. # Append the text in VALUE to the end of the definition contained in VAR. Take
  13864. # advantage of any shell optimizations that allow amortized linear growth over
  13865. # repeated appends, instead of the typical quadratic growth present in naive
  13866. # implementations.
  13867. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  13868. eval 'as_fn_append ()
  13869. {
  13870. eval $1+=\$2
  13871. }'
  13872. else
  13873. as_fn_append ()
  13874. {
  13875. eval $1=\$$1\$2
  13876. }
  13877. fi # as_fn_append
  13878. # as_fn_arith ARG...
  13879. # ------------------
  13880. # Perform arithmetic evaluation on the ARGs, and store the result in the
  13881. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  13882. # must be portable across $(()) and expr.
  13883. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  13884. eval 'as_fn_arith ()
  13885. {
  13886. as_val=$(( $* ))
  13887. }'
  13888. else
  13889. as_fn_arith ()
  13890. {
  13891. as_val=`expr "$@" || test $? -eq 1`
  13892. }
  13893. fi # as_fn_arith
  13894. if expr a : '\(a\)' >/dev/null 2>&1 &&
  13895. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  13896. as_expr=expr
  13897. else
  13898. as_expr=false
  13899. fi
  13900. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  13901. as_basename=basename
  13902. else
  13903. as_basename=false
  13904. fi
  13905. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  13906. as_dirname=dirname
  13907. else
  13908. as_dirname=false
  13909. fi
  13910. as_me=`$as_basename -- "$0" ||
  13911. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  13912. X"$0" : 'X\(//\)$' \| \
  13913. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  13914. $as_echo X/"$0" |
  13915. sed '/^.*\/\([^/][^/]*\)\/*$/{
  13916. s//\1/
  13917. q
  13918. }
  13919. /^X\/\(\/\/\)$/{
  13920. s//\1/
  13921. q
  13922. }
  13923. /^X\/\(\/\).*/{
  13924. s//\1/
  13925. q
  13926. }
  13927. s/.*/./; q'`
  13928. # Avoid depending upon Character Ranges.
  13929. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  13930. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  13931. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  13932. as_cr_digits='0123456789'
  13933. as_cr_alnum=$as_cr_Letters$as_cr_digits
  13934. ECHO_C= ECHO_N= ECHO_T=
  13935. case `echo -n x` in #(((((
  13936. -n*)
  13937. case `echo 'xy\c'` in
  13938. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  13939. xy) ECHO_C='\c';;
  13940. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  13941. ECHO_T=' ';;
  13942. esac;;
  13943. *)
  13944. ECHO_N='-n';;
  13945. esac
  13946. rm -f conf$$ conf$$.exe conf$$.file
  13947. if test -d conf$$.dir; then
  13948. rm -f conf$$.dir/conf$$.file
  13949. else
  13950. rm -f conf$$.dir
  13951. mkdir conf$$.dir 2>/dev/null
  13952. fi
  13953. if (echo >conf$$.file) 2>/dev/null; then
  13954. if ln -s conf$$.file conf$$ 2>/dev/null; then
  13955. as_ln_s='ln -s'
  13956. # ... but there are two gotchas:
  13957. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  13958. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  13959. # In both cases, we have to default to `cp -p'.
  13960. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  13961. as_ln_s='cp -p'
  13962. elif ln conf$$.file conf$$ 2>/dev/null; then
  13963. as_ln_s=ln
  13964. else
  13965. as_ln_s='cp -p'
  13966. fi
  13967. else
  13968. as_ln_s='cp -p'
  13969. fi
  13970. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  13971. rmdir conf$$.dir 2>/dev/null
  13972. # as_fn_mkdir_p
  13973. # -------------
  13974. # Create "$as_dir" as a directory, including parents if necessary.
  13975. as_fn_mkdir_p ()
  13976. {
  13977. case $as_dir in #(
  13978. -*) as_dir=./$as_dir;;
  13979. esac
  13980. test -d "$as_dir" || eval $as_mkdir_p || {
  13981. as_dirs=
  13982. while :; do
  13983. case $as_dir in #(
  13984. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  13985. *) as_qdir=$as_dir;;
  13986. esac
  13987. as_dirs="'$as_qdir' $as_dirs"
  13988. as_dir=`$as_dirname -- "$as_dir" ||
  13989. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13990. X"$as_dir" : 'X\(//\)[^/]' \| \
  13991. X"$as_dir" : 'X\(//\)$' \| \
  13992. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  13993. $as_echo X"$as_dir" |
  13994. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13995. s//\1/
  13996. q
  13997. }
  13998. /^X\(\/\/\)[^/].*/{
  13999. s//\1/
  14000. q
  14001. }
  14002. /^X\(\/\/\)$/{
  14003. s//\1/
  14004. q
  14005. }
  14006. /^X\(\/\).*/{
  14007. s//\1/
  14008. q
  14009. }
  14010. s/.*/./; q'`
  14011. test -d "$as_dir" && break
  14012. done
  14013. test -z "$as_dirs" || eval "mkdir $as_dirs"
  14014. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  14015. } # as_fn_mkdir_p
  14016. if mkdir -p . 2>/dev/null; then
  14017. as_mkdir_p='mkdir -p "$as_dir"'
  14018. else
  14019. test -d ./-p && rmdir ./-p
  14020. as_mkdir_p=false
  14021. fi
  14022. if test -x / >/dev/null 2>&1; then
  14023. as_test_x='test -x'
  14024. else
  14025. if ls -dL / >/dev/null 2>&1; then
  14026. as_ls_L_option=L
  14027. else
  14028. as_ls_L_option=
  14029. fi
  14030. as_test_x='
  14031. eval sh -c '\''
  14032. if test -d "$1"; then
  14033. test -d "$1/.";
  14034. else
  14035. case $1 in #(
  14036. -*)set "./$1";;
  14037. esac;
  14038. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  14039. ???[sx]*):;;*)false;;esac;fi
  14040. '\'' sh
  14041. '
  14042. fi
  14043. as_executable_p=$as_test_x
  14044. # Sed expression to map a string onto a valid CPP name.
  14045. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  14046. # Sed expression to map a string onto a valid variable name.
  14047. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  14048. exec 6>&1
  14049. ## ----------------------------------- ##
  14050. ## Main body of $CONFIG_STATUS script. ##
  14051. ## ----------------------------------- ##
  14052. _ASEOF
  14053. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  14054. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14055. # Save the log message, to keep $0 and so on meaningful, and to
  14056. # report actual input values of CONFIG_FILES etc. instead of their
  14057. # values after options handling.
  14058. ac_log="
  14059. This file was extended by aria2 $as_me 1.9.1, which was
  14060. generated by GNU Autoconf 2.65. Invocation command line was
  14061. CONFIG_FILES = $CONFIG_FILES
  14062. CONFIG_HEADERS = $CONFIG_HEADERS
  14063. CONFIG_LINKS = $CONFIG_LINKS
  14064. CONFIG_COMMANDS = $CONFIG_COMMANDS
  14065. $ $0 $@
  14066. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  14067. "
  14068. _ACEOF
  14069. case $ac_config_files in *"
  14070. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  14071. esac
  14072. case $ac_config_headers in *"
  14073. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  14074. esac
  14075. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14076. # Files that config.status was made for.
  14077. config_files="$ac_config_files"
  14078. config_headers="$ac_config_headers"
  14079. config_commands="$ac_config_commands"
  14080. _ACEOF
  14081. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14082. ac_cs_usage="\
  14083. \`$as_me' instantiates files and other configuration actions
  14084. from templates according to the current configuration. Unless the files
  14085. and actions are specified as TAGs, all are instantiated by default.
  14086. Usage: $0 [OPTION]... [TAG]...
  14087. -h, --help print this help, then exit
  14088. -V, --version print version number and configuration settings, then exit
  14089. --config print configuration, then exit
  14090. -q, --quiet, --silent
  14091. do not print progress messages
  14092. -d, --debug don't remove temporary files
  14093. --recheck update $as_me by reconfiguring in the same conditions
  14094. --file=FILE[:TEMPLATE]
  14095. instantiate the configuration file FILE
  14096. --header=FILE[:TEMPLATE]
  14097. instantiate the configuration header FILE
  14098. Configuration files:
  14099. $config_files
  14100. Configuration headers:
  14101. $config_headers
  14102. Configuration commands:
  14103. $config_commands
  14104. Report bugs to <t-tujikawa@users.sourceforge.net>.
  14105. aria2 home page: <http://aria2.sourceforge.net/>."
  14106. _ACEOF
  14107. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14108. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  14109. ac_cs_version="\\
  14110. aria2 config.status 1.9.1
  14111. configured by $0, generated by GNU Autoconf 2.65,
  14112. with options \\"\$ac_cs_config\\"
  14113. Copyright (C) 2009 Free Software Foundation, Inc.
  14114. This config.status script is free software; the Free Software Foundation
  14115. gives unlimited permission to copy, distribute and modify it."
  14116. ac_pwd='$ac_pwd'
  14117. srcdir='$srcdir'
  14118. INSTALL='$INSTALL'
  14119. MKDIR_P='$MKDIR_P'
  14120. AWK='$AWK'
  14121. test -n "\$AWK" || AWK=awk
  14122. _ACEOF
  14123. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14124. # The default lists apply if the user does not specify any file.
  14125. ac_need_defaults=:
  14126. while test $# != 0
  14127. do
  14128. case $1 in
  14129. --*=*)
  14130. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  14131. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  14132. ac_shift=:
  14133. ;;
  14134. *)
  14135. ac_option=$1
  14136. ac_optarg=$2
  14137. ac_shift=shift
  14138. ;;
  14139. esac
  14140. case $ac_option in
  14141. # Handling of the options.
  14142. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  14143. ac_cs_recheck=: ;;
  14144. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  14145. $as_echo "$ac_cs_version"; exit ;;
  14146. --config | --confi | --conf | --con | --co | --c )
  14147. $as_echo "$ac_cs_config"; exit ;;
  14148. --debug | --debu | --deb | --de | --d | -d )
  14149. debug=: ;;
  14150. --file | --fil | --fi | --f )
  14151. $ac_shift
  14152. case $ac_optarg in
  14153. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14154. esac
  14155. as_fn_append CONFIG_FILES " '$ac_optarg'"
  14156. ac_need_defaults=false;;
  14157. --header | --heade | --head | --hea )
  14158. $ac_shift
  14159. case $ac_optarg in
  14160. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14161. esac
  14162. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  14163. ac_need_defaults=false;;
  14164. --he | --h)
  14165. # Conflict between --help and --header
  14166. as_fn_error "ambiguous option: \`$1'
  14167. Try \`$0 --help' for more information.";;
  14168. --help | --hel | -h )
  14169. $as_echo "$ac_cs_usage"; exit ;;
  14170. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  14171. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  14172. ac_cs_silent=: ;;
  14173. # This is an error.
  14174. -*) as_fn_error "unrecognized option: \`$1'
  14175. Try \`$0 --help' for more information." ;;
  14176. *) as_fn_append ac_config_targets " $1"
  14177. ac_need_defaults=false ;;
  14178. esac
  14179. shift
  14180. done
  14181. ac_configure_extra_args=
  14182. if $ac_cs_silent; then
  14183. exec 6>/dev/null
  14184. ac_configure_extra_args="$ac_configure_extra_args --silent"
  14185. fi
  14186. _ACEOF
  14187. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14188. if \$ac_cs_recheck; then
  14189. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  14190. shift
  14191. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  14192. CONFIG_SHELL='$SHELL'
  14193. export CONFIG_SHELL
  14194. exec "\$@"
  14195. fi
  14196. _ACEOF
  14197. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14198. exec 5>>config.log
  14199. {
  14200. echo
  14201. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  14202. ## Running $as_me. ##
  14203. _ASBOX
  14204. $as_echo "$ac_log"
  14205. } >&5
  14206. _ACEOF
  14207. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14208. #
  14209. # INIT-COMMANDS
  14210. #
  14211. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  14212. # Capture the value of obsolete ALL_LINGUAS because we need it to compute
  14213. # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
  14214. # from automake < 1.5.
  14215. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
  14216. # Capture the value of LINGUAS because we need it to compute CATALOGS.
  14217. LINGUAS="${LINGUAS-%UNSET%}"
  14218. _ACEOF
  14219. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14220. # Handling of arguments.
  14221. for ac_config_target in $ac_config_targets
  14222. do
  14223. case $ac_config_target in
  14224. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  14225. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  14226. "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
  14227. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  14228. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  14229. "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  14230. "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
  14231. "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
  14232. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  14233. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  14234. *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  14235. esac
  14236. done
  14237. # If the user did not use the arguments to specify the items to instantiate,
  14238. # then the envvar interface is used. Set only those that are not.
  14239. # We use the long form for the default assignment because of an extremely
  14240. # bizarre bug on SunOS 4.1.3.
  14241. if $ac_need_defaults; then
  14242. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  14243. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  14244. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  14245. fi
  14246. # Have a temporary directory for convenience. Make it in the build tree
  14247. # simply because there is no reason against having it here, and in addition,
  14248. # creating and moving files from /tmp can sometimes cause problems.
  14249. # Hook for its removal unless debugging.
  14250. # Note that there is a small window in which the directory will not be cleaned:
  14251. # after its creation but before its name has been assigned to `$tmp'.
  14252. $debug ||
  14253. {
  14254. tmp=
  14255. trap 'exit_status=$?
  14256. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  14257. ' 0
  14258. trap 'as_fn_exit 1' 1 2 13 15
  14259. }
  14260. # Create a (secure) tmp directory for tmp files.
  14261. {
  14262. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  14263. test -n "$tmp" && test -d "$tmp"
  14264. } ||
  14265. {
  14266. tmp=./conf$$-$RANDOM
  14267. (umask 077 && mkdir "$tmp")
  14268. } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  14269. # Set up the scripts for CONFIG_FILES section.
  14270. # No need to generate them if there are no CONFIG_FILES.
  14271. # This happens for instance with `./config.status config.h'.
  14272. if test -n "$CONFIG_FILES"; then
  14273. ac_cr=`echo X | tr X '\015'`
  14274. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  14275. # But we know of no other shell where ac_cr would be empty at this
  14276. # point, so we can use a bashism as a fallback.
  14277. if test "x$ac_cr" = x; then
  14278. eval ac_cr=\$\'\\r\'
  14279. fi
  14280. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  14281. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  14282. ac_cs_awk_cr='\r'
  14283. else
  14284. ac_cs_awk_cr=$ac_cr
  14285. fi
  14286. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  14287. _ACEOF
  14288. {
  14289. echo "cat >conf$$subs.awk <<_ACEOF" &&
  14290. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  14291. echo "_ACEOF"
  14292. } >conf$$subs.sh ||
  14293. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  14294. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  14295. ac_delim='%!_!# '
  14296. for ac_last_try in false false false false false :; do
  14297. . ./conf$$subs.sh ||
  14298. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  14299. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  14300. if test $ac_delim_n = $ac_delim_num; then
  14301. break
  14302. elif $ac_last_try; then
  14303. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  14304. else
  14305. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  14306. fi
  14307. done
  14308. rm -f conf$$subs.sh
  14309. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14310. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  14311. _ACEOF
  14312. sed -n '
  14313. h
  14314. s/^/S["/; s/!.*/"]=/
  14315. p
  14316. g
  14317. s/^[^!]*!//
  14318. :repl
  14319. t repl
  14320. s/'"$ac_delim"'$//
  14321. t delim
  14322. :nl
  14323. h
  14324. s/\(.\{148\}\)..*/\1/
  14325. t more1
  14326. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  14327. p
  14328. n
  14329. b repl
  14330. :more1
  14331. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14332. p
  14333. g
  14334. s/.\{148\}//
  14335. t nl
  14336. :delim
  14337. h
  14338. s/\(.\{148\}\)..*/\1/
  14339. t more2
  14340. s/["\\]/\\&/g; s/^/"/; s/$/"/
  14341. p
  14342. b
  14343. :more2
  14344. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14345. p
  14346. g
  14347. s/.\{148\}//
  14348. t delim
  14349. ' <conf$$subs.awk | sed '
  14350. /^[^""]/{
  14351. N
  14352. s/\n//
  14353. }
  14354. ' >>$CONFIG_STATUS || ac_write_fail=1
  14355. rm -f conf$$subs.awk
  14356. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14357. _ACAWK
  14358. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  14359. for (key in S) S_is_set[key] = 1
  14360. FS = ""
  14361. }
  14362. {
  14363. line = $ 0
  14364. nfields = split(line, field, "@")
  14365. substed = 0
  14366. len = length(field[1])
  14367. for (i = 2; i < nfields; i++) {
  14368. key = field[i]
  14369. keylen = length(key)
  14370. if (S_is_set[key]) {
  14371. value = S[key]
  14372. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  14373. len += length(value) + length(field[++i])
  14374. substed = 1
  14375. } else
  14376. len += 1 + keylen
  14377. }
  14378. print line
  14379. }
  14380. _ACAWK
  14381. _ACEOF
  14382. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14383. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  14384. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  14385. else
  14386. cat
  14387. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  14388. || as_fn_error "could not setup config files machinery" "$LINENO" 5
  14389. _ACEOF
  14390. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  14391. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  14392. # trailing colons and then remove the whole line if VPATH becomes empty
  14393. # (actually we leave an empty line to preserve line numbers).
  14394. if test "x$srcdir" = x.; then
  14395. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  14396. s/:*\$(srcdir):*/:/
  14397. s/:*\${srcdir}:*/:/
  14398. s/:*@srcdir@:*/:/
  14399. s/^\([^=]*=[ ]*\):*/\1/
  14400. s/:*$//
  14401. s/^[^=]*=[ ]*$//
  14402. }'
  14403. fi
  14404. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14405. fi # test -n "$CONFIG_FILES"
  14406. # Set up the scripts for CONFIG_HEADERS section.
  14407. # No need to generate them if there are no CONFIG_HEADERS.
  14408. # This happens for instance with `./config.status Makefile'.
  14409. if test -n "$CONFIG_HEADERS"; then
  14410. cat >"$tmp/defines.awk" <<\_ACAWK ||
  14411. BEGIN {
  14412. _ACEOF
  14413. # Transform confdefs.h into an awk script `defines.awk', embedded as
  14414. # here-document in config.status, that substitutes the proper values into
  14415. # config.h.in to produce config.h.
  14416. # Create a delimiter string that does not exist in confdefs.h, to ease
  14417. # handling of long lines.
  14418. ac_delim='%!_!# '
  14419. for ac_last_try in false false :; do
  14420. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  14421. if test -z "$ac_t"; then
  14422. break
  14423. elif $ac_last_try; then
  14424. as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  14425. else
  14426. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  14427. fi
  14428. done
  14429. # For the awk script, D is an array of macro values keyed by name,
  14430. # likewise P contains macro parameters if any. Preserve backslash
  14431. # newline sequences.
  14432. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  14433. sed -n '
  14434. s/.\{148\}/&'"$ac_delim"'/g
  14435. t rset
  14436. :rset
  14437. s/^[ ]*#[ ]*define[ ][ ]*/ /
  14438. t def
  14439. d
  14440. :def
  14441. s/\\$//
  14442. t bsnl
  14443. s/["\\]/\\&/g
  14444. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  14445. D["\1"]=" \3"/p
  14446. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  14447. d
  14448. :bsnl
  14449. s/["\\]/\\&/g
  14450. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  14451. D["\1"]=" \3\\\\\\n"\\/p
  14452. t cont
  14453. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  14454. t cont
  14455. d
  14456. :cont
  14457. n
  14458. s/.\{148\}/&'"$ac_delim"'/g
  14459. t clear
  14460. :clear
  14461. s/\\$//
  14462. t bsnlc
  14463. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  14464. d
  14465. :bsnlc
  14466. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  14467. b cont
  14468. ' <confdefs.h | sed '
  14469. s/'"$ac_delim"'/"\\\
  14470. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  14471. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14472. for (key in D) D_is_set[key] = 1
  14473. FS = ""
  14474. }
  14475. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  14476. line = \$ 0
  14477. split(line, arg, " ")
  14478. if (arg[1] == "#") {
  14479. defundef = arg[2]
  14480. mac1 = arg[3]
  14481. } else {
  14482. defundef = substr(arg[1], 2)
  14483. mac1 = arg[2]
  14484. }
  14485. split(mac1, mac2, "(") #)
  14486. macro = mac2[1]
  14487. prefix = substr(line, 1, index(line, defundef) - 1)
  14488. if (D_is_set[macro]) {
  14489. # Preserve the white space surrounding the "#".
  14490. print prefix "define", macro P[macro] D[macro]
  14491. next
  14492. } else {
  14493. # Replace #undef with comments. This is necessary, for example,
  14494. # in the case of _POSIX_SOURCE, which is predefined and required
  14495. # on some systems where configure will not decide to define it.
  14496. if (defundef == "undef") {
  14497. print "/*", prefix defundef, macro, "*/"
  14498. next
  14499. }
  14500. }
  14501. }
  14502. { print }
  14503. _ACAWK
  14504. _ACEOF
  14505. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14506. as_fn_error "could not setup config headers machinery" "$LINENO" 5
  14507. fi # test -n "$CONFIG_HEADERS"
  14508. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  14509. shift
  14510. for ac_tag
  14511. do
  14512. case $ac_tag in
  14513. :[FHLC]) ac_mode=$ac_tag; continue;;
  14514. esac
  14515. case $ac_mode$ac_tag in
  14516. :[FHL]*:*);;
  14517. :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  14518. :[FH]-) ac_tag=-:-;;
  14519. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  14520. esac
  14521. ac_save_IFS=$IFS
  14522. IFS=:
  14523. set x $ac_tag
  14524. IFS=$ac_save_IFS
  14525. shift
  14526. ac_file=$1
  14527. shift
  14528. case $ac_mode in
  14529. :L) ac_source=$1;;
  14530. :[FH])
  14531. ac_file_inputs=
  14532. for ac_f
  14533. do
  14534. case $ac_f in
  14535. -) ac_f="$tmp/stdin";;
  14536. *) # Look for the file first in the build tree, then in the source tree
  14537. # (if the path is not absolute). The absolute path cannot be DOS-style,
  14538. # because $ac_f cannot contain `:'.
  14539. test -f "$ac_f" ||
  14540. case $ac_f in
  14541. [\\/$]*) false;;
  14542. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  14543. esac ||
  14544. as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  14545. esac
  14546. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  14547. as_fn_append ac_file_inputs " '$ac_f'"
  14548. done
  14549. # Let's still pretend it is `configure' which instantiates (i.e., don't
  14550. # use $as_me), people would be surprised to read:
  14551. # /* config.h. Generated by config.status. */
  14552. configure_input='Generated from '`
  14553. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  14554. `' by configure.'
  14555. if test x"$ac_file" != x-; then
  14556. configure_input="$ac_file. $configure_input"
  14557. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  14558. $as_echo "$as_me: creating $ac_file" >&6;}
  14559. fi
  14560. # Neutralize special characters interpreted by sed in replacement strings.
  14561. case $configure_input in #(
  14562. *\&* | *\|* | *\\* )
  14563. ac_sed_conf_input=`$as_echo "$configure_input" |
  14564. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  14565. *) ac_sed_conf_input=$configure_input;;
  14566. esac
  14567. case $ac_tag in
  14568. *:-:* | *:-) cat >"$tmp/stdin" \
  14569. || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  14570. esac
  14571. ;;
  14572. esac
  14573. ac_dir=`$as_dirname -- "$ac_file" ||
  14574. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14575. X"$ac_file" : 'X\(//\)[^/]' \| \
  14576. X"$ac_file" : 'X\(//\)$' \| \
  14577. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  14578. $as_echo X"$ac_file" |
  14579. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14580. s//\1/
  14581. q
  14582. }
  14583. /^X\(\/\/\)[^/].*/{
  14584. s//\1/
  14585. q
  14586. }
  14587. /^X\(\/\/\)$/{
  14588. s//\1/
  14589. q
  14590. }
  14591. /^X\(\/\).*/{
  14592. s//\1/
  14593. q
  14594. }
  14595. s/.*/./; q'`
  14596. as_dir="$ac_dir"; as_fn_mkdir_p
  14597. ac_builddir=.
  14598. case "$ac_dir" in
  14599. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14600. *)
  14601. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  14602. # A ".." for each directory in $ac_dir_suffix.
  14603. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  14604. case $ac_top_builddir_sub in
  14605. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14606. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  14607. esac ;;
  14608. esac
  14609. ac_abs_top_builddir=$ac_pwd
  14610. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  14611. # for backward compatibility:
  14612. ac_top_builddir=$ac_top_build_prefix
  14613. case $srcdir in
  14614. .) # We are building in place.
  14615. ac_srcdir=.
  14616. ac_top_srcdir=$ac_top_builddir_sub
  14617. ac_abs_top_srcdir=$ac_pwd ;;
  14618. [\\/]* | ?:[\\/]* ) # Absolute name.
  14619. ac_srcdir=$srcdir$ac_dir_suffix;
  14620. ac_top_srcdir=$srcdir
  14621. ac_abs_top_srcdir=$srcdir ;;
  14622. *) # Relative name.
  14623. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  14624. ac_top_srcdir=$ac_top_build_prefix$srcdir
  14625. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  14626. esac
  14627. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  14628. case $ac_mode in
  14629. :F)
  14630. #
  14631. # CONFIG_FILE
  14632. #
  14633. case $INSTALL in
  14634. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  14635. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  14636. esac
  14637. ac_MKDIR_P=$MKDIR_P
  14638. case $MKDIR_P in
  14639. [\\/$]* | ?:[\\/]* ) ;;
  14640. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  14641. esac
  14642. _ACEOF
  14643. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14644. # If the template does not know about datarootdir, expand it.
  14645. # FIXME: This hack should be removed a few years after 2.60.
  14646. ac_datarootdir_hack=; ac_datarootdir_seen=
  14647. ac_sed_dataroot='
  14648. /datarootdir/ {
  14649. p
  14650. q
  14651. }
  14652. /@datadir@/p
  14653. /@docdir@/p
  14654. /@infodir@/p
  14655. /@localedir@/p
  14656. /@mandir@/p'
  14657. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  14658. *datarootdir*) ac_datarootdir_seen=yes;;
  14659. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  14660. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  14661. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  14662. _ACEOF
  14663. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14664. ac_datarootdir_hack='
  14665. s&@datadir@&$datadir&g
  14666. s&@docdir@&$docdir&g
  14667. s&@infodir@&$infodir&g
  14668. s&@localedir@&$localedir&g
  14669. s&@mandir@&$mandir&g
  14670. s&\\\${datarootdir}&$datarootdir&g' ;;
  14671. esac
  14672. _ACEOF
  14673. # Neutralize VPATH when `$srcdir' = `.'.
  14674. # Shell code in configure.ac might set extrasub.
  14675. # FIXME: do we really want to maintain this feature?
  14676. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14677. ac_sed_extra="$ac_vpsub
  14678. $extrasub
  14679. _ACEOF
  14680. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14681. :t
  14682. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  14683. s|@configure_input@|$ac_sed_conf_input|;t t
  14684. s&@top_builddir@&$ac_top_builddir_sub&;t t
  14685. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  14686. s&@srcdir@&$ac_srcdir&;t t
  14687. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  14688. s&@top_srcdir@&$ac_top_srcdir&;t t
  14689. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  14690. s&@builddir@&$ac_builddir&;t t
  14691. s&@abs_builddir@&$ac_abs_builddir&;t t
  14692. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  14693. s&@INSTALL@&$ac_INSTALL&;t t
  14694. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  14695. $ac_datarootdir_hack
  14696. "
  14697. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  14698. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14699. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  14700. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  14701. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  14702. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14703. which seems to be undefined. Please make sure it is defined." >&5
  14704. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14705. which seems to be undefined. Please make sure it is defined." >&2;}
  14706. rm -f "$tmp/stdin"
  14707. case $ac_file in
  14708. -) cat "$tmp/out" && rm -f "$tmp/out";;
  14709. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  14710. esac \
  14711. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14712. ;;
  14713. :H)
  14714. #
  14715. # CONFIG_HEADER
  14716. #
  14717. if test x"$ac_file" != x-; then
  14718. {
  14719. $as_echo "/* $configure_input */" \
  14720. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  14721. } >"$tmp/config.h" \
  14722. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14723. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  14724. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  14725. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  14726. else
  14727. rm -f "$ac_file"
  14728. mv "$tmp/config.h" "$ac_file" \
  14729. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14730. fi
  14731. else
  14732. $as_echo "/* $configure_input */" \
  14733. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  14734. || as_fn_error "could not create -" "$LINENO" 5
  14735. fi
  14736. # Compute "$ac_file"'s index in $config_headers.
  14737. _am_arg="$ac_file"
  14738. _am_stamp_count=1
  14739. for _am_header in $config_headers :; do
  14740. case $_am_header in
  14741. $_am_arg | $_am_arg:* )
  14742. break ;;
  14743. * )
  14744. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  14745. esac
  14746. done
  14747. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  14748. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14749. X"$_am_arg" : 'X\(//\)[^/]' \| \
  14750. X"$_am_arg" : 'X\(//\)$' \| \
  14751. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  14752. $as_echo X"$_am_arg" |
  14753. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14754. s//\1/
  14755. q
  14756. }
  14757. /^X\(\/\/\)[^/].*/{
  14758. s//\1/
  14759. q
  14760. }
  14761. /^X\(\/\/\)$/{
  14762. s//\1/
  14763. q
  14764. }
  14765. /^X\(\/\).*/{
  14766. s//\1/
  14767. q
  14768. }
  14769. s/.*/./; q'`/stamp-h$_am_stamp_count
  14770. ;;
  14771. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  14772. $as_echo "$as_me: executing $ac_file commands" >&6;}
  14773. ;;
  14774. esac
  14775. case $ac_file$ac_mode in
  14776. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  14777. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  14778. # are listed without --file. Let's play safe and only enable the eval
  14779. # if we detect the quoting.
  14780. case $CONFIG_FILES in
  14781. *\'*) eval set x "$CONFIG_FILES" ;;
  14782. *) set x $CONFIG_FILES ;;
  14783. esac
  14784. shift
  14785. for mf
  14786. do
  14787. # Strip MF so we end up with the name of the file.
  14788. mf=`echo "$mf" | sed -e 's/:.*$//'`
  14789. # Check whether this is an Automake generated Makefile or not.
  14790. # We used to match only the files named `Makefile.in', but
  14791. # some people rename them; so instead we look at the file content.
  14792. # Grep'ing the first line is not enough: some people post-process
  14793. # each Makefile.in and add a new line on top of each file to say so.
  14794. # Grep'ing the whole file is not good either: AIX grep has a line
  14795. # limit of 2048, but all sed's we know have understand at least 4000.
  14796. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  14797. dirpart=`$as_dirname -- "$mf" ||
  14798. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14799. X"$mf" : 'X\(//\)[^/]' \| \
  14800. X"$mf" : 'X\(//\)$' \| \
  14801. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  14802. $as_echo X"$mf" |
  14803. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14804. s//\1/
  14805. q
  14806. }
  14807. /^X\(\/\/\)[^/].*/{
  14808. s//\1/
  14809. q
  14810. }
  14811. /^X\(\/\/\)$/{
  14812. s//\1/
  14813. q
  14814. }
  14815. /^X\(\/\).*/{
  14816. s//\1/
  14817. q
  14818. }
  14819. s/.*/./; q'`
  14820. else
  14821. continue
  14822. fi
  14823. # Extract the definition of DEPDIR, am__include, and am__quote
  14824. # from the Makefile without running `make'.
  14825. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  14826. test -z "$DEPDIR" && continue
  14827. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  14828. test -z "am__include" && continue
  14829. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  14830. # When using ansi2knr, U may be empty or an underscore; expand it
  14831. U=`sed -n 's/^U = //p' < "$mf"`
  14832. # Find all dependency output files, they are included files with
  14833. # $(DEPDIR) in their names. We invoke sed twice because it is the
  14834. # simplest approach to changing $(DEPDIR) to its actual value in the
  14835. # expansion.
  14836. for file in `sed -n "
  14837. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  14838. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  14839. # Make sure the directory exists.
  14840. test -f "$dirpart/$file" && continue
  14841. fdir=`$as_dirname -- "$file" ||
  14842. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14843. X"$file" : 'X\(//\)[^/]' \| \
  14844. X"$file" : 'X\(//\)$' \| \
  14845. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  14846. $as_echo X"$file" |
  14847. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14848. s//\1/
  14849. q
  14850. }
  14851. /^X\(\/\/\)[^/].*/{
  14852. s//\1/
  14853. q
  14854. }
  14855. /^X\(\/\/\)$/{
  14856. s//\1/
  14857. q
  14858. }
  14859. /^X\(\/\).*/{
  14860. s//\1/
  14861. q
  14862. }
  14863. s/.*/./; q'`
  14864. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  14865. # echo "creating $dirpart/$file"
  14866. echo '# dummy' > "$dirpart/$file"
  14867. done
  14868. done
  14869. }
  14870. ;;
  14871. "po-directories":C)
  14872. for ac_file in $CONFIG_FILES; do
  14873. # Support "outfile[:infile[:infile...]]"
  14874. case "$ac_file" in
  14875. *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  14876. esac
  14877. # PO directories have a Makefile.in generated from Makefile.in.in.
  14878. case "$ac_file" in */Makefile.in)
  14879. # Adjust a relative srcdir.
  14880. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  14881. ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
  14882. ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  14883. # In autoconf-2.13 it is called $ac_given_srcdir.
  14884. # In autoconf-2.50 it is called $srcdir.
  14885. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  14886. case "$ac_given_srcdir" in
  14887. .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  14888. /*) top_srcdir="$ac_given_srcdir" ;;
  14889. *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
  14890. esac
  14891. # Treat a directory as a PO directory if and only if it has a
  14892. # POTFILES.in file. This allows packages to have multiple PO
  14893. # directories under different names or in different locations.
  14894. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
  14895. rm -f "$ac_dir/POTFILES"
  14896. test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
  14897. cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
  14898. POMAKEFILEDEPS="POTFILES.in"
  14899. # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
  14900. # on $ac_dir but don't depend on user-specified configuration
  14901. # parameters.
  14902. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  14903. # The LINGUAS file contains the set of available languages.
  14904. if test -n "$OBSOLETE_ALL_LINGUAS"; then
  14905. test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
  14906. fi
  14907. ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  14908. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  14909. eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  14910. POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  14911. else
  14912. # The set of available languages was given in configure.in.
  14913. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  14914. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
  14915. fi
  14916. # Compute POFILES
  14917. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
  14918. # Compute UPDATEPOFILES
  14919. # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
  14920. # Compute DUMMYPOFILES
  14921. # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
  14922. # Compute GMOFILES
  14923. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
  14924. case "$ac_given_srcdir" in
  14925. .) srcdirpre= ;;
  14926. *) srcdirpre='$(srcdir)/' ;;
  14927. esac
  14928. POFILES=
  14929. UPDATEPOFILES=
  14930. DUMMYPOFILES=
  14931. GMOFILES=
  14932. for lang in $ALL_LINGUAS; do
  14933. POFILES="$POFILES $srcdirpre$lang.po"
  14934. UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  14935. DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  14936. GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  14937. done
  14938. # CATALOGS depends on both $ac_dir and the user's LINGUAS
  14939. # environment variable.
  14940. INST_LINGUAS=
  14941. if test -n "$ALL_LINGUAS"; then
  14942. for presentlang in $ALL_LINGUAS; do
  14943. useit=no
  14944. if test "%UNSET%" != "$LINGUAS"; then
  14945. desiredlanguages="$LINGUAS"
  14946. else
  14947. desiredlanguages="$ALL_LINGUAS"
  14948. fi
  14949. for desiredlang in $desiredlanguages; do
  14950. # Use the presentlang catalog if desiredlang is
  14951. # a. equal to presentlang, or
  14952. # b. a variant of presentlang (because in this case,
  14953. # presentlang can be used as a fallback for messages
  14954. # which are not translated in the desiredlang catalog).
  14955. case "$desiredlang" in
  14956. "$presentlang"*) useit=yes;;
  14957. esac
  14958. done
  14959. if test $useit = yes; then
  14960. INST_LINGUAS="$INST_LINGUAS $presentlang"
  14961. fi
  14962. done
  14963. fi
  14964. CATALOGS=
  14965. if test -n "$INST_LINGUAS"; then
  14966. for lang in $INST_LINGUAS; do
  14967. CATALOGS="$CATALOGS $lang.gmo"
  14968. done
  14969. fi
  14970. test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
  14971. 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"
  14972. for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
  14973. if test -f "$f"; then
  14974. case "$f" in
  14975. *.orig | *.bak | *~) ;;
  14976. *) cat "$f" >> "$ac_dir/Makefile" ;;
  14977. esac
  14978. fi
  14979. done
  14980. fi
  14981. ;;
  14982. esac
  14983. done ;;
  14984. esac
  14985. done # for ac_tag
  14986. as_fn_exit 0
  14987. _ACEOF
  14988. ac_clean_files=$ac_clean_files_save
  14989. test $ac_write_fail = 0 ||
  14990. as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  14991. # configure is writing to config.log, and then calls config.status.
  14992. # config.status does its own redirection, appending to config.log.
  14993. # Unfortunately, on DOS this fails, as config.log is still kept open
  14994. # by configure, so config.status won't be able to write to it; its
  14995. # output is simply discarded. So we exec the FD to /dev/null,
  14996. # effectively closing config.log, so it can be properly (re)opened and
  14997. # appended to by config.status. When coming back to configure, we
  14998. # need to make the FD available again.
  14999. if test "$no_create" != yes; then
  15000. ac_cs_success=:
  15001. ac_config_status_args=
  15002. test "$silent" = yes &&
  15003. ac_config_status_args="$ac_config_status_args --quiet"
  15004. exec 5>/dev/null
  15005. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  15006. exec 5>>config.log
  15007. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  15008. # would make configure fail if this is the last instruction.
  15009. $ac_cs_success || as_fn_exit $?
  15010. fi
  15011. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  15012. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  15013. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  15014. fi
  15015. echo " "
  15016. echo "Build: $build"
  15017. echo "Target: $target"
  15018. echo "Install prefix: $prefix"
  15019. echo "CXXFLAGS: $CXXFLAGS"
  15020. echo "CFLAGS: $CFLAGS"
  15021. echo "CPPFLAGS: $CPPFLAGS"
  15022. echo "LDFLAGS: $LDFLAGS"
  15023. echo "LIBS: $LIBS"
  15024. echo "SQLite3: $have_sqlite3"
  15025. echo "GnuTLS: $have_libgnutls"
  15026. echo "OpenSSL: $have_openssl"
  15027. echo "CA Bundle: $ca_bundle"
  15028. echo "LibXML2: $have_libxml2"
  15029. echo "LibExpat: $have_libexpat"
  15030. echo "LibCares: $have_libcares"
  15031. echo "Libz: $have_libz"
  15032. echo "Epoll: $have_epoll"
  15033. echo "Bittorrent: $enable_bittorrent"
  15034. echo "Metalink: $enable_metalink"
  15035. echo "XML-RPC: $enable_xml_rpc"