configure 458 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.64 for aria2 1.6.1.
  4. #
  5. # Report bugs to <t-tujikawa@users.sourceforge.net>.
  6. #
  7. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  8. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
  9. # Foundation, Inc.
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in #(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. case $0 in #((
  86. *[\\/]* ) as_myself=$0 ;;
  87. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  88. for as_dir in $PATH
  89. do
  90. IFS=$as_save_IFS
  91. test -z "$as_dir" && as_dir=.
  92. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  93. done
  94. IFS=$as_save_IFS
  95. ;;
  96. esac
  97. # We did not find ourselves, most probably we were run as `sh COMMAND'
  98. # in which case we are not to be found in the path.
  99. if test "x$as_myself" = x; then
  100. as_myself=$0
  101. fi
  102. if test ! -f "$as_myself"; then
  103. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  104. exit 1
  105. fi
  106. # Unset variables that we do not need and which cause bugs (e.g. in
  107. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  108. # suppresses any "Segmentation fault" message there. '((' could
  109. # trigger a bug in pdksh 5.2.14.
  110. for as_var in BASH_ENV ENV MAIL MAILPATH
  111. do eval test x\${$as_var+set} = xset \
  112. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  113. done
  114. PS1='$ '
  115. PS2='> '
  116. PS4='+ '
  117. # NLS nuisances.
  118. LC_ALL=C
  119. export LC_ALL
  120. LANGUAGE=C
  121. export LANGUAGE
  122. # CDPATH.
  123. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  124. if test "x$CONFIG_SHELL" = x; then
  125. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  126. emulate sh
  127. NULLCMD=:
  128. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  129. # is contrary to our usage. Disable this feature.
  130. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  131. setopt NO_GLOB_SUBST
  132. else
  133. case \`(set -o) 2>/dev/null\` in #(
  134. *posix*) :
  135. set -o posix ;; #(
  136. *) :
  137. ;;
  138. esac
  139. fi
  140. "
  141. as_required="as_fn_return () { (exit \$1); }
  142. as_fn_success () { as_fn_return 0; }
  143. as_fn_failure () { as_fn_return 1; }
  144. as_fn_ret_success () { return 0; }
  145. as_fn_ret_failure () { return 1; }
  146. exitcode=0
  147. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  148. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  149. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  150. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  151. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  152. else
  153. exitcode=1; echo positional parameters were not saved.
  154. fi
  155. test x\$exitcode = x0 || exit 1"
  156. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  157. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  158. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  159. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  160. test \$(( 1 + 1 )) = 2 || exit 1"
  161. if (eval "$as_required") 2>/dev/null; then :
  162. as_have_required=yes
  163. else
  164. as_have_required=no
  165. fi
  166. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  167. else
  168. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  169. as_found=false
  170. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  171. do
  172. IFS=$as_save_IFS
  173. test -z "$as_dir" && as_dir=.
  174. as_found=:
  175. case $as_dir in #(
  176. /*)
  177. for as_base in sh bash ksh sh5; do
  178. # Try only shells that exist, to save several forks.
  179. as_shell=$as_dir/$as_base
  180. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  181. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  182. CONFIG_SHELL=$as_shell as_have_required=yes
  183. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  184. break 2
  185. fi
  186. fi
  187. done;;
  188. esac
  189. as_found=false
  190. done
  191. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  192. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  193. CONFIG_SHELL=$SHELL as_have_required=yes
  194. fi; }
  195. IFS=$as_save_IFS
  196. if test "x$CONFIG_SHELL" != x; then :
  197. # We cannot yet assume a decent shell, so we have to provide a
  198. # neutralization value for shells without unset; and this also
  199. # works around shells that cannot unset nonexistent variables.
  200. BASH_ENV=/dev/null
  201. ENV=/dev/null
  202. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  203. export CONFIG_SHELL
  204. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  205. fi
  206. if test x$as_have_required = xno; then :
  207. $as_echo "$0: This script requires a shell more modern than all"
  208. $as_echo "$0: the shells that I found on your system."
  209. if test x${ZSH_VERSION+set} = xset ; then
  210. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  211. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  212. else
  213. $as_echo "$0: Please tell bug-autoconf@gnu.org and
  214. $0: t-tujikawa@users.sourceforge.net about your system,
  215. $0: including any error possibly output before this
  216. $0: message. Then install a modern shell, or manually run
  217. $0: the script under such a shell if you do have one."
  218. fi
  219. exit 1
  220. fi
  221. fi
  222. fi
  223. SHELL=${CONFIG_SHELL-/bin/sh}
  224. export SHELL
  225. # Unset more variables known to interfere with behavior of common tools.
  226. CLICOLOR_FORCE= GREP_OPTIONS=
  227. unset CLICOLOR_FORCE GREP_OPTIONS
  228. ## --------------------- ##
  229. ## M4sh Shell Functions. ##
  230. ## --------------------- ##
  231. # as_fn_unset VAR
  232. # ---------------
  233. # Portably unset VAR.
  234. as_fn_unset ()
  235. {
  236. { eval $1=; unset $1;}
  237. }
  238. as_unset=as_fn_unset
  239. # as_fn_set_status STATUS
  240. # -----------------------
  241. # Set $? to STATUS, without forking.
  242. as_fn_set_status ()
  243. {
  244. return $1
  245. } # as_fn_set_status
  246. # as_fn_exit STATUS
  247. # -----------------
  248. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  249. as_fn_exit ()
  250. {
  251. set +e
  252. as_fn_set_status $1
  253. exit $1
  254. } # as_fn_exit
  255. # as_fn_mkdir_p
  256. # -------------
  257. # Create "$as_dir" as a directory, including parents if necessary.
  258. as_fn_mkdir_p ()
  259. {
  260. case $as_dir in #(
  261. -*) as_dir=./$as_dir;;
  262. esac
  263. test -d "$as_dir" || eval $as_mkdir_p || {
  264. as_dirs=
  265. while :; do
  266. case $as_dir in #(
  267. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  268. *) as_qdir=$as_dir;;
  269. esac
  270. as_dirs="'$as_qdir' $as_dirs"
  271. as_dir=`$as_dirname -- "$as_dir" ||
  272. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  273. X"$as_dir" : 'X\(//\)[^/]' \| \
  274. X"$as_dir" : 'X\(//\)$' \| \
  275. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  276. $as_echo X"$as_dir" |
  277. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  278. s//\1/
  279. q
  280. }
  281. /^X\(\/\/\)[^/].*/{
  282. s//\1/
  283. q
  284. }
  285. /^X\(\/\/\)$/{
  286. s//\1/
  287. q
  288. }
  289. /^X\(\/\).*/{
  290. s//\1/
  291. q
  292. }
  293. s/.*/./; q'`
  294. test -d "$as_dir" && break
  295. done
  296. test -z "$as_dirs" || eval "mkdir $as_dirs"
  297. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  298. } # as_fn_mkdir_p
  299. # as_fn_append VAR VALUE
  300. # ----------------------
  301. # Append the text in VALUE to the end of the definition contained in VAR. Take
  302. # advantage of any shell optimizations that allow amortized linear growth over
  303. # repeated appends, instead of the typical quadratic growth present in naive
  304. # implementations.
  305. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  306. eval 'as_fn_append ()
  307. {
  308. eval $1+=\$2
  309. }'
  310. else
  311. as_fn_append ()
  312. {
  313. eval $1=\$$1\$2
  314. }
  315. fi # as_fn_append
  316. # as_fn_arith ARG...
  317. # ------------------
  318. # Perform arithmetic evaluation on the ARGs, and store the result in the
  319. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  320. # must be portable across $(()) and expr.
  321. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  322. eval 'as_fn_arith ()
  323. {
  324. as_val=$(( $* ))
  325. }'
  326. else
  327. as_fn_arith ()
  328. {
  329. as_val=`expr "$@" || test $? -eq 1`
  330. }
  331. fi # as_fn_arith
  332. # as_fn_error ERROR [LINENO LOG_FD]
  333. # ---------------------------------
  334. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  335. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  336. # script with status $?, using 1 if that was 0.
  337. as_fn_error ()
  338. {
  339. as_status=$?; test $as_status -eq 0 && as_status=1
  340. if test "$3"; then
  341. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  342. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  343. fi
  344. $as_echo "$as_me: error: $1" >&2
  345. as_fn_exit $as_status
  346. } # as_fn_error
  347. if expr a : '\(a\)' >/dev/null 2>&1 &&
  348. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  349. as_expr=expr
  350. else
  351. as_expr=false
  352. fi
  353. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  354. as_basename=basename
  355. else
  356. as_basename=false
  357. fi
  358. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  359. as_dirname=dirname
  360. else
  361. as_dirname=false
  362. fi
  363. as_me=`$as_basename -- "$0" ||
  364. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  365. X"$0" : 'X\(//\)$' \| \
  366. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  367. $as_echo X/"$0" |
  368. sed '/^.*\/\([^/][^/]*\)\/*$/{
  369. s//\1/
  370. q
  371. }
  372. /^X\/\(\/\/\)$/{
  373. s//\1/
  374. q
  375. }
  376. /^X\/\(\/\).*/{
  377. s//\1/
  378. q
  379. }
  380. s/.*/./; q'`
  381. # Avoid depending upon Character Ranges.
  382. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  383. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  384. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  385. as_cr_digits='0123456789'
  386. as_cr_alnum=$as_cr_Letters$as_cr_digits
  387. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  388. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  389. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  390. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  391. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  392. sed -n '
  393. p
  394. /[$]LINENO/=
  395. ' <$as_myself |
  396. sed '
  397. s/[$]LINENO.*/&-/
  398. t lineno
  399. b
  400. :lineno
  401. N
  402. :loop
  403. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  404. t loop
  405. s/-\n.*//
  406. ' >$as_me.lineno &&
  407. chmod +x "$as_me.lineno" ||
  408. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  409. # Don't try to exec as it changes $[0], causing all sort of problems
  410. # (the dirname of $[0] is not the place where we might find the
  411. # original and so on. Autoconf is especially sensitive to this).
  412. . "./$as_me.lineno"
  413. # Exit status is that of the last command.
  414. exit
  415. }
  416. ECHO_C= ECHO_N= ECHO_T=
  417. case `echo -n x` in #(((((
  418. -n*)
  419. case `echo 'xy\c'` in
  420. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  421. xy) ECHO_C='\c';;
  422. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  423. ECHO_T=' ';;
  424. esac;;
  425. *)
  426. ECHO_N='-n';;
  427. esac
  428. rm -f conf$$ conf$$.exe conf$$.file
  429. if test -d conf$$.dir; then
  430. rm -f conf$$.dir/conf$$.file
  431. else
  432. rm -f conf$$.dir
  433. mkdir conf$$.dir 2>/dev/null
  434. fi
  435. if (echo >conf$$.file) 2>/dev/null; then
  436. if ln -s conf$$.file conf$$ 2>/dev/null; then
  437. as_ln_s='ln -s'
  438. # ... but there are two gotchas:
  439. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  440. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  441. # In both cases, we have to default to `cp -p'.
  442. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  443. as_ln_s='cp -p'
  444. elif ln conf$$.file conf$$ 2>/dev/null; then
  445. as_ln_s=ln
  446. else
  447. as_ln_s='cp -p'
  448. fi
  449. else
  450. as_ln_s='cp -p'
  451. fi
  452. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  453. rmdir conf$$.dir 2>/dev/null
  454. if mkdir -p . 2>/dev/null; then
  455. as_mkdir_p='mkdir -p "$as_dir"'
  456. else
  457. test -d ./-p && rmdir ./-p
  458. as_mkdir_p=false
  459. fi
  460. if test -x / >/dev/null 2>&1; then
  461. as_test_x='test -x'
  462. else
  463. if ls -dL / >/dev/null 2>&1; then
  464. as_ls_L_option=L
  465. else
  466. as_ls_L_option=
  467. fi
  468. as_test_x='
  469. eval sh -c '\''
  470. if test -d "$1"; then
  471. test -d "$1/.";
  472. else
  473. case $1 in #(
  474. -*)set "./$1";;
  475. esac;
  476. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  477. ???[sx]*):;;*)false;;esac;fi
  478. '\'' sh
  479. '
  480. fi
  481. as_executable_p=$as_test_x
  482. # Sed expression to map a string onto a valid CPP name.
  483. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  484. # Sed expression to map a string onto a valid variable name.
  485. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  486. exec 7<&0 </dev/null 6>&1
  487. # Name of the host.
  488. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  489. # so uname gets run too.
  490. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  491. #
  492. # Initializations.
  493. #
  494. ac_default_prefix=/usr/local
  495. ac_clean_files=
  496. ac_config_libobj_dir=.
  497. LIBOBJS=
  498. cross_compiling=no
  499. subdirs=
  500. MFLAGS=
  501. MAKEFLAGS=
  502. # Identity of this package.
  503. PACKAGE_NAME='aria2'
  504. PACKAGE_TARNAME='aria2'
  505. PACKAGE_VERSION='1.6.1'
  506. PACKAGE_STRING='aria2 1.6.1'
  507. PACKAGE_BUGREPORT='t-tujikawa@users.sourceforge.net'
  508. PACKAGE_URL='http://aria2.sourceforge.net/'
  509. ac_unique_file="src/a2io.h"
  510. # Factoring default headers for most tests.
  511. ac_includes_default="\
  512. #include <stdio.h>
  513. #ifdef HAVE_SYS_TYPES_H
  514. # include <sys/types.h>
  515. #endif
  516. #ifdef HAVE_SYS_STAT_H
  517. # include <sys/stat.h>
  518. #endif
  519. #ifdef STDC_HEADERS
  520. # include <stdlib.h>
  521. # include <stddef.h>
  522. #else
  523. # ifdef HAVE_STDLIB_H
  524. # include <stdlib.h>
  525. # endif
  526. #endif
  527. #ifdef HAVE_STRING_H
  528. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  529. # include <memory.h>
  530. # endif
  531. # include <string.h>
  532. #endif
  533. #ifdef HAVE_STRINGS_H
  534. # include <strings.h>
  535. #endif
  536. #ifdef HAVE_INTTYPES_H
  537. # include <inttypes.h>
  538. #endif
  539. #ifdef HAVE_STDINT_H
  540. # include <stdint.h>
  541. #endif
  542. #ifdef HAVE_UNISTD_H
  543. # include <unistd.h>
  544. #endif"
  545. gt_needs=
  546. ac_header_list=
  547. ac_func_list=
  548. ac_subst_vars='am__EXEEXT_FALSE
  549. am__EXEEXT_TRUE
  550. LTLIBOBJS
  551. HAVE_DAEMON_FALSE
  552. HAVE_DAEMON_TRUE
  553. HAVE_TIMEGM_FALSE
  554. HAVE_TIMEGM_TRUE
  555. HAVE_STRPTIME_FALSE
  556. HAVE_STRPTIME_TRUE
  557. HAVE_LOCALTIME_R_FALSE
  558. HAVE_LOCALTIME_R_TRUE
  559. HAVE_INET_ATON_FALSE
  560. HAVE_INET_ATON_TRUE
  561. HAVE_GETTIMEOFDAY_FALSE
  562. HAVE_GETTIMEOFDAY_TRUE
  563. HAVE_GETADDRINFO_FALSE
  564. HAVE_GETADDRINFO_TRUE
  565. HAVE_GAI_STRERROR_FALSE
  566. HAVE_GAI_STRERROR_TRUE
  567. HAVE_BASENAME_FALSE
  568. HAVE_BASENAME_TRUE
  569. HAVE_ASCTIME_R_FALSE
  570. HAVE_ASCTIME_R_TRUE
  571. HAVE_POSIX_FALLOCATE_FALSE
  572. HAVE_POSIX_FALLOCATE_TRUE
  573. HAVE_EPOLL_FALSE
  574. HAVE_EPOLL_TRUE
  575. LIBOBJS
  576. POSUB
  577. LTLIBINTL
  578. LIBINTL
  579. INTLLIBS
  580. INTL_LIBTOOL_SUFFIX_PREFIX
  581. INTLOBJS
  582. GENCAT
  583. INSTOBJEXT
  584. DATADIRNAME
  585. CATOBJEXT
  586. USE_INCLUDED_LIBINTL
  587. BUILD_INCLUDED_LIBINTL
  588. LTLIBC
  589. WINDRES
  590. WOE32
  591. WOE32DLL
  592. HAVE_WPRINTF
  593. HAVE_SNPRINTF
  594. HAVE_ASPRINTF
  595. HAVE_POSIX_PRINTF
  596. INTL_MACOSX_LIBS
  597. GLIBC21
  598. INTLBISON
  599. LTLIBICONV
  600. LIBICONV
  601. LTLIBMULTITHREAD
  602. LIBMULTITHREAD
  603. LTLIBTHREAD
  604. LIBTHREAD
  605. LIBPTH_PREFIX
  606. LTLIBPTH
  607. LIBPTH
  608. PRI_MACROS_BROKEN
  609. HAVE_VISIBILITY
  610. CFLAG_VISIBILITY
  611. GLIBC2
  612. XGETTEXT_EXTRA_OPTIONS
  613. MSGMERGE
  614. XGETTEXT_015
  615. XGETTEXT
  616. GMSGFMT_015
  617. MSGFMT_015
  618. GMSGFMT
  619. MSGFMT
  620. GETTEXT_MACRO_VERSION
  621. USE_NLS
  622. ALLOCA
  623. HAVE_SQLITE3_FALSE
  624. HAVE_SQLITE3_TRUE
  625. HAVE_LIBZ_FALSE
  626. HAVE_LIBZ_TRUE
  627. ENABLE_ASYNC_DNS_FALSE
  628. ENABLE_ASYNC_DNS_TRUE
  629. HAVE_LIBEXPAT_FALSE
  630. HAVE_LIBEXPAT_TRUE
  631. HAVE_LIBXML2_FALSE
  632. HAVE_LIBXML2_TRUE
  633. ENABLE_XML_RPC_FALSE
  634. ENABLE_XML_RPC_TRUE
  635. ENABLE_METALINK_LIBEXPAT_FALSE
  636. ENABLE_METALINK_LIBEXPAT_TRUE
  637. ENABLE_METALINK_LIBXML2_FALSE
  638. ENABLE_METALINK_LIBXML2_TRUE
  639. ENABLE_METALINK_FALSE
  640. ENABLE_METALINK_TRUE
  641. ENABLE_BITTORRENT_FALSE
  642. ENABLE_BITTORRENT_TRUE
  643. ENABLE_MESSAGE_DIGEST_FALSE
  644. ENABLE_MESSAGE_DIGEST_TRUE
  645. HAVE_LIBSSL_FALSE
  646. HAVE_LIBSSL_TRUE
  647. HAVE_LIBGNUTLS_FALSE
  648. HAVE_LIBGNUTLS_TRUE
  649. ca_bundle
  650. ENABLE_SSL_FALSE
  651. ENABLE_SSL_TRUE
  652. LIBZ_CPPFLAGS
  653. LIBZ_LIBS
  654. LIBCARES_CPPFLAGS
  655. LIBCARES_LIBS
  656. OPENSSL_CFLAGS
  657. OPENSSL_LIBS
  658. LIBGCRYPT_LIBS
  659. LIBGCRYPT_CFLAGS
  660. LIBGCRYPT_CONFIG
  661. LIBGNUTLS_CONFIG
  662. LIBGNUTLS_LIBS
  663. LIBGNUTLS_CFLAGS
  664. SQLITE3_LIBS
  665. SQLITE3_CFLAGS
  666. PKG_CONFIG
  667. LIBEXPAT_CPPFLAGS
  668. LIBEXPAT_LIBS
  669. XML_LIBS
  670. XML_CPPFLAGS
  671. XML2_CONFIG
  672. EGREP
  673. GREP
  674. CXXCPP
  675. YFLAGS
  676. YACC
  677. RANLIB
  678. am__fastdepCC_FALSE
  679. am__fastdepCC_TRUE
  680. CCDEPMODE
  681. ac_ct_CC
  682. CFLAGS
  683. CC
  684. am__fastdepCXX_FALSE
  685. am__fastdepCXX_TRUE
  686. CXXDEPMODE
  687. AMDEPBACKSLASH
  688. AMDEP_FALSE
  689. AMDEP_TRUE
  690. am__quote
  691. am__include
  692. DEPDIR
  693. OBJEXT
  694. EXEEXT
  695. ac_ct_CXX
  696. CPPFLAGS
  697. LDFLAGS
  698. CXXFLAGS
  699. CXX
  700. WINSOCK_LIBS
  701. CPPUNIT_LIBS
  702. CPPUNIT_CFLAGS
  703. CPPUNIT_CONFIG
  704. am__untar
  705. am__tar
  706. AMTAR
  707. am__leading_dot
  708. SET_MAKE
  709. AWK
  710. mkdir_p
  711. MKDIR_P
  712. INSTALL_STRIP_PROGRAM
  713. STRIP
  714. install_sh
  715. MAKEINFO
  716. AUTOHEADER
  717. AUTOMAKE
  718. AUTOCONF
  719. ACLOCAL
  720. VERSION
  721. PACKAGE
  722. CYGPATH_W
  723. am__isrc
  724. INSTALL_DATA
  725. INSTALL_SCRIPT
  726. INSTALL_PROGRAM
  727. target_os
  728. target_vendor
  729. target_cpu
  730. target
  731. host_os
  732. host_vendor
  733. host_cpu
  734. host
  735. build_os
  736. build_vendor
  737. build_cpu
  738. build
  739. target_alias
  740. host_alias
  741. build_alias
  742. LIBS
  743. ECHO_T
  744. ECHO_N
  745. ECHO_C
  746. DEFS
  747. mandir
  748. localedir
  749. libdir
  750. psdir
  751. pdfdir
  752. dvidir
  753. htmldir
  754. infodir
  755. docdir
  756. oldincludedir
  757. includedir
  758. localstatedir
  759. sharedstatedir
  760. sysconfdir
  761. datadir
  762. datarootdir
  763. libexecdir
  764. sbindir
  765. bindir
  766. program_transform_name
  767. prefix
  768. exec_prefix
  769. PACKAGE_URL
  770. PACKAGE_BUGREPORT
  771. PACKAGE_STRING
  772. PACKAGE_VERSION
  773. PACKAGE_TARNAME
  774. PACKAGE_NAME
  775. PATH_SEPARATOR
  776. SHELL'
  777. ac_subst_files=''
  778. ac_user_opts='
  779. enable_option_checking
  780. with_cppunit_prefix
  781. with_cppunit_exec_prefix
  782. with_gnutls
  783. with_openssl
  784. with_sqlite3
  785. with_libxml2
  786. with_libexpat
  787. with_libcares
  788. with_libz
  789. enable_bittorrent
  790. enable_metalink
  791. enable_epoll
  792. with_ca_bundle
  793. enable_dependency_tracking
  794. with_xml_prefix
  795. with_xml_exec_prefix
  796. enable_xmltest
  797. with_libexpat_prefix
  798. with_sqlite3_prefix
  799. with_libgnutls_prefix
  800. with_libgcrypt_prefix
  801. with_openssl_prefix
  802. with_libcares_prefix
  803. with_libz_prefix
  804. enable_largefile
  805. enable_nls
  806. enable_threads
  807. with_gnu_ld
  808. enable_rpath
  809. with_libpth_prefix
  810. with_libiconv_prefix
  811. with_included_gettext
  812. with_libintl_prefix
  813. '
  814. ac_precious_vars='build_alias
  815. host_alias
  816. target_alias
  817. CXX
  818. CXXFLAGS
  819. LDFLAGS
  820. LIBS
  821. CPPFLAGS
  822. CCC
  823. CC
  824. CFLAGS
  825. YACC
  826. YFLAGS
  827. CXXCPP
  828. PKG_CONFIG
  829. SQLITE3_CFLAGS
  830. SQLITE3_LIBS
  831. LIBGNUTLS_CFLAGS
  832. LIBGNUTLS_LIBS'
  833. # Initialize some variables set by options.
  834. ac_init_help=
  835. ac_init_version=false
  836. ac_unrecognized_opts=
  837. ac_unrecognized_sep=
  838. # The variables have the same names as the options, with
  839. # dashes changed to underlines.
  840. cache_file=/dev/null
  841. exec_prefix=NONE
  842. no_create=
  843. no_recursion=
  844. prefix=NONE
  845. program_prefix=NONE
  846. program_suffix=NONE
  847. program_transform_name=s,x,x,
  848. silent=
  849. site=
  850. srcdir=
  851. verbose=
  852. x_includes=NONE
  853. x_libraries=NONE
  854. # Installation directory options.
  855. # These are left unexpanded so users can "make install exec_prefix=/foo"
  856. # and all the variables that are supposed to be based on exec_prefix
  857. # by default will actually change.
  858. # Use braces instead of parens because sh, perl, etc. also accept them.
  859. # (The list follows the same order as the GNU Coding Standards.)
  860. bindir='${exec_prefix}/bin'
  861. sbindir='${exec_prefix}/sbin'
  862. libexecdir='${exec_prefix}/libexec'
  863. datarootdir='${prefix}/share'
  864. datadir='${datarootdir}'
  865. sysconfdir='${prefix}/etc'
  866. sharedstatedir='${prefix}/com'
  867. localstatedir='${prefix}/var'
  868. includedir='${prefix}/include'
  869. oldincludedir='/usr/include'
  870. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  871. infodir='${datarootdir}/info'
  872. htmldir='${docdir}'
  873. dvidir='${docdir}'
  874. pdfdir='${docdir}'
  875. psdir='${docdir}'
  876. libdir='${exec_prefix}/lib'
  877. localedir='${datarootdir}/locale'
  878. mandir='${datarootdir}/man'
  879. ac_prev=
  880. ac_dashdash=
  881. for ac_option
  882. do
  883. # If the previous option needs an argument, assign it.
  884. if test -n "$ac_prev"; then
  885. eval $ac_prev=\$ac_option
  886. ac_prev=
  887. continue
  888. fi
  889. case $ac_option in
  890. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  891. *) ac_optarg=yes ;;
  892. esac
  893. # Accept the important Cygnus configure options, so we can diagnose typos.
  894. case $ac_dashdash$ac_option in
  895. --)
  896. ac_dashdash=yes ;;
  897. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  898. ac_prev=bindir ;;
  899. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  900. bindir=$ac_optarg ;;
  901. -build | --build | --buil | --bui | --bu)
  902. ac_prev=build_alias ;;
  903. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  904. build_alias=$ac_optarg ;;
  905. -cache-file | --cache-file | --cache-fil | --cache-fi \
  906. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  907. ac_prev=cache_file ;;
  908. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  909. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  910. cache_file=$ac_optarg ;;
  911. --config-cache | -C)
  912. cache_file=config.cache ;;
  913. -datadir | --datadir | --datadi | --datad)
  914. ac_prev=datadir ;;
  915. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  916. datadir=$ac_optarg ;;
  917. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  918. | --dataroo | --dataro | --datar)
  919. ac_prev=datarootdir ;;
  920. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  921. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  922. datarootdir=$ac_optarg ;;
  923. -disable-* | --disable-*)
  924. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  925. # Reject names that are not valid shell variable names.
  926. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  927. as_fn_error "invalid feature name: $ac_useropt"
  928. ac_useropt_orig=$ac_useropt
  929. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  930. case $ac_user_opts in
  931. *"
  932. "enable_$ac_useropt"
  933. "*) ;;
  934. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  935. ac_unrecognized_sep=', ';;
  936. esac
  937. eval enable_$ac_useropt=no ;;
  938. -docdir | --docdir | --docdi | --doc | --do)
  939. ac_prev=docdir ;;
  940. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  941. docdir=$ac_optarg ;;
  942. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  943. ac_prev=dvidir ;;
  944. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  945. dvidir=$ac_optarg ;;
  946. -enable-* | --enable-*)
  947. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  948. # Reject names that are not valid shell variable names.
  949. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  950. as_fn_error "invalid feature name: $ac_useropt"
  951. ac_useropt_orig=$ac_useropt
  952. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  953. case $ac_user_opts in
  954. *"
  955. "enable_$ac_useropt"
  956. "*) ;;
  957. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  958. ac_unrecognized_sep=', ';;
  959. esac
  960. eval enable_$ac_useropt=\$ac_optarg ;;
  961. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  962. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  963. | --exec | --exe | --ex)
  964. ac_prev=exec_prefix ;;
  965. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  966. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  967. | --exec=* | --exe=* | --ex=*)
  968. exec_prefix=$ac_optarg ;;
  969. -gas | --gas | --ga | --g)
  970. # Obsolete; use --with-gas.
  971. with_gas=yes ;;
  972. -help | --help | --hel | --he | -h)
  973. ac_init_help=long ;;
  974. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  975. ac_init_help=recursive ;;
  976. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  977. ac_init_help=short ;;
  978. -host | --host | --hos | --ho)
  979. ac_prev=host_alias ;;
  980. -host=* | --host=* | --hos=* | --ho=*)
  981. host_alias=$ac_optarg ;;
  982. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  983. ac_prev=htmldir ;;
  984. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  985. | --ht=*)
  986. htmldir=$ac_optarg ;;
  987. -includedir | --includedir | --includedi | --included | --include \
  988. | --includ | --inclu | --incl | --inc)
  989. ac_prev=includedir ;;
  990. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  991. | --includ=* | --inclu=* | --incl=* | --inc=*)
  992. includedir=$ac_optarg ;;
  993. -infodir | --infodir | --infodi | --infod | --info | --inf)
  994. ac_prev=infodir ;;
  995. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  996. infodir=$ac_optarg ;;
  997. -libdir | --libdir | --libdi | --libd)
  998. ac_prev=libdir ;;
  999. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1000. libdir=$ac_optarg ;;
  1001. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1002. | --libexe | --libex | --libe)
  1003. ac_prev=libexecdir ;;
  1004. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1005. | --libexe=* | --libex=* | --libe=*)
  1006. libexecdir=$ac_optarg ;;
  1007. -localedir | --localedir | --localedi | --localed | --locale)
  1008. ac_prev=localedir ;;
  1009. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1010. localedir=$ac_optarg ;;
  1011. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1012. | --localstate | --localstat | --localsta | --localst | --locals)
  1013. ac_prev=localstatedir ;;
  1014. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1015. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1016. localstatedir=$ac_optarg ;;
  1017. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1018. ac_prev=mandir ;;
  1019. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1020. mandir=$ac_optarg ;;
  1021. -nfp | --nfp | --nf)
  1022. # Obsolete; use --without-fp.
  1023. with_fp=no ;;
  1024. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1025. | --no-cr | --no-c | -n)
  1026. no_create=yes ;;
  1027. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1028. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1029. no_recursion=yes ;;
  1030. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1031. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1032. | --oldin | --oldi | --old | --ol | --o)
  1033. ac_prev=oldincludedir ;;
  1034. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1035. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1036. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1037. oldincludedir=$ac_optarg ;;
  1038. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1039. ac_prev=prefix ;;
  1040. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1041. prefix=$ac_optarg ;;
  1042. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1043. | --program-pre | --program-pr | --program-p)
  1044. ac_prev=program_prefix ;;
  1045. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1046. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1047. program_prefix=$ac_optarg ;;
  1048. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1049. | --program-suf | --program-su | --program-s)
  1050. ac_prev=program_suffix ;;
  1051. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1052. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1053. program_suffix=$ac_optarg ;;
  1054. -program-transform-name | --program-transform-name \
  1055. | --program-transform-nam | --program-transform-na \
  1056. | --program-transform-n | --program-transform- \
  1057. | --program-transform | --program-transfor \
  1058. | --program-transfo | --program-transf \
  1059. | --program-trans | --program-tran \
  1060. | --progr-tra | --program-tr | --program-t)
  1061. ac_prev=program_transform_name ;;
  1062. -program-transform-name=* | --program-transform-name=* \
  1063. | --program-transform-nam=* | --program-transform-na=* \
  1064. | --program-transform-n=* | --program-transform-=* \
  1065. | --program-transform=* | --program-transfor=* \
  1066. | --program-transfo=* | --program-transf=* \
  1067. | --program-trans=* | --program-tran=* \
  1068. | --progr-tra=* | --program-tr=* | --program-t=*)
  1069. program_transform_name=$ac_optarg ;;
  1070. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1071. ac_prev=pdfdir ;;
  1072. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1073. pdfdir=$ac_optarg ;;
  1074. -psdir | --psdir | --psdi | --psd | --ps)
  1075. ac_prev=psdir ;;
  1076. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1077. psdir=$ac_optarg ;;
  1078. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1079. | -silent | --silent | --silen | --sile | --sil)
  1080. silent=yes ;;
  1081. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1082. ac_prev=sbindir ;;
  1083. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1084. | --sbi=* | --sb=*)
  1085. sbindir=$ac_optarg ;;
  1086. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1087. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1088. | --sharedst | --shareds | --shared | --share | --shar \
  1089. | --sha | --sh)
  1090. ac_prev=sharedstatedir ;;
  1091. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1092. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1093. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1094. | --sha=* | --sh=*)
  1095. sharedstatedir=$ac_optarg ;;
  1096. -site | --site | --sit)
  1097. ac_prev=site ;;
  1098. -site=* | --site=* | --sit=*)
  1099. site=$ac_optarg ;;
  1100. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1101. ac_prev=srcdir ;;
  1102. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1103. srcdir=$ac_optarg ;;
  1104. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1105. | --syscon | --sysco | --sysc | --sys | --sy)
  1106. ac_prev=sysconfdir ;;
  1107. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1108. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1109. sysconfdir=$ac_optarg ;;
  1110. -target | --target | --targe | --targ | --tar | --ta | --t)
  1111. ac_prev=target_alias ;;
  1112. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1113. target_alias=$ac_optarg ;;
  1114. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1115. verbose=yes ;;
  1116. -version | --version | --versio | --versi | --vers | -V)
  1117. ac_init_version=: ;;
  1118. -with-* | --with-*)
  1119. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1120. # Reject names that are not valid shell variable names.
  1121. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1122. as_fn_error "invalid package name: $ac_useropt"
  1123. ac_useropt_orig=$ac_useropt
  1124. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1125. case $ac_user_opts in
  1126. *"
  1127. "with_$ac_useropt"
  1128. "*) ;;
  1129. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1130. ac_unrecognized_sep=', ';;
  1131. esac
  1132. eval with_$ac_useropt=\$ac_optarg ;;
  1133. -without-* | --without-*)
  1134. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1135. # Reject names that are not valid shell variable names.
  1136. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1137. as_fn_error "invalid package name: $ac_useropt"
  1138. ac_useropt_orig=$ac_useropt
  1139. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1140. case $ac_user_opts in
  1141. *"
  1142. "with_$ac_useropt"
  1143. "*) ;;
  1144. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1145. ac_unrecognized_sep=', ';;
  1146. esac
  1147. eval with_$ac_useropt=no ;;
  1148. --x)
  1149. # Obsolete; use --with-x.
  1150. with_x=yes ;;
  1151. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1152. | --x-incl | --x-inc | --x-in | --x-i)
  1153. ac_prev=x_includes ;;
  1154. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1155. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1156. x_includes=$ac_optarg ;;
  1157. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1158. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1159. ac_prev=x_libraries ;;
  1160. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1161. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1162. x_libraries=$ac_optarg ;;
  1163. -*) as_fn_error "unrecognized option: \`$ac_option'
  1164. Try \`$0 --help' for more information."
  1165. ;;
  1166. *=*)
  1167. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1168. # Reject names that are not valid shell variable names.
  1169. case $ac_envvar in #(
  1170. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1171. as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  1172. esac
  1173. eval $ac_envvar=\$ac_optarg
  1174. export $ac_envvar ;;
  1175. *)
  1176. # FIXME: should be removed in autoconf 3.0.
  1177. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1178. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1179. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1180. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1181. ;;
  1182. esac
  1183. done
  1184. if test -n "$ac_prev"; then
  1185. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1186. as_fn_error "missing argument to $ac_option"
  1187. fi
  1188. if test -n "$ac_unrecognized_opts"; then
  1189. case $enable_option_checking in
  1190. no) ;;
  1191. fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  1192. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1193. esac
  1194. fi
  1195. # Check all directory arguments for consistency.
  1196. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1197. datadir sysconfdir sharedstatedir localstatedir includedir \
  1198. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1199. libdir localedir mandir
  1200. do
  1201. eval ac_val=\$$ac_var
  1202. # Remove trailing slashes.
  1203. case $ac_val in
  1204. */ )
  1205. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1206. eval $ac_var=\$ac_val;;
  1207. esac
  1208. # Be sure to have absolute directory names.
  1209. case $ac_val in
  1210. [\\/$]* | ?:[\\/]* ) continue;;
  1211. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1212. esac
  1213. as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  1214. done
  1215. # There might be people who depend on the old broken behavior: `$host'
  1216. # used to hold the argument of --host etc.
  1217. # FIXME: To remove some day.
  1218. build=$build_alias
  1219. host=$host_alias
  1220. target=$target_alias
  1221. # FIXME: To remove some day.
  1222. if test "x$host_alias" != x; then
  1223. if test "x$build_alias" = x; then
  1224. cross_compiling=maybe
  1225. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1226. If a cross compiler is detected then cross compile mode will be used." >&2
  1227. elif test "x$build_alias" != "x$host_alias"; then
  1228. cross_compiling=yes
  1229. fi
  1230. fi
  1231. ac_tool_prefix=
  1232. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1233. test "$silent" = yes && exec 6>/dev/null
  1234. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1235. ac_ls_di=`ls -di .` &&
  1236. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1237. as_fn_error "working directory cannot be determined"
  1238. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1239. as_fn_error "pwd does not report name of working directory"
  1240. # Find the source files, if location was not specified.
  1241. if test -z "$srcdir"; then
  1242. ac_srcdir_defaulted=yes
  1243. # Try the directory containing this script, then the parent directory.
  1244. ac_confdir=`$as_dirname -- "$as_myself" ||
  1245. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1246. X"$as_myself" : 'X\(//\)[^/]' \| \
  1247. X"$as_myself" : 'X\(//\)$' \| \
  1248. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1249. $as_echo X"$as_myself" |
  1250. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1251. s//\1/
  1252. q
  1253. }
  1254. /^X\(\/\/\)[^/].*/{
  1255. s//\1/
  1256. q
  1257. }
  1258. /^X\(\/\/\)$/{
  1259. s//\1/
  1260. q
  1261. }
  1262. /^X\(\/\).*/{
  1263. s//\1/
  1264. q
  1265. }
  1266. s/.*/./; q'`
  1267. srcdir=$ac_confdir
  1268. if test ! -r "$srcdir/$ac_unique_file"; then
  1269. srcdir=..
  1270. fi
  1271. else
  1272. ac_srcdir_defaulted=no
  1273. fi
  1274. if test ! -r "$srcdir/$ac_unique_file"; then
  1275. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1276. as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  1277. fi
  1278. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1279. ac_abs_confdir=`(
  1280. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  1281. pwd)`
  1282. # When building in place, set srcdir=.
  1283. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1284. srcdir=.
  1285. fi
  1286. # Remove unnecessary trailing slashes from srcdir.
  1287. # Double slashes in file names in object file debugging info
  1288. # mess up M-x gdb in Emacs.
  1289. case $srcdir in
  1290. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1291. esac
  1292. for ac_var in $ac_precious_vars; do
  1293. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1294. eval ac_env_${ac_var}_value=\$${ac_var}
  1295. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1296. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1297. done
  1298. #
  1299. # Report the --help message.
  1300. #
  1301. if test "$ac_init_help" = "long"; then
  1302. # Omit some internal or obsolete options to make the list less imposing.
  1303. # This message is too long to be a string in the A/UX 3.1 sh.
  1304. cat <<_ACEOF
  1305. \`configure' configures aria2 1.6.1 to adapt to many kinds of systems.
  1306. Usage: $0 [OPTION]... [VAR=VALUE]...
  1307. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1308. VAR=VALUE. See below for descriptions of some of the useful variables.
  1309. Defaults for the options are specified in brackets.
  1310. Configuration:
  1311. -h, --help display this help and exit
  1312. --help=short display options specific to this package
  1313. --help=recursive display the short help of all the included packages
  1314. -V, --version display version information and exit
  1315. -q, --quiet, --silent do not print \`checking...' messages
  1316. --cache-file=FILE cache test results in FILE [disabled]
  1317. -C, --config-cache alias for \`--cache-file=config.cache'
  1318. -n, --no-create do not create output files
  1319. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1320. Installation directories:
  1321. --prefix=PREFIX install architecture-independent files in PREFIX
  1322. [$ac_default_prefix]
  1323. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1324. [PREFIX]
  1325. By default, \`make install' will install all the files in
  1326. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1327. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1328. for instance \`--prefix=\$HOME'.
  1329. For better control, use the options below.
  1330. Fine tuning of the installation directories:
  1331. --bindir=DIR user executables [EPREFIX/bin]
  1332. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1333. --libexecdir=DIR program executables [EPREFIX/libexec]
  1334. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1335. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1336. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1337. --libdir=DIR object code libraries [EPREFIX/lib]
  1338. --includedir=DIR C header files [PREFIX/include]
  1339. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1340. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1341. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1342. --infodir=DIR info documentation [DATAROOTDIR/info]
  1343. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1344. --mandir=DIR man documentation [DATAROOTDIR/man]
  1345. --docdir=DIR documentation root [DATAROOTDIR/doc/aria2]
  1346. --htmldir=DIR html documentation [DOCDIR]
  1347. --dvidir=DIR dvi documentation [DOCDIR]
  1348. --pdfdir=DIR pdf documentation [DOCDIR]
  1349. --psdir=DIR ps documentation [DOCDIR]
  1350. _ACEOF
  1351. cat <<\_ACEOF
  1352. Program names:
  1353. --program-prefix=PREFIX prepend PREFIX to installed program names
  1354. --program-suffix=SUFFIX append SUFFIX to installed program names
  1355. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1356. System types:
  1357. --build=BUILD configure for building on BUILD [guessed]
  1358. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1359. --target=TARGET configure for building compilers for TARGET [HOST]
  1360. _ACEOF
  1361. fi
  1362. if test -n "$ac_init_help"; then
  1363. case $ac_init_help in
  1364. short | recursive ) echo "Configuration of aria2 1.6.1:";;
  1365. esac
  1366. cat <<\_ACEOF
  1367. Optional Features:
  1368. --disable-option-checking ignore unrecognized --enable/--with options
  1369. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1370. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1371. --enable-bittorrent Enable bittorrent support.
  1372. --enable-metalink Enable metalink support.
  1373. --enable-epoll Enable epoll support.
  1374. --disable-dependency-tracking speeds up one-time build
  1375. --enable-dependency-tracking do not reject slow dependency extractors
  1376. --disable-xmltest Do not try to compile and run a test LIBXML program
  1377. --disable-largefile omit support for large files
  1378. --disable-nls do not use Native Language Support
  1379. --enable-threads={posix|solaris|pth|win32}
  1380. specify multithreading API
  1381. --disable-threads build without multithread safety
  1382. --disable-rpath do not hardcode runtime library paths
  1383. Optional Packages:
  1384. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1385. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1386. --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
  1387. --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
  1388. --with-gnutls Use gnutls if it is installed.
  1389. --with-openssl Use openssl if it is installed.
  1390. --with-sqlite3 Use sqlite3 if it is installed.
  1391. --with-libxml2 Use libxml2 if it is installed.
  1392. --with-libexpat Use libexpat if it is installed.
  1393. --with-libcares Use libcares if it is installed.
  1394. --with-libz Use libz if it is installed.
  1395. --with-ca-bundle=FILE Use FILE as default CA bundle.
  1396. --with-xml-prefix=PFX Prefix where libxml is installed (optional)
  1397. --with-xml-exec-prefix=PFX Exec prefix where libxml is installed (optional)
  1398. --with-libexpat-prefix=PREFIX Prefix where libexpat installed (optional)
  1399. --with-sqlite3-prefix=PREFIX Prefix where SQLite3 installed (optional)
  1400. --with-libgnutls-prefix=PFX Prefix where libgnutls is installed (optional)
  1401. --with-libgcrypt-prefix=PFX
  1402. prefix where LIBGCRYPT is installed (optional)
  1403. --with-openssl-prefix=PREFIX Prefix where OpenSSL installed (optional)
  1404. --with-libcares-prefix=PREFIX Prefix where libcares installed (optional)
  1405. --with-libz-prefix=PREFIX Prefix where libz installed (optional)
  1406. --with-gnu-ld assume the C compiler uses GNU ld default=no
  1407. --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
  1408. --without-libpth-prefix don't search for libpth in includedir and libdir
  1409. --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
  1410. --without-libiconv-prefix don't search for libiconv in includedir and libdir
  1411. --with-included-gettext use the GNU gettext library included here
  1412. --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
  1413. --without-libintl-prefix don't search for libintl in includedir and libdir
  1414. Some influential environment variables:
  1415. CXX C++ compiler command
  1416. CXXFLAGS C++ compiler flags
  1417. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1418. nonstandard directory <lib dir>
  1419. LIBS libraries to pass to the linker, e.g. -l<library>
  1420. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1421. you have headers in a nonstandard directory <include dir>
  1422. CC C compiler command
  1423. CFLAGS C compiler flags
  1424. YACC The `Yet Another C Compiler' implementation to use. Defaults to
  1425. the first program found out of: `bison -y', `byacc', `yacc'.
  1426. YFLAGS The list of arguments that will be passed by default to $YACC.
  1427. This script will default YFLAGS to the empty string to avoid a
  1428. default value of `-d' given by some make applications.
  1429. CXXCPP C++ preprocessor
  1430. PKG_CONFIG path to pkg-config utility
  1431. SQLITE3_CFLAGS
  1432. C compiler flags for SQLITE3, overriding pkg-config
  1433. SQLITE3_LIBS
  1434. linker flags for SQLITE3, overriding pkg-config
  1435. LIBGNUTLS_CFLAGS
  1436. C compiler flags for LIBGNUTLS, overriding pkg-config
  1437. LIBGNUTLS_LIBS
  1438. linker flags for LIBGNUTLS, overriding pkg-config
  1439. Use these variables to override the choices made by `configure' or to help
  1440. it to find libraries and programs with nonstandard names/locations.
  1441. Report bugs to <t-tujikawa@users.sourceforge.net>.
  1442. aria2 home page: <http://aria2.sourceforge.net/>.
  1443. _ACEOF
  1444. ac_status=$?
  1445. fi
  1446. if test "$ac_init_help" = "recursive"; then
  1447. # If there are subdirs, report their specific --help.
  1448. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1449. test -d "$ac_dir" ||
  1450. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1451. continue
  1452. ac_builddir=.
  1453. case "$ac_dir" in
  1454. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1455. *)
  1456. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1457. # A ".." for each directory in $ac_dir_suffix.
  1458. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1459. case $ac_top_builddir_sub in
  1460. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1461. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1462. esac ;;
  1463. esac
  1464. ac_abs_top_builddir=$ac_pwd
  1465. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1466. # for backward compatibility:
  1467. ac_top_builddir=$ac_top_build_prefix
  1468. case $srcdir in
  1469. .) # We are building in place.
  1470. ac_srcdir=.
  1471. ac_top_srcdir=$ac_top_builddir_sub
  1472. ac_abs_top_srcdir=$ac_pwd ;;
  1473. [\\/]* | ?:[\\/]* ) # Absolute name.
  1474. ac_srcdir=$srcdir$ac_dir_suffix;
  1475. ac_top_srcdir=$srcdir
  1476. ac_abs_top_srcdir=$srcdir ;;
  1477. *) # Relative name.
  1478. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1479. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1480. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1481. esac
  1482. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1483. cd "$ac_dir" || { ac_status=$?; continue; }
  1484. # Check for guested configure.
  1485. if test -f "$ac_srcdir/configure.gnu"; then
  1486. echo &&
  1487. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1488. elif test -f "$ac_srcdir/configure"; then
  1489. echo &&
  1490. $SHELL "$ac_srcdir/configure" --help=recursive
  1491. else
  1492. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1493. fi || ac_status=$?
  1494. cd "$ac_pwd" || { ac_status=$?; break; }
  1495. done
  1496. fi
  1497. test -n "$ac_init_help" && exit $ac_status
  1498. if $ac_init_version; then
  1499. cat <<\_ACEOF
  1500. aria2 configure 1.6.1
  1501. generated by GNU Autoconf 2.64
  1502. Copyright (C) 2009 Free Software Foundation, Inc.
  1503. This configure script is free software; the Free Software Foundation
  1504. gives unlimited permission to copy, distribute and modify it.
  1505. _ACEOF
  1506. exit
  1507. fi
  1508. ## ------------------------ ##
  1509. ## Autoconf initialization. ##
  1510. ## ------------------------ ##
  1511. # ac_fn_cxx_try_compile LINENO
  1512. # ----------------------------
  1513. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1514. ac_fn_cxx_try_compile ()
  1515. {
  1516. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1517. rm -f conftest.$ac_objext
  1518. if { { ac_try="$ac_compile"
  1519. case "(($ac_try" in
  1520. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1521. *) ac_try_echo=$ac_try;;
  1522. esac
  1523. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1524. $as_echo "$ac_try_echo"; } >&5
  1525. (eval "$ac_compile") 2>conftest.err
  1526. ac_status=$?
  1527. if test -s conftest.err; then
  1528. grep -v '^ *+' conftest.err >conftest.er1
  1529. cat conftest.er1 >&5
  1530. mv -f conftest.er1 conftest.err
  1531. fi
  1532. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1533. test $ac_status = 0; } && {
  1534. test -z "$ac_cxx_werror_flag" ||
  1535. test ! -s conftest.err
  1536. } && test -s conftest.$ac_objext; then :
  1537. ac_retval=0
  1538. else
  1539. $as_echo "$as_me: failed program was:" >&5
  1540. sed 's/^/| /' conftest.$ac_ext >&5
  1541. ac_retval=1
  1542. fi
  1543. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1544. return $ac_retval
  1545. } # ac_fn_cxx_try_compile
  1546. # ac_fn_c_try_compile LINENO
  1547. # --------------------------
  1548. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1549. ac_fn_c_try_compile ()
  1550. {
  1551. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1552. rm -f conftest.$ac_objext
  1553. if { { ac_try="$ac_compile"
  1554. case "(($ac_try" in
  1555. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1556. *) ac_try_echo=$ac_try;;
  1557. esac
  1558. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1559. $as_echo "$ac_try_echo"; } >&5
  1560. (eval "$ac_compile") 2>conftest.err
  1561. ac_status=$?
  1562. if test -s conftest.err; then
  1563. grep -v '^ *+' conftest.err >conftest.er1
  1564. cat conftest.er1 >&5
  1565. mv -f conftest.er1 conftest.err
  1566. fi
  1567. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1568. test $ac_status = 0; } && {
  1569. test -z "$ac_c_werror_flag" ||
  1570. test ! -s conftest.err
  1571. } && test -s conftest.$ac_objext; then :
  1572. ac_retval=0
  1573. else
  1574. $as_echo "$as_me: failed program was:" >&5
  1575. sed 's/^/| /' conftest.$ac_ext >&5
  1576. ac_retval=1
  1577. fi
  1578. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1579. return $ac_retval
  1580. } # ac_fn_c_try_compile
  1581. # ac_fn_cxx_try_cpp LINENO
  1582. # ------------------------
  1583. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1584. ac_fn_cxx_try_cpp ()
  1585. {
  1586. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1587. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1588. case "(($ac_try" in
  1589. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1590. *) ac_try_echo=$ac_try;;
  1591. esac
  1592. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1593. $as_echo "$ac_try_echo"; } >&5
  1594. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1595. ac_status=$?
  1596. if test -s conftest.err; then
  1597. grep -v '^ *+' conftest.err >conftest.er1
  1598. cat conftest.er1 >&5
  1599. mv -f conftest.er1 conftest.err
  1600. fi
  1601. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1602. test $ac_status = 0; } >/dev/null && {
  1603. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1604. test ! -s conftest.err
  1605. }; then :
  1606. ac_retval=0
  1607. else
  1608. $as_echo "$as_me: failed program was:" >&5
  1609. sed 's/^/| /' conftest.$ac_ext >&5
  1610. ac_retval=1
  1611. fi
  1612. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1613. return $ac_retval
  1614. } # ac_fn_cxx_try_cpp
  1615. # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
  1616. # ---------------------------------------------------------
  1617. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1618. # the include files in INCLUDES and setting the cache variable VAR
  1619. # accordingly.
  1620. ac_fn_cxx_check_header_mongrel ()
  1621. {
  1622. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1623. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1624. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1625. $as_echo_n "checking for $2... " >&6; }
  1626. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1627. $as_echo_n "(cached) " >&6
  1628. fi
  1629. eval ac_res=\$$3
  1630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1631. $as_echo "$ac_res" >&6; }
  1632. else
  1633. # Is the header compilable?
  1634. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1635. $as_echo_n "checking $2 usability... " >&6; }
  1636. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1637. /* end confdefs.h. */
  1638. $4
  1639. #include <$2>
  1640. _ACEOF
  1641. if ac_fn_cxx_try_compile "$LINENO"; then :
  1642. ac_header_compiler=yes
  1643. else
  1644. ac_header_compiler=no
  1645. fi
  1646. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1648. $as_echo "$ac_header_compiler" >&6; }
  1649. # Is the header present?
  1650. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1651. $as_echo_n "checking $2 presence... " >&6; }
  1652. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1653. /* end confdefs.h. */
  1654. #include <$2>
  1655. _ACEOF
  1656. if ac_fn_cxx_try_cpp "$LINENO"; then :
  1657. ac_header_preproc=yes
  1658. else
  1659. ac_header_preproc=no
  1660. fi
  1661. rm -f conftest.err conftest.$ac_ext
  1662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1663. $as_echo "$ac_header_preproc" >&6; }
  1664. # So? What about this header?
  1665. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
  1666. yes:no: )
  1667. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1668. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1669. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1670. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1671. ;;
  1672. no:yes:* )
  1673. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1674. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1675. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1676. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1677. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1678. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1679. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1680. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1681. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1682. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1683. ( cat <<\_ASBOX
  1684. ## ----------------------------------------------- ##
  1685. ## Report this to t-tujikawa@users.sourceforge.net ##
  1686. ## ----------------------------------------------- ##
  1687. _ASBOX
  1688. ) | sed "s/^/$as_me: WARNING: /" >&2
  1689. ;;
  1690. esac
  1691. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1692. $as_echo_n "checking for $2... " >&6; }
  1693. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1694. $as_echo_n "(cached) " >&6
  1695. else
  1696. eval "$3=\$ac_header_compiler"
  1697. fi
  1698. eval ac_res=\$$3
  1699. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1700. $as_echo "$ac_res" >&6; }
  1701. fi
  1702. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1703. } # ac_fn_cxx_check_header_mongrel
  1704. # ac_fn_cxx_try_run LINENO
  1705. # ------------------------
  1706. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1707. # that executables *can* be run.
  1708. ac_fn_cxx_try_run ()
  1709. {
  1710. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1711. if { { ac_try="$ac_link"
  1712. case "(($ac_try" in
  1713. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1714. *) ac_try_echo=$ac_try;;
  1715. esac
  1716. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1717. $as_echo "$ac_try_echo"; } >&5
  1718. (eval "$ac_link") 2>&5
  1719. ac_status=$?
  1720. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1721. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  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_try") 2>&5
  1729. ac_status=$?
  1730. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1731. test $ac_status = 0; }; }; then :
  1732. ac_retval=0
  1733. else
  1734. $as_echo "$as_me: program exited with status $ac_status" >&5
  1735. $as_echo "$as_me: failed program was:" >&5
  1736. sed 's/^/| /' conftest.$ac_ext >&5
  1737. ac_retval=$ac_status
  1738. fi
  1739. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1740. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1741. return $ac_retval
  1742. } # ac_fn_cxx_try_run
  1743. # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
  1744. # ---------------------------------------------------------
  1745. # Tests whether HEADER exists and can be compiled using the include files in
  1746. # INCLUDES, setting the cache variable VAR accordingly.
  1747. ac_fn_cxx_check_header_compile ()
  1748. {
  1749. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1750. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1751. $as_echo_n "checking for $2... " >&6; }
  1752. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1753. $as_echo_n "(cached) " >&6
  1754. else
  1755. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1756. /* end confdefs.h. */
  1757. $4
  1758. #include <$2>
  1759. _ACEOF
  1760. if ac_fn_cxx_try_compile "$LINENO"; then :
  1761. eval "$3=yes"
  1762. else
  1763. eval "$3=no"
  1764. fi
  1765. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1766. fi
  1767. eval ac_res=\$$3
  1768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1769. $as_echo "$ac_res" >&6; }
  1770. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1771. } # ac_fn_cxx_check_header_compile
  1772. # ac_fn_cxx_try_link LINENO
  1773. # -------------------------
  1774. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1775. ac_fn_cxx_try_link ()
  1776. {
  1777. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1778. rm -f conftest.$ac_objext conftest$ac_exeext
  1779. if { { ac_try="$ac_link"
  1780. case "(($ac_try" in
  1781. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1782. *) ac_try_echo=$ac_try;;
  1783. esac
  1784. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1785. $as_echo "$ac_try_echo"; } >&5
  1786. (eval "$ac_link") 2>conftest.err
  1787. ac_status=$?
  1788. if test -s conftest.err; then
  1789. grep -v '^ *+' conftest.err >conftest.er1
  1790. cat conftest.er1 >&5
  1791. mv -f conftest.er1 conftest.err
  1792. fi
  1793. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1794. test $ac_status = 0; } && {
  1795. test -z "$ac_cxx_werror_flag" ||
  1796. test ! -s conftest.err
  1797. } && test -s conftest$ac_exeext && {
  1798. test "$cross_compiling" = yes ||
  1799. $as_test_x conftest$ac_exeext
  1800. }; then :
  1801. ac_retval=0
  1802. else
  1803. $as_echo "$as_me: failed program was:" >&5
  1804. sed 's/^/| /' conftest.$ac_ext >&5
  1805. ac_retval=1
  1806. fi
  1807. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1808. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1809. # interfere with the next link command; also delete a directory that is
  1810. # left behind by Apple's compiler. We do this before executing the actions.
  1811. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1812. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1813. return $ac_retval
  1814. } # ac_fn_cxx_try_link
  1815. # ac_fn_cxx_check_func LINENO FUNC VAR
  1816. # ------------------------------------
  1817. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1818. ac_fn_cxx_check_func ()
  1819. {
  1820. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1821. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1822. $as_echo_n "checking for $2... " >&6; }
  1823. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1824. $as_echo_n "(cached) " >&6
  1825. else
  1826. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1827. /* end confdefs.h. */
  1828. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1829. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1830. #define $2 innocuous_$2
  1831. /* System header to define __stub macros and hopefully few prototypes,
  1832. which can conflict with char $2 (); below.
  1833. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1834. <limits.h> exists even on freestanding compilers. */
  1835. #ifdef __STDC__
  1836. # include <limits.h>
  1837. #else
  1838. # include <assert.h>
  1839. #endif
  1840. #undef $2
  1841. /* Override any GCC internal prototype to avoid an error.
  1842. Use char because int might match the return type of a GCC
  1843. builtin and then its argument prototype would still apply. */
  1844. #ifdef __cplusplus
  1845. extern "C"
  1846. #endif
  1847. char $2 ();
  1848. /* The GNU C library defines this for functions which it implements
  1849. to always fail with ENOSYS. Some functions are actually named
  1850. something starting with __ and the normal name is an alias. */
  1851. #if defined __stub_$2 || defined __stub___$2
  1852. choke me
  1853. #endif
  1854. int
  1855. main ()
  1856. {
  1857. return $2 ();
  1858. ;
  1859. return 0;
  1860. }
  1861. _ACEOF
  1862. if ac_fn_cxx_try_link "$LINENO"; then :
  1863. eval "$3=yes"
  1864. else
  1865. eval "$3=no"
  1866. fi
  1867. rm -f core conftest.err conftest.$ac_objext \
  1868. conftest$ac_exeext conftest.$ac_ext
  1869. fi
  1870. eval ac_res=\$$3
  1871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1872. $as_echo "$ac_res" >&6; }
  1873. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1874. } # ac_fn_cxx_check_func
  1875. # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
  1876. # ---------------------------------------------
  1877. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1878. # variable VAR accordingly.
  1879. ac_fn_cxx_check_type ()
  1880. {
  1881. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1882. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1883. $as_echo_n "checking for $2... " >&6; }
  1884. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1885. $as_echo_n "(cached) " >&6
  1886. else
  1887. eval "$3=no"
  1888. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1889. /* end confdefs.h. */
  1890. $4
  1891. int
  1892. main ()
  1893. {
  1894. if (sizeof ($2))
  1895. return 0;
  1896. ;
  1897. return 0;
  1898. }
  1899. _ACEOF
  1900. if ac_fn_cxx_try_compile "$LINENO"; then :
  1901. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1902. /* end confdefs.h. */
  1903. $4
  1904. int
  1905. main ()
  1906. {
  1907. if (sizeof (($2)))
  1908. return 0;
  1909. ;
  1910. return 0;
  1911. }
  1912. _ACEOF
  1913. if ac_fn_cxx_try_compile "$LINENO"; then :
  1914. else
  1915. eval "$3=yes"
  1916. fi
  1917. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1918. fi
  1919. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1920. fi
  1921. eval ac_res=\$$3
  1922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1923. $as_echo "$ac_res" >&6; }
  1924. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1925. } # ac_fn_cxx_check_type
  1926. # ac_fn_c_find_intX_t LINENO BITS VAR
  1927. # -----------------------------------
  1928. # Finds a signed integer type with width BITS, setting cache variable VAR
  1929. # accordingly.
  1930. ac_fn_c_find_intX_t ()
  1931. {
  1932. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1933. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
  1934. $as_echo_n "checking for int$2_t... " >&6; }
  1935. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1936. $as_echo_n "(cached) " >&6
  1937. else
  1938. eval "$3=no"
  1939. for ac_type in int$2_t 'int' 'long int' \
  1940. 'long long int' 'short int' 'signed char'; do
  1941. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1942. /* end confdefs.h. */
  1943. $ac_includes_default
  1944. int
  1945. main ()
  1946. {
  1947. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
  1948. test_array [0] = 0
  1949. ;
  1950. return 0;
  1951. }
  1952. _ACEOF
  1953. if ac_fn_cxx_try_compile "$LINENO"; then :
  1954. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1955. /* end confdefs.h. */
  1956. $ac_includes_default
  1957. int
  1958. main ()
  1959. {
  1960. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
  1961. < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
  1962. test_array [0] = 0
  1963. ;
  1964. return 0;
  1965. }
  1966. _ACEOF
  1967. if ac_fn_cxx_try_compile "$LINENO"; then :
  1968. else
  1969. case $ac_type in #(
  1970. int$2_t) :
  1971. eval "$3=yes" ;; #(
  1972. *) :
  1973. eval "$3=\$ac_type" ;;
  1974. esac
  1975. fi
  1976. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1977. fi
  1978. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1979. eval as_val=\$$3
  1980. if test "x$as_val" = x""no; then :
  1981. else
  1982. break
  1983. fi
  1984. done
  1985. fi
  1986. eval ac_res=\$$3
  1987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1988. $as_echo "$ac_res" >&6; }
  1989. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1990. } # ac_fn_c_find_intX_t
  1991. # ac_fn_c_find_uintX_t LINENO BITS VAR
  1992. # ------------------------------------
  1993. # Finds an unsigned integer type with width BITS, setting cache variable VAR
  1994. # accordingly.
  1995. ac_fn_c_find_uintX_t ()
  1996. {
  1997. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1998. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
  1999. $as_echo_n "checking for uint$2_t... " >&6; }
  2000. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  2001. $as_echo_n "(cached) " >&6
  2002. else
  2003. eval "$3=no"
  2004. for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
  2005. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  2006. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2007. /* end confdefs.h. */
  2008. $ac_includes_default
  2009. int
  2010. main ()
  2011. {
  2012. static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
  2013. test_array [0] = 0
  2014. ;
  2015. return 0;
  2016. }
  2017. _ACEOF
  2018. if ac_fn_cxx_try_compile "$LINENO"; then :
  2019. case $ac_type in #(
  2020. uint$2_t) :
  2021. eval "$3=yes" ;; #(
  2022. *) :
  2023. eval "$3=\$ac_type" ;;
  2024. esac
  2025. fi
  2026. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2027. eval as_val=\$$3
  2028. if test "x$as_val" = x""no; then :
  2029. else
  2030. break
  2031. fi
  2032. done
  2033. fi
  2034. eval ac_res=\$$3
  2035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2036. $as_echo "$ac_res" >&6; }
  2037. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2038. } # ac_fn_c_find_uintX_t
  2039. # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
  2040. # ----------------------------------------------
  2041. # Tries to find the compile-time value of EXPR in a program that includes
  2042. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  2043. # computed
  2044. ac_fn_cxx_compute_int ()
  2045. {
  2046. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2047. if test "$cross_compiling" = yes; then
  2048. # Depending upon the size, compute the lo and hi bounds.
  2049. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2050. /* end confdefs.h. */
  2051. $4
  2052. int
  2053. main ()
  2054. {
  2055. static int test_array [1 - 2 * !(($2) >= 0)];
  2056. test_array [0] = 0
  2057. ;
  2058. return 0;
  2059. }
  2060. _ACEOF
  2061. if ac_fn_cxx_try_compile "$LINENO"; then :
  2062. ac_lo=0 ac_mid=0
  2063. while :; do
  2064. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2065. /* end confdefs.h. */
  2066. $4
  2067. int
  2068. main ()
  2069. {
  2070. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2071. test_array [0] = 0
  2072. ;
  2073. return 0;
  2074. }
  2075. _ACEOF
  2076. if ac_fn_cxx_try_compile "$LINENO"; then :
  2077. ac_hi=$ac_mid; break
  2078. else
  2079. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  2080. if test $ac_lo -le $ac_mid; then
  2081. ac_lo= ac_hi=
  2082. break
  2083. fi
  2084. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  2085. fi
  2086. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2087. done
  2088. else
  2089. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2090. /* end confdefs.h. */
  2091. $4
  2092. int
  2093. main ()
  2094. {
  2095. static int test_array [1 - 2 * !(($2) < 0)];
  2096. test_array [0] = 0
  2097. ;
  2098. return 0;
  2099. }
  2100. _ACEOF
  2101. if ac_fn_cxx_try_compile "$LINENO"; then :
  2102. ac_hi=-1 ac_mid=-1
  2103. while :; do
  2104. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2105. /* end confdefs.h. */
  2106. $4
  2107. int
  2108. main ()
  2109. {
  2110. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  2111. test_array [0] = 0
  2112. ;
  2113. return 0;
  2114. }
  2115. _ACEOF
  2116. if ac_fn_cxx_try_compile "$LINENO"; then :
  2117. ac_lo=$ac_mid; break
  2118. else
  2119. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  2120. if test $ac_mid -le $ac_hi; then
  2121. ac_lo= ac_hi=
  2122. break
  2123. fi
  2124. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  2125. fi
  2126. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2127. done
  2128. else
  2129. ac_lo= ac_hi=
  2130. fi
  2131. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2132. fi
  2133. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2134. # Binary search between lo and hi bounds.
  2135. while test "x$ac_lo" != "x$ac_hi"; do
  2136. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  2137. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2138. /* end confdefs.h. */
  2139. $4
  2140. int
  2141. main ()
  2142. {
  2143. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2144. test_array [0] = 0
  2145. ;
  2146. return 0;
  2147. }
  2148. _ACEOF
  2149. if ac_fn_cxx_try_compile "$LINENO"; then :
  2150. ac_hi=$ac_mid
  2151. else
  2152. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  2153. fi
  2154. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2155. done
  2156. case $ac_lo in #((
  2157. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  2158. '') ac_retval=1 ;;
  2159. esac
  2160. else
  2161. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2162. /* end confdefs.h. */
  2163. $4
  2164. static long int longval () { return $2; }
  2165. static unsigned long int ulongval () { return $2; }
  2166. #include <stdio.h>
  2167. #include <stdlib.h>
  2168. int
  2169. main ()
  2170. {
  2171. FILE *f = fopen ("conftest.val", "w");
  2172. if (! f)
  2173. return 1;
  2174. if (($2) < 0)
  2175. {
  2176. long int i = longval ();
  2177. if (i != ($2))
  2178. return 1;
  2179. fprintf (f, "%ld", i);
  2180. }
  2181. else
  2182. {
  2183. unsigned long int i = ulongval ();
  2184. if (i != ($2))
  2185. return 1;
  2186. fprintf (f, "%lu", i);
  2187. }
  2188. /* Do not output a trailing newline, as this causes \r\n confusion
  2189. on some platforms. */
  2190. return ferror (f) || fclose (f) != 0;
  2191. ;
  2192. return 0;
  2193. }
  2194. _ACEOF
  2195. if ac_fn_cxx_try_run "$LINENO"; then :
  2196. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  2197. else
  2198. ac_retval=1
  2199. fi
  2200. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  2201. conftest.$ac_objext conftest.beam conftest.$ac_ext
  2202. rm -f conftest.val
  2203. fi
  2204. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2205. return $ac_retval
  2206. } # ac_fn_cxx_compute_int
  2207. # ac_fn_cxx_check_member LINENO AGGR MEMBER VAR INCLUDES
  2208. # ------------------------------------------------------
  2209. # Tries to find if the field MEMBER exists in type AGGR, after including
  2210. # INCLUDES, setting cache variable VAR accordingly.
  2211. ac_fn_cxx_check_member ()
  2212. {
  2213. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2214. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2215. $as_echo_n "checking for $2.$3... " >&6; }
  2216. if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
  2217. $as_echo_n "(cached) " >&6
  2218. else
  2219. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2220. /* end confdefs.h. */
  2221. $5
  2222. int
  2223. main ()
  2224. {
  2225. static $2 ac_aggr;
  2226. if (ac_aggr.$3)
  2227. return 0;
  2228. ;
  2229. return 0;
  2230. }
  2231. _ACEOF
  2232. if ac_fn_cxx_try_compile "$LINENO"; then :
  2233. eval "$4=yes"
  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 (sizeof 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. eval "$4=no"
  2252. fi
  2253. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2254. fi
  2255. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2256. fi
  2257. eval ac_res=\$$4
  2258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2259. $as_echo "$ac_res" >&6; }
  2260. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2261. } # ac_fn_cxx_check_member
  2262. cat >config.log <<_ACEOF
  2263. This file contains any messages produced by compilers while
  2264. running configure, to aid debugging if configure makes a mistake.
  2265. It was created by aria2 $as_me 1.6.1, which was
  2266. generated by GNU Autoconf 2.64. Invocation command line was
  2267. $ $0 $@
  2268. _ACEOF
  2269. exec 5>>config.log
  2270. {
  2271. cat <<_ASUNAME
  2272. ## --------- ##
  2273. ## Platform. ##
  2274. ## --------- ##
  2275. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2276. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2277. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2278. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2279. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2280. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2281. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2282. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2283. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2284. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2285. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2286. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2287. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2288. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2289. _ASUNAME
  2290. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2291. for as_dir in $PATH
  2292. do
  2293. IFS=$as_save_IFS
  2294. test -z "$as_dir" && as_dir=.
  2295. $as_echo "PATH: $as_dir"
  2296. done
  2297. IFS=$as_save_IFS
  2298. } >&5
  2299. cat >&5 <<_ACEOF
  2300. ## ----------- ##
  2301. ## Core tests. ##
  2302. ## ----------- ##
  2303. _ACEOF
  2304. # Keep a trace of the command line.
  2305. # Strip out --no-create and --no-recursion so they do not pile up.
  2306. # Strip out --silent because we don't want to record it for future runs.
  2307. # Also quote any args containing shell meta-characters.
  2308. # Make two passes to allow for proper duplicate-argument suppression.
  2309. ac_configure_args=
  2310. ac_configure_args0=
  2311. ac_configure_args1=
  2312. ac_must_keep_next=false
  2313. for ac_pass in 1 2
  2314. do
  2315. for ac_arg
  2316. do
  2317. case $ac_arg in
  2318. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2319. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2320. | -silent | --silent | --silen | --sile | --sil)
  2321. continue ;;
  2322. *\'*)
  2323. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2324. esac
  2325. case $ac_pass in
  2326. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2327. 2)
  2328. as_fn_append ac_configure_args1 " '$ac_arg'"
  2329. if test $ac_must_keep_next = true; then
  2330. ac_must_keep_next=false # Got value, back to normal.
  2331. else
  2332. case $ac_arg in
  2333. *=* | --config-cache | -C | -disable-* | --disable-* \
  2334. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2335. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2336. | -with-* | --with-* | -without-* | --without-* | --x)
  2337. case "$ac_configure_args0 " in
  2338. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2339. esac
  2340. ;;
  2341. -* ) ac_must_keep_next=true ;;
  2342. esac
  2343. fi
  2344. as_fn_append ac_configure_args " '$ac_arg'"
  2345. ;;
  2346. esac
  2347. done
  2348. done
  2349. { ac_configure_args0=; unset ac_configure_args0;}
  2350. { ac_configure_args1=; unset ac_configure_args1;}
  2351. # When interrupted or exit'd, cleanup temporary files, and complete
  2352. # config.log. We remove comments because anyway the quotes in there
  2353. # would cause problems or look ugly.
  2354. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2355. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2356. trap 'exit_status=$?
  2357. # Save into config.log some information that might help in debugging.
  2358. {
  2359. echo
  2360. cat <<\_ASBOX
  2361. ## ---------------- ##
  2362. ## Cache variables. ##
  2363. ## ---------------- ##
  2364. _ASBOX
  2365. echo
  2366. # The following way of writing the cache mishandles newlines in values,
  2367. (
  2368. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2369. eval ac_val=\$$ac_var
  2370. case $ac_val in #(
  2371. *${as_nl}*)
  2372. case $ac_var in #(
  2373. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2374. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2375. esac
  2376. case $ac_var in #(
  2377. _ | IFS | as_nl) ;; #(
  2378. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2379. *) { eval $ac_var=; unset $ac_var;} ;;
  2380. esac ;;
  2381. esac
  2382. done
  2383. (set) 2>&1 |
  2384. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2385. *${as_nl}ac_space=\ *)
  2386. sed -n \
  2387. "s/'\''/'\''\\\\'\'''\''/g;
  2388. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2389. ;; #(
  2390. *)
  2391. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2392. ;;
  2393. esac |
  2394. sort
  2395. )
  2396. echo
  2397. cat <<\_ASBOX
  2398. ## ----------------- ##
  2399. ## Output variables. ##
  2400. ## ----------------- ##
  2401. _ASBOX
  2402. echo
  2403. for ac_var in $ac_subst_vars
  2404. do
  2405. eval ac_val=\$$ac_var
  2406. case $ac_val in
  2407. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2408. esac
  2409. $as_echo "$ac_var='\''$ac_val'\''"
  2410. done | sort
  2411. echo
  2412. if test -n "$ac_subst_files"; then
  2413. cat <<\_ASBOX
  2414. ## ------------------- ##
  2415. ## File substitutions. ##
  2416. ## ------------------- ##
  2417. _ASBOX
  2418. echo
  2419. for ac_var in $ac_subst_files
  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. fi
  2429. if test -s confdefs.h; then
  2430. cat <<\_ASBOX
  2431. ## ----------- ##
  2432. ## confdefs.h. ##
  2433. ## ----------- ##
  2434. _ASBOX
  2435. echo
  2436. cat confdefs.h
  2437. echo
  2438. fi
  2439. test "$ac_signal" != 0 &&
  2440. $as_echo "$as_me: caught signal $ac_signal"
  2441. $as_echo "$as_me: exit $exit_status"
  2442. } >&5
  2443. rm -f core *.core core.conftest.* &&
  2444. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2445. exit $exit_status
  2446. ' 0
  2447. for ac_signal in 1 2 13 15; do
  2448. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2449. done
  2450. ac_signal=0
  2451. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2452. rm -f -r conftest* confdefs.h
  2453. $as_echo "/* confdefs.h */" > confdefs.h
  2454. # Predefined preprocessor variables.
  2455. cat >>confdefs.h <<_ACEOF
  2456. #define PACKAGE_NAME "$PACKAGE_NAME"
  2457. _ACEOF
  2458. cat >>confdefs.h <<_ACEOF
  2459. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2460. _ACEOF
  2461. cat >>confdefs.h <<_ACEOF
  2462. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2463. _ACEOF
  2464. cat >>confdefs.h <<_ACEOF
  2465. #define PACKAGE_STRING "$PACKAGE_STRING"
  2466. _ACEOF
  2467. cat >>confdefs.h <<_ACEOF
  2468. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2469. _ACEOF
  2470. cat >>confdefs.h <<_ACEOF
  2471. #define PACKAGE_URL "$PACKAGE_URL"
  2472. _ACEOF
  2473. # Let the site file select an alternate cache file if it wants to.
  2474. # Prefer an explicitly selected file to automatically selected ones.
  2475. ac_site_file1=NONE
  2476. ac_site_file2=NONE
  2477. if test -n "$CONFIG_SITE"; then
  2478. ac_site_file1=$CONFIG_SITE
  2479. elif test "x$prefix" != xNONE; then
  2480. ac_site_file1=$prefix/share/config.site
  2481. ac_site_file2=$prefix/etc/config.site
  2482. else
  2483. ac_site_file1=$ac_default_prefix/share/config.site
  2484. ac_site_file2=$ac_default_prefix/etc/config.site
  2485. fi
  2486. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2487. do
  2488. test "x$ac_site_file" = xNONE && continue
  2489. if test -r "$ac_site_file"; then
  2490. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2491. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2492. sed 's/^/| /' "$ac_site_file" >&5
  2493. . "$ac_site_file"
  2494. fi
  2495. done
  2496. if test -r "$cache_file"; then
  2497. # Some versions of bash will fail to source /dev/null (special
  2498. # files actually), so we avoid doing that.
  2499. if test -f "$cache_file"; then
  2500. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2501. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2502. case $cache_file in
  2503. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2504. *) . "./$cache_file";;
  2505. esac
  2506. fi
  2507. else
  2508. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2509. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2510. >$cache_file
  2511. fi
  2512. gt_needs="$gt_needs "
  2513. as_fn_append ac_header_list " sys/time.h"
  2514. as_fn_append ac_header_list " unistd.h"
  2515. as_fn_append ac_func_list " alarm"
  2516. # Check that the precious variables saved in the cache have kept the same
  2517. # value.
  2518. ac_cache_corrupted=false
  2519. for ac_var in $ac_precious_vars; do
  2520. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2521. eval ac_new_set=\$ac_env_${ac_var}_set
  2522. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2523. eval ac_new_val=\$ac_env_${ac_var}_value
  2524. case $ac_old_set,$ac_new_set in
  2525. set,)
  2526. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2527. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2528. ac_cache_corrupted=: ;;
  2529. ,set)
  2530. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2531. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2532. ac_cache_corrupted=: ;;
  2533. ,);;
  2534. *)
  2535. if test "x$ac_old_val" != "x$ac_new_val"; then
  2536. # differences in whitespace do not lead to failure.
  2537. ac_old_val_w=`echo x $ac_old_val`
  2538. ac_new_val_w=`echo x $ac_new_val`
  2539. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2540. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2541. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2542. ac_cache_corrupted=:
  2543. else
  2544. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2545. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2546. eval $ac_var=\$ac_old_val
  2547. fi
  2548. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2549. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2550. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2551. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2552. fi;;
  2553. esac
  2554. # Pass precious variables to config.status.
  2555. if test "$ac_new_set" = set; then
  2556. case $ac_new_val in
  2557. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2558. *) ac_arg=$ac_var=$ac_new_val ;;
  2559. esac
  2560. case " $ac_configure_args " in
  2561. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2562. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2563. esac
  2564. fi
  2565. done
  2566. if $ac_cache_corrupted; then
  2567. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2568. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2569. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2570. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2571. as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2572. fi
  2573. ## -------------------- ##
  2574. ## Main body of script. ##
  2575. ## -------------------- ##
  2576. ac_ext=c
  2577. ac_cpp='$CPP $CPPFLAGS'
  2578. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2579. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2580. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2581. ac_aux_dir=
  2582. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2583. for ac_t in install-sh install.sh shtool; do
  2584. if test -f "$ac_dir/$ac_t"; then
  2585. ac_aux_dir=$ac_dir
  2586. ac_install_sh="$ac_aux_dir/$ac_t -c"
  2587. break 2
  2588. fi
  2589. done
  2590. done
  2591. if test -z "$ac_aux_dir"; then
  2592. as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2593. fi
  2594. # These three variables are undocumented and unsupported,
  2595. # and are intended to be withdrawn in a future Autoconf release.
  2596. # They can cause serious problems if a builder's source tree is in a directory
  2597. # whose full name contains unusual characters.
  2598. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2599. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2600. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2601. # Make sure we can run config.sub.
  2602. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2603. as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2604. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2605. $as_echo_n "checking build system type... " >&6; }
  2606. if test "${ac_cv_build+set}" = set; then :
  2607. $as_echo_n "(cached) " >&6
  2608. else
  2609. ac_build_alias=$build_alias
  2610. test "x$ac_build_alias" = x &&
  2611. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2612. test "x$ac_build_alias" = x &&
  2613. as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  2614. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2615. as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2616. fi
  2617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2618. $as_echo "$ac_cv_build" >&6; }
  2619. case $ac_cv_build in
  2620. *-*-*) ;;
  2621. *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  2622. esac
  2623. build=$ac_cv_build
  2624. ac_save_IFS=$IFS; IFS='-'
  2625. set x $ac_cv_build
  2626. shift
  2627. build_cpu=$1
  2628. build_vendor=$2
  2629. shift; shift
  2630. # Remember, the first character of IFS is used to create $*,
  2631. # except with old shells:
  2632. build_os=$*
  2633. IFS=$ac_save_IFS
  2634. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2635. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2636. $as_echo_n "checking host system type... " >&6; }
  2637. if test "${ac_cv_host+set}" = set; then :
  2638. $as_echo_n "(cached) " >&6
  2639. else
  2640. if test "x$host_alias" = x; then
  2641. ac_cv_host=$ac_cv_build
  2642. else
  2643. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2644. as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2645. fi
  2646. fi
  2647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2648. $as_echo "$ac_cv_host" >&6; }
  2649. case $ac_cv_host in
  2650. *-*-*) ;;
  2651. *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  2652. esac
  2653. host=$ac_cv_host
  2654. ac_save_IFS=$IFS; IFS='-'
  2655. set x $ac_cv_host
  2656. shift
  2657. host_cpu=$1
  2658. host_vendor=$2
  2659. shift; shift
  2660. # Remember, the first character of IFS is used to create $*,
  2661. # except with old shells:
  2662. host_os=$*
  2663. IFS=$ac_save_IFS
  2664. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2665. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2666. $as_echo_n "checking target system type... " >&6; }
  2667. if test "${ac_cv_target+set}" = set; then :
  2668. $as_echo_n "(cached) " >&6
  2669. else
  2670. if test "x$target_alias" = x; then
  2671. ac_cv_target=$ac_cv_host
  2672. else
  2673. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2674. as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2675. fi
  2676. fi
  2677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2678. $as_echo "$ac_cv_target" >&6; }
  2679. case $ac_cv_target in
  2680. *-*-*) ;;
  2681. *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
  2682. esac
  2683. target=$ac_cv_target
  2684. ac_save_IFS=$IFS; IFS='-'
  2685. set x $ac_cv_target
  2686. shift
  2687. target_cpu=$1
  2688. target_vendor=$2
  2689. shift; shift
  2690. # Remember, the first character of IFS is used to create $*,
  2691. # except with old shells:
  2692. target_os=$*
  2693. IFS=$ac_save_IFS
  2694. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2695. # The aliases save the names the user supplied, while $host etc.
  2696. # will get canonicalized.
  2697. test -n "$target_alias" &&
  2698. test "$program_prefix$program_suffix$program_transform_name" = \
  2699. NONENONEs,x,x, &&
  2700. program_prefix=${target_alias}-
  2701. am__api_version='1.11'
  2702. # Find a good install program. We prefer a C program (faster),
  2703. # so one script is as good as another. But avoid the broken or
  2704. # incompatible versions:
  2705. # SysV /etc/install, /usr/sbin/install
  2706. # SunOS /usr/etc/install
  2707. # IRIX /sbin/install
  2708. # AIX /bin/install
  2709. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2710. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2711. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2712. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2713. # OS/2's system install, which has a completely different semantic
  2714. # ./install, which can be erroneously created by make from ./install.sh.
  2715. # Reject install programs that cannot install multiple files.
  2716. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2717. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2718. if test -z "$INSTALL"; then
  2719. if test "${ac_cv_path_install+set}" = set; then :
  2720. $as_echo_n "(cached) " >&6
  2721. else
  2722. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2723. for as_dir in $PATH
  2724. do
  2725. IFS=$as_save_IFS
  2726. test -z "$as_dir" && as_dir=.
  2727. # Account for people who put trailing slashes in PATH elements.
  2728. case $as_dir/ in #((
  2729. ./ | .// | /[cC]/* | \
  2730. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2731. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2732. /usr/ucb/* ) ;;
  2733. *)
  2734. # OSF1 and SCO ODT 3.0 have their own names for install.
  2735. # Don't use installbsd from OSF since it installs stuff as root
  2736. # by default.
  2737. for ac_prog in ginstall scoinst install; do
  2738. for ac_exec_ext in '' $ac_executable_extensions; do
  2739. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2740. if test $ac_prog = install &&
  2741. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2742. # AIX install. It has an incompatible calling convention.
  2743. :
  2744. elif test $ac_prog = install &&
  2745. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2746. # program-specific install script used by HP pwplus--don't use.
  2747. :
  2748. else
  2749. rm -rf conftest.one conftest.two conftest.dir
  2750. echo one > conftest.one
  2751. echo two > conftest.two
  2752. mkdir conftest.dir
  2753. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2754. test -s conftest.one && test -s conftest.two &&
  2755. test -s conftest.dir/conftest.one &&
  2756. test -s conftest.dir/conftest.two
  2757. then
  2758. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2759. break 3
  2760. fi
  2761. fi
  2762. fi
  2763. done
  2764. done
  2765. ;;
  2766. esac
  2767. done
  2768. IFS=$as_save_IFS
  2769. rm -rf conftest.one conftest.two conftest.dir
  2770. fi
  2771. if test "${ac_cv_path_install+set}" = set; then
  2772. INSTALL=$ac_cv_path_install
  2773. else
  2774. # As a last resort, use the slow shell script. Don't cache a
  2775. # value for INSTALL within a source directory, because that will
  2776. # break other packages using the cache if that directory is
  2777. # removed, or if the value is a relative name.
  2778. INSTALL=$ac_install_sh
  2779. fi
  2780. fi
  2781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2782. $as_echo "$INSTALL" >&6; }
  2783. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2784. # It thinks the first close brace ends the variable substitution.
  2785. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2786. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2787. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2788. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2789. $as_echo_n "checking whether build environment is sane... " >&6; }
  2790. # Just in case
  2791. sleep 1
  2792. echo timestamp > conftest.file
  2793. # Reject unsafe characters in $srcdir or the absolute working directory
  2794. # name. Accept space and tab only in the latter.
  2795. am_lf='
  2796. '
  2797. case `pwd` in
  2798. *[\\\"\#\$\&\'\`$am_lf]*)
  2799. as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
  2800. esac
  2801. case $srcdir in
  2802. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2803. as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  2804. esac
  2805. # Do `set' in a subshell so we don't clobber the current shell's
  2806. # arguments. Must try -L first in case configure is actually a
  2807. # symlink; some systems play weird games with the mod time of symlinks
  2808. # (eg FreeBSD returns the mod time of the symlink's containing
  2809. # directory).
  2810. if (
  2811. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2812. if test "$*" = "X"; then
  2813. # -L didn't work.
  2814. set X `ls -t "$srcdir/configure" conftest.file`
  2815. fi
  2816. rm -f conftest.file
  2817. if test "$*" != "X $srcdir/configure conftest.file" \
  2818. && test "$*" != "X conftest.file $srcdir/configure"; then
  2819. # If neither matched, then we have a broken ls. This can happen
  2820. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2821. # broken ls alias from the environment. This has actually
  2822. # happened. Such a system could not be considered "sane".
  2823. as_fn_error "ls -t appears to fail. Make sure there is not a broken
  2824. alias in your environment" "$LINENO" 5
  2825. fi
  2826. test "$2" = conftest.file
  2827. )
  2828. then
  2829. # Ok.
  2830. :
  2831. else
  2832. as_fn_error "newly created file is older than distributed files!
  2833. Check your system clock" "$LINENO" 5
  2834. fi
  2835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2836. $as_echo "yes" >&6; }
  2837. test "$program_prefix" != NONE &&
  2838. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2839. # Use a double $ so make ignores it.
  2840. test "$program_suffix" != NONE &&
  2841. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2842. # Double any \ or $.
  2843. # By default was `s,x,x', remove it if useless.
  2844. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2845. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2846. # expand $ac_aux_dir to an absolute path
  2847. am_aux_dir=`cd $ac_aux_dir && pwd`
  2848. if test x"${MISSING+set}" != xset; then
  2849. case $am_aux_dir in
  2850. *\ * | *\ *)
  2851. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2852. *)
  2853. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2854. esac
  2855. fi
  2856. # Use eval to expand $SHELL
  2857. if eval "$MISSING --run true"; then
  2858. am_missing_run="$MISSING --run "
  2859. else
  2860. am_missing_run=
  2861. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  2862. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2863. fi
  2864. if test x"${install_sh}" != xset; then
  2865. case $am_aux_dir in
  2866. *\ * | *\ *)
  2867. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2868. *)
  2869. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2870. esac
  2871. fi
  2872. # Installed binaries are usually stripped using `strip' when the user
  2873. # run `make install-strip'. However `strip' might not be the right
  2874. # tool to use in cross-compilation environments, therefore Automake
  2875. # will honor the `STRIP' environment variable to overrule this program.
  2876. if test "$cross_compiling" != no; then
  2877. if test -n "$ac_tool_prefix"; then
  2878. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2879. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2880. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2881. $as_echo_n "checking for $ac_word... " >&6; }
  2882. if test "${ac_cv_prog_STRIP+set}" = set; then :
  2883. $as_echo_n "(cached) " >&6
  2884. else
  2885. if test -n "$STRIP"; then
  2886. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2887. else
  2888. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2889. for as_dir in $PATH
  2890. do
  2891. IFS=$as_save_IFS
  2892. test -z "$as_dir" && as_dir=.
  2893. for ac_exec_ext in '' $ac_executable_extensions; do
  2894. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2895. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2896. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2897. break 2
  2898. fi
  2899. done
  2900. done
  2901. IFS=$as_save_IFS
  2902. fi
  2903. fi
  2904. STRIP=$ac_cv_prog_STRIP
  2905. if test -n "$STRIP"; then
  2906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2907. $as_echo "$STRIP" >&6; }
  2908. else
  2909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2910. $as_echo "no" >&6; }
  2911. fi
  2912. fi
  2913. if test -z "$ac_cv_prog_STRIP"; then
  2914. ac_ct_STRIP=$STRIP
  2915. # Extract the first word of "strip", so it can be a program name with args.
  2916. set dummy strip; ac_word=$2
  2917. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2918. $as_echo_n "checking for $ac_word... " >&6; }
  2919. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  2920. $as_echo_n "(cached) " >&6
  2921. else
  2922. if test -n "$ac_ct_STRIP"; then
  2923. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2924. else
  2925. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2926. for as_dir in $PATH
  2927. do
  2928. IFS=$as_save_IFS
  2929. test -z "$as_dir" && as_dir=.
  2930. for ac_exec_ext in '' $ac_executable_extensions; do
  2931. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2932. ac_cv_prog_ac_ct_STRIP="strip"
  2933. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2934. break 2
  2935. fi
  2936. done
  2937. done
  2938. IFS=$as_save_IFS
  2939. fi
  2940. fi
  2941. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2942. if test -n "$ac_ct_STRIP"; then
  2943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2944. $as_echo "$ac_ct_STRIP" >&6; }
  2945. else
  2946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2947. $as_echo "no" >&6; }
  2948. fi
  2949. if test "x$ac_ct_STRIP" = x; then
  2950. STRIP=":"
  2951. else
  2952. case $cross_compiling:$ac_tool_warned in
  2953. yes:)
  2954. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2955. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2956. ac_tool_warned=yes ;;
  2957. esac
  2958. STRIP=$ac_ct_STRIP
  2959. fi
  2960. else
  2961. STRIP="$ac_cv_prog_STRIP"
  2962. fi
  2963. fi
  2964. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2965. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2966. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2967. if test -z "$MKDIR_P"; then
  2968. if test "${ac_cv_path_mkdir+set}" = set; then :
  2969. $as_echo_n "(cached) " >&6
  2970. else
  2971. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2972. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2973. do
  2974. IFS=$as_save_IFS
  2975. test -z "$as_dir" && as_dir=.
  2976. for ac_prog in mkdir gmkdir; do
  2977. for ac_exec_ext in '' $ac_executable_extensions; do
  2978. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2979. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2980. 'mkdir (GNU coreutils) '* | \
  2981. 'mkdir (coreutils) '* | \
  2982. 'mkdir (fileutils) '4.1*)
  2983. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2984. break 3;;
  2985. esac
  2986. done
  2987. done
  2988. done
  2989. IFS=$as_save_IFS
  2990. fi
  2991. if test "${ac_cv_path_mkdir+set}" = set; then
  2992. MKDIR_P="$ac_cv_path_mkdir -p"
  2993. else
  2994. # As a last resort, use the slow shell script. Don't cache a
  2995. # value for MKDIR_P within a source directory, because that will
  2996. # break other packages using the cache if that directory is
  2997. # removed, or if the value is a relative name.
  2998. test -d ./--version && rmdir ./--version
  2999. MKDIR_P="$ac_install_sh -d"
  3000. fi
  3001. fi
  3002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  3003. $as_echo "$MKDIR_P" >&6; }
  3004. mkdir_p="$MKDIR_P"
  3005. case $mkdir_p in
  3006. [\\/$]* | ?:[\\/]*) ;;
  3007. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  3008. esac
  3009. for ac_prog in gawk mawk nawk awk
  3010. do
  3011. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3012. set dummy $ac_prog; ac_word=$2
  3013. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3014. $as_echo_n "checking for $ac_word... " >&6; }
  3015. if test "${ac_cv_prog_AWK+set}" = set; then :
  3016. $as_echo_n "(cached) " >&6
  3017. else
  3018. if test -n "$AWK"; then
  3019. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3020. else
  3021. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3022. for as_dir in $PATH
  3023. do
  3024. IFS=$as_save_IFS
  3025. test -z "$as_dir" && as_dir=.
  3026. for ac_exec_ext in '' $ac_executable_extensions; do
  3027. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3028. ac_cv_prog_AWK="$ac_prog"
  3029. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3030. break 2
  3031. fi
  3032. done
  3033. done
  3034. IFS=$as_save_IFS
  3035. fi
  3036. fi
  3037. AWK=$ac_cv_prog_AWK
  3038. if test -n "$AWK"; then
  3039. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  3040. $as_echo "$AWK" >&6; }
  3041. else
  3042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3043. $as_echo "no" >&6; }
  3044. fi
  3045. test -n "$AWK" && break
  3046. done
  3047. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3048. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3049. set x ${MAKE-make}
  3050. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3051. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  3052. $as_echo_n "(cached) " >&6
  3053. else
  3054. cat >conftest.make <<\_ACEOF
  3055. SHELL = /bin/sh
  3056. all:
  3057. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3058. _ACEOF
  3059. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  3060. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3061. *@@@%%%=?*=@@@%%%*)
  3062. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3063. *)
  3064. eval ac_cv_prog_make_${ac_make}_set=no;;
  3065. esac
  3066. rm -f conftest.make
  3067. fi
  3068. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3069. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3070. $as_echo "yes" >&6; }
  3071. SET_MAKE=
  3072. else
  3073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3074. $as_echo "no" >&6; }
  3075. SET_MAKE="MAKE=${MAKE-make}"
  3076. fi
  3077. rm -rf .tst 2>/dev/null
  3078. mkdir .tst 2>/dev/null
  3079. if test -d .tst; then
  3080. am__leading_dot=.
  3081. else
  3082. am__leading_dot=_
  3083. fi
  3084. rmdir .tst 2>/dev/null
  3085. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  3086. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  3087. # is not polluted with repeated "-I."
  3088. am__isrc=' -I$(srcdir)'
  3089. # test to see if srcdir already configured
  3090. if test -f $srcdir/config.status; then
  3091. as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  3092. fi
  3093. fi
  3094. # test whether we have cygpath
  3095. if test -z "$CYGPATH_W"; then
  3096. if (cygpath --version) >/dev/null 2>/dev/null; then
  3097. CYGPATH_W='cygpath -w'
  3098. else
  3099. CYGPATH_W=echo
  3100. fi
  3101. fi
  3102. # Define the identity of the package.
  3103. PACKAGE='aria2'
  3104. VERSION='1.6.1'
  3105. cat >>confdefs.h <<_ACEOF
  3106. #define PACKAGE "$PACKAGE"
  3107. _ACEOF
  3108. cat >>confdefs.h <<_ACEOF
  3109. #define VERSION "$VERSION"
  3110. _ACEOF
  3111. # Some tools Automake needs.
  3112. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  3113. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  3114. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  3115. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  3116. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  3117. # We need awk for the "check" target. The system "awk" is bad on
  3118. # some platforms.
  3119. # Always define AMTAR for backward compatibility.
  3120. AMTAR=${AMTAR-"${am_missing_run}tar"}
  3121. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  3122. # Check whether --with-cppunit-prefix was given.
  3123. if test "${with_cppunit_prefix+set}" = set; then :
  3124. withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
  3125. else
  3126. cppunit_config_prefix=""
  3127. fi
  3128. # Check whether --with-cppunit-exec-prefix was given.
  3129. if test "${with_cppunit_exec_prefix+set}" = set; then :
  3130. withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
  3131. else
  3132. cppunit_config_exec_prefix=""
  3133. fi
  3134. if test x$cppunit_config_exec_prefix != x ; then
  3135. cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
  3136. if test x${CPPUNIT_CONFIG+set} != xset ; then
  3137. CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
  3138. fi
  3139. fi
  3140. if test x$cppunit_config_prefix != x ; then
  3141. cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
  3142. if test x${CPPUNIT_CONFIG+set} != xset ; then
  3143. CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
  3144. fi
  3145. fi
  3146. # Extract the first word of "cppunit-config", so it can be a program name with args.
  3147. set dummy cppunit-config; ac_word=$2
  3148. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3149. $as_echo_n "checking for $ac_word... " >&6; }
  3150. if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then :
  3151. $as_echo_n "(cached) " >&6
  3152. else
  3153. case $CPPUNIT_CONFIG in
  3154. [\\/]* | ?:[\\/]*)
  3155. ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
  3156. ;;
  3157. *)
  3158. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3159. for as_dir in $PATH
  3160. do
  3161. IFS=$as_save_IFS
  3162. test -z "$as_dir" && as_dir=.
  3163. for ac_exec_ext in '' $ac_executable_extensions; do
  3164. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3165. ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  3166. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3167. break 2
  3168. fi
  3169. done
  3170. done
  3171. IFS=$as_save_IFS
  3172. test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
  3173. ;;
  3174. esac
  3175. fi
  3176. CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
  3177. if test -n "$CPPUNIT_CONFIG"; then
  3178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPUNIT_CONFIG" >&5
  3179. $as_echo "$CPPUNIT_CONFIG" >&6; }
  3180. else
  3181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3182. $as_echo "no" >&6; }
  3183. fi
  3184. cppunit_version_min=1.10.2
  3185. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cppunit - version >= $cppunit_version_min" >&5
  3186. $as_echo_n "checking for Cppunit - version >= $cppunit_version_min... " >&6; }
  3187. no_cppunit=""
  3188. if test "$CPPUNIT_CONFIG" = "no" ; then
  3189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3190. $as_echo "no" >&6; }
  3191. no_cppunit=yes
  3192. else
  3193. CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
  3194. CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
  3195. cppunit_version=`$CPPUNIT_CONFIG --version`
  3196. cppunit_major_version=`echo $cppunit_version | \
  3197. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  3198. cppunit_minor_version=`echo $cppunit_version | \
  3199. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  3200. cppunit_micro_version=`echo $cppunit_version | \
  3201. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  3202. cppunit_major_min=`echo $cppunit_version_min | \
  3203. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  3204. if test "x${cppunit_major_min}" = "x" ; then
  3205. cppunit_major_min=0
  3206. fi
  3207. cppunit_minor_min=`echo $cppunit_version_min | \
  3208. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  3209. if test "x${cppunit_minor_min}" = "x" ; then
  3210. cppunit_minor_min=0
  3211. fi
  3212. cppunit_micro_min=`echo $cppunit_version_min | \
  3213. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  3214. if test "x${cppunit_micro_min}" = "x" ; then
  3215. cppunit_micro_min=0
  3216. fi
  3217. cppunit_version_proper=`expr \
  3218. $cppunit_major_version \> $cppunit_major_min \| \
  3219. $cppunit_major_version \= $cppunit_major_min \& \
  3220. $cppunit_minor_version \> $cppunit_minor_min \| \
  3221. $cppunit_major_version \= $cppunit_major_min \& \
  3222. $cppunit_minor_version \= $cppunit_minor_min \& \
  3223. $cppunit_micro_version \>= $cppunit_micro_min `
  3224. if test "$cppunit_version_proper" = "1" ; then
  3225. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
  3226. $as_echo "$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
  3227. else
  3228. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3229. $as_echo "no" >&6; }
  3230. no_cppunit=yes
  3231. fi
  3232. fi
  3233. if test "x$no_cppunit" = x ; then
  3234. :
  3235. else
  3236. CPPUNIT_CFLAGS=""
  3237. CPPUNIT_LIBS=""
  3238. :
  3239. fi
  3240. ac_config_headers="$ac_config_headers config.h"
  3241. case "$target" in
  3242. *mingw*|*cygwin*)
  3243. WINSOCK_LIBS="-lws2_32 -lpthread"
  3244. ;;
  3245. esac
  3246. cat >>confdefs.h <<_ACEOF
  3247. #define TARGET "$target"
  3248. _ACEOF
  3249. # Checks for arguments.
  3250. # Check whether --with-gnutls was given.
  3251. if test "${with_gnutls+set}" = set; then :
  3252. withval=$with_gnutls; with_gnutls=$withval
  3253. else
  3254. with_gnutls=yes
  3255. fi
  3256. # Check whether --with-openssl was given.
  3257. if test "${with_openssl+set}" = set; then :
  3258. withval=$with_openssl; with_openssl=$withval
  3259. else
  3260. with_openssl=yes
  3261. fi
  3262. # Check whether --with-sqlite3 was given.
  3263. if test "${with_sqlite3+set}" = set; then :
  3264. withval=$with_sqlite3; with_sqlite3=$withval
  3265. else
  3266. with_sqlite3=yes
  3267. fi
  3268. # Check whether --with-libxml2 was given.
  3269. if test "${with_libxml2+set}" = set; then :
  3270. withval=$with_libxml2; with_libxml2=$withval
  3271. else
  3272. with_libxml2=yes
  3273. fi
  3274. # Check whether --with-libexpat was given.
  3275. if test "${with_libexpat+set}" = set; then :
  3276. withval=$with_libexpat; with_libexpat=$withval
  3277. else
  3278. with_libexpat=yes
  3279. fi
  3280. # Check whether --with-libcares was given.
  3281. if test "${with_libcares+set}" = set; then :
  3282. withval=$with_libcares; with_libcares=$withval
  3283. else
  3284. with_libcares=yes
  3285. fi
  3286. # Check whether --with-libz was given.
  3287. if test "${with_libz+set}" = set; then :
  3288. withval=$with_libz; with_libz=$withval
  3289. else
  3290. with_libz=yes
  3291. fi
  3292. # Check whether --enable-bittorrent was given.
  3293. if test "${enable_bittorrent+set}" = set; then :
  3294. enableval=$enable_bittorrent; enable_bittorrent=$enableval
  3295. else
  3296. enable_bittorrent=yes
  3297. fi
  3298. # Check whether --enable-metalink was given.
  3299. if test "${enable_metalink+set}" = set; then :
  3300. enableval=$enable_metalink; enable_metalink=$enableval
  3301. else
  3302. enable_metalink=yes
  3303. fi
  3304. # Check whether --enable-epoll was given.
  3305. if test "${enable_epoll+set}" = set; then :
  3306. enableval=$enable_epoll; enable_epoll=$enableval
  3307. else
  3308. enable_epoll=yes
  3309. fi
  3310. # Check whether --with-ca-bundle was given.
  3311. if test "${with_ca_bundle+set}" = set; then :
  3312. withval=$with_ca_bundle; ca_bundle=$withval
  3313. else
  3314. ca_bundle=""
  3315. fi
  3316. # Checks for programs.
  3317. ac_ext=cpp
  3318. ac_cpp='$CXXCPP $CPPFLAGS'
  3319. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3320. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3321. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3322. if test -z "$CXX"; then
  3323. if test -n "$CCC"; then
  3324. CXX=$CCC
  3325. else
  3326. if test -n "$ac_tool_prefix"; then
  3327. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3328. do
  3329. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3330. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3331. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3332. $as_echo_n "checking for $ac_word... " >&6; }
  3333. if test "${ac_cv_prog_CXX+set}" = set; then :
  3334. $as_echo_n "(cached) " >&6
  3335. else
  3336. if test -n "$CXX"; then
  3337. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  3338. else
  3339. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3340. for as_dir in $PATH
  3341. do
  3342. IFS=$as_save_IFS
  3343. test -z "$as_dir" && as_dir=.
  3344. for ac_exec_ext in '' $ac_executable_extensions; do
  3345. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3346. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  3347. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3348. break 2
  3349. fi
  3350. done
  3351. done
  3352. IFS=$as_save_IFS
  3353. fi
  3354. fi
  3355. CXX=$ac_cv_prog_CXX
  3356. if test -n "$CXX"; then
  3357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  3358. $as_echo "$CXX" >&6; }
  3359. else
  3360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3361. $as_echo "no" >&6; }
  3362. fi
  3363. test -n "$CXX" && break
  3364. done
  3365. fi
  3366. if test -z "$CXX"; then
  3367. ac_ct_CXX=$CXX
  3368. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3369. do
  3370. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3371. set dummy $ac_prog; ac_word=$2
  3372. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3373. $as_echo_n "checking for $ac_word... " >&6; }
  3374. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  3375. $as_echo_n "(cached) " >&6
  3376. else
  3377. if test -n "$ac_ct_CXX"; then
  3378. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  3379. else
  3380. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3381. for as_dir in $PATH
  3382. do
  3383. IFS=$as_save_IFS
  3384. test -z "$as_dir" && as_dir=.
  3385. for ac_exec_ext in '' $ac_executable_extensions; do
  3386. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3387. ac_cv_prog_ac_ct_CXX="$ac_prog"
  3388. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3389. break 2
  3390. fi
  3391. done
  3392. done
  3393. IFS=$as_save_IFS
  3394. fi
  3395. fi
  3396. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  3397. if test -n "$ac_ct_CXX"; then
  3398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  3399. $as_echo "$ac_ct_CXX" >&6; }
  3400. else
  3401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3402. $as_echo "no" >&6; }
  3403. fi
  3404. test -n "$ac_ct_CXX" && break
  3405. done
  3406. if test "x$ac_ct_CXX" = x; then
  3407. CXX="g++"
  3408. else
  3409. case $cross_compiling:$ac_tool_warned in
  3410. yes:)
  3411. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3412. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3413. ac_tool_warned=yes ;;
  3414. esac
  3415. CXX=$ac_ct_CXX
  3416. fi
  3417. fi
  3418. fi
  3419. fi
  3420. # Provide some information about the compiler.
  3421. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  3422. set X $ac_compile
  3423. ac_compiler=$2
  3424. for ac_option in --version -v -V -qversion; do
  3425. { { ac_try="$ac_compiler $ac_option >&5"
  3426. case "(($ac_try" in
  3427. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3428. *) ac_try_echo=$ac_try;;
  3429. esac
  3430. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3431. $as_echo "$ac_try_echo"; } >&5
  3432. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3433. ac_status=$?
  3434. if test -s conftest.err; then
  3435. sed '10a\
  3436. ... rest of stderr output deleted ...
  3437. 10q' conftest.err >conftest.er1
  3438. cat conftest.er1 >&5
  3439. rm -f conftest.er1 conftest.err
  3440. fi
  3441. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3442. test $ac_status = 0; }
  3443. done
  3444. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3445. /* end confdefs.h. */
  3446. #include <stdio.h>
  3447. int
  3448. main ()
  3449. {
  3450. FILE *f = fopen ("conftest.out", "w");
  3451. return ferror (f) || fclose (f) != 0;
  3452. ;
  3453. return 0;
  3454. }
  3455. _ACEOF
  3456. ac_clean_files_save=$ac_clean_files
  3457. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
  3458. # Try to create an executable without -o first, disregard a.out.
  3459. # It will help us diagnose broken compilers, and finding out an intuition
  3460. # of exeext.
  3461. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
  3462. $as_echo_n "checking for C++ compiler default output file name... " >&6; }
  3463. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3464. # The possible output files:
  3465. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3466. ac_rmfiles=
  3467. for ac_file in $ac_files
  3468. do
  3469. case $ac_file in
  3470. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3471. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3472. esac
  3473. done
  3474. rm -f $ac_rmfiles
  3475. if { { ac_try="$ac_link_default"
  3476. case "(($ac_try" in
  3477. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3478. *) ac_try_echo=$ac_try;;
  3479. esac
  3480. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3481. $as_echo "$ac_try_echo"; } >&5
  3482. (eval "$ac_link_default") 2>&5
  3483. ac_status=$?
  3484. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3485. test $ac_status = 0; }; then :
  3486. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3487. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3488. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3489. # so that the user can short-circuit this test for compilers unknown to
  3490. # Autoconf.
  3491. for ac_file in $ac_files ''
  3492. do
  3493. test -f "$ac_file" || continue
  3494. case $ac_file in
  3495. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3496. ;;
  3497. [ab].out )
  3498. # We found the default executable, but exeext='' is most
  3499. # certainly right.
  3500. break;;
  3501. *.* )
  3502. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3503. then :; else
  3504. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3505. fi
  3506. # We set ac_cv_exeext here because the later test for it is not
  3507. # safe: cross compilers may not add the suffix if given an `-o'
  3508. # argument, so we may need to know it at that point already.
  3509. # Even if this section looks crufty: it has the advantage of
  3510. # actually working.
  3511. break;;
  3512. * )
  3513. break;;
  3514. esac
  3515. done
  3516. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3517. else
  3518. ac_file=''
  3519. fi
  3520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3521. $as_echo "$ac_file" >&6; }
  3522. if test -z "$ac_file"; then :
  3523. $as_echo "$as_me: failed program was:" >&5
  3524. sed 's/^/| /' conftest.$ac_ext >&5
  3525. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3526. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3527. { as_fn_set_status 77
  3528. as_fn_error "C++ compiler cannot create executables
  3529. See \`config.log' for more details." "$LINENO" 5; }; }
  3530. fi
  3531. ac_exeext=$ac_cv_exeext
  3532. # Check that the compiler produces executables we can run. If not, either
  3533. # the compiler is broken, or we cross compile.
  3534. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
  3535. $as_echo_n "checking whether the C++ compiler works... " >&6; }
  3536. # If not cross compiling, check that we can run a simple program.
  3537. if test "$cross_compiling" != yes; then
  3538. if { ac_try='./$ac_file'
  3539. { { case "(($ac_try" in
  3540. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3541. *) ac_try_echo=$ac_try;;
  3542. esac
  3543. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3544. $as_echo "$ac_try_echo"; } >&5
  3545. (eval "$ac_try") 2>&5
  3546. ac_status=$?
  3547. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3548. test $ac_status = 0; }; }; then
  3549. cross_compiling=no
  3550. else
  3551. if test "$cross_compiling" = maybe; then
  3552. cross_compiling=yes
  3553. else
  3554. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3555. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3556. as_fn_error "cannot run C++ compiled programs.
  3557. If you meant to cross compile, use \`--host'.
  3558. See \`config.log' for more details." "$LINENO" 5; }
  3559. fi
  3560. fi
  3561. fi
  3562. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3563. $as_echo "yes" >&6; }
  3564. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
  3565. ac_clean_files=$ac_clean_files_save
  3566. # Check that the compiler produces executables we can run. If not, either
  3567. # the compiler is broken, or we cross compile.
  3568. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3569. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3570. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3571. $as_echo "$cross_compiling" >&6; }
  3572. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3573. $as_echo_n "checking for suffix of executables... " >&6; }
  3574. if { { ac_try="$ac_link"
  3575. case "(($ac_try" in
  3576. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3577. *) ac_try_echo=$ac_try;;
  3578. esac
  3579. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3580. $as_echo "$ac_try_echo"; } >&5
  3581. (eval "$ac_link") 2>&5
  3582. ac_status=$?
  3583. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3584. test $ac_status = 0; }; then :
  3585. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3586. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3587. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3588. # `rm'.
  3589. for ac_file in conftest.exe conftest conftest.*; do
  3590. test -f "$ac_file" || continue
  3591. case $ac_file in
  3592. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3593. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3594. break;;
  3595. * ) break;;
  3596. esac
  3597. done
  3598. else
  3599. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3600. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3601. as_fn_error "cannot compute suffix of executables: cannot compile and link
  3602. See \`config.log' for more details." "$LINENO" 5; }
  3603. fi
  3604. rm -f conftest$ac_cv_exeext
  3605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3606. $as_echo "$ac_cv_exeext" >&6; }
  3607. rm -f conftest.$ac_ext
  3608. EXEEXT=$ac_cv_exeext
  3609. ac_exeext=$EXEEXT
  3610. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3611. $as_echo_n "checking for suffix of object files... " >&6; }
  3612. if test "${ac_cv_objext+set}" = set; then :
  3613. $as_echo_n "(cached) " >&6
  3614. else
  3615. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3616. /* end confdefs.h. */
  3617. int
  3618. main ()
  3619. {
  3620. ;
  3621. return 0;
  3622. }
  3623. _ACEOF
  3624. rm -f conftest.o conftest.obj
  3625. if { { ac_try="$ac_compile"
  3626. case "(($ac_try" in
  3627. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3628. *) ac_try_echo=$ac_try;;
  3629. esac
  3630. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3631. $as_echo "$ac_try_echo"; } >&5
  3632. (eval "$ac_compile") 2>&5
  3633. ac_status=$?
  3634. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3635. test $ac_status = 0; }; then :
  3636. for ac_file in conftest.o conftest.obj conftest.*; do
  3637. test -f "$ac_file" || continue;
  3638. case $ac_file in
  3639. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3640. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3641. break;;
  3642. esac
  3643. done
  3644. else
  3645. $as_echo "$as_me: failed program was:" >&5
  3646. sed 's/^/| /' conftest.$ac_ext >&5
  3647. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3648. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3649. as_fn_error "cannot compute suffix of object files: cannot compile
  3650. See \`config.log' for more details." "$LINENO" 5; }
  3651. fi
  3652. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3653. fi
  3654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3655. $as_echo "$ac_cv_objext" >&6; }
  3656. OBJEXT=$ac_cv_objext
  3657. ac_objext=$OBJEXT
  3658. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  3659. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  3660. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  3661. $as_echo_n "(cached) " >&6
  3662. else
  3663. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3664. /* end confdefs.h. */
  3665. int
  3666. main ()
  3667. {
  3668. #ifndef __GNUC__
  3669. choke me
  3670. #endif
  3671. ;
  3672. return 0;
  3673. }
  3674. _ACEOF
  3675. if ac_fn_cxx_try_compile "$LINENO"; then :
  3676. ac_compiler_gnu=yes
  3677. else
  3678. ac_compiler_gnu=no
  3679. fi
  3680. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3681. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3682. fi
  3683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  3684. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  3685. if test $ac_compiler_gnu = yes; then
  3686. GXX=yes
  3687. else
  3688. GXX=
  3689. fi
  3690. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3691. ac_save_CXXFLAGS=$CXXFLAGS
  3692. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  3693. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  3694. if test "${ac_cv_prog_cxx_g+set}" = set; then :
  3695. $as_echo_n "(cached) " >&6
  3696. else
  3697. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  3698. ac_cxx_werror_flag=yes
  3699. ac_cv_prog_cxx_g=no
  3700. CXXFLAGS="-g"
  3701. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3702. /* end confdefs.h. */
  3703. int
  3704. main ()
  3705. {
  3706. ;
  3707. return 0;
  3708. }
  3709. _ACEOF
  3710. if ac_fn_cxx_try_compile "$LINENO"; then :
  3711. ac_cv_prog_cxx_g=yes
  3712. else
  3713. CXXFLAGS=""
  3714. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3715. /* end confdefs.h. */
  3716. int
  3717. main ()
  3718. {
  3719. ;
  3720. return 0;
  3721. }
  3722. _ACEOF
  3723. if ac_fn_cxx_try_compile "$LINENO"; then :
  3724. else
  3725. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3726. CXXFLAGS="-g"
  3727. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3728. /* end confdefs.h. */
  3729. int
  3730. main ()
  3731. {
  3732. ;
  3733. return 0;
  3734. }
  3735. _ACEOF
  3736. if ac_fn_cxx_try_compile "$LINENO"; then :
  3737. ac_cv_prog_cxx_g=yes
  3738. fi
  3739. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3740. fi
  3741. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3742. fi
  3743. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3744. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3745. fi
  3746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  3747. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  3748. if test "$ac_test_CXXFLAGS" = set; then
  3749. CXXFLAGS=$ac_save_CXXFLAGS
  3750. elif test $ac_cv_prog_cxx_g = yes; then
  3751. if test "$GXX" = yes; then
  3752. CXXFLAGS="-g -O2"
  3753. else
  3754. CXXFLAGS="-g"
  3755. fi
  3756. else
  3757. if test "$GXX" = yes; then
  3758. CXXFLAGS="-O2"
  3759. else
  3760. CXXFLAGS=
  3761. fi
  3762. fi
  3763. ac_ext=c
  3764. ac_cpp='$CPP $CPPFLAGS'
  3765. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3766. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3767. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3768. DEPDIR="${am__leading_dot}deps"
  3769. ac_config_commands="$ac_config_commands depfiles"
  3770. am_make=${MAKE-make}
  3771. cat > confinc << 'END'
  3772. am__doit:
  3773. @echo this is the am__doit target
  3774. .PHONY: am__doit
  3775. END
  3776. # If we don't find an include directive, just comment out the code.
  3777. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3778. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3779. am__include="#"
  3780. am__quote=
  3781. _am_result=none
  3782. # First try GNU make style include.
  3783. echo "include confinc" > confmf
  3784. # Ignore all kinds of additional output from `make'.
  3785. case `$am_make -s -f confmf 2> /dev/null` in #(
  3786. *the\ am__doit\ target*)
  3787. am__include=include
  3788. am__quote=
  3789. _am_result=GNU
  3790. ;;
  3791. esac
  3792. # Now try BSD make style include.
  3793. if test "$am__include" = "#"; then
  3794. echo '.include "confinc"' > confmf
  3795. case `$am_make -s -f confmf 2> /dev/null` in #(
  3796. *the\ am__doit\ target*)
  3797. am__include=.include
  3798. am__quote="\""
  3799. _am_result=BSD
  3800. ;;
  3801. esac
  3802. fi
  3803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3804. $as_echo "$_am_result" >&6; }
  3805. rm -f confinc confmf
  3806. # Check whether --enable-dependency-tracking was given.
  3807. if test "${enable_dependency_tracking+set}" = set; then :
  3808. enableval=$enable_dependency_tracking;
  3809. fi
  3810. if test "x$enable_dependency_tracking" != xno; then
  3811. am_depcomp="$ac_aux_dir/depcomp"
  3812. AMDEPBACKSLASH='\'
  3813. fi
  3814. if test "x$enable_dependency_tracking" != xno; then
  3815. AMDEP_TRUE=
  3816. AMDEP_FALSE='#'
  3817. else
  3818. AMDEP_TRUE='#'
  3819. AMDEP_FALSE=
  3820. fi
  3821. depcc="$CXX" am_compiler_list=
  3822. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3823. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3824. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
  3825. $as_echo_n "(cached) " >&6
  3826. else
  3827. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3828. # We make a subdir and do the tests there. Otherwise we can end up
  3829. # making bogus files that we don't know about and never remove. For
  3830. # instance it was reported that on HP-UX the gcc test will end up
  3831. # making a dummy file named `D' -- because `-MD' means `put the output
  3832. # in D'.
  3833. mkdir conftest.dir
  3834. # Copy depcomp to subdir because otherwise we won't find it if we're
  3835. # using a relative directory.
  3836. cp "$am_depcomp" conftest.dir
  3837. cd conftest.dir
  3838. # We will build objects and dependencies in a subdirectory because
  3839. # it helps to detect inapplicable dependency modes. For instance
  3840. # both Tru64's cc and ICC support -MD to output dependencies as a
  3841. # side effect of compilation, but ICC will put the dependencies in
  3842. # the current directory while Tru64 will put them in the object
  3843. # directory.
  3844. mkdir sub
  3845. am_cv_CXX_dependencies_compiler_type=none
  3846. if test "$am_compiler_list" = ""; then
  3847. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3848. fi
  3849. am__universal=false
  3850. case " $depcc " in #(
  3851. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3852. esac
  3853. for depmode in $am_compiler_list; do
  3854. # Setup a source with many dependencies, because some compilers
  3855. # like to wrap large dependency lists on column 80 (with \), and
  3856. # we should not choose a depcomp mode which is confused by this.
  3857. #
  3858. # We need to recreate these files for each test, as the compiler may
  3859. # overwrite some of them when testing with obscure command lines.
  3860. # This happens at least with the AIX C compiler.
  3861. : > sub/conftest.c
  3862. for i in 1 2 3 4 5 6; do
  3863. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3864. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3865. # Solaris 8's {/usr,}/bin/sh.
  3866. touch sub/conftst$i.h
  3867. done
  3868. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3869. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3870. # mode. It turns out that the SunPro C++ compiler does not properly
  3871. # handle `-M -o', and we need to detect this. Also, some Intel
  3872. # versions had trouble with output in subdirs
  3873. am__obj=sub/conftest.${OBJEXT-o}
  3874. am__minus_obj="-o $am__obj"
  3875. case $depmode in
  3876. gcc)
  3877. # This depmode causes a compiler race in universal mode.
  3878. test "$am__universal" = false || continue
  3879. ;;
  3880. nosideeffect)
  3881. # after this tag, mechanisms are not by side-effect, so they'll
  3882. # only be used when explicitly requested
  3883. if test "x$enable_dependency_tracking" = xyes; then
  3884. continue
  3885. else
  3886. break
  3887. fi
  3888. ;;
  3889. msvisualcpp | msvcmsys)
  3890. # This compiler won't grok `-c -o', but also, the minuso test has
  3891. # not run yet. These depmodes are late enough in the game, and
  3892. # so weak that their functioning should not be impacted.
  3893. am__obj=conftest.${OBJEXT-o}
  3894. am__minus_obj=
  3895. ;;
  3896. none) break ;;
  3897. esac
  3898. if depmode=$depmode \
  3899. source=sub/conftest.c object=$am__obj \
  3900. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3901. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3902. >/dev/null 2>conftest.err &&
  3903. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3904. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3905. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3906. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3907. # icc doesn't choke on unknown options, it will just issue warnings
  3908. # or remarks (even with -Werror). So we grep stderr for any message
  3909. # that says an option was ignored or not supported.
  3910. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3911. # icc: Command line warning: ignoring option '-M'; no argument required
  3912. # The diagnosis changed in icc 8.0:
  3913. # icc: Command line remark: option '-MP' not supported
  3914. if (grep 'ignoring option' conftest.err ||
  3915. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3916. am_cv_CXX_dependencies_compiler_type=$depmode
  3917. break
  3918. fi
  3919. fi
  3920. done
  3921. cd ..
  3922. rm -rf conftest.dir
  3923. else
  3924. am_cv_CXX_dependencies_compiler_type=none
  3925. fi
  3926. fi
  3927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3928. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  3929. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3930. if
  3931. test "x$enable_dependency_tracking" != xno \
  3932. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3933. am__fastdepCXX_TRUE=
  3934. am__fastdepCXX_FALSE='#'
  3935. else
  3936. am__fastdepCXX_TRUE='#'
  3937. am__fastdepCXX_FALSE=
  3938. fi
  3939. ac_ext=c
  3940. ac_cpp='$CPP $CPPFLAGS'
  3941. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3942. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3943. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3944. if test -n "$ac_tool_prefix"; then
  3945. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3946. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3947. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3948. $as_echo_n "checking for $ac_word... " >&6; }
  3949. if test "${ac_cv_prog_CC+set}" = set; then :
  3950. $as_echo_n "(cached) " >&6
  3951. else
  3952. if test -n "$CC"; then
  3953. ac_cv_prog_CC="$CC" # Let the user override the test.
  3954. else
  3955. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3956. for as_dir in $PATH
  3957. do
  3958. IFS=$as_save_IFS
  3959. test -z "$as_dir" && as_dir=.
  3960. for ac_exec_ext in '' $ac_executable_extensions; do
  3961. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3962. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3963. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3964. break 2
  3965. fi
  3966. done
  3967. done
  3968. IFS=$as_save_IFS
  3969. fi
  3970. fi
  3971. CC=$ac_cv_prog_CC
  3972. if test -n "$CC"; then
  3973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3974. $as_echo "$CC" >&6; }
  3975. else
  3976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3977. $as_echo "no" >&6; }
  3978. fi
  3979. fi
  3980. if test -z "$ac_cv_prog_CC"; then
  3981. ac_ct_CC=$CC
  3982. # Extract the first word of "gcc", so it can be a program name with args.
  3983. set dummy gcc; ac_word=$2
  3984. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3985. $as_echo_n "checking for $ac_word... " >&6; }
  3986. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3987. $as_echo_n "(cached) " >&6
  3988. else
  3989. if test -n "$ac_ct_CC"; then
  3990. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3991. else
  3992. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3993. for as_dir in $PATH
  3994. do
  3995. IFS=$as_save_IFS
  3996. test -z "$as_dir" && as_dir=.
  3997. for ac_exec_ext in '' $ac_executable_extensions; do
  3998. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3999. ac_cv_prog_ac_ct_CC="gcc"
  4000. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4001. break 2
  4002. fi
  4003. done
  4004. done
  4005. IFS=$as_save_IFS
  4006. fi
  4007. fi
  4008. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4009. if test -n "$ac_ct_CC"; then
  4010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4011. $as_echo "$ac_ct_CC" >&6; }
  4012. else
  4013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4014. $as_echo "no" >&6; }
  4015. fi
  4016. if test "x$ac_ct_CC" = x; then
  4017. CC=""
  4018. else
  4019. case $cross_compiling:$ac_tool_warned in
  4020. yes:)
  4021. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4022. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4023. ac_tool_warned=yes ;;
  4024. esac
  4025. CC=$ac_ct_CC
  4026. fi
  4027. else
  4028. CC="$ac_cv_prog_CC"
  4029. fi
  4030. if test -z "$CC"; then
  4031. if test -n "$ac_tool_prefix"; then
  4032. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  4033. set dummy ${ac_tool_prefix}cc; ac_word=$2
  4034. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4035. $as_echo_n "checking for $ac_word... " >&6; }
  4036. if test "${ac_cv_prog_CC+set}" = set; then :
  4037. $as_echo_n "(cached) " >&6
  4038. else
  4039. if test -n "$CC"; then
  4040. ac_cv_prog_CC="$CC" # Let the user override the test.
  4041. else
  4042. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4043. for as_dir in $PATH
  4044. do
  4045. IFS=$as_save_IFS
  4046. test -z "$as_dir" && as_dir=.
  4047. for ac_exec_ext in '' $ac_executable_extensions; do
  4048. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4049. ac_cv_prog_CC="${ac_tool_prefix}cc"
  4050. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4051. break 2
  4052. fi
  4053. done
  4054. done
  4055. IFS=$as_save_IFS
  4056. fi
  4057. fi
  4058. CC=$ac_cv_prog_CC
  4059. if test -n "$CC"; then
  4060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4061. $as_echo "$CC" >&6; }
  4062. else
  4063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4064. $as_echo "no" >&6; }
  4065. fi
  4066. fi
  4067. fi
  4068. if test -z "$CC"; then
  4069. # Extract the first word of "cc", so it can be a program name with args.
  4070. set dummy cc; ac_word=$2
  4071. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4072. $as_echo_n "checking for $ac_word... " >&6; }
  4073. if test "${ac_cv_prog_CC+set}" = set; then :
  4074. $as_echo_n "(cached) " >&6
  4075. else
  4076. if test -n "$CC"; then
  4077. ac_cv_prog_CC="$CC" # Let the user override the test.
  4078. else
  4079. ac_prog_rejected=no
  4080. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4081. for as_dir in $PATH
  4082. do
  4083. IFS=$as_save_IFS
  4084. test -z "$as_dir" && as_dir=.
  4085. for ac_exec_ext in '' $ac_executable_extensions; do
  4086. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4087. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  4088. ac_prog_rejected=yes
  4089. continue
  4090. fi
  4091. ac_cv_prog_CC="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. if test $ac_prog_rejected = yes; then
  4099. # We found a bogon in the path, so make sure we never use it.
  4100. set dummy $ac_cv_prog_CC
  4101. shift
  4102. if test $# != 0; then
  4103. # We chose a different compiler from the bogus one.
  4104. # However, it has the same basename, so the bogon will be chosen
  4105. # first if we set CC to just the basename; use the full file name.
  4106. shift
  4107. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  4108. fi
  4109. fi
  4110. fi
  4111. fi
  4112. CC=$ac_cv_prog_CC
  4113. if test -n "$CC"; then
  4114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4115. $as_echo "$CC" >&6; }
  4116. else
  4117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4118. $as_echo "no" >&6; }
  4119. fi
  4120. fi
  4121. if test -z "$CC"; then
  4122. if test -n "$ac_tool_prefix"; then
  4123. for ac_prog in cl.exe
  4124. do
  4125. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4126. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4127. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4128. $as_echo_n "checking for $ac_word... " >&6; }
  4129. if test "${ac_cv_prog_CC+set}" = set; then :
  4130. $as_echo_n "(cached) " >&6
  4131. else
  4132. if test -n "$CC"; then
  4133. ac_cv_prog_CC="$CC" # Let the user override the test.
  4134. else
  4135. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4136. for as_dir in $PATH
  4137. do
  4138. IFS=$as_save_IFS
  4139. test -z "$as_dir" && as_dir=.
  4140. for ac_exec_ext in '' $ac_executable_extensions; do
  4141. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4142. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  4143. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4144. break 2
  4145. fi
  4146. done
  4147. done
  4148. IFS=$as_save_IFS
  4149. fi
  4150. fi
  4151. CC=$ac_cv_prog_CC
  4152. if test -n "$CC"; then
  4153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4154. $as_echo "$CC" >&6; }
  4155. else
  4156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4157. $as_echo "no" >&6; }
  4158. fi
  4159. test -n "$CC" && break
  4160. done
  4161. fi
  4162. if test -z "$CC"; then
  4163. ac_ct_CC=$CC
  4164. for ac_prog in cl.exe
  4165. do
  4166. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4167. set dummy $ac_prog; ac_word=$2
  4168. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4169. $as_echo_n "checking for $ac_word... " >&6; }
  4170. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  4171. $as_echo_n "(cached) " >&6
  4172. else
  4173. if test -n "$ac_ct_CC"; then
  4174. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4175. else
  4176. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4177. for as_dir in $PATH
  4178. do
  4179. IFS=$as_save_IFS
  4180. test -z "$as_dir" && as_dir=.
  4181. for ac_exec_ext in '' $ac_executable_extensions; do
  4182. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4183. ac_cv_prog_ac_ct_CC="$ac_prog"
  4184. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4185. break 2
  4186. fi
  4187. done
  4188. done
  4189. IFS=$as_save_IFS
  4190. fi
  4191. fi
  4192. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4193. if test -n "$ac_ct_CC"; then
  4194. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4195. $as_echo "$ac_ct_CC" >&6; }
  4196. else
  4197. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4198. $as_echo "no" >&6; }
  4199. fi
  4200. test -n "$ac_ct_CC" && break
  4201. done
  4202. if test "x$ac_ct_CC" = x; then
  4203. CC=""
  4204. else
  4205. case $cross_compiling:$ac_tool_warned in
  4206. yes:)
  4207. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4208. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4209. ac_tool_warned=yes ;;
  4210. esac
  4211. CC=$ac_ct_CC
  4212. fi
  4213. fi
  4214. fi
  4215. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4216. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4217. as_fn_error "no acceptable C compiler found in \$PATH
  4218. See \`config.log' for more details." "$LINENO" 5; }
  4219. # Provide some information about the compiler.
  4220. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  4221. set X $ac_compile
  4222. ac_compiler=$2
  4223. for ac_option in --version -v -V -qversion; do
  4224. { { ac_try="$ac_compiler $ac_option >&5"
  4225. case "(($ac_try" in
  4226. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4227. *) ac_try_echo=$ac_try;;
  4228. esac
  4229. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4230. $as_echo "$ac_try_echo"; } >&5
  4231. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4232. ac_status=$?
  4233. if test -s conftest.err; then
  4234. sed '10a\
  4235. ... rest of stderr output deleted ...
  4236. 10q' conftest.err >conftest.er1
  4237. cat conftest.er1 >&5
  4238. rm -f conftest.er1 conftest.err
  4239. fi
  4240. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4241. test $ac_status = 0; }
  4242. done
  4243. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  4244. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4245. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  4246. $as_echo_n "(cached) " >&6
  4247. else
  4248. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4249. /* end confdefs.h. */
  4250. int
  4251. main ()
  4252. {
  4253. #ifndef __GNUC__
  4254. choke me
  4255. #endif
  4256. ;
  4257. return 0;
  4258. }
  4259. _ACEOF
  4260. if ac_fn_c_try_compile "$LINENO"; then :
  4261. ac_compiler_gnu=yes
  4262. else
  4263. ac_compiler_gnu=no
  4264. fi
  4265. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4266. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4267. fi
  4268. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4269. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4270. if test $ac_compiler_gnu = yes; then
  4271. GCC=yes
  4272. else
  4273. GCC=
  4274. fi
  4275. ac_test_CFLAGS=${CFLAGS+set}
  4276. ac_save_CFLAGS=$CFLAGS
  4277. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4278. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4279. if test "${ac_cv_prog_cc_g+set}" = set; then :
  4280. $as_echo_n "(cached) " >&6
  4281. else
  4282. ac_save_c_werror_flag=$ac_c_werror_flag
  4283. ac_c_werror_flag=yes
  4284. ac_cv_prog_cc_g=no
  4285. CFLAGS="-g"
  4286. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4287. /* end confdefs.h. */
  4288. int
  4289. main ()
  4290. {
  4291. ;
  4292. return 0;
  4293. }
  4294. _ACEOF
  4295. if ac_fn_c_try_compile "$LINENO"; then :
  4296. ac_cv_prog_cc_g=yes
  4297. else
  4298. CFLAGS=""
  4299. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4300. /* end confdefs.h. */
  4301. int
  4302. main ()
  4303. {
  4304. ;
  4305. return 0;
  4306. }
  4307. _ACEOF
  4308. if ac_fn_c_try_compile "$LINENO"; then :
  4309. else
  4310. ac_c_werror_flag=$ac_save_c_werror_flag
  4311. CFLAGS="-g"
  4312. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4313. /* end confdefs.h. */
  4314. int
  4315. main ()
  4316. {
  4317. ;
  4318. return 0;
  4319. }
  4320. _ACEOF
  4321. if ac_fn_c_try_compile "$LINENO"; then :
  4322. ac_cv_prog_cc_g=yes
  4323. fi
  4324. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4325. fi
  4326. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4327. fi
  4328. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4329. ac_c_werror_flag=$ac_save_c_werror_flag
  4330. fi
  4331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4332. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4333. if test "$ac_test_CFLAGS" = set; then
  4334. CFLAGS=$ac_save_CFLAGS
  4335. elif test $ac_cv_prog_cc_g = yes; then
  4336. if test "$GCC" = yes; then
  4337. CFLAGS="-g -O2"
  4338. else
  4339. CFLAGS="-g"
  4340. fi
  4341. else
  4342. if test "$GCC" = yes; then
  4343. CFLAGS="-O2"
  4344. else
  4345. CFLAGS=
  4346. fi
  4347. fi
  4348. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4349. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4350. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  4351. $as_echo_n "(cached) " >&6
  4352. else
  4353. ac_cv_prog_cc_c89=no
  4354. ac_save_CC=$CC
  4355. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4356. /* end confdefs.h. */
  4357. #include <stdarg.h>
  4358. #include <stdio.h>
  4359. #include <sys/types.h>
  4360. #include <sys/stat.h>
  4361. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4362. struct buf { int x; };
  4363. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4364. static char *e (p, i)
  4365. char **p;
  4366. int i;
  4367. {
  4368. return p[i];
  4369. }
  4370. static char *f (char * (*g) (char **, int), char **p, ...)
  4371. {
  4372. char *s;
  4373. va_list v;
  4374. va_start (v,p);
  4375. s = g (p, va_arg (v,int));
  4376. va_end (v);
  4377. return s;
  4378. }
  4379. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4380. function prototypes and stuff, but not '\xHH' hex character constants.
  4381. These don't provoke an error unfortunately, instead are silently treated
  4382. as 'x'. The following induces an error, until -std is added to get
  4383. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4384. array size at least. It's necessary to write '\x00'==0 to get something
  4385. that's true only with -std. */
  4386. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4387. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4388. inside strings and character constants. */
  4389. #define FOO(x) 'x'
  4390. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4391. int test (int i, double x);
  4392. struct s1 {int (*f) (int a);};
  4393. struct s2 {int (*f) (double a);};
  4394. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4395. int argc;
  4396. char **argv;
  4397. int
  4398. main ()
  4399. {
  4400. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4401. ;
  4402. return 0;
  4403. }
  4404. _ACEOF
  4405. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4406. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4407. do
  4408. CC="$ac_save_CC $ac_arg"
  4409. if ac_fn_c_try_compile "$LINENO"; then :
  4410. ac_cv_prog_cc_c89=$ac_arg
  4411. fi
  4412. rm -f core conftest.err conftest.$ac_objext
  4413. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4414. done
  4415. rm -f conftest.$ac_ext
  4416. CC=$ac_save_CC
  4417. fi
  4418. # AC_CACHE_VAL
  4419. case "x$ac_cv_prog_cc_c89" in
  4420. x)
  4421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4422. $as_echo "none needed" >&6; } ;;
  4423. xno)
  4424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4425. $as_echo "unsupported" >&6; } ;;
  4426. *)
  4427. CC="$CC $ac_cv_prog_cc_c89"
  4428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4429. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4430. esac
  4431. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4432. fi
  4433. ac_ext=c
  4434. ac_cpp='$CPP $CPPFLAGS'
  4435. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4436. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4437. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4438. depcc="$CC" am_compiler_list=
  4439. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4440. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4441. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  4442. $as_echo_n "(cached) " >&6
  4443. else
  4444. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4445. # We make a subdir and do the tests there. Otherwise we can end up
  4446. # making bogus files that we don't know about and never remove. For
  4447. # instance it was reported that on HP-UX the gcc test will end up
  4448. # making a dummy file named `D' -- because `-MD' means `put the output
  4449. # in D'.
  4450. mkdir conftest.dir
  4451. # Copy depcomp to subdir because otherwise we won't find it if we're
  4452. # using a relative directory.
  4453. cp "$am_depcomp" conftest.dir
  4454. cd conftest.dir
  4455. # We will build objects and dependencies in a subdirectory because
  4456. # it helps to detect inapplicable dependency modes. For instance
  4457. # both Tru64's cc and ICC support -MD to output dependencies as a
  4458. # side effect of compilation, but ICC will put the dependencies in
  4459. # the current directory while Tru64 will put them in the object
  4460. # directory.
  4461. mkdir sub
  4462. am_cv_CC_dependencies_compiler_type=none
  4463. if test "$am_compiler_list" = ""; then
  4464. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4465. fi
  4466. am__universal=false
  4467. case " $depcc " in #(
  4468. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4469. esac
  4470. for depmode in $am_compiler_list; do
  4471. # Setup a source with many dependencies, because some compilers
  4472. # like to wrap large dependency lists on column 80 (with \), and
  4473. # we should not choose a depcomp mode which is confused by this.
  4474. #
  4475. # We need to recreate these files for each test, as the compiler may
  4476. # overwrite some of them when testing with obscure command lines.
  4477. # This happens at least with the AIX C compiler.
  4478. : > sub/conftest.c
  4479. for i in 1 2 3 4 5 6; do
  4480. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4481. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4482. # Solaris 8's {/usr,}/bin/sh.
  4483. touch sub/conftst$i.h
  4484. done
  4485. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4486. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4487. # mode. It turns out that the SunPro C++ compiler does not properly
  4488. # handle `-M -o', and we need to detect this. Also, some Intel
  4489. # versions had trouble with output in subdirs
  4490. am__obj=sub/conftest.${OBJEXT-o}
  4491. am__minus_obj="-o $am__obj"
  4492. case $depmode in
  4493. gcc)
  4494. # This depmode causes a compiler race in universal mode.
  4495. test "$am__universal" = false || continue
  4496. ;;
  4497. nosideeffect)
  4498. # after this tag, mechanisms are not by side-effect, so they'll
  4499. # only be used when explicitly requested
  4500. if test "x$enable_dependency_tracking" = xyes; then
  4501. continue
  4502. else
  4503. break
  4504. fi
  4505. ;;
  4506. msvisualcpp | msvcmsys)
  4507. # This compiler won't grok `-c -o', but also, the minuso test has
  4508. # not run yet. These depmodes are late enough in the game, and
  4509. # so weak that their functioning should not be impacted.
  4510. am__obj=conftest.${OBJEXT-o}
  4511. am__minus_obj=
  4512. ;;
  4513. none) break ;;
  4514. esac
  4515. if depmode=$depmode \
  4516. source=sub/conftest.c object=$am__obj \
  4517. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4518. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4519. >/dev/null 2>conftest.err &&
  4520. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4521. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4522. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4523. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4524. # icc doesn't choke on unknown options, it will just issue warnings
  4525. # or remarks (even with -Werror). So we grep stderr for any message
  4526. # that says an option was ignored or not supported.
  4527. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4528. # icc: Command line warning: ignoring option '-M'; no argument required
  4529. # The diagnosis changed in icc 8.0:
  4530. # icc: Command line remark: option '-MP' not supported
  4531. if (grep 'ignoring option' conftest.err ||
  4532. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4533. am_cv_CC_dependencies_compiler_type=$depmode
  4534. break
  4535. fi
  4536. fi
  4537. done
  4538. cd ..
  4539. rm -rf conftest.dir
  4540. else
  4541. am_cv_CC_dependencies_compiler_type=none
  4542. fi
  4543. fi
  4544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4545. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4546. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4547. if
  4548. test "x$enable_dependency_tracking" != xno \
  4549. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4550. am__fastdepCC_TRUE=
  4551. am__fastdepCC_FALSE='#'
  4552. else
  4553. am__fastdepCC_TRUE='#'
  4554. am__fastdepCC_FALSE=
  4555. fi
  4556. if test -n "$ac_tool_prefix"; then
  4557. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4558. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4559. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4560. $as_echo_n "checking for $ac_word... " >&6; }
  4561. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  4562. $as_echo_n "(cached) " >&6
  4563. else
  4564. if test -n "$RANLIB"; then
  4565. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4566. else
  4567. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4568. for as_dir in $PATH
  4569. do
  4570. IFS=$as_save_IFS
  4571. test -z "$as_dir" && as_dir=.
  4572. for ac_exec_ext in '' $ac_executable_extensions; do
  4573. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4574. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4575. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4576. break 2
  4577. fi
  4578. done
  4579. done
  4580. IFS=$as_save_IFS
  4581. fi
  4582. fi
  4583. RANLIB=$ac_cv_prog_RANLIB
  4584. if test -n "$RANLIB"; then
  4585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4586. $as_echo "$RANLIB" >&6; }
  4587. else
  4588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4589. $as_echo "no" >&6; }
  4590. fi
  4591. fi
  4592. if test -z "$ac_cv_prog_RANLIB"; then
  4593. ac_ct_RANLIB=$RANLIB
  4594. # Extract the first word of "ranlib", so it can be a program name with args.
  4595. set dummy ranlib; ac_word=$2
  4596. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4597. $as_echo_n "checking for $ac_word... " >&6; }
  4598. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  4599. $as_echo_n "(cached) " >&6
  4600. else
  4601. if test -n "$ac_ct_RANLIB"; then
  4602. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4603. else
  4604. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4605. for as_dir in $PATH
  4606. do
  4607. IFS=$as_save_IFS
  4608. test -z "$as_dir" && as_dir=.
  4609. for ac_exec_ext in '' $ac_executable_extensions; do
  4610. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4611. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4612. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4613. break 2
  4614. fi
  4615. done
  4616. done
  4617. IFS=$as_save_IFS
  4618. fi
  4619. fi
  4620. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4621. if test -n "$ac_ct_RANLIB"; then
  4622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4623. $as_echo "$ac_ct_RANLIB" >&6; }
  4624. else
  4625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4626. $as_echo "no" >&6; }
  4627. fi
  4628. if test "x$ac_ct_RANLIB" = x; then
  4629. RANLIB=":"
  4630. else
  4631. case $cross_compiling:$ac_tool_warned in
  4632. yes:)
  4633. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4634. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4635. ac_tool_warned=yes ;;
  4636. esac
  4637. RANLIB=$ac_ct_RANLIB
  4638. fi
  4639. else
  4640. RANLIB="$ac_cv_prog_RANLIB"
  4641. fi
  4642. for ac_prog in 'bison -y' byacc
  4643. do
  4644. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4645. set dummy $ac_prog; ac_word=$2
  4646. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4647. $as_echo_n "checking for $ac_word... " >&6; }
  4648. if test "${ac_cv_prog_YACC+set}" = set; then :
  4649. $as_echo_n "(cached) " >&6
  4650. else
  4651. if test -n "$YACC"; then
  4652. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  4653. else
  4654. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4655. for as_dir in $PATH
  4656. do
  4657. IFS=$as_save_IFS
  4658. test -z "$as_dir" && as_dir=.
  4659. for ac_exec_ext in '' $ac_executable_extensions; do
  4660. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4661. ac_cv_prog_YACC="$ac_prog"
  4662. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4663. break 2
  4664. fi
  4665. done
  4666. done
  4667. IFS=$as_save_IFS
  4668. fi
  4669. fi
  4670. YACC=$ac_cv_prog_YACC
  4671. if test -n "$YACC"; then
  4672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
  4673. $as_echo "$YACC" >&6; }
  4674. else
  4675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4676. $as_echo "no" >&6; }
  4677. fi
  4678. test -n "$YACC" && break
  4679. done
  4680. test -n "$YACC" || YACC="yacc"
  4681. # Setting language choice
  4682. ac_ext=cpp
  4683. ac_cpp='$CXXCPP $CPPFLAGS'
  4684. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4685. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4686. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4687. # Enable system extensions
  4688. ac_ext=cpp
  4689. ac_cpp='$CXXCPP $CPPFLAGS'
  4690. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4691. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4692. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4693. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  4694. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  4695. if test -z "$CXXCPP"; then
  4696. if test "${ac_cv_prog_CXXCPP+set}" = set; then :
  4697. $as_echo_n "(cached) " >&6
  4698. else
  4699. # Double quotes because CXXCPP needs to be expanded
  4700. for CXXCPP in "$CXX -E" "/lib/cpp"
  4701. do
  4702. ac_preproc_ok=false
  4703. for ac_cxx_preproc_warn_flag in '' yes
  4704. do
  4705. # Use a header file that comes with gcc, so configuring glibc
  4706. # with a fresh cross-compiler works.
  4707. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4708. # <limits.h> exists even on freestanding compilers.
  4709. # On the NeXT, cc -E runs the code through the compiler's parser,
  4710. # not just through cpp. "Syntax error" is here to catch this case.
  4711. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4712. /* end confdefs.h. */
  4713. #ifdef __STDC__
  4714. # include <limits.h>
  4715. #else
  4716. # include <assert.h>
  4717. #endif
  4718. Syntax error
  4719. _ACEOF
  4720. if ac_fn_cxx_try_cpp "$LINENO"; then :
  4721. else
  4722. # Broken: fails on valid input.
  4723. continue
  4724. fi
  4725. rm -f conftest.err conftest.$ac_ext
  4726. # OK, works on sane cases. Now check whether nonexistent headers
  4727. # can be detected and how.
  4728. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4729. /* end confdefs.h. */
  4730. #include <ac_nonexistent.h>
  4731. _ACEOF
  4732. if ac_fn_cxx_try_cpp "$LINENO"; then :
  4733. # Broken: success on invalid input.
  4734. continue
  4735. else
  4736. # Passes both tests.
  4737. ac_preproc_ok=:
  4738. break
  4739. fi
  4740. rm -f conftest.err conftest.$ac_ext
  4741. done
  4742. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4743. rm -f conftest.err conftest.$ac_ext
  4744. if $ac_preproc_ok; then :
  4745. break
  4746. fi
  4747. done
  4748. ac_cv_prog_CXXCPP=$CXXCPP
  4749. fi
  4750. CXXCPP=$ac_cv_prog_CXXCPP
  4751. else
  4752. ac_cv_prog_CXXCPP=$CXXCPP
  4753. fi
  4754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  4755. $as_echo "$CXXCPP" >&6; }
  4756. ac_preproc_ok=false
  4757. for ac_cxx_preproc_warn_flag in '' yes
  4758. do
  4759. # Use a header file that comes with gcc, so configuring glibc
  4760. # with a fresh cross-compiler works.
  4761. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4762. # <limits.h> exists even on freestanding compilers.
  4763. # On the NeXT, cc -E runs the code through the compiler's parser,
  4764. # not just through cpp. "Syntax error" is here to catch this case.
  4765. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4766. /* end confdefs.h. */
  4767. #ifdef __STDC__
  4768. # include <limits.h>
  4769. #else
  4770. # include <assert.h>
  4771. #endif
  4772. Syntax error
  4773. _ACEOF
  4774. if ac_fn_cxx_try_cpp "$LINENO"; then :
  4775. else
  4776. # Broken: fails on valid input.
  4777. continue
  4778. fi
  4779. rm -f conftest.err conftest.$ac_ext
  4780. # OK, works on sane cases. Now check whether nonexistent headers
  4781. # can be detected and how.
  4782. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4783. /* end confdefs.h. */
  4784. #include <ac_nonexistent.h>
  4785. _ACEOF
  4786. if ac_fn_cxx_try_cpp "$LINENO"; then :
  4787. # Broken: success on invalid input.
  4788. continue
  4789. else
  4790. # Passes both tests.
  4791. ac_preproc_ok=:
  4792. break
  4793. fi
  4794. rm -f conftest.err conftest.$ac_ext
  4795. done
  4796. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4797. rm -f conftest.err conftest.$ac_ext
  4798. if $ac_preproc_ok; then :
  4799. else
  4800. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4801. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4802. as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
  4803. See \`config.log' for more details." "$LINENO" 5; }
  4804. fi
  4805. ac_ext=cpp
  4806. ac_cpp='$CXXCPP $CPPFLAGS'
  4807. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4808. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4809. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4810. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4811. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4812. if test "${ac_cv_path_GREP+set}" = set; then :
  4813. $as_echo_n "(cached) " >&6
  4814. else
  4815. if test -z "$GREP"; then
  4816. ac_path_GREP_found=false
  4817. # Loop through the user's path and test for each of PROGNAME-LIST
  4818. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4819. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4820. do
  4821. IFS=$as_save_IFS
  4822. test -z "$as_dir" && as_dir=.
  4823. for ac_prog in grep ggrep; do
  4824. for ac_exec_ext in '' $ac_executable_extensions; do
  4825. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4826. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4827. # Check for GNU ac_path_GREP and select it if it is found.
  4828. # Check for GNU $ac_path_GREP
  4829. case `"$ac_path_GREP" --version 2>&1` in
  4830. *GNU*)
  4831. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4832. *)
  4833. ac_count=0
  4834. $as_echo_n 0123456789 >"conftest.in"
  4835. while :
  4836. do
  4837. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4838. mv "conftest.tmp" "conftest.in"
  4839. cp "conftest.in" "conftest.nl"
  4840. $as_echo 'GREP' >> "conftest.nl"
  4841. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4842. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4843. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4844. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4845. # Best one so far, save it but keep looking for a better one
  4846. ac_cv_path_GREP="$ac_path_GREP"
  4847. ac_path_GREP_max=$ac_count
  4848. fi
  4849. # 10*(2^10) chars as input seems more than enough
  4850. test $ac_count -gt 10 && break
  4851. done
  4852. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4853. esac
  4854. $ac_path_GREP_found && break 3
  4855. done
  4856. done
  4857. done
  4858. IFS=$as_save_IFS
  4859. if test -z "$ac_cv_path_GREP"; then
  4860. as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4861. fi
  4862. else
  4863. ac_cv_path_GREP=$GREP
  4864. fi
  4865. fi
  4866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4867. $as_echo "$ac_cv_path_GREP" >&6; }
  4868. GREP="$ac_cv_path_GREP"
  4869. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4870. $as_echo_n "checking for egrep... " >&6; }
  4871. if test "${ac_cv_path_EGREP+set}" = set; then :
  4872. $as_echo_n "(cached) " >&6
  4873. else
  4874. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4875. then ac_cv_path_EGREP="$GREP -E"
  4876. else
  4877. if test -z "$EGREP"; then
  4878. ac_path_EGREP_found=false
  4879. # Loop through the user's path and test for each of PROGNAME-LIST
  4880. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4881. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4882. do
  4883. IFS=$as_save_IFS
  4884. test -z "$as_dir" && as_dir=.
  4885. for ac_prog in egrep; do
  4886. for ac_exec_ext in '' $ac_executable_extensions; do
  4887. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4888. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4889. # Check for GNU ac_path_EGREP and select it if it is found.
  4890. # Check for GNU $ac_path_EGREP
  4891. case `"$ac_path_EGREP" --version 2>&1` in
  4892. *GNU*)
  4893. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4894. *)
  4895. ac_count=0
  4896. $as_echo_n 0123456789 >"conftest.in"
  4897. while :
  4898. do
  4899. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4900. mv "conftest.tmp" "conftest.in"
  4901. cp "conftest.in" "conftest.nl"
  4902. $as_echo 'EGREP' >> "conftest.nl"
  4903. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4904. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4905. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4906. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4907. # Best one so far, save it but keep looking for a better one
  4908. ac_cv_path_EGREP="$ac_path_EGREP"
  4909. ac_path_EGREP_max=$ac_count
  4910. fi
  4911. # 10*(2^10) chars as input seems more than enough
  4912. test $ac_count -gt 10 && break
  4913. done
  4914. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4915. esac
  4916. $ac_path_EGREP_found && break 3
  4917. done
  4918. done
  4919. done
  4920. IFS=$as_save_IFS
  4921. if test -z "$ac_cv_path_EGREP"; then
  4922. as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4923. fi
  4924. else
  4925. ac_cv_path_EGREP=$EGREP
  4926. fi
  4927. fi
  4928. fi
  4929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4930. $as_echo "$ac_cv_path_EGREP" >&6; }
  4931. EGREP="$ac_cv_path_EGREP"
  4932. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4933. $as_echo_n "checking for ANSI C header files... " >&6; }
  4934. if test "${ac_cv_header_stdc+set}" = set; then :
  4935. $as_echo_n "(cached) " >&6
  4936. else
  4937. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4938. /* end confdefs.h. */
  4939. #include <stdlib.h>
  4940. #include <stdarg.h>
  4941. #include <string.h>
  4942. #include <float.h>
  4943. int
  4944. main ()
  4945. {
  4946. ;
  4947. return 0;
  4948. }
  4949. _ACEOF
  4950. if ac_fn_cxx_try_compile "$LINENO"; then :
  4951. ac_cv_header_stdc=yes
  4952. else
  4953. ac_cv_header_stdc=no
  4954. fi
  4955. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4956. if test $ac_cv_header_stdc = yes; then
  4957. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4958. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4959. /* end confdefs.h. */
  4960. #include <string.h>
  4961. _ACEOF
  4962. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4963. $EGREP "memchr" >/dev/null 2>&1; then :
  4964. else
  4965. ac_cv_header_stdc=no
  4966. fi
  4967. rm -f conftest*
  4968. fi
  4969. if test $ac_cv_header_stdc = yes; then
  4970. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4971. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4972. /* end confdefs.h. */
  4973. #include <stdlib.h>
  4974. _ACEOF
  4975. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4976. $EGREP "free" >/dev/null 2>&1; then :
  4977. else
  4978. ac_cv_header_stdc=no
  4979. fi
  4980. rm -f conftest*
  4981. fi
  4982. if test $ac_cv_header_stdc = yes; then
  4983. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4984. if test "$cross_compiling" = yes; then :
  4985. :
  4986. else
  4987. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4988. /* end confdefs.h. */
  4989. #include <ctype.h>
  4990. #include <stdlib.h>
  4991. #if ((' ' & 0x0FF) == 0x020)
  4992. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4993. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4994. #else
  4995. # define ISLOWER(c) \
  4996. (('a' <= (c) && (c) <= 'i') \
  4997. || ('j' <= (c) && (c) <= 'r') \
  4998. || ('s' <= (c) && (c) <= 'z'))
  4999. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  5000. #endif
  5001. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  5002. int
  5003. main ()
  5004. {
  5005. int i;
  5006. for (i = 0; i < 256; i++)
  5007. if (XOR (islower (i), ISLOWER (i))
  5008. || toupper (i) != TOUPPER (i))
  5009. return 2;
  5010. return 0;
  5011. }
  5012. _ACEOF
  5013. if ac_fn_cxx_try_run "$LINENO"; then :
  5014. else
  5015. ac_cv_header_stdc=no
  5016. fi
  5017. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5018. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5019. fi
  5020. fi
  5021. fi
  5022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  5023. $as_echo "$ac_cv_header_stdc" >&6; }
  5024. if test $ac_cv_header_stdc = yes; then
  5025. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  5026. fi
  5027. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  5028. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  5029. inttypes.h stdint.h unistd.h
  5030. do :
  5031. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5032. ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  5033. "
  5034. eval as_val=\$$as_ac_Header
  5035. if test "x$as_val" = x""yes; then :
  5036. cat >>confdefs.h <<_ACEOF
  5037. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5038. _ACEOF
  5039. fi
  5040. done
  5041. ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  5042. if test "x$ac_cv_header_minix_config_h" = x""yes; then :
  5043. MINIX=yes
  5044. else
  5045. MINIX=
  5046. fi
  5047. if test "$MINIX" = yes; then
  5048. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  5049. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  5050. $as_echo "#define _MINIX 1" >>confdefs.h
  5051. fi
  5052. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  5053. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  5054. if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
  5055. $as_echo_n "(cached) " >&6
  5056. else
  5057. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5058. /* end confdefs.h. */
  5059. # define __EXTENSIONS__ 1
  5060. $ac_includes_default
  5061. int
  5062. main ()
  5063. {
  5064. ;
  5065. return 0;
  5066. }
  5067. _ACEOF
  5068. if ac_fn_cxx_try_compile "$LINENO"; then :
  5069. ac_cv_safe_to_define___extensions__=yes
  5070. else
  5071. ac_cv_safe_to_define___extensions__=no
  5072. fi
  5073. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5074. fi
  5075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  5076. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  5077. test $ac_cv_safe_to_define___extensions__ = yes &&
  5078. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  5079. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  5080. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  5081. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  5082. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  5083. # Checks for libraries.
  5084. if test "x$with_libxml2" = "xyes"; then
  5085. # Check whether --with-xml-prefix was given.
  5086. if test "${with_xml_prefix+set}" = set; then :
  5087. withval=$with_xml_prefix; xml_config_prefix="$withval"
  5088. else
  5089. xml_config_prefix=""
  5090. fi
  5091. # Check whether --with-xml-exec-prefix was given.
  5092. if test "${with_xml_exec_prefix+set}" = set; then :
  5093. withval=$with_xml_exec_prefix; xml_config_exec_prefix="$withval"
  5094. else
  5095. xml_config_exec_prefix=""
  5096. fi
  5097. # Check whether --enable-xmltest was given.
  5098. if test "${enable_xmltest+set}" = set; then :
  5099. enableval=$enable_xmltest;
  5100. else
  5101. enable_xmltest=yes
  5102. fi
  5103. if test x$xml_config_exec_prefix != x ; then
  5104. xml_config_args="$xml_config_args"
  5105. if test x${XML2_CONFIG+set} != xset ; then
  5106. XML2_CONFIG=$xml_config_exec_prefix/bin/xml2-config
  5107. fi
  5108. fi
  5109. if test x$xml_config_prefix != x ; then
  5110. xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
  5111. if test x${XML2_CONFIG+set} != xset ; then
  5112. XML2_CONFIG=$xml_config_prefix/bin/xml2-config
  5113. fi
  5114. fi
  5115. # Extract the first word of "xml2-config", so it can be a program name with args.
  5116. set dummy xml2-config; ac_word=$2
  5117. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5118. $as_echo_n "checking for $ac_word... " >&6; }
  5119. if test "${ac_cv_path_XML2_CONFIG+set}" = set; then :
  5120. $as_echo_n "(cached) " >&6
  5121. else
  5122. case $XML2_CONFIG in
  5123. [\\/]* | ?:[\\/]*)
  5124. ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
  5125. ;;
  5126. *)
  5127. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5128. for as_dir in $PATH
  5129. do
  5130. IFS=$as_save_IFS
  5131. test -z "$as_dir" && as_dir=.
  5132. for ac_exec_ext in '' $ac_executable_extensions; do
  5133. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5134. ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5135. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5136. break 2
  5137. fi
  5138. done
  5139. done
  5140. IFS=$as_save_IFS
  5141. test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no"
  5142. ;;
  5143. esac
  5144. fi
  5145. XML2_CONFIG=$ac_cv_path_XML2_CONFIG
  5146. if test -n "$XML2_CONFIG"; then
  5147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5
  5148. $as_echo "$XML2_CONFIG" >&6; }
  5149. else
  5150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5151. $as_echo "no" >&6; }
  5152. fi
  5153. min_xml_version=2.6.24
  5154. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml - version >= $min_xml_version" >&5
  5155. $as_echo_n "checking for libxml - version >= $min_xml_version... " >&6; }
  5156. no_xml=""
  5157. if test "$XML2_CONFIG" = "no" ; then
  5158. no_xml=yes
  5159. else
  5160. XML_CPPFLAGS=`$XML2_CONFIG $xml_config_args --cflags`
  5161. XML_LIBS=`$XML2_CONFIG $xml_config_args --libs`
  5162. xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \
  5163. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  5164. xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \
  5165. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  5166. xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \
  5167. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  5168. if test "x$enable_xmltest" = "xyes" ; then
  5169. ac_save_CPPFLAGS="$CPPFLAGS"
  5170. ac_save_LIBS="$LIBS"
  5171. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  5172. LIBS="$XML_LIBS $LIBS"
  5173. rm -f conf.xmltest
  5174. if test "$cross_compiling" = yes; then :
  5175. echo $ac_n "cross compiling; assumed OK... $ac_c"
  5176. else
  5177. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5178. /* end confdefs.h. */
  5179. #include <stdlib.h>
  5180. #include <stdio.h>
  5181. #include <string.h>
  5182. #include <libxml/xmlversion.h>
  5183. int
  5184. main()
  5185. {
  5186. int xml_major_version, xml_minor_version, xml_micro_version;
  5187. int major, minor, micro;
  5188. char *tmp_version;
  5189. system("touch conf.xmltest");
  5190. /* Capture xml2-config output via autoconf/configure variables */
  5191. /* HP/UX 9 (%@#!) writes to sscanf strings */
  5192. tmp_version = (char *)strdup("$min_xml_version");
  5193. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  5194. printf("%s, bad version string from xml2-config\n", "$min_xml_version");
  5195. exit(1);
  5196. }
  5197. free(tmp_version);
  5198. /* Capture the version information from the header files */
  5199. tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);
  5200. if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
  5201. printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION");
  5202. exit(1);
  5203. }
  5204. free(tmp_version);
  5205. /* Compare xml2-config output to the libxml headers */
  5206. if ((xml_major_version != $xml_config_major_version) ||
  5207. (xml_minor_version != $xml_config_minor_version) ||
  5208. (xml_micro_version != $xml_config_micro_version))
  5209. {
  5210. printf("*** libxml header files (version %d.%d.%d) do not match\n",
  5211. xml_major_version, xml_minor_version, xml_micro_version);
  5212. printf("*** xml2-config (version %d.%d.%d)\n",
  5213. $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version);
  5214. return 1;
  5215. }
  5216. /* Compare the headers to the library to make sure we match */
  5217. /* Less than ideal -- doesn't provide us with return value feedback,
  5218. * only exits if there's a serious mismatch between header and library.
  5219. */
  5220. LIBXML_TEST_VERSION;
  5221. /* Test that the library is greater than our minimum version */
  5222. if ((xml_major_version > major) ||
  5223. ((xml_major_version == major) && (xml_minor_version > minor)) ||
  5224. ((xml_major_version == major) && (xml_minor_version == minor) &&
  5225. (xml_micro_version >= micro)))
  5226. {
  5227. return 0;
  5228. }
  5229. else
  5230. {
  5231. printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
  5232. xml_major_version, xml_minor_version, xml_micro_version);
  5233. printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
  5234. major, minor, micro);
  5235. printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n");
  5236. printf("***\n");
  5237. printf("*** If you have already installed a sufficiently new version, this error\n");
  5238. printf("*** probably means that the wrong copy of the xml2-config shell script is\n");
  5239. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  5240. printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
  5241. printf("*** correct copy of xml2-config. (In this case, you will have to\n");
  5242. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  5243. printf("*** so that the correct libraries are found at run-time))\n");
  5244. }
  5245. return 1;
  5246. }
  5247. _ACEOF
  5248. if ac_fn_cxx_try_run "$LINENO"; then :
  5249. else
  5250. no_xml=yes
  5251. fi
  5252. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5253. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5254. fi
  5255. CPPFLAGS="$ac_save_CPPFLAGS"
  5256. LIBS="$ac_save_LIBS"
  5257. fi
  5258. fi
  5259. if test "x$no_xml" = x ; then
  5260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&5
  5261. $as_echo "yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&6; }
  5262. have_libxml2=yes
  5263. else
  5264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5265. $as_echo "no" >&6; }
  5266. if test "$XML2_CONFIG" = "no" ; then
  5267. echo "*** The xml2-config script installed by LIBXML could not be found"
  5268. echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
  5269. echo "*** your path, or set the XML2_CONFIG environment variable to the"
  5270. echo "*** full path to xml2-config."
  5271. else
  5272. if test -f conf.xmltest ; then
  5273. :
  5274. else
  5275. echo "*** Could not run libxml test program, checking why..."
  5276. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  5277. LIBS="$LIBS $XML_LIBS"
  5278. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5279. /* end confdefs.h. */
  5280. #include <libxml/xmlversion.h>
  5281. #include <stdio.h>
  5282. int
  5283. main ()
  5284. {
  5285. LIBXML_TEST_VERSION; return 0;
  5286. ;
  5287. return 0;
  5288. }
  5289. _ACEOF
  5290. if ac_fn_cxx_try_link "$LINENO"; then :
  5291. echo "*** The test program compiled, but did not run. This usually means"
  5292. echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
  5293. echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"
  5294. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  5295. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  5296. echo "*** is required on your system"
  5297. echo "***"
  5298. echo "*** If you have an old version installed, it is best to remove it, although"
  5299. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  5300. else
  5301. echo "*** The test program failed to compile or link. See the file config.log for the"
  5302. echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
  5303. echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
  5304. echo "*** may want to edit the xml2-config script: $XML2_CONFIG"
  5305. fi
  5306. rm -f core conftest.err conftest.$ac_objext \
  5307. conftest$ac_exeext conftest.$ac_ext
  5308. CPPFLAGS="$ac_save_CPPFLAGS"
  5309. LIBS="$ac_save_LIBS"
  5310. fi
  5311. fi
  5312. XML_CPPFLAGS=""
  5313. XML_LIBS=""
  5314. :
  5315. fi
  5316. rm -f conf.xmltest
  5317. if test "x$have_libxml2" = "xyes"; then
  5318. $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
  5319. fi
  5320. fi
  5321. if test "x$with_libexpat" = "xyes" && test "x$have_libxml2" != "xyes"; then
  5322. # Check whether --with-libexpat-prefix was given.
  5323. if test "${with_libexpat_prefix+set}" = set; then :
  5324. withval=$with_libexpat_prefix; libexpat_prefix=$withval
  5325. else
  5326. libexpat_prefix=""
  5327. fi
  5328. if test "x$libexpat_prefix" = "x"; then
  5329. libexpat_prefix="/usr"
  5330. fi
  5331. libexpat_prefix_lib=$libexpat_prefix/lib
  5332. libexpat_prefix_include=$libexpat_prefix/include
  5333. LIBS_save=$LIBS
  5334. CPPFLAGS_save=$CPPFLAGS
  5335. LIBS="-L$libexpat_prefix_lib $LIBS"
  5336. CPPFLAGS="-I$libexpat_prefix_include $CPPFLAGS"
  5337. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML_ParserCreate in -lexpat" >&5
  5338. $as_echo_n "checking for XML_ParserCreate in -lexpat... " >&6; }
  5339. if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then :
  5340. $as_echo_n "(cached) " >&6
  5341. else
  5342. ac_check_lib_save_LIBS=$LIBS
  5343. LIBS="-lexpat $LIBS"
  5344. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5345. /* end confdefs.h. */
  5346. /* Override any GCC internal prototype to avoid an error.
  5347. Use char because int might match the return type of a GCC
  5348. builtin and then its argument prototype would still apply. */
  5349. #ifdef __cplusplus
  5350. extern "C"
  5351. #endif
  5352. char XML_ParserCreate ();
  5353. int
  5354. main ()
  5355. {
  5356. return XML_ParserCreate ();
  5357. ;
  5358. return 0;
  5359. }
  5360. _ACEOF
  5361. if ac_fn_cxx_try_link "$LINENO"; then :
  5362. ac_cv_lib_expat_XML_ParserCreate=yes
  5363. else
  5364. ac_cv_lib_expat_XML_ParserCreate=no
  5365. fi
  5366. rm -f core conftest.err conftest.$ac_objext \
  5367. conftest$ac_exeext conftest.$ac_ext
  5368. LIBS=$ac_check_lib_save_LIBS
  5369. fi
  5370. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
  5371. $as_echo "$ac_cv_lib_expat_XML_ParserCreate" >&6; }
  5372. if test "x$ac_cv_lib_expat_XML_ParserCreate" = x""yes; then :
  5373. have_libexpat=yes
  5374. fi
  5375. if test "x$have_libexpat" = "xyes"; then
  5376. $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
  5377. LIBEXPAT_LIBS="-L$libexpat_prefix_lib -lexpat"
  5378. LIBEXPAT_CPPFLAGS="-I$libexpat_prefix_include"
  5379. fi
  5380. LIBS=$LIBS_save
  5381. CPPFLAGS=$CPPFLAGS_save
  5382. fi
  5383. if test "x$with_sqlite3" = "xyes"; then
  5384. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  5385. if test -n "$ac_tool_prefix"; then
  5386. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  5387. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  5388. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5389. $as_echo_n "checking for $ac_word... " >&6; }
  5390. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
  5391. $as_echo_n "(cached) " >&6
  5392. else
  5393. case $PKG_CONFIG in
  5394. [\\/]* | ?:[\\/]*)
  5395. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  5396. ;;
  5397. *)
  5398. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5399. for as_dir in $PATH
  5400. do
  5401. IFS=$as_save_IFS
  5402. test -z "$as_dir" && as_dir=.
  5403. for ac_exec_ext in '' $ac_executable_extensions; do
  5404. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5405. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5406. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5407. break 2
  5408. fi
  5409. done
  5410. done
  5411. IFS=$as_save_IFS
  5412. ;;
  5413. esac
  5414. fi
  5415. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  5416. if test -n "$PKG_CONFIG"; then
  5417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  5418. $as_echo "$PKG_CONFIG" >&6; }
  5419. else
  5420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5421. $as_echo "no" >&6; }
  5422. fi
  5423. fi
  5424. if test -z "$ac_cv_path_PKG_CONFIG"; then
  5425. ac_pt_PKG_CONFIG=$PKG_CONFIG
  5426. # Extract the first word of "pkg-config", so it can be a program name with args.
  5427. set dummy pkg-config; ac_word=$2
  5428. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5429. $as_echo_n "checking for $ac_word... " >&6; }
  5430. if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
  5431. $as_echo_n "(cached) " >&6
  5432. else
  5433. case $ac_pt_PKG_CONFIG in
  5434. [\\/]* | ?:[\\/]*)
  5435. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  5436. ;;
  5437. *)
  5438. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5439. for as_dir in $PATH
  5440. do
  5441. IFS=$as_save_IFS
  5442. test -z "$as_dir" && as_dir=.
  5443. for ac_exec_ext in '' $ac_executable_extensions; do
  5444. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5445. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5446. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5447. break 2
  5448. fi
  5449. done
  5450. done
  5451. IFS=$as_save_IFS
  5452. ;;
  5453. esac
  5454. fi
  5455. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  5456. if test -n "$ac_pt_PKG_CONFIG"; then
  5457. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  5458. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  5459. else
  5460. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5461. $as_echo "no" >&6; }
  5462. fi
  5463. if test "x$ac_pt_PKG_CONFIG" = x; then
  5464. PKG_CONFIG=""
  5465. else
  5466. case $cross_compiling:$ac_tool_warned in
  5467. yes:)
  5468. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5469. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5470. ac_tool_warned=yes ;;
  5471. esac
  5472. PKG_CONFIG=$ac_pt_PKG_CONFIG
  5473. fi
  5474. else
  5475. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  5476. fi
  5477. fi
  5478. if test -n "$PKG_CONFIG"; then
  5479. _pkg_min_version=0.9.0
  5480. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  5481. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  5482. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  5483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5484. $as_echo "yes" >&6; }
  5485. else
  5486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5487. $as_echo "no" >&6; }
  5488. PKG_CONFIG=""
  5489. fi
  5490. fi
  5491. # Check whether --with-sqlite3-prefix was given.
  5492. if test "${with_sqlite3_prefix+set}" = set; then :
  5493. withval=$with_sqlite3_prefix; sqlite3_prefix=$withval
  5494. else
  5495. sqlite3_prefix=""
  5496. fi
  5497. if test "x$sqlite3_prefix" = "x"; then
  5498. sqlite3_prefix="/usr"
  5499. fi
  5500. LIBS_save=$LIBS
  5501. CPPFLAGS_save=$CPPFLAGS
  5502. pkg_failed=no
  5503. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLITE3" >&5
  5504. $as_echo_n "checking for SQLITE3... " >&6; }
  5505. if test -n "$PKG_CONFIG"; then
  5506. if test -n "$SQLITE3_CFLAGS"; then
  5507. pkg_cv_SQLITE3_CFLAGS="$SQLITE3_CFLAGS"
  5508. else
  5509. if test -n "$PKG_CONFIG" && \
  5510. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
  5511. ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
  5512. ac_status=$?
  5513. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5514. test $ac_status = 0; }; then
  5515. pkg_cv_SQLITE3_CFLAGS=`$PKG_CONFIG --cflags "sqlite3" 2>/dev/null`
  5516. else
  5517. pkg_failed=yes
  5518. fi
  5519. fi
  5520. else
  5521. pkg_failed=untried
  5522. fi
  5523. if test -n "$PKG_CONFIG"; then
  5524. if test -n "$SQLITE3_LIBS"; then
  5525. pkg_cv_SQLITE3_LIBS="$SQLITE3_LIBS"
  5526. else
  5527. if test -n "$PKG_CONFIG" && \
  5528. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
  5529. ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
  5530. ac_status=$?
  5531. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5532. test $ac_status = 0; }; then
  5533. pkg_cv_SQLITE3_LIBS=`$PKG_CONFIG --libs "sqlite3" 2>/dev/null`
  5534. else
  5535. pkg_failed=yes
  5536. fi
  5537. fi
  5538. else
  5539. pkg_failed=untried
  5540. fi
  5541. if test $pkg_failed = yes; then
  5542. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  5543. _pkg_short_errors_supported=yes
  5544. else
  5545. _pkg_short_errors_supported=no
  5546. fi
  5547. if test $_pkg_short_errors_supported = yes; then
  5548. SQLITE3_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "sqlite3"`
  5549. else
  5550. SQLITE3_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "sqlite3"`
  5551. fi
  5552. # Put the nasty error message in config.log where it belongs
  5553. echo "$SQLITE3_PKG_ERRORS" >&5
  5554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5555. $as_echo "no" >&6; }
  5556. have_sqlite3=no
  5557. elif test $pkg_failed = untried; then
  5558. have_sqlite3=no
  5559. else
  5560. SQLITE3_CFLAGS=$pkg_cv_SQLITE3_CFLAGS
  5561. SQLITE3_LIBS=$pkg_cv_SQLITE3_LIBS
  5562. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5563. $as_echo "yes" >&6; }
  5564. have_sqlite3=yes
  5565. fi
  5566. if test "x$have_sqlite3" != "xyes"; then
  5567. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $SQLITE3_PKG_ERRORS" >&5
  5568. $as_echo "$as_me: WARNING: $SQLITE3_PKG_ERRORS" >&2;}
  5569. sqlite3_prefix_lib=$sqlite3_prefix/lib
  5570. sqlite3_prefix_include=$sqlite3_prefix/include
  5571. LIBS="-L$sqlite3_prefix_lib $LIBS"
  5572. CPPFLAGS="-I$sqlite3_prefix_include $CPPFLAGS"
  5573. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_open in -lsqlite3" >&5
  5574. $as_echo_n "checking for sqlite3_open in -lsqlite3... " >&6; }
  5575. if test "${ac_cv_lib_sqlite3_sqlite3_open+set}" = set; then :
  5576. $as_echo_n "(cached) " >&6
  5577. else
  5578. ac_check_lib_save_LIBS=$LIBS
  5579. LIBS="-lsqlite3 $LIBS"
  5580. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5581. /* end confdefs.h. */
  5582. /* Override any GCC internal prototype to avoid an error.
  5583. Use char because int might match the return type of a GCC
  5584. builtin and then its argument prototype would still apply. */
  5585. #ifdef __cplusplus
  5586. extern "C"
  5587. #endif
  5588. char sqlite3_open ();
  5589. int
  5590. main ()
  5591. {
  5592. return sqlite3_open ();
  5593. ;
  5594. return 0;
  5595. }
  5596. _ACEOF
  5597. if ac_fn_cxx_try_link "$LINENO"; then :
  5598. ac_cv_lib_sqlite3_sqlite3_open=yes
  5599. else
  5600. ac_cv_lib_sqlite3_sqlite3_open=no
  5601. fi
  5602. rm -f core conftest.err conftest.$ac_objext \
  5603. conftest$ac_exeext conftest.$ac_ext
  5604. LIBS=$ac_check_lib_save_LIBS
  5605. fi
  5606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5
  5607. $as_echo "$ac_cv_lib_sqlite3_sqlite3_open" >&6; }
  5608. if test "x$ac_cv_lib_sqlite3_sqlite3_open" = x""yes; then :
  5609. have_sqlite3=yes
  5610. fi
  5611. if test "x$have_sqlite3" = "xyes"; then
  5612. SQLITE3_LIBS="-L$sqlite3_prefix_lib -lsqlite3"
  5613. SQLITE3_CFLAGS="-I$sqlite3_prefix_include"
  5614. fi
  5615. fi
  5616. if test "x$have_sqlite3" = "xyes"; then
  5617. LIBS="$SQLITE3_LIBS $LIBS"
  5618. CPPFLAGS="$SQLITE3_CFLAGS $CPPFLAGS"
  5619. for ac_func in sqlite3_open_v2
  5620. do :
  5621. ac_fn_cxx_check_func "$LINENO" "sqlite3_open_v2" "ac_cv_func_sqlite3_open_v2"
  5622. if test "x$ac_cv_func_sqlite3_open_v2" = x""yes; then :
  5623. cat >>confdefs.h <<_ACEOF
  5624. #define HAVE_SQLITE3_OPEN_V2 1
  5625. _ACEOF
  5626. fi
  5627. done
  5628. $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
  5629. fi
  5630. LIBS=$LIBS_save
  5631. CPPFLAGS=$CPPFLAGS_save
  5632. fi
  5633. if test "x$with_gnutls" = "xyes"; then
  5634. # gnutls >= 2.8 doesn't have libgnutls-config anymore.
  5635. # First check the presence of libgnutls using pkg-config.
  5636. pkg_failed=no
  5637. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGNUTLS" >&5
  5638. $as_echo_n "checking for LIBGNUTLS... " >&6; }
  5639. if test -n "$PKG_CONFIG"; then
  5640. if test -n "$LIBGNUTLS_CFLAGS"; then
  5641. pkg_cv_LIBGNUTLS_CFLAGS="$LIBGNUTLS_CFLAGS"
  5642. else
  5643. if test -n "$PKG_CONFIG" && \
  5644. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= 1.2.9\""; } >&5
  5645. ($PKG_CONFIG --exists --print-errors "gnutls >= 1.2.9") 2>&5
  5646. ac_status=$?
  5647. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5648. test $ac_status = 0; }; then
  5649. pkg_cv_LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 1.2.9" 2>/dev/null`
  5650. else
  5651. pkg_failed=yes
  5652. fi
  5653. fi
  5654. else
  5655. pkg_failed=untried
  5656. fi
  5657. if test -n "$PKG_CONFIG"; then
  5658. if test -n "$LIBGNUTLS_LIBS"; then
  5659. pkg_cv_LIBGNUTLS_LIBS="$LIBGNUTLS_LIBS"
  5660. else
  5661. if test -n "$PKG_CONFIG" && \
  5662. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= 1.2.9\""; } >&5
  5663. ($PKG_CONFIG --exists --print-errors "gnutls >= 1.2.9") 2>&5
  5664. ac_status=$?
  5665. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5666. test $ac_status = 0; }; then
  5667. pkg_cv_LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 1.2.9" 2>/dev/null`
  5668. else
  5669. pkg_failed=yes
  5670. fi
  5671. fi
  5672. else
  5673. pkg_failed=untried
  5674. fi
  5675. if test $pkg_failed = yes; then
  5676. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  5677. _pkg_short_errors_supported=yes
  5678. else
  5679. _pkg_short_errors_supported=no
  5680. fi
  5681. if test $_pkg_short_errors_supported = yes; then
  5682. LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnutls >= 1.2.9"`
  5683. else
  5684. LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 1.2.9"`
  5685. fi
  5686. # Put the nasty error message in config.log where it belongs
  5687. echo "$LIBGNUTLS_PKG_ERRORS" >&5
  5688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5689. $as_echo "no" >&6; }
  5690. have_libgnutls=no
  5691. elif test $pkg_failed = untried; then
  5692. have_libgnutls=no
  5693. else
  5694. LIBGNUTLS_CFLAGS=$pkg_cv_LIBGNUTLS_CFLAGS
  5695. LIBGNUTLS_LIBS=$pkg_cv_LIBGNUTLS_LIBS
  5696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5697. $as_echo "yes" >&6; }
  5698. have_libgnutls=yes
  5699. fi
  5700. # If no libgnutls found by pkg-config, fall back to old macro
  5701. if test "x$have_libgnutls" = "xno"; then
  5702. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $LIBGNUTLS_PKG_ERRORS" >&5
  5703. $as_echo "$as_me: WARNING: $LIBGNUTLS_PKG_ERRORS" >&2;}
  5704. # Check whether --with-libgnutls-prefix was given.
  5705. if test "${with_libgnutls_prefix+set}" = set; then :
  5706. withval=$with_libgnutls_prefix; libgnutls_config_prefix="$withval"
  5707. else
  5708. libgnutls_config_prefix=""
  5709. fi
  5710. if test x$libgnutls_config_prefix != x ; then
  5711. if test x${LIBGNUTLS_CONFIG+set} != xset ; then
  5712. LIBGNUTLS_CONFIG=$libgnutls_config_prefix/bin/libgnutls-config
  5713. fi
  5714. fi
  5715. # Extract the first word of "libgnutls-config", so it can be a program name with args.
  5716. set dummy libgnutls-config; ac_word=$2
  5717. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5718. $as_echo_n "checking for $ac_word... " >&6; }
  5719. if test "${ac_cv_path_LIBGNUTLS_CONFIG+set}" = set; then :
  5720. $as_echo_n "(cached) " >&6
  5721. else
  5722. case $LIBGNUTLS_CONFIG in
  5723. [\\/]* | ?:[\\/]*)
  5724. ac_cv_path_LIBGNUTLS_CONFIG="$LIBGNUTLS_CONFIG" # Let the user override the test with a path.
  5725. ;;
  5726. *)
  5727. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5728. for as_dir in $PATH
  5729. do
  5730. IFS=$as_save_IFS
  5731. test -z "$as_dir" && as_dir=.
  5732. for ac_exec_ext in '' $ac_executable_extensions; do
  5733. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5734. ac_cv_path_LIBGNUTLS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5735. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5736. break 2
  5737. fi
  5738. done
  5739. done
  5740. IFS=$as_save_IFS
  5741. test -z "$ac_cv_path_LIBGNUTLS_CONFIG" && ac_cv_path_LIBGNUTLS_CONFIG="no"
  5742. ;;
  5743. esac
  5744. fi
  5745. LIBGNUTLS_CONFIG=$ac_cv_path_LIBGNUTLS_CONFIG
  5746. if test -n "$LIBGNUTLS_CONFIG"; then
  5747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CONFIG" >&5
  5748. $as_echo "$LIBGNUTLS_CONFIG" >&6; }
  5749. else
  5750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5751. $as_echo "no" >&6; }
  5752. fi
  5753. min_libgnutls_version=1.2.9
  5754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgnutls - version >= $min_libgnutls_version" >&5
  5755. $as_echo_n "checking for libgnutls - version >= $min_libgnutls_version... " >&6; }
  5756. no_libgnutls=""
  5757. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  5758. no_libgnutls=yes
  5759. else
  5760. LIBGNUTLS_CFLAGS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --cflags`
  5761. LIBGNUTLS_LIBS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --libs`
  5762. libgnutls_config_version=`$LIBGNUTLS_CONFIG $libgnutls_config_args --version`
  5763. ac_save_CFLAGS="$CFLAGS"
  5764. ac_save_LIBS="$LIBS"
  5765. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  5766. LIBS="$LIBS $LIBGNUTLS_LIBS"
  5767. rm -f conf.libgnutlstest
  5768. if test "$cross_compiling" = yes; then :
  5769. echo $ac_n "cross compiling; assumed OK... $ac_c"
  5770. else
  5771. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5772. /* end confdefs.h. */
  5773. #include <stdio.h>
  5774. #include <stdlib.h>
  5775. #include <string.h>
  5776. #include <gnutls/gnutls.h>
  5777. int
  5778. main ()
  5779. {
  5780. system ("touch conf.libgnutlstest");
  5781. if( strcmp( gnutls_check_version(NULL), "$libgnutls_config_version" ) )
  5782. {
  5783. printf("\n*** 'libgnutls-config --version' returned %s, but LIBGNUTLS (%s)\n",
  5784. "$libgnutls_config_version", gnutls_check_version(NULL) );
  5785. printf("*** was found! If libgnutls-config was correct, then it is best\n");
  5786. printf("*** to remove the old version of LIBGNUTLS. You may also be able to fix the error\n");
  5787. printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
  5788. printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
  5789. printf("*** required on your system.\n");
  5790. printf("*** If libgnutls-config was wrong, set the environment variable LIBGNUTLS_CONFIG\n");
  5791. printf("*** to point to the correct copy of libgnutls-config, and remove the file config.cache\n");
  5792. printf("*** before re-running configure\n");
  5793. }
  5794. else if ( strcmp(gnutls_check_version(NULL), LIBGNUTLS_VERSION ) )
  5795. {
  5796. printf("\n*** LIBGNUTLS header file (version %s) does not match\n", LIBGNUTLS_VERSION);
  5797. printf("*** library (version %s)\n", gnutls_check_version(NULL) );
  5798. }
  5799. else
  5800. {
  5801. if ( gnutls_check_version( "$min_libgnutls_version" ) )
  5802. {
  5803. return 0;
  5804. }
  5805. else
  5806. {
  5807. printf("no\n*** An old version of LIBGNUTLS (%s) was found.\n",
  5808. gnutls_check_version(NULL) );
  5809. printf("*** You need a version of LIBGNUTLS newer than %s. The latest version of\n",
  5810. "$min_libgnutls_version" );
  5811. printf("*** LIBGNUTLS is always available from ftp://gnutls.hellug.gr/pub/gnutls.\n");
  5812. printf("*** \n");
  5813. printf("*** If you have already installed a sufficiently new version, this error\n");
  5814. printf("*** probably means that the wrong copy of the libgnutls-config shell script is\n");
  5815. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  5816. printf("*** of LIBGNUTLS, but you can also set the LIBGNUTLS_CONFIG environment to point to the\n");
  5817. printf("*** correct copy of libgnutls-config. (In this case, you will have to\n");
  5818. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  5819. printf("*** so that the correct libraries are found at run-time))\n");
  5820. }
  5821. }
  5822. return 1;
  5823. }
  5824. _ACEOF
  5825. if ac_fn_cxx_try_run "$LINENO"; then :
  5826. else
  5827. no_libgnutls=yes
  5828. fi
  5829. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5830. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5831. fi
  5832. CFLAGS="$ac_save_CFLAGS"
  5833. LIBS="$ac_save_LIBS"
  5834. fi
  5835. if test "x$no_libgnutls" = x ; then
  5836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5837. $as_echo "yes" >&6; }
  5838. have_libgnutls=yes
  5839. else
  5840. if test -f conf.libgnutlstest ; then
  5841. :
  5842. else
  5843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5844. $as_echo "no" >&6; }
  5845. fi
  5846. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  5847. echo "*** The libgnutls-config script installed by LIBGNUTLS could not be found"
  5848. echo "*** If LIBGNUTLS was installed in PREFIX, make sure PREFIX/bin is in"
  5849. echo "*** your path, or set the LIBGNUTLS_CONFIG environment variable to the"
  5850. echo "*** full path to libgnutls-config."
  5851. else
  5852. if test -f conf.libgnutlstest ; then
  5853. :
  5854. else
  5855. echo "*** Could not run libgnutls test program, checking why..."
  5856. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  5857. LIBS="$LIBS $LIBGNUTLS_LIBS"
  5858. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5859. /* end confdefs.h. */
  5860. #include <stdio.h>
  5861. #include <stdlib.h>
  5862. #include <string.h>
  5863. #include <gnutls/gnutls.h>
  5864. int
  5865. main ()
  5866. {
  5867. return !!gnutls_check_version(NULL);
  5868. ;
  5869. return 0;
  5870. }
  5871. _ACEOF
  5872. if ac_fn_cxx_try_link "$LINENO"; then :
  5873. echo "*** The test program compiled, but did not run. This usually means"
  5874. echo "*** that the run-time linker is not finding LIBGNUTLS or finding the wrong"
  5875. echo "*** version of LIBGNUTLS. If it is not finding LIBGNUTLS, you'll need to set your"
  5876. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  5877. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  5878. echo "*** is required on your system"
  5879. echo "***"
  5880. echo "*** If you have an old version installed, it is best to remove it, although"
  5881. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  5882. echo "***"
  5883. else
  5884. echo "*** The test program failed to compile or link. See the file config.log for the"
  5885. echo "*** exact error that occured. This usually means LIBGNUTLS was incorrectly installed"
  5886. echo "*** or that you have moved LIBGNUTLS since it was installed. In the latter case, you"
  5887. echo "*** may want to edit the libgnutls-config script: $LIBGNUTLS_CONFIG"
  5888. fi
  5889. rm -f core conftest.err conftest.$ac_objext \
  5890. conftest$ac_exeext conftest.$ac_ext
  5891. CFLAGS="$ac_save_CFLAGS"
  5892. LIBS="$ac_save_LIBS"
  5893. fi
  5894. fi
  5895. LIBGNUTLS_CFLAGS=""
  5896. LIBGNUTLS_LIBS=""
  5897. :
  5898. fi
  5899. rm -f conf.libgnutlstest
  5900. fi
  5901. if test "x$have_libgnutls" = "xyes"; then
  5902. $as_echo "#define HAVE_LIBGNUTLS 1" >>confdefs.h
  5903. fi
  5904. fi
  5905. if test "x$have_libgnutls" = "xyes"; then
  5906. # Check whether --with-libgcrypt-prefix was given.
  5907. if test "${with_libgcrypt_prefix+set}" = set; then :
  5908. withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
  5909. else
  5910. libgcrypt_config_prefix=""
  5911. fi
  5912. if test x$libgcrypt_config_prefix != x ; then
  5913. if test x${LIBGCRYPT_CONFIG+set} != xset ; then
  5914. LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
  5915. fi
  5916. fi
  5917. # Extract the first word of "libgcrypt-config", so it can be a program name with args.
  5918. set dummy libgcrypt-config; ac_word=$2
  5919. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5920. $as_echo_n "checking for $ac_word... " >&6; }
  5921. if test "${ac_cv_path_LIBGCRYPT_CONFIG+set}" = set; then :
  5922. $as_echo_n "(cached) " >&6
  5923. else
  5924. case $LIBGCRYPT_CONFIG in
  5925. [\\/]* | ?:[\\/]*)
  5926. ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
  5927. ;;
  5928. *)
  5929. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5930. for as_dir in $PATH
  5931. do
  5932. IFS=$as_save_IFS
  5933. test -z "$as_dir" && as_dir=.
  5934. for ac_exec_ext in '' $ac_executable_extensions; do
  5935. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5936. ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5937. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5938. break 2
  5939. fi
  5940. done
  5941. done
  5942. IFS=$as_save_IFS
  5943. test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
  5944. ;;
  5945. esac
  5946. fi
  5947. LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
  5948. if test -n "$LIBGCRYPT_CONFIG"; then
  5949. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT_CONFIG" >&5
  5950. $as_echo "$LIBGCRYPT_CONFIG" >&6; }
  5951. else
  5952. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5953. $as_echo "no" >&6; }
  5954. fi
  5955. tmp=1.2.2
  5956. if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
  5957. req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
  5958. min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
  5959. else
  5960. req_libgcrypt_api=0
  5961. min_libgcrypt_version="$tmp"
  5962. fi
  5963. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
  5964. $as_echo_n "checking for LIBGCRYPT - version >= $min_libgcrypt_version... " >&6; }
  5965. ok=no
  5966. if test "$LIBGCRYPT_CONFIG" != "no" ; then
  5967. req_major=`echo $min_libgcrypt_version | \
  5968. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
  5969. req_minor=`echo $min_libgcrypt_version | \
  5970. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
  5971. req_micro=`echo $min_libgcrypt_version | \
  5972. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
  5973. libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
  5974. major=`echo $libgcrypt_config_version | \
  5975. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
  5976. minor=`echo $libgcrypt_config_version | \
  5977. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
  5978. micro=`echo $libgcrypt_config_version | \
  5979. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
  5980. if test "$major" -gt "$req_major"; then
  5981. ok=yes
  5982. else
  5983. if test "$major" -eq "$req_major"; then
  5984. if test "$minor" -gt "$req_minor"; then
  5985. ok=yes
  5986. else
  5987. if test "$minor" -eq "$req_minor"; then
  5988. if test "$micro" -ge "$req_micro"; then
  5989. ok=yes
  5990. fi
  5991. fi
  5992. fi
  5993. fi
  5994. fi
  5995. fi
  5996. if test $ok = yes; then
  5997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($libgcrypt_config_version)" >&5
  5998. $as_echo "yes ($libgcrypt_config_version)" >&6; }
  5999. else
  6000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6001. $as_echo "no" >&6; }
  6002. fi
  6003. if test $ok = yes; then
  6004. # If we have a recent libgcrypt, we should also check that the
  6005. # API is compatible
  6006. if test "$req_libgcrypt_api" -gt 0 ; then
  6007. tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
  6008. if test "$tmp" -gt 0 ; then
  6009. { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGCRYPT API version" >&5
  6010. $as_echo_n "checking LIBGCRYPT API version... " >&6; }
  6011. if test "$req_libgcrypt_api" -eq "$tmp" ; then
  6012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
  6013. $as_echo "okay" >&6; }
  6014. else
  6015. ok=no
  6016. { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5
  6017. $as_echo "does not match. want=$req_libgcrypt_api got=$tmp" >&6; }
  6018. fi
  6019. fi
  6020. fi
  6021. fi
  6022. if test $ok = yes; then
  6023. LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
  6024. LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
  6025. have_libgcrypt=yes
  6026. else
  6027. LIBGCRYPT_CFLAGS=""
  6028. LIBGCRYPT_LIBS=""
  6029. :
  6030. fi
  6031. if test "x$have_libgcrypt" = "xyes"; then
  6032. $as_echo "#define HAVE_LIBGCRYPT 1" >>confdefs.h
  6033. fi
  6034. fi
  6035. if test "x$with_openssl" = "xyes" && test "x$have_libgnutls" != "xyes"; then
  6036. # Check whether --with-openssl-prefix was given.
  6037. if test "${with_openssl_prefix+set}" = set; then :
  6038. withval=$with_openssl_prefix; openssl_prefix=$withval
  6039. else
  6040. openssl_prefix=""
  6041. fi
  6042. if test "x$openssl_prefix" = "x"; then
  6043. openssl_prefix="/usr/local"
  6044. fi
  6045. LIBS_save=$LIBS
  6046. CPPFLAGS_save=$CPPFLAGS
  6047. PKG_CONFIG="$openssl_prefix/bin/pkg-config"
  6048. if test -x $PKG_CONFIG; then
  6049. { $as_echo "$as_me:${as_lineno-$LINENO}: checking checking availability of openssl using pkg-config" >&5
  6050. $as_echo_n "checking checking availability of openssl using pkg-config... " >&6; }
  6051. $PKG_CONFIG --exists openssl
  6052. if test "$?" = "0"; then
  6053. # Use pkg-config to detect LIBS and CFLAGS
  6054. OPENSSL_LIBS=`$PKG_CONFIG --libs openssl`
  6055. OPENSSL_CFLAGS=`$PKG_CONFIG --cflags openssl`
  6056. LIBS="$OPENSSL_LIBS $LIBS"
  6057. CPPFLAGS="$OPENSSL_CFLAGS $CPPFLAGS"
  6058. have_openssl=yes
  6059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6060. $as_echo "yes" >&6; }
  6061. else
  6062. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6063. $as_echo "no" >&6; }
  6064. fi
  6065. fi
  6066. if test "x$have_openssl" != "xyes"; then
  6067. openssl_prefix_lib=$openssl_prefix/lib
  6068. openssl_prefix_include=$openssl_prefix/include
  6069. LIBS="-L$openssl_prefix_lib $LIBS"
  6070. CPPFLAGS="-I$openssl_prefix_include $CPPFLAGS"
  6071. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_library_init in -lssl" >&5
  6072. $as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
  6073. if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then :
  6074. $as_echo_n "(cached) " >&6
  6075. else
  6076. ac_check_lib_save_LIBS=$LIBS
  6077. LIBS="-lssl $LIBS"
  6078. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6079. /* end confdefs.h. */
  6080. /* Override any GCC internal prototype to avoid an error.
  6081. Use char because int might match the return type of a GCC
  6082. builtin and then its argument prototype would still apply. */
  6083. #ifdef __cplusplus
  6084. extern "C"
  6085. #endif
  6086. char SSL_library_init ();
  6087. int
  6088. main ()
  6089. {
  6090. return SSL_library_init ();
  6091. ;
  6092. return 0;
  6093. }
  6094. _ACEOF
  6095. if ac_fn_cxx_try_link "$LINENO"; then :
  6096. ac_cv_lib_ssl_SSL_library_init=yes
  6097. else
  6098. ac_cv_lib_ssl_SSL_library_init=no
  6099. fi
  6100. rm -f core conftest.err conftest.$ac_objext \
  6101. conftest$ac_exeext conftest.$ac_ext
  6102. LIBS=$ac_check_lib_save_LIBS
  6103. fi
  6104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_library_init" >&5
  6105. $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
  6106. if test "x$ac_cv_lib_ssl_SSL_library_init" = x""yes; then :
  6107. have_openssl=yes LIBS="-lssl $LIBS"
  6108. fi
  6109. if test "x$have_openssl" = "xyes"; then
  6110. have_openssl=no
  6111. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lcrypto" >&5
  6112. $as_echo_n "checking for main in -lcrypto... " >&6; }
  6113. if test "${ac_cv_lib_crypto_main+set}" = set; then :
  6114. $as_echo_n "(cached) " >&6
  6115. else
  6116. ac_check_lib_save_LIBS=$LIBS
  6117. LIBS="-lcrypto $LIBS"
  6118. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6119. /* end confdefs.h. */
  6120. int
  6121. main ()
  6122. {
  6123. return main ();
  6124. ;
  6125. return 0;
  6126. }
  6127. _ACEOF
  6128. if ac_fn_cxx_try_link "$LINENO"; then :
  6129. ac_cv_lib_crypto_main=yes
  6130. else
  6131. ac_cv_lib_crypto_main=no
  6132. fi
  6133. rm -f core conftest.err conftest.$ac_objext \
  6134. conftest$ac_exeext conftest.$ac_ext
  6135. LIBS=$ac_check_lib_save_LIBS
  6136. fi
  6137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_main" >&5
  6138. $as_echo "$ac_cv_lib_crypto_main" >&6; }
  6139. if test "x$ac_cv_lib_crypto_main" = x""yes; then :
  6140. have_openssl=yes; LIBS="-lcrypto $LIBS"
  6141. fi
  6142. if test "x$have_openssl" = "xyes"; then
  6143. OPENSSL_LIBS="-L$openssl_prefix_lib -lssl -lcrypto"
  6144. OPENSSL_CFLAGS="-I$openssl_prefix_include"
  6145. fi
  6146. fi
  6147. fi
  6148. if test "x$have_openssl" = "xyes"; then
  6149. $as_echo "#define HAVE_LIBSSL 1" >>confdefs.h
  6150. # check whether EVP_DigestInit_ex exists. Old openssl doesn't have it.
  6151. for ac_func in EVP_DigestInit_ex
  6152. do :
  6153. ac_fn_cxx_check_func "$LINENO" "EVP_DigestInit_ex" "ac_cv_func_EVP_DigestInit_ex"
  6154. if test "x$ac_cv_func_EVP_DigestInit_ex" = x""yes; then :
  6155. cat >>confdefs.h <<_ACEOF
  6156. #define HAVE_EVP_DIGESTINIT_EX 1
  6157. _ACEOF
  6158. have_digestinit_ex=yes
  6159. fi
  6160. done
  6161. if test "x$have_digestinit_ex" = "x"; then
  6162. $as_echo "#define HAVE_OLD_LIBSSL 1" >>confdefs.h
  6163. fi
  6164. # search for sha256 support
  6165. for ac_func in EVP_sha256
  6166. do :
  6167. ac_fn_cxx_check_func "$LINENO" "EVP_sha256" "ac_cv_func_EVP_sha256"
  6168. if test "x$ac_cv_func_EVP_sha256" = x""yes; then :
  6169. cat >>confdefs.h <<_ACEOF
  6170. #define HAVE_EVP_SHA256 1
  6171. _ACEOF
  6172. fi
  6173. done
  6174. fi
  6175. LIBS=$LIBS_save
  6176. CPPFLAGS=$CPPFLAGS_save
  6177. fi
  6178. if test "x$with_libcares" = "xyes"; then
  6179. # Check whether --with-libcares-prefix was given.
  6180. if test "${with_libcares_prefix+set}" = set; then :
  6181. withval=$with_libcares_prefix; libcares_prefix=$withval
  6182. else
  6183. libcares_prefix=""
  6184. fi
  6185. if test "x$libcares_prefix" = "x"; then
  6186. libcares_prefix="/usr"
  6187. fi
  6188. libcares_prefix_lib=$libcares_prefix/lib
  6189. libcares_prefix_include=$libcares_prefix/include
  6190. LIBS_save=$LIBS
  6191. CPPFLAGS_save=$CPPFLAGS
  6192. LIBS="-L$libcares_prefix_lib $LIBS"
  6193. CPPFLAGS="-I$libcares_prefix_include -Wall $CPPFLAGS"
  6194. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ares_init in -lcares" >&5
  6195. $as_echo_n "checking for ares_init in -lcares... " >&6; }
  6196. if test "${ac_cv_lib_cares_ares_init+set}" = set; then :
  6197. $as_echo_n "(cached) " >&6
  6198. else
  6199. ac_check_lib_save_LIBS=$LIBS
  6200. LIBS="-lcares $LIBS"
  6201. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6202. /* end confdefs.h. */
  6203. /* Override any GCC internal prototype to avoid an error.
  6204. Use char because int might match the return type of a GCC
  6205. builtin and then its argument prototype would still apply. */
  6206. #ifdef __cplusplus
  6207. extern "C"
  6208. #endif
  6209. char ares_init ();
  6210. int
  6211. main ()
  6212. {
  6213. return ares_init ();
  6214. ;
  6215. return 0;
  6216. }
  6217. _ACEOF
  6218. if ac_fn_cxx_try_link "$LINENO"; then :
  6219. ac_cv_lib_cares_ares_init=yes
  6220. else
  6221. ac_cv_lib_cares_ares_init=no
  6222. fi
  6223. rm -f core conftest.err conftest.$ac_objext \
  6224. conftest$ac_exeext conftest.$ac_ext
  6225. LIBS=$ac_check_lib_save_LIBS
  6226. fi
  6227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cares_ares_init" >&5
  6228. $as_echo "$ac_cv_lib_cares_ares_init" >&6; }
  6229. if test "x$ac_cv_lib_cares_ares_init" = x""yes; then :
  6230. have_libcares=yes
  6231. fi
  6232. if test "x$have_libcares" != "xyes"; then
  6233. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ares_init in -lcares" >&5
  6234. $as_echo_n "checking for ares_init in -lcares... " >&6; }
  6235. if test "${ac_cv_lib_cares_ares_init+set}" = set; then :
  6236. $as_echo_n "(cached) " >&6
  6237. else
  6238. ac_check_lib_save_LIBS=$LIBS
  6239. LIBS="-lcares -lrt $LIBS"
  6240. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6241. /* end confdefs.h. */
  6242. /* Override any GCC internal prototype to avoid an error.
  6243. Use char because int might match the return type of a GCC
  6244. builtin and then its argument prototype would still apply. */
  6245. #ifdef __cplusplus
  6246. extern "C"
  6247. #endif
  6248. char ares_init ();
  6249. int
  6250. main ()
  6251. {
  6252. return ares_init ();
  6253. ;
  6254. return 0;
  6255. }
  6256. _ACEOF
  6257. if ac_fn_cxx_try_link "$LINENO"; then :
  6258. ac_cv_lib_cares_ares_init=yes
  6259. else
  6260. ac_cv_lib_cares_ares_init=no
  6261. fi
  6262. rm -f core conftest.err conftest.$ac_objext \
  6263. conftest$ac_exeext conftest.$ac_ext
  6264. LIBS=$ac_check_lib_save_LIBS
  6265. fi
  6266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cares_ares_init" >&5
  6267. $as_echo "$ac_cv_lib_cares_ares_init" >&6; }
  6268. if test "x$ac_cv_lib_cares_ares_init" = x""yes; then :
  6269. have_libcares=yes need_librt=yes
  6270. fi
  6271. fi
  6272. if test "x$have_libcares" = "xyes"; then
  6273. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ares_host_callback accepts timeouts(c-ares >= 1.5)" >&5
  6274. $as_echo_n "checking whether ares_host_callback accepts timeouts(c-ares >= 1.5)... " >&6; }
  6275. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6276. /* end confdefs.h. */
  6277. #include <ares.h>
  6278. void callback(void* arg, int status, int timeouts, struct hostent* host);
  6279. int
  6280. main ()
  6281. {
  6282. ares_channel channel;
  6283. ares_gethostbyname(channel, "foo", 0, callback, 0);
  6284. ;
  6285. return 0;
  6286. }
  6287. _ACEOF
  6288. if ac_fn_cxx_try_compile "$LINENO"; then :
  6289. have_libcares1_5=yes
  6290. else
  6291. have_libcares1_5=no
  6292. fi
  6293. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_libcares1_5" >&5
  6295. $as_echo "$have_libcares1_5" >&6; }
  6296. if test "x$have_libcares1_5" = "xyes"; then
  6297. $as_echo "#define HAVE_LIBCARES1_5 1" >>confdefs.h
  6298. fi
  6299. $as_echo "#define HAVE_LIBCARES 1" >>confdefs.h
  6300. LIBCARES_LIBS="-L$libcares_prefix_lib -lcares"
  6301. if test "x$need_librt" = "xyes"; then
  6302. LIBCARES_LIBS="$LIBCARES_LIBS -lrt"
  6303. fi
  6304. LIBCARES_CPPFLAGS="-I$libcares_prefix_include"
  6305. fi
  6306. LIBS=$LIBS_save
  6307. CPPFLAGS=$CPPFLAGS_save
  6308. fi
  6309. # Check availability of libz
  6310. if test "x$with_libz" = "xyes"; then
  6311. # Check whether --with-libz-prefix was given.
  6312. if test "${with_libz_prefix+set}" = set; then :
  6313. withval=$with_libz_prefix; libz_prefix=$withval
  6314. else
  6315. libz_prefix=""
  6316. fi
  6317. if test "x$libz_prefix" = "x"; then
  6318. libz_prefix="/usr"
  6319. fi
  6320. libz_prefix_lib=$libz_prefix/lib
  6321. libz_prefix_include=$libz_prefix/include
  6322. LIBS_save=$LIBS
  6323. CPPFLAGS_save=$CPPFLAGS
  6324. LIBS="-L$libz_prefix_lib $LIBS"
  6325. CPPFLAGS="-I$libz_prefix_include $CPPFLAGS"
  6326. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5
  6327. $as_echo_n "checking for zlibVersion in -lz... " >&6; }
  6328. if test "${ac_cv_lib_z_zlibVersion+set}" = set; then :
  6329. $as_echo_n "(cached) " >&6
  6330. else
  6331. ac_check_lib_save_LIBS=$LIBS
  6332. LIBS="-lz $LIBS"
  6333. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6334. /* end confdefs.h. */
  6335. /* Override any GCC internal prototype to avoid an error.
  6336. Use char because int might match the return type of a GCC
  6337. builtin and then its argument prototype would still apply. */
  6338. #ifdef __cplusplus
  6339. extern "C"
  6340. #endif
  6341. char zlibVersion ();
  6342. int
  6343. main ()
  6344. {
  6345. return zlibVersion ();
  6346. ;
  6347. return 0;
  6348. }
  6349. _ACEOF
  6350. if ac_fn_cxx_try_link "$LINENO"; then :
  6351. ac_cv_lib_z_zlibVersion=yes
  6352. else
  6353. ac_cv_lib_z_zlibVersion=no
  6354. fi
  6355. rm -f core conftest.err conftest.$ac_objext \
  6356. conftest$ac_exeext conftest.$ac_ext
  6357. LIBS=$ac_check_lib_save_LIBS
  6358. fi
  6359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5
  6360. $as_echo "$ac_cv_lib_z_zlibVersion" >&6; }
  6361. if test "x$ac_cv_lib_z_zlibVersion" = x""yes; then :
  6362. have_libz=yes
  6363. fi
  6364. if test "x$have_libz" = "xyes"; then
  6365. $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
  6366. LIBZ_LIBS="-L$libz_prefix_lib -lz"
  6367. LIBZ_CPPFLAGS="-I$libz_prefix_include"
  6368. fi
  6369. LIBS=$LIBS_save
  6370. CPPFLAGS=$CPPFLAGS_save
  6371. fi
  6372. # Define variables based on the result of the checks for libraries.
  6373. if test "x$have_libgnutls" = "xyes" || test "x$have_openssl" = "xyes"; then
  6374. $as_echo "#define ENABLE_SSL 1" >>confdefs.h
  6375. if true; then
  6376. ENABLE_SSL_TRUE=
  6377. ENABLE_SSL_FALSE='#'
  6378. else
  6379. ENABLE_SSL_TRUE='#'
  6380. ENABLE_SSL_FALSE=
  6381. fi
  6382. else
  6383. if false; then
  6384. ENABLE_SSL_TRUE=
  6385. ENABLE_SSL_FALSE='#'
  6386. else
  6387. ENABLE_SSL_TRUE='#'
  6388. ENABLE_SSL_FALSE=
  6389. fi
  6390. fi
  6391. if test "x$have_libgnutls" = "xyes" ; then
  6392. HAVE_LIBGNUTLS_TRUE=
  6393. HAVE_LIBGNUTLS_FALSE='#'
  6394. else
  6395. HAVE_LIBGNUTLS_TRUE='#'
  6396. HAVE_LIBGNUTLS_FALSE=
  6397. fi
  6398. if test "x$have_openssl" = "xyes" ; then
  6399. HAVE_LIBSSL_TRUE=
  6400. HAVE_LIBSSL_FALSE='#'
  6401. else
  6402. HAVE_LIBSSL_TRUE='#'
  6403. HAVE_LIBSSL_FALSE=
  6404. fi
  6405. if test "x$have_libgcrypt" = "xyes" || test "x$have_openssl" = "xyes"; then
  6406. $as_echo "#define ENABLE_MESSAGE_DIGEST 1" >>confdefs.h
  6407. if true; then
  6408. ENABLE_MESSAGE_DIGEST_TRUE=
  6409. ENABLE_MESSAGE_DIGEST_FALSE='#'
  6410. else
  6411. ENABLE_MESSAGE_DIGEST_TRUE='#'
  6412. ENABLE_MESSAGE_DIGEST_FALSE=
  6413. fi
  6414. enable_message_digest=yes
  6415. else
  6416. if false; then
  6417. ENABLE_MESSAGE_DIGEST_TRUE=
  6418. ENABLE_MESSAGE_DIGEST_FALSE='#'
  6419. else
  6420. ENABLE_MESSAGE_DIGEST_TRUE='#'
  6421. ENABLE_MESSAGE_DIGEST_FALSE=
  6422. fi
  6423. fi
  6424. if test "x$enable_bittorrent" = "xyes" &&
  6425. test "x$enable_message_digest" = "xyes"; then
  6426. $as_echo "#define ENABLE_BITTORRENT 1" >>confdefs.h
  6427. if true; then
  6428. ENABLE_BITTORRENT_TRUE=
  6429. ENABLE_BITTORRENT_FALSE='#'
  6430. else
  6431. ENABLE_BITTORRENT_TRUE='#'
  6432. ENABLE_BITTORRENT_FALSE=
  6433. fi
  6434. else
  6435. enable_bittorrent=no
  6436. if false; then
  6437. ENABLE_BITTORRENT_TRUE=
  6438. ENABLE_BITTORRENT_FALSE='#'
  6439. else
  6440. ENABLE_BITTORRENT_TRUE='#'
  6441. ENABLE_BITTORRENT_FALSE=
  6442. fi
  6443. fi
  6444. if (test "x$have_libxml2" = "xyes" || test "x$have_libexpat" = "xyes") &&
  6445. test "x$enable_metalink" = "xyes"; then
  6446. $as_echo "#define ENABLE_METALINK 1" >>confdefs.h
  6447. if true; then
  6448. ENABLE_METALINK_TRUE=
  6449. ENABLE_METALINK_FALSE='#'
  6450. else
  6451. ENABLE_METALINK_TRUE='#'
  6452. ENABLE_METALINK_FALSE=
  6453. fi
  6454. else
  6455. enable_metalink=no
  6456. if false; then
  6457. ENABLE_METALINK_TRUE=
  6458. ENABLE_METALINK_FALSE='#'
  6459. else
  6460. ENABLE_METALINK_TRUE='#'
  6461. ENABLE_METALINK_FALSE=
  6462. fi
  6463. fi
  6464. if test "x$enable_metalink" = "xyes" && test "x$have_libxml2" = "xyes"; then
  6465. ENABLE_METALINK_LIBXML2_TRUE=
  6466. ENABLE_METALINK_LIBXML2_FALSE='#'
  6467. else
  6468. ENABLE_METALINK_LIBXML2_TRUE='#'
  6469. ENABLE_METALINK_LIBXML2_FALSE=
  6470. fi
  6471. if test "x$enable_metalink" = "xyes" && test "x$have_libexpat" = "xyes"; then
  6472. ENABLE_METALINK_LIBEXPAT_TRUE=
  6473. ENABLE_METALINK_LIBEXPAT_FALSE='#'
  6474. else
  6475. ENABLE_METALINK_LIBEXPAT_TRUE='#'
  6476. ENABLE_METALINK_LIBEXPAT_FALSE=
  6477. fi
  6478. if test "x$have_libxml2" = "xyes" || test "x$have_libexpat" = "xyes"; then
  6479. enable_xml_rpc=yes
  6480. fi
  6481. if test "x$enable_xml_rpc" = "xyes"; then
  6482. $as_echo "#define ENABLE_XML_RPC 1" >>confdefs.h
  6483. fi
  6484. if test "x$enable_xml_rpc" = "xyes"; then
  6485. ENABLE_XML_RPC_TRUE=
  6486. ENABLE_XML_RPC_FALSE='#'
  6487. else
  6488. ENABLE_XML_RPC_TRUE='#'
  6489. ENABLE_XML_RPC_FALSE=
  6490. fi
  6491. if test "x$have_libxml2" = "xyes"; then
  6492. HAVE_LIBXML2_TRUE=
  6493. HAVE_LIBXML2_FALSE='#'
  6494. else
  6495. HAVE_LIBXML2_TRUE='#'
  6496. HAVE_LIBXML2_FALSE=
  6497. fi
  6498. if test "x$have_libexpat" = "xyes"; then
  6499. HAVE_LIBEXPAT_TRUE=
  6500. HAVE_LIBEXPAT_FALSE='#'
  6501. else
  6502. HAVE_LIBEXPAT_TRUE='#'
  6503. HAVE_LIBEXPAT_FALSE=
  6504. fi
  6505. if test "x$have_libcares" = "xyes"; then
  6506. $as_echo "#define ENABLE_ASYNC_DNS 1" >>confdefs.h
  6507. if true; then
  6508. ENABLE_ASYNC_DNS_TRUE=
  6509. ENABLE_ASYNC_DNS_FALSE='#'
  6510. else
  6511. ENABLE_ASYNC_DNS_TRUE='#'
  6512. ENABLE_ASYNC_DNS_FALSE=
  6513. fi
  6514. else
  6515. if false; then
  6516. ENABLE_ASYNC_DNS_TRUE=
  6517. ENABLE_ASYNC_DNS_FALSE='#'
  6518. else
  6519. ENABLE_ASYNC_DNS_TRUE='#'
  6520. ENABLE_ASYNC_DNS_FALSE=
  6521. fi
  6522. fi
  6523. # Set conditional for libz
  6524. if test "x$have_libz" = "xyes"; then
  6525. HAVE_LIBZ_TRUE=
  6526. HAVE_LIBZ_FALSE='#'
  6527. else
  6528. HAVE_LIBZ_TRUE='#'
  6529. HAVE_LIBZ_FALSE=
  6530. fi
  6531. # Set conditional for sqlite3
  6532. if test "x$have_sqlite3" = "xyes"; then
  6533. HAVE_SQLITE3_TRUE=
  6534. HAVE_SQLITE3_FALSE='#'
  6535. else
  6536. HAVE_SQLITE3_TRUE='#'
  6537. HAVE_SQLITE3_FALSE=
  6538. fi
  6539. # Checks for header files.
  6540. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  6541. # for constant arguments. Useless!
  6542. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  6543. $as_echo_n "checking for working alloca.h... " >&6; }
  6544. if test "${ac_cv_working_alloca_h+set}" = set; then :
  6545. $as_echo_n "(cached) " >&6
  6546. else
  6547. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6548. /* end confdefs.h. */
  6549. #include <alloca.h>
  6550. int
  6551. main ()
  6552. {
  6553. char *p = (char *) alloca (2 * sizeof (int));
  6554. if (p) return 0;
  6555. ;
  6556. return 0;
  6557. }
  6558. _ACEOF
  6559. if ac_fn_cxx_try_link "$LINENO"; then :
  6560. ac_cv_working_alloca_h=yes
  6561. else
  6562. ac_cv_working_alloca_h=no
  6563. fi
  6564. rm -f core conftest.err conftest.$ac_objext \
  6565. conftest$ac_exeext conftest.$ac_ext
  6566. fi
  6567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  6568. $as_echo "$ac_cv_working_alloca_h" >&6; }
  6569. if test $ac_cv_working_alloca_h = yes; then
  6570. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  6571. fi
  6572. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  6573. $as_echo_n "checking for alloca... " >&6; }
  6574. if test "${ac_cv_func_alloca_works+set}" = set; then :
  6575. $as_echo_n "(cached) " >&6
  6576. else
  6577. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6578. /* end confdefs.h. */
  6579. #ifdef __GNUC__
  6580. # define alloca __builtin_alloca
  6581. #else
  6582. # ifdef _MSC_VER
  6583. # include <malloc.h>
  6584. # define alloca _alloca
  6585. # else
  6586. # ifdef HAVE_ALLOCA_H
  6587. # include <alloca.h>
  6588. # else
  6589. # ifdef _AIX
  6590. #pragma alloca
  6591. # else
  6592. # ifndef alloca /* predefined by HP cc +Olibcalls */
  6593. char *alloca ();
  6594. # endif
  6595. # endif
  6596. # endif
  6597. # endif
  6598. #endif
  6599. int
  6600. main ()
  6601. {
  6602. char *p = (char *) alloca (1);
  6603. if (p) return 0;
  6604. ;
  6605. return 0;
  6606. }
  6607. _ACEOF
  6608. if ac_fn_cxx_try_link "$LINENO"; then :
  6609. ac_cv_func_alloca_works=yes
  6610. else
  6611. ac_cv_func_alloca_works=no
  6612. fi
  6613. rm -f core conftest.err conftest.$ac_objext \
  6614. conftest$ac_exeext conftest.$ac_ext
  6615. fi
  6616. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  6617. $as_echo "$ac_cv_func_alloca_works" >&6; }
  6618. if test $ac_cv_func_alloca_works = yes; then
  6619. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  6620. else
  6621. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  6622. # that cause trouble. Some versions do not even contain alloca or
  6623. # contain a buggy version. If you still want to use their alloca,
  6624. # use ar to extract alloca.o from them instead of compiling alloca.c.
  6625. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  6626. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  6627. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  6628. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  6629. if test "${ac_cv_os_cray+set}" = set; then :
  6630. $as_echo_n "(cached) " >&6
  6631. else
  6632. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6633. /* end confdefs.h. */
  6634. #if defined CRAY && ! defined CRAY2
  6635. webecray
  6636. #else
  6637. wenotbecray
  6638. #endif
  6639. _ACEOF
  6640. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6641. $EGREP "webecray" >/dev/null 2>&1; then :
  6642. ac_cv_os_cray=yes
  6643. else
  6644. ac_cv_os_cray=no
  6645. fi
  6646. rm -f conftest*
  6647. fi
  6648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  6649. $as_echo "$ac_cv_os_cray" >&6; }
  6650. if test $ac_cv_os_cray = yes; then
  6651. for ac_func in _getb67 GETB67 getb67; do
  6652. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6653. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  6654. eval as_val=\$$as_ac_var
  6655. if test "x$as_val" = x""yes; then :
  6656. cat >>confdefs.h <<_ACEOF
  6657. #define CRAY_STACKSEG_END $ac_func
  6658. _ACEOF
  6659. break
  6660. fi
  6661. done
  6662. fi
  6663. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  6664. $as_echo_n "checking stack direction for C alloca... " >&6; }
  6665. if test "${ac_cv_c_stack_direction+set}" = set; then :
  6666. $as_echo_n "(cached) " >&6
  6667. else
  6668. if test "$cross_compiling" = yes; then :
  6669. ac_cv_c_stack_direction=0
  6670. else
  6671. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6672. /* end confdefs.h. */
  6673. $ac_includes_default
  6674. int
  6675. find_stack_direction ()
  6676. {
  6677. static char *addr = 0;
  6678. auto char dummy;
  6679. if (addr == 0)
  6680. {
  6681. addr = &dummy;
  6682. return find_stack_direction ();
  6683. }
  6684. else
  6685. return (&dummy > addr) ? 1 : -1;
  6686. }
  6687. int
  6688. main ()
  6689. {
  6690. return find_stack_direction () < 0;
  6691. }
  6692. _ACEOF
  6693. if ac_fn_cxx_try_run "$LINENO"; then :
  6694. ac_cv_c_stack_direction=1
  6695. else
  6696. ac_cv_c_stack_direction=-1
  6697. fi
  6698. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6699. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6700. fi
  6701. fi
  6702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  6703. $as_echo "$ac_cv_c_stack_direction" >&6; }
  6704. cat >>confdefs.h <<_ACEOF
  6705. #define STACK_DIRECTION $ac_cv_c_stack_direction
  6706. _ACEOF
  6707. fi
  6708. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6709. $as_echo_n "checking for ANSI C header files... " >&6; }
  6710. if test "${ac_cv_header_stdc+set}" = set; then :
  6711. $as_echo_n "(cached) " >&6
  6712. else
  6713. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6714. /* end confdefs.h. */
  6715. #include <stdlib.h>
  6716. #include <stdarg.h>
  6717. #include <string.h>
  6718. #include <float.h>
  6719. int
  6720. main ()
  6721. {
  6722. ;
  6723. return 0;
  6724. }
  6725. _ACEOF
  6726. if ac_fn_cxx_try_compile "$LINENO"; then :
  6727. ac_cv_header_stdc=yes
  6728. else
  6729. ac_cv_header_stdc=no
  6730. fi
  6731. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6732. if test $ac_cv_header_stdc = yes; then
  6733. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6734. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6735. /* end confdefs.h. */
  6736. #include <string.h>
  6737. _ACEOF
  6738. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6739. $EGREP "memchr" >/dev/null 2>&1; then :
  6740. else
  6741. ac_cv_header_stdc=no
  6742. fi
  6743. rm -f conftest*
  6744. fi
  6745. if test $ac_cv_header_stdc = yes; then
  6746. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6747. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6748. /* end confdefs.h. */
  6749. #include <stdlib.h>
  6750. _ACEOF
  6751. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6752. $EGREP "free" >/dev/null 2>&1; then :
  6753. else
  6754. ac_cv_header_stdc=no
  6755. fi
  6756. rm -f conftest*
  6757. fi
  6758. if test $ac_cv_header_stdc = yes; then
  6759. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6760. if test "$cross_compiling" = yes; then :
  6761. :
  6762. else
  6763. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6764. /* end confdefs.h. */
  6765. #include <ctype.h>
  6766. #include <stdlib.h>
  6767. #if ((' ' & 0x0FF) == 0x020)
  6768. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6769. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6770. #else
  6771. # define ISLOWER(c) \
  6772. (('a' <= (c) && (c) <= 'i') \
  6773. || ('j' <= (c) && (c) <= 'r') \
  6774. || ('s' <= (c) && (c) <= 'z'))
  6775. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6776. #endif
  6777. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6778. int
  6779. main ()
  6780. {
  6781. int i;
  6782. for (i = 0; i < 256; i++)
  6783. if (XOR (islower (i), ISLOWER (i))
  6784. || toupper (i) != TOUPPER (i))
  6785. return 2;
  6786. return 0;
  6787. }
  6788. _ACEOF
  6789. if ac_fn_cxx_try_run "$LINENO"; then :
  6790. else
  6791. ac_cv_header_stdc=no
  6792. fi
  6793. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6794. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6795. fi
  6796. fi
  6797. fi
  6798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6799. $as_echo "$ac_cv_header_stdc" >&6; }
  6800. if test $ac_cv_header_stdc = yes; then
  6801. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6802. fi
  6803. case "$target" in
  6804. *mingw*)
  6805. for ac_header in winsock2.h \
  6806. ws2tcpip.h
  6807. do :
  6808. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6809. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  6810. eval as_val=\$$as_ac_Header
  6811. if test "x$as_val" = x""yes; then :
  6812. cat >>confdefs.h <<_ACEOF
  6813. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6814. _ACEOF
  6815. fi
  6816. done
  6817. ;;
  6818. esac
  6819. for ac_header in argz.h \
  6820. arpa/inet.h \
  6821. fcntl.h \
  6822. float.h \
  6823. inttypes.h \
  6824. io.h \
  6825. langinfo.h \
  6826. libintl.h \
  6827. limits.h \
  6828. locale.h \
  6829. malloc.h \
  6830. netdb.h \
  6831. netinet/in.h \
  6832. stddef.h \
  6833. stdint.h \
  6834. stdio_ext.h \
  6835. stdlib.h \
  6836. string.h \
  6837. strings.h \
  6838. sys/ioctl.h \
  6839. sys/param.h \
  6840. sys/socket.h \
  6841. sys/time.h \
  6842. termios.h \
  6843. unistd.h \
  6844. wchar.h
  6845. do :
  6846. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6847. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  6848. eval as_val=\$$as_ac_Header
  6849. if test "x$as_val" = x""yes; then :
  6850. cat >>confdefs.h <<_ACEOF
  6851. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6852. _ACEOF
  6853. fi
  6854. done
  6855. # Checks for typedefs, structures, and compiler characteristics.
  6856. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
  6857. $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
  6858. if test "${ac_cv_header_stdbool_h+set}" = set; then :
  6859. $as_echo_n "(cached) " >&6
  6860. else
  6861. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6862. /* end confdefs.h. */
  6863. #include <stdbool.h>
  6864. #ifndef bool
  6865. "error: bool is not defined"
  6866. #endif
  6867. #ifndef false
  6868. "error: false is not defined"
  6869. #endif
  6870. #if false
  6871. "error: false is not 0"
  6872. #endif
  6873. #ifndef true
  6874. "error: true is not defined"
  6875. #endif
  6876. #if true != 1
  6877. "error: true is not 1"
  6878. #endif
  6879. #ifndef __bool_true_false_are_defined
  6880. "error: __bool_true_false_are_defined is not defined"
  6881. #endif
  6882. struct s { _Bool s: 1; _Bool t; } s;
  6883. char a[true == 1 ? 1 : -1];
  6884. char b[false == 0 ? 1 : -1];
  6885. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  6886. char d[(bool) 0.5 == true ? 1 : -1];
  6887. bool e = &s;
  6888. char f[(_Bool) 0.0 == false ? 1 : -1];
  6889. char g[true];
  6890. char h[sizeof (_Bool)];
  6891. char i[sizeof s.t];
  6892. enum { j = false, k = true, l = false * true, m = true * 256 };
  6893. /* The following fails for
  6894. HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
  6895. _Bool n[m];
  6896. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  6897. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  6898. # if defined __xlc__ || defined __GNUC__
  6899. /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
  6900. reported by James Lemley on 2005-10-05; see
  6901. http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
  6902. This test is not quite right, since xlc is allowed to
  6903. reject this program, as the initializer for xlcbug is
  6904. not one of the forms that C requires support for.
  6905. However, doing the test right would require a runtime
  6906. test, and that would make cross-compilation harder.
  6907. Let us hope that IBM fixes the xlc bug, and also adds
  6908. support for this kind of constant expression. In the
  6909. meantime, this test will reject xlc, which is OK, since
  6910. our stdbool.h substitute should suffice. We also test
  6911. this with GCC, where it should work, to detect more
  6912. quickly whether someone messes up the test in the
  6913. future. */
  6914. char digs[] = "0123456789";
  6915. int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
  6916. # endif
  6917. /* Catch a bug in an HP-UX C compiler. See
  6918. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  6919. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  6920. */
  6921. _Bool q = true;
  6922. _Bool *pq = &q;
  6923. int
  6924. main ()
  6925. {
  6926. *pq |= q;
  6927. *pq |= ! q;
  6928. /* Refer to every declared value, to avoid compiler optimizations. */
  6929. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  6930. + !m + !n + !o + !p + !q + !pq);
  6931. ;
  6932. return 0;
  6933. }
  6934. _ACEOF
  6935. if ac_fn_cxx_try_compile "$LINENO"; then :
  6936. ac_cv_header_stdbool_h=yes
  6937. else
  6938. ac_cv_header_stdbool_h=no
  6939. fi
  6940. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6941. fi
  6942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
  6943. $as_echo "$ac_cv_header_stdbool_h" >&6; }
  6944. ac_fn_cxx_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
  6945. if test "x$ac_cv_type__Bool" = x""yes; then :
  6946. cat >>confdefs.h <<_ACEOF
  6947. #define HAVE__BOOL 1
  6948. _ACEOF
  6949. fi
  6950. if test $ac_cv_header_stdbool_h = yes; then
  6951. $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
  6952. fi
  6953. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  6954. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  6955. if test "${ac_cv_c_const+set}" = set; then :
  6956. $as_echo_n "(cached) " >&6
  6957. else
  6958. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6959. /* end confdefs.h. */
  6960. int
  6961. main ()
  6962. {
  6963. /* FIXME: Include the comments suggested by Paul. */
  6964. #ifndef __cplusplus
  6965. /* Ultrix mips cc rejects this. */
  6966. typedef int charset[2];
  6967. const charset cs;
  6968. /* SunOS 4.1.1 cc rejects this. */
  6969. char const *const *pcpcc;
  6970. char **ppc;
  6971. /* NEC SVR4.0.2 mips cc rejects this. */
  6972. struct point {int x, y;};
  6973. static struct point const zero = {0,0};
  6974. /* AIX XL C 1.02.0.0 rejects this.
  6975. It does not let you subtract one const X* pointer from another in
  6976. an arm of an if-expression whose if-part is not a constant
  6977. expression */
  6978. const char *g = "string";
  6979. pcpcc = &g + (g ? g-g : 0);
  6980. /* HPUX 7.0 cc rejects these. */
  6981. ++pcpcc;
  6982. ppc = (char**) pcpcc;
  6983. pcpcc = (char const *const *) ppc;
  6984. { /* SCO 3.2v4 cc rejects this. */
  6985. char *t;
  6986. char const *s = 0 ? (char *) 0 : (char const *) 0;
  6987. *t++ = 0;
  6988. if (s) return 0;
  6989. }
  6990. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  6991. int x[] = {25, 17};
  6992. const int *foo = &x[0];
  6993. ++foo;
  6994. }
  6995. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  6996. typedef const int *iptr;
  6997. iptr p = 0;
  6998. ++p;
  6999. }
  7000. { /* AIX XL C 1.02.0.0 rejects this saying
  7001. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  7002. struct s { int j; const int *ap[3]; };
  7003. struct s *b; b->j = 5;
  7004. }
  7005. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  7006. const int foo = 10;
  7007. if (!foo) return 0;
  7008. }
  7009. return !cs[0] && !zero.x;
  7010. #endif
  7011. ;
  7012. return 0;
  7013. }
  7014. _ACEOF
  7015. if ac_fn_cxx_try_compile "$LINENO"; then :
  7016. ac_cv_c_const=yes
  7017. else
  7018. ac_cv_c_const=no
  7019. fi
  7020. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7021. fi
  7022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  7023. $as_echo "$ac_cv_c_const" >&6; }
  7024. if test $ac_cv_c_const = no; then
  7025. $as_echo "#define const /**/" >>confdefs.h
  7026. fi
  7027. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  7028. $as_echo_n "checking for inline... " >&6; }
  7029. if test "${ac_cv_c_inline+set}" = set; then :
  7030. $as_echo_n "(cached) " >&6
  7031. else
  7032. ac_cv_c_inline=no
  7033. for ac_kw in inline __inline__ __inline; do
  7034. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7035. /* end confdefs.h. */
  7036. #ifndef __cplusplus
  7037. typedef int foo_t;
  7038. static $ac_kw foo_t static_foo () {return 0; }
  7039. $ac_kw foo_t foo () {return 0; }
  7040. #endif
  7041. _ACEOF
  7042. if ac_fn_cxx_try_compile "$LINENO"; then :
  7043. ac_cv_c_inline=$ac_kw
  7044. fi
  7045. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7046. test "$ac_cv_c_inline" != no && break
  7047. done
  7048. fi
  7049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  7050. $as_echo "$ac_cv_c_inline" >&6; }
  7051. case $ac_cv_c_inline in
  7052. inline | yes) ;;
  7053. *)
  7054. case $ac_cv_c_inline in
  7055. no) ac_val=;;
  7056. *) ac_val=$ac_cv_c_inline;;
  7057. esac
  7058. cat >>confdefs.h <<_ACEOF
  7059. #ifndef __cplusplus
  7060. #define inline $ac_val
  7061. #endif
  7062. _ACEOF
  7063. ;;
  7064. esac
  7065. ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
  7066. case $ac_cv_c_int16_t in #(
  7067. no|yes) ;; #(
  7068. *)
  7069. cat >>confdefs.h <<_ACEOF
  7070. #define int16_t $ac_cv_c_int16_t
  7071. _ACEOF
  7072. ;;
  7073. esac
  7074. ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
  7075. case $ac_cv_c_int32_t in #(
  7076. no|yes) ;; #(
  7077. *)
  7078. cat >>confdefs.h <<_ACEOF
  7079. #define int32_t $ac_cv_c_int32_t
  7080. _ACEOF
  7081. ;;
  7082. esac
  7083. ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
  7084. case $ac_cv_c_int64_t in #(
  7085. no|yes) ;; #(
  7086. *)
  7087. cat >>confdefs.h <<_ACEOF
  7088. #define int64_t $ac_cv_c_int64_t
  7089. _ACEOF
  7090. ;;
  7091. esac
  7092. ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
  7093. case $ac_cv_c_int8_t in #(
  7094. no|yes) ;; #(
  7095. *)
  7096. cat >>confdefs.h <<_ACEOF
  7097. #define int8_t $ac_cv_c_int8_t
  7098. _ACEOF
  7099. ;;
  7100. esac
  7101. ac_fn_cxx_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
  7102. if test "x$ac_cv_type_mode_t" = x""yes; then :
  7103. else
  7104. cat >>confdefs.h <<_ACEOF
  7105. #define mode_t int
  7106. _ACEOF
  7107. fi
  7108. ac_fn_cxx_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
  7109. if test "x$ac_cv_type_off_t" = x""yes; then :
  7110. else
  7111. cat >>confdefs.h <<_ACEOF
  7112. #define off_t long int
  7113. _ACEOF
  7114. fi
  7115. ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  7116. if test "x$ac_cv_type_size_t" = x""yes; then :
  7117. else
  7118. cat >>confdefs.h <<_ACEOF
  7119. #define size_t unsigned int
  7120. _ACEOF
  7121. fi
  7122. ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
  7123. if test "x$ac_cv_type_ssize_t" = x""yes; then :
  7124. else
  7125. cat >>confdefs.h <<_ACEOF
  7126. #define ssize_t int
  7127. _ACEOF
  7128. fi
  7129. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  7130. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  7131. if test "${ac_cv_header_time+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 <sys/types.h>
  7137. #include <sys/time.h>
  7138. #include <time.h>
  7139. int
  7140. main ()
  7141. {
  7142. if ((struct tm *) 0)
  7143. return 0;
  7144. ;
  7145. return 0;
  7146. }
  7147. _ACEOF
  7148. if ac_fn_cxx_try_compile "$LINENO"; then :
  7149. ac_cv_header_time=yes
  7150. else
  7151. ac_cv_header_time=no
  7152. fi
  7153. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7154. fi
  7155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  7156. $as_echo "$ac_cv_header_time" >&6; }
  7157. if test $ac_cv_header_time = yes; then
  7158. $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  7159. fi
  7160. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  7161. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  7162. if test "${ac_cv_struct_tm+set}" = set; then :
  7163. $as_echo_n "(cached) " >&6
  7164. else
  7165. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7166. /* end confdefs.h. */
  7167. #include <sys/types.h>
  7168. #include <time.h>
  7169. int
  7170. main ()
  7171. {
  7172. struct tm tm;
  7173. int *p = &tm.tm_sec;
  7174. return !p;
  7175. ;
  7176. return 0;
  7177. }
  7178. _ACEOF
  7179. if ac_fn_cxx_try_compile "$LINENO"; then :
  7180. ac_cv_struct_tm=time.h
  7181. else
  7182. ac_cv_struct_tm=sys/time.h
  7183. fi
  7184. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7185. fi
  7186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  7187. $as_echo "$ac_cv_struct_tm" >&6; }
  7188. if test $ac_cv_struct_tm = sys/time.h; then
  7189. $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
  7190. fi
  7191. ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
  7192. case $ac_cv_c_uint16_t in #(
  7193. no|yes) ;; #(
  7194. *)
  7195. cat >>confdefs.h <<_ACEOF
  7196. #define uint16_t $ac_cv_c_uint16_t
  7197. _ACEOF
  7198. ;;
  7199. esac
  7200. ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
  7201. case $ac_cv_c_uint32_t in #(
  7202. no|yes) ;; #(
  7203. *)
  7204. $as_echo "#define _UINT32_T 1" >>confdefs.h
  7205. cat >>confdefs.h <<_ACEOF
  7206. #define uint32_t $ac_cv_c_uint32_t
  7207. _ACEOF
  7208. ;;
  7209. esac
  7210. ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
  7211. case $ac_cv_c_uint64_t in #(
  7212. no|yes) ;; #(
  7213. *)
  7214. $as_echo "#define _UINT64_T 1" >>confdefs.h
  7215. cat >>confdefs.h <<_ACEOF
  7216. #define uint64_t $ac_cv_c_uint64_t
  7217. _ACEOF
  7218. ;;
  7219. esac
  7220. ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
  7221. case $ac_cv_c_uint8_t in #(
  7222. no|yes) ;; #(
  7223. *)
  7224. $as_echo "#define _UINT8_T 1" >>confdefs.h
  7225. cat >>confdefs.h <<_ACEOF
  7226. #define uint8_t $ac_cv_c_uint8_t
  7227. _ACEOF
  7228. ;;
  7229. esac
  7230. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  7231. $as_echo_n "checking for working volatile... " >&6; }
  7232. if test "${ac_cv_c_volatile+set}" = set; then :
  7233. $as_echo_n "(cached) " >&6
  7234. else
  7235. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7236. /* end confdefs.h. */
  7237. int
  7238. main ()
  7239. {
  7240. volatile int x;
  7241. int * volatile y = (int *) 0;
  7242. return !x && !y;
  7243. ;
  7244. return 0;
  7245. }
  7246. _ACEOF
  7247. if ac_fn_cxx_try_compile "$LINENO"; then :
  7248. ac_cv_c_volatile=yes
  7249. else
  7250. ac_cv_c_volatile=no
  7251. fi
  7252. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7253. fi
  7254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  7255. $as_echo "$ac_cv_c_volatile" >&6; }
  7256. if test $ac_cv_c_volatile = no; then
  7257. $as_echo "#define volatile /**/" >>confdefs.h
  7258. fi
  7259. ac_fn_cxx_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
  7260. if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
  7261. cat >>confdefs.h <<_ACEOF
  7262. #define HAVE_PTRDIFF_T 1
  7263. _ACEOF
  7264. fi
  7265. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  7266. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  7267. if test "${ac_cv_c_bigendian+set}" = set; then :
  7268. $as_echo_n "(cached) " >&6
  7269. else
  7270. ac_cv_c_bigendian=unknown
  7271. # See if we're dealing with a universal compiler.
  7272. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7273. /* end confdefs.h. */
  7274. #ifndef __APPLE_CC__
  7275. not a universal capable compiler
  7276. #endif
  7277. typedef int dummy;
  7278. _ACEOF
  7279. if ac_fn_cxx_try_compile "$LINENO"; then :
  7280. # Check for potential -arch flags. It is not universal unless
  7281. # there are at least two -arch flags with different values.
  7282. ac_arch=
  7283. ac_prev=
  7284. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  7285. if test -n "$ac_prev"; then
  7286. case $ac_word in
  7287. i?86 | x86_64 | ppc | ppc64)
  7288. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  7289. ac_arch=$ac_word
  7290. else
  7291. ac_cv_c_bigendian=universal
  7292. break
  7293. fi
  7294. ;;
  7295. esac
  7296. ac_prev=
  7297. elif test "x$ac_word" = "x-arch"; then
  7298. ac_prev=arch
  7299. fi
  7300. done
  7301. fi
  7302. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7303. if test $ac_cv_c_bigendian = unknown; then
  7304. # See if sys/param.h defines the BYTE_ORDER macro.
  7305. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7306. /* end confdefs.h. */
  7307. #include <sys/types.h>
  7308. #include <sys/param.h>
  7309. int
  7310. main ()
  7311. {
  7312. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  7313. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  7314. && LITTLE_ENDIAN)
  7315. bogus endian macros
  7316. #endif
  7317. ;
  7318. return 0;
  7319. }
  7320. _ACEOF
  7321. if ac_fn_cxx_try_compile "$LINENO"; then :
  7322. # It does; now see whether it defined to BIG_ENDIAN or not.
  7323. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7324. /* end confdefs.h. */
  7325. #include <sys/types.h>
  7326. #include <sys/param.h>
  7327. int
  7328. main ()
  7329. {
  7330. #if BYTE_ORDER != BIG_ENDIAN
  7331. not big endian
  7332. #endif
  7333. ;
  7334. return 0;
  7335. }
  7336. _ACEOF
  7337. if ac_fn_cxx_try_compile "$LINENO"; then :
  7338. ac_cv_c_bigendian=yes
  7339. else
  7340. ac_cv_c_bigendian=no
  7341. fi
  7342. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7343. fi
  7344. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7345. fi
  7346. if test $ac_cv_c_bigendian = unknown; then
  7347. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  7348. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7349. /* end confdefs.h. */
  7350. #include <limits.h>
  7351. int
  7352. main ()
  7353. {
  7354. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  7355. bogus endian macros
  7356. #endif
  7357. ;
  7358. return 0;
  7359. }
  7360. _ACEOF
  7361. if ac_fn_cxx_try_compile "$LINENO"; then :
  7362. # It does; now see whether it defined to _BIG_ENDIAN or not.
  7363. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7364. /* end confdefs.h. */
  7365. #include <limits.h>
  7366. int
  7367. main ()
  7368. {
  7369. #ifndef _BIG_ENDIAN
  7370. not big endian
  7371. #endif
  7372. ;
  7373. return 0;
  7374. }
  7375. _ACEOF
  7376. if ac_fn_cxx_try_compile "$LINENO"; then :
  7377. ac_cv_c_bigendian=yes
  7378. else
  7379. ac_cv_c_bigendian=no
  7380. fi
  7381. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7382. fi
  7383. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7384. fi
  7385. if test $ac_cv_c_bigendian = unknown; then
  7386. # Compile a test program.
  7387. if test "$cross_compiling" = yes; then :
  7388. # Try to guess by grepping values from an object file.
  7389. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7390. /* end confdefs.h. */
  7391. short int ascii_mm[] =
  7392. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  7393. short int ascii_ii[] =
  7394. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  7395. int use_ascii (int i) {
  7396. return ascii_mm[i] + ascii_ii[i];
  7397. }
  7398. short int ebcdic_ii[] =
  7399. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  7400. short int ebcdic_mm[] =
  7401. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  7402. int use_ebcdic (int i) {
  7403. return ebcdic_mm[i] + ebcdic_ii[i];
  7404. }
  7405. extern int foo;
  7406. int
  7407. main ()
  7408. {
  7409. return use_ascii (foo) == use_ebcdic (foo);
  7410. ;
  7411. return 0;
  7412. }
  7413. _ACEOF
  7414. if ac_fn_cxx_try_compile "$LINENO"; then :
  7415. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  7416. ac_cv_c_bigendian=yes
  7417. fi
  7418. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  7419. if test "$ac_cv_c_bigendian" = unknown; then
  7420. ac_cv_c_bigendian=no
  7421. else
  7422. # finding both strings is unlikely to happen, but who knows?
  7423. ac_cv_c_bigendian=unknown
  7424. fi
  7425. fi
  7426. fi
  7427. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7428. else
  7429. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7430. /* end confdefs.h. */
  7431. $ac_includes_default
  7432. int
  7433. main ()
  7434. {
  7435. /* Are we little or big endian? From Harbison&Steele. */
  7436. union
  7437. {
  7438. long int l;
  7439. char c[sizeof (long int)];
  7440. } u;
  7441. u.l = 1;
  7442. return u.c[sizeof (long int) - 1] == 1;
  7443. ;
  7444. return 0;
  7445. }
  7446. _ACEOF
  7447. if ac_fn_cxx_try_run "$LINENO"; then :
  7448. ac_cv_c_bigendian=no
  7449. else
  7450. ac_cv_c_bigendian=yes
  7451. fi
  7452. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7453. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7454. fi
  7455. fi
  7456. fi
  7457. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  7458. $as_echo "$ac_cv_c_bigendian" >&6; }
  7459. case $ac_cv_c_bigendian in #(
  7460. yes)
  7461. $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  7462. ;; #(
  7463. no)
  7464. ;; #(
  7465. universal)
  7466. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  7467. ;; #(
  7468. *)
  7469. as_fn_error "unknown endianness
  7470. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  7471. esac
  7472. # Check whether --enable-largefile was given.
  7473. if test "${enable_largefile+set}" = set; then :
  7474. enableval=$enable_largefile;
  7475. fi
  7476. if test "$enable_largefile" != no; then
  7477. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  7478. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  7479. if test "${ac_cv_sys_largefile_CC+set}" = set; then :
  7480. $as_echo_n "(cached) " >&6
  7481. else
  7482. ac_cv_sys_largefile_CC=no
  7483. if test "$GCC" != yes; then
  7484. ac_save_CC=$CC
  7485. while :; do
  7486. # IRIX 6.2 and later do not support large files by default,
  7487. # so use the C compiler's -n32 option if that helps.
  7488. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7489. /* end confdefs.h. */
  7490. #include <sys/types.h>
  7491. /* Check that off_t can represent 2**63 - 1 correctly.
  7492. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7493. since some C++ compilers masquerading as C compilers
  7494. incorrectly reject 9223372036854775807. */
  7495. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7496. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7497. && LARGE_OFF_T % 2147483647 == 1)
  7498. ? 1 : -1];
  7499. int
  7500. main ()
  7501. {
  7502. ;
  7503. return 0;
  7504. }
  7505. _ACEOF
  7506. if ac_fn_cxx_try_compile "$LINENO"; then :
  7507. break
  7508. fi
  7509. rm -f core conftest.err conftest.$ac_objext
  7510. CC="$CC -n32"
  7511. if ac_fn_cxx_try_compile "$LINENO"; then :
  7512. ac_cv_sys_largefile_CC=' -n32'; break
  7513. fi
  7514. rm -f core conftest.err conftest.$ac_objext
  7515. break
  7516. done
  7517. CC=$ac_save_CC
  7518. rm -f conftest.$ac_ext
  7519. fi
  7520. fi
  7521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  7522. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  7523. if test "$ac_cv_sys_largefile_CC" != no; then
  7524. CC=$CC$ac_cv_sys_largefile_CC
  7525. fi
  7526. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  7527. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  7528. if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
  7529. $as_echo_n "(cached) " >&6
  7530. else
  7531. while :; do
  7532. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7533. /* end confdefs.h. */
  7534. #include <sys/types.h>
  7535. /* Check that off_t can represent 2**63 - 1 correctly.
  7536. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7537. since some C++ compilers masquerading as C compilers
  7538. incorrectly reject 9223372036854775807. */
  7539. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7540. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7541. && LARGE_OFF_T % 2147483647 == 1)
  7542. ? 1 : -1];
  7543. int
  7544. main ()
  7545. {
  7546. ;
  7547. return 0;
  7548. }
  7549. _ACEOF
  7550. if ac_fn_cxx_try_compile "$LINENO"; then :
  7551. ac_cv_sys_file_offset_bits=no; break
  7552. fi
  7553. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7554. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7555. /* end confdefs.h. */
  7556. #define _FILE_OFFSET_BITS 64
  7557. #include <sys/types.h>
  7558. /* Check that off_t can represent 2**63 - 1 correctly.
  7559. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7560. since some C++ compilers masquerading as C compilers
  7561. incorrectly reject 9223372036854775807. */
  7562. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7563. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7564. && LARGE_OFF_T % 2147483647 == 1)
  7565. ? 1 : -1];
  7566. int
  7567. main ()
  7568. {
  7569. ;
  7570. return 0;
  7571. }
  7572. _ACEOF
  7573. if ac_fn_cxx_try_compile "$LINENO"; then :
  7574. ac_cv_sys_file_offset_bits=64; break
  7575. fi
  7576. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7577. ac_cv_sys_file_offset_bits=unknown
  7578. break
  7579. done
  7580. fi
  7581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  7582. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  7583. case $ac_cv_sys_file_offset_bits in #(
  7584. no | unknown) ;;
  7585. *)
  7586. cat >>confdefs.h <<_ACEOF
  7587. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  7588. _ACEOF
  7589. ;;
  7590. esac
  7591. rm -rf conftest*
  7592. if test $ac_cv_sys_file_offset_bits = unknown; then
  7593. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  7594. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  7595. if test "${ac_cv_sys_large_files+set}" = set; then :
  7596. $as_echo_n "(cached) " >&6
  7597. else
  7598. while :; do
  7599. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7600. /* end confdefs.h. */
  7601. #include <sys/types.h>
  7602. /* Check that off_t can represent 2**63 - 1 correctly.
  7603. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7604. since some C++ compilers masquerading as C compilers
  7605. incorrectly reject 9223372036854775807. */
  7606. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7607. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7608. && LARGE_OFF_T % 2147483647 == 1)
  7609. ? 1 : -1];
  7610. int
  7611. main ()
  7612. {
  7613. ;
  7614. return 0;
  7615. }
  7616. _ACEOF
  7617. if ac_fn_cxx_try_compile "$LINENO"; then :
  7618. ac_cv_sys_large_files=no; break
  7619. fi
  7620. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7621. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7622. /* end confdefs.h. */
  7623. #define _LARGE_FILES 1
  7624. #include <sys/types.h>
  7625. /* Check that off_t can represent 2**63 - 1 correctly.
  7626. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7627. since some C++ compilers masquerading as C compilers
  7628. incorrectly reject 9223372036854775807. */
  7629. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7630. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7631. && LARGE_OFF_T % 2147483647 == 1)
  7632. ? 1 : -1];
  7633. int
  7634. main ()
  7635. {
  7636. ;
  7637. return 0;
  7638. }
  7639. _ACEOF
  7640. if ac_fn_cxx_try_compile "$LINENO"; then :
  7641. ac_cv_sys_large_files=1; break
  7642. fi
  7643. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7644. ac_cv_sys_large_files=unknown
  7645. break
  7646. done
  7647. fi
  7648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  7649. $as_echo "$ac_cv_sys_large_files" >&6; }
  7650. case $ac_cv_sys_large_files in #(
  7651. no | unknown) ;;
  7652. *)
  7653. cat >>confdefs.h <<_ACEOF
  7654. #define _LARGE_FILES $ac_cv_sys_large_files
  7655. _ACEOF
  7656. ;;
  7657. esac
  7658. rm -rf conftest*
  7659. fi
  7660. fi
  7661. # Checks for library functions.
  7662. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
  7663. $as_echo_n "checking whether NLS is requested... " >&6; }
  7664. # Check whether --enable-nls was given.
  7665. if test "${enable_nls+set}" = set; then :
  7666. enableval=$enable_nls; USE_NLS=$enableval
  7667. else
  7668. USE_NLS=yes
  7669. fi
  7670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
  7671. $as_echo "$USE_NLS" >&6; }
  7672. GETTEXT_MACRO_VERSION=0.17
  7673. # Prepare PATH_SEPARATOR.
  7674. # The user is always right.
  7675. if test "${PATH_SEPARATOR+set}" != set; then
  7676. echo "#! /bin/sh" >conf$$.sh
  7677. echo "exit 0" >>conf$$.sh
  7678. chmod +x conf$$.sh
  7679. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  7680. PATH_SEPARATOR=';'
  7681. else
  7682. PATH_SEPARATOR=:
  7683. fi
  7684. rm -f conf$$.sh
  7685. fi
  7686. # Find out how to test for executable files. Don't use a zero-byte file,
  7687. # as systems may use methods other than mode bits to determine executability.
  7688. cat >conf$$.file <<_ASEOF
  7689. #! /bin/sh
  7690. exit 0
  7691. _ASEOF
  7692. chmod +x conf$$.file
  7693. if test -x conf$$.file >/dev/null 2>&1; then
  7694. ac_executable_p="test -x"
  7695. else
  7696. ac_executable_p="test -f"
  7697. fi
  7698. rm -f conf$$.file
  7699. # Extract the first word of "msgfmt", so it can be a program name with args.
  7700. set dummy msgfmt; ac_word=$2
  7701. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7702. $as_echo_n "checking for $ac_word... " >&6; }
  7703. if test "${ac_cv_path_MSGFMT+set}" = set; then :
  7704. $as_echo_n "(cached) " >&6
  7705. else
  7706. case "$MSGFMT" in
  7707. [\\/]* | ?:[\\/]*)
  7708. ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  7709. ;;
  7710. *)
  7711. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  7712. for ac_dir in $PATH; do
  7713. IFS="$ac_save_IFS"
  7714. test -z "$ac_dir" && ac_dir=.
  7715. for ac_exec_ext in '' $ac_executable_extensions; do
  7716. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  7717. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  7718. if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
  7719. (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  7720. ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
  7721. break 2
  7722. fi
  7723. fi
  7724. done
  7725. done
  7726. IFS="$ac_save_IFS"
  7727. test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
  7728. ;;
  7729. esac
  7730. fi
  7731. MSGFMT="$ac_cv_path_MSGFMT"
  7732. if test "$MSGFMT" != ":"; then
  7733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
  7734. $as_echo "$MSGFMT" >&6; }
  7735. else
  7736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7737. $as_echo "no" >&6; }
  7738. fi
  7739. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  7740. set dummy gmsgfmt; ac_word=$2
  7741. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7742. $as_echo_n "checking for $ac_word... " >&6; }
  7743. if test "${ac_cv_path_GMSGFMT+set}" = set; then :
  7744. $as_echo_n "(cached) " >&6
  7745. else
  7746. case $GMSGFMT in
  7747. [\\/]* | ?:[\\/]*)
  7748. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  7749. ;;
  7750. *)
  7751. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7752. for as_dir in $PATH
  7753. do
  7754. IFS=$as_save_IFS
  7755. test -z "$as_dir" && as_dir=.
  7756. for ac_exec_ext in '' $ac_executable_extensions; do
  7757. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7758. ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  7759. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7760. break 2
  7761. fi
  7762. done
  7763. done
  7764. IFS=$as_save_IFS
  7765. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  7766. ;;
  7767. esac
  7768. fi
  7769. GMSGFMT=$ac_cv_path_GMSGFMT
  7770. if test -n "$GMSGFMT"; then
  7771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
  7772. $as_echo "$GMSGFMT" >&6; }
  7773. else
  7774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7775. $as_echo "no" >&6; }
  7776. fi
  7777. case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  7778. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
  7779. *) MSGFMT_015=$MSGFMT ;;
  7780. esac
  7781. case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  7782. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
  7783. *) GMSGFMT_015=$GMSGFMT ;;
  7784. esac
  7785. # Prepare PATH_SEPARATOR.
  7786. # The user is always right.
  7787. if test "${PATH_SEPARATOR+set}" != set; then
  7788. echo "#! /bin/sh" >conf$$.sh
  7789. echo "exit 0" >>conf$$.sh
  7790. chmod +x conf$$.sh
  7791. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  7792. PATH_SEPARATOR=';'
  7793. else
  7794. PATH_SEPARATOR=:
  7795. fi
  7796. rm -f conf$$.sh
  7797. fi
  7798. # Find out how to test for executable files. Don't use a zero-byte file,
  7799. # as systems may use methods other than mode bits to determine executability.
  7800. cat >conf$$.file <<_ASEOF
  7801. #! /bin/sh
  7802. exit 0
  7803. _ASEOF
  7804. chmod +x conf$$.file
  7805. if test -x conf$$.file >/dev/null 2>&1; then
  7806. ac_executable_p="test -x"
  7807. else
  7808. ac_executable_p="test -f"
  7809. fi
  7810. rm -f conf$$.file
  7811. # Extract the first word of "xgettext", so it can be a program name with args.
  7812. set dummy xgettext; ac_word=$2
  7813. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7814. $as_echo_n "checking for $ac_word... " >&6; }
  7815. if test "${ac_cv_path_XGETTEXT+set}" = set; then :
  7816. $as_echo_n "(cached) " >&6
  7817. else
  7818. case "$XGETTEXT" in
  7819. [\\/]* | ?:[\\/]*)
  7820. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  7821. ;;
  7822. *)
  7823. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  7824. for ac_dir in $PATH; do
  7825. IFS="$ac_save_IFS"
  7826. test -z "$ac_dir" && ac_dir=.
  7827. for ac_exec_ext in '' $ac_executable_extensions; do
  7828. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  7829. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  7830. if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
  7831. (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
  7832. ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
  7833. break 2
  7834. fi
  7835. fi
  7836. done
  7837. done
  7838. IFS="$ac_save_IFS"
  7839. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  7840. ;;
  7841. esac
  7842. fi
  7843. XGETTEXT="$ac_cv_path_XGETTEXT"
  7844. if test "$XGETTEXT" != ":"; then
  7845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
  7846. $as_echo "$XGETTEXT" >&6; }
  7847. else
  7848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7849. $as_echo "no" >&6; }
  7850. fi
  7851. rm -f messages.po
  7852. case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  7853. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
  7854. *) XGETTEXT_015=$XGETTEXT ;;
  7855. esac
  7856. # Prepare PATH_SEPARATOR.
  7857. # The user is always right.
  7858. if test "${PATH_SEPARATOR+set}" != set; then
  7859. echo "#! /bin/sh" >conf$$.sh
  7860. echo "exit 0" >>conf$$.sh
  7861. chmod +x conf$$.sh
  7862. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  7863. PATH_SEPARATOR=';'
  7864. else
  7865. PATH_SEPARATOR=:
  7866. fi
  7867. rm -f conf$$.sh
  7868. fi
  7869. # Find out how to test for executable files. Don't use a zero-byte file,
  7870. # as systems may use methods other than mode bits to determine executability.
  7871. cat >conf$$.file <<_ASEOF
  7872. #! /bin/sh
  7873. exit 0
  7874. _ASEOF
  7875. chmod +x conf$$.file
  7876. if test -x conf$$.file >/dev/null 2>&1; then
  7877. ac_executable_p="test -x"
  7878. else
  7879. ac_executable_p="test -f"
  7880. fi
  7881. rm -f conf$$.file
  7882. # Extract the first word of "msgmerge", so it can be a program name with args.
  7883. set dummy msgmerge; ac_word=$2
  7884. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7885. $as_echo_n "checking for $ac_word... " >&6; }
  7886. if test "${ac_cv_path_MSGMERGE+set}" = set; then :
  7887. $as_echo_n "(cached) " >&6
  7888. else
  7889. case "$MSGMERGE" in
  7890. [\\/]* | ?:[\\/]*)
  7891. ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  7892. ;;
  7893. *)
  7894. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  7895. for ac_dir in $PATH; do
  7896. IFS="$ac_save_IFS"
  7897. test -z "$ac_dir" && ac_dir=.
  7898. for ac_exec_ext in '' $ac_executable_extensions; do
  7899. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  7900. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  7901. if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
  7902. ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
  7903. break 2
  7904. fi
  7905. fi
  7906. done
  7907. done
  7908. IFS="$ac_save_IFS"
  7909. test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
  7910. ;;
  7911. esac
  7912. fi
  7913. MSGMERGE="$ac_cv_path_MSGMERGE"
  7914. if test "$MSGMERGE" != ":"; then
  7915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
  7916. $as_echo "$MSGMERGE" >&6; }
  7917. else
  7918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7919. $as_echo "no" >&6; }
  7920. fi
  7921. test -n "$localedir" || localedir='${datadir}/locale'
  7922. test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
  7923. ac_config_commands="$ac_config_commands po-directories"
  7924. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
  7925. $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
  7926. if test "${ac_cv_gnu_library_2+set}" = set; then :
  7927. $as_echo_n "(cached) " >&6
  7928. else
  7929. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7930. /* end confdefs.h. */
  7931. #include <features.h>
  7932. #ifdef __GNU_LIBRARY__
  7933. #if (__GLIBC__ >= 2)
  7934. Lucky GNU user
  7935. #endif
  7936. #endif
  7937. _ACEOF
  7938. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7939. $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
  7940. ac_cv_gnu_library_2=yes
  7941. else
  7942. ac_cv_gnu_library_2=no
  7943. fi
  7944. rm -f conftest*
  7945. fi
  7946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
  7947. $as_echo "$ac_cv_gnu_library_2" >&6; }
  7948. GLIBC2="$ac_cv_gnu_library_2"
  7949. CFLAG_VISIBILITY=
  7950. HAVE_VISIBILITY=0
  7951. if test -n "$GCC"; then
  7952. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
  7953. $as_echo_n "checking for simple visibility declarations... " >&6; }
  7954. if test "${gl_cv_cc_visibility+set}" = set; then :
  7955. $as_echo_n "(cached) " >&6
  7956. else
  7957. gl_save_CFLAGS="$CFLAGS"
  7958. CFLAGS="$CFLAGS -fvisibility=hidden"
  7959. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7960. /* end confdefs.h. */
  7961. extern __attribute__((__visibility__("hidden"))) int hiddenvar;
  7962. extern __attribute__((__visibility__("default"))) int exportedvar;
  7963. extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
  7964. extern __attribute__((__visibility__("default"))) int exportedfunc (void);
  7965. int
  7966. main ()
  7967. {
  7968. ;
  7969. return 0;
  7970. }
  7971. _ACEOF
  7972. if ac_fn_cxx_try_compile "$LINENO"; then :
  7973. gl_cv_cc_visibility=yes
  7974. else
  7975. gl_cv_cc_visibility=no
  7976. fi
  7977. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7978. CFLAGS="$gl_save_CFLAGS"
  7979. fi
  7980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
  7981. $as_echo "$gl_cv_cc_visibility" >&6; }
  7982. if test $gl_cv_cc_visibility = yes; then
  7983. CFLAG_VISIBILITY="-fvisibility=hidden"
  7984. HAVE_VISIBILITY=1
  7985. fi
  7986. fi
  7987. cat >>confdefs.h <<_ACEOF
  7988. #define HAVE_VISIBILITY $HAVE_VISIBILITY
  7989. _ACEOF
  7990. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
  7991. $as_echo_n "checking for stdint.h... " >&6; }
  7992. if test "${gl_cv_header_stdint_h+set}" = set; then :
  7993. $as_echo_n "(cached) " >&6
  7994. else
  7995. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7996. /* end confdefs.h. */
  7997. #include <sys/types.h>
  7998. #include <stdint.h>
  7999. int
  8000. main ()
  8001. {
  8002. uintmax_t i = (uintmax_t) -1; return !i;
  8003. ;
  8004. return 0;
  8005. }
  8006. _ACEOF
  8007. if ac_fn_cxx_try_compile "$LINENO"; then :
  8008. gl_cv_header_stdint_h=yes
  8009. else
  8010. gl_cv_header_stdint_h=no
  8011. fi
  8012. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8013. fi
  8014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
  8015. $as_echo "$gl_cv_header_stdint_h" >&6; }
  8016. if test $gl_cv_header_stdint_h = yes; then
  8017. cat >>confdefs.h <<_ACEOF
  8018. #define HAVE_STDINT_H_WITH_UINTMAX 1
  8019. _ACEOF
  8020. fi
  8021. for ac_header in stdlib.h unistd.h
  8022. do :
  8023. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8024. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  8025. eval as_val=\$$as_ac_Header
  8026. if test "x$as_val" = x""yes; then :
  8027. cat >>confdefs.h <<_ACEOF
  8028. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8029. _ACEOF
  8030. fi
  8031. done
  8032. for ac_func in getpagesize
  8033. do :
  8034. ac_fn_cxx_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  8035. if test "x$ac_cv_func_getpagesize" = x""yes; then :
  8036. cat >>confdefs.h <<_ACEOF
  8037. #define HAVE_GETPAGESIZE 1
  8038. _ACEOF
  8039. fi
  8040. done
  8041. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  8042. $as_echo_n "checking for working mmap... " >&6; }
  8043. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
  8044. $as_echo_n "(cached) " >&6
  8045. else
  8046. if test "$cross_compiling" = yes; then :
  8047. ac_cv_func_mmap_fixed_mapped=no
  8048. else
  8049. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8050. /* end confdefs.h. */
  8051. $ac_includes_default
  8052. /* malloc might have been renamed as rpl_malloc. */
  8053. #undef malloc
  8054. /* Thanks to Mike Haertel and Jim Avera for this test.
  8055. Here is a matrix of mmap possibilities:
  8056. mmap private not fixed
  8057. mmap private fixed at somewhere currently unmapped
  8058. mmap private fixed at somewhere already mapped
  8059. mmap shared not fixed
  8060. mmap shared fixed at somewhere currently unmapped
  8061. mmap shared fixed at somewhere already mapped
  8062. For private mappings, we should verify that changes cannot be read()
  8063. back from the file, nor mmap's back from the file at a different
  8064. address. (There have been systems where private was not correctly
  8065. implemented like the infamous i386 svr4.0, and systems where the
  8066. VM page cache was not coherent with the file system buffer cache
  8067. like early versions of FreeBSD and possibly contemporary NetBSD.)
  8068. For shared mappings, we should conversely verify that changes get
  8069. propagated back to all the places they're supposed to be.
  8070. Grep wants private fixed already mapped.
  8071. The main things grep needs to know about mmap are:
  8072. * does it exist and is it safe to write into the mmap'd area
  8073. * how to use it (BSD variants) */
  8074. #include <fcntl.h>
  8075. #include <sys/mman.h>
  8076. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  8077. char *malloc ();
  8078. #endif
  8079. /* This mess was copied from the GNU getpagesize.h. */
  8080. #ifndef HAVE_GETPAGESIZE
  8081. /* Assume that all systems that can run configure have sys/param.h. */
  8082. # ifndef HAVE_SYS_PARAM_H
  8083. # define HAVE_SYS_PARAM_H 1
  8084. # endif
  8085. # ifdef _SC_PAGESIZE
  8086. # define getpagesize() sysconf(_SC_PAGESIZE)
  8087. # else /* no _SC_PAGESIZE */
  8088. # ifdef HAVE_SYS_PARAM_H
  8089. # include <sys/param.h>
  8090. # ifdef EXEC_PAGESIZE
  8091. # define getpagesize() EXEC_PAGESIZE
  8092. # else /* no EXEC_PAGESIZE */
  8093. # ifdef NBPG
  8094. # define getpagesize() NBPG * CLSIZE
  8095. # ifndef CLSIZE
  8096. # define CLSIZE 1
  8097. # endif /* no CLSIZE */
  8098. # else /* no NBPG */
  8099. # ifdef NBPC
  8100. # define getpagesize() NBPC
  8101. # else /* no NBPC */
  8102. # ifdef PAGESIZE
  8103. # define getpagesize() PAGESIZE
  8104. # endif /* PAGESIZE */
  8105. # endif /* no NBPC */
  8106. # endif /* no NBPG */
  8107. # endif /* no EXEC_PAGESIZE */
  8108. # else /* no HAVE_SYS_PARAM_H */
  8109. # define getpagesize() 8192 /* punt totally */
  8110. # endif /* no HAVE_SYS_PARAM_H */
  8111. # endif /* no _SC_PAGESIZE */
  8112. #endif /* no HAVE_GETPAGESIZE */
  8113. int
  8114. main ()
  8115. {
  8116. char *data, *data2, *data3;
  8117. int i, pagesize;
  8118. int fd;
  8119. pagesize = getpagesize ();
  8120. /* First, make a file with some known garbage in it. */
  8121. data = (char *) malloc (pagesize);
  8122. if (!data)
  8123. return 1;
  8124. for (i = 0; i < pagesize; ++i)
  8125. *(data + i) = rand ();
  8126. umask (0);
  8127. fd = creat ("conftest.mmap", 0600);
  8128. if (fd < 0)
  8129. return 1;
  8130. if (write (fd, data, pagesize) != pagesize)
  8131. return 1;
  8132. close (fd);
  8133. /* Next, try to mmap the file at a fixed address which already has
  8134. something else allocated at it. If we can, also make sure that
  8135. we see the same garbage. */
  8136. fd = open ("conftest.mmap", O_RDWR);
  8137. if (fd < 0)
  8138. return 1;
  8139. data2 = (char *) malloc (2 * pagesize);
  8140. if (!data2)
  8141. return 1;
  8142. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  8143. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  8144. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  8145. return 1;
  8146. for (i = 0; i < pagesize; ++i)
  8147. if (*(data + i) != *(data2 + i))
  8148. return 1;
  8149. /* Finally, make sure that changes to the mapped area do not
  8150. percolate back to the file as seen by read(). (This is a bug on
  8151. some variants of i386 svr4.0.) */
  8152. for (i = 0; i < pagesize; ++i)
  8153. *(data2 + i) = *(data2 + i) + 1;
  8154. data3 = (char *) malloc (pagesize);
  8155. if (!data3)
  8156. return 1;
  8157. if (read (fd, data3, pagesize) != pagesize)
  8158. return 1;
  8159. for (i = 0; i < pagesize; ++i)
  8160. if (*(data + i) != *(data3 + i))
  8161. return 1;
  8162. close (fd);
  8163. return 0;
  8164. }
  8165. _ACEOF
  8166. if ac_fn_cxx_try_run "$LINENO"; then :
  8167. ac_cv_func_mmap_fixed_mapped=yes
  8168. else
  8169. ac_cv_func_mmap_fixed_mapped=no
  8170. fi
  8171. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  8172. conftest.$ac_objext conftest.beam conftest.$ac_ext
  8173. fi
  8174. fi
  8175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  8176. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  8177. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  8178. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  8179. fi
  8180. rm -f conftest.mmap
  8181. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
  8182. $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
  8183. if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
  8184. $as_echo_n "(cached) " >&6
  8185. else
  8186. gt_cv_int_divbyzero_sigfpe=
  8187. case "$host_os" in
  8188. macos* | darwin[6-9]* | darwin[1-9][0-9]*)
  8189. # On MacOS X 10.2 or newer, just assume the same as when cross-
  8190. # compiling. If we were to perform the real test, 1 Crash Report
  8191. # dialog window would pop up.
  8192. case "$host_cpu" in
  8193. i[34567]86 | x86_64)
  8194. gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
  8195. esac
  8196. ;;
  8197. esac
  8198. if test -z "$gt_cv_int_divbyzero_sigfpe"; then
  8199. if test "$cross_compiling" = yes; then :
  8200. # Guess based on the CPU.
  8201. case "$host_cpu" in
  8202. alpha* | i[34567]86 | x86_64 | m68k | s390*)
  8203. gt_cv_int_divbyzero_sigfpe="guessing yes";;
  8204. *)
  8205. gt_cv_int_divbyzero_sigfpe="guessing no";;
  8206. esac
  8207. else
  8208. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8209. /* end confdefs.h. */
  8210. #include <stdlib.h>
  8211. #include <signal.h>
  8212. static void
  8213. sigfpe_handler (int sig)
  8214. {
  8215. /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
  8216. exit (sig != SIGFPE);
  8217. }
  8218. int x = 1;
  8219. int y = 0;
  8220. int z;
  8221. int nan;
  8222. int main ()
  8223. {
  8224. signal (SIGFPE, sigfpe_handler);
  8225. /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
  8226. #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
  8227. signal (SIGTRAP, sigfpe_handler);
  8228. #endif
  8229. /* Linux/SPARC yields signal SIGILL. */
  8230. #if defined (__sparc__) && defined (__linux__)
  8231. signal (SIGILL, sigfpe_handler);
  8232. #endif
  8233. z = x / y;
  8234. nan = y / y;
  8235. exit (1);
  8236. }
  8237. _ACEOF
  8238. if ac_fn_cxx_try_run "$LINENO"; then :
  8239. gt_cv_int_divbyzero_sigfpe=yes
  8240. else
  8241. gt_cv_int_divbyzero_sigfpe=no
  8242. fi
  8243. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  8244. conftest.$ac_objext conftest.beam conftest.$ac_ext
  8245. fi
  8246. fi
  8247. fi
  8248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
  8249. $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
  8250. case "$gt_cv_int_divbyzero_sigfpe" in
  8251. *yes) value=1;;
  8252. *) value=0;;
  8253. esac
  8254. cat >>confdefs.h <<_ACEOF
  8255. #define INTDIV0_RAISES_SIGFPE $value
  8256. _ACEOF
  8257. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
  8258. $as_echo_n "checking for inttypes.h... " >&6; }
  8259. if test "${gl_cv_header_inttypes_h+set}" = set; then :
  8260. $as_echo_n "(cached) " >&6
  8261. else
  8262. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8263. /* end confdefs.h. */
  8264. #include <sys/types.h>
  8265. #include <inttypes.h>
  8266. int
  8267. main ()
  8268. {
  8269. uintmax_t i = (uintmax_t) -1; return !i;
  8270. ;
  8271. return 0;
  8272. }
  8273. _ACEOF
  8274. if ac_fn_cxx_try_compile "$LINENO"; then :
  8275. gl_cv_header_inttypes_h=yes
  8276. else
  8277. gl_cv_header_inttypes_h=no
  8278. fi
  8279. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8280. fi
  8281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
  8282. $as_echo "$gl_cv_header_inttypes_h" >&6; }
  8283. if test $gl_cv_header_inttypes_h = yes; then
  8284. cat >>confdefs.h <<_ACEOF
  8285. #define HAVE_INTTYPES_H_WITH_UINTMAX 1
  8286. _ACEOF
  8287. fi
  8288. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
  8289. $as_echo_n "checking for unsigned long long int... " >&6; }
  8290. if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
  8291. $as_echo_n "(cached) " >&6
  8292. else
  8293. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8294. /* end confdefs.h. */
  8295. /* Test preprocessor. */
  8296. #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  8297. error in preprocessor;
  8298. #endif
  8299. #if ! (18446744073709551615ULL <= -1ull)
  8300. error in preprocessor;
  8301. #endif
  8302. /* Test literals. */
  8303. long long int ll = 9223372036854775807ll;
  8304. long long int nll = -9223372036854775807LL;
  8305. unsigned long long int ull = 18446744073709551615ULL;
  8306. /* Test constant expressions. */
  8307. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  8308. ? 1 : -1)];
  8309. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  8310. ? 1 : -1)];
  8311. int i = 63;
  8312. int
  8313. main ()
  8314. {
  8315. /* Test availability of runtime routines for shift and division. */
  8316. long long int llmax = 9223372036854775807ll;
  8317. unsigned long long int ullmax = 18446744073709551615ull;
  8318. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  8319. | (llmax / ll) | (llmax % ll)
  8320. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  8321. | (ullmax / ull) | (ullmax % ull));
  8322. ;
  8323. return 0;
  8324. }
  8325. _ACEOF
  8326. if ac_fn_cxx_try_link "$LINENO"; then :
  8327. ac_cv_type_unsigned_long_long_int=yes
  8328. else
  8329. ac_cv_type_unsigned_long_long_int=no
  8330. fi
  8331. rm -f core conftest.err conftest.$ac_objext \
  8332. conftest$ac_exeext conftest.$ac_ext
  8333. fi
  8334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
  8335. $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
  8336. if test $ac_cv_type_unsigned_long_long_int = yes; then
  8337. $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
  8338. fi
  8339. if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
  8340. test $ac_cv_type_unsigned_long_long_int = yes \
  8341. && ac_type='unsigned long long' \
  8342. || ac_type='unsigned long'
  8343. cat >>confdefs.h <<_ACEOF
  8344. #define uintmax_t $ac_type
  8345. _ACEOF
  8346. else
  8347. $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
  8348. fi
  8349. for ac_header in inttypes.h
  8350. do :
  8351. ac_fn_cxx_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
  8352. if test "x$ac_cv_header_inttypes_h" = x""yes; then :
  8353. cat >>confdefs.h <<_ACEOF
  8354. #define HAVE_INTTYPES_H 1
  8355. _ACEOF
  8356. fi
  8357. done
  8358. if test $ac_cv_header_inttypes_h = yes; then
  8359. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
  8360. $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
  8361. if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
  8362. $as_echo_n "(cached) " >&6
  8363. else
  8364. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8365. /* end confdefs.h. */
  8366. #include <inttypes.h>
  8367. #ifdef PRId32
  8368. char *p = PRId32;
  8369. #endif
  8370. int
  8371. main ()
  8372. {
  8373. ;
  8374. return 0;
  8375. }
  8376. _ACEOF
  8377. if ac_fn_cxx_try_compile "$LINENO"; then :
  8378. gt_cv_inttypes_pri_broken=no
  8379. else
  8380. gt_cv_inttypes_pri_broken=yes
  8381. fi
  8382. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8383. fi
  8384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
  8385. $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
  8386. fi
  8387. if test "$gt_cv_inttypes_pri_broken" = yes; then
  8388. cat >>confdefs.h <<_ACEOF
  8389. #define PRI_MACROS_BROKEN 1
  8390. _ACEOF
  8391. PRI_MACROS_BROKEN=1
  8392. else
  8393. PRI_MACROS_BROKEN=0
  8394. fi
  8395. # Check whether --enable-threads was given.
  8396. if test "${enable_threads+set}" = set; then :
  8397. enableval=$enable_threads; gl_use_threads=$enableval
  8398. else
  8399. case "$host_os" in
  8400. osf*) gl_use_threads=no ;;
  8401. *) gl_use_threads=yes ;;
  8402. esac
  8403. fi
  8404. if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
  8405. # For using <pthread.h>:
  8406. case "$host_os" in
  8407. osf*)
  8408. # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
  8409. # groks <pthread.h>. cc also understands the flag -pthread, but
  8410. # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
  8411. # 2. putting a flag into CPPFLAGS that has an effect on the linker
  8412. # causes the AC_TRY_LINK test below to succeed unexpectedly,
  8413. # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
  8414. CPPFLAGS="$CPPFLAGS -D_REENTRANT"
  8415. ;;
  8416. esac
  8417. # Some systems optimize for single-threaded programs by default, and
  8418. # need special flags to disable these optimizations. For example, the
  8419. # definition of 'errno' in <errno.h>.
  8420. case "$host_os" in
  8421. aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
  8422. solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
  8423. esac
  8424. fi
  8425. if test "X$prefix" = "XNONE"; then
  8426. acl_final_prefix="$ac_default_prefix"
  8427. else
  8428. acl_final_prefix="$prefix"
  8429. fi
  8430. if test "X$exec_prefix" = "XNONE"; then
  8431. acl_final_exec_prefix='${prefix}'
  8432. else
  8433. acl_final_exec_prefix="$exec_prefix"
  8434. fi
  8435. acl_save_prefix="$prefix"
  8436. prefix="$acl_final_prefix"
  8437. eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  8438. prefix="$acl_save_prefix"
  8439. # Check whether --with-gnu-ld was given.
  8440. if test "${with_gnu_ld+set}" = set; then :
  8441. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  8442. else
  8443. with_gnu_ld=no
  8444. fi
  8445. # Prepare PATH_SEPARATOR.
  8446. # The user is always right.
  8447. if test "${PATH_SEPARATOR+set}" != set; then
  8448. echo "#! /bin/sh" >conf$$.sh
  8449. echo "exit 0" >>conf$$.sh
  8450. chmod +x conf$$.sh
  8451. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  8452. PATH_SEPARATOR=';'
  8453. else
  8454. PATH_SEPARATOR=:
  8455. fi
  8456. rm -f conf$$.sh
  8457. fi
  8458. ac_prog=ld
  8459. if test "$GCC" = yes; then
  8460. # Check if gcc -print-prog-name=ld gives a path.
  8461. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
  8462. $as_echo_n "checking for ld used by GCC... " >&6; }
  8463. case $host in
  8464. *-*-mingw*)
  8465. # gcc leaves a trailing carriage return which upsets mingw
  8466. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  8467. *)
  8468. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  8469. esac
  8470. case $ac_prog in
  8471. # Accept absolute paths.
  8472. [\\/]* | [A-Za-z]:[\\/]*)
  8473. re_direlt='/[^/][^/]*/\.\./'
  8474. # Canonicalize the path of ld
  8475. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  8476. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  8477. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  8478. done
  8479. test -z "$LD" && LD="$ac_prog"
  8480. ;;
  8481. "")
  8482. # If it fails, then pretend we aren't using GCC.
  8483. ac_prog=ld
  8484. ;;
  8485. *)
  8486. # If it is relative, then search for the first ld in PATH.
  8487. with_gnu_ld=unknown
  8488. ;;
  8489. esac
  8490. elif test "$with_gnu_ld" = yes; then
  8491. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  8492. $as_echo_n "checking for GNU ld... " >&6; }
  8493. else
  8494. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  8495. $as_echo_n "checking for non-GNU ld... " >&6; }
  8496. fi
  8497. if test "${acl_cv_path_LD+set}" = set; then :
  8498. $as_echo_n "(cached) " >&6
  8499. else
  8500. if test -z "$LD"; then
  8501. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  8502. for ac_dir in $PATH; do
  8503. test -z "$ac_dir" && ac_dir=.
  8504. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  8505. acl_cv_path_LD="$ac_dir/$ac_prog"
  8506. # Check to see if the program is GNU ld. I'd rather use --version,
  8507. # but apparently some GNU ld's only accept -v.
  8508. # Break only if it was the GNU/non-GNU ld that we prefer.
  8509. case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
  8510. *GNU* | *'with BFD'*)
  8511. test "$with_gnu_ld" != no && break ;;
  8512. *)
  8513. test "$with_gnu_ld" != yes && break ;;
  8514. esac
  8515. fi
  8516. done
  8517. IFS="$ac_save_ifs"
  8518. else
  8519. acl_cv_path_LD="$LD" # Let the user override the test with a path.
  8520. fi
  8521. fi
  8522. LD="$acl_cv_path_LD"
  8523. if test -n "$LD"; then
  8524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  8525. $as_echo "$LD" >&6; }
  8526. else
  8527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8528. $as_echo "no" >&6; }
  8529. fi
  8530. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  8531. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  8532. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  8533. if test "${acl_cv_prog_gnu_ld+set}" = set; then :
  8534. $as_echo_n "(cached) " >&6
  8535. else
  8536. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  8537. case `$LD -v 2>&1 </dev/null` in
  8538. *GNU* | *'with BFD'*)
  8539. acl_cv_prog_gnu_ld=yes ;;
  8540. *)
  8541. acl_cv_prog_gnu_ld=no ;;
  8542. esac
  8543. fi
  8544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
  8545. $as_echo "$acl_cv_prog_gnu_ld" >&6; }
  8546. with_gnu_ld=$acl_cv_prog_gnu_ld
  8547. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
  8548. $as_echo_n "checking for shared library run path origin... " >&6; }
  8549. if test "${acl_cv_rpath+set}" = set; then :
  8550. $as_echo_n "(cached) " >&6
  8551. else
  8552. CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  8553. ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  8554. . ./conftest.sh
  8555. rm -f ./conftest.sh
  8556. acl_cv_rpath=done
  8557. fi
  8558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
  8559. $as_echo "$acl_cv_rpath" >&6; }
  8560. wl="$acl_cv_wl"
  8561. acl_libext="$acl_cv_libext"
  8562. acl_shlibext="$acl_cv_shlibext"
  8563. acl_libname_spec="$acl_cv_libname_spec"
  8564. acl_library_names_spec="$acl_cv_library_names_spec"
  8565. acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  8566. acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  8567. acl_hardcode_direct="$acl_cv_hardcode_direct"
  8568. acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
  8569. # Check whether --enable-rpath was given.
  8570. if test "${enable_rpath+set}" = set; then :
  8571. enableval=$enable_rpath; :
  8572. else
  8573. enable_rpath=yes
  8574. fi
  8575. acl_libdirstem=lib
  8576. searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
  8577. if test -n "$searchpath"; then
  8578. acl_save_IFS="${IFS= }"; IFS=":"
  8579. for searchdir in $searchpath; do
  8580. if test -d "$searchdir"; then
  8581. case "$searchdir" in
  8582. */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
  8583. *) searchdir=`cd "$searchdir" && pwd`
  8584. case "$searchdir" in
  8585. */lib64 ) acl_libdirstem=lib64 ;;
  8586. esac ;;
  8587. esac
  8588. fi
  8589. done
  8590. IFS="$acl_save_IFS"
  8591. fi
  8592. gl_threads_api=none
  8593. LIBTHREAD=
  8594. LTLIBTHREAD=
  8595. LIBMULTITHREAD=
  8596. LTLIBMULTITHREAD=
  8597. if test "$gl_use_threads" != no; then
  8598. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
  8599. $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
  8600. gl_have_weak=no
  8601. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8602. /* end confdefs.h. */
  8603. extern void xyzzy ();
  8604. #pragma weak xyzzy
  8605. int
  8606. main ()
  8607. {
  8608. xyzzy();
  8609. ;
  8610. return 0;
  8611. }
  8612. _ACEOF
  8613. if ac_fn_cxx_try_link "$LINENO"; then :
  8614. gl_have_weak=yes
  8615. fi
  8616. rm -f core conftest.err conftest.$ac_objext \
  8617. conftest$ac_exeext conftest.$ac_ext
  8618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_weak" >&5
  8619. $as_echo "$gl_have_weak" >&6; }
  8620. if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
  8621. # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
  8622. # it groks <pthread.h>. It's added above, in gl_LOCK_EARLY_BODY.
  8623. ac_fn_cxx_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
  8624. if test "x$ac_cv_header_pthread_h" = x""yes; then :
  8625. gl_have_pthread_h=yes
  8626. else
  8627. gl_have_pthread_h=no
  8628. fi
  8629. if test "$gl_have_pthread_h" = yes; then
  8630. # Other possible tests:
  8631. # -lpthreads (FSU threads, PCthreads)
  8632. # -lgthreads
  8633. gl_have_pthread=
  8634. # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
  8635. # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
  8636. # the second one only in libpthread, and lock.c needs it.
  8637. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8638. /* end confdefs.h. */
  8639. #include <pthread.h>
  8640. int
  8641. main ()
  8642. {
  8643. pthread_mutex_lock((pthread_mutex_t*)0);
  8644. pthread_mutexattr_init((pthread_mutexattr_t*)0);
  8645. ;
  8646. return 0;
  8647. }
  8648. _ACEOF
  8649. if ac_fn_cxx_try_link "$LINENO"; then :
  8650. gl_have_pthread=yes
  8651. fi
  8652. rm -f core conftest.err conftest.$ac_objext \
  8653. conftest$ac_exeext conftest.$ac_ext
  8654. # Test for libpthread by looking for pthread_kill. (Not pthread_self,
  8655. # since it is defined as a macro on OSF/1.)
  8656. if test -n "$gl_have_pthread"; then
  8657. # The program links fine without libpthread. But it may actually
  8658. # need to link with libpthread in order to create multiple threads.
  8659. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
  8660. $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
  8661. if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then :
  8662. $as_echo_n "(cached) " >&6
  8663. else
  8664. ac_check_lib_save_LIBS=$LIBS
  8665. LIBS="-lpthread $LIBS"
  8666. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8667. /* end confdefs.h. */
  8668. /* Override any GCC internal prototype to avoid an error.
  8669. Use char because int might match the return type of a GCC
  8670. builtin and then its argument prototype would still apply. */
  8671. #ifdef __cplusplus
  8672. extern "C"
  8673. #endif
  8674. char pthread_kill ();
  8675. int
  8676. main ()
  8677. {
  8678. return pthread_kill ();
  8679. ;
  8680. return 0;
  8681. }
  8682. _ACEOF
  8683. if ac_fn_cxx_try_link "$LINENO"; then :
  8684. ac_cv_lib_pthread_pthread_kill=yes
  8685. else
  8686. ac_cv_lib_pthread_pthread_kill=no
  8687. fi
  8688. rm -f core conftest.err conftest.$ac_objext \
  8689. conftest$ac_exeext conftest.$ac_ext
  8690. LIBS=$ac_check_lib_save_LIBS
  8691. fi
  8692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
  8693. $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
  8694. if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then :
  8695. LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
  8696. # On Solaris and HP-UX, most pthread functions exist also in libc.
  8697. # Therefore pthread_in_use() needs to actually try to create a
  8698. # thread: pthread_create from libc will fail, whereas
  8699. # pthread_create will actually create a thread.
  8700. case "$host_os" in
  8701. solaris* | hpux*)
  8702. $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
  8703. esac
  8704. fi
  8705. else
  8706. # Some library is needed. Try libpthread and libc_r.
  8707. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
  8708. $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
  8709. if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then :
  8710. $as_echo_n "(cached) " >&6
  8711. else
  8712. ac_check_lib_save_LIBS=$LIBS
  8713. LIBS="-lpthread $LIBS"
  8714. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8715. /* end confdefs.h. */
  8716. /* Override any GCC internal prototype to avoid an error.
  8717. Use char because int might match the return type of a GCC
  8718. builtin and then its argument prototype would still apply. */
  8719. #ifdef __cplusplus
  8720. extern "C"
  8721. #endif
  8722. char pthread_kill ();
  8723. int
  8724. main ()
  8725. {
  8726. return pthread_kill ();
  8727. ;
  8728. return 0;
  8729. }
  8730. _ACEOF
  8731. if ac_fn_cxx_try_link "$LINENO"; then :
  8732. ac_cv_lib_pthread_pthread_kill=yes
  8733. else
  8734. ac_cv_lib_pthread_pthread_kill=no
  8735. fi
  8736. rm -f core conftest.err conftest.$ac_objext \
  8737. conftest$ac_exeext conftest.$ac_ext
  8738. LIBS=$ac_check_lib_save_LIBS
  8739. fi
  8740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
  8741. $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
  8742. if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then :
  8743. gl_have_pthread=yes
  8744. LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
  8745. LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
  8746. fi
  8747. if test -z "$gl_have_pthread"; then
  8748. # For FreeBSD 4.
  8749. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
  8750. $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
  8751. if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then :
  8752. $as_echo_n "(cached) " >&6
  8753. else
  8754. ac_check_lib_save_LIBS=$LIBS
  8755. LIBS="-lc_r $LIBS"
  8756. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8757. /* end confdefs.h. */
  8758. /* Override any GCC internal prototype to avoid an error.
  8759. Use char because int might match the return type of a GCC
  8760. builtin and then its argument prototype would still apply. */
  8761. #ifdef __cplusplus
  8762. extern "C"
  8763. #endif
  8764. char pthread_kill ();
  8765. int
  8766. main ()
  8767. {
  8768. return pthread_kill ();
  8769. ;
  8770. return 0;
  8771. }
  8772. _ACEOF
  8773. if ac_fn_cxx_try_link "$LINENO"; then :
  8774. ac_cv_lib_c_r_pthread_kill=yes
  8775. else
  8776. ac_cv_lib_c_r_pthread_kill=no
  8777. fi
  8778. rm -f core conftest.err conftest.$ac_objext \
  8779. conftest$ac_exeext conftest.$ac_ext
  8780. LIBS=$ac_check_lib_save_LIBS
  8781. fi
  8782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
  8783. $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
  8784. if test "x$ac_cv_lib_c_r_pthread_kill" = x""yes; then :
  8785. gl_have_pthread=yes
  8786. LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
  8787. LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
  8788. fi
  8789. fi
  8790. fi
  8791. if test -n "$gl_have_pthread"; then
  8792. gl_threads_api=posix
  8793. $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
  8794. if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
  8795. if test $gl_have_weak = yes; then
  8796. $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
  8797. LIBTHREAD=
  8798. LTLIBTHREAD=
  8799. fi
  8800. fi
  8801. # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
  8802. # pthread_rwlock_* functions.
  8803. ac_fn_cxx_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
  8804. "
  8805. if test "x$ac_cv_type_pthread_rwlock_t" = x""yes; then :
  8806. $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
  8807. fi
  8808. # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
  8809. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8810. /* end confdefs.h. */
  8811. #include <pthread.h>
  8812. int
  8813. main ()
  8814. {
  8815. #if __FreeBSD__ == 4
  8816. error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
  8817. #else
  8818. int x = (int)PTHREAD_MUTEX_RECURSIVE;
  8819. return !x;
  8820. #endif
  8821. ;
  8822. return 0;
  8823. }
  8824. _ACEOF
  8825. if ac_fn_cxx_try_compile "$LINENO"; then :
  8826. $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
  8827. fi
  8828. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8829. fi
  8830. fi
  8831. fi
  8832. if test -z "$gl_have_pthread"; then
  8833. if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
  8834. gl_have_solaristhread=
  8835. gl_save_LIBS="$LIBS"
  8836. LIBS="$LIBS -lthread"
  8837. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8838. /* end confdefs.h. */
  8839. #include <thread.h>
  8840. #include <synch.h>
  8841. int
  8842. main ()
  8843. {
  8844. thr_self();
  8845. ;
  8846. return 0;
  8847. }
  8848. _ACEOF
  8849. if ac_fn_cxx_try_link "$LINENO"; then :
  8850. gl_have_solaristhread=yes
  8851. fi
  8852. rm -f core conftest.err conftest.$ac_objext \
  8853. conftest$ac_exeext conftest.$ac_ext
  8854. LIBS="$gl_save_LIBS"
  8855. if test -n "$gl_have_solaristhread"; then
  8856. gl_threads_api=solaris
  8857. LIBTHREAD=-lthread
  8858. LTLIBTHREAD=-lthread
  8859. LIBMULTITHREAD="$LIBTHREAD"
  8860. LTLIBMULTITHREAD="$LTLIBTHREAD"
  8861. $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
  8862. if test $gl_have_weak = yes; then
  8863. $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
  8864. LIBTHREAD=
  8865. LTLIBTHREAD=
  8866. fi
  8867. fi
  8868. fi
  8869. fi
  8870. if test "$gl_use_threads" = pth; then
  8871. gl_save_CPPFLAGS="$CPPFLAGS"
  8872. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
  8873. $as_echo_n "checking how to link with libpth... " >&6; }
  8874. if test "${ac_cv_libpth_libs+set}" = set; then :
  8875. $as_echo_n "(cached) " >&6
  8876. else
  8877. use_additional=yes
  8878. acl_save_prefix="$prefix"
  8879. prefix="$acl_final_prefix"
  8880. acl_save_exec_prefix="$exec_prefix"
  8881. exec_prefix="$acl_final_exec_prefix"
  8882. eval additional_includedir=\"$includedir\"
  8883. eval additional_libdir=\"$libdir\"
  8884. exec_prefix="$acl_save_exec_prefix"
  8885. prefix="$acl_save_prefix"
  8886. # Check whether --with-libpth-prefix was given.
  8887. if test "${with_libpth_prefix+set}" = set; then :
  8888. withval=$with_libpth_prefix;
  8889. if test "X$withval" = "Xno"; then
  8890. use_additional=no
  8891. else
  8892. if test "X$withval" = "X"; then
  8893. acl_save_prefix="$prefix"
  8894. prefix="$acl_final_prefix"
  8895. acl_save_exec_prefix="$exec_prefix"
  8896. exec_prefix="$acl_final_exec_prefix"
  8897. eval additional_includedir=\"$includedir\"
  8898. eval additional_libdir=\"$libdir\"
  8899. exec_prefix="$acl_save_exec_prefix"
  8900. prefix="$acl_save_prefix"
  8901. else
  8902. additional_includedir="$withval/include"
  8903. additional_libdir="$withval/$acl_libdirstem"
  8904. fi
  8905. fi
  8906. fi
  8907. LIBPTH=
  8908. LTLIBPTH=
  8909. INCPTH=
  8910. LIBPTH_PREFIX=
  8911. rpathdirs=
  8912. ltrpathdirs=
  8913. names_already_handled=
  8914. names_next_round='pth '
  8915. while test -n "$names_next_round"; do
  8916. names_this_round="$names_next_round"
  8917. names_next_round=
  8918. for name in $names_this_round; do
  8919. already_handled=
  8920. for n in $names_already_handled; do
  8921. if test "$n" = "$name"; then
  8922. already_handled=yes
  8923. break
  8924. fi
  8925. done
  8926. if test -z "$already_handled"; then
  8927. names_already_handled="$names_already_handled $name"
  8928. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  8929. eval value=\"\$HAVE_LIB$uppername\"
  8930. if test -n "$value"; then
  8931. if test "$value" = yes; then
  8932. eval value=\"\$LIB$uppername\"
  8933. test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
  8934. eval value=\"\$LTLIB$uppername\"
  8935. test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
  8936. else
  8937. :
  8938. fi
  8939. else
  8940. found_dir=
  8941. found_la=
  8942. found_so=
  8943. found_a=
  8944. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  8945. if test -n "$acl_shlibext"; then
  8946. shrext=".$acl_shlibext" # typically: shrext=.so
  8947. else
  8948. shrext=
  8949. fi
  8950. if test $use_additional = yes; then
  8951. dir="$additional_libdir"
  8952. if test -n "$acl_shlibext"; then
  8953. if test -f "$dir/$libname$shrext"; then
  8954. found_dir="$dir"
  8955. found_so="$dir/$libname$shrext"
  8956. else
  8957. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  8958. ver=`(cd "$dir" && \
  8959. for f in "$libname$shrext".*; do echo "$f"; done \
  8960. | sed -e "s,^$libname$shrext\\\\.,," \
  8961. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  8962. | sed 1q ) 2>/dev/null`
  8963. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  8964. found_dir="$dir"
  8965. found_so="$dir/$libname$shrext.$ver"
  8966. fi
  8967. else
  8968. eval library_names=\"$acl_library_names_spec\"
  8969. for f in $library_names; do
  8970. if test -f "$dir/$f"; then
  8971. found_dir="$dir"
  8972. found_so="$dir/$f"
  8973. break
  8974. fi
  8975. done
  8976. fi
  8977. fi
  8978. fi
  8979. if test "X$found_dir" = "X"; then
  8980. if test -f "$dir/$libname.$acl_libext"; then
  8981. found_dir="$dir"
  8982. found_a="$dir/$libname.$acl_libext"
  8983. fi
  8984. fi
  8985. if test "X$found_dir" != "X"; then
  8986. if test -f "$dir/$libname.la"; then
  8987. found_la="$dir/$libname.la"
  8988. fi
  8989. fi
  8990. fi
  8991. if test "X$found_dir" = "X"; then
  8992. for x in $LDFLAGS $LTLIBPTH; do
  8993. acl_save_prefix="$prefix"
  8994. prefix="$acl_final_prefix"
  8995. acl_save_exec_prefix="$exec_prefix"
  8996. exec_prefix="$acl_final_exec_prefix"
  8997. eval x=\"$x\"
  8998. exec_prefix="$acl_save_exec_prefix"
  8999. prefix="$acl_save_prefix"
  9000. case "$x" in
  9001. -L*)
  9002. dir=`echo "X$x" | sed -e 's/^X-L//'`
  9003. if test -n "$acl_shlibext"; then
  9004. if test -f "$dir/$libname$shrext"; then
  9005. found_dir="$dir"
  9006. found_so="$dir/$libname$shrext"
  9007. else
  9008. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  9009. ver=`(cd "$dir" && \
  9010. for f in "$libname$shrext".*; do echo "$f"; done \
  9011. | sed -e "s,^$libname$shrext\\\\.,," \
  9012. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  9013. | sed 1q ) 2>/dev/null`
  9014. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  9015. found_dir="$dir"
  9016. found_so="$dir/$libname$shrext.$ver"
  9017. fi
  9018. else
  9019. eval library_names=\"$acl_library_names_spec\"
  9020. for f in $library_names; do
  9021. if test -f "$dir/$f"; then
  9022. found_dir="$dir"
  9023. found_so="$dir/$f"
  9024. break
  9025. fi
  9026. done
  9027. fi
  9028. fi
  9029. fi
  9030. if test "X$found_dir" = "X"; then
  9031. if test -f "$dir/$libname.$acl_libext"; then
  9032. found_dir="$dir"
  9033. found_a="$dir/$libname.$acl_libext"
  9034. fi
  9035. fi
  9036. if test "X$found_dir" != "X"; then
  9037. if test -f "$dir/$libname.la"; then
  9038. found_la="$dir/$libname.la"
  9039. fi
  9040. fi
  9041. ;;
  9042. esac
  9043. if test "X$found_dir" != "X"; then
  9044. break
  9045. fi
  9046. done
  9047. fi
  9048. if test "X$found_dir" != "X"; then
  9049. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
  9050. if test "X$found_so" != "X"; then
  9051. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  9052. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  9053. else
  9054. haveit=
  9055. for x in $ltrpathdirs; do
  9056. if test "X$x" = "X$found_dir"; then
  9057. haveit=yes
  9058. break
  9059. fi
  9060. done
  9061. if test -z "$haveit"; then
  9062. ltrpathdirs="$ltrpathdirs $found_dir"
  9063. fi
  9064. if test "$acl_hardcode_direct" = yes; then
  9065. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  9066. else
  9067. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  9068. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  9069. haveit=
  9070. for x in $rpathdirs; do
  9071. if test "X$x" = "X$found_dir"; then
  9072. haveit=yes
  9073. break
  9074. fi
  9075. done
  9076. if test -z "$haveit"; then
  9077. rpathdirs="$rpathdirs $found_dir"
  9078. fi
  9079. else
  9080. haveit=
  9081. for x in $LDFLAGS $LIBPTH; do
  9082. acl_save_prefix="$prefix"
  9083. prefix="$acl_final_prefix"
  9084. acl_save_exec_prefix="$exec_prefix"
  9085. exec_prefix="$acl_final_exec_prefix"
  9086. eval x=\"$x\"
  9087. exec_prefix="$acl_save_exec_prefix"
  9088. prefix="$acl_save_prefix"
  9089. if test "X$x" = "X-L$found_dir"; then
  9090. haveit=yes
  9091. break
  9092. fi
  9093. done
  9094. if test -z "$haveit"; then
  9095. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
  9096. fi
  9097. if test "$acl_hardcode_minus_L" != no; then
  9098. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  9099. else
  9100. LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
  9101. fi
  9102. fi
  9103. fi
  9104. fi
  9105. else
  9106. if test "X$found_a" != "X"; then
  9107. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
  9108. else
  9109. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
  9110. fi
  9111. fi
  9112. additional_includedir=
  9113. case "$found_dir" in
  9114. */$acl_libdirstem | */$acl_libdirstem/)
  9115. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  9116. LIBPTH_PREFIX="$basedir"
  9117. additional_includedir="$basedir/include"
  9118. ;;
  9119. esac
  9120. if test "X$additional_includedir" != "X"; then
  9121. if test "X$additional_includedir" != "X/usr/include"; then
  9122. haveit=
  9123. if test "X$additional_includedir" = "X/usr/local/include"; then
  9124. if test -n "$GCC"; then
  9125. case $host_os in
  9126. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  9127. esac
  9128. fi
  9129. fi
  9130. if test -z "$haveit"; then
  9131. for x in $CPPFLAGS $INCPTH; do
  9132. acl_save_prefix="$prefix"
  9133. prefix="$acl_final_prefix"
  9134. acl_save_exec_prefix="$exec_prefix"
  9135. exec_prefix="$acl_final_exec_prefix"
  9136. eval x=\"$x\"
  9137. exec_prefix="$acl_save_exec_prefix"
  9138. prefix="$acl_save_prefix"
  9139. if test "X$x" = "X-I$additional_includedir"; then
  9140. haveit=yes
  9141. break
  9142. fi
  9143. done
  9144. if test -z "$haveit"; then
  9145. if test -d "$additional_includedir"; then
  9146. INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
  9147. fi
  9148. fi
  9149. fi
  9150. fi
  9151. fi
  9152. if test -n "$found_la"; then
  9153. save_libdir="$libdir"
  9154. case "$found_la" in
  9155. */* | *\\*) . "$found_la" ;;
  9156. *) . "./$found_la" ;;
  9157. esac
  9158. libdir="$save_libdir"
  9159. for dep in $dependency_libs; do
  9160. case "$dep" in
  9161. -L*)
  9162. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  9163. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  9164. haveit=
  9165. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  9166. if test -n "$GCC"; then
  9167. case $host_os in
  9168. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  9169. esac
  9170. fi
  9171. fi
  9172. if test -z "$haveit"; then
  9173. haveit=
  9174. for x in $LDFLAGS $LIBPTH; do
  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 x=\"$x\"
  9180. exec_prefix="$acl_save_exec_prefix"
  9181. prefix="$acl_save_prefix"
  9182. if test "X$x" = "X-L$additional_libdir"; then
  9183. haveit=yes
  9184. break
  9185. fi
  9186. done
  9187. if test -z "$haveit"; then
  9188. if test -d "$additional_libdir"; then
  9189. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
  9190. fi
  9191. fi
  9192. haveit=
  9193. for x in $LDFLAGS $LTLIBPTH; do
  9194. acl_save_prefix="$prefix"
  9195. prefix="$acl_final_prefix"
  9196. acl_save_exec_prefix="$exec_prefix"
  9197. exec_prefix="$acl_final_exec_prefix"
  9198. eval x=\"$x\"
  9199. exec_prefix="$acl_save_exec_prefix"
  9200. prefix="$acl_save_prefix"
  9201. if test "X$x" = "X-L$additional_libdir"; then
  9202. haveit=yes
  9203. break
  9204. fi
  9205. done
  9206. if test -z "$haveit"; then
  9207. if test -d "$additional_libdir"; then
  9208. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
  9209. fi
  9210. fi
  9211. fi
  9212. fi
  9213. ;;
  9214. -R*)
  9215. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  9216. if test "$enable_rpath" != no; then
  9217. haveit=
  9218. for x in $rpathdirs; do
  9219. if test "X$x" = "X$dir"; then
  9220. haveit=yes
  9221. break
  9222. fi
  9223. done
  9224. if test -z "$haveit"; then
  9225. rpathdirs="$rpathdirs $dir"
  9226. fi
  9227. haveit=
  9228. for x in $ltrpathdirs; do
  9229. if test "X$x" = "X$dir"; then
  9230. haveit=yes
  9231. break
  9232. fi
  9233. done
  9234. if test -z "$haveit"; then
  9235. ltrpathdirs="$ltrpathdirs $dir"
  9236. fi
  9237. fi
  9238. ;;
  9239. -l*)
  9240. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  9241. ;;
  9242. *.la)
  9243. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  9244. ;;
  9245. *)
  9246. LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
  9247. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
  9248. ;;
  9249. esac
  9250. done
  9251. fi
  9252. else
  9253. LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
  9254. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
  9255. fi
  9256. fi
  9257. fi
  9258. done
  9259. done
  9260. if test "X$rpathdirs" != "X"; then
  9261. if test -n "$acl_hardcode_libdir_separator"; then
  9262. alldirs=
  9263. for found_dir in $rpathdirs; do
  9264. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  9265. done
  9266. acl_save_libdir="$libdir"
  9267. libdir="$alldirs"
  9268. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  9269. libdir="$acl_save_libdir"
  9270. LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
  9271. else
  9272. for found_dir in $rpathdirs; do
  9273. acl_save_libdir="$libdir"
  9274. libdir="$found_dir"
  9275. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  9276. libdir="$acl_save_libdir"
  9277. LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
  9278. done
  9279. fi
  9280. fi
  9281. if test "X$ltrpathdirs" != "X"; then
  9282. for found_dir in $ltrpathdirs; do
  9283. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
  9284. done
  9285. fi
  9286. ac_cv_libpth_libs="$LIBPTH"
  9287. ac_cv_libpth_ltlibs="$LTLIBPTH"
  9288. ac_cv_libpth_cppflags="$INCPTH"
  9289. ac_cv_libpth_prefix="$LIBPTH_PREFIX"
  9290. fi
  9291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
  9292. $as_echo "$ac_cv_libpth_libs" >&6; }
  9293. LIBPTH="$ac_cv_libpth_libs"
  9294. LTLIBPTH="$ac_cv_libpth_ltlibs"
  9295. INCPTH="$ac_cv_libpth_cppflags"
  9296. LIBPTH_PREFIX="$ac_cv_libpth_prefix"
  9297. for element in $INCPTH; do
  9298. haveit=
  9299. for x in $CPPFLAGS; do
  9300. acl_save_prefix="$prefix"
  9301. prefix="$acl_final_prefix"
  9302. acl_save_exec_prefix="$exec_prefix"
  9303. exec_prefix="$acl_final_exec_prefix"
  9304. eval x=\"$x\"
  9305. exec_prefix="$acl_save_exec_prefix"
  9306. prefix="$acl_save_prefix"
  9307. if test "X$x" = "X$element"; then
  9308. haveit=yes
  9309. break
  9310. fi
  9311. done
  9312. if test -z "$haveit"; then
  9313. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  9314. fi
  9315. done
  9316. HAVE_LIBPTH=yes
  9317. gl_have_pth=
  9318. gl_save_LIBS="$LIBS"
  9319. LIBS="$LIBS -lpth"
  9320. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9321. /* end confdefs.h. */
  9322. #include <pth.h>
  9323. int
  9324. main ()
  9325. {
  9326. pth_self();
  9327. ;
  9328. return 0;
  9329. }
  9330. _ACEOF
  9331. if ac_fn_cxx_try_link "$LINENO"; then :
  9332. gl_have_pth=yes
  9333. fi
  9334. rm -f core conftest.err conftest.$ac_objext \
  9335. conftest$ac_exeext conftest.$ac_ext
  9336. LIBS="$gl_save_LIBS"
  9337. if test -n "$gl_have_pth"; then
  9338. gl_threads_api=pth
  9339. LIBTHREAD="$LIBPTH"
  9340. LTLIBTHREAD="$LTLIBPTH"
  9341. LIBMULTITHREAD="$LIBTHREAD"
  9342. LTLIBMULTITHREAD="$LTLIBTHREAD"
  9343. $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
  9344. if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
  9345. if test $gl_have_weak = yes; then
  9346. $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
  9347. LIBTHREAD=
  9348. LTLIBTHREAD=
  9349. fi
  9350. fi
  9351. else
  9352. CPPFLAGS="$gl_save_CPPFLAGS"
  9353. fi
  9354. fi
  9355. if test -z "$gl_have_pthread"; then
  9356. if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
  9357. if { case "$host_os" in
  9358. mingw*) true;;
  9359. *) false;;
  9360. esac
  9361. }; then
  9362. gl_threads_api=win32
  9363. $as_echo "#define USE_WIN32_THREADS 1" >>confdefs.h
  9364. fi
  9365. fi
  9366. fi
  9367. fi
  9368. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
  9369. $as_echo_n "checking for multithread API to use... " >&6; }
  9370. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
  9371. $as_echo "$gl_threads_api" >&6; }
  9372. use_additional=yes
  9373. acl_save_prefix="$prefix"
  9374. prefix="$acl_final_prefix"
  9375. acl_save_exec_prefix="$exec_prefix"
  9376. exec_prefix="$acl_final_exec_prefix"
  9377. eval additional_includedir=\"$includedir\"
  9378. eval additional_libdir=\"$libdir\"
  9379. exec_prefix="$acl_save_exec_prefix"
  9380. prefix="$acl_save_prefix"
  9381. # Check whether --with-libiconv-prefix was given.
  9382. if test "${with_libiconv_prefix+set}" = set; then :
  9383. withval=$with_libiconv_prefix;
  9384. if test "X$withval" = "Xno"; then
  9385. use_additional=no
  9386. else
  9387. if test "X$withval" = "X"; then
  9388. acl_save_prefix="$prefix"
  9389. prefix="$acl_final_prefix"
  9390. acl_save_exec_prefix="$exec_prefix"
  9391. exec_prefix="$acl_final_exec_prefix"
  9392. eval additional_includedir=\"$includedir\"
  9393. eval additional_libdir=\"$libdir\"
  9394. exec_prefix="$acl_save_exec_prefix"
  9395. prefix="$acl_save_prefix"
  9396. else
  9397. additional_includedir="$withval/include"
  9398. additional_libdir="$withval/$acl_libdirstem"
  9399. fi
  9400. fi
  9401. fi
  9402. LIBICONV=
  9403. LTLIBICONV=
  9404. INCICONV=
  9405. LIBICONV_PREFIX=
  9406. rpathdirs=
  9407. ltrpathdirs=
  9408. names_already_handled=
  9409. names_next_round='iconv '
  9410. while test -n "$names_next_round"; do
  9411. names_this_round="$names_next_round"
  9412. names_next_round=
  9413. for name in $names_this_round; do
  9414. already_handled=
  9415. for n in $names_already_handled; do
  9416. if test "$n" = "$name"; then
  9417. already_handled=yes
  9418. break
  9419. fi
  9420. done
  9421. if test -z "$already_handled"; then
  9422. names_already_handled="$names_already_handled $name"
  9423. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  9424. eval value=\"\$HAVE_LIB$uppername\"
  9425. if test -n "$value"; then
  9426. if test "$value" = yes; then
  9427. eval value=\"\$LIB$uppername\"
  9428. test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
  9429. eval value=\"\$LTLIB$uppername\"
  9430. test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
  9431. else
  9432. :
  9433. fi
  9434. else
  9435. found_dir=
  9436. found_la=
  9437. found_so=
  9438. found_a=
  9439. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  9440. if test -n "$acl_shlibext"; then
  9441. shrext=".$acl_shlibext" # typically: shrext=.so
  9442. else
  9443. shrext=
  9444. fi
  9445. if test $use_additional = yes; then
  9446. dir="$additional_libdir"
  9447. if test -n "$acl_shlibext"; then
  9448. if test -f "$dir/$libname$shrext"; then
  9449. found_dir="$dir"
  9450. found_so="$dir/$libname$shrext"
  9451. else
  9452. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  9453. ver=`(cd "$dir" && \
  9454. for f in "$libname$shrext".*; do echo "$f"; done \
  9455. | sed -e "s,^$libname$shrext\\\\.,," \
  9456. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  9457. | sed 1q ) 2>/dev/null`
  9458. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  9459. found_dir="$dir"
  9460. found_so="$dir/$libname$shrext.$ver"
  9461. fi
  9462. else
  9463. eval library_names=\"$acl_library_names_spec\"
  9464. for f in $library_names; do
  9465. if test -f "$dir/$f"; then
  9466. found_dir="$dir"
  9467. found_so="$dir/$f"
  9468. break
  9469. fi
  9470. done
  9471. fi
  9472. fi
  9473. fi
  9474. if test "X$found_dir" = "X"; then
  9475. if test -f "$dir/$libname.$acl_libext"; then
  9476. found_dir="$dir"
  9477. found_a="$dir/$libname.$acl_libext"
  9478. fi
  9479. fi
  9480. if test "X$found_dir" != "X"; then
  9481. if test -f "$dir/$libname.la"; then
  9482. found_la="$dir/$libname.la"
  9483. fi
  9484. fi
  9485. fi
  9486. if test "X$found_dir" = "X"; then
  9487. for x in $LDFLAGS $LTLIBICONV; do
  9488. acl_save_prefix="$prefix"
  9489. prefix="$acl_final_prefix"
  9490. acl_save_exec_prefix="$exec_prefix"
  9491. exec_prefix="$acl_final_exec_prefix"
  9492. eval x=\"$x\"
  9493. exec_prefix="$acl_save_exec_prefix"
  9494. prefix="$acl_save_prefix"
  9495. case "$x" in
  9496. -L*)
  9497. dir=`echo "X$x" | sed -e 's/^X-L//'`
  9498. if test -n "$acl_shlibext"; then
  9499. if test -f "$dir/$libname$shrext"; then
  9500. found_dir="$dir"
  9501. found_so="$dir/$libname$shrext"
  9502. else
  9503. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  9504. ver=`(cd "$dir" && \
  9505. for f in "$libname$shrext".*; do echo "$f"; done \
  9506. | sed -e "s,^$libname$shrext\\\\.,," \
  9507. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  9508. | sed 1q ) 2>/dev/null`
  9509. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  9510. found_dir="$dir"
  9511. found_so="$dir/$libname$shrext.$ver"
  9512. fi
  9513. else
  9514. eval library_names=\"$acl_library_names_spec\"
  9515. for f in $library_names; do
  9516. if test -f "$dir/$f"; then
  9517. found_dir="$dir"
  9518. found_so="$dir/$f"
  9519. break
  9520. fi
  9521. done
  9522. fi
  9523. fi
  9524. fi
  9525. if test "X$found_dir" = "X"; then
  9526. if test -f "$dir/$libname.$acl_libext"; then
  9527. found_dir="$dir"
  9528. found_a="$dir/$libname.$acl_libext"
  9529. fi
  9530. fi
  9531. if test "X$found_dir" != "X"; then
  9532. if test -f "$dir/$libname.la"; then
  9533. found_la="$dir/$libname.la"
  9534. fi
  9535. fi
  9536. ;;
  9537. esac
  9538. if test "X$found_dir" != "X"; then
  9539. break
  9540. fi
  9541. done
  9542. fi
  9543. if test "X$found_dir" != "X"; then
  9544. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
  9545. if test "X$found_so" != "X"; then
  9546. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  9547. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  9548. else
  9549. haveit=
  9550. for x in $ltrpathdirs; do
  9551. if test "X$x" = "X$found_dir"; then
  9552. haveit=yes
  9553. break
  9554. fi
  9555. done
  9556. if test -z "$haveit"; then
  9557. ltrpathdirs="$ltrpathdirs $found_dir"
  9558. fi
  9559. if test "$acl_hardcode_direct" = yes; then
  9560. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  9561. else
  9562. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  9563. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  9564. haveit=
  9565. for x in $rpathdirs; do
  9566. if test "X$x" = "X$found_dir"; then
  9567. haveit=yes
  9568. break
  9569. fi
  9570. done
  9571. if test -z "$haveit"; then
  9572. rpathdirs="$rpathdirs $found_dir"
  9573. fi
  9574. else
  9575. haveit=
  9576. for x in $LDFLAGS $LIBICONV; do
  9577. acl_save_prefix="$prefix"
  9578. prefix="$acl_final_prefix"
  9579. acl_save_exec_prefix="$exec_prefix"
  9580. exec_prefix="$acl_final_exec_prefix"
  9581. eval x=\"$x\"
  9582. exec_prefix="$acl_save_exec_prefix"
  9583. prefix="$acl_save_prefix"
  9584. if test "X$x" = "X-L$found_dir"; then
  9585. haveit=yes
  9586. break
  9587. fi
  9588. done
  9589. if test -z "$haveit"; then
  9590. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
  9591. fi
  9592. if test "$acl_hardcode_minus_L" != no; then
  9593. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  9594. else
  9595. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  9596. fi
  9597. fi
  9598. fi
  9599. fi
  9600. else
  9601. if test "X$found_a" != "X"; then
  9602. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
  9603. else
  9604. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
  9605. fi
  9606. fi
  9607. additional_includedir=
  9608. case "$found_dir" in
  9609. */$acl_libdirstem | */$acl_libdirstem/)
  9610. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  9611. LIBICONV_PREFIX="$basedir"
  9612. additional_includedir="$basedir/include"
  9613. ;;
  9614. esac
  9615. if test "X$additional_includedir" != "X"; then
  9616. if test "X$additional_includedir" != "X/usr/include"; then
  9617. haveit=
  9618. if test "X$additional_includedir" = "X/usr/local/include"; then
  9619. if test -n "$GCC"; then
  9620. case $host_os in
  9621. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  9622. esac
  9623. fi
  9624. fi
  9625. if test -z "$haveit"; then
  9626. for x in $CPPFLAGS $INCICONV; do
  9627. acl_save_prefix="$prefix"
  9628. prefix="$acl_final_prefix"
  9629. acl_save_exec_prefix="$exec_prefix"
  9630. exec_prefix="$acl_final_exec_prefix"
  9631. eval x=\"$x\"
  9632. exec_prefix="$acl_save_exec_prefix"
  9633. prefix="$acl_save_prefix"
  9634. if test "X$x" = "X-I$additional_includedir"; then
  9635. haveit=yes
  9636. break
  9637. fi
  9638. done
  9639. if test -z "$haveit"; then
  9640. if test -d "$additional_includedir"; then
  9641. INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
  9642. fi
  9643. fi
  9644. fi
  9645. fi
  9646. fi
  9647. if test -n "$found_la"; then
  9648. save_libdir="$libdir"
  9649. case "$found_la" in
  9650. */* | *\\*) . "$found_la" ;;
  9651. *) . "./$found_la" ;;
  9652. esac
  9653. libdir="$save_libdir"
  9654. for dep in $dependency_libs; do
  9655. case "$dep" in
  9656. -L*)
  9657. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  9658. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  9659. haveit=
  9660. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  9661. if test -n "$GCC"; then
  9662. case $host_os in
  9663. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  9664. esac
  9665. fi
  9666. fi
  9667. if test -z "$haveit"; then
  9668. haveit=
  9669. for x in $LDFLAGS $LIBICONV; do
  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 x=\"$x\"
  9675. exec_prefix="$acl_save_exec_prefix"
  9676. prefix="$acl_save_prefix"
  9677. if test "X$x" = "X-L$additional_libdir"; then
  9678. haveit=yes
  9679. break
  9680. fi
  9681. done
  9682. if test -z "$haveit"; then
  9683. if test -d "$additional_libdir"; then
  9684. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
  9685. fi
  9686. fi
  9687. haveit=
  9688. for x in $LDFLAGS $LTLIBICONV; do
  9689. acl_save_prefix="$prefix"
  9690. prefix="$acl_final_prefix"
  9691. acl_save_exec_prefix="$exec_prefix"
  9692. exec_prefix="$acl_final_exec_prefix"
  9693. eval x=\"$x\"
  9694. exec_prefix="$acl_save_exec_prefix"
  9695. prefix="$acl_save_prefix"
  9696. if test "X$x" = "X-L$additional_libdir"; then
  9697. haveit=yes
  9698. break
  9699. fi
  9700. done
  9701. if test -z "$haveit"; then
  9702. if test -d "$additional_libdir"; then
  9703. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
  9704. fi
  9705. fi
  9706. fi
  9707. fi
  9708. ;;
  9709. -R*)
  9710. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  9711. if test "$enable_rpath" != no; then
  9712. haveit=
  9713. for x in $rpathdirs; do
  9714. if test "X$x" = "X$dir"; then
  9715. haveit=yes
  9716. break
  9717. fi
  9718. done
  9719. if test -z "$haveit"; then
  9720. rpathdirs="$rpathdirs $dir"
  9721. fi
  9722. haveit=
  9723. for x in $ltrpathdirs; do
  9724. if test "X$x" = "X$dir"; then
  9725. haveit=yes
  9726. break
  9727. fi
  9728. done
  9729. if test -z "$haveit"; then
  9730. ltrpathdirs="$ltrpathdirs $dir"
  9731. fi
  9732. fi
  9733. ;;
  9734. -l*)
  9735. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  9736. ;;
  9737. *.la)
  9738. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  9739. ;;
  9740. *)
  9741. LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
  9742. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
  9743. ;;
  9744. esac
  9745. done
  9746. fi
  9747. else
  9748. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  9749. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
  9750. fi
  9751. fi
  9752. fi
  9753. done
  9754. done
  9755. if test "X$rpathdirs" != "X"; then
  9756. if test -n "$acl_hardcode_libdir_separator"; then
  9757. alldirs=
  9758. for found_dir in $rpathdirs; do
  9759. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  9760. done
  9761. acl_save_libdir="$libdir"
  9762. libdir="$alldirs"
  9763. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  9764. libdir="$acl_save_libdir"
  9765. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  9766. else
  9767. for found_dir in $rpathdirs; do
  9768. acl_save_libdir="$libdir"
  9769. libdir="$found_dir"
  9770. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  9771. libdir="$acl_save_libdir"
  9772. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  9773. done
  9774. fi
  9775. fi
  9776. if test "X$ltrpathdirs" != "X"; then
  9777. for found_dir in $ltrpathdirs; do
  9778. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
  9779. done
  9780. fi
  9781. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9782. /* end confdefs.h. */
  9783. int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
  9784. int
  9785. main ()
  9786. {
  9787. ;
  9788. return 0;
  9789. }
  9790. _ACEOF
  9791. if ac_fn_cxx_try_link "$LINENO"; then :
  9792. $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
  9793. fi
  9794. rm -f core conftest.err conftest.$ac_objext \
  9795. conftest$ac_exeext conftest.$ac_ext
  9796. for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
  9797. do :
  9798. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9799. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  9800. eval as_val=\$$as_ac_Header
  9801. if test "x$as_val" = x""yes; then :
  9802. cat >>confdefs.h <<_ACEOF
  9803. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9804. _ACEOF
  9805. fi
  9806. done
  9807. for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
  9808. stpcpy strcasecmp strdup strtoul tsearch argz_count argz_stringify \
  9809. argz_next __fsetlocking
  9810. do :
  9811. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9812. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  9813. eval as_val=\$$as_ac_var
  9814. if test "x$as_val" = x""yes; then :
  9815. cat >>confdefs.h <<_ACEOF
  9816. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9817. _ACEOF
  9818. fi
  9819. done
  9820. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
  9821. $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
  9822. if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then :
  9823. $as_echo_n "(cached) " >&6
  9824. else
  9825. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9826. /* end confdefs.h. */
  9827. #include <stdio.h>
  9828. int
  9829. main ()
  9830. {
  9831. #ifndef feof_unlocked
  9832. char *p = (char *) feof_unlocked;
  9833. #endif
  9834. ;
  9835. return 0;
  9836. }
  9837. _ACEOF
  9838. if ac_fn_cxx_try_compile "$LINENO"; then :
  9839. ac_cv_have_decl_feof_unlocked=yes
  9840. else
  9841. ac_cv_have_decl_feof_unlocked=no
  9842. fi
  9843. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9844. fi
  9845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
  9846. $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
  9847. if test $ac_cv_have_decl_feof_unlocked = yes; then
  9848. gt_value=1
  9849. else
  9850. gt_value=0
  9851. fi
  9852. cat >>confdefs.h <<_ACEOF
  9853. #define HAVE_DECL_FEOF_UNLOCKED $gt_value
  9854. _ACEOF
  9855. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
  9856. $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
  9857. if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then :
  9858. $as_echo_n "(cached) " >&6
  9859. else
  9860. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9861. /* end confdefs.h. */
  9862. #include <stdio.h>
  9863. int
  9864. main ()
  9865. {
  9866. #ifndef fgets_unlocked
  9867. char *p = (char *) fgets_unlocked;
  9868. #endif
  9869. ;
  9870. return 0;
  9871. }
  9872. _ACEOF
  9873. if ac_fn_cxx_try_compile "$LINENO"; then :
  9874. ac_cv_have_decl_fgets_unlocked=yes
  9875. else
  9876. ac_cv_have_decl_fgets_unlocked=no
  9877. fi
  9878. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9879. fi
  9880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
  9881. $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
  9882. if test $ac_cv_have_decl_fgets_unlocked = yes; then
  9883. gt_value=1
  9884. else
  9885. gt_value=0
  9886. fi
  9887. cat >>confdefs.h <<_ACEOF
  9888. #define HAVE_DECL_FGETS_UNLOCKED $gt_value
  9889. _ACEOF
  9890. am_save_CPPFLAGS="$CPPFLAGS"
  9891. for element in $INCICONV; do
  9892. haveit=
  9893. for x in $CPPFLAGS; do
  9894. acl_save_prefix="$prefix"
  9895. prefix="$acl_final_prefix"
  9896. acl_save_exec_prefix="$exec_prefix"
  9897. exec_prefix="$acl_final_exec_prefix"
  9898. eval x=\"$x\"
  9899. exec_prefix="$acl_save_exec_prefix"
  9900. prefix="$acl_save_prefix"
  9901. if test "X$x" = "X$element"; then
  9902. haveit=yes
  9903. break
  9904. fi
  9905. done
  9906. if test -z "$haveit"; then
  9907. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  9908. fi
  9909. done
  9910. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
  9911. $as_echo_n "checking for iconv... " >&6; }
  9912. if test "${am_cv_func_iconv+set}" = set; then :
  9913. $as_echo_n "(cached) " >&6
  9914. else
  9915. am_cv_func_iconv="no, consider installing GNU libiconv"
  9916. am_cv_lib_iconv=no
  9917. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9918. /* end confdefs.h. */
  9919. #include <stdlib.h>
  9920. #include <iconv.h>
  9921. int
  9922. main ()
  9923. {
  9924. iconv_t cd = iconv_open("","");
  9925. iconv(cd,NULL,NULL,NULL,NULL);
  9926. iconv_close(cd);
  9927. ;
  9928. return 0;
  9929. }
  9930. _ACEOF
  9931. if ac_fn_cxx_try_link "$LINENO"; then :
  9932. am_cv_func_iconv=yes
  9933. fi
  9934. rm -f core conftest.err conftest.$ac_objext \
  9935. conftest$ac_exeext conftest.$ac_ext
  9936. if test "$am_cv_func_iconv" != yes; then
  9937. am_save_LIBS="$LIBS"
  9938. LIBS="$LIBS $LIBICONV"
  9939. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9940. /* end confdefs.h. */
  9941. #include <stdlib.h>
  9942. #include <iconv.h>
  9943. int
  9944. main ()
  9945. {
  9946. iconv_t cd = iconv_open("","");
  9947. iconv(cd,NULL,NULL,NULL,NULL);
  9948. iconv_close(cd);
  9949. ;
  9950. return 0;
  9951. }
  9952. _ACEOF
  9953. if ac_fn_cxx_try_link "$LINENO"; then :
  9954. am_cv_lib_iconv=yes
  9955. am_cv_func_iconv=yes
  9956. fi
  9957. rm -f core conftest.err conftest.$ac_objext \
  9958. conftest$ac_exeext conftest.$ac_ext
  9959. LIBS="$am_save_LIBS"
  9960. fi
  9961. fi
  9962. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
  9963. $as_echo "$am_cv_func_iconv" >&6; }
  9964. if test "$am_cv_func_iconv" = yes; then
  9965. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
  9966. $as_echo_n "checking for working iconv... " >&6; }
  9967. if test "${am_cv_func_iconv_works+set}" = set; then :
  9968. $as_echo_n "(cached) " >&6
  9969. else
  9970. am_save_LIBS="$LIBS"
  9971. if test $am_cv_lib_iconv = yes; then
  9972. LIBS="$LIBS $LIBICONV"
  9973. fi
  9974. if test "$cross_compiling" = yes; then :
  9975. case "$host_os" in
  9976. aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
  9977. *) am_cv_func_iconv_works="guessing yes" ;;
  9978. esac
  9979. else
  9980. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9981. /* end confdefs.h. */
  9982. #include <iconv.h>
  9983. #include <string.h>
  9984. int main ()
  9985. {
  9986. /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
  9987. returns. */
  9988. {
  9989. iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
  9990. if (cd_utf8_to_88591 != (iconv_t)(-1))
  9991. {
  9992. static const char input[] = "\342\202\254"; /* EURO SIGN */
  9993. char buf[10];
  9994. const char *inptr = input;
  9995. size_t inbytesleft = strlen (input);
  9996. char *outptr = buf;
  9997. size_t outbytesleft = sizeof (buf);
  9998. size_t res = iconv (cd_utf8_to_88591,
  9999. (char **) &inptr, &inbytesleft,
  10000. &outptr, &outbytesleft);
  10001. if (res == 0)
  10002. return 1;
  10003. }
  10004. }
  10005. #if 0 /* This bug could be worked around by the caller. */
  10006. /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
  10007. {
  10008. iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
  10009. if (cd_88591_to_utf8 != (iconv_t)(-1))
  10010. {
  10011. static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
  10012. char buf[50];
  10013. const char *inptr = input;
  10014. size_t inbytesleft = strlen (input);
  10015. char *outptr = buf;
  10016. size_t outbytesleft = sizeof (buf);
  10017. size_t res = iconv (cd_88591_to_utf8,
  10018. (char **) &inptr, &inbytesleft,
  10019. &outptr, &outbytesleft);
  10020. if ((int)res > 0)
  10021. return 1;
  10022. }
  10023. }
  10024. #endif
  10025. /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
  10026. provided. */
  10027. if (/* Try standardized names. */
  10028. iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
  10029. /* Try IRIX, OSF/1 names. */
  10030. && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
  10031. /* Try AIX names. */
  10032. && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
  10033. /* Try HP-UX names. */
  10034. && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
  10035. return 1;
  10036. return 0;
  10037. }
  10038. _ACEOF
  10039. if ac_fn_cxx_try_run "$LINENO"; then :
  10040. am_cv_func_iconv_works=yes
  10041. else
  10042. am_cv_func_iconv_works=no
  10043. fi
  10044. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10045. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10046. fi
  10047. LIBS="$am_save_LIBS"
  10048. fi
  10049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
  10050. $as_echo "$am_cv_func_iconv_works" >&6; }
  10051. case "$am_cv_func_iconv_works" in
  10052. *no) am_func_iconv=no am_cv_lib_iconv=no ;;
  10053. *) am_func_iconv=yes ;;
  10054. esac
  10055. else
  10056. am_func_iconv=no am_cv_lib_iconv=no
  10057. fi
  10058. if test "$am_func_iconv" = yes; then
  10059. $as_echo "#define HAVE_ICONV 1" >>confdefs.h
  10060. fi
  10061. if test "$am_cv_lib_iconv" = yes; then
  10062. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
  10063. $as_echo_n "checking how to link with libiconv... " >&6; }
  10064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
  10065. $as_echo "$LIBICONV" >&6; }
  10066. else
  10067. CPPFLAGS="$am_save_CPPFLAGS"
  10068. LIBICONV=
  10069. LTLIBICONV=
  10070. fi
  10071. if test "$am_cv_func_iconv" = yes; then
  10072. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
  10073. $as_echo_n "checking for iconv declaration... " >&6; }
  10074. if test "${am_cv_proto_iconv+set}" = set; then :
  10075. $as_echo_n "(cached) " >&6
  10076. else
  10077. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10078. /* end confdefs.h. */
  10079. #include <stdlib.h>
  10080. #include <iconv.h>
  10081. extern
  10082. #ifdef __cplusplus
  10083. "C"
  10084. #endif
  10085. #if defined(__STDC__) || defined(__cplusplus)
  10086. size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  10087. #else
  10088. size_t iconv();
  10089. #endif
  10090. int
  10091. main ()
  10092. {
  10093. ;
  10094. return 0;
  10095. }
  10096. _ACEOF
  10097. if ac_fn_cxx_try_compile "$LINENO"; then :
  10098. am_cv_proto_iconv_arg1=""
  10099. else
  10100. am_cv_proto_iconv_arg1="const"
  10101. fi
  10102. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10103. 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);"
  10104. fi
  10105. am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  10106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
  10107. }$am_cv_proto_iconv" >&5
  10108. $as_echo "${ac_t:-
  10109. }$am_cv_proto_iconv" >&6; }
  10110. cat >>confdefs.h <<_ACEOF
  10111. #define ICONV_CONST $am_cv_proto_iconv_arg1
  10112. _ACEOF
  10113. fi
  10114. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NL_LOCALE_NAME macro" >&5
  10115. $as_echo_n "checking for NL_LOCALE_NAME macro... " >&6; }
  10116. if test "${gt_cv_nl_locale_name+set}" = set; then :
  10117. $as_echo_n "(cached) " >&6
  10118. else
  10119. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10120. /* end confdefs.h. */
  10121. #include <langinfo.h>
  10122. #include <locale.h>
  10123. int
  10124. main ()
  10125. {
  10126. char* cs = nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES));
  10127. return !cs;
  10128. ;
  10129. return 0;
  10130. }
  10131. _ACEOF
  10132. if ac_fn_cxx_try_link "$LINENO"; then :
  10133. gt_cv_nl_locale_name=yes
  10134. else
  10135. gt_cv_nl_locale_name=no
  10136. fi
  10137. rm -f core conftest.err conftest.$ac_objext \
  10138. conftest$ac_exeext conftest.$ac_ext
  10139. fi
  10140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_nl_locale_name" >&5
  10141. $as_echo "$gt_cv_nl_locale_name" >&6; }
  10142. if test $gt_cv_nl_locale_name = yes; then
  10143. $as_echo "#define HAVE_NL_LOCALE_NAME 1" >>confdefs.h
  10144. fi
  10145. for ac_prog in bison
  10146. do
  10147. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10148. set dummy $ac_prog; ac_word=$2
  10149. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10150. $as_echo_n "checking for $ac_word... " >&6; }
  10151. if test "${ac_cv_prog_INTLBISON+set}" = set; then :
  10152. $as_echo_n "(cached) " >&6
  10153. else
  10154. if test -n "$INTLBISON"; then
  10155. ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
  10156. else
  10157. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10158. for as_dir in $PATH
  10159. do
  10160. IFS=$as_save_IFS
  10161. test -z "$as_dir" && as_dir=.
  10162. for ac_exec_ext in '' $ac_executable_extensions; do
  10163. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10164. ac_cv_prog_INTLBISON="$ac_prog"
  10165. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10166. break 2
  10167. fi
  10168. done
  10169. done
  10170. IFS=$as_save_IFS
  10171. fi
  10172. fi
  10173. INTLBISON=$ac_cv_prog_INTLBISON
  10174. if test -n "$INTLBISON"; then
  10175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
  10176. $as_echo "$INTLBISON" >&6; }
  10177. else
  10178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10179. $as_echo "no" >&6; }
  10180. fi
  10181. test -n "$INTLBISON" && break
  10182. done
  10183. if test -z "$INTLBISON"; then
  10184. ac_verc_fail=yes
  10185. else
  10186. { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
  10187. $as_echo_n "checking version of bison... " >&6; }
  10188. ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
  10189. case $ac_prog_version in
  10190. '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
  10191. 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
  10192. ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
  10193. *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
  10194. esac
  10195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
  10196. $as_echo "$ac_prog_version" >&6; }
  10197. fi
  10198. if test $ac_verc_fail = yes; then
  10199. INTLBISON=:
  10200. fi
  10201. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
  10202. $as_echo_n "checking for long long int... " >&6; }
  10203. if test "${ac_cv_type_long_long_int+set}" = set; then :
  10204. $as_echo_n "(cached) " >&6
  10205. else
  10206. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10207. /* end confdefs.h. */
  10208. /* Test preprocessor. */
  10209. #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  10210. error in preprocessor;
  10211. #endif
  10212. #if ! (18446744073709551615ULL <= -1ull)
  10213. error in preprocessor;
  10214. #endif
  10215. /* Test literals. */
  10216. long long int ll = 9223372036854775807ll;
  10217. long long int nll = -9223372036854775807LL;
  10218. unsigned long long int ull = 18446744073709551615ULL;
  10219. /* Test constant expressions. */
  10220. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  10221. ? 1 : -1)];
  10222. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  10223. ? 1 : -1)];
  10224. int i = 63;
  10225. int
  10226. main ()
  10227. {
  10228. /* Test availability of runtime routines for shift and division. */
  10229. long long int llmax = 9223372036854775807ll;
  10230. unsigned long long int ullmax = 18446744073709551615ull;
  10231. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  10232. | (llmax / ll) | (llmax % ll)
  10233. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  10234. | (ullmax / ull) | (ullmax % ull));
  10235. ;
  10236. return 0;
  10237. }
  10238. _ACEOF
  10239. if ac_fn_cxx_try_link "$LINENO"; then :
  10240. if test "$cross_compiling" = yes; then :
  10241. ac_cv_type_long_long_int=yes
  10242. else
  10243. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10244. /* end confdefs.h. */
  10245. #include <limits.h>
  10246. #ifndef LLONG_MAX
  10247. # define HALF \
  10248. (1LL << (sizeof (long long int) * CHAR_BIT - 2))
  10249. # define LLONG_MAX (HALF - 1 + HALF)
  10250. #endif
  10251. int
  10252. main ()
  10253. {
  10254. long long int n = 1;
  10255. int i;
  10256. for (i = 0; ; i++)
  10257. {
  10258. long long int m = n << i;
  10259. if (m >> i != n)
  10260. return 1;
  10261. if (LLONG_MAX / 2 < m)
  10262. break;
  10263. }
  10264. return 0;
  10265. ;
  10266. return 0;
  10267. }
  10268. _ACEOF
  10269. if ac_fn_cxx_try_run "$LINENO"; then :
  10270. ac_cv_type_long_long_int=yes
  10271. else
  10272. ac_cv_type_long_long_int=no
  10273. fi
  10274. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10275. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10276. fi
  10277. else
  10278. ac_cv_type_long_long_int=no
  10279. fi
  10280. rm -f core conftest.err conftest.$ac_objext \
  10281. conftest$ac_exeext conftest.$ac_ext
  10282. fi
  10283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
  10284. $as_echo "$ac_cv_type_long_long_int" >&6; }
  10285. if test $ac_cv_type_long_long_int = yes; then
  10286. $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
  10287. fi
  10288. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
  10289. $as_echo_n "checking for wchar_t... " >&6; }
  10290. if test "${gt_cv_c_wchar_t+set}" = set; then :
  10291. $as_echo_n "(cached) " >&6
  10292. else
  10293. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10294. /* end confdefs.h. */
  10295. #include <stddef.h>
  10296. wchar_t foo = (wchar_t)'\0';
  10297. int
  10298. main ()
  10299. {
  10300. ;
  10301. return 0;
  10302. }
  10303. _ACEOF
  10304. if ac_fn_cxx_try_compile "$LINENO"; then :
  10305. gt_cv_c_wchar_t=yes
  10306. else
  10307. gt_cv_c_wchar_t=no
  10308. fi
  10309. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10310. fi
  10311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
  10312. $as_echo "$gt_cv_c_wchar_t" >&6; }
  10313. if test $gt_cv_c_wchar_t = yes; then
  10314. $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
  10315. fi
  10316. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
  10317. $as_echo_n "checking for wint_t... " >&6; }
  10318. if test "${gt_cv_c_wint_t+set}" = set; then :
  10319. $as_echo_n "(cached) " >&6
  10320. else
  10321. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10322. /* end confdefs.h. */
  10323. /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
  10324. <wchar.h>.
  10325. BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
  10326. before <wchar.h>. */
  10327. #include <stddef.h>
  10328. #include <stdio.h>
  10329. #include <time.h>
  10330. #include <wchar.h>
  10331. wint_t foo = (wchar_t)'\0';
  10332. int
  10333. main ()
  10334. {
  10335. ;
  10336. return 0;
  10337. }
  10338. _ACEOF
  10339. if ac_fn_cxx_try_compile "$LINENO"; then :
  10340. gt_cv_c_wint_t=yes
  10341. else
  10342. gt_cv_c_wint_t=no
  10343. fi
  10344. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10345. fi
  10346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
  10347. $as_echo "$gt_cv_c_wint_t" >&6; }
  10348. if test $gt_cv_c_wint_t = yes; then
  10349. $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
  10350. fi
  10351. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
  10352. $as_echo_n "checking for intmax_t... " >&6; }
  10353. if test "${gt_cv_c_intmax_t+set}" = set; then :
  10354. $as_echo_n "(cached) " >&6
  10355. else
  10356. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10357. /* end confdefs.h. */
  10358. #include <stddef.h>
  10359. #include <stdlib.h>
  10360. #if HAVE_STDINT_H_WITH_UINTMAX
  10361. #include <stdint.h>
  10362. #endif
  10363. #if HAVE_INTTYPES_H_WITH_UINTMAX
  10364. #include <inttypes.h>
  10365. #endif
  10366. int
  10367. main ()
  10368. {
  10369. intmax_t x = -1;
  10370. return !x;
  10371. ;
  10372. return 0;
  10373. }
  10374. _ACEOF
  10375. if ac_fn_cxx_try_compile "$LINENO"; then :
  10376. gt_cv_c_intmax_t=yes
  10377. else
  10378. gt_cv_c_intmax_t=no
  10379. fi
  10380. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10381. fi
  10382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
  10383. $as_echo "$gt_cv_c_intmax_t" >&6; }
  10384. if test $gt_cv_c_intmax_t = yes; then
  10385. $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
  10386. fi
  10387. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
  10388. $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
  10389. if test "${gt_cv_func_printf_posix+set}" = set; then :
  10390. $as_echo_n "(cached) " >&6
  10391. else
  10392. if test "$cross_compiling" = yes; then :
  10393. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10394. /* end confdefs.h. */
  10395. #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
  10396. notposix
  10397. #endif
  10398. _ACEOF
  10399. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10400. $EGREP "notposix" >/dev/null 2>&1; then :
  10401. gt_cv_func_printf_posix="guessing no"
  10402. else
  10403. gt_cv_func_printf_posix="guessing yes"
  10404. fi
  10405. rm -f conftest*
  10406. else
  10407. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10408. /* end confdefs.h. */
  10409. #include <stdio.h>
  10410. #include <string.h>
  10411. /* The string "%2$d %1$d", with dollar characters protected from the shell's
  10412. dollar expansion (possibly an autoconf bug). */
  10413. static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
  10414. static char buf[100];
  10415. int main ()
  10416. {
  10417. sprintf (buf, format, 33, 55);
  10418. return (strcmp (buf, "55 33") != 0);
  10419. }
  10420. _ACEOF
  10421. if ac_fn_cxx_try_run "$LINENO"; then :
  10422. gt_cv_func_printf_posix=yes
  10423. else
  10424. gt_cv_func_printf_posix=no
  10425. fi
  10426. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10427. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10428. fi
  10429. fi
  10430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
  10431. $as_echo "$gt_cv_func_printf_posix" >&6; }
  10432. case $gt_cv_func_printf_posix in
  10433. *yes)
  10434. $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
  10435. ;;
  10436. esac
  10437. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
  10438. $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
  10439. if test "${ac_cv_gnu_library_2_1+set}" = set; then :
  10440. $as_echo_n "(cached) " >&6
  10441. else
  10442. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10443. /* end confdefs.h. */
  10444. #include <features.h>
  10445. #ifdef __GNU_LIBRARY__
  10446. #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
  10447. Lucky GNU user
  10448. #endif
  10449. #endif
  10450. _ACEOF
  10451. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10452. $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
  10453. ac_cv_gnu_library_2_1=yes
  10454. else
  10455. ac_cv_gnu_library_2_1=no
  10456. fi
  10457. rm -f conftest*
  10458. fi
  10459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
  10460. $as_echo "$ac_cv_gnu_library_2_1" >&6; }
  10461. GLIBC21="$ac_cv_gnu_library_2_1"
  10462. for ac_header in stdint.h
  10463. do :
  10464. ac_fn_cxx_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
  10465. if test "x$ac_cv_header_stdint_h" = x""yes; then :
  10466. cat >>confdefs.h <<_ACEOF
  10467. #define HAVE_STDINT_H 1
  10468. _ACEOF
  10469. fi
  10470. done
  10471. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
  10472. $as_echo_n "checking for SIZE_MAX... " >&6; }
  10473. if test "${gl_cv_size_max+set}" = set; then :
  10474. $as_echo_n "(cached) " >&6
  10475. else
  10476. gl_cv_size_max=
  10477. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10478. /* end confdefs.h. */
  10479. #include <limits.h>
  10480. #if HAVE_STDINT_H
  10481. #include <stdint.h>
  10482. #endif
  10483. #ifdef SIZE_MAX
  10484. Found it
  10485. #endif
  10486. _ACEOF
  10487. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10488. $EGREP "Found it" >/dev/null 2>&1; then :
  10489. gl_cv_size_max=yes
  10490. fi
  10491. rm -f conftest*
  10492. if test -z "$gl_cv_size_max"; then
  10493. if ac_fn_cxx_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
  10494. #include <limits.h>"; then :
  10495. else
  10496. size_t_bits_minus_1=
  10497. fi
  10498. if ac_fn_cxx_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
  10499. else
  10500. fits_in_uint=
  10501. fi
  10502. if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
  10503. if test $fits_in_uint = 1; then
  10504. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10505. /* end confdefs.h. */
  10506. #include <stddef.h>
  10507. extern size_t foo;
  10508. extern unsigned long foo;
  10509. int
  10510. main ()
  10511. {
  10512. ;
  10513. return 0;
  10514. }
  10515. _ACEOF
  10516. if ac_fn_cxx_try_compile "$LINENO"; then :
  10517. fits_in_uint=0
  10518. fi
  10519. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10520. fi
  10521. if test $fits_in_uint = 1; then
  10522. gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
  10523. else
  10524. gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
  10525. fi
  10526. else
  10527. gl_cv_size_max='((size_t)~(size_t)0)'
  10528. fi
  10529. fi
  10530. fi
  10531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
  10532. $as_echo "$gl_cv_size_max" >&6; }
  10533. if test "$gl_cv_size_max" != yes; then
  10534. cat >>confdefs.h <<_ACEOF
  10535. #define SIZE_MAX $gl_cv_size_max
  10536. _ACEOF
  10537. fi
  10538. for ac_header in stdint.h
  10539. do :
  10540. ac_fn_cxx_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
  10541. if test "x$ac_cv_header_stdint_h" = x""yes; then :
  10542. cat >>confdefs.h <<_ACEOF
  10543. #define HAVE_STDINT_H 1
  10544. _ACEOF
  10545. fi
  10546. done
  10547. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
  10548. $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
  10549. if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
  10550. $as_echo_n "(cached) " >&6
  10551. else
  10552. gt_save_LIBS="$LIBS"
  10553. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  10554. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10555. /* end confdefs.h. */
  10556. #include <CoreFoundation/CFPreferences.h>
  10557. int
  10558. main ()
  10559. {
  10560. CFPreferencesCopyAppValue(NULL, NULL)
  10561. ;
  10562. return 0;
  10563. }
  10564. _ACEOF
  10565. if ac_fn_cxx_try_link "$LINENO"; then :
  10566. gt_cv_func_CFPreferencesCopyAppValue=yes
  10567. else
  10568. gt_cv_func_CFPreferencesCopyAppValue=no
  10569. fi
  10570. rm -f core conftest.err conftest.$ac_objext \
  10571. conftest$ac_exeext conftest.$ac_ext
  10572. LIBS="$gt_save_LIBS"
  10573. fi
  10574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
  10575. $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  10576. if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  10577. $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
  10578. fi
  10579. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
  10580. $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
  10581. if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
  10582. $as_echo_n "(cached) " >&6
  10583. else
  10584. gt_save_LIBS="$LIBS"
  10585. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  10586. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10587. /* end confdefs.h. */
  10588. #include <CoreFoundation/CFLocale.h>
  10589. int
  10590. main ()
  10591. {
  10592. CFLocaleCopyCurrent();
  10593. ;
  10594. return 0;
  10595. }
  10596. _ACEOF
  10597. if ac_fn_cxx_try_link "$LINENO"; then :
  10598. gt_cv_func_CFLocaleCopyCurrent=yes
  10599. else
  10600. gt_cv_func_CFLocaleCopyCurrent=no
  10601. fi
  10602. rm -f core conftest.err conftest.$ac_objext \
  10603. conftest$ac_exeext conftest.$ac_ext
  10604. LIBS="$gt_save_LIBS"
  10605. fi
  10606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  10607. $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  10608. if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  10609. $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
  10610. fi
  10611. INTL_MACOSX_LIBS=
  10612. if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  10613. INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  10614. fi
  10615. ac_fn_cxx_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
  10616. if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
  10617. else
  10618. $as_echo "#define ptrdiff_t long" >>confdefs.h
  10619. fi
  10620. for ac_header in stddef.h stdlib.h string.h
  10621. do :
  10622. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10623. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  10624. eval as_val=\$$as_ac_Header
  10625. if test "x$as_val" = x""yes; then :
  10626. cat >>confdefs.h <<_ACEOF
  10627. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10628. _ACEOF
  10629. fi
  10630. done
  10631. for ac_func in asprintf fwprintf putenv setenv setlocale snprintf wcslen
  10632. do :
  10633. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10634. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  10635. eval as_val=\$$as_ac_var
  10636. if test "x$as_val" = x""yes; then :
  10637. cat >>confdefs.h <<_ACEOF
  10638. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10639. _ACEOF
  10640. fi
  10641. done
  10642. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
  10643. $as_echo_n "checking whether _snprintf is declared... " >&6; }
  10644. if test "${ac_cv_have_decl__snprintf+set}" = set; then :
  10645. $as_echo_n "(cached) " >&6
  10646. else
  10647. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10648. /* end confdefs.h. */
  10649. #include <stdio.h>
  10650. int
  10651. main ()
  10652. {
  10653. #ifndef _snprintf
  10654. char *p = (char *) _snprintf;
  10655. #endif
  10656. ;
  10657. return 0;
  10658. }
  10659. _ACEOF
  10660. if ac_fn_cxx_try_compile "$LINENO"; then :
  10661. ac_cv_have_decl__snprintf=yes
  10662. else
  10663. ac_cv_have_decl__snprintf=no
  10664. fi
  10665. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10666. fi
  10667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
  10668. $as_echo "$ac_cv_have_decl__snprintf" >&6; }
  10669. if test $ac_cv_have_decl__snprintf = yes; then
  10670. gt_value=1
  10671. else
  10672. gt_value=0
  10673. fi
  10674. cat >>confdefs.h <<_ACEOF
  10675. #define HAVE_DECL__SNPRINTF $gt_value
  10676. _ACEOF
  10677. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
  10678. $as_echo_n "checking whether _snwprintf is declared... " >&6; }
  10679. if test "${ac_cv_have_decl__snwprintf+set}" = set; then :
  10680. $as_echo_n "(cached) " >&6
  10681. else
  10682. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10683. /* end confdefs.h. */
  10684. #include <stdio.h>
  10685. int
  10686. main ()
  10687. {
  10688. #ifndef _snwprintf
  10689. char *p = (char *) _snwprintf;
  10690. #endif
  10691. ;
  10692. return 0;
  10693. }
  10694. _ACEOF
  10695. if ac_fn_cxx_try_compile "$LINENO"; then :
  10696. ac_cv_have_decl__snwprintf=yes
  10697. else
  10698. ac_cv_have_decl__snwprintf=no
  10699. fi
  10700. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10701. fi
  10702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
  10703. $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
  10704. if test $ac_cv_have_decl__snwprintf = yes; then
  10705. gt_value=1
  10706. else
  10707. gt_value=0
  10708. fi
  10709. cat >>confdefs.h <<_ACEOF
  10710. #define HAVE_DECL__SNWPRINTF $gt_value
  10711. _ACEOF
  10712. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
  10713. $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
  10714. if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then :
  10715. $as_echo_n "(cached) " >&6
  10716. else
  10717. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10718. /* end confdefs.h. */
  10719. #include <stdio.h>
  10720. int
  10721. main ()
  10722. {
  10723. #ifndef getc_unlocked
  10724. char *p = (char *) getc_unlocked;
  10725. #endif
  10726. ;
  10727. return 0;
  10728. }
  10729. _ACEOF
  10730. if ac_fn_cxx_try_compile "$LINENO"; then :
  10731. ac_cv_have_decl_getc_unlocked=yes
  10732. else
  10733. ac_cv_have_decl_getc_unlocked=no
  10734. fi
  10735. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10736. fi
  10737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
  10738. $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
  10739. if test $ac_cv_have_decl_getc_unlocked = yes; then
  10740. gt_value=1
  10741. else
  10742. gt_value=0
  10743. fi
  10744. cat >>confdefs.h <<_ACEOF
  10745. #define HAVE_DECL_GETC_UNLOCKED $gt_value
  10746. _ACEOF
  10747. case $gt_cv_func_printf_posix in
  10748. *yes) HAVE_POSIX_PRINTF=1 ;;
  10749. *) HAVE_POSIX_PRINTF=0 ;;
  10750. esac
  10751. if test "$ac_cv_func_asprintf" = yes; then
  10752. HAVE_ASPRINTF=1
  10753. else
  10754. HAVE_ASPRINTF=0
  10755. fi
  10756. if test "$ac_cv_func_snprintf" = yes; then
  10757. HAVE_SNPRINTF=1
  10758. else
  10759. HAVE_SNPRINTF=0
  10760. fi
  10761. if test "$ac_cv_func_wprintf" = yes; then
  10762. HAVE_WPRINTF=1
  10763. else
  10764. HAVE_WPRINTF=0
  10765. fi
  10766. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
  10767. $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
  10768. if test "${am_cv_langinfo_codeset+set}" = set; then :
  10769. $as_echo_n "(cached) " >&6
  10770. else
  10771. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10772. /* end confdefs.h. */
  10773. #include <langinfo.h>
  10774. int
  10775. main ()
  10776. {
  10777. char* cs = nl_langinfo(CODESET); return !cs;
  10778. ;
  10779. return 0;
  10780. }
  10781. _ACEOF
  10782. if ac_fn_cxx_try_link "$LINENO"; then :
  10783. am_cv_langinfo_codeset=yes
  10784. else
  10785. am_cv_langinfo_codeset=no
  10786. fi
  10787. rm -f core conftest.err conftest.$ac_objext \
  10788. conftest$ac_exeext conftest.$ac_ext
  10789. fi
  10790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
  10791. $as_echo "$am_cv_langinfo_codeset" >&6; }
  10792. if test $am_cv_langinfo_codeset = yes; then
  10793. $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
  10794. fi
  10795. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
  10796. $as_echo_n "checking for LC_MESSAGES... " >&6; }
  10797. if test "${gt_cv_val_LC_MESSAGES+set}" = set; then :
  10798. $as_echo_n "(cached) " >&6
  10799. else
  10800. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10801. /* end confdefs.h. */
  10802. #include <locale.h>
  10803. int
  10804. main ()
  10805. {
  10806. return LC_MESSAGES
  10807. ;
  10808. return 0;
  10809. }
  10810. _ACEOF
  10811. if ac_fn_cxx_try_link "$LINENO"; then :
  10812. gt_cv_val_LC_MESSAGES=yes
  10813. else
  10814. gt_cv_val_LC_MESSAGES=no
  10815. fi
  10816. rm -f core conftest.err conftest.$ac_objext \
  10817. conftest$ac_exeext conftest.$ac_ext
  10818. fi
  10819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
  10820. $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
  10821. if test $gt_cv_val_LC_MESSAGES = yes; then
  10822. $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
  10823. fi
  10824. if test "$enable_shared" = yes; then
  10825. case "$host_os" in
  10826. mingw* | cygwin*) is_woe32dll=yes ;;
  10827. *) is_woe32dll=no ;;
  10828. esac
  10829. else
  10830. is_woe32dll=no
  10831. fi
  10832. WOE32DLL=$is_woe32dll
  10833. case "$host_os" in
  10834. mingw* | cygwin*) is_woe32=yes ;;
  10835. *) is_woe32=no ;;
  10836. esac
  10837. WOE32=$is_woe32
  10838. if test $WOE32 = yes; then
  10839. if test -n "$ac_tool_prefix"; then
  10840. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  10841. set dummy ${ac_tool_prefix}windres; ac_word=$2
  10842. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10843. $as_echo_n "checking for $ac_word... " >&6; }
  10844. if test "${ac_cv_prog_WINDRES+set}" = set; then :
  10845. $as_echo_n "(cached) " >&6
  10846. else
  10847. if test -n "$WINDRES"; then
  10848. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  10849. else
  10850. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10851. for as_dir in $PATH
  10852. do
  10853. IFS=$as_save_IFS
  10854. test -z "$as_dir" && as_dir=.
  10855. for ac_exec_ext in '' $ac_executable_extensions; do
  10856. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10857. ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
  10858. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10859. break 2
  10860. fi
  10861. done
  10862. done
  10863. IFS=$as_save_IFS
  10864. fi
  10865. fi
  10866. WINDRES=$ac_cv_prog_WINDRES
  10867. if test -n "$WINDRES"; then
  10868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
  10869. $as_echo "$WINDRES" >&6; }
  10870. else
  10871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10872. $as_echo "no" >&6; }
  10873. fi
  10874. fi
  10875. if test -z "$ac_cv_prog_WINDRES"; then
  10876. ac_ct_WINDRES=$WINDRES
  10877. # Extract the first word of "windres", so it can be a program name with args.
  10878. set dummy windres; ac_word=$2
  10879. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10880. $as_echo_n "checking for $ac_word... " >&6; }
  10881. if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
  10882. $as_echo_n "(cached) " >&6
  10883. else
  10884. if test -n "$ac_ct_WINDRES"; then
  10885. ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
  10886. else
  10887. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10888. for as_dir in $PATH
  10889. do
  10890. IFS=$as_save_IFS
  10891. test -z "$as_dir" && as_dir=.
  10892. for ac_exec_ext in '' $ac_executable_extensions; do
  10893. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10894. ac_cv_prog_ac_ct_WINDRES="windres"
  10895. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10896. break 2
  10897. fi
  10898. done
  10899. done
  10900. IFS=$as_save_IFS
  10901. fi
  10902. fi
  10903. ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
  10904. if test -n "$ac_ct_WINDRES"; then
  10905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
  10906. $as_echo "$ac_ct_WINDRES" >&6; }
  10907. else
  10908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10909. $as_echo "no" >&6; }
  10910. fi
  10911. if test "x$ac_ct_WINDRES" = x; then
  10912. WINDRES=""
  10913. else
  10914. case $cross_compiling:$ac_tool_warned in
  10915. yes:)
  10916. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10917. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10918. ac_tool_warned=yes ;;
  10919. esac
  10920. WINDRES=$ac_ct_WINDRES
  10921. fi
  10922. else
  10923. WINDRES="$ac_cv_prog_WINDRES"
  10924. fi
  10925. fi
  10926. case "$host_os" in
  10927. hpux*) LTLIBC="" ;;
  10928. *) LTLIBC="-lc" ;;
  10929. esac
  10930. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
  10931. $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
  10932. if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
  10933. $as_echo_n "(cached) " >&6
  10934. else
  10935. gt_save_LIBS="$LIBS"
  10936. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  10937. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10938. /* end confdefs.h. */
  10939. #include <CoreFoundation/CFPreferences.h>
  10940. int
  10941. main ()
  10942. {
  10943. CFPreferencesCopyAppValue(NULL, NULL)
  10944. ;
  10945. return 0;
  10946. }
  10947. _ACEOF
  10948. if ac_fn_cxx_try_link "$LINENO"; then :
  10949. gt_cv_func_CFPreferencesCopyAppValue=yes
  10950. else
  10951. gt_cv_func_CFPreferencesCopyAppValue=no
  10952. fi
  10953. rm -f core conftest.err conftest.$ac_objext \
  10954. conftest$ac_exeext conftest.$ac_ext
  10955. LIBS="$gt_save_LIBS"
  10956. fi
  10957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
  10958. $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  10959. if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  10960. $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
  10961. fi
  10962. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
  10963. $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
  10964. if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
  10965. $as_echo_n "(cached) " >&6
  10966. else
  10967. gt_save_LIBS="$LIBS"
  10968. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  10969. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10970. /* end confdefs.h. */
  10971. #include <CoreFoundation/CFLocale.h>
  10972. int
  10973. main ()
  10974. {
  10975. CFLocaleCopyCurrent();
  10976. ;
  10977. return 0;
  10978. }
  10979. _ACEOF
  10980. if ac_fn_cxx_try_link "$LINENO"; then :
  10981. gt_cv_func_CFLocaleCopyCurrent=yes
  10982. else
  10983. gt_cv_func_CFLocaleCopyCurrent=no
  10984. fi
  10985. rm -f core conftest.err conftest.$ac_objext \
  10986. conftest$ac_exeext conftest.$ac_ext
  10987. LIBS="$gt_save_LIBS"
  10988. fi
  10989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  10990. $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  10991. if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  10992. $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
  10993. fi
  10994. INTL_MACOSX_LIBS=
  10995. if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  10996. INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  10997. fi
  10998. BUILD_INCLUDED_LIBINTL=no
  10999. USE_INCLUDED_LIBINTL=no
  11000. LIBINTL=
  11001. LTLIBINTL=
  11002. POSUB=
  11003. case " $gt_needs " in
  11004. *" need-formatstring-macros "*) gt_api_version=3 ;;
  11005. *" need-ngettext "*) gt_api_version=2 ;;
  11006. *) gt_api_version=1 ;;
  11007. esac
  11008. gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
  11009. gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
  11010. if test "$USE_NLS" = "yes"; then
  11011. gt_use_preinstalled_gnugettext=no
  11012. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
  11013. $as_echo_n "checking whether included gettext is requested... " >&6; }
  11014. # Check whether --with-included-gettext was given.
  11015. if test "${with_included_gettext+set}" = set; then :
  11016. withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
  11017. else
  11018. nls_cv_force_use_gnu_gettext=no
  11019. fi
  11020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
  11021. $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
  11022. nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
  11023. if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
  11024. if test $gt_api_version -ge 3; then
  11025. gt_revision_test_code='
  11026. #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
  11027. #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
  11028. #endif
  11029. typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
  11030. '
  11031. else
  11032. gt_revision_test_code=
  11033. fi
  11034. if test $gt_api_version -ge 2; then
  11035. gt_expression_test_code=' + * ngettext ("", "", 0)'
  11036. else
  11037. gt_expression_test_code=
  11038. fi
  11039. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
  11040. $as_echo_n "checking for GNU gettext in libc... " >&6; }
  11041. if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then :
  11042. $as_echo_n "(cached) " >&6
  11043. else
  11044. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11045. /* end confdefs.h. */
  11046. #include <libintl.h>
  11047. $gt_revision_test_code
  11048. extern int _nl_msg_cat_cntr;
  11049. extern int *_nl_domain_bindings;
  11050. int
  11051. main ()
  11052. {
  11053. bindtextdomain ("", "");
  11054. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
  11055. ;
  11056. return 0;
  11057. }
  11058. _ACEOF
  11059. if ac_fn_cxx_try_link "$LINENO"; then :
  11060. eval "$gt_func_gnugettext_libc=yes"
  11061. else
  11062. eval "$gt_func_gnugettext_libc=no"
  11063. fi
  11064. rm -f core conftest.err conftest.$ac_objext \
  11065. conftest$ac_exeext conftest.$ac_ext
  11066. fi
  11067. eval ac_res=\$$gt_func_gnugettext_libc
  11068. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  11069. $as_echo "$ac_res" >&6; }
  11070. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
  11071. use_additional=yes
  11072. acl_save_prefix="$prefix"
  11073. prefix="$acl_final_prefix"
  11074. acl_save_exec_prefix="$exec_prefix"
  11075. exec_prefix="$acl_final_exec_prefix"
  11076. eval additional_includedir=\"$includedir\"
  11077. eval additional_libdir=\"$libdir\"
  11078. exec_prefix="$acl_save_exec_prefix"
  11079. prefix="$acl_save_prefix"
  11080. # Check whether --with-libintl-prefix was given.
  11081. if test "${with_libintl_prefix+set}" = set; then :
  11082. withval=$with_libintl_prefix;
  11083. if test "X$withval" = "Xno"; then
  11084. use_additional=no
  11085. else
  11086. if test "X$withval" = "X"; then
  11087. acl_save_prefix="$prefix"
  11088. prefix="$acl_final_prefix"
  11089. acl_save_exec_prefix="$exec_prefix"
  11090. exec_prefix="$acl_final_exec_prefix"
  11091. eval additional_includedir=\"$includedir\"
  11092. eval additional_libdir=\"$libdir\"
  11093. exec_prefix="$acl_save_exec_prefix"
  11094. prefix="$acl_save_prefix"
  11095. else
  11096. additional_includedir="$withval/include"
  11097. additional_libdir="$withval/$acl_libdirstem"
  11098. fi
  11099. fi
  11100. fi
  11101. LIBINTL=
  11102. LTLIBINTL=
  11103. INCINTL=
  11104. LIBINTL_PREFIX=
  11105. rpathdirs=
  11106. ltrpathdirs=
  11107. names_already_handled=
  11108. names_next_round='intl '
  11109. while test -n "$names_next_round"; do
  11110. names_this_round="$names_next_round"
  11111. names_next_round=
  11112. for name in $names_this_round; do
  11113. already_handled=
  11114. for n in $names_already_handled; do
  11115. if test "$n" = "$name"; then
  11116. already_handled=yes
  11117. break
  11118. fi
  11119. done
  11120. if test -z "$already_handled"; then
  11121. names_already_handled="$names_already_handled $name"
  11122. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  11123. eval value=\"\$HAVE_LIB$uppername\"
  11124. if test -n "$value"; then
  11125. if test "$value" = yes; then
  11126. eval value=\"\$LIB$uppername\"
  11127. test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
  11128. eval value=\"\$LTLIB$uppername\"
  11129. test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
  11130. else
  11131. :
  11132. fi
  11133. else
  11134. found_dir=
  11135. found_la=
  11136. found_so=
  11137. found_a=
  11138. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  11139. if test -n "$acl_shlibext"; then
  11140. shrext=".$acl_shlibext" # typically: shrext=.so
  11141. else
  11142. shrext=
  11143. fi
  11144. if test $use_additional = yes; then
  11145. dir="$additional_libdir"
  11146. if test -n "$acl_shlibext"; then
  11147. if test -f "$dir/$libname$shrext"; then
  11148. found_dir="$dir"
  11149. found_so="$dir/$libname$shrext"
  11150. else
  11151. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  11152. ver=`(cd "$dir" && \
  11153. for f in "$libname$shrext".*; do echo "$f"; done \
  11154. | sed -e "s,^$libname$shrext\\\\.,," \
  11155. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  11156. | sed 1q ) 2>/dev/null`
  11157. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  11158. found_dir="$dir"
  11159. found_so="$dir/$libname$shrext.$ver"
  11160. fi
  11161. else
  11162. eval library_names=\"$acl_library_names_spec\"
  11163. for f in $library_names; do
  11164. if test -f "$dir/$f"; then
  11165. found_dir="$dir"
  11166. found_so="$dir/$f"
  11167. break
  11168. fi
  11169. done
  11170. fi
  11171. fi
  11172. fi
  11173. if test "X$found_dir" = "X"; then
  11174. if test -f "$dir/$libname.$acl_libext"; then
  11175. found_dir="$dir"
  11176. found_a="$dir/$libname.$acl_libext"
  11177. fi
  11178. fi
  11179. if test "X$found_dir" != "X"; then
  11180. if test -f "$dir/$libname.la"; then
  11181. found_la="$dir/$libname.la"
  11182. fi
  11183. fi
  11184. fi
  11185. if test "X$found_dir" = "X"; then
  11186. for x in $LDFLAGS $LTLIBINTL; do
  11187. acl_save_prefix="$prefix"
  11188. prefix="$acl_final_prefix"
  11189. acl_save_exec_prefix="$exec_prefix"
  11190. exec_prefix="$acl_final_exec_prefix"
  11191. eval x=\"$x\"
  11192. exec_prefix="$acl_save_exec_prefix"
  11193. prefix="$acl_save_prefix"
  11194. case "$x" in
  11195. -L*)
  11196. dir=`echo "X$x" | sed -e 's/^X-L//'`
  11197. if test -n "$acl_shlibext"; then
  11198. if test -f "$dir/$libname$shrext"; then
  11199. found_dir="$dir"
  11200. found_so="$dir/$libname$shrext"
  11201. else
  11202. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  11203. ver=`(cd "$dir" && \
  11204. for f in "$libname$shrext".*; do echo "$f"; done \
  11205. | sed -e "s,^$libname$shrext\\\\.,," \
  11206. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  11207. | sed 1q ) 2>/dev/null`
  11208. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  11209. found_dir="$dir"
  11210. found_so="$dir/$libname$shrext.$ver"
  11211. fi
  11212. else
  11213. eval library_names=\"$acl_library_names_spec\"
  11214. for f in $library_names; do
  11215. if test -f "$dir/$f"; then
  11216. found_dir="$dir"
  11217. found_so="$dir/$f"
  11218. break
  11219. fi
  11220. done
  11221. fi
  11222. fi
  11223. fi
  11224. if test "X$found_dir" = "X"; then
  11225. if test -f "$dir/$libname.$acl_libext"; then
  11226. found_dir="$dir"
  11227. found_a="$dir/$libname.$acl_libext"
  11228. fi
  11229. fi
  11230. if test "X$found_dir" != "X"; then
  11231. if test -f "$dir/$libname.la"; then
  11232. found_la="$dir/$libname.la"
  11233. fi
  11234. fi
  11235. ;;
  11236. esac
  11237. if test "X$found_dir" != "X"; then
  11238. break
  11239. fi
  11240. done
  11241. fi
  11242. if test "X$found_dir" != "X"; then
  11243. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
  11244. if test "X$found_so" != "X"; then
  11245. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  11246. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  11247. else
  11248. haveit=
  11249. for x in $ltrpathdirs; do
  11250. if test "X$x" = "X$found_dir"; then
  11251. haveit=yes
  11252. break
  11253. fi
  11254. done
  11255. if test -z "$haveit"; then
  11256. ltrpathdirs="$ltrpathdirs $found_dir"
  11257. fi
  11258. if test "$acl_hardcode_direct" = yes; then
  11259. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  11260. else
  11261. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  11262. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  11263. haveit=
  11264. for x in $rpathdirs; do
  11265. if test "X$x" = "X$found_dir"; then
  11266. haveit=yes
  11267. break
  11268. fi
  11269. done
  11270. if test -z "$haveit"; then
  11271. rpathdirs="$rpathdirs $found_dir"
  11272. fi
  11273. else
  11274. haveit=
  11275. for x in $LDFLAGS $LIBINTL; do
  11276. acl_save_prefix="$prefix"
  11277. prefix="$acl_final_prefix"
  11278. acl_save_exec_prefix="$exec_prefix"
  11279. exec_prefix="$acl_final_exec_prefix"
  11280. eval x=\"$x\"
  11281. exec_prefix="$acl_save_exec_prefix"
  11282. prefix="$acl_save_prefix"
  11283. if test "X$x" = "X-L$found_dir"; then
  11284. haveit=yes
  11285. break
  11286. fi
  11287. done
  11288. if test -z "$haveit"; then
  11289. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
  11290. fi
  11291. if test "$acl_hardcode_minus_L" != no; then
  11292. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  11293. else
  11294. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  11295. fi
  11296. fi
  11297. fi
  11298. fi
  11299. else
  11300. if test "X$found_a" != "X"; then
  11301. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
  11302. else
  11303. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
  11304. fi
  11305. fi
  11306. additional_includedir=
  11307. case "$found_dir" in
  11308. */$acl_libdirstem | */$acl_libdirstem/)
  11309. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  11310. LIBINTL_PREFIX="$basedir"
  11311. additional_includedir="$basedir/include"
  11312. ;;
  11313. esac
  11314. if test "X$additional_includedir" != "X"; then
  11315. if test "X$additional_includedir" != "X/usr/include"; then
  11316. haveit=
  11317. if test "X$additional_includedir" = "X/usr/local/include"; then
  11318. if test -n "$GCC"; then
  11319. case $host_os in
  11320. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  11321. esac
  11322. fi
  11323. fi
  11324. if test -z "$haveit"; then
  11325. for x in $CPPFLAGS $INCINTL; do
  11326. acl_save_prefix="$prefix"
  11327. prefix="$acl_final_prefix"
  11328. acl_save_exec_prefix="$exec_prefix"
  11329. exec_prefix="$acl_final_exec_prefix"
  11330. eval x=\"$x\"
  11331. exec_prefix="$acl_save_exec_prefix"
  11332. prefix="$acl_save_prefix"
  11333. if test "X$x" = "X-I$additional_includedir"; then
  11334. haveit=yes
  11335. break
  11336. fi
  11337. done
  11338. if test -z "$haveit"; then
  11339. if test -d "$additional_includedir"; then
  11340. INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
  11341. fi
  11342. fi
  11343. fi
  11344. fi
  11345. fi
  11346. if test -n "$found_la"; then
  11347. save_libdir="$libdir"
  11348. case "$found_la" in
  11349. */* | *\\*) . "$found_la" ;;
  11350. *) . "./$found_la" ;;
  11351. esac
  11352. libdir="$save_libdir"
  11353. for dep in $dependency_libs; do
  11354. case "$dep" in
  11355. -L*)
  11356. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  11357. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  11358. haveit=
  11359. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  11360. if test -n "$GCC"; then
  11361. case $host_os in
  11362. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  11363. esac
  11364. fi
  11365. fi
  11366. if test -z "$haveit"; then
  11367. haveit=
  11368. for x in $LDFLAGS $LIBINTL; do
  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 x=\"$x\"
  11374. exec_prefix="$acl_save_exec_prefix"
  11375. prefix="$acl_save_prefix"
  11376. if test "X$x" = "X-L$additional_libdir"; then
  11377. haveit=yes
  11378. break
  11379. fi
  11380. done
  11381. if test -z "$haveit"; then
  11382. if test -d "$additional_libdir"; then
  11383. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
  11384. fi
  11385. fi
  11386. haveit=
  11387. for x in $LDFLAGS $LTLIBINTL; do
  11388. acl_save_prefix="$prefix"
  11389. prefix="$acl_final_prefix"
  11390. acl_save_exec_prefix="$exec_prefix"
  11391. exec_prefix="$acl_final_exec_prefix"
  11392. eval x=\"$x\"
  11393. exec_prefix="$acl_save_exec_prefix"
  11394. prefix="$acl_save_prefix"
  11395. if test "X$x" = "X-L$additional_libdir"; then
  11396. haveit=yes
  11397. break
  11398. fi
  11399. done
  11400. if test -z "$haveit"; then
  11401. if test -d "$additional_libdir"; then
  11402. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
  11403. fi
  11404. fi
  11405. fi
  11406. fi
  11407. ;;
  11408. -R*)
  11409. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  11410. if test "$enable_rpath" != no; then
  11411. haveit=
  11412. for x in $rpathdirs; do
  11413. if test "X$x" = "X$dir"; then
  11414. haveit=yes
  11415. break
  11416. fi
  11417. done
  11418. if test -z "$haveit"; then
  11419. rpathdirs="$rpathdirs $dir"
  11420. fi
  11421. haveit=
  11422. for x in $ltrpathdirs; do
  11423. if test "X$x" = "X$dir"; then
  11424. haveit=yes
  11425. break
  11426. fi
  11427. done
  11428. if test -z "$haveit"; then
  11429. ltrpathdirs="$ltrpathdirs $dir"
  11430. fi
  11431. fi
  11432. ;;
  11433. -l*)
  11434. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  11435. ;;
  11436. *.la)
  11437. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  11438. ;;
  11439. *)
  11440. LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
  11441. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
  11442. ;;
  11443. esac
  11444. done
  11445. fi
  11446. else
  11447. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  11448. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
  11449. fi
  11450. fi
  11451. fi
  11452. done
  11453. done
  11454. if test "X$rpathdirs" != "X"; then
  11455. if test -n "$acl_hardcode_libdir_separator"; then
  11456. alldirs=
  11457. for found_dir in $rpathdirs; do
  11458. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  11459. done
  11460. acl_save_libdir="$libdir"
  11461. libdir="$alldirs"
  11462. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  11463. libdir="$acl_save_libdir"
  11464. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  11465. else
  11466. for found_dir in $rpathdirs; do
  11467. acl_save_libdir="$libdir"
  11468. libdir="$found_dir"
  11469. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  11470. libdir="$acl_save_libdir"
  11471. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  11472. done
  11473. fi
  11474. fi
  11475. if test "X$ltrpathdirs" != "X"; then
  11476. for found_dir in $ltrpathdirs; do
  11477. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
  11478. done
  11479. fi
  11480. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
  11481. $as_echo_n "checking for GNU gettext in libintl... " >&6; }
  11482. if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then :
  11483. $as_echo_n "(cached) " >&6
  11484. else
  11485. gt_save_CPPFLAGS="$CPPFLAGS"
  11486. CPPFLAGS="$CPPFLAGS $INCINTL"
  11487. gt_save_LIBS="$LIBS"
  11488. LIBS="$LIBS $LIBINTL"
  11489. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11490. /* end confdefs.h. */
  11491. #include <libintl.h>
  11492. $gt_revision_test_code
  11493. extern int _nl_msg_cat_cntr;
  11494. extern
  11495. #ifdef __cplusplus
  11496. "C"
  11497. #endif
  11498. const char *_nl_expand_alias (const char *);
  11499. int
  11500. main ()
  11501. {
  11502. bindtextdomain ("", "");
  11503. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  11504. ;
  11505. return 0;
  11506. }
  11507. _ACEOF
  11508. if ac_fn_cxx_try_link "$LINENO"; then :
  11509. eval "$gt_func_gnugettext_libintl=yes"
  11510. else
  11511. eval "$gt_func_gnugettext_libintl=no"
  11512. fi
  11513. rm -f core conftest.err conftest.$ac_objext \
  11514. conftest$ac_exeext conftest.$ac_ext
  11515. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
  11516. LIBS="$LIBS $LIBICONV"
  11517. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11518. /* end confdefs.h. */
  11519. #include <libintl.h>
  11520. $gt_revision_test_code
  11521. extern int _nl_msg_cat_cntr;
  11522. extern
  11523. #ifdef __cplusplus
  11524. "C"
  11525. #endif
  11526. const char *_nl_expand_alias (const char *);
  11527. int
  11528. main ()
  11529. {
  11530. bindtextdomain ("", "");
  11531. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  11532. ;
  11533. return 0;
  11534. }
  11535. _ACEOF
  11536. if ac_fn_cxx_try_link "$LINENO"; then :
  11537. LIBINTL="$LIBINTL $LIBICONV"
  11538. LTLIBINTL="$LTLIBINTL $LTLIBICONV"
  11539. eval "$gt_func_gnugettext_libintl=yes"
  11540. fi
  11541. rm -f core conftest.err conftest.$ac_objext \
  11542. conftest$ac_exeext conftest.$ac_ext
  11543. fi
  11544. CPPFLAGS="$gt_save_CPPFLAGS"
  11545. LIBS="$gt_save_LIBS"
  11546. fi
  11547. eval ac_res=\$$gt_func_gnugettext_libintl
  11548. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  11549. $as_echo "$ac_res" >&6; }
  11550. fi
  11551. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
  11552. || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
  11553. && test "$PACKAGE" != gettext-runtime \
  11554. && test "$PACKAGE" != gettext-tools; }; then
  11555. gt_use_preinstalled_gnugettext=yes
  11556. else
  11557. LIBINTL=
  11558. LTLIBINTL=
  11559. INCINTL=
  11560. fi
  11561. if test "$gt_use_preinstalled_gnugettext" != "yes"; then
  11562. nls_cv_use_gnu_gettext=yes
  11563. fi
  11564. fi
  11565. if test "$nls_cv_use_gnu_gettext" = "yes"; then
  11566. BUILD_INCLUDED_LIBINTL=yes
  11567. USE_INCLUDED_LIBINTL=yes
  11568. LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
  11569. LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
  11570. LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
  11571. fi
  11572. CATOBJEXT=
  11573. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  11574. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  11575. CATOBJEXT=.gmo
  11576. fi
  11577. if test -n "$INTL_MACOSX_LIBS"; then
  11578. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  11579. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  11580. LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
  11581. LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
  11582. fi
  11583. fi
  11584. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  11585. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  11586. $as_echo "#define ENABLE_NLS 1" >>confdefs.h
  11587. else
  11588. USE_NLS=no
  11589. fi
  11590. fi
  11591. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
  11592. $as_echo_n "checking whether to use NLS... " >&6; }
  11593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
  11594. $as_echo "$USE_NLS" >&6; }
  11595. if test "$USE_NLS" = "yes"; then
  11596. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
  11597. $as_echo_n "checking where the gettext function comes from... " >&6; }
  11598. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  11599. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  11600. gt_source="external libintl"
  11601. else
  11602. gt_source="libc"
  11603. fi
  11604. else
  11605. gt_source="included intl directory"
  11606. fi
  11607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
  11608. $as_echo "$gt_source" >&6; }
  11609. fi
  11610. if test "$USE_NLS" = "yes"; then
  11611. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  11612. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  11613. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
  11614. $as_echo_n "checking how to link with libintl... " >&6; }
  11615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
  11616. $as_echo "$LIBINTL" >&6; }
  11617. for element in $INCINTL; do
  11618. haveit=
  11619. for x in $CPPFLAGS; do
  11620. acl_save_prefix="$prefix"
  11621. prefix="$acl_final_prefix"
  11622. acl_save_exec_prefix="$exec_prefix"
  11623. exec_prefix="$acl_final_exec_prefix"
  11624. eval x=\"$x\"
  11625. exec_prefix="$acl_save_exec_prefix"
  11626. prefix="$acl_save_prefix"
  11627. if test "X$x" = "X$element"; then
  11628. haveit=yes
  11629. break
  11630. fi
  11631. done
  11632. if test -z "$haveit"; then
  11633. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  11634. fi
  11635. done
  11636. fi
  11637. $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
  11638. $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
  11639. fi
  11640. POSUB=po
  11641. fi
  11642. if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
  11643. BUILD_INCLUDED_LIBINTL=yes
  11644. fi
  11645. nls_cv_header_intl=
  11646. nls_cv_header_libgt=
  11647. DATADIRNAME=share
  11648. INSTOBJEXT=.mo
  11649. GENCAT=gencat
  11650. INTLOBJS=
  11651. if test "$USE_INCLUDED_LIBINTL" = yes; then
  11652. INTLOBJS="\$(GETTOBJS)"
  11653. fi
  11654. INTL_LIBTOOL_SUFFIX_PREFIX=
  11655. INTLLIBS="$LIBINTL"
  11656. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
  11657. $as_echo_n "checking for error_at_line... " >&6; }
  11658. if test "${ac_cv_lib_error_at_line+set}" = set; then :
  11659. $as_echo_n "(cached) " >&6
  11660. else
  11661. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11662. /* end confdefs.h. */
  11663. #include <error.h>
  11664. int
  11665. main ()
  11666. {
  11667. error_at_line (0, 0, "", 0, "an error occurred");
  11668. ;
  11669. return 0;
  11670. }
  11671. _ACEOF
  11672. if ac_fn_cxx_try_link "$LINENO"; then :
  11673. ac_cv_lib_error_at_line=yes
  11674. else
  11675. ac_cv_lib_error_at_line=no
  11676. fi
  11677. rm -f core conftest.err conftest.$ac_objext \
  11678. conftest$ac_exeext conftest.$ac_ext
  11679. fi
  11680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
  11681. $as_echo "$ac_cv_lib_error_at_line" >&6; }
  11682. if test $ac_cv_lib_error_at_line = no; then
  11683. case " $LIBOBJS " in
  11684. *" error.$ac_objext "* ) ;;
  11685. *) LIBOBJS="$LIBOBJS error.$ac_objext"
  11686. ;;
  11687. esac
  11688. fi
  11689. if test $ac_cv_c_compiler_gnu = yes; then
  11690. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
  11691. $as_echo_n "checking whether $CC needs -traditional... " >&6; }
  11692. if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
  11693. $as_echo_n "(cached) " >&6
  11694. else
  11695. ac_pattern="Autoconf.*'x'"
  11696. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11697. /* end confdefs.h. */
  11698. #include <sgtty.h>
  11699. Autoconf TIOCGETP
  11700. _ACEOF
  11701. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  11702. $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  11703. ac_cv_prog_gcc_traditional=yes
  11704. else
  11705. ac_cv_prog_gcc_traditional=no
  11706. fi
  11707. rm -f conftest*
  11708. if test $ac_cv_prog_gcc_traditional = no; then
  11709. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11710. /* end confdefs.h. */
  11711. #include <termio.h>
  11712. Autoconf TCGETA
  11713. _ACEOF
  11714. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  11715. $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  11716. ac_cv_prog_gcc_traditional=yes
  11717. fi
  11718. rm -f conftest*
  11719. fi
  11720. fi
  11721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
  11722. $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
  11723. if test $ac_cv_prog_gcc_traditional = yes; then
  11724. CC="$CC -traditional"
  11725. fi
  11726. fi
  11727. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  11728. $as_echo_n "checking for working memcmp... " >&6; }
  11729. if test "${ac_cv_func_memcmp_working+set}" = set; then :
  11730. $as_echo_n "(cached) " >&6
  11731. else
  11732. if test "$cross_compiling" = yes; then :
  11733. ac_cv_func_memcmp_working=no
  11734. else
  11735. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11736. /* end confdefs.h. */
  11737. $ac_includes_default
  11738. int
  11739. main ()
  11740. {
  11741. /* Some versions of memcmp are not 8-bit clean. */
  11742. char c0 = '\100', c1 = '\200', c2 = '\201';
  11743. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  11744. return 1;
  11745. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  11746. or more and with at least one buffer not starting on a 4-byte boundary.
  11747. William Lewis provided this test program. */
  11748. {
  11749. char foo[21];
  11750. char bar[21];
  11751. int i;
  11752. for (i = 0; i < 4; i++)
  11753. {
  11754. char *a = foo + i;
  11755. char *b = bar + i;
  11756. strcpy (a, "--------01111111");
  11757. strcpy (b, "--------10000000");
  11758. if (memcmp (a, b, 16) >= 0)
  11759. return 1;
  11760. }
  11761. return 0;
  11762. }
  11763. ;
  11764. return 0;
  11765. }
  11766. _ACEOF
  11767. if ac_fn_cxx_try_run "$LINENO"; then :
  11768. ac_cv_func_memcmp_working=yes
  11769. else
  11770. ac_cv_func_memcmp_working=no
  11771. fi
  11772. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11773. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11774. fi
  11775. fi
  11776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  11777. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  11778. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  11779. *" memcmp.$ac_objext "* ) ;;
  11780. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  11781. ;;
  11782. esac
  11783. for ac_header in $ac_header_list
  11784. do :
  11785. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  11786. ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  11787. "
  11788. eval as_val=\$$as_ac_Header
  11789. if test "x$as_val" = x""yes; then :
  11790. cat >>confdefs.h <<_ACEOF
  11791. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  11792. _ACEOF
  11793. fi
  11794. done
  11795. for ac_func in $ac_func_list
  11796. do :
  11797. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11798. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  11799. eval as_val=\$$as_ac_var
  11800. if test "x$as_val" = x""yes; then :
  11801. cat >>confdefs.h <<_ACEOF
  11802. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11803. _ACEOF
  11804. fi
  11805. done
  11806. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
  11807. $as_echo_n "checking for working mktime... " >&6; }
  11808. if test "${ac_cv_func_working_mktime+set}" = set; then :
  11809. $as_echo_n "(cached) " >&6
  11810. else
  11811. if test "$cross_compiling" = yes; then :
  11812. ac_cv_func_working_mktime=no
  11813. else
  11814. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11815. /* end confdefs.h. */
  11816. /* Test program from Paul Eggert and Tony Leneis. */
  11817. #ifdef TIME_WITH_SYS_TIME
  11818. # include <sys/time.h>
  11819. # include <time.h>
  11820. #else
  11821. # ifdef HAVE_SYS_TIME_H
  11822. # include <sys/time.h>
  11823. # else
  11824. # include <time.h>
  11825. # endif
  11826. #endif
  11827. #include <limits.h>
  11828. #include <stdlib.h>
  11829. #ifdef HAVE_UNISTD_H
  11830. # include <unistd.h>
  11831. #endif
  11832. #ifndef HAVE_ALARM
  11833. # define alarm(X) /* empty */
  11834. #endif
  11835. /* Work around redefinition to rpl_putenv by other config tests. */
  11836. #undef putenv
  11837. static time_t time_t_max;
  11838. static time_t time_t_min;
  11839. /* Values we'll use to set the TZ environment variable. */
  11840. static char *tz_strings[] = {
  11841. (char *) 0, "TZ=GMT0", "TZ=JST-9",
  11842. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  11843. };
  11844. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  11845. /* Return 0 if mktime fails to convert a date in the spring-forward gap.
  11846. Based on a problem report from Andreas Jaeger. */
  11847. static int
  11848. spring_forward_gap ()
  11849. {
  11850. /* glibc (up to about 1998-10-07) failed this test. */
  11851. struct tm tm;
  11852. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  11853. instead of "TZ=America/Vancouver" in order to detect the bug even
  11854. on systems that don't support the Olson extension, or don't have the
  11855. full zoneinfo tables installed. */
  11856. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  11857. tm.tm_year = 98;
  11858. tm.tm_mon = 3;
  11859. tm.tm_mday = 5;
  11860. tm.tm_hour = 2;
  11861. tm.tm_min = 0;
  11862. tm.tm_sec = 0;
  11863. tm.tm_isdst = -1;
  11864. return mktime (&tm) != (time_t) -1;
  11865. }
  11866. static int
  11867. mktime_test1 (now)
  11868. time_t now;
  11869. {
  11870. struct tm *lt;
  11871. return ! (lt = localtime (&now)) || mktime (lt) == now;
  11872. }
  11873. static int
  11874. mktime_test (now)
  11875. time_t now;
  11876. {
  11877. return (mktime_test1 (now)
  11878. && mktime_test1 ((time_t) (time_t_max - now))
  11879. && mktime_test1 ((time_t) (time_t_min + now)));
  11880. }
  11881. static int
  11882. irix_6_4_bug ()
  11883. {
  11884. /* Based on code from Ariel Faigon. */
  11885. struct tm tm;
  11886. tm.tm_year = 96;
  11887. tm.tm_mon = 3;
  11888. tm.tm_mday = 0;
  11889. tm.tm_hour = 0;
  11890. tm.tm_min = 0;
  11891. tm.tm_sec = 0;
  11892. tm.tm_isdst = -1;
  11893. mktime (&tm);
  11894. return tm.tm_mon == 2 && tm.tm_mday == 31;
  11895. }
  11896. static int
  11897. bigtime_test (j)
  11898. int j;
  11899. {
  11900. struct tm tm;
  11901. time_t now;
  11902. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  11903. now = mktime (&tm);
  11904. if (now != (time_t) -1)
  11905. {
  11906. struct tm *lt = localtime (&now);
  11907. if (! (lt
  11908. && lt->tm_year == tm.tm_year
  11909. && lt->tm_mon == tm.tm_mon
  11910. && lt->tm_mday == tm.tm_mday
  11911. && lt->tm_hour == tm.tm_hour
  11912. && lt->tm_min == tm.tm_min
  11913. && lt->tm_sec == tm.tm_sec
  11914. && lt->tm_yday == tm.tm_yday
  11915. && lt->tm_wday == tm.tm_wday
  11916. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  11917. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  11918. return 0;
  11919. }
  11920. return 1;
  11921. }
  11922. static int
  11923. year_2050_test ()
  11924. {
  11925. /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
  11926. ignoring leap seconds. */
  11927. unsigned long int answer = 2527315200UL;
  11928. struct tm tm;
  11929. time_t t;
  11930. tm.tm_year = 2050 - 1900;
  11931. tm.tm_mon = 2 - 1;
  11932. tm.tm_mday = 1;
  11933. tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
  11934. tm.tm_isdst = -1;
  11935. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  11936. instead of "TZ=America/Vancouver" in order to detect the bug even
  11937. on systems that don't support the Olson extension, or don't have the
  11938. full zoneinfo tables installed. */
  11939. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  11940. t = mktime (&tm);
  11941. /* Check that the result is either a failure, or close enough
  11942. to the correct answer that we can assume the discrepancy is
  11943. due to leap seconds. */
  11944. return (t == (time_t) -1
  11945. || (0 < t && answer - 120 <= t && t <= answer + 120));
  11946. }
  11947. int
  11948. main ()
  11949. {
  11950. time_t t, delta;
  11951. int i, j;
  11952. /* This test makes some buggy mktime implementations loop.
  11953. Give up after 60 seconds; a mktime slower than that
  11954. isn't worth using anyway. */
  11955. alarm (60);
  11956. for (;;)
  11957. {
  11958. t = (time_t_max << 1) + 1;
  11959. if (t <= time_t_max)
  11960. break;
  11961. time_t_max = t;
  11962. }
  11963. time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
  11964. delta = time_t_max / 997; /* a suitable prime number */
  11965. for (i = 0; i < N_STRINGS; i++)
  11966. {
  11967. if (tz_strings[i])
  11968. putenv (tz_strings[i]);
  11969. for (t = 0; t <= time_t_max - delta; t += delta)
  11970. if (! mktime_test (t))
  11971. return 1;
  11972. if (! (mktime_test ((time_t) 1)
  11973. && mktime_test ((time_t) (60 * 60))
  11974. && mktime_test ((time_t) (60 * 60 * 24))))
  11975. return 1;
  11976. for (j = 1; ; j <<= 1)
  11977. if (! bigtime_test (j))
  11978. return 1;
  11979. else if (INT_MAX / 2 < j)
  11980. break;
  11981. if (! bigtime_test (INT_MAX))
  11982. return 1;
  11983. }
  11984. return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
  11985. }
  11986. _ACEOF
  11987. if ac_fn_cxx_try_run "$LINENO"; then :
  11988. ac_cv_func_working_mktime=yes
  11989. else
  11990. ac_cv_func_working_mktime=no
  11991. fi
  11992. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11993. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11994. fi
  11995. fi
  11996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
  11997. $as_echo "$ac_cv_func_working_mktime" >&6; }
  11998. if test $ac_cv_func_working_mktime = no; then
  11999. case " $LIBOBJS " in
  12000. *" mktime.$ac_objext "* ) ;;
  12001. *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
  12002. ;;
  12003. esac
  12004. fi
  12005. for ac_header in stdlib.h unistd.h
  12006. do :
  12007. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  12008. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  12009. eval as_val=\$$as_ac_Header
  12010. if test "x$as_val" = x""yes; then :
  12011. cat >>confdefs.h <<_ACEOF
  12012. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  12013. _ACEOF
  12014. fi
  12015. done
  12016. for ac_func in getpagesize
  12017. do :
  12018. ac_fn_cxx_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  12019. if test "x$ac_cv_func_getpagesize" = x""yes; then :
  12020. cat >>confdefs.h <<_ACEOF
  12021. #define HAVE_GETPAGESIZE 1
  12022. _ACEOF
  12023. fi
  12024. done
  12025. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  12026. $as_echo_n "checking for working mmap... " >&6; }
  12027. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
  12028. $as_echo_n "(cached) " >&6
  12029. else
  12030. if test "$cross_compiling" = yes; then :
  12031. ac_cv_func_mmap_fixed_mapped=no
  12032. else
  12033. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12034. /* end confdefs.h. */
  12035. $ac_includes_default
  12036. /* malloc might have been renamed as rpl_malloc. */
  12037. #undef malloc
  12038. /* Thanks to Mike Haertel and Jim Avera for this test.
  12039. Here is a matrix of mmap possibilities:
  12040. mmap private not fixed
  12041. mmap private fixed at somewhere currently unmapped
  12042. mmap private fixed at somewhere already mapped
  12043. mmap shared not fixed
  12044. mmap shared fixed at somewhere currently unmapped
  12045. mmap shared fixed at somewhere already mapped
  12046. For private mappings, we should verify that changes cannot be read()
  12047. back from the file, nor mmap's back from the file at a different
  12048. address. (There have been systems where private was not correctly
  12049. implemented like the infamous i386 svr4.0, and systems where the
  12050. VM page cache was not coherent with the file system buffer cache
  12051. like early versions of FreeBSD and possibly contemporary NetBSD.)
  12052. For shared mappings, we should conversely verify that changes get
  12053. propagated back to all the places they're supposed to be.
  12054. Grep wants private fixed already mapped.
  12055. The main things grep needs to know about mmap are:
  12056. * does it exist and is it safe to write into the mmap'd area
  12057. * how to use it (BSD variants) */
  12058. #include <fcntl.h>
  12059. #include <sys/mman.h>
  12060. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  12061. char *malloc ();
  12062. #endif
  12063. /* This mess was copied from the GNU getpagesize.h. */
  12064. #ifndef HAVE_GETPAGESIZE
  12065. /* Assume that all systems that can run configure have sys/param.h. */
  12066. # ifndef HAVE_SYS_PARAM_H
  12067. # define HAVE_SYS_PARAM_H 1
  12068. # endif
  12069. # ifdef _SC_PAGESIZE
  12070. # define getpagesize() sysconf(_SC_PAGESIZE)
  12071. # else /* no _SC_PAGESIZE */
  12072. # ifdef HAVE_SYS_PARAM_H
  12073. # include <sys/param.h>
  12074. # ifdef EXEC_PAGESIZE
  12075. # define getpagesize() EXEC_PAGESIZE
  12076. # else /* no EXEC_PAGESIZE */
  12077. # ifdef NBPG
  12078. # define getpagesize() NBPG * CLSIZE
  12079. # ifndef CLSIZE
  12080. # define CLSIZE 1
  12081. # endif /* no CLSIZE */
  12082. # else /* no NBPG */
  12083. # ifdef NBPC
  12084. # define getpagesize() NBPC
  12085. # else /* no NBPC */
  12086. # ifdef PAGESIZE
  12087. # define getpagesize() PAGESIZE
  12088. # endif /* PAGESIZE */
  12089. # endif /* no NBPC */
  12090. # endif /* no NBPG */
  12091. # endif /* no EXEC_PAGESIZE */
  12092. # else /* no HAVE_SYS_PARAM_H */
  12093. # define getpagesize() 8192 /* punt totally */
  12094. # endif /* no HAVE_SYS_PARAM_H */
  12095. # endif /* no _SC_PAGESIZE */
  12096. #endif /* no HAVE_GETPAGESIZE */
  12097. int
  12098. main ()
  12099. {
  12100. char *data, *data2, *data3;
  12101. int i, pagesize;
  12102. int fd;
  12103. pagesize = getpagesize ();
  12104. /* First, make a file with some known garbage in it. */
  12105. data = (char *) malloc (pagesize);
  12106. if (!data)
  12107. return 1;
  12108. for (i = 0; i < pagesize; ++i)
  12109. *(data + i) = rand ();
  12110. umask (0);
  12111. fd = creat ("conftest.mmap", 0600);
  12112. if (fd < 0)
  12113. return 1;
  12114. if (write (fd, data, pagesize) != pagesize)
  12115. return 1;
  12116. close (fd);
  12117. /* Next, try to mmap the file at a fixed address which already has
  12118. something else allocated at it. If we can, also make sure that
  12119. we see the same garbage. */
  12120. fd = open ("conftest.mmap", O_RDWR);
  12121. if (fd < 0)
  12122. return 1;
  12123. data2 = (char *) malloc (2 * pagesize);
  12124. if (!data2)
  12125. return 1;
  12126. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  12127. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  12128. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  12129. return 1;
  12130. for (i = 0; i < pagesize; ++i)
  12131. if (*(data + i) != *(data2 + i))
  12132. return 1;
  12133. /* Finally, make sure that changes to the mapped area do not
  12134. percolate back to the file as seen by read(). (This is a bug on
  12135. some variants of i386 svr4.0.) */
  12136. for (i = 0; i < pagesize; ++i)
  12137. *(data2 + i) = *(data2 + i) + 1;
  12138. data3 = (char *) malloc (pagesize);
  12139. if (!data3)
  12140. return 1;
  12141. if (read (fd, data3, pagesize) != pagesize)
  12142. return 1;
  12143. for (i = 0; i < pagesize; ++i)
  12144. if (*(data + i) != *(data3 + i))
  12145. return 1;
  12146. close (fd);
  12147. return 0;
  12148. }
  12149. _ACEOF
  12150. if ac_fn_cxx_try_run "$LINENO"; then :
  12151. ac_cv_func_mmap_fixed_mapped=yes
  12152. else
  12153. ac_cv_func_mmap_fixed_mapped=no
  12154. fi
  12155. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12156. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12157. fi
  12158. fi
  12159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  12160. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  12161. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  12162. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  12163. fi
  12164. rm -f conftest.mmap
  12165. for ac_header in sys/select.h sys/socket.h
  12166. do :
  12167. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  12168. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  12169. eval as_val=\$$as_ac_Header
  12170. if test "x$as_val" = x""yes; then :
  12171. cat >>confdefs.h <<_ACEOF
  12172. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  12173. _ACEOF
  12174. fi
  12175. done
  12176. { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
  12177. $as_echo_n "checking types of arguments for select... " >&6; }
  12178. if test "${ac_cv_func_select_args+set}" = set; then :
  12179. $as_echo_n "(cached) " >&6
  12180. else
  12181. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  12182. for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
  12183. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  12184. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12185. /* end confdefs.h. */
  12186. $ac_includes_default
  12187. #ifdef HAVE_SYS_SELECT_H
  12188. # include <sys/select.h>
  12189. #endif
  12190. #ifdef HAVE_SYS_SOCKET_H
  12191. # include <sys/socket.h>
  12192. #endif
  12193. int
  12194. main ()
  12195. {
  12196. extern int select ($ac_arg1,
  12197. $ac_arg234, $ac_arg234, $ac_arg234,
  12198. $ac_arg5);
  12199. ;
  12200. return 0;
  12201. }
  12202. _ACEOF
  12203. if ac_fn_cxx_try_compile "$LINENO"; then :
  12204. ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  12205. fi
  12206. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12207. done
  12208. done
  12209. done
  12210. # Provide a safe default value.
  12211. : ${ac_cv_func_select_args='int,int *,struct timeval *'}
  12212. fi
  12213. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
  12214. $as_echo "$ac_cv_func_select_args" >&6; }
  12215. ac_save_IFS=$IFS; IFS=','
  12216. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  12217. IFS=$ac_save_IFS
  12218. shift
  12219. cat >>confdefs.h <<_ACEOF
  12220. #define SELECT_TYPE_ARG1 $1
  12221. _ACEOF
  12222. cat >>confdefs.h <<_ACEOF
  12223. #define SELECT_TYPE_ARG234 ($2)
  12224. _ACEOF
  12225. cat >>confdefs.h <<_ACEOF
  12226. #define SELECT_TYPE_ARG5 ($3)
  12227. _ACEOF
  12228. rm -f conftest*
  12229. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  12230. $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
  12231. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
  12232. $as_echo_n "(cached) " >&6
  12233. else
  12234. rm -f conftest.sym conftest.file
  12235. echo >conftest.file
  12236. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  12237. if test "$cross_compiling" = yes; then :
  12238. ac_cv_func_lstat_dereferences_slashed_symlink=no
  12239. else
  12240. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12241. /* end confdefs.h. */
  12242. $ac_includes_default
  12243. int
  12244. main ()
  12245. {
  12246. struct stat sbuf;
  12247. /* Linux will dereference the symlink and fail.
  12248. That is better in the sense that it means we will not
  12249. have to compile and use the lstat wrapper. */
  12250. return lstat ("conftest.sym/", &sbuf) == 0;
  12251. ;
  12252. return 0;
  12253. }
  12254. _ACEOF
  12255. if ac_fn_cxx_try_run "$LINENO"; then :
  12256. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  12257. else
  12258. ac_cv_func_lstat_dereferences_slashed_symlink=no
  12259. fi
  12260. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12261. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12262. fi
  12263. else
  12264. # If the `ln -s' command failed, then we probably don't even
  12265. # have an lstat function.
  12266. ac_cv_func_lstat_dereferences_slashed_symlink=no
  12267. fi
  12268. rm -f conftest.sym conftest.file
  12269. fi
  12270. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  12271. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  12272. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  12273. cat >>confdefs.h <<_ACEOF
  12274. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  12275. _ACEOF
  12276. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  12277. case " $LIBOBJS " in
  12278. *" lstat.$ac_objext "* ) ;;
  12279. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  12280. ;;
  12281. esac
  12282. fi
  12283. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
  12284. $as_echo_n "checking whether stat accepts an empty string... " >&6; }
  12285. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
  12286. $as_echo_n "(cached) " >&6
  12287. else
  12288. if test "$cross_compiling" = yes; then :
  12289. ac_cv_func_stat_empty_string_bug=yes
  12290. else
  12291. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12292. /* end confdefs.h. */
  12293. $ac_includes_default
  12294. int
  12295. main ()
  12296. {
  12297. struct stat sbuf;
  12298. return stat ("", &sbuf) == 0;
  12299. ;
  12300. return 0;
  12301. }
  12302. _ACEOF
  12303. if ac_fn_cxx_try_run "$LINENO"; then :
  12304. ac_cv_func_stat_empty_string_bug=no
  12305. else
  12306. ac_cv_func_stat_empty_string_bug=yes
  12307. fi
  12308. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12309. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12310. fi
  12311. fi
  12312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
  12313. $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
  12314. if test $ac_cv_func_stat_empty_string_bug = yes; then
  12315. case " $LIBOBJS " in
  12316. *" stat.$ac_objext "* ) ;;
  12317. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  12318. ;;
  12319. esac
  12320. cat >>confdefs.h <<_ACEOF
  12321. #define HAVE_STAT_EMPTY_STRING_BUG 1
  12322. _ACEOF
  12323. fi
  12324. for ac_func in strftime
  12325. do :
  12326. ac_fn_cxx_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
  12327. if test "x$ac_cv_func_strftime" = x""yes; then :
  12328. cat >>confdefs.h <<_ACEOF
  12329. #define HAVE_STRFTIME 1
  12330. _ACEOF
  12331. else
  12332. # strftime is in -lintl on SCO UNIX.
  12333. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
  12334. $as_echo_n "checking for strftime in -lintl... " >&6; }
  12335. if test "${ac_cv_lib_intl_strftime+set}" = set; then :
  12336. $as_echo_n "(cached) " >&6
  12337. else
  12338. ac_check_lib_save_LIBS=$LIBS
  12339. LIBS="-lintl $LIBS"
  12340. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12341. /* end confdefs.h. */
  12342. /* Override any GCC internal prototype to avoid an error.
  12343. Use char because int might match the return type of a GCC
  12344. builtin and then its argument prototype would still apply. */
  12345. #ifdef __cplusplus
  12346. extern "C"
  12347. #endif
  12348. char strftime ();
  12349. int
  12350. main ()
  12351. {
  12352. return strftime ();
  12353. ;
  12354. return 0;
  12355. }
  12356. _ACEOF
  12357. if ac_fn_cxx_try_link "$LINENO"; then :
  12358. ac_cv_lib_intl_strftime=yes
  12359. else
  12360. ac_cv_lib_intl_strftime=no
  12361. fi
  12362. rm -f core conftest.err conftest.$ac_objext \
  12363. conftest$ac_exeext conftest.$ac_ext
  12364. LIBS=$ac_check_lib_save_LIBS
  12365. fi
  12366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
  12367. $as_echo "$ac_cv_lib_intl_strftime" >&6; }
  12368. if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
  12369. $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
  12370. LIBS="-lintl $LIBS"
  12371. fi
  12372. fi
  12373. done
  12374. for ac_func in vprintf
  12375. do :
  12376. ac_fn_cxx_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
  12377. if test "x$ac_cv_func_vprintf" = x""yes; then :
  12378. cat >>confdefs.h <<_ACEOF
  12379. #define HAVE_VPRINTF 1
  12380. _ACEOF
  12381. ac_fn_cxx_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
  12382. if test "x$ac_cv_func__doprnt" = x""yes; then :
  12383. $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
  12384. fi
  12385. fi
  12386. done
  12387. for ac_func in __argz_count \
  12388. __argz_next \
  12389. __argz_stringify \
  12390. atexit \
  12391. fork \
  12392. ftruncate \
  12393. getcwd \
  12394. gethostbyaddr \
  12395. gethostbyname \
  12396. getpagesize \
  12397. inet_ntoa \
  12398. memchr \
  12399. memmove \
  12400. mempcpy \
  12401. memset \
  12402. mkdir \
  12403. munmap \
  12404. nl_langinfo \
  12405. posix_memalign \
  12406. putenv \
  12407. rmdir \
  12408. select \
  12409. setlocale \
  12410. sleep \
  12411. socket \
  12412. stpcpy \
  12413. strcasecmp \
  12414. strchr \
  12415. strcspn \
  12416. strdup \
  12417. strerror \
  12418. strncasecmp \
  12419. strstr \
  12420. strtol \
  12421. strtoul \
  12422. strtoull \
  12423. tzset \
  12424. unsetenv \
  12425. usleep
  12426. do :
  12427. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12428. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  12429. eval as_val=\$$as_ac_var
  12430. if test "x$as_val" = x""yes; then :
  12431. cat >>confdefs.h <<_ACEOF
  12432. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12433. _ACEOF
  12434. fi
  12435. done
  12436. if test "x$enable_epoll" = "xyes"; then
  12437. for ac_func in epoll_create
  12438. do :
  12439. ac_fn_cxx_check_func "$LINENO" "epoll_create" "ac_cv_func_epoll_create"
  12440. if test "x$ac_cv_func_epoll_create" = x""yes; then :
  12441. cat >>confdefs.h <<_ACEOF
  12442. #define HAVE_EPOLL_CREATE 1
  12443. _ACEOF
  12444. have_epoll=yes
  12445. fi
  12446. done
  12447. if test "x$have_epoll" = "xyes"; then
  12448. $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
  12449. fi
  12450. fi
  12451. if test "x$have_epoll" = "xyes"; then
  12452. HAVE_EPOLL_TRUE=
  12453. HAVE_EPOLL_FALSE='#'
  12454. else
  12455. HAVE_EPOLL_TRUE='#'
  12456. HAVE_EPOLL_FALSE=
  12457. fi
  12458. for ac_func in posix_fallocate
  12459. do :
  12460. ac_fn_cxx_check_func "$LINENO" "posix_fallocate" "ac_cv_func_posix_fallocate"
  12461. if test "x$ac_cv_func_posix_fallocate" = x""yes; then :
  12462. cat >>confdefs.h <<_ACEOF
  12463. #define HAVE_POSIX_FALLOCATE 1
  12464. _ACEOF
  12465. have_posix_fallocate=yes
  12466. fi
  12467. done
  12468. if test "x$have_posix_fallocate" = "xyes"; then
  12469. HAVE_POSIX_FALLOCATE_TRUE=
  12470. HAVE_POSIX_FALLOCATE_FALSE='#'
  12471. else
  12472. HAVE_POSIX_FALLOCATE_TRUE='#'
  12473. HAVE_POSIX_FALLOCATE_FALSE=
  12474. fi
  12475. for ac_func in asctime_r
  12476. do :
  12477. ac_fn_cxx_check_func "$LINENO" "asctime_r" "ac_cv_func_asctime_r"
  12478. if test "x$ac_cv_func_asctime_r" = x""yes; then :
  12479. cat >>confdefs.h <<_ACEOF
  12480. #define HAVE_ASCTIME_R 1
  12481. _ACEOF
  12482. if true; then
  12483. HAVE_ASCTIME_R_TRUE=
  12484. HAVE_ASCTIME_R_FALSE='#'
  12485. else
  12486. HAVE_ASCTIME_R_TRUE='#'
  12487. HAVE_ASCTIME_R_FALSE=
  12488. fi
  12489. else
  12490. if false; then
  12491. HAVE_ASCTIME_R_TRUE=
  12492. HAVE_ASCTIME_R_FALSE='#'
  12493. else
  12494. HAVE_ASCTIME_R_TRUE='#'
  12495. HAVE_ASCTIME_R_FALSE=
  12496. fi
  12497. fi
  12498. done
  12499. for ac_func in basename
  12500. do :
  12501. ac_fn_cxx_check_func "$LINENO" "basename" "ac_cv_func_basename"
  12502. if test "x$ac_cv_func_basename" = x""yes; then :
  12503. cat >>confdefs.h <<_ACEOF
  12504. #define HAVE_BASENAME 1
  12505. _ACEOF
  12506. if true; then
  12507. HAVE_BASENAME_TRUE=
  12508. HAVE_BASENAME_FALSE='#'
  12509. else
  12510. HAVE_BASENAME_TRUE='#'
  12511. HAVE_BASENAME_FALSE=
  12512. fi
  12513. else
  12514. if false; then
  12515. HAVE_BASENAME_TRUE=
  12516. HAVE_BASENAME_FALSE='#'
  12517. else
  12518. HAVE_BASENAME_TRUE='#'
  12519. HAVE_BASENAME_FALSE=
  12520. fi
  12521. fi
  12522. done
  12523. for ac_func in gai_strerror
  12524. do :
  12525. ac_fn_cxx_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
  12526. if test "x$ac_cv_func_gai_strerror" = x""yes; then :
  12527. cat >>confdefs.h <<_ACEOF
  12528. #define HAVE_GAI_STRERROR 1
  12529. _ACEOF
  12530. if true; then
  12531. HAVE_GAI_STRERROR_TRUE=
  12532. HAVE_GAI_STRERROR_FALSE='#'
  12533. else
  12534. HAVE_GAI_STRERROR_TRUE='#'
  12535. HAVE_GAI_STRERROR_FALSE=
  12536. fi
  12537. else
  12538. if false; then
  12539. HAVE_GAI_STRERROR_TRUE=
  12540. HAVE_GAI_STRERROR_FALSE='#'
  12541. else
  12542. HAVE_GAI_STRERROR_TRUE='#'
  12543. HAVE_GAI_STRERROR_FALSE=
  12544. fi
  12545. fi
  12546. done
  12547. for ac_func in getaddrinfo
  12548. do :
  12549. ac_fn_cxx_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
  12550. if test "x$ac_cv_func_getaddrinfo" = x""yes; then :
  12551. cat >>confdefs.h <<_ACEOF
  12552. #define HAVE_GETADDRINFO 1
  12553. _ACEOF
  12554. if true; then
  12555. HAVE_GETADDRINFO_TRUE=
  12556. HAVE_GETADDRINFO_FALSE='#'
  12557. else
  12558. HAVE_GETADDRINFO_TRUE='#'
  12559. HAVE_GETADDRINFO_FALSE=
  12560. fi
  12561. else
  12562. if false; then
  12563. HAVE_GETADDRINFO_TRUE=
  12564. HAVE_GETADDRINFO_FALSE='#'
  12565. else
  12566. HAVE_GETADDRINFO_TRUE='#'
  12567. HAVE_GETADDRINFO_FALSE=
  12568. fi
  12569. fi
  12570. done
  12571. for ac_func in gettimeofday
  12572. do :
  12573. ac_fn_cxx_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
  12574. if test "x$ac_cv_func_gettimeofday" = x""yes; then :
  12575. cat >>confdefs.h <<_ACEOF
  12576. #define HAVE_GETTIMEOFDAY 1
  12577. _ACEOF
  12578. if true; then
  12579. HAVE_GETTIMEOFDAY_TRUE=
  12580. HAVE_GETTIMEOFDAY_FALSE='#'
  12581. else
  12582. HAVE_GETTIMEOFDAY_TRUE='#'
  12583. HAVE_GETTIMEOFDAY_FALSE=
  12584. fi
  12585. else
  12586. if false; then
  12587. HAVE_GETTIMEOFDAY_TRUE=
  12588. HAVE_GETTIMEOFDAY_FALSE='#'
  12589. else
  12590. HAVE_GETTIMEOFDAY_TRUE='#'
  12591. HAVE_GETTIMEOFDAY_FALSE=
  12592. fi
  12593. fi
  12594. done
  12595. for ac_func in inet_aton
  12596. do :
  12597. ac_fn_cxx_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
  12598. if test "x$ac_cv_func_inet_aton" = x""yes; then :
  12599. cat >>confdefs.h <<_ACEOF
  12600. #define HAVE_INET_ATON 1
  12601. _ACEOF
  12602. if true; then
  12603. HAVE_INET_ATON_TRUE=
  12604. HAVE_INET_ATON_FALSE='#'
  12605. else
  12606. HAVE_INET_ATON_TRUE='#'
  12607. HAVE_INET_ATON_FALSE=
  12608. fi
  12609. else
  12610. if false; then
  12611. HAVE_INET_ATON_TRUE=
  12612. HAVE_INET_ATON_FALSE='#'
  12613. else
  12614. HAVE_INET_ATON_TRUE='#'
  12615. HAVE_INET_ATON_FALSE=
  12616. fi
  12617. fi
  12618. done
  12619. for ac_func in localtime_r
  12620. do :
  12621. ac_fn_cxx_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r"
  12622. if test "x$ac_cv_func_localtime_r" = x""yes; then :
  12623. cat >>confdefs.h <<_ACEOF
  12624. #define HAVE_LOCALTIME_R 1
  12625. _ACEOF
  12626. if true; then
  12627. HAVE_LOCALTIME_R_TRUE=
  12628. HAVE_LOCALTIME_R_FALSE='#'
  12629. else
  12630. HAVE_LOCALTIME_R_TRUE='#'
  12631. HAVE_LOCALTIME_R_FALSE=
  12632. fi
  12633. else
  12634. if false; then
  12635. HAVE_LOCALTIME_R_TRUE=
  12636. HAVE_LOCALTIME_R_FALSE='#'
  12637. else
  12638. HAVE_LOCALTIME_R_TRUE='#'
  12639. HAVE_LOCALTIME_R_FALSE=
  12640. fi
  12641. fi
  12642. done
  12643. for ac_func in strptime
  12644. do :
  12645. ac_fn_cxx_check_func "$LINENO" "strptime" "ac_cv_func_strptime"
  12646. if test "x$ac_cv_func_strptime" = x""yes; then :
  12647. cat >>confdefs.h <<_ACEOF
  12648. #define HAVE_STRPTIME 1
  12649. _ACEOF
  12650. if true; then
  12651. HAVE_STRPTIME_TRUE=
  12652. HAVE_STRPTIME_FALSE='#'
  12653. else
  12654. HAVE_STRPTIME_TRUE='#'
  12655. HAVE_STRPTIME_FALSE=
  12656. fi
  12657. else
  12658. if false; then
  12659. HAVE_STRPTIME_TRUE=
  12660. HAVE_STRPTIME_FALSE='#'
  12661. else
  12662. HAVE_STRPTIME_TRUE='#'
  12663. HAVE_STRPTIME_FALSE=
  12664. fi
  12665. fi
  12666. done
  12667. for ac_func in timegm
  12668. do :
  12669. ac_fn_cxx_check_func "$LINENO" "timegm" "ac_cv_func_timegm"
  12670. if test "x$ac_cv_func_timegm" = x""yes; then :
  12671. cat >>confdefs.h <<_ACEOF
  12672. #define HAVE_TIMEGM 1
  12673. _ACEOF
  12674. if true; then
  12675. HAVE_TIMEGM_TRUE=
  12676. HAVE_TIMEGM_FALSE='#'
  12677. else
  12678. HAVE_TIMEGM_TRUE='#'
  12679. HAVE_TIMEGM_FALSE=
  12680. fi
  12681. else
  12682. if false; then
  12683. HAVE_TIMEGM_TRUE=
  12684. HAVE_TIMEGM_FALSE='#'
  12685. else
  12686. HAVE_TIMEGM_TRUE='#'
  12687. HAVE_TIMEGM_FALSE=
  12688. fi
  12689. fi
  12690. done
  12691. for ac_func in daemon
  12692. do :
  12693. ac_fn_cxx_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
  12694. if test "x$ac_cv_func_daemon" = x""yes; then :
  12695. cat >>confdefs.h <<_ACEOF
  12696. #define HAVE_DAEMON 1
  12697. _ACEOF
  12698. have_daemon=yes
  12699. fi
  12700. done
  12701. if test "x$have_daemon" = "xyes"; then
  12702. HAVE_DAEMON_TRUE=
  12703. HAVE_DAEMON_FALSE='#'
  12704. else
  12705. HAVE_DAEMON_TRUE='#'
  12706. HAVE_DAEMON_FALSE=
  12707. fi
  12708. case "$target" in
  12709. *mingw*)
  12710. if true; then
  12711. HAVE_GETADDRINFO_TRUE=
  12712. HAVE_GETADDRINFO_FALSE='#'
  12713. else
  12714. HAVE_GETADDRINFO_TRUE='#'
  12715. HAVE_GETADDRINFO_FALSE=
  12716. fi
  12717. if false; then
  12718. HAVE_GAI_STRERROR_TRUE=
  12719. HAVE_GAI_STRERROR_FALSE='#'
  12720. else
  12721. HAVE_GAI_STRERROR_TRUE='#'
  12722. HAVE_GAI_STRERROR_FALSE=
  12723. fi
  12724. ;;
  12725. esac
  12726. ac_fn_cxx_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <netinet/in.h>
  12727. "
  12728. if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = x""yes; then :
  12729. $as_echo "#define HAVE_SOCKADDR_IN_SIN_LEN 1" >>confdefs.h
  12730. fi
  12731. # Check struct option.name is assignable from const char*. struct
  12732. # option.name in opensolaris is of type char*. In Linux, it is const
  12733. # char*
  12734. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct option.name is assignable from const char*" >&5
  12735. $as_echo_n "checking whether struct option.name is assignable from const char*... " >&6; }
  12736. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12737. /* end confdefs.h. */
  12738. #include <unistd.h>
  12739. #include <getopt.h>
  12740. int
  12741. main ()
  12742. {
  12743. const char* s = "const char";
  12744. option op;
  12745. op.name = s;
  12746. ;
  12747. return 0;
  12748. }
  12749. _ACEOF
  12750. if ac_fn_cxx_try_compile "$LINENO"; then :
  12751. have_option_const_name=yes
  12752. else
  12753. have_option_const_name=no
  12754. fi
  12755. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_option_const_name" >&5
  12757. $as_echo "$have_option_const_name" >&6; }
  12758. if test "x$have_option_const_name" = "xyes"; then
  12759. $as_echo "#define HAVE_OPTION_CONST_NAME 1" >>confdefs.h
  12760. fi
  12761. ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile po/Makefile.in intl/Makefile lib/Makefile doc/Makefile"
  12762. cat >confcache <<\_ACEOF
  12763. # This file is a shell script that caches the results of configure
  12764. # tests run on this system so they can be shared between configure
  12765. # scripts and configure runs, see configure's option --config-cache.
  12766. # It is not useful on other systems. If it contains results you don't
  12767. # want to keep, you may remove or edit it.
  12768. #
  12769. # config.status only pays attention to the cache file if you give it
  12770. # the --recheck option to rerun configure.
  12771. #
  12772. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  12773. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  12774. # following values.
  12775. _ACEOF
  12776. # The following way of writing the cache mishandles newlines in values,
  12777. # but we know of no workaround that is simple, portable, and efficient.
  12778. # So, we kill variables containing newlines.
  12779. # Ultrix sh set writes to stderr and can't be redirected directly,
  12780. # and sets the high bit in the cache file unless we assign to the vars.
  12781. (
  12782. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  12783. eval ac_val=\$$ac_var
  12784. case $ac_val in #(
  12785. *${as_nl}*)
  12786. case $ac_var in #(
  12787. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  12788. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  12789. esac
  12790. case $ac_var in #(
  12791. _ | IFS | as_nl) ;; #(
  12792. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  12793. *) { eval $ac_var=; unset $ac_var;} ;;
  12794. esac ;;
  12795. esac
  12796. done
  12797. (set) 2>&1 |
  12798. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  12799. *${as_nl}ac_space=\ *)
  12800. # `set' does not quote correctly, so add quotes: double-quote
  12801. # substitution turns \\\\ into \\, and sed turns \\ into \.
  12802. sed -n \
  12803. "s/'/'\\\\''/g;
  12804. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  12805. ;; #(
  12806. *)
  12807. # `set' quotes correctly as required by POSIX, so do not add quotes.
  12808. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  12809. ;;
  12810. esac |
  12811. sort
  12812. ) |
  12813. sed '
  12814. /^ac_cv_env_/b end
  12815. t clear
  12816. :clear
  12817. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  12818. t end
  12819. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  12820. :end' >>confcache
  12821. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  12822. if test -w "$cache_file"; then
  12823. test "x$cache_file" != "x/dev/null" &&
  12824. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  12825. $as_echo "$as_me: updating cache $cache_file" >&6;}
  12826. cat confcache >$cache_file
  12827. else
  12828. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  12829. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  12830. fi
  12831. fi
  12832. rm -f confcache
  12833. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  12834. # Let make expand exec_prefix.
  12835. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  12836. DEFS=-DHAVE_CONFIG_H
  12837. ac_libobjs=
  12838. ac_ltlibobjs=
  12839. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  12840. # 1. Remove the extension, and $U if already installed.
  12841. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  12842. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  12843. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  12844. # will be set to the directory where LIBOBJS objects are built.
  12845. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  12846. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  12847. done
  12848. LIBOBJS=$ac_libobjs
  12849. LTLIBOBJS=$ac_ltlibobjs
  12850. if test -n "$EXEEXT"; then
  12851. am__EXEEXT_TRUE=
  12852. am__EXEEXT_FALSE='#'
  12853. else
  12854. am__EXEEXT_TRUE='#'
  12855. am__EXEEXT_FALSE=
  12856. fi
  12857. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  12858. as_fn_error "conditional \"AMDEP\" was never defined.
  12859. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12860. fi
  12861. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  12862. as_fn_error "conditional \"am__fastdepCXX\" was never defined.
  12863. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12864. fi
  12865. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  12866. as_fn_error "conditional \"am__fastdepCC\" was never defined.
  12867. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12868. fi
  12869. if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
  12870. as_fn_error "conditional \"ENABLE_SSL\" was never defined.
  12871. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12872. fi
  12873. if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
  12874. as_fn_error "conditional \"ENABLE_SSL\" was never defined.
  12875. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12876. fi
  12877. if test -z "${HAVE_LIBGNUTLS_TRUE}" && test -z "${HAVE_LIBGNUTLS_FALSE}"; then
  12878. as_fn_error "conditional \"HAVE_LIBGNUTLS\" was never defined.
  12879. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12880. fi
  12881. if test -z "${HAVE_LIBSSL_TRUE}" && test -z "${HAVE_LIBSSL_FALSE}"; then
  12882. as_fn_error "conditional \"HAVE_LIBSSL\" was never defined.
  12883. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12884. fi
  12885. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  12886. as_fn_error "conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  12887. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12888. fi
  12889. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  12890. as_fn_error "conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  12891. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12892. fi
  12893. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  12894. as_fn_error "conditional \"ENABLE_BITTORRENT\" was never defined.
  12895. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12896. fi
  12897. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  12898. as_fn_error "conditional \"ENABLE_BITTORRENT\" was never defined.
  12899. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12900. fi
  12901. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  12902. as_fn_error "conditional \"ENABLE_METALINK\" was never defined.
  12903. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12904. fi
  12905. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  12906. as_fn_error "conditional \"ENABLE_METALINK\" was never defined.
  12907. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12908. fi
  12909. if test -z "${ENABLE_METALINK_LIBXML2_TRUE}" && test -z "${ENABLE_METALINK_LIBXML2_FALSE}"; then
  12910. as_fn_error "conditional \"ENABLE_METALINK_LIBXML2\" was never defined.
  12911. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12912. fi
  12913. if test -z "${ENABLE_METALINK_LIBEXPAT_TRUE}" && test -z "${ENABLE_METALINK_LIBEXPAT_FALSE}"; then
  12914. as_fn_error "conditional \"ENABLE_METALINK_LIBEXPAT\" was never defined.
  12915. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12916. fi
  12917. if test -z "${ENABLE_XML_RPC_TRUE}" && test -z "${ENABLE_XML_RPC_FALSE}"; then
  12918. as_fn_error "conditional \"ENABLE_XML_RPC\" was never defined.
  12919. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12920. fi
  12921. if test -z "${HAVE_LIBXML2_TRUE}" && test -z "${HAVE_LIBXML2_FALSE}"; then
  12922. as_fn_error "conditional \"HAVE_LIBXML2\" was never defined.
  12923. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12924. fi
  12925. if test -z "${HAVE_LIBEXPAT_TRUE}" && test -z "${HAVE_LIBEXPAT_FALSE}"; then
  12926. as_fn_error "conditional \"HAVE_LIBEXPAT\" was never defined.
  12927. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12928. fi
  12929. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  12930. as_fn_error "conditional \"ENABLE_ASYNC_DNS\" was never defined.
  12931. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12932. fi
  12933. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  12934. as_fn_error "conditional \"ENABLE_ASYNC_DNS\" was never defined.
  12935. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12936. fi
  12937. if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
  12938. as_fn_error "conditional \"HAVE_LIBZ\" was never defined.
  12939. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12940. fi
  12941. if test -z "${HAVE_SQLITE3_TRUE}" && test -z "${HAVE_SQLITE3_FALSE}"; then
  12942. as_fn_error "conditional \"HAVE_SQLITE3\" was never defined.
  12943. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12944. fi
  12945. if test -z "${HAVE_EPOLL_TRUE}" && test -z "${HAVE_EPOLL_FALSE}"; then
  12946. as_fn_error "conditional \"HAVE_EPOLL\" was never defined.
  12947. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12948. fi
  12949. if test -z "${HAVE_POSIX_FALLOCATE_TRUE}" && test -z "${HAVE_POSIX_FALLOCATE_FALSE}"; then
  12950. as_fn_error "conditional \"HAVE_POSIX_FALLOCATE\" was never defined.
  12951. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12952. fi
  12953. if test -z "${HAVE_ASCTIME_R_TRUE}" && test -z "${HAVE_ASCTIME_R_FALSE}"; then
  12954. as_fn_error "conditional \"HAVE_ASCTIME_R\" was never defined.
  12955. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12956. fi
  12957. if test -z "${HAVE_ASCTIME_R_TRUE}" && test -z "${HAVE_ASCTIME_R_FALSE}"; then
  12958. as_fn_error "conditional \"HAVE_ASCTIME_R\" was never defined.
  12959. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12960. fi
  12961. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  12962. as_fn_error "conditional \"HAVE_BASENAME\" was never defined.
  12963. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12964. fi
  12965. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  12966. as_fn_error "conditional \"HAVE_BASENAME\" was never defined.
  12967. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12968. fi
  12969. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  12970. as_fn_error "conditional \"HAVE_GAI_STRERROR\" was never defined.
  12971. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12972. fi
  12973. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  12974. as_fn_error "conditional \"HAVE_GAI_STRERROR\" was never defined.
  12975. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12976. fi
  12977. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  12978. as_fn_error "conditional \"HAVE_GETADDRINFO\" was never defined.
  12979. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12980. fi
  12981. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  12982. as_fn_error "conditional \"HAVE_GETADDRINFO\" was never defined.
  12983. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12984. fi
  12985. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  12986. as_fn_error "conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  12987. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12988. fi
  12989. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  12990. as_fn_error "conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  12991. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12992. fi
  12993. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  12994. as_fn_error "conditional \"HAVE_INET_ATON\" was never defined.
  12995. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12996. fi
  12997. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  12998. as_fn_error "conditional \"HAVE_INET_ATON\" was never defined.
  12999. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13000. fi
  13001. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  13002. as_fn_error "conditional \"HAVE_LOCALTIME_R\" was never defined.
  13003. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13004. fi
  13005. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  13006. as_fn_error "conditional \"HAVE_LOCALTIME_R\" was never defined.
  13007. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13008. fi
  13009. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  13010. as_fn_error "conditional \"HAVE_STRPTIME\" was never defined.
  13011. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13012. fi
  13013. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  13014. as_fn_error "conditional \"HAVE_STRPTIME\" was never defined.
  13015. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13016. fi
  13017. if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
  13018. as_fn_error "conditional \"HAVE_TIMEGM\" was never defined.
  13019. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13020. fi
  13021. if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
  13022. as_fn_error "conditional \"HAVE_TIMEGM\" was never defined.
  13023. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13024. fi
  13025. if test -z "${HAVE_DAEMON_TRUE}" && test -z "${HAVE_DAEMON_FALSE}"; then
  13026. as_fn_error "conditional \"HAVE_DAEMON\" was never defined.
  13027. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13028. fi
  13029. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  13030. as_fn_error "conditional \"HAVE_GETADDRINFO\" was never defined.
  13031. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13032. fi
  13033. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  13034. as_fn_error "conditional \"HAVE_GAI_STRERROR\" was never defined.
  13035. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13036. fi
  13037. : ${CONFIG_STATUS=./config.status}
  13038. ac_write_fail=0
  13039. ac_clean_files_save=$ac_clean_files
  13040. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  13041. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  13042. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  13043. as_write_fail=0
  13044. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  13045. #! $SHELL
  13046. # Generated by $as_me.
  13047. # Run this file to recreate the current configuration.
  13048. # Compiler output produced by configure, useful for debugging
  13049. # configure, is in config.log if it exists.
  13050. debug=false
  13051. ac_cs_recheck=false
  13052. ac_cs_silent=false
  13053. SHELL=\${CONFIG_SHELL-$SHELL}
  13054. export SHELL
  13055. _ASEOF
  13056. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  13057. ## -------------------- ##
  13058. ## M4sh Initialization. ##
  13059. ## -------------------- ##
  13060. # Be more Bourne compatible
  13061. DUALCASE=1; export DUALCASE # for MKS sh
  13062. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  13063. emulate sh
  13064. NULLCMD=:
  13065. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  13066. # is contrary to our usage. Disable this feature.
  13067. alias -g '${1+"$@"}'='"$@"'
  13068. setopt NO_GLOB_SUBST
  13069. else
  13070. case `(set -o) 2>/dev/null` in #(
  13071. *posix*) :
  13072. set -o posix ;; #(
  13073. *) :
  13074. ;;
  13075. esac
  13076. fi
  13077. as_nl='
  13078. '
  13079. export as_nl
  13080. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  13081. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  13082. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  13083. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  13084. # Prefer a ksh shell builtin over an external printf program on Solaris,
  13085. # but without wasting forks for bash or zsh.
  13086. if test -z "$BASH_VERSION$ZSH_VERSION" \
  13087. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  13088. as_echo='print -r --'
  13089. as_echo_n='print -rn --'
  13090. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  13091. as_echo='printf %s\n'
  13092. as_echo_n='printf %s'
  13093. else
  13094. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  13095. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  13096. as_echo_n='/usr/ucb/echo -n'
  13097. else
  13098. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  13099. as_echo_n_body='eval
  13100. arg=$1;
  13101. case $arg in #(
  13102. *"$as_nl"*)
  13103. expr "X$arg" : "X\\(.*\\)$as_nl";
  13104. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  13105. esac;
  13106. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  13107. '
  13108. export as_echo_n_body
  13109. as_echo_n='sh -c $as_echo_n_body as_echo'
  13110. fi
  13111. export as_echo_body
  13112. as_echo='sh -c $as_echo_body as_echo'
  13113. fi
  13114. # The user is always right.
  13115. if test "${PATH_SEPARATOR+set}" != set; then
  13116. PATH_SEPARATOR=:
  13117. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  13118. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  13119. PATH_SEPARATOR=';'
  13120. }
  13121. fi
  13122. # IFS
  13123. # We need space, tab and new line, in precisely that order. Quoting is
  13124. # there to prevent editors from complaining about space-tab.
  13125. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  13126. # splitting by setting IFS to empty value.)
  13127. IFS=" "" $as_nl"
  13128. # Find who we are. Look in the path if we contain no directory separator.
  13129. case $0 in #((
  13130. *[\\/]* ) as_myself=$0 ;;
  13131. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13132. for as_dir in $PATH
  13133. do
  13134. IFS=$as_save_IFS
  13135. test -z "$as_dir" && as_dir=.
  13136. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  13137. done
  13138. IFS=$as_save_IFS
  13139. ;;
  13140. esac
  13141. # We did not find ourselves, most probably we were run as `sh COMMAND'
  13142. # in which case we are not to be found in the path.
  13143. if test "x$as_myself" = x; then
  13144. as_myself=$0
  13145. fi
  13146. if test ! -f "$as_myself"; then
  13147. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  13148. exit 1
  13149. fi
  13150. # Unset variables that we do not need and which cause bugs (e.g. in
  13151. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  13152. # suppresses any "Segmentation fault" message there. '((' could
  13153. # trigger a bug in pdksh 5.2.14.
  13154. for as_var in BASH_ENV ENV MAIL MAILPATH
  13155. do eval test x\${$as_var+set} = xset \
  13156. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  13157. done
  13158. PS1='$ '
  13159. PS2='> '
  13160. PS4='+ '
  13161. # NLS nuisances.
  13162. LC_ALL=C
  13163. export LC_ALL
  13164. LANGUAGE=C
  13165. export LANGUAGE
  13166. # CDPATH.
  13167. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13168. # as_fn_error ERROR [LINENO LOG_FD]
  13169. # ---------------------------------
  13170. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  13171. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  13172. # script with status $?, using 1 if that was 0.
  13173. as_fn_error ()
  13174. {
  13175. as_status=$?; test $as_status -eq 0 && as_status=1
  13176. if test "$3"; then
  13177. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  13178. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  13179. fi
  13180. $as_echo "$as_me: error: $1" >&2
  13181. as_fn_exit $as_status
  13182. } # as_fn_error
  13183. # as_fn_set_status STATUS
  13184. # -----------------------
  13185. # Set $? to STATUS, without forking.
  13186. as_fn_set_status ()
  13187. {
  13188. return $1
  13189. } # as_fn_set_status
  13190. # as_fn_exit STATUS
  13191. # -----------------
  13192. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  13193. as_fn_exit ()
  13194. {
  13195. set +e
  13196. as_fn_set_status $1
  13197. exit $1
  13198. } # as_fn_exit
  13199. # as_fn_unset VAR
  13200. # ---------------
  13201. # Portably unset VAR.
  13202. as_fn_unset ()
  13203. {
  13204. { eval $1=; unset $1;}
  13205. }
  13206. as_unset=as_fn_unset
  13207. # as_fn_append VAR VALUE
  13208. # ----------------------
  13209. # Append the text in VALUE to the end of the definition contained in VAR. Take
  13210. # advantage of any shell optimizations that allow amortized linear growth over
  13211. # repeated appends, instead of the typical quadratic growth present in naive
  13212. # implementations.
  13213. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  13214. eval 'as_fn_append ()
  13215. {
  13216. eval $1+=\$2
  13217. }'
  13218. else
  13219. as_fn_append ()
  13220. {
  13221. eval $1=\$$1\$2
  13222. }
  13223. fi # as_fn_append
  13224. # as_fn_arith ARG...
  13225. # ------------------
  13226. # Perform arithmetic evaluation on the ARGs, and store the result in the
  13227. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  13228. # must be portable across $(()) and expr.
  13229. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  13230. eval 'as_fn_arith ()
  13231. {
  13232. as_val=$(( $* ))
  13233. }'
  13234. else
  13235. as_fn_arith ()
  13236. {
  13237. as_val=`expr "$@" || test $? -eq 1`
  13238. }
  13239. fi # as_fn_arith
  13240. if expr a : '\(a\)' >/dev/null 2>&1 &&
  13241. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  13242. as_expr=expr
  13243. else
  13244. as_expr=false
  13245. fi
  13246. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  13247. as_basename=basename
  13248. else
  13249. as_basename=false
  13250. fi
  13251. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  13252. as_dirname=dirname
  13253. else
  13254. as_dirname=false
  13255. fi
  13256. as_me=`$as_basename -- "$0" ||
  13257. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  13258. X"$0" : 'X\(//\)$' \| \
  13259. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  13260. $as_echo X/"$0" |
  13261. sed '/^.*\/\([^/][^/]*\)\/*$/{
  13262. s//\1/
  13263. q
  13264. }
  13265. /^X\/\(\/\/\)$/{
  13266. s//\1/
  13267. q
  13268. }
  13269. /^X\/\(\/\).*/{
  13270. s//\1/
  13271. q
  13272. }
  13273. s/.*/./; q'`
  13274. # Avoid depending upon Character Ranges.
  13275. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  13276. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  13277. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  13278. as_cr_digits='0123456789'
  13279. as_cr_alnum=$as_cr_Letters$as_cr_digits
  13280. ECHO_C= ECHO_N= ECHO_T=
  13281. case `echo -n x` in #(((((
  13282. -n*)
  13283. case `echo 'xy\c'` in
  13284. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  13285. xy) ECHO_C='\c';;
  13286. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  13287. ECHO_T=' ';;
  13288. esac;;
  13289. *)
  13290. ECHO_N='-n';;
  13291. esac
  13292. rm -f conf$$ conf$$.exe conf$$.file
  13293. if test -d conf$$.dir; then
  13294. rm -f conf$$.dir/conf$$.file
  13295. else
  13296. rm -f conf$$.dir
  13297. mkdir conf$$.dir 2>/dev/null
  13298. fi
  13299. if (echo >conf$$.file) 2>/dev/null; then
  13300. if ln -s conf$$.file conf$$ 2>/dev/null; then
  13301. as_ln_s='ln -s'
  13302. # ... but there are two gotchas:
  13303. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  13304. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  13305. # In both cases, we have to default to `cp -p'.
  13306. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  13307. as_ln_s='cp -p'
  13308. elif ln conf$$.file conf$$ 2>/dev/null; then
  13309. as_ln_s=ln
  13310. else
  13311. as_ln_s='cp -p'
  13312. fi
  13313. else
  13314. as_ln_s='cp -p'
  13315. fi
  13316. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  13317. rmdir conf$$.dir 2>/dev/null
  13318. # as_fn_mkdir_p
  13319. # -------------
  13320. # Create "$as_dir" as a directory, including parents if necessary.
  13321. as_fn_mkdir_p ()
  13322. {
  13323. case $as_dir in #(
  13324. -*) as_dir=./$as_dir;;
  13325. esac
  13326. test -d "$as_dir" || eval $as_mkdir_p || {
  13327. as_dirs=
  13328. while :; do
  13329. case $as_dir in #(
  13330. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  13331. *) as_qdir=$as_dir;;
  13332. esac
  13333. as_dirs="'$as_qdir' $as_dirs"
  13334. as_dir=`$as_dirname -- "$as_dir" ||
  13335. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13336. X"$as_dir" : 'X\(//\)[^/]' \| \
  13337. X"$as_dir" : 'X\(//\)$' \| \
  13338. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  13339. $as_echo X"$as_dir" |
  13340. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13341. s//\1/
  13342. q
  13343. }
  13344. /^X\(\/\/\)[^/].*/{
  13345. s//\1/
  13346. q
  13347. }
  13348. /^X\(\/\/\)$/{
  13349. s//\1/
  13350. q
  13351. }
  13352. /^X\(\/\).*/{
  13353. s//\1/
  13354. q
  13355. }
  13356. s/.*/./; q'`
  13357. test -d "$as_dir" && break
  13358. done
  13359. test -z "$as_dirs" || eval "mkdir $as_dirs"
  13360. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  13361. } # as_fn_mkdir_p
  13362. if mkdir -p . 2>/dev/null; then
  13363. as_mkdir_p='mkdir -p "$as_dir"'
  13364. else
  13365. test -d ./-p && rmdir ./-p
  13366. as_mkdir_p=false
  13367. fi
  13368. if test -x / >/dev/null 2>&1; then
  13369. as_test_x='test -x'
  13370. else
  13371. if ls -dL / >/dev/null 2>&1; then
  13372. as_ls_L_option=L
  13373. else
  13374. as_ls_L_option=
  13375. fi
  13376. as_test_x='
  13377. eval sh -c '\''
  13378. if test -d "$1"; then
  13379. test -d "$1/.";
  13380. else
  13381. case $1 in #(
  13382. -*)set "./$1";;
  13383. esac;
  13384. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  13385. ???[sx]*):;;*)false;;esac;fi
  13386. '\'' sh
  13387. '
  13388. fi
  13389. as_executable_p=$as_test_x
  13390. # Sed expression to map a string onto a valid CPP name.
  13391. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  13392. # Sed expression to map a string onto a valid variable name.
  13393. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  13394. exec 6>&1
  13395. ## ----------------------------------- ##
  13396. ## Main body of $CONFIG_STATUS script. ##
  13397. ## ----------------------------------- ##
  13398. _ASEOF
  13399. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  13400. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13401. # Save the log message, to keep $0 and so on meaningful, and to
  13402. # report actual input values of CONFIG_FILES etc. instead of their
  13403. # values after options handling.
  13404. ac_log="
  13405. This file was extended by aria2 $as_me 1.6.1, which was
  13406. generated by GNU Autoconf 2.64. Invocation command line was
  13407. CONFIG_FILES = $CONFIG_FILES
  13408. CONFIG_HEADERS = $CONFIG_HEADERS
  13409. CONFIG_LINKS = $CONFIG_LINKS
  13410. CONFIG_COMMANDS = $CONFIG_COMMANDS
  13411. $ $0 $@
  13412. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  13413. "
  13414. _ACEOF
  13415. case $ac_config_files in *"
  13416. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  13417. esac
  13418. case $ac_config_headers in *"
  13419. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  13420. esac
  13421. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13422. # Files that config.status was made for.
  13423. config_files="$ac_config_files"
  13424. config_headers="$ac_config_headers"
  13425. config_commands="$ac_config_commands"
  13426. _ACEOF
  13427. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13428. ac_cs_usage="\
  13429. \`$as_me' instantiates files and other configuration actions
  13430. from templates according to the current configuration. Unless the files
  13431. and actions are specified as TAGs, all are instantiated by default.
  13432. Usage: $0 [OPTION]... [TAG]...
  13433. -h, --help print this help, then exit
  13434. -V, --version print version number and configuration settings, then exit
  13435. -q, --quiet, --silent
  13436. do not print progress messages
  13437. -d, --debug don't remove temporary files
  13438. --recheck update $as_me by reconfiguring in the same conditions
  13439. --file=FILE[:TEMPLATE]
  13440. instantiate the configuration file FILE
  13441. --header=FILE[:TEMPLATE]
  13442. instantiate the configuration header FILE
  13443. Configuration files:
  13444. $config_files
  13445. Configuration headers:
  13446. $config_headers
  13447. Configuration commands:
  13448. $config_commands
  13449. Report bugs to <t-tujikawa@users.sourceforge.net>.
  13450. aria2 home page: <http://aria2.sourceforge.net/>."
  13451. _ACEOF
  13452. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13453. ac_cs_version="\\
  13454. aria2 config.status 1.6.1
  13455. configured by $0, generated by GNU Autoconf 2.64,
  13456. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  13457. Copyright (C) 2009 Free Software Foundation, Inc.
  13458. This config.status script is free software; the Free Software Foundation
  13459. gives unlimited permission to copy, distribute and modify it."
  13460. ac_pwd='$ac_pwd'
  13461. srcdir='$srcdir'
  13462. INSTALL='$INSTALL'
  13463. MKDIR_P='$MKDIR_P'
  13464. AWK='$AWK'
  13465. test -n "\$AWK" || AWK=awk
  13466. _ACEOF
  13467. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13468. # The default lists apply if the user does not specify any file.
  13469. ac_need_defaults=:
  13470. while test $# != 0
  13471. do
  13472. case $1 in
  13473. --*=*)
  13474. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  13475. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  13476. ac_shift=:
  13477. ;;
  13478. *)
  13479. ac_option=$1
  13480. ac_optarg=$2
  13481. ac_shift=shift
  13482. ;;
  13483. esac
  13484. case $ac_option in
  13485. # Handling of the options.
  13486. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  13487. ac_cs_recheck=: ;;
  13488. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  13489. $as_echo "$ac_cs_version"; exit ;;
  13490. --debug | --debu | --deb | --de | --d | -d )
  13491. debug=: ;;
  13492. --file | --fil | --fi | --f )
  13493. $ac_shift
  13494. case $ac_optarg in
  13495. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13496. esac
  13497. as_fn_append CONFIG_FILES " '$ac_optarg'"
  13498. ac_need_defaults=false;;
  13499. --header | --heade | --head | --hea )
  13500. $ac_shift
  13501. case $ac_optarg in
  13502. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13503. esac
  13504. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  13505. ac_need_defaults=false;;
  13506. --he | --h)
  13507. # Conflict between --help and --header
  13508. as_fn_error "ambiguous option: \`$1'
  13509. Try \`$0 --help' for more information.";;
  13510. --help | --hel | -h )
  13511. $as_echo "$ac_cs_usage"; exit ;;
  13512. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  13513. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  13514. ac_cs_silent=: ;;
  13515. # This is an error.
  13516. -*) as_fn_error "unrecognized option: \`$1'
  13517. Try \`$0 --help' for more information." ;;
  13518. *) as_fn_append ac_config_targets " $1"
  13519. ac_need_defaults=false ;;
  13520. esac
  13521. shift
  13522. done
  13523. ac_configure_extra_args=
  13524. if $ac_cs_silent; then
  13525. exec 6>/dev/null
  13526. ac_configure_extra_args="$ac_configure_extra_args --silent"
  13527. fi
  13528. _ACEOF
  13529. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13530. if \$ac_cs_recheck; then
  13531. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  13532. shift
  13533. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  13534. CONFIG_SHELL='$SHELL'
  13535. export CONFIG_SHELL
  13536. exec "\$@"
  13537. fi
  13538. _ACEOF
  13539. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13540. exec 5>>config.log
  13541. {
  13542. echo
  13543. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  13544. ## Running $as_me. ##
  13545. _ASBOX
  13546. $as_echo "$ac_log"
  13547. } >&5
  13548. _ACEOF
  13549. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13550. #
  13551. # INIT-COMMANDS
  13552. #
  13553. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  13554. # Capture the value of obsolete ALL_LINGUAS because we need it to compute
  13555. # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
  13556. # from automake < 1.5.
  13557. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
  13558. # Capture the value of LINGUAS because we need it to compute CATALOGS.
  13559. LINGUAS="${LINGUAS-%UNSET%}"
  13560. _ACEOF
  13561. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13562. # Handling of arguments.
  13563. for ac_config_target in $ac_config_targets
  13564. do
  13565. case $ac_config_target in
  13566. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  13567. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  13568. "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
  13569. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  13570. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  13571. "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  13572. "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
  13573. "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
  13574. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  13575. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  13576. *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  13577. esac
  13578. done
  13579. # If the user did not use the arguments to specify the items to instantiate,
  13580. # then the envvar interface is used. Set only those that are not.
  13581. # We use the long form for the default assignment because of an extremely
  13582. # bizarre bug on SunOS 4.1.3.
  13583. if $ac_need_defaults; then
  13584. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  13585. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  13586. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  13587. fi
  13588. # Have a temporary directory for convenience. Make it in the build tree
  13589. # simply because there is no reason against having it here, and in addition,
  13590. # creating and moving files from /tmp can sometimes cause problems.
  13591. # Hook for its removal unless debugging.
  13592. # Note that there is a small window in which the directory will not be cleaned:
  13593. # after its creation but before its name has been assigned to `$tmp'.
  13594. $debug ||
  13595. {
  13596. tmp=
  13597. trap 'exit_status=$?
  13598. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  13599. ' 0
  13600. trap 'as_fn_exit 1' 1 2 13 15
  13601. }
  13602. # Create a (secure) tmp directory for tmp files.
  13603. {
  13604. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  13605. test -n "$tmp" && test -d "$tmp"
  13606. } ||
  13607. {
  13608. tmp=./conf$$-$RANDOM
  13609. (umask 077 && mkdir "$tmp")
  13610. } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  13611. # Set up the scripts for CONFIG_FILES section.
  13612. # No need to generate them if there are no CONFIG_FILES.
  13613. # This happens for instance with `./config.status config.h'.
  13614. if test -n "$CONFIG_FILES"; then
  13615. ac_cr=`echo X | tr X '\015'`
  13616. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  13617. # But we know of no other shell where ac_cr would be empty at this
  13618. # point, so we can use a bashism as a fallback.
  13619. if test "x$ac_cr" = x; then
  13620. eval ac_cr=\$\'\\r\'
  13621. fi
  13622. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  13623. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  13624. ac_cs_awk_cr='\r'
  13625. else
  13626. ac_cs_awk_cr=$ac_cr
  13627. fi
  13628. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  13629. _ACEOF
  13630. {
  13631. echo "cat >conf$$subs.awk <<_ACEOF" &&
  13632. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  13633. echo "_ACEOF"
  13634. } >conf$$subs.sh ||
  13635. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  13636. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  13637. ac_delim='%!_!# '
  13638. for ac_last_try in false false false false false :; do
  13639. . ./conf$$subs.sh ||
  13640. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  13641. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  13642. if test $ac_delim_n = $ac_delim_num; then
  13643. break
  13644. elif $ac_last_try; then
  13645. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  13646. else
  13647. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  13648. fi
  13649. done
  13650. rm -f conf$$subs.sh
  13651. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13652. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  13653. _ACEOF
  13654. sed -n '
  13655. h
  13656. s/^/S["/; s/!.*/"]=/
  13657. p
  13658. g
  13659. s/^[^!]*!//
  13660. :repl
  13661. t repl
  13662. s/'"$ac_delim"'$//
  13663. t delim
  13664. :nl
  13665. h
  13666. s/\(.\{148\}\).*/\1/
  13667. t more1
  13668. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  13669. p
  13670. n
  13671. b repl
  13672. :more1
  13673. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  13674. p
  13675. g
  13676. s/.\{148\}//
  13677. t nl
  13678. :delim
  13679. h
  13680. s/\(.\{148\}\).*/\1/
  13681. t more2
  13682. s/["\\]/\\&/g; s/^/"/; s/$/"/
  13683. p
  13684. b
  13685. :more2
  13686. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  13687. p
  13688. g
  13689. s/.\{148\}//
  13690. t delim
  13691. ' <conf$$subs.awk | sed '
  13692. /^[^""]/{
  13693. N
  13694. s/\n//
  13695. }
  13696. ' >>$CONFIG_STATUS || ac_write_fail=1
  13697. rm -f conf$$subs.awk
  13698. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13699. _ACAWK
  13700. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  13701. for (key in S) S_is_set[key] = 1
  13702. FS = ""
  13703. }
  13704. {
  13705. line = $ 0
  13706. nfields = split(line, field, "@")
  13707. substed = 0
  13708. len = length(field[1])
  13709. for (i = 2; i < nfields; i++) {
  13710. key = field[i]
  13711. keylen = length(key)
  13712. if (S_is_set[key]) {
  13713. value = S[key]
  13714. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  13715. len += length(value) + length(field[++i])
  13716. substed = 1
  13717. } else
  13718. len += 1 + keylen
  13719. }
  13720. print line
  13721. }
  13722. _ACAWK
  13723. _ACEOF
  13724. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13725. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  13726. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  13727. else
  13728. cat
  13729. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  13730. || as_fn_error "could not setup config files machinery" "$LINENO" 5
  13731. _ACEOF
  13732. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  13733. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  13734. # trailing colons and then remove the whole line if VPATH becomes empty
  13735. # (actually we leave an empty line to preserve line numbers).
  13736. if test "x$srcdir" = x.; then
  13737. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  13738. s/:*\$(srcdir):*/:/
  13739. s/:*\${srcdir}:*/:/
  13740. s/:*@srcdir@:*/:/
  13741. s/^\([^=]*=[ ]*\):*/\1/
  13742. s/:*$//
  13743. s/^[^=]*=[ ]*$//
  13744. }'
  13745. fi
  13746. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13747. fi # test -n "$CONFIG_FILES"
  13748. # Set up the scripts for CONFIG_HEADERS section.
  13749. # No need to generate them if there are no CONFIG_HEADERS.
  13750. # This happens for instance with `./config.status Makefile'.
  13751. if test -n "$CONFIG_HEADERS"; then
  13752. cat >"$tmp/defines.awk" <<\_ACAWK ||
  13753. BEGIN {
  13754. _ACEOF
  13755. # Transform confdefs.h into an awk script `defines.awk', embedded as
  13756. # here-document in config.status, that substitutes the proper values into
  13757. # config.h.in to produce config.h.
  13758. # Create a delimiter string that does not exist in confdefs.h, to ease
  13759. # handling of long lines.
  13760. ac_delim='%!_!# '
  13761. for ac_last_try in false false :; do
  13762. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  13763. if test -z "$ac_t"; then
  13764. break
  13765. elif $ac_last_try; then
  13766. as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  13767. else
  13768. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  13769. fi
  13770. done
  13771. # For the awk script, D is an array of macro values keyed by name,
  13772. # likewise P contains macro parameters if any. Preserve backslash
  13773. # newline sequences.
  13774. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  13775. sed -n '
  13776. s/.\{148\}/&'"$ac_delim"'/g
  13777. t rset
  13778. :rset
  13779. s/^[ ]*#[ ]*define[ ][ ]*/ /
  13780. t def
  13781. d
  13782. :def
  13783. s/\\$//
  13784. t bsnl
  13785. s/["\\]/\\&/g
  13786. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  13787. D["\1"]=" \3"/p
  13788. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  13789. d
  13790. :bsnl
  13791. s/["\\]/\\&/g
  13792. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  13793. D["\1"]=" \3\\\\\\n"\\/p
  13794. t cont
  13795. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  13796. t cont
  13797. d
  13798. :cont
  13799. n
  13800. s/.\{148\}/&'"$ac_delim"'/g
  13801. t clear
  13802. :clear
  13803. s/\\$//
  13804. t bsnlc
  13805. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  13806. d
  13807. :bsnlc
  13808. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  13809. b cont
  13810. ' <confdefs.h | sed '
  13811. s/'"$ac_delim"'/"\\\
  13812. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  13813. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13814. for (key in D) D_is_set[key] = 1
  13815. FS = ""
  13816. }
  13817. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  13818. line = \$ 0
  13819. split(line, arg, " ")
  13820. if (arg[1] == "#") {
  13821. defundef = arg[2]
  13822. mac1 = arg[3]
  13823. } else {
  13824. defundef = substr(arg[1], 2)
  13825. mac1 = arg[2]
  13826. }
  13827. split(mac1, mac2, "(") #)
  13828. macro = mac2[1]
  13829. prefix = substr(line, 1, index(line, defundef) - 1)
  13830. if (D_is_set[macro]) {
  13831. # Preserve the white space surrounding the "#".
  13832. print prefix "define", macro P[macro] D[macro]
  13833. next
  13834. } else {
  13835. # Replace #undef with comments. This is necessary, for example,
  13836. # in the case of _POSIX_SOURCE, which is predefined and required
  13837. # on some systems where configure will not decide to define it.
  13838. if (defundef == "undef") {
  13839. print "/*", prefix defundef, macro, "*/"
  13840. next
  13841. }
  13842. }
  13843. }
  13844. { print }
  13845. _ACAWK
  13846. _ACEOF
  13847. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13848. as_fn_error "could not setup config headers machinery" "$LINENO" 5
  13849. fi # test -n "$CONFIG_HEADERS"
  13850. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  13851. shift
  13852. for ac_tag
  13853. do
  13854. case $ac_tag in
  13855. :[FHLC]) ac_mode=$ac_tag; continue;;
  13856. esac
  13857. case $ac_mode$ac_tag in
  13858. :[FHL]*:*);;
  13859. :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  13860. :[FH]-) ac_tag=-:-;;
  13861. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  13862. esac
  13863. ac_save_IFS=$IFS
  13864. IFS=:
  13865. set x $ac_tag
  13866. IFS=$ac_save_IFS
  13867. shift
  13868. ac_file=$1
  13869. shift
  13870. case $ac_mode in
  13871. :L) ac_source=$1;;
  13872. :[FH])
  13873. ac_file_inputs=
  13874. for ac_f
  13875. do
  13876. case $ac_f in
  13877. -) ac_f="$tmp/stdin";;
  13878. *) # Look for the file first in the build tree, then in the source tree
  13879. # (if the path is not absolute). The absolute path cannot be DOS-style,
  13880. # because $ac_f cannot contain `:'.
  13881. test -f "$ac_f" ||
  13882. case $ac_f in
  13883. [\\/$]*) false;;
  13884. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  13885. esac ||
  13886. as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  13887. esac
  13888. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  13889. as_fn_append ac_file_inputs " '$ac_f'"
  13890. done
  13891. # Let's still pretend it is `configure' which instantiates (i.e., don't
  13892. # use $as_me), people would be surprised to read:
  13893. # /* config.h. Generated by config.status. */
  13894. configure_input='Generated from '`
  13895. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  13896. `' by configure.'
  13897. if test x"$ac_file" != x-; then
  13898. configure_input="$ac_file. $configure_input"
  13899. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  13900. $as_echo "$as_me: creating $ac_file" >&6;}
  13901. fi
  13902. # Neutralize special characters interpreted by sed in replacement strings.
  13903. case $configure_input in #(
  13904. *\&* | *\|* | *\\* )
  13905. ac_sed_conf_input=`$as_echo "$configure_input" |
  13906. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  13907. *) ac_sed_conf_input=$configure_input;;
  13908. esac
  13909. case $ac_tag in
  13910. *:-:* | *:-) cat >"$tmp/stdin" \
  13911. || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  13912. esac
  13913. ;;
  13914. esac
  13915. ac_dir=`$as_dirname -- "$ac_file" ||
  13916. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13917. X"$ac_file" : 'X\(//\)[^/]' \| \
  13918. X"$ac_file" : 'X\(//\)$' \| \
  13919. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  13920. $as_echo X"$ac_file" |
  13921. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13922. s//\1/
  13923. q
  13924. }
  13925. /^X\(\/\/\)[^/].*/{
  13926. s//\1/
  13927. q
  13928. }
  13929. /^X\(\/\/\)$/{
  13930. s//\1/
  13931. q
  13932. }
  13933. /^X\(\/\).*/{
  13934. s//\1/
  13935. q
  13936. }
  13937. s/.*/./; q'`
  13938. as_dir="$ac_dir"; as_fn_mkdir_p
  13939. ac_builddir=.
  13940. case "$ac_dir" in
  13941. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13942. *)
  13943. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  13944. # A ".." for each directory in $ac_dir_suffix.
  13945. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  13946. case $ac_top_builddir_sub in
  13947. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13948. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  13949. esac ;;
  13950. esac
  13951. ac_abs_top_builddir=$ac_pwd
  13952. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  13953. # for backward compatibility:
  13954. ac_top_builddir=$ac_top_build_prefix
  13955. case $srcdir in
  13956. .) # We are building in place.
  13957. ac_srcdir=.
  13958. ac_top_srcdir=$ac_top_builddir_sub
  13959. ac_abs_top_srcdir=$ac_pwd ;;
  13960. [\\/]* | ?:[\\/]* ) # Absolute name.
  13961. ac_srcdir=$srcdir$ac_dir_suffix;
  13962. ac_top_srcdir=$srcdir
  13963. ac_abs_top_srcdir=$srcdir ;;
  13964. *) # Relative name.
  13965. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  13966. ac_top_srcdir=$ac_top_build_prefix$srcdir
  13967. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  13968. esac
  13969. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  13970. case $ac_mode in
  13971. :F)
  13972. #
  13973. # CONFIG_FILE
  13974. #
  13975. case $INSTALL in
  13976. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  13977. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  13978. esac
  13979. ac_MKDIR_P=$MKDIR_P
  13980. case $MKDIR_P in
  13981. [\\/$]* | ?:[\\/]* ) ;;
  13982. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  13983. esac
  13984. _ACEOF
  13985. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13986. # If the template does not know about datarootdir, expand it.
  13987. # FIXME: This hack should be removed a few years after 2.60.
  13988. ac_datarootdir_hack=; ac_datarootdir_seen=
  13989. ac_sed_dataroot='
  13990. /datarootdir/ {
  13991. p
  13992. q
  13993. }
  13994. /@datadir@/p
  13995. /@docdir@/p
  13996. /@infodir@/p
  13997. /@localedir@/p
  13998. /@mandir@/p'
  13999. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  14000. *datarootdir*) ac_datarootdir_seen=yes;;
  14001. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  14002. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  14003. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  14004. _ACEOF
  14005. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14006. ac_datarootdir_hack='
  14007. s&@datadir@&$datadir&g
  14008. s&@docdir@&$docdir&g
  14009. s&@infodir@&$infodir&g
  14010. s&@localedir@&$localedir&g
  14011. s&@mandir@&$mandir&g
  14012. s&\\\${datarootdir}&$datarootdir&g' ;;
  14013. esac
  14014. _ACEOF
  14015. # Neutralize VPATH when `$srcdir' = `.'.
  14016. # Shell code in configure.ac might set extrasub.
  14017. # FIXME: do we really want to maintain this feature?
  14018. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14019. ac_sed_extra="$ac_vpsub
  14020. $extrasub
  14021. _ACEOF
  14022. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14023. :t
  14024. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  14025. s|@configure_input@|$ac_sed_conf_input|;t t
  14026. s&@top_builddir@&$ac_top_builddir_sub&;t t
  14027. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  14028. s&@srcdir@&$ac_srcdir&;t t
  14029. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  14030. s&@top_srcdir@&$ac_top_srcdir&;t t
  14031. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  14032. s&@builddir@&$ac_builddir&;t t
  14033. s&@abs_builddir@&$ac_abs_builddir&;t t
  14034. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  14035. s&@INSTALL@&$ac_INSTALL&;t t
  14036. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  14037. $ac_datarootdir_hack
  14038. "
  14039. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  14040. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14041. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  14042. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  14043. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  14044. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14045. which seems to be undefined. Please make sure it is defined." >&5
  14046. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14047. which seems to be undefined. Please make sure it is defined." >&2;}
  14048. rm -f "$tmp/stdin"
  14049. case $ac_file in
  14050. -) cat "$tmp/out" && rm -f "$tmp/out";;
  14051. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  14052. esac \
  14053. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14054. ;;
  14055. :H)
  14056. #
  14057. # CONFIG_HEADER
  14058. #
  14059. if test x"$ac_file" != x-; then
  14060. {
  14061. $as_echo "/* $configure_input */" \
  14062. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  14063. } >"$tmp/config.h" \
  14064. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14065. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  14066. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  14067. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  14068. else
  14069. rm -f "$ac_file"
  14070. mv "$tmp/config.h" "$ac_file" \
  14071. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14072. fi
  14073. else
  14074. $as_echo "/* $configure_input */" \
  14075. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  14076. || as_fn_error "could not create -" "$LINENO" 5
  14077. fi
  14078. # Compute "$ac_file"'s index in $config_headers.
  14079. _am_arg="$ac_file"
  14080. _am_stamp_count=1
  14081. for _am_header in $config_headers :; do
  14082. case $_am_header in
  14083. $_am_arg | $_am_arg:* )
  14084. break ;;
  14085. * )
  14086. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  14087. esac
  14088. done
  14089. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  14090. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14091. X"$_am_arg" : 'X\(//\)[^/]' \| \
  14092. X"$_am_arg" : 'X\(//\)$' \| \
  14093. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  14094. $as_echo X"$_am_arg" |
  14095. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14096. s//\1/
  14097. q
  14098. }
  14099. /^X\(\/\/\)[^/].*/{
  14100. s//\1/
  14101. q
  14102. }
  14103. /^X\(\/\/\)$/{
  14104. s//\1/
  14105. q
  14106. }
  14107. /^X\(\/\).*/{
  14108. s//\1/
  14109. q
  14110. }
  14111. s/.*/./; q'`/stamp-h$_am_stamp_count
  14112. ;;
  14113. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  14114. $as_echo "$as_me: executing $ac_file commands" >&6;}
  14115. ;;
  14116. esac
  14117. case $ac_file$ac_mode in
  14118. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  14119. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  14120. # are listed without --file. Let's play safe and only enable the eval
  14121. # if we detect the quoting.
  14122. case $CONFIG_FILES in
  14123. *\'*) eval set x "$CONFIG_FILES" ;;
  14124. *) set x $CONFIG_FILES ;;
  14125. esac
  14126. shift
  14127. for mf
  14128. do
  14129. # Strip MF so we end up with the name of the file.
  14130. mf=`echo "$mf" | sed -e 's/:.*$//'`
  14131. # Check whether this is an Automake generated Makefile or not.
  14132. # We used to match only the files named `Makefile.in', but
  14133. # some people rename them; so instead we look at the file content.
  14134. # Grep'ing the first line is not enough: some people post-process
  14135. # each Makefile.in and add a new line on top of each file to say so.
  14136. # Grep'ing the whole file is not good either: AIX grep has a line
  14137. # limit of 2048, but all sed's we know have understand at least 4000.
  14138. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  14139. dirpart=`$as_dirname -- "$mf" ||
  14140. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14141. X"$mf" : 'X\(//\)[^/]' \| \
  14142. X"$mf" : 'X\(//\)$' \| \
  14143. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  14144. $as_echo X"$mf" |
  14145. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14146. s//\1/
  14147. q
  14148. }
  14149. /^X\(\/\/\)[^/].*/{
  14150. s//\1/
  14151. q
  14152. }
  14153. /^X\(\/\/\)$/{
  14154. s//\1/
  14155. q
  14156. }
  14157. /^X\(\/\).*/{
  14158. s//\1/
  14159. q
  14160. }
  14161. s/.*/./; q'`
  14162. else
  14163. continue
  14164. fi
  14165. # Extract the definition of DEPDIR, am__include, and am__quote
  14166. # from the Makefile without running `make'.
  14167. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  14168. test -z "$DEPDIR" && continue
  14169. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  14170. test -z "am__include" && continue
  14171. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  14172. # When using ansi2knr, U may be empty or an underscore; expand it
  14173. U=`sed -n 's/^U = //p' < "$mf"`
  14174. # Find all dependency output files, they are included files with
  14175. # $(DEPDIR) in their names. We invoke sed twice because it is the
  14176. # simplest approach to changing $(DEPDIR) to its actual value in the
  14177. # expansion.
  14178. for file in `sed -n "
  14179. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  14180. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  14181. # Make sure the directory exists.
  14182. test -f "$dirpart/$file" && continue
  14183. fdir=`$as_dirname -- "$file" ||
  14184. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14185. X"$file" : 'X\(//\)[^/]' \| \
  14186. X"$file" : 'X\(//\)$' \| \
  14187. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  14188. $as_echo X"$file" |
  14189. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14190. s//\1/
  14191. q
  14192. }
  14193. /^X\(\/\/\)[^/].*/{
  14194. s//\1/
  14195. q
  14196. }
  14197. /^X\(\/\/\)$/{
  14198. s//\1/
  14199. q
  14200. }
  14201. /^X\(\/\).*/{
  14202. s//\1/
  14203. q
  14204. }
  14205. s/.*/./; q'`
  14206. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  14207. # echo "creating $dirpart/$file"
  14208. echo '# dummy' > "$dirpart/$file"
  14209. done
  14210. done
  14211. }
  14212. ;;
  14213. "po-directories":C)
  14214. for ac_file in $CONFIG_FILES; do
  14215. # Support "outfile[:infile[:infile...]]"
  14216. case "$ac_file" in
  14217. *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  14218. esac
  14219. # PO directories have a Makefile.in generated from Makefile.in.in.
  14220. case "$ac_file" in */Makefile.in)
  14221. # Adjust a relative srcdir.
  14222. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  14223. ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
  14224. ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  14225. # In autoconf-2.13 it is called $ac_given_srcdir.
  14226. # In autoconf-2.50 it is called $srcdir.
  14227. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  14228. case "$ac_given_srcdir" in
  14229. .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  14230. /*) top_srcdir="$ac_given_srcdir" ;;
  14231. *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
  14232. esac
  14233. # Treat a directory as a PO directory if and only if it has a
  14234. # POTFILES.in file. This allows packages to have multiple PO
  14235. # directories under different names or in different locations.
  14236. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
  14237. rm -f "$ac_dir/POTFILES"
  14238. test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
  14239. cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
  14240. POMAKEFILEDEPS="POTFILES.in"
  14241. # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
  14242. # on $ac_dir but don't depend on user-specified configuration
  14243. # parameters.
  14244. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  14245. # The LINGUAS file contains the set of available languages.
  14246. if test -n "$OBSOLETE_ALL_LINGUAS"; then
  14247. test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
  14248. fi
  14249. ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  14250. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  14251. eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  14252. POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  14253. else
  14254. # The set of available languages was given in configure.in.
  14255. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  14256. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
  14257. fi
  14258. # Compute POFILES
  14259. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
  14260. # Compute UPDATEPOFILES
  14261. # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
  14262. # Compute DUMMYPOFILES
  14263. # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
  14264. # Compute GMOFILES
  14265. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
  14266. case "$ac_given_srcdir" in
  14267. .) srcdirpre= ;;
  14268. *) srcdirpre='$(srcdir)/' ;;
  14269. esac
  14270. POFILES=
  14271. UPDATEPOFILES=
  14272. DUMMYPOFILES=
  14273. GMOFILES=
  14274. for lang in $ALL_LINGUAS; do
  14275. POFILES="$POFILES $srcdirpre$lang.po"
  14276. UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  14277. DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  14278. GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  14279. done
  14280. # CATALOGS depends on both $ac_dir and the user's LINGUAS
  14281. # environment variable.
  14282. INST_LINGUAS=
  14283. if test -n "$ALL_LINGUAS"; then
  14284. for presentlang in $ALL_LINGUAS; do
  14285. useit=no
  14286. if test "%UNSET%" != "$LINGUAS"; then
  14287. desiredlanguages="$LINGUAS"
  14288. else
  14289. desiredlanguages="$ALL_LINGUAS"
  14290. fi
  14291. for desiredlang in $desiredlanguages; do
  14292. # Use the presentlang catalog if desiredlang is
  14293. # a. equal to presentlang, or
  14294. # b. a variant of presentlang (because in this case,
  14295. # presentlang can be used as a fallback for messages
  14296. # which are not translated in the desiredlang catalog).
  14297. case "$desiredlang" in
  14298. "$presentlang"*) useit=yes;;
  14299. esac
  14300. done
  14301. if test $useit = yes; then
  14302. INST_LINGUAS="$INST_LINGUAS $presentlang"
  14303. fi
  14304. done
  14305. fi
  14306. CATALOGS=
  14307. if test -n "$INST_LINGUAS"; then
  14308. for lang in $INST_LINGUAS; do
  14309. CATALOGS="$CATALOGS $lang.gmo"
  14310. done
  14311. fi
  14312. test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
  14313. 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"
  14314. for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
  14315. if test -f "$f"; then
  14316. case "$f" in
  14317. *.orig | *.bak | *~) ;;
  14318. *) cat "$f" >> "$ac_dir/Makefile" ;;
  14319. esac
  14320. fi
  14321. done
  14322. fi
  14323. ;;
  14324. esac
  14325. done ;;
  14326. esac
  14327. done # for ac_tag
  14328. as_fn_exit 0
  14329. _ACEOF
  14330. ac_clean_files=$ac_clean_files_save
  14331. test $ac_write_fail = 0 ||
  14332. as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  14333. # configure is writing to config.log, and then calls config.status.
  14334. # config.status does its own redirection, appending to config.log.
  14335. # Unfortunately, on DOS this fails, as config.log is still kept open
  14336. # by configure, so config.status won't be able to write to it; its
  14337. # output is simply discarded. So we exec the FD to /dev/null,
  14338. # effectively closing config.log, so it can be properly (re)opened and
  14339. # appended to by config.status. When coming back to configure, we
  14340. # need to make the FD available again.
  14341. if test "$no_create" != yes; then
  14342. ac_cs_success=:
  14343. ac_config_status_args=
  14344. test "$silent" = yes &&
  14345. ac_config_status_args="$ac_config_status_args --quiet"
  14346. exec 5>/dev/null
  14347. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  14348. exec 5>>config.log
  14349. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  14350. # would make configure fail if this is the last instruction.
  14351. $ac_cs_success || as_fn_exit $?
  14352. fi
  14353. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  14354. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  14355. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  14356. fi
  14357. echo " "
  14358. echo "Build: $build"
  14359. echo "Target: $target"
  14360. echo "Install prefix: $prefix"
  14361. echo "CFLAGS: $CFLAGS"
  14362. echo "CPPFLAGS: $CPPFLAGS"
  14363. echo "LDFLAGS: $LDFLAGS"
  14364. echo "LIBS: $LIBS"
  14365. echo "SQLite3: $have_sqlite3"
  14366. echo "GnuTLS: $have_libgnutls"
  14367. echo "OpenSSL: $have_openssl"
  14368. echo "CA Bundle: $ca_bundle"
  14369. echo "LibXML2: $have_libxml2"
  14370. echo "LibExpat: $have_libexpat"
  14371. echo "LibCares: $have_libcares"
  14372. echo "Libz: $have_libz"
  14373. echo "Epoll: $have_epoll"
  14374. echo "Bittorrent: $enable_bittorrent"
  14375. echo "Metalink: $enable_metalink"
  14376. echo "XML-RPC: $enable_xml_rpc"