configure 475 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.65 for aria2 1.9.1.
  4. #
  5. # Report bugs to <t-tujikawa@users.sourceforge.net>.
  6. #
  7. #
  8. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  9. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  10. # Inc.
  11. #
  12. #
  13. # This configure script is free software; the Free Software Foundation
  14. # gives unlimited permission to copy, distribute and modify it.
  15. ## -------------------- ##
  16. ## M4sh Initialization. ##
  17. ## -------------------- ##
  18. # Be more Bourne compatible
  19. DUALCASE=1; export DUALCASE # for MKS sh
  20. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  21. emulate sh
  22. NULLCMD=:
  23. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  24. # is contrary to our usage. Disable this feature.
  25. alias -g '${1+"$@"}'='"$@"'
  26. setopt NO_GLOB_SUBST
  27. else
  28. case `(set -o) 2>/dev/null` in #(
  29. *posix*) :
  30. set -o posix ;; #(
  31. *) :
  32. ;;
  33. esac
  34. fi
  35. as_nl='
  36. '
  37. export as_nl
  38. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  39. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  40. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  41. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  42. # Prefer a ksh shell builtin over an external printf program on Solaris,
  43. # but without wasting forks for bash or zsh.
  44. if test -z "$BASH_VERSION$ZSH_VERSION" \
  45. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  46. as_echo='print -r --'
  47. as_echo_n='print -rn --'
  48. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  49. as_echo='printf %s\n'
  50. as_echo_n='printf %s'
  51. else
  52. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  53. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  54. as_echo_n='/usr/ucb/echo -n'
  55. else
  56. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  57. as_echo_n_body='eval
  58. arg=$1;
  59. case $arg in #(
  60. *"$as_nl"*)
  61. expr "X$arg" : "X\\(.*\\)$as_nl";
  62. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  63. esac;
  64. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  65. '
  66. export as_echo_n_body
  67. as_echo_n='sh -c $as_echo_n_body as_echo'
  68. fi
  69. export as_echo_body
  70. as_echo='sh -c $as_echo_body as_echo'
  71. fi
  72. # The user is always right.
  73. if test "${PATH_SEPARATOR+set}" != set; then
  74. PATH_SEPARATOR=:
  75. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  76. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  77. PATH_SEPARATOR=';'
  78. }
  79. fi
  80. # IFS
  81. # We need space, tab and new line, in precisely that order. Quoting is
  82. # there to prevent editors from complaining about space-tab.
  83. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  84. # splitting by setting IFS to empty value.)
  85. IFS=" "" $as_nl"
  86. # Find who we are. Look in the path if we contain no directory separator.
  87. case $0 in #((
  88. *[\\/]* ) as_myself=$0 ;;
  89. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  90. for as_dir in $PATH
  91. do
  92. IFS=$as_save_IFS
  93. test -z "$as_dir" && as_dir=.
  94. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  95. done
  96. IFS=$as_save_IFS
  97. ;;
  98. esac
  99. # We did not find ourselves, most probably we were run as `sh COMMAND'
  100. # in which case we are not to be found in the path.
  101. if test "x$as_myself" = x; then
  102. as_myself=$0
  103. fi
  104. if test ! -f "$as_myself"; then
  105. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  106. exit 1
  107. fi
  108. # Unset variables that we do not need and which cause bugs (e.g. in
  109. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  110. # suppresses any "Segmentation fault" message there. '((' could
  111. # trigger a bug in pdksh 5.2.14.
  112. for as_var in BASH_ENV ENV MAIL MAILPATH
  113. do eval test x\${$as_var+set} = xset \
  114. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  115. done
  116. PS1='$ '
  117. PS2='> '
  118. PS4='+ '
  119. # NLS nuisances.
  120. LC_ALL=C
  121. export LC_ALL
  122. LANGUAGE=C
  123. export LANGUAGE
  124. # CDPATH.
  125. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  126. if test "x$CONFIG_SHELL" = x; then
  127. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  128. emulate sh
  129. NULLCMD=:
  130. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  131. # is contrary to our usage. Disable this feature.
  132. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  133. setopt NO_GLOB_SUBST
  134. else
  135. case \`(set -o) 2>/dev/null\` in #(
  136. *posix*) :
  137. set -o posix ;; #(
  138. *) :
  139. ;;
  140. esac
  141. fi
  142. "
  143. as_required="as_fn_return () { (exit \$1); }
  144. as_fn_success () { as_fn_return 0; }
  145. as_fn_failure () { as_fn_return 1; }
  146. as_fn_ret_success () { return 0; }
  147. as_fn_ret_failure () { return 1; }
  148. exitcode=0
  149. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  150. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  151. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  152. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  153. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  154. else
  155. exitcode=1; echo positional parameters were not saved.
  156. fi
  157. test x\$exitcode = x0 || exit 1"
  158. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  159. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  160. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  161. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  162. test \$(( 1 + 1 )) = 2 || exit 1"
  163. if (eval "$as_required") 2>/dev/null; then :
  164. as_have_required=yes
  165. else
  166. as_have_required=no
  167. fi
  168. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  169. else
  170. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  171. as_found=false
  172. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  173. do
  174. IFS=$as_save_IFS
  175. test -z "$as_dir" && as_dir=.
  176. as_found=:
  177. case $as_dir in #(
  178. /*)
  179. for as_base in sh bash ksh sh5; do
  180. # Try only shells that exist, to save several forks.
  181. as_shell=$as_dir/$as_base
  182. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  183. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  184. CONFIG_SHELL=$as_shell as_have_required=yes
  185. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  186. break 2
  187. fi
  188. fi
  189. done;;
  190. esac
  191. as_found=false
  192. done
  193. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  194. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  195. CONFIG_SHELL=$SHELL as_have_required=yes
  196. fi; }
  197. IFS=$as_save_IFS
  198. if test "x$CONFIG_SHELL" != x; then :
  199. # We cannot yet assume a decent shell, so we have to provide a
  200. # neutralization value for shells without unset; and this also
  201. # works around shells that cannot unset nonexistent variables.
  202. BASH_ENV=/dev/null
  203. ENV=/dev/null
  204. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  205. export CONFIG_SHELL
  206. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  207. fi
  208. if test x$as_have_required = xno; then :
  209. $as_echo "$0: This script requires a shell more modern than all"
  210. $as_echo "$0: the shells that I found on your system."
  211. if test x${ZSH_VERSION+set} = xset ; then
  212. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  213. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  214. else
  215. $as_echo "$0: Please tell bug-autoconf@gnu.org and
  216. $0: t-tujikawa@users.sourceforge.net about your system,
  217. $0: including any error possibly output before this
  218. $0: message. Then install a modern shell, or manually run
  219. $0: the script under such a shell if you do have one."
  220. fi
  221. exit 1
  222. fi
  223. fi
  224. fi
  225. SHELL=${CONFIG_SHELL-/bin/sh}
  226. export SHELL
  227. # Unset more variables known to interfere with behavior of common tools.
  228. CLICOLOR_FORCE= GREP_OPTIONS=
  229. unset CLICOLOR_FORCE GREP_OPTIONS
  230. ## --------------------- ##
  231. ## M4sh Shell Functions. ##
  232. ## --------------------- ##
  233. # as_fn_unset VAR
  234. # ---------------
  235. # Portably unset VAR.
  236. as_fn_unset ()
  237. {
  238. { eval $1=; unset $1;}
  239. }
  240. as_unset=as_fn_unset
  241. # as_fn_set_status STATUS
  242. # -----------------------
  243. # Set $? to STATUS, without forking.
  244. as_fn_set_status ()
  245. {
  246. return $1
  247. } # as_fn_set_status
  248. # as_fn_exit STATUS
  249. # -----------------
  250. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  251. as_fn_exit ()
  252. {
  253. set +e
  254. as_fn_set_status $1
  255. exit $1
  256. } # as_fn_exit
  257. # as_fn_mkdir_p
  258. # -------------
  259. # Create "$as_dir" as a directory, including parents if necessary.
  260. as_fn_mkdir_p ()
  261. {
  262. case $as_dir in #(
  263. -*) as_dir=./$as_dir;;
  264. esac
  265. test -d "$as_dir" || eval $as_mkdir_p || {
  266. as_dirs=
  267. while :; do
  268. case $as_dir in #(
  269. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  270. *) as_qdir=$as_dir;;
  271. esac
  272. as_dirs="'$as_qdir' $as_dirs"
  273. as_dir=`$as_dirname -- "$as_dir" ||
  274. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  275. X"$as_dir" : 'X\(//\)[^/]' \| \
  276. X"$as_dir" : 'X\(//\)$' \| \
  277. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  278. $as_echo X"$as_dir" |
  279. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  280. s//\1/
  281. q
  282. }
  283. /^X\(\/\/\)[^/].*/{
  284. s//\1/
  285. q
  286. }
  287. /^X\(\/\/\)$/{
  288. s//\1/
  289. q
  290. }
  291. /^X\(\/\).*/{
  292. s//\1/
  293. q
  294. }
  295. s/.*/./; q'`
  296. test -d "$as_dir" && break
  297. done
  298. test -z "$as_dirs" || eval "mkdir $as_dirs"
  299. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  300. } # as_fn_mkdir_p
  301. # as_fn_append VAR VALUE
  302. # ----------------------
  303. # Append the text in VALUE to the end of the definition contained in VAR. Take
  304. # advantage of any shell optimizations that allow amortized linear growth over
  305. # repeated appends, instead of the typical quadratic growth present in naive
  306. # implementations.
  307. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  308. eval 'as_fn_append ()
  309. {
  310. eval $1+=\$2
  311. }'
  312. else
  313. as_fn_append ()
  314. {
  315. eval $1=\$$1\$2
  316. }
  317. fi # as_fn_append
  318. # as_fn_arith ARG...
  319. # ------------------
  320. # Perform arithmetic evaluation on the ARGs, and store the result in the
  321. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  322. # must be portable across $(()) and expr.
  323. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  324. eval 'as_fn_arith ()
  325. {
  326. as_val=$(( $* ))
  327. }'
  328. else
  329. as_fn_arith ()
  330. {
  331. as_val=`expr "$@" || test $? -eq 1`
  332. }
  333. fi # as_fn_arith
  334. # as_fn_error ERROR [LINENO LOG_FD]
  335. # ---------------------------------
  336. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  337. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  338. # script with status $?, using 1 if that was 0.
  339. as_fn_error ()
  340. {
  341. as_status=$?; test $as_status -eq 0 && as_status=1
  342. if test "$3"; then
  343. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  344. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  345. fi
  346. $as_echo "$as_me: error: $1" >&2
  347. as_fn_exit $as_status
  348. } # as_fn_error
  349. if expr a : '\(a\)' >/dev/null 2>&1 &&
  350. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  351. as_expr=expr
  352. else
  353. as_expr=false
  354. fi
  355. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  356. as_basename=basename
  357. else
  358. as_basename=false
  359. fi
  360. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  361. as_dirname=dirname
  362. else
  363. as_dirname=false
  364. fi
  365. as_me=`$as_basename -- "$0" ||
  366. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  367. X"$0" : 'X\(//\)$' \| \
  368. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  369. $as_echo X/"$0" |
  370. sed '/^.*\/\([^/][^/]*\)\/*$/{
  371. s//\1/
  372. q
  373. }
  374. /^X\/\(\/\/\)$/{
  375. s//\1/
  376. q
  377. }
  378. /^X\/\(\/\).*/{
  379. s//\1/
  380. q
  381. }
  382. s/.*/./; q'`
  383. # Avoid depending upon Character Ranges.
  384. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  385. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  386. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  387. as_cr_digits='0123456789'
  388. as_cr_alnum=$as_cr_Letters$as_cr_digits
  389. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  390. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  391. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  392. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  393. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  394. sed -n '
  395. p
  396. /[$]LINENO/=
  397. ' <$as_myself |
  398. sed '
  399. s/[$]LINENO.*/&-/
  400. t lineno
  401. b
  402. :lineno
  403. N
  404. :loop
  405. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  406. t loop
  407. s/-\n.*//
  408. ' >$as_me.lineno &&
  409. chmod +x "$as_me.lineno" ||
  410. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  411. # Don't try to exec as it changes $[0], causing all sort of problems
  412. # (the dirname of $[0] is not the place where we might find the
  413. # original and so on. Autoconf is especially sensitive to this).
  414. . "./$as_me.lineno"
  415. # Exit status is that of the last command.
  416. exit
  417. }
  418. ECHO_C= ECHO_N= ECHO_T=
  419. case `echo -n x` in #(((((
  420. -n*)
  421. case `echo 'xy\c'` in
  422. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  423. xy) ECHO_C='\c';;
  424. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  425. ECHO_T=' ';;
  426. esac;;
  427. *)
  428. ECHO_N='-n';;
  429. esac
  430. rm -f conf$$ conf$$.exe conf$$.file
  431. if test -d conf$$.dir; then
  432. rm -f conf$$.dir/conf$$.file
  433. else
  434. rm -f conf$$.dir
  435. mkdir conf$$.dir 2>/dev/null
  436. fi
  437. if (echo >conf$$.file) 2>/dev/null; then
  438. if ln -s conf$$.file conf$$ 2>/dev/null; then
  439. as_ln_s='ln -s'
  440. # ... but there are two gotchas:
  441. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  442. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  443. # In both cases, we have to default to `cp -p'.
  444. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  445. as_ln_s='cp -p'
  446. elif ln conf$$.file conf$$ 2>/dev/null; then
  447. as_ln_s=ln
  448. else
  449. as_ln_s='cp -p'
  450. fi
  451. else
  452. as_ln_s='cp -p'
  453. fi
  454. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  455. rmdir conf$$.dir 2>/dev/null
  456. if mkdir -p . 2>/dev/null; then
  457. as_mkdir_p='mkdir -p "$as_dir"'
  458. else
  459. test -d ./-p && rmdir ./-p
  460. as_mkdir_p=false
  461. fi
  462. if test -x / >/dev/null 2>&1; then
  463. as_test_x='test -x'
  464. else
  465. if ls -dL / >/dev/null 2>&1; then
  466. as_ls_L_option=L
  467. else
  468. as_ls_L_option=
  469. fi
  470. as_test_x='
  471. eval sh -c '\''
  472. if test -d "$1"; then
  473. test -d "$1/.";
  474. else
  475. case $1 in #(
  476. -*)set "./$1";;
  477. esac;
  478. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  479. ???[sx]*):;;*)false;;esac;fi
  480. '\'' sh
  481. '
  482. fi
  483. as_executable_p=$as_test_x
  484. # Sed expression to map a string onto a valid CPP name.
  485. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  486. # Sed expression to map a string onto a valid variable name.
  487. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  488. test -n "$DJDIR" || exec 7<&0 </dev/null
  489. exec 6>&1
  490. # Name of the host.
  491. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  492. # so uname gets run too.
  493. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  494. #
  495. # Initializations.
  496. #
  497. ac_default_prefix=/usr/local
  498. ac_clean_files=
  499. ac_config_libobj_dir=.
  500. LIBOBJS=
  501. cross_compiling=no
  502. subdirs=
  503. MFLAGS=
  504. MAKEFLAGS=
  505. # Identity of this package.
  506. PACKAGE_NAME='aria2'
  507. PACKAGE_TARNAME='aria2'
  508. PACKAGE_VERSION='1.9.1'
  509. PACKAGE_STRING='aria2 1.9.1'
  510. PACKAGE_BUGREPORT='t-tujikawa@users.sourceforge.net'
  511. PACKAGE_URL='http://aria2.sourceforge.net/'
  512. ac_unique_file="src/a2io.h"
  513. # Factoring default headers for most tests.
  514. ac_includes_default="\
  515. #include <stdio.h>
  516. #ifdef HAVE_SYS_TYPES_H
  517. # include <sys/types.h>
  518. #endif
  519. #ifdef HAVE_SYS_STAT_H
  520. # include <sys/stat.h>
  521. #endif
  522. #ifdef STDC_HEADERS
  523. # include <stdlib.h>
  524. # include <stddef.h>
  525. #else
  526. # ifdef HAVE_STDLIB_H
  527. # include <stdlib.h>
  528. # endif
  529. #endif
  530. #ifdef HAVE_STRING_H
  531. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  532. # include <memory.h>
  533. # endif
  534. # include <string.h>
  535. #endif
  536. #ifdef HAVE_STRINGS_H
  537. # include <strings.h>
  538. #endif
  539. #ifdef HAVE_INTTYPES_H
  540. # include <inttypes.h>
  541. #endif
  542. #ifdef HAVE_STDINT_H
  543. # include <stdint.h>
  544. #endif
  545. #ifdef HAVE_UNISTD_H
  546. # include <unistd.h>
  547. #endif"
  548. gt_needs=
  549. ac_header_list=
  550. ac_func_list=
  551. ac_subst_vars='am__EXEEXT_FALSE
  552. am__EXEEXT_TRUE
  553. LTLIBOBJS
  554. HAVE_DAEMON_FALSE
  555. HAVE_DAEMON_TRUE
  556. HAVE_TIMEGM_FALSE
  557. HAVE_TIMEGM_TRUE
  558. HAVE_STRPTIME_FALSE
  559. HAVE_STRPTIME_TRUE
  560. HAVE_LOCALTIME_R_FALSE
  561. HAVE_LOCALTIME_R_TRUE
  562. HAVE_INET_ATON_FALSE
  563. HAVE_INET_ATON_TRUE
  564. HAVE_GETTIMEOFDAY_FALSE
  565. HAVE_GETTIMEOFDAY_TRUE
  566. HAVE_GETADDRINFO_FALSE
  567. HAVE_GETADDRINFO_TRUE
  568. HAVE_GAI_STRERROR_FALSE
  569. HAVE_GAI_STRERROR_TRUE
  570. HAVE_BASENAME_FALSE
  571. HAVE_BASENAME_TRUE
  572. HAVE_ASCTIME_R_FALSE
  573. HAVE_ASCTIME_R_TRUE
  574. HAVE_POSIX_FALLOCATE_FALSE
  575. HAVE_POSIX_FALLOCATE_TRUE
  576. HAVE_EPOLL_FALSE
  577. HAVE_EPOLL_TRUE
  578. POW_LIB
  579. LIBOBJS
  580. POSUB
  581. LTLIBINTL
  582. LIBINTL
  583. INTLLIBS
  584. INTL_LIBTOOL_SUFFIX_PREFIX
  585. INTLOBJS
  586. GENCAT
  587. INSTOBJEXT
  588. DATADIRNAME
  589. CATOBJEXT
  590. USE_INCLUDED_LIBINTL
  591. BUILD_INCLUDED_LIBINTL
  592. LTLIBC
  593. WINDRES
  594. WOE32
  595. WOE32DLL
  596. HAVE_WPRINTF
  597. HAVE_SNPRINTF
  598. HAVE_ASPRINTF
  599. HAVE_POSIX_PRINTF
  600. INTL_MACOSX_LIBS
  601. GLIBC21
  602. INTLBISON
  603. LTLIBICONV
  604. LIBICONV
  605. LTLIBMULTITHREAD
  606. LIBMULTITHREAD
  607. LTLIBTHREAD
  608. LIBTHREAD
  609. LIBPTH_PREFIX
  610. LTLIBPTH
  611. LIBPTH
  612. PRI_MACROS_BROKEN
  613. HAVE_VISIBILITY
  614. CFLAG_VISIBILITY
  615. GLIBC2
  616. XGETTEXT_EXTRA_OPTIONS
  617. MSGMERGE
  618. XGETTEXT_015
  619. XGETTEXT
  620. GMSGFMT_015
  621. MSGFMT_015
  622. GMSGFMT
  623. MSGFMT
  624. GETTEXT_MACRO_VERSION
  625. USE_NLS
  626. ALLOCA
  627. HAVE_SQLITE3_FALSE
  628. HAVE_SQLITE3_TRUE
  629. HAVE_LIBZ_FALSE
  630. HAVE_LIBZ_TRUE
  631. ENABLE_ASYNC_DNS_FALSE
  632. ENABLE_ASYNC_DNS_TRUE
  633. HAVE_LIBEXPAT_FALSE
  634. HAVE_LIBEXPAT_TRUE
  635. HAVE_LIBXML2_FALSE
  636. HAVE_LIBXML2_TRUE
  637. ENABLE_XML_RPC_FALSE
  638. ENABLE_XML_RPC_TRUE
  639. ENABLE_METALINK_LIBEXPAT_FALSE
  640. ENABLE_METALINK_LIBEXPAT_TRUE
  641. ENABLE_METALINK_LIBXML2_FALSE
  642. ENABLE_METALINK_LIBXML2_TRUE
  643. ENABLE_METALINK_FALSE
  644. ENABLE_METALINK_TRUE
  645. ENABLE_BITTORRENT_FALSE
  646. ENABLE_BITTORRENT_TRUE
  647. ENABLE_MESSAGE_DIGEST_FALSE
  648. ENABLE_MESSAGE_DIGEST_TRUE
  649. HAVE_LIBSSL_FALSE
  650. HAVE_LIBSSL_TRUE
  651. HAVE_LIBGNUTLS_FALSE
  652. HAVE_LIBGNUTLS_TRUE
  653. ca_bundle
  654. ENABLE_SSL_FALSE
  655. ENABLE_SSL_TRUE
  656. LIBZ_CPPFLAGS
  657. LIBZ_LIBS
  658. LIBCARES_CPPFLAGS
  659. LIBCARES_LIBS
  660. OPENSSL_CFLAGS
  661. OPENSSL_LIBS
  662. LIBGCRYPT_LIBS
  663. LIBGCRYPT_CFLAGS
  664. LIBGCRYPT_CONFIG
  665. LIBGNUTLS_CONFIG
  666. LIBGNUTLS_LIBS
  667. LIBGNUTLS_CFLAGS
  668. SQLITE3_LIBS
  669. SQLITE3_CFLAGS
  670. LIBEXPAT_CPPFLAGS
  671. LIBEXPAT_LIBS
  672. XML_LIBS
  673. XML_CPPFLAGS
  674. XML2_CONFIG
  675. PKG_CONFIG
  676. EGREP
  677. GREP
  678. CXXCPP
  679. YFLAGS
  680. YACC
  681. RANLIB
  682. am__fastdepCC_FALSE
  683. am__fastdepCC_TRUE
  684. CCDEPMODE
  685. ac_ct_CC
  686. CFLAGS
  687. CC
  688. am__fastdepCXX_FALSE
  689. am__fastdepCXX_TRUE
  690. CXXDEPMODE
  691. AMDEPBACKSLASH
  692. AMDEP_FALSE
  693. AMDEP_TRUE
  694. am__quote
  695. am__include
  696. DEPDIR
  697. OBJEXT
  698. EXEEXT
  699. ac_ct_CXX
  700. CPPFLAGS
  701. LDFLAGS
  702. CXXFLAGS
  703. CXX
  704. WINSOCK_LIBS
  705. CPPUNIT_LIBS
  706. CPPUNIT_CFLAGS
  707. CPPUNIT_CONFIG
  708. am__untar
  709. am__tar
  710. AMTAR
  711. am__leading_dot
  712. SET_MAKE
  713. AWK
  714. mkdir_p
  715. MKDIR_P
  716. INSTALL_STRIP_PROGRAM
  717. STRIP
  718. install_sh
  719. MAKEINFO
  720. AUTOHEADER
  721. AUTOMAKE
  722. AUTOCONF
  723. ACLOCAL
  724. VERSION
  725. PACKAGE
  726. CYGPATH_W
  727. am__isrc
  728. INSTALL_DATA
  729. INSTALL_SCRIPT
  730. INSTALL_PROGRAM
  731. target_os
  732. target_vendor
  733. target_cpu
  734. target
  735. host_os
  736. host_vendor
  737. host_cpu
  738. host
  739. build_os
  740. build_vendor
  741. build_cpu
  742. build
  743. target_alias
  744. host_alias
  745. build_alias
  746. LIBS
  747. ECHO_T
  748. ECHO_N
  749. ECHO_C
  750. DEFS
  751. mandir
  752. localedir
  753. libdir
  754. psdir
  755. pdfdir
  756. dvidir
  757. htmldir
  758. infodir
  759. docdir
  760. oldincludedir
  761. includedir
  762. localstatedir
  763. sharedstatedir
  764. sysconfdir
  765. datadir
  766. datarootdir
  767. libexecdir
  768. sbindir
  769. bindir
  770. program_transform_name
  771. prefix
  772. exec_prefix
  773. PACKAGE_URL
  774. PACKAGE_BUGREPORT
  775. PACKAGE_STRING
  776. PACKAGE_VERSION
  777. PACKAGE_TARNAME
  778. PACKAGE_NAME
  779. PATH_SEPARATOR
  780. SHELL'
  781. ac_subst_files=''
  782. ac_user_opts='
  783. enable_option_checking
  784. with_cppunit_prefix
  785. with_cppunit_exec_prefix
  786. with_gnutls
  787. with_openssl
  788. with_sqlite3
  789. with_libxml2
  790. with_libexpat
  791. with_libcares
  792. with_libz
  793. enable_bittorrent
  794. enable_metalink
  795. enable_epoll
  796. with_ca_bundle
  797. enable_dependency_tracking
  798. with_xml_prefix
  799. with_xml_exec_prefix
  800. enable_xmltest
  801. with_libexpat_prefix
  802. with_sqlite3_prefix
  803. with_libgnutls_prefix
  804. with_libgcrypt_prefix
  805. with_openssl_prefix
  806. with_libcares_prefix
  807. with_libz_prefix
  808. enable_largefile
  809. enable_nls
  810. enable_threads
  811. with_gnu_ld
  812. enable_rpath
  813. with_libpth_prefix
  814. with_libiconv_prefix
  815. with_included_gettext
  816. with_libintl_prefix
  817. '
  818. ac_precious_vars='build_alias
  819. host_alias
  820. target_alias
  821. CXX
  822. CXXFLAGS
  823. LDFLAGS
  824. LIBS
  825. CPPFLAGS
  826. CCC
  827. CC
  828. CFLAGS
  829. YACC
  830. YFLAGS
  831. CXXCPP
  832. PKG_CONFIG
  833. SQLITE3_CFLAGS
  834. SQLITE3_LIBS
  835. LIBGNUTLS_CFLAGS
  836. LIBGNUTLS_LIBS'
  837. # Initialize some variables set by options.
  838. ac_init_help=
  839. ac_init_version=false
  840. ac_unrecognized_opts=
  841. ac_unrecognized_sep=
  842. # The variables have the same names as the options, with
  843. # dashes changed to underlines.
  844. cache_file=/dev/null
  845. exec_prefix=NONE
  846. no_create=
  847. no_recursion=
  848. prefix=NONE
  849. program_prefix=NONE
  850. program_suffix=NONE
  851. program_transform_name=s,x,x,
  852. silent=
  853. site=
  854. srcdir=
  855. verbose=
  856. x_includes=NONE
  857. x_libraries=NONE
  858. # Installation directory options.
  859. # These are left unexpanded so users can "make install exec_prefix=/foo"
  860. # and all the variables that are supposed to be based on exec_prefix
  861. # by default will actually change.
  862. # Use braces instead of parens because sh, perl, etc. also accept them.
  863. # (The list follows the same order as the GNU Coding Standards.)
  864. bindir='${exec_prefix}/bin'
  865. sbindir='${exec_prefix}/sbin'
  866. libexecdir='${exec_prefix}/libexec'
  867. datarootdir='${prefix}/share'
  868. datadir='${datarootdir}'
  869. sysconfdir='${prefix}/etc'
  870. sharedstatedir='${prefix}/com'
  871. localstatedir='${prefix}/var'
  872. includedir='${prefix}/include'
  873. oldincludedir='/usr/include'
  874. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  875. infodir='${datarootdir}/info'
  876. htmldir='${docdir}'
  877. dvidir='${docdir}'
  878. pdfdir='${docdir}'
  879. psdir='${docdir}'
  880. libdir='${exec_prefix}/lib'
  881. localedir='${datarootdir}/locale'
  882. mandir='${datarootdir}/man'
  883. ac_prev=
  884. ac_dashdash=
  885. for ac_option
  886. do
  887. # If the previous option needs an argument, assign it.
  888. if test -n "$ac_prev"; then
  889. eval $ac_prev=\$ac_option
  890. ac_prev=
  891. continue
  892. fi
  893. case $ac_option in
  894. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  895. *) ac_optarg=yes ;;
  896. esac
  897. # Accept the important Cygnus configure options, so we can diagnose typos.
  898. case $ac_dashdash$ac_option in
  899. --)
  900. ac_dashdash=yes ;;
  901. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  902. ac_prev=bindir ;;
  903. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  904. bindir=$ac_optarg ;;
  905. -build | --build | --buil | --bui | --bu)
  906. ac_prev=build_alias ;;
  907. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  908. build_alias=$ac_optarg ;;
  909. -cache-file | --cache-file | --cache-fil | --cache-fi \
  910. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  911. ac_prev=cache_file ;;
  912. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  913. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  914. cache_file=$ac_optarg ;;
  915. --config-cache | -C)
  916. cache_file=config.cache ;;
  917. -datadir | --datadir | --datadi | --datad)
  918. ac_prev=datadir ;;
  919. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  920. datadir=$ac_optarg ;;
  921. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  922. | --dataroo | --dataro | --datar)
  923. ac_prev=datarootdir ;;
  924. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  925. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  926. datarootdir=$ac_optarg ;;
  927. -disable-* | --disable-*)
  928. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  929. # Reject names that are not valid shell variable names.
  930. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  931. as_fn_error "invalid feature name: $ac_useropt"
  932. ac_useropt_orig=$ac_useropt
  933. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  934. case $ac_user_opts in
  935. *"
  936. "enable_$ac_useropt"
  937. "*) ;;
  938. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  939. ac_unrecognized_sep=', ';;
  940. esac
  941. eval enable_$ac_useropt=no ;;
  942. -docdir | --docdir | --docdi | --doc | --do)
  943. ac_prev=docdir ;;
  944. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  945. docdir=$ac_optarg ;;
  946. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  947. ac_prev=dvidir ;;
  948. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  949. dvidir=$ac_optarg ;;
  950. -enable-* | --enable-*)
  951. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  952. # Reject names that are not valid shell variable names.
  953. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  954. as_fn_error "invalid feature name: $ac_useropt"
  955. ac_useropt_orig=$ac_useropt
  956. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  957. case $ac_user_opts in
  958. *"
  959. "enable_$ac_useropt"
  960. "*) ;;
  961. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  962. ac_unrecognized_sep=', ';;
  963. esac
  964. eval enable_$ac_useropt=\$ac_optarg ;;
  965. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  966. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  967. | --exec | --exe | --ex)
  968. ac_prev=exec_prefix ;;
  969. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  970. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  971. | --exec=* | --exe=* | --ex=*)
  972. exec_prefix=$ac_optarg ;;
  973. -gas | --gas | --ga | --g)
  974. # Obsolete; use --with-gas.
  975. with_gas=yes ;;
  976. -help | --help | --hel | --he | -h)
  977. ac_init_help=long ;;
  978. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  979. ac_init_help=recursive ;;
  980. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  981. ac_init_help=short ;;
  982. -host | --host | --hos | --ho)
  983. ac_prev=host_alias ;;
  984. -host=* | --host=* | --hos=* | --ho=*)
  985. host_alias=$ac_optarg ;;
  986. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  987. ac_prev=htmldir ;;
  988. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  989. | --ht=*)
  990. htmldir=$ac_optarg ;;
  991. -includedir | --includedir | --includedi | --included | --include \
  992. | --includ | --inclu | --incl | --inc)
  993. ac_prev=includedir ;;
  994. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  995. | --includ=* | --inclu=* | --incl=* | --inc=*)
  996. includedir=$ac_optarg ;;
  997. -infodir | --infodir | --infodi | --infod | --info | --inf)
  998. ac_prev=infodir ;;
  999. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1000. infodir=$ac_optarg ;;
  1001. -libdir | --libdir | --libdi | --libd)
  1002. ac_prev=libdir ;;
  1003. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1004. libdir=$ac_optarg ;;
  1005. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1006. | --libexe | --libex | --libe)
  1007. ac_prev=libexecdir ;;
  1008. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1009. | --libexe=* | --libex=* | --libe=*)
  1010. libexecdir=$ac_optarg ;;
  1011. -localedir | --localedir | --localedi | --localed | --locale)
  1012. ac_prev=localedir ;;
  1013. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1014. localedir=$ac_optarg ;;
  1015. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1016. | --localstate | --localstat | --localsta | --localst | --locals)
  1017. ac_prev=localstatedir ;;
  1018. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1019. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1020. localstatedir=$ac_optarg ;;
  1021. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1022. ac_prev=mandir ;;
  1023. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1024. mandir=$ac_optarg ;;
  1025. -nfp | --nfp | --nf)
  1026. # Obsolete; use --without-fp.
  1027. with_fp=no ;;
  1028. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1029. | --no-cr | --no-c | -n)
  1030. no_create=yes ;;
  1031. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1032. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1033. no_recursion=yes ;;
  1034. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1035. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1036. | --oldin | --oldi | --old | --ol | --o)
  1037. ac_prev=oldincludedir ;;
  1038. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1039. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1040. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1041. oldincludedir=$ac_optarg ;;
  1042. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1043. ac_prev=prefix ;;
  1044. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1045. prefix=$ac_optarg ;;
  1046. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1047. | --program-pre | --program-pr | --program-p)
  1048. ac_prev=program_prefix ;;
  1049. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1050. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1051. program_prefix=$ac_optarg ;;
  1052. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1053. | --program-suf | --program-su | --program-s)
  1054. ac_prev=program_suffix ;;
  1055. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1056. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1057. program_suffix=$ac_optarg ;;
  1058. -program-transform-name | --program-transform-name \
  1059. | --program-transform-nam | --program-transform-na \
  1060. | --program-transform-n | --program-transform- \
  1061. | --program-transform | --program-transfor \
  1062. | --program-transfo | --program-transf \
  1063. | --program-trans | --program-tran \
  1064. | --progr-tra | --program-tr | --program-t)
  1065. ac_prev=program_transform_name ;;
  1066. -program-transform-name=* | --program-transform-name=* \
  1067. | --program-transform-nam=* | --program-transform-na=* \
  1068. | --program-transform-n=* | --program-transform-=* \
  1069. | --program-transform=* | --program-transfor=* \
  1070. | --program-transfo=* | --program-transf=* \
  1071. | --program-trans=* | --program-tran=* \
  1072. | --progr-tra=* | --program-tr=* | --program-t=*)
  1073. program_transform_name=$ac_optarg ;;
  1074. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1075. ac_prev=pdfdir ;;
  1076. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1077. pdfdir=$ac_optarg ;;
  1078. -psdir | --psdir | --psdi | --psd | --ps)
  1079. ac_prev=psdir ;;
  1080. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1081. psdir=$ac_optarg ;;
  1082. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1083. | -silent | --silent | --silen | --sile | --sil)
  1084. silent=yes ;;
  1085. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1086. ac_prev=sbindir ;;
  1087. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1088. | --sbi=* | --sb=*)
  1089. sbindir=$ac_optarg ;;
  1090. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1091. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1092. | --sharedst | --shareds | --shared | --share | --shar \
  1093. | --sha | --sh)
  1094. ac_prev=sharedstatedir ;;
  1095. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1096. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1097. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1098. | --sha=* | --sh=*)
  1099. sharedstatedir=$ac_optarg ;;
  1100. -site | --site | --sit)
  1101. ac_prev=site ;;
  1102. -site=* | --site=* | --sit=*)
  1103. site=$ac_optarg ;;
  1104. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1105. ac_prev=srcdir ;;
  1106. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1107. srcdir=$ac_optarg ;;
  1108. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1109. | --syscon | --sysco | --sysc | --sys | --sy)
  1110. ac_prev=sysconfdir ;;
  1111. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1112. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1113. sysconfdir=$ac_optarg ;;
  1114. -target | --target | --targe | --targ | --tar | --ta | --t)
  1115. ac_prev=target_alias ;;
  1116. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1117. target_alias=$ac_optarg ;;
  1118. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1119. verbose=yes ;;
  1120. -version | --version | --versio | --versi | --vers | -V)
  1121. ac_init_version=: ;;
  1122. -with-* | --with-*)
  1123. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1124. # Reject names that are not valid shell variable names.
  1125. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1126. as_fn_error "invalid package name: $ac_useropt"
  1127. ac_useropt_orig=$ac_useropt
  1128. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1129. case $ac_user_opts in
  1130. *"
  1131. "with_$ac_useropt"
  1132. "*) ;;
  1133. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1134. ac_unrecognized_sep=', ';;
  1135. esac
  1136. eval with_$ac_useropt=\$ac_optarg ;;
  1137. -without-* | --without-*)
  1138. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1139. # Reject names that are not valid shell variable names.
  1140. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1141. as_fn_error "invalid package name: $ac_useropt"
  1142. ac_useropt_orig=$ac_useropt
  1143. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1144. case $ac_user_opts in
  1145. *"
  1146. "with_$ac_useropt"
  1147. "*) ;;
  1148. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1149. ac_unrecognized_sep=', ';;
  1150. esac
  1151. eval with_$ac_useropt=no ;;
  1152. --x)
  1153. # Obsolete; use --with-x.
  1154. with_x=yes ;;
  1155. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1156. | --x-incl | --x-inc | --x-in | --x-i)
  1157. ac_prev=x_includes ;;
  1158. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1159. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1160. x_includes=$ac_optarg ;;
  1161. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1162. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1163. ac_prev=x_libraries ;;
  1164. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1165. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1166. x_libraries=$ac_optarg ;;
  1167. -*) as_fn_error "unrecognized option: \`$ac_option'
  1168. Try \`$0 --help' for more information."
  1169. ;;
  1170. *=*)
  1171. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1172. # Reject names that are not valid shell variable names.
  1173. case $ac_envvar in #(
  1174. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1175. as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  1176. esac
  1177. eval $ac_envvar=\$ac_optarg
  1178. export $ac_envvar ;;
  1179. *)
  1180. # FIXME: should be removed in autoconf 3.0.
  1181. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1182. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1183. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1184. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1185. ;;
  1186. esac
  1187. done
  1188. if test -n "$ac_prev"; then
  1189. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1190. as_fn_error "missing argument to $ac_option"
  1191. fi
  1192. if test -n "$ac_unrecognized_opts"; then
  1193. case $enable_option_checking in
  1194. no) ;;
  1195. fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  1196. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1197. esac
  1198. fi
  1199. # Check all directory arguments for consistency.
  1200. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1201. datadir sysconfdir sharedstatedir localstatedir includedir \
  1202. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1203. libdir localedir mandir
  1204. do
  1205. eval ac_val=\$$ac_var
  1206. # Remove trailing slashes.
  1207. case $ac_val in
  1208. */ )
  1209. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1210. eval $ac_var=\$ac_val;;
  1211. esac
  1212. # Be sure to have absolute directory names.
  1213. case $ac_val in
  1214. [\\/$]* | ?:[\\/]* ) continue;;
  1215. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1216. esac
  1217. as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  1218. done
  1219. # There might be people who depend on the old broken behavior: `$host'
  1220. # used to hold the argument of --host etc.
  1221. # FIXME: To remove some day.
  1222. build=$build_alias
  1223. host=$host_alias
  1224. target=$target_alias
  1225. # FIXME: To remove some day.
  1226. if test "x$host_alias" != x; then
  1227. if test "x$build_alias" = x; then
  1228. cross_compiling=maybe
  1229. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1230. If a cross compiler is detected then cross compile mode will be used." >&2
  1231. elif test "x$build_alias" != "x$host_alias"; then
  1232. cross_compiling=yes
  1233. fi
  1234. fi
  1235. ac_tool_prefix=
  1236. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1237. test "$silent" = yes && exec 6>/dev/null
  1238. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1239. ac_ls_di=`ls -di .` &&
  1240. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1241. as_fn_error "working directory cannot be determined"
  1242. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1243. as_fn_error "pwd does not report name of working directory"
  1244. # Find the source files, if location was not specified.
  1245. if test -z "$srcdir"; then
  1246. ac_srcdir_defaulted=yes
  1247. # Try the directory containing this script, then the parent directory.
  1248. ac_confdir=`$as_dirname -- "$as_myself" ||
  1249. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1250. X"$as_myself" : 'X\(//\)[^/]' \| \
  1251. X"$as_myself" : 'X\(//\)$' \| \
  1252. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1253. $as_echo X"$as_myself" |
  1254. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1255. s//\1/
  1256. q
  1257. }
  1258. /^X\(\/\/\)[^/].*/{
  1259. s//\1/
  1260. q
  1261. }
  1262. /^X\(\/\/\)$/{
  1263. s//\1/
  1264. q
  1265. }
  1266. /^X\(\/\).*/{
  1267. s//\1/
  1268. q
  1269. }
  1270. s/.*/./; q'`
  1271. srcdir=$ac_confdir
  1272. if test ! -r "$srcdir/$ac_unique_file"; then
  1273. srcdir=..
  1274. fi
  1275. else
  1276. ac_srcdir_defaulted=no
  1277. fi
  1278. if test ! -r "$srcdir/$ac_unique_file"; then
  1279. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1280. as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  1281. fi
  1282. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1283. ac_abs_confdir=`(
  1284. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  1285. pwd)`
  1286. # When building in place, set srcdir=.
  1287. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1288. srcdir=.
  1289. fi
  1290. # Remove unnecessary trailing slashes from srcdir.
  1291. # Double slashes in file names in object file debugging info
  1292. # mess up M-x gdb in Emacs.
  1293. case $srcdir in
  1294. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1295. esac
  1296. for ac_var in $ac_precious_vars; do
  1297. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1298. eval ac_env_${ac_var}_value=\$${ac_var}
  1299. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1300. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1301. done
  1302. #
  1303. # Report the --help message.
  1304. #
  1305. if test "$ac_init_help" = "long"; then
  1306. # Omit some internal or obsolete options to make the list less imposing.
  1307. # This message is too long to be a string in the A/UX 3.1 sh.
  1308. cat <<_ACEOF
  1309. \`configure' configures aria2 1.9.1 to adapt to many kinds of systems.
  1310. Usage: $0 [OPTION]... [VAR=VALUE]...
  1311. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1312. VAR=VALUE. See below for descriptions of some of the useful variables.
  1313. Defaults for the options are specified in brackets.
  1314. Configuration:
  1315. -h, --help display this help and exit
  1316. --help=short display options specific to this package
  1317. --help=recursive display the short help of all the included packages
  1318. -V, --version display version information and exit
  1319. -q, --quiet, --silent do not print \`checking...' messages
  1320. --cache-file=FILE cache test results in FILE [disabled]
  1321. -C, --config-cache alias for \`--cache-file=config.cache'
  1322. -n, --no-create do not create output files
  1323. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1324. Installation directories:
  1325. --prefix=PREFIX install architecture-independent files in PREFIX
  1326. [$ac_default_prefix]
  1327. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1328. [PREFIX]
  1329. By default, \`make install' will install all the files in
  1330. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1331. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1332. for instance \`--prefix=\$HOME'.
  1333. For better control, use the options below.
  1334. Fine tuning of the installation directories:
  1335. --bindir=DIR user executables [EPREFIX/bin]
  1336. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1337. --libexecdir=DIR program executables [EPREFIX/libexec]
  1338. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1339. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1340. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1341. --libdir=DIR object code libraries [EPREFIX/lib]
  1342. --includedir=DIR C header files [PREFIX/include]
  1343. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1344. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1345. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1346. --infodir=DIR info documentation [DATAROOTDIR/info]
  1347. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1348. --mandir=DIR man documentation [DATAROOTDIR/man]
  1349. --docdir=DIR documentation root [DATAROOTDIR/doc/aria2]
  1350. --htmldir=DIR html documentation [DOCDIR]
  1351. --dvidir=DIR dvi documentation [DOCDIR]
  1352. --pdfdir=DIR pdf documentation [DOCDIR]
  1353. --psdir=DIR ps documentation [DOCDIR]
  1354. _ACEOF
  1355. cat <<\_ACEOF
  1356. Program names:
  1357. --program-prefix=PREFIX prepend PREFIX to installed program names
  1358. --program-suffix=SUFFIX append SUFFIX to installed program names
  1359. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1360. System types:
  1361. --build=BUILD configure for building on BUILD [guessed]
  1362. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1363. --target=TARGET configure for building compilers for TARGET [HOST]
  1364. _ACEOF
  1365. fi
  1366. if test -n "$ac_init_help"; then
  1367. case $ac_init_help in
  1368. short | recursive ) echo "Configuration of aria2 1.9.1:";;
  1369. esac
  1370. cat <<\_ACEOF
  1371. Optional Features:
  1372. --disable-option-checking ignore unrecognized --enable/--with options
  1373. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1374. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1375. --enable-bittorrent Enable bittorrent support.
  1376. --enable-metalink Enable metalink support.
  1377. --enable-epoll Enable epoll support.
  1378. --disable-dependency-tracking speeds up one-time build
  1379. --enable-dependency-tracking do not reject slow dependency extractors
  1380. --disable-xmltest Do not try to compile and run a test LIBXML program
  1381. --disable-largefile omit support for large files
  1382. --disable-nls do not use Native Language Support
  1383. --enable-threads={posix|solaris|pth|win32}
  1384. specify multithreading API
  1385. --disable-threads build without multithread safety
  1386. --disable-rpath do not hardcode runtime library paths
  1387. Optional Packages:
  1388. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1389. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1390. --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
  1391. --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
  1392. --with-gnutls Use gnutls if it is installed.
  1393. --with-openssl Use openssl if it is installed.
  1394. --with-sqlite3 Use sqlite3 if it is installed.
  1395. --with-libxml2 Use libxml2 if it is installed.
  1396. --with-libexpat Use libexpat if it is installed.
  1397. --with-libcares Use libcares if it is installed.
  1398. --with-libz Use libz if it is installed.
  1399. --with-ca-bundle=FILE Use FILE as default CA bundle.
  1400. --with-xml-prefix=PFX Prefix where libxml is installed (optional)
  1401. --with-xml-exec-prefix=PFX Exec prefix where libxml is installed (optional)
  1402. --with-libexpat-prefix=PREFIX Prefix where libexpat installed (optional)
  1403. --with-sqlite3-prefix=PREFIX Prefix where SQLite3 installed (optional)
  1404. --with-libgnutls-prefix=PFX Prefix where libgnutls is installed (optional)
  1405. --with-libgcrypt-prefix=PFX
  1406. prefix where LIBGCRYPT is installed (optional)
  1407. --with-openssl-prefix=PREFIX Prefix where OpenSSL installed (optional)
  1408. --with-libcares-prefix=PREFIX Prefix where libcares installed (optional)
  1409. --with-libz-prefix=PREFIX Prefix where libz installed (optional)
  1410. --with-gnu-ld assume the C compiler uses GNU ld default=no
  1411. --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
  1412. --without-libpth-prefix don't search for libpth in includedir and libdir
  1413. --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
  1414. --without-libiconv-prefix don't search for libiconv in includedir and libdir
  1415. --with-included-gettext use the GNU gettext library included here
  1416. --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
  1417. --without-libintl-prefix don't search for libintl in includedir and libdir
  1418. Some influential environment variables:
  1419. CXX C++ compiler command
  1420. CXXFLAGS C++ compiler flags
  1421. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1422. nonstandard directory <lib dir>
  1423. LIBS libraries to pass to the linker, e.g. -l<library>
  1424. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1425. you have headers in a nonstandard directory <include dir>
  1426. CC C compiler command
  1427. CFLAGS C compiler flags
  1428. YACC The `Yet Another C Compiler' implementation to use. Defaults to
  1429. the first program found out of: `bison -y', `byacc', `yacc'.
  1430. YFLAGS The list of arguments that will be passed by default to $YACC.
  1431. This script will default YFLAGS to the empty string to avoid a
  1432. default value of `-d' given by some make applications.
  1433. CXXCPP C++ preprocessor
  1434. PKG_CONFIG path to pkg-config utility
  1435. SQLITE3_CFLAGS
  1436. C compiler flags for SQLITE3, overriding pkg-config
  1437. SQLITE3_LIBS
  1438. linker flags for SQLITE3, overriding pkg-config
  1439. LIBGNUTLS_CFLAGS
  1440. C compiler flags for LIBGNUTLS, overriding pkg-config
  1441. LIBGNUTLS_LIBS
  1442. linker flags for LIBGNUTLS, overriding pkg-config
  1443. Use these variables to override the choices made by `configure' or to help
  1444. it to find libraries and programs with nonstandard names/locations.
  1445. Report bugs to <t-tujikawa@users.sourceforge.net>.
  1446. aria2 home page: <http://aria2.sourceforge.net/>.
  1447. _ACEOF
  1448. ac_status=$?
  1449. fi
  1450. if test "$ac_init_help" = "recursive"; then
  1451. # If there are subdirs, report their specific --help.
  1452. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1453. test -d "$ac_dir" ||
  1454. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1455. continue
  1456. ac_builddir=.
  1457. case "$ac_dir" in
  1458. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1459. *)
  1460. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1461. # A ".." for each directory in $ac_dir_suffix.
  1462. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1463. case $ac_top_builddir_sub in
  1464. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1465. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1466. esac ;;
  1467. esac
  1468. ac_abs_top_builddir=$ac_pwd
  1469. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1470. # for backward compatibility:
  1471. ac_top_builddir=$ac_top_build_prefix
  1472. case $srcdir in
  1473. .) # We are building in place.
  1474. ac_srcdir=.
  1475. ac_top_srcdir=$ac_top_builddir_sub
  1476. ac_abs_top_srcdir=$ac_pwd ;;
  1477. [\\/]* | ?:[\\/]* ) # Absolute name.
  1478. ac_srcdir=$srcdir$ac_dir_suffix;
  1479. ac_top_srcdir=$srcdir
  1480. ac_abs_top_srcdir=$srcdir ;;
  1481. *) # Relative name.
  1482. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1483. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1484. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1485. esac
  1486. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1487. cd "$ac_dir" || { ac_status=$?; continue; }
  1488. # Check for guested configure.
  1489. if test -f "$ac_srcdir/configure.gnu"; then
  1490. echo &&
  1491. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1492. elif test -f "$ac_srcdir/configure"; then
  1493. echo &&
  1494. $SHELL "$ac_srcdir/configure" --help=recursive
  1495. else
  1496. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1497. fi || ac_status=$?
  1498. cd "$ac_pwd" || { ac_status=$?; break; }
  1499. done
  1500. fi
  1501. test -n "$ac_init_help" && exit $ac_status
  1502. if $ac_init_version; then
  1503. cat <<\_ACEOF
  1504. aria2 configure 1.9.1
  1505. generated by GNU Autoconf 2.65
  1506. Copyright (C) 2009 Free Software Foundation, Inc.
  1507. This configure script is free software; the Free Software Foundation
  1508. gives unlimited permission to copy, distribute and modify it.
  1509. _ACEOF
  1510. exit
  1511. fi
  1512. ## ------------------------ ##
  1513. ## Autoconf initialization. ##
  1514. ## ------------------------ ##
  1515. # ac_fn_cxx_try_compile LINENO
  1516. # ----------------------------
  1517. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1518. ac_fn_cxx_try_compile ()
  1519. {
  1520. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1521. rm -f conftest.$ac_objext
  1522. if { { ac_try="$ac_compile"
  1523. case "(($ac_try" in
  1524. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1525. *) ac_try_echo=$ac_try;;
  1526. esac
  1527. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1528. $as_echo "$ac_try_echo"; } >&5
  1529. (eval "$ac_compile") 2>conftest.err
  1530. ac_status=$?
  1531. if test -s conftest.err; then
  1532. grep -v '^ *+' conftest.err >conftest.er1
  1533. cat conftest.er1 >&5
  1534. mv -f conftest.er1 conftest.err
  1535. fi
  1536. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1537. test $ac_status = 0; } && {
  1538. test -z "$ac_cxx_werror_flag" ||
  1539. test ! -s conftest.err
  1540. } && test -s conftest.$ac_objext; then :
  1541. ac_retval=0
  1542. else
  1543. $as_echo "$as_me: failed program was:" >&5
  1544. sed 's/^/| /' conftest.$ac_ext >&5
  1545. ac_retval=1
  1546. fi
  1547. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1548. as_fn_set_status $ac_retval
  1549. } # ac_fn_cxx_try_compile
  1550. # ac_fn_c_try_compile LINENO
  1551. # --------------------------
  1552. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1553. ac_fn_c_try_compile ()
  1554. {
  1555. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1556. rm -f conftest.$ac_objext
  1557. if { { ac_try="$ac_compile"
  1558. case "(($ac_try" in
  1559. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1560. *) ac_try_echo=$ac_try;;
  1561. esac
  1562. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1563. $as_echo "$ac_try_echo"; } >&5
  1564. (eval "$ac_compile") 2>conftest.err
  1565. ac_status=$?
  1566. if test -s conftest.err; then
  1567. grep -v '^ *+' conftest.err >conftest.er1
  1568. cat conftest.er1 >&5
  1569. mv -f conftest.er1 conftest.err
  1570. fi
  1571. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1572. test $ac_status = 0; } && {
  1573. test -z "$ac_c_werror_flag" ||
  1574. test ! -s conftest.err
  1575. } && test -s conftest.$ac_objext; then :
  1576. ac_retval=0
  1577. else
  1578. $as_echo "$as_me: failed program was:" >&5
  1579. sed 's/^/| /' conftest.$ac_ext >&5
  1580. ac_retval=1
  1581. fi
  1582. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1583. as_fn_set_status $ac_retval
  1584. } # ac_fn_c_try_compile
  1585. # ac_fn_cxx_try_cpp LINENO
  1586. # ------------------------
  1587. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1588. ac_fn_cxx_try_cpp ()
  1589. {
  1590. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1591. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1592. case "(($ac_try" in
  1593. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1594. *) ac_try_echo=$ac_try;;
  1595. esac
  1596. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1597. $as_echo "$ac_try_echo"; } >&5
  1598. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1599. ac_status=$?
  1600. if test -s conftest.err; then
  1601. grep -v '^ *+' conftest.err >conftest.er1
  1602. cat conftest.er1 >&5
  1603. mv -f conftest.er1 conftest.err
  1604. fi
  1605. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1606. test $ac_status = 0; } >/dev/null && {
  1607. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1608. test ! -s conftest.err
  1609. }; then :
  1610. ac_retval=0
  1611. else
  1612. $as_echo "$as_me: failed program was:" >&5
  1613. sed 's/^/| /' conftest.$ac_ext >&5
  1614. ac_retval=1
  1615. fi
  1616. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1617. as_fn_set_status $ac_retval
  1618. } # ac_fn_cxx_try_cpp
  1619. # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
  1620. # ---------------------------------------------------------
  1621. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1622. # the include files in INCLUDES and setting the cache variable VAR
  1623. # accordingly.
  1624. ac_fn_cxx_check_header_mongrel ()
  1625. {
  1626. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1627. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1628. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1629. $as_echo_n "checking for $2... " >&6; }
  1630. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1631. $as_echo_n "(cached) " >&6
  1632. fi
  1633. eval ac_res=\$$3
  1634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1635. $as_echo "$ac_res" >&6; }
  1636. else
  1637. # Is the header compilable?
  1638. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1639. $as_echo_n "checking $2 usability... " >&6; }
  1640. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1641. /* end confdefs.h. */
  1642. $4
  1643. #include <$2>
  1644. _ACEOF
  1645. if ac_fn_cxx_try_compile "$LINENO"; then :
  1646. ac_header_compiler=yes
  1647. else
  1648. ac_header_compiler=no
  1649. fi
  1650. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1652. $as_echo "$ac_header_compiler" >&6; }
  1653. # Is the header present?
  1654. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1655. $as_echo_n "checking $2 presence... " >&6; }
  1656. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1657. /* end confdefs.h. */
  1658. #include <$2>
  1659. _ACEOF
  1660. if ac_fn_cxx_try_cpp "$LINENO"; then :
  1661. ac_header_preproc=yes
  1662. else
  1663. ac_header_preproc=no
  1664. fi
  1665. rm -f conftest.err conftest.$ac_ext
  1666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1667. $as_echo "$ac_header_preproc" >&6; }
  1668. # So? What about this header?
  1669. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
  1670. yes:no: )
  1671. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1672. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1673. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1674. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1675. ;;
  1676. no:yes:* )
  1677. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1678. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1679. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1680. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1681. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1682. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1683. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1684. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1685. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1686. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1687. ( cat <<\_ASBOX
  1688. ## ----------------------------------------------- ##
  1689. ## Report this to t-tujikawa@users.sourceforge.net ##
  1690. ## ----------------------------------------------- ##
  1691. _ASBOX
  1692. ) | sed "s/^/$as_me: WARNING: /" >&2
  1693. ;;
  1694. esac
  1695. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1696. $as_echo_n "checking for $2... " >&6; }
  1697. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1698. $as_echo_n "(cached) " >&6
  1699. else
  1700. eval "$3=\$ac_header_compiler"
  1701. fi
  1702. eval ac_res=\$$3
  1703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1704. $as_echo "$ac_res" >&6; }
  1705. fi
  1706. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1707. } # ac_fn_cxx_check_header_mongrel
  1708. # ac_fn_cxx_try_run LINENO
  1709. # ------------------------
  1710. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1711. # that executables *can* be run.
  1712. ac_fn_cxx_try_run ()
  1713. {
  1714. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1715. if { { ac_try="$ac_link"
  1716. case "(($ac_try" in
  1717. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1718. *) ac_try_echo=$ac_try;;
  1719. esac
  1720. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1721. $as_echo "$ac_try_echo"; } >&5
  1722. (eval "$ac_link") 2>&5
  1723. ac_status=$?
  1724. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1725. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1726. { { case "(($ac_try" in
  1727. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1728. *) ac_try_echo=$ac_try;;
  1729. esac
  1730. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1731. $as_echo "$ac_try_echo"; } >&5
  1732. (eval "$ac_try") 2>&5
  1733. ac_status=$?
  1734. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1735. test $ac_status = 0; }; }; then :
  1736. ac_retval=0
  1737. else
  1738. $as_echo "$as_me: program exited with status $ac_status" >&5
  1739. $as_echo "$as_me: failed program was:" >&5
  1740. sed 's/^/| /' conftest.$ac_ext >&5
  1741. ac_retval=$ac_status
  1742. fi
  1743. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1744. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1745. as_fn_set_status $ac_retval
  1746. } # ac_fn_cxx_try_run
  1747. # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
  1748. # ---------------------------------------------------------
  1749. # Tests whether HEADER exists and can be compiled using the include files in
  1750. # INCLUDES, setting the cache variable VAR accordingly.
  1751. ac_fn_cxx_check_header_compile ()
  1752. {
  1753. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1755. $as_echo_n "checking for $2... " >&6; }
  1756. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1757. $as_echo_n "(cached) " >&6
  1758. else
  1759. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1760. /* end confdefs.h. */
  1761. $4
  1762. #include <$2>
  1763. _ACEOF
  1764. if ac_fn_cxx_try_compile "$LINENO"; then :
  1765. eval "$3=yes"
  1766. else
  1767. eval "$3=no"
  1768. fi
  1769. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1770. fi
  1771. eval ac_res=\$$3
  1772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1773. $as_echo "$ac_res" >&6; }
  1774. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1775. } # ac_fn_cxx_check_header_compile
  1776. # ac_fn_cxx_try_link LINENO
  1777. # -------------------------
  1778. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1779. ac_fn_cxx_try_link ()
  1780. {
  1781. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1782. rm -f conftest.$ac_objext conftest$ac_exeext
  1783. if { { ac_try="$ac_link"
  1784. case "(($ac_try" in
  1785. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1786. *) ac_try_echo=$ac_try;;
  1787. esac
  1788. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1789. $as_echo "$ac_try_echo"; } >&5
  1790. (eval "$ac_link") 2>conftest.err
  1791. ac_status=$?
  1792. if test -s conftest.err; then
  1793. grep -v '^ *+' conftest.err >conftest.er1
  1794. cat conftest.er1 >&5
  1795. mv -f conftest.er1 conftest.err
  1796. fi
  1797. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1798. test $ac_status = 0; } && {
  1799. test -z "$ac_cxx_werror_flag" ||
  1800. test ! -s conftest.err
  1801. } && test -s conftest$ac_exeext && {
  1802. test "$cross_compiling" = yes ||
  1803. $as_test_x conftest$ac_exeext
  1804. }; then :
  1805. ac_retval=0
  1806. else
  1807. $as_echo "$as_me: failed program was:" >&5
  1808. sed 's/^/| /' conftest.$ac_ext >&5
  1809. ac_retval=1
  1810. fi
  1811. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1812. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1813. # interfere with the next link command; also delete a directory that is
  1814. # left behind by Apple's compiler. We do this before executing the actions.
  1815. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1816. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1817. as_fn_set_status $ac_retval
  1818. } # ac_fn_cxx_try_link
  1819. # ac_fn_cxx_check_func LINENO FUNC VAR
  1820. # ------------------------------------
  1821. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1822. ac_fn_cxx_check_func ()
  1823. {
  1824. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1825. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1826. $as_echo_n "checking for $2... " >&6; }
  1827. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1828. $as_echo_n "(cached) " >&6
  1829. else
  1830. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1831. /* end confdefs.h. */
  1832. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1833. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1834. #define $2 innocuous_$2
  1835. /* System header to define __stub macros and hopefully few prototypes,
  1836. which can conflict with char $2 (); below.
  1837. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1838. <limits.h> exists even on freestanding compilers. */
  1839. #ifdef __STDC__
  1840. # include <limits.h>
  1841. #else
  1842. # include <assert.h>
  1843. #endif
  1844. #undef $2
  1845. /* Override any GCC internal prototype to avoid an error.
  1846. Use char because int might match the return type of a GCC
  1847. builtin and then its argument prototype would still apply. */
  1848. #ifdef __cplusplus
  1849. extern "C"
  1850. #endif
  1851. char $2 ();
  1852. /* The GNU C library defines this for functions which it implements
  1853. to always fail with ENOSYS. Some functions are actually named
  1854. something starting with __ and the normal name is an alias. */
  1855. #if defined __stub_$2 || defined __stub___$2
  1856. choke me
  1857. #endif
  1858. int
  1859. main ()
  1860. {
  1861. return $2 ();
  1862. ;
  1863. return 0;
  1864. }
  1865. _ACEOF
  1866. if ac_fn_cxx_try_link "$LINENO"; then :
  1867. eval "$3=yes"
  1868. else
  1869. eval "$3=no"
  1870. fi
  1871. rm -f core conftest.err conftest.$ac_objext \
  1872. conftest$ac_exeext conftest.$ac_ext
  1873. fi
  1874. eval ac_res=\$$3
  1875. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1876. $as_echo "$ac_res" >&6; }
  1877. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1878. } # ac_fn_cxx_check_func
  1879. # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
  1880. # ---------------------------------------------
  1881. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1882. # variable VAR accordingly.
  1883. ac_fn_cxx_check_type ()
  1884. {
  1885. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1886. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1887. $as_echo_n "checking for $2... " >&6; }
  1888. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1889. $as_echo_n "(cached) " >&6
  1890. else
  1891. eval "$3=no"
  1892. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1893. /* end confdefs.h. */
  1894. $4
  1895. int
  1896. main ()
  1897. {
  1898. if (sizeof ($2))
  1899. return 0;
  1900. ;
  1901. return 0;
  1902. }
  1903. _ACEOF
  1904. if ac_fn_cxx_try_compile "$LINENO"; then :
  1905. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1906. /* end confdefs.h. */
  1907. $4
  1908. int
  1909. main ()
  1910. {
  1911. if (sizeof (($2)))
  1912. return 0;
  1913. ;
  1914. return 0;
  1915. }
  1916. _ACEOF
  1917. if ac_fn_cxx_try_compile "$LINENO"; then :
  1918. else
  1919. eval "$3=yes"
  1920. fi
  1921. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1922. fi
  1923. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1924. fi
  1925. eval ac_res=\$$3
  1926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1927. $as_echo "$ac_res" >&6; }
  1928. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1929. } # ac_fn_cxx_check_type
  1930. # ac_fn_c_find_intX_t LINENO BITS VAR
  1931. # -----------------------------------
  1932. # Finds a signed integer type with width BITS, setting cache variable VAR
  1933. # accordingly.
  1934. ac_fn_c_find_intX_t ()
  1935. {
  1936. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1937. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
  1938. $as_echo_n "checking for int$2_t... " >&6; }
  1939. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1940. $as_echo_n "(cached) " >&6
  1941. else
  1942. eval "$3=no"
  1943. # Order is important - never check a type that is potentially smaller
  1944. # than half of the expected target width.
  1945. for ac_type in int$2_t 'int' 'long int' \
  1946. 'long long int' 'short int' 'signed char'; do
  1947. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1948. /* end confdefs.h. */
  1949. $ac_includes_default
  1950. enum { N = $2 / 2 - 1 };
  1951. int
  1952. main ()
  1953. {
  1954. static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
  1955. test_array [0] = 0
  1956. ;
  1957. return 0;
  1958. }
  1959. _ACEOF
  1960. if ac_fn_cxx_try_compile "$LINENO"; then :
  1961. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1962. /* end confdefs.h. */
  1963. $ac_includes_default
  1964. enum { N = $2 / 2 - 1 };
  1965. int
  1966. main ()
  1967. {
  1968. static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
  1969. < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
  1970. test_array [0] = 0
  1971. ;
  1972. return 0;
  1973. }
  1974. _ACEOF
  1975. if ac_fn_cxx_try_compile "$LINENO"; then :
  1976. else
  1977. case $ac_type in #(
  1978. int$2_t) :
  1979. eval "$3=yes" ;; #(
  1980. *) :
  1981. eval "$3=\$ac_type" ;;
  1982. esac
  1983. fi
  1984. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1985. fi
  1986. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1987. eval as_val=\$$3
  1988. if test "x$as_val" = x""no; then :
  1989. else
  1990. break
  1991. fi
  1992. done
  1993. fi
  1994. eval ac_res=\$$3
  1995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1996. $as_echo "$ac_res" >&6; }
  1997. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1998. } # ac_fn_c_find_intX_t
  1999. # ac_fn_c_find_uintX_t LINENO BITS VAR
  2000. # ------------------------------------
  2001. # Finds an unsigned integer type with width BITS, setting cache variable VAR
  2002. # accordingly.
  2003. ac_fn_c_find_uintX_t ()
  2004. {
  2005. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2006. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
  2007. $as_echo_n "checking for uint$2_t... " >&6; }
  2008. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  2009. $as_echo_n "(cached) " >&6
  2010. else
  2011. eval "$3=no"
  2012. # Order is important - never check a type that is potentially smaller
  2013. # than half of the expected target width.
  2014. for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
  2015. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  2016. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2017. /* end confdefs.h. */
  2018. $ac_includes_default
  2019. int
  2020. main ()
  2021. {
  2022. static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
  2023. test_array [0] = 0
  2024. ;
  2025. return 0;
  2026. }
  2027. _ACEOF
  2028. if ac_fn_cxx_try_compile "$LINENO"; then :
  2029. case $ac_type in #(
  2030. uint$2_t) :
  2031. eval "$3=yes" ;; #(
  2032. *) :
  2033. eval "$3=\$ac_type" ;;
  2034. esac
  2035. fi
  2036. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2037. eval as_val=\$$3
  2038. if test "x$as_val" = x""no; then :
  2039. else
  2040. break
  2041. fi
  2042. done
  2043. fi
  2044. eval ac_res=\$$3
  2045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2046. $as_echo "$ac_res" >&6; }
  2047. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2048. } # ac_fn_c_find_uintX_t
  2049. # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
  2050. # ----------------------------------------------
  2051. # Tries to find the compile-time value of EXPR in a program that includes
  2052. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  2053. # computed
  2054. ac_fn_cxx_compute_int ()
  2055. {
  2056. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2057. if test "$cross_compiling" = yes; then
  2058. # Depending upon the size, compute the lo and hi bounds.
  2059. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2060. /* end confdefs.h. */
  2061. $4
  2062. int
  2063. main ()
  2064. {
  2065. static int test_array [1 - 2 * !(($2) >= 0)];
  2066. test_array [0] = 0
  2067. ;
  2068. return 0;
  2069. }
  2070. _ACEOF
  2071. if ac_fn_cxx_try_compile "$LINENO"; then :
  2072. ac_lo=0 ac_mid=0
  2073. while :; do
  2074. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2075. /* end confdefs.h. */
  2076. $4
  2077. int
  2078. main ()
  2079. {
  2080. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2081. test_array [0] = 0
  2082. ;
  2083. return 0;
  2084. }
  2085. _ACEOF
  2086. if ac_fn_cxx_try_compile "$LINENO"; then :
  2087. ac_hi=$ac_mid; break
  2088. else
  2089. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  2090. if test $ac_lo -le $ac_mid; then
  2091. ac_lo= ac_hi=
  2092. break
  2093. fi
  2094. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  2095. fi
  2096. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2097. done
  2098. else
  2099. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2100. /* end confdefs.h. */
  2101. $4
  2102. int
  2103. main ()
  2104. {
  2105. static int test_array [1 - 2 * !(($2) < 0)];
  2106. test_array [0] = 0
  2107. ;
  2108. return 0;
  2109. }
  2110. _ACEOF
  2111. if ac_fn_cxx_try_compile "$LINENO"; then :
  2112. ac_hi=-1 ac_mid=-1
  2113. while :; do
  2114. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2115. /* end confdefs.h. */
  2116. $4
  2117. int
  2118. main ()
  2119. {
  2120. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  2121. test_array [0] = 0
  2122. ;
  2123. return 0;
  2124. }
  2125. _ACEOF
  2126. if ac_fn_cxx_try_compile "$LINENO"; then :
  2127. ac_lo=$ac_mid; break
  2128. else
  2129. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  2130. if test $ac_mid -le $ac_hi; then
  2131. ac_lo= ac_hi=
  2132. break
  2133. fi
  2134. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  2135. fi
  2136. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2137. done
  2138. else
  2139. ac_lo= ac_hi=
  2140. fi
  2141. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2142. fi
  2143. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2144. # Binary search between lo and hi bounds.
  2145. while test "x$ac_lo" != "x$ac_hi"; do
  2146. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  2147. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2148. /* end confdefs.h. */
  2149. $4
  2150. int
  2151. main ()
  2152. {
  2153. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2154. test_array [0] = 0
  2155. ;
  2156. return 0;
  2157. }
  2158. _ACEOF
  2159. if ac_fn_cxx_try_compile "$LINENO"; then :
  2160. ac_hi=$ac_mid
  2161. else
  2162. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  2163. fi
  2164. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2165. done
  2166. case $ac_lo in #((
  2167. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  2168. '') ac_retval=1 ;;
  2169. esac
  2170. else
  2171. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2172. /* end confdefs.h. */
  2173. $4
  2174. static long int longval () { return $2; }
  2175. static unsigned long int ulongval () { return $2; }
  2176. #include <stdio.h>
  2177. #include <stdlib.h>
  2178. int
  2179. main ()
  2180. {
  2181. FILE *f = fopen ("conftest.val", "w");
  2182. if (! f)
  2183. return 1;
  2184. if (($2) < 0)
  2185. {
  2186. long int i = longval ();
  2187. if (i != ($2))
  2188. return 1;
  2189. fprintf (f, "%ld", i);
  2190. }
  2191. else
  2192. {
  2193. unsigned long int i = ulongval ();
  2194. if (i != ($2))
  2195. return 1;
  2196. fprintf (f, "%lu", i);
  2197. }
  2198. /* Do not output a trailing newline, as this causes \r\n confusion
  2199. on some platforms. */
  2200. return ferror (f) || fclose (f) != 0;
  2201. ;
  2202. return 0;
  2203. }
  2204. _ACEOF
  2205. if ac_fn_cxx_try_run "$LINENO"; then :
  2206. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  2207. else
  2208. ac_retval=1
  2209. fi
  2210. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  2211. conftest.$ac_objext conftest.beam conftest.$ac_ext
  2212. rm -f conftest.val
  2213. fi
  2214. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2215. as_fn_set_status $ac_retval
  2216. } # ac_fn_cxx_compute_int
  2217. # ac_fn_cxx_check_member LINENO AGGR MEMBER VAR INCLUDES
  2218. # ------------------------------------------------------
  2219. # Tries to find if the field MEMBER exists in type AGGR, after including
  2220. # INCLUDES, setting cache variable VAR accordingly.
  2221. ac_fn_cxx_check_member ()
  2222. {
  2223. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2224. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2225. $as_echo_n "checking for $2.$3... " >&6; }
  2226. if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
  2227. $as_echo_n "(cached) " >&6
  2228. else
  2229. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2230. /* end confdefs.h. */
  2231. $5
  2232. int
  2233. main ()
  2234. {
  2235. static $2 ac_aggr;
  2236. if (ac_aggr.$3)
  2237. return 0;
  2238. ;
  2239. return 0;
  2240. }
  2241. _ACEOF
  2242. if ac_fn_cxx_try_compile "$LINENO"; then :
  2243. eval "$4=yes"
  2244. else
  2245. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2246. /* end confdefs.h. */
  2247. $5
  2248. int
  2249. main ()
  2250. {
  2251. static $2 ac_aggr;
  2252. if (sizeof ac_aggr.$3)
  2253. return 0;
  2254. ;
  2255. return 0;
  2256. }
  2257. _ACEOF
  2258. if ac_fn_cxx_try_compile "$LINENO"; then :
  2259. eval "$4=yes"
  2260. else
  2261. eval "$4=no"
  2262. fi
  2263. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2264. fi
  2265. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2266. fi
  2267. eval ac_res=\$$4
  2268. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2269. $as_echo "$ac_res" >&6; }
  2270. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2271. } # ac_fn_cxx_check_member
  2272. cat >config.log <<_ACEOF
  2273. This file contains any messages produced by compilers while
  2274. running configure, to aid debugging if configure makes a mistake.
  2275. It was created by aria2 $as_me 1.9.1, which was
  2276. generated by GNU Autoconf 2.65. Invocation command line was
  2277. $ $0 $@
  2278. _ACEOF
  2279. exec 5>>config.log
  2280. {
  2281. cat <<_ASUNAME
  2282. ## --------- ##
  2283. ## Platform. ##
  2284. ## --------- ##
  2285. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2286. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2287. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2288. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2289. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2290. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2291. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2292. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2293. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2294. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2295. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2296. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2297. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2298. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2299. _ASUNAME
  2300. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2301. for as_dir in $PATH
  2302. do
  2303. IFS=$as_save_IFS
  2304. test -z "$as_dir" && as_dir=.
  2305. $as_echo "PATH: $as_dir"
  2306. done
  2307. IFS=$as_save_IFS
  2308. } >&5
  2309. cat >&5 <<_ACEOF
  2310. ## ----------- ##
  2311. ## Core tests. ##
  2312. ## ----------- ##
  2313. _ACEOF
  2314. # Keep a trace of the command line.
  2315. # Strip out --no-create and --no-recursion so they do not pile up.
  2316. # Strip out --silent because we don't want to record it for future runs.
  2317. # Also quote any args containing shell meta-characters.
  2318. # Make two passes to allow for proper duplicate-argument suppression.
  2319. ac_configure_args=
  2320. ac_configure_args0=
  2321. ac_configure_args1=
  2322. ac_must_keep_next=false
  2323. for ac_pass in 1 2
  2324. do
  2325. for ac_arg
  2326. do
  2327. case $ac_arg in
  2328. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2329. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2330. | -silent | --silent | --silen | --sile | --sil)
  2331. continue ;;
  2332. *\'*)
  2333. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2334. esac
  2335. case $ac_pass in
  2336. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2337. 2)
  2338. as_fn_append ac_configure_args1 " '$ac_arg'"
  2339. if test $ac_must_keep_next = true; then
  2340. ac_must_keep_next=false # Got value, back to normal.
  2341. else
  2342. case $ac_arg in
  2343. *=* | --config-cache | -C | -disable-* | --disable-* \
  2344. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2345. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2346. | -with-* | --with-* | -without-* | --without-* | --x)
  2347. case "$ac_configure_args0 " in
  2348. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2349. esac
  2350. ;;
  2351. -* ) ac_must_keep_next=true ;;
  2352. esac
  2353. fi
  2354. as_fn_append ac_configure_args " '$ac_arg'"
  2355. ;;
  2356. esac
  2357. done
  2358. done
  2359. { ac_configure_args0=; unset ac_configure_args0;}
  2360. { ac_configure_args1=; unset ac_configure_args1;}
  2361. # When interrupted or exit'd, cleanup temporary files, and complete
  2362. # config.log. We remove comments because anyway the quotes in there
  2363. # would cause problems or look ugly.
  2364. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2365. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2366. trap 'exit_status=$?
  2367. # Save into config.log some information that might help in debugging.
  2368. {
  2369. echo
  2370. cat <<\_ASBOX
  2371. ## ---------------- ##
  2372. ## Cache variables. ##
  2373. ## ---------------- ##
  2374. _ASBOX
  2375. echo
  2376. # The following way of writing the cache mishandles newlines in values,
  2377. (
  2378. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2379. eval ac_val=\$$ac_var
  2380. case $ac_val in #(
  2381. *${as_nl}*)
  2382. case $ac_var in #(
  2383. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2384. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2385. esac
  2386. case $ac_var in #(
  2387. _ | IFS | as_nl) ;; #(
  2388. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2389. *) { eval $ac_var=; unset $ac_var;} ;;
  2390. esac ;;
  2391. esac
  2392. done
  2393. (set) 2>&1 |
  2394. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2395. *${as_nl}ac_space=\ *)
  2396. sed -n \
  2397. "s/'\''/'\''\\\\'\'''\''/g;
  2398. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2399. ;; #(
  2400. *)
  2401. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2402. ;;
  2403. esac |
  2404. sort
  2405. )
  2406. echo
  2407. cat <<\_ASBOX
  2408. ## ----------------- ##
  2409. ## Output variables. ##
  2410. ## ----------------- ##
  2411. _ASBOX
  2412. echo
  2413. for ac_var in $ac_subst_vars
  2414. do
  2415. eval ac_val=\$$ac_var
  2416. case $ac_val in
  2417. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2418. esac
  2419. $as_echo "$ac_var='\''$ac_val'\''"
  2420. done | sort
  2421. echo
  2422. if test -n "$ac_subst_files"; then
  2423. cat <<\_ASBOX
  2424. ## ------------------- ##
  2425. ## File substitutions. ##
  2426. ## ------------------- ##
  2427. _ASBOX
  2428. echo
  2429. for ac_var in $ac_subst_files
  2430. do
  2431. eval ac_val=\$$ac_var
  2432. case $ac_val in
  2433. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2434. esac
  2435. $as_echo "$ac_var='\''$ac_val'\''"
  2436. done | sort
  2437. echo
  2438. fi
  2439. if test -s confdefs.h; then
  2440. cat <<\_ASBOX
  2441. ## ----------- ##
  2442. ## confdefs.h. ##
  2443. ## ----------- ##
  2444. _ASBOX
  2445. echo
  2446. cat confdefs.h
  2447. echo
  2448. fi
  2449. test "$ac_signal" != 0 &&
  2450. $as_echo "$as_me: caught signal $ac_signal"
  2451. $as_echo "$as_me: exit $exit_status"
  2452. } >&5
  2453. rm -f core *.core core.conftest.* &&
  2454. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2455. exit $exit_status
  2456. ' 0
  2457. for ac_signal in 1 2 13 15; do
  2458. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2459. done
  2460. ac_signal=0
  2461. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2462. rm -f -r conftest* confdefs.h
  2463. $as_echo "/* confdefs.h */" > confdefs.h
  2464. # Predefined preprocessor variables.
  2465. cat >>confdefs.h <<_ACEOF
  2466. #define PACKAGE_NAME "$PACKAGE_NAME"
  2467. _ACEOF
  2468. cat >>confdefs.h <<_ACEOF
  2469. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2470. _ACEOF
  2471. cat >>confdefs.h <<_ACEOF
  2472. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2473. _ACEOF
  2474. cat >>confdefs.h <<_ACEOF
  2475. #define PACKAGE_STRING "$PACKAGE_STRING"
  2476. _ACEOF
  2477. cat >>confdefs.h <<_ACEOF
  2478. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2479. _ACEOF
  2480. cat >>confdefs.h <<_ACEOF
  2481. #define PACKAGE_URL "$PACKAGE_URL"
  2482. _ACEOF
  2483. # Let the site file select an alternate cache file if it wants to.
  2484. # Prefer an explicitly selected file to automatically selected ones.
  2485. ac_site_file1=NONE
  2486. ac_site_file2=NONE
  2487. if test -n "$CONFIG_SITE"; then
  2488. ac_site_file1=$CONFIG_SITE
  2489. elif test "x$prefix" != xNONE; then
  2490. ac_site_file1=$prefix/share/config.site
  2491. ac_site_file2=$prefix/etc/config.site
  2492. else
  2493. ac_site_file1=$ac_default_prefix/share/config.site
  2494. ac_site_file2=$ac_default_prefix/etc/config.site
  2495. fi
  2496. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2497. do
  2498. test "x$ac_site_file" = xNONE && continue
  2499. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2500. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2501. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2502. sed 's/^/| /' "$ac_site_file" >&5
  2503. . "$ac_site_file"
  2504. fi
  2505. done
  2506. if test -r "$cache_file"; then
  2507. # Some versions of bash will fail to source /dev/null (special files
  2508. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2509. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2510. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2511. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2512. case $cache_file in
  2513. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2514. *) . "./$cache_file";;
  2515. esac
  2516. fi
  2517. else
  2518. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2519. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2520. >$cache_file
  2521. fi
  2522. gt_needs="$gt_needs "
  2523. as_fn_append ac_header_list " stdlib.h"
  2524. as_fn_append ac_header_list " unistd.h"
  2525. as_fn_append ac_header_list " sys/param.h"
  2526. as_fn_append ac_header_list " sys/time.h"
  2527. as_fn_append ac_func_list " alarm"
  2528. # Check that the precious variables saved in the cache have kept the same
  2529. # value.
  2530. ac_cache_corrupted=false
  2531. for ac_var in $ac_precious_vars; do
  2532. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2533. eval ac_new_set=\$ac_env_${ac_var}_set
  2534. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2535. eval ac_new_val=\$ac_env_${ac_var}_value
  2536. case $ac_old_set,$ac_new_set in
  2537. set,)
  2538. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2539. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2540. ac_cache_corrupted=: ;;
  2541. ,set)
  2542. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2543. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2544. ac_cache_corrupted=: ;;
  2545. ,);;
  2546. *)
  2547. if test "x$ac_old_val" != "x$ac_new_val"; then
  2548. # differences in whitespace do not lead to failure.
  2549. ac_old_val_w=`echo x $ac_old_val`
  2550. ac_new_val_w=`echo x $ac_new_val`
  2551. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2552. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2553. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2554. ac_cache_corrupted=:
  2555. else
  2556. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2557. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2558. eval $ac_var=\$ac_old_val
  2559. fi
  2560. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2561. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2562. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2563. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2564. fi;;
  2565. esac
  2566. # Pass precious variables to config.status.
  2567. if test "$ac_new_set" = set; then
  2568. case $ac_new_val in
  2569. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2570. *) ac_arg=$ac_var=$ac_new_val ;;
  2571. esac
  2572. case " $ac_configure_args " in
  2573. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2574. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2575. esac
  2576. fi
  2577. done
  2578. if $ac_cache_corrupted; then
  2579. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2580. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2581. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2582. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2583. as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2584. fi
  2585. ## -------------------- ##
  2586. ## Main body of script. ##
  2587. ## -------------------- ##
  2588. ac_ext=c
  2589. ac_cpp='$CPP $CPPFLAGS'
  2590. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2591. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2592. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2593. ac_aux_dir=
  2594. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2595. for ac_t in install-sh install.sh shtool; do
  2596. if test -f "$ac_dir/$ac_t"; then
  2597. ac_aux_dir=$ac_dir
  2598. ac_install_sh="$ac_aux_dir/$ac_t -c"
  2599. break 2
  2600. fi
  2601. done
  2602. done
  2603. if test -z "$ac_aux_dir"; then
  2604. as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2605. fi
  2606. # These three variables are undocumented and unsupported,
  2607. # and are intended to be withdrawn in a future Autoconf release.
  2608. # They can cause serious problems if a builder's source tree is in a directory
  2609. # whose full name contains unusual characters.
  2610. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2611. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2612. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2613. # Make sure we can run config.sub.
  2614. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2615. as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2616. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2617. $as_echo_n "checking build system type... " >&6; }
  2618. if test "${ac_cv_build+set}" = set; then :
  2619. $as_echo_n "(cached) " >&6
  2620. else
  2621. ac_build_alias=$build_alias
  2622. test "x$ac_build_alias" = x &&
  2623. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2624. test "x$ac_build_alias" = x &&
  2625. as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  2626. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2627. as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2628. fi
  2629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2630. $as_echo "$ac_cv_build" >&6; }
  2631. case $ac_cv_build in
  2632. *-*-*) ;;
  2633. *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  2634. esac
  2635. build=$ac_cv_build
  2636. ac_save_IFS=$IFS; IFS='-'
  2637. set x $ac_cv_build
  2638. shift
  2639. build_cpu=$1
  2640. build_vendor=$2
  2641. shift; shift
  2642. # Remember, the first character of IFS is used to create $*,
  2643. # except with old shells:
  2644. build_os=$*
  2645. IFS=$ac_save_IFS
  2646. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2647. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2648. $as_echo_n "checking host system type... " >&6; }
  2649. if test "${ac_cv_host+set}" = set; then :
  2650. $as_echo_n "(cached) " >&6
  2651. else
  2652. if test "x$host_alias" = x; then
  2653. ac_cv_host=$ac_cv_build
  2654. else
  2655. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2656. as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2657. fi
  2658. fi
  2659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2660. $as_echo "$ac_cv_host" >&6; }
  2661. case $ac_cv_host in
  2662. *-*-*) ;;
  2663. *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  2664. esac
  2665. host=$ac_cv_host
  2666. ac_save_IFS=$IFS; IFS='-'
  2667. set x $ac_cv_host
  2668. shift
  2669. host_cpu=$1
  2670. host_vendor=$2
  2671. shift; shift
  2672. # Remember, the first character of IFS is used to create $*,
  2673. # except with old shells:
  2674. host_os=$*
  2675. IFS=$ac_save_IFS
  2676. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2677. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2678. $as_echo_n "checking target system type... " >&6; }
  2679. if test "${ac_cv_target+set}" = set; then :
  2680. $as_echo_n "(cached) " >&6
  2681. else
  2682. if test "x$target_alias" = x; then
  2683. ac_cv_target=$ac_cv_host
  2684. else
  2685. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2686. as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2687. fi
  2688. fi
  2689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2690. $as_echo "$ac_cv_target" >&6; }
  2691. case $ac_cv_target in
  2692. *-*-*) ;;
  2693. *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
  2694. esac
  2695. target=$ac_cv_target
  2696. ac_save_IFS=$IFS; IFS='-'
  2697. set x $ac_cv_target
  2698. shift
  2699. target_cpu=$1
  2700. target_vendor=$2
  2701. shift; shift
  2702. # Remember, the first character of IFS is used to create $*,
  2703. # except with old shells:
  2704. target_os=$*
  2705. IFS=$ac_save_IFS
  2706. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2707. # The aliases save the names the user supplied, while $host etc.
  2708. # will get canonicalized.
  2709. test -n "$target_alias" &&
  2710. test "$program_prefix$program_suffix$program_transform_name" = \
  2711. NONENONEs,x,x, &&
  2712. program_prefix=${target_alias}-
  2713. am__api_version='1.11'
  2714. # Find a good install program. We prefer a C program (faster),
  2715. # so one script is as good as another. But avoid the broken or
  2716. # incompatible versions:
  2717. # SysV /etc/install, /usr/sbin/install
  2718. # SunOS /usr/etc/install
  2719. # IRIX /sbin/install
  2720. # AIX /bin/install
  2721. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2722. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2723. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2724. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2725. # OS/2's system install, which has a completely different semantic
  2726. # ./install, which can be erroneously created by make from ./install.sh.
  2727. # Reject install programs that cannot install multiple files.
  2728. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2729. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2730. if test -z "$INSTALL"; then
  2731. if test "${ac_cv_path_install+set}" = set; then :
  2732. $as_echo_n "(cached) " >&6
  2733. else
  2734. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2735. for as_dir in $PATH
  2736. do
  2737. IFS=$as_save_IFS
  2738. test -z "$as_dir" && as_dir=.
  2739. # Account for people who put trailing slashes in PATH elements.
  2740. case $as_dir/ in #((
  2741. ./ | .// | /[cC]/* | \
  2742. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2743. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2744. /usr/ucb/* ) ;;
  2745. *)
  2746. # OSF1 and SCO ODT 3.0 have their own names for install.
  2747. # Don't use installbsd from OSF since it installs stuff as root
  2748. # by default.
  2749. for ac_prog in ginstall scoinst install; do
  2750. for ac_exec_ext in '' $ac_executable_extensions; do
  2751. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2752. if test $ac_prog = install &&
  2753. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2754. # AIX install. It has an incompatible calling convention.
  2755. :
  2756. elif test $ac_prog = install &&
  2757. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2758. # program-specific install script used by HP pwplus--don't use.
  2759. :
  2760. else
  2761. rm -rf conftest.one conftest.two conftest.dir
  2762. echo one > conftest.one
  2763. echo two > conftest.two
  2764. mkdir conftest.dir
  2765. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2766. test -s conftest.one && test -s conftest.two &&
  2767. test -s conftest.dir/conftest.one &&
  2768. test -s conftest.dir/conftest.two
  2769. then
  2770. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2771. break 3
  2772. fi
  2773. fi
  2774. fi
  2775. done
  2776. done
  2777. ;;
  2778. esac
  2779. done
  2780. IFS=$as_save_IFS
  2781. rm -rf conftest.one conftest.two conftest.dir
  2782. fi
  2783. if test "${ac_cv_path_install+set}" = set; then
  2784. INSTALL=$ac_cv_path_install
  2785. else
  2786. # As a last resort, use the slow shell script. Don't cache a
  2787. # value for INSTALL within a source directory, because that will
  2788. # break other packages using the cache if that directory is
  2789. # removed, or if the value is a relative name.
  2790. INSTALL=$ac_install_sh
  2791. fi
  2792. fi
  2793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2794. $as_echo "$INSTALL" >&6; }
  2795. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2796. # It thinks the first close brace ends the variable substitution.
  2797. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2798. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2799. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2800. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2801. $as_echo_n "checking whether build environment is sane... " >&6; }
  2802. # Just in case
  2803. sleep 1
  2804. echo timestamp > conftest.file
  2805. # Reject unsafe characters in $srcdir or the absolute working directory
  2806. # name. Accept space and tab only in the latter.
  2807. am_lf='
  2808. '
  2809. case `pwd` in
  2810. *[\\\"\#\$\&\'\`$am_lf]*)
  2811. as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
  2812. esac
  2813. case $srcdir in
  2814. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2815. as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  2816. esac
  2817. # Do `set' in a subshell so we don't clobber the current shell's
  2818. # arguments. Must try -L first in case configure is actually a
  2819. # symlink; some systems play weird games with the mod time of symlinks
  2820. # (eg FreeBSD returns the mod time of the symlink's containing
  2821. # directory).
  2822. if (
  2823. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2824. if test "$*" = "X"; then
  2825. # -L didn't work.
  2826. set X `ls -t "$srcdir/configure" conftest.file`
  2827. fi
  2828. rm -f conftest.file
  2829. if test "$*" != "X $srcdir/configure conftest.file" \
  2830. && test "$*" != "X conftest.file $srcdir/configure"; then
  2831. # If neither matched, then we have a broken ls. This can happen
  2832. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2833. # broken ls alias from the environment. This has actually
  2834. # happened. Such a system could not be considered "sane".
  2835. as_fn_error "ls -t appears to fail. Make sure there is not a broken
  2836. alias in your environment" "$LINENO" 5
  2837. fi
  2838. test "$2" = conftest.file
  2839. )
  2840. then
  2841. # Ok.
  2842. :
  2843. else
  2844. as_fn_error "newly created file is older than distributed files!
  2845. Check your system clock" "$LINENO" 5
  2846. fi
  2847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2848. $as_echo "yes" >&6; }
  2849. test "$program_prefix" != NONE &&
  2850. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2851. # Use a double $ so make ignores it.
  2852. test "$program_suffix" != NONE &&
  2853. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2854. # Double any \ or $.
  2855. # By default was `s,x,x', remove it if useless.
  2856. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2857. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2858. # expand $ac_aux_dir to an absolute path
  2859. am_aux_dir=`cd $ac_aux_dir && pwd`
  2860. if test x"${MISSING+set}" != xset; then
  2861. case $am_aux_dir in
  2862. *\ * | *\ *)
  2863. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2864. *)
  2865. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2866. esac
  2867. fi
  2868. # Use eval to expand $SHELL
  2869. if eval "$MISSING --run true"; then
  2870. am_missing_run="$MISSING --run "
  2871. else
  2872. am_missing_run=
  2873. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  2874. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2875. fi
  2876. if test x"${install_sh}" != xset; then
  2877. case $am_aux_dir in
  2878. *\ * | *\ *)
  2879. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2880. *)
  2881. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2882. esac
  2883. fi
  2884. # Installed binaries are usually stripped using `strip' when the user
  2885. # run `make install-strip'. However `strip' might not be the right
  2886. # tool to use in cross-compilation environments, therefore Automake
  2887. # will honor the `STRIP' environment variable to overrule this program.
  2888. if test "$cross_compiling" != no; then
  2889. if test -n "$ac_tool_prefix"; then
  2890. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2891. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2892. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2893. $as_echo_n "checking for $ac_word... " >&6; }
  2894. if test "${ac_cv_prog_STRIP+set}" = set; then :
  2895. $as_echo_n "(cached) " >&6
  2896. else
  2897. if test -n "$STRIP"; then
  2898. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2899. else
  2900. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2901. for as_dir in $PATH
  2902. do
  2903. IFS=$as_save_IFS
  2904. test -z "$as_dir" && as_dir=.
  2905. for ac_exec_ext in '' $ac_executable_extensions; do
  2906. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2907. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2908. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2909. break 2
  2910. fi
  2911. done
  2912. done
  2913. IFS=$as_save_IFS
  2914. fi
  2915. fi
  2916. STRIP=$ac_cv_prog_STRIP
  2917. if test -n "$STRIP"; then
  2918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2919. $as_echo "$STRIP" >&6; }
  2920. else
  2921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2922. $as_echo "no" >&6; }
  2923. fi
  2924. fi
  2925. if test -z "$ac_cv_prog_STRIP"; then
  2926. ac_ct_STRIP=$STRIP
  2927. # Extract the first word of "strip", so it can be a program name with args.
  2928. set dummy strip; ac_word=$2
  2929. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2930. $as_echo_n "checking for $ac_word... " >&6; }
  2931. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  2932. $as_echo_n "(cached) " >&6
  2933. else
  2934. if test -n "$ac_ct_STRIP"; then
  2935. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2936. else
  2937. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2938. for as_dir in $PATH
  2939. do
  2940. IFS=$as_save_IFS
  2941. test -z "$as_dir" && as_dir=.
  2942. for ac_exec_ext in '' $ac_executable_extensions; do
  2943. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2944. ac_cv_prog_ac_ct_STRIP="strip"
  2945. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2946. break 2
  2947. fi
  2948. done
  2949. done
  2950. IFS=$as_save_IFS
  2951. fi
  2952. fi
  2953. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2954. if test -n "$ac_ct_STRIP"; then
  2955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2956. $as_echo "$ac_ct_STRIP" >&6; }
  2957. else
  2958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2959. $as_echo "no" >&6; }
  2960. fi
  2961. if test "x$ac_ct_STRIP" = x; then
  2962. STRIP=":"
  2963. else
  2964. case $cross_compiling:$ac_tool_warned in
  2965. yes:)
  2966. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2967. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2968. ac_tool_warned=yes ;;
  2969. esac
  2970. STRIP=$ac_ct_STRIP
  2971. fi
  2972. else
  2973. STRIP="$ac_cv_prog_STRIP"
  2974. fi
  2975. fi
  2976. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2977. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2978. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2979. if test -z "$MKDIR_P"; then
  2980. if test "${ac_cv_path_mkdir+set}" = set; then :
  2981. $as_echo_n "(cached) " >&6
  2982. else
  2983. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2984. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2985. do
  2986. IFS=$as_save_IFS
  2987. test -z "$as_dir" && as_dir=.
  2988. for ac_prog in mkdir gmkdir; do
  2989. for ac_exec_ext in '' $ac_executable_extensions; do
  2990. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2991. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2992. 'mkdir (GNU coreutils) '* | \
  2993. 'mkdir (coreutils) '* | \
  2994. 'mkdir (fileutils) '4.1*)
  2995. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2996. break 3;;
  2997. esac
  2998. done
  2999. done
  3000. done
  3001. IFS=$as_save_IFS
  3002. fi
  3003. test -d ./--version && rmdir ./--version
  3004. if test "${ac_cv_path_mkdir+set}" = set; then
  3005. MKDIR_P="$ac_cv_path_mkdir -p"
  3006. else
  3007. # As a last resort, use the slow shell script. Don't cache a
  3008. # value for MKDIR_P within a source directory, because that will
  3009. # break other packages using the cache if that directory is
  3010. # removed, or if the value is a relative name.
  3011. MKDIR_P="$ac_install_sh -d"
  3012. fi
  3013. fi
  3014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  3015. $as_echo "$MKDIR_P" >&6; }
  3016. mkdir_p="$MKDIR_P"
  3017. case $mkdir_p in
  3018. [\\/$]* | ?:[\\/]*) ;;
  3019. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  3020. esac
  3021. for ac_prog in gawk mawk nawk awk
  3022. do
  3023. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3024. set dummy $ac_prog; ac_word=$2
  3025. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3026. $as_echo_n "checking for $ac_word... " >&6; }
  3027. if test "${ac_cv_prog_AWK+set}" = set; then :
  3028. $as_echo_n "(cached) " >&6
  3029. else
  3030. if test -n "$AWK"; then
  3031. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3032. else
  3033. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3034. for as_dir in $PATH
  3035. do
  3036. IFS=$as_save_IFS
  3037. test -z "$as_dir" && as_dir=.
  3038. for ac_exec_ext in '' $ac_executable_extensions; do
  3039. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3040. ac_cv_prog_AWK="$ac_prog"
  3041. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3042. break 2
  3043. fi
  3044. done
  3045. done
  3046. IFS=$as_save_IFS
  3047. fi
  3048. fi
  3049. AWK=$ac_cv_prog_AWK
  3050. if test -n "$AWK"; then
  3051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  3052. $as_echo "$AWK" >&6; }
  3053. else
  3054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3055. $as_echo "no" >&6; }
  3056. fi
  3057. test -n "$AWK" && break
  3058. done
  3059. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3060. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3061. set x ${MAKE-make}
  3062. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3063. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  3064. $as_echo_n "(cached) " >&6
  3065. else
  3066. cat >conftest.make <<\_ACEOF
  3067. SHELL = /bin/sh
  3068. all:
  3069. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3070. _ACEOF
  3071. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  3072. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3073. *@@@%%%=?*=@@@%%%*)
  3074. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3075. *)
  3076. eval ac_cv_prog_make_${ac_make}_set=no;;
  3077. esac
  3078. rm -f conftest.make
  3079. fi
  3080. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3081. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3082. $as_echo "yes" >&6; }
  3083. SET_MAKE=
  3084. else
  3085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3086. $as_echo "no" >&6; }
  3087. SET_MAKE="MAKE=${MAKE-make}"
  3088. fi
  3089. rm -rf .tst 2>/dev/null
  3090. mkdir .tst 2>/dev/null
  3091. if test -d .tst; then
  3092. am__leading_dot=.
  3093. else
  3094. am__leading_dot=_
  3095. fi
  3096. rmdir .tst 2>/dev/null
  3097. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  3098. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  3099. # is not polluted with repeated "-I."
  3100. am__isrc=' -I$(srcdir)'
  3101. # test to see if srcdir already configured
  3102. if test -f $srcdir/config.status; then
  3103. as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  3104. fi
  3105. fi
  3106. # test whether we have cygpath
  3107. if test -z "$CYGPATH_W"; then
  3108. if (cygpath --version) >/dev/null 2>/dev/null; then
  3109. CYGPATH_W='cygpath -w'
  3110. else
  3111. CYGPATH_W=echo
  3112. fi
  3113. fi
  3114. # Define the identity of the package.
  3115. PACKAGE='aria2'
  3116. VERSION='1.9.1'
  3117. cat >>confdefs.h <<_ACEOF
  3118. #define PACKAGE "$PACKAGE"
  3119. _ACEOF
  3120. cat >>confdefs.h <<_ACEOF
  3121. #define VERSION "$VERSION"
  3122. _ACEOF
  3123. # Some tools Automake needs.
  3124. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  3125. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  3126. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  3127. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  3128. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  3129. # We need awk for the "check" target. The system "awk" is bad on
  3130. # some platforms.
  3131. # Always define AMTAR for backward compatibility.
  3132. AMTAR=${AMTAR-"${am_missing_run}tar"}
  3133. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  3134. # Check whether --with-cppunit-prefix was given.
  3135. if test "${with_cppunit_prefix+set}" = set; then :
  3136. withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
  3137. else
  3138. cppunit_config_prefix=""
  3139. fi
  3140. # Check whether --with-cppunit-exec-prefix was given.
  3141. if test "${with_cppunit_exec_prefix+set}" = set; then :
  3142. withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
  3143. else
  3144. cppunit_config_exec_prefix=""
  3145. fi
  3146. if test x$cppunit_config_exec_prefix != x ; then
  3147. cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
  3148. if test x${CPPUNIT_CONFIG+set} != xset ; then
  3149. CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
  3150. fi
  3151. fi
  3152. if test x$cppunit_config_prefix != x ; then
  3153. cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
  3154. if test x${CPPUNIT_CONFIG+set} != xset ; then
  3155. CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
  3156. fi
  3157. fi
  3158. # Extract the first word of "cppunit-config", so it can be a program name with args.
  3159. set dummy cppunit-config; ac_word=$2
  3160. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3161. $as_echo_n "checking for $ac_word... " >&6; }
  3162. if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then :
  3163. $as_echo_n "(cached) " >&6
  3164. else
  3165. case $CPPUNIT_CONFIG in
  3166. [\\/]* | ?:[\\/]*)
  3167. ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
  3168. ;;
  3169. *)
  3170. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3171. for as_dir in $PATH
  3172. do
  3173. IFS=$as_save_IFS
  3174. test -z "$as_dir" && as_dir=.
  3175. for ac_exec_ext in '' $ac_executable_extensions; do
  3176. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3177. ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  3178. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3179. break 2
  3180. fi
  3181. done
  3182. done
  3183. IFS=$as_save_IFS
  3184. test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
  3185. ;;
  3186. esac
  3187. fi
  3188. CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
  3189. if test -n "$CPPUNIT_CONFIG"; then
  3190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPUNIT_CONFIG" >&5
  3191. $as_echo "$CPPUNIT_CONFIG" >&6; }
  3192. else
  3193. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3194. $as_echo "no" >&6; }
  3195. fi
  3196. cppunit_version_min=1.10.2
  3197. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cppunit - version >= $cppunit_version_min" >&5
  3198. $as_echo_n "checking for Cppunit - version >= $cppunit_version_min... " >&6; }
  3199. no_cppunit=""
  3200. if test "$CPPUNIT_CONFIG" = "no" ; then
  3201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3202. $as_echo "no" >&6; }
  3203. no_cppunit=yes
  3204. else
  3205. CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
  3206. CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
  3207. cppunit_version=`$CPPUNIT_CONFIG --version`
  3208. cppunit_major_version=`echo $cppunit_version | \
  3209. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  3210. cppunit_minor_version=`echo $cppunit_version | \
  3211. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  3212. cppunit_micro_version=`echo $cppunit_version | \
  3213. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  3214. cppunit_major_min=`echo $cppunit_version_min | \
  3215. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  3216. if test "x${cppunit_major_min}" = "x" ; then
  3217. cppunit_major_min=0
  3218. fi
  3219. cppunit_minor_min=`echo $cppunit_version_min | \
  3220. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  3221. if test "x${cppunit_minor_min}" = "x" ; then
  3222. cppunit_minor_min=0
  3223. fi
  3224. cppunit_micro_min=`echo $cppunit_version_min | \
  3225. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  3226. if test "x${cppunit_micro_min}" = "x" ; then
  3227. cppunit_micro_min=0
  3228. fi
  3229. cppunit_version_proper=`expr \
  3230. $cppunit_major_version \> $cppunit_major_min \| \
  3231. $cppunit_major_version \= $cppunit_major_min \& \
  3232. $cppunit_minor_version \> $cppunit_minor_min \| \
  3233. $cppunit_major_version \= $cppunit_major_min \& \
  3234. $cppunit_minor_version \= $cppunit_minor_min \& \
  3235. $cppunit_micro_version \>= $cppunit_micro_min `
  3236. if test "$cppunit_version_proper" = "1" ; then
  3237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
  3238. $as_echo "$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
  3239. else
  3240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3241. $as_echo "no" >&6; }
  3242. no_cppunit=yes
  3243. fi
  3244. fi
  3245. if test "x$no_cppunit" = x ; then
  3246. :
  3247. else
  3248. CPPUNIT_CFLAGS=""
  3249. CPPUNIT_LIBS=""
  3250. :
  3251. fi
  3252. ac_config_headers="$ac_config_headers config.h"
  3253. case "$target" in
  3254. *mingw*|*cygwin*)
  3255. WINSOCK_LIBS="-lws2_32 -lpthread"
  3256. ;;
  3257. esac
  3258. cat >>confdefs.h <<_ACEOF
  3259. #define TARGET "$target"
  3260. _ACEOF
  3261. # Checks for arguments.
  3262. # Check whether --with-gnutls was given.
  3263. if test "${with_gnutls+set}" = set; then :
  3264. withval=$with_gnutls; with_gnutls_requested=$withval with_gnutls=$withval
  3265. else
  3266. with_gnutls=yes
  3267. fi
  3268. # Check whether --with-openssl was given.
  3269. if test "${with_openssl+set}" = set; then :
  3270. withval=$with_openssl; with_openssl_requested=$withval with_openssl=$withval
  3271. else
  3272. with_openssl=yes
  3273. fi
  3274. # Check whether --with-sqlite3 was given.
  3275. if test "${with_sqlite3+set}" = set; then :
  3276. withval=$with_sqlite3; with_sqlite3_requested=$withval with_sqlite3=$withval
  3277. else
  3278. with_sqlite3=yes
  3279. fi
  3280. # Check whether --with-libxml2 was given.
  3281. if test "${with_libxml2+set}" = set; then :
  3282. withval=$with_libxml2; with_libxml2_requested=$withval with_libxml2=$withval
  3283. else
  3284. with_libxml2=yes
  3285. fi
  3286. # Check whether --with-libexpat was given.
  3287. if test "${with_libexpat+set}" = set; then :
  3288. withval=$with_libexpat; with_libexpat_requested=$withval with_libexpat=$withval
  3289. else
  3290. with_libexpat=yes
  3291. fi
  3292. # Check whether --with-libcares was given.
  3293. if test "${with_libcares+set}" = set; then :
  3294. withval=$with_libcares; with_libcares_requested=$withval with_libcares=$withval
  3295. else
  3296. with_libcares=yes
  3297. fi
  3298. # Check whether --with-libz was given.
  3299. if test "${with_libz+set}" = set; then :
  3300. withval=$with_libz; with_libz_requested=$withval with_libz=$withval
  3301. else
  3302. with_libz=yes
  3303. fi
  3304. # Check whether --enable-bittorrent was given.
  3305. if test "${enable_bittorrent+set}" = set; then :
  3306. enableval=$enable_bittorrent; enable_bittorrent_requested=$enableval enable_bittorrent=$enableval
  3307. else
  3308. enable_bittorrent=yes
  3309. fi
  3310. # Check whether --enable-metalink was given.
  3311. if test "${enable_metalink+set}" = set; then :
  3312. enableval=$enable_metalink; enable_metalink_requested=$enableval enable_metalink=$enableval
  3313. else
  3314. enable_metalink=yes
  3315. fi
  3316. # Check whether --enable-epoll was given.
  3317. if test "${enable_epoll+set}" = set; then :
  3318. enableval=$enable_epoll; enable_epoll_requested=$enableval enable_epoll=$enableval
  3319. else
  3320. enable_epoll=yes
  3321. fi
  3322. # Check whether --with-ca-bundle was given.
  3323. if test "${with_ca_bundle+set}" = set; then :
  3324. withval=$with_ca_bundle; ca_bundle=$withval
  3325. else
  3326. ca_bundle=""
  3327. fi
  3328. # Checks for programs.
  3329. ac_ext=cpp
  3330. ac_cpp='$CXXCPP $CPPFLAGS'
  3331. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3332. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3333. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3334. if test -z "$CXX"; then
  3335. if test -n "$CCC"; then
  3336. CXX=$CCC
  3337. else
  3338. if test -n "$ac_tool_prefix"; then
  3339. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3340. do
  3341. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3342. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3343. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3344. $as_echo_n "checking for $ac_word... " >&6; }
  3345. if test "${ac_cv_prog_CXX+set}" = set; then :
  3346. $as_echo_n "(cached) " >&6
  3347. else
  3348. if test -n "$CXX"; then
  3349. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  3350. else
  3351. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3352. for as_dir in $PATH
  3353. do
  3354. IFS=$as_save_IFS
  3355. test -z "$as_dir" && as_dir=.
  3356. for ac_exec_ext in '' $ac_executable_extensions; do
  3357. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3358. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  3359. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3360. break 2
  3361. fi
  3362. done
  3363. done
  3364. IFS=$as_save_IFS
  3365. fi
  3366. fi
  3367. CXX=$ac_cv_prog_CXX
  3368. if test -n "$CXX"; then
  3369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  3370. $as_echo "$CXX" >&6; }
  3371. else
  3372. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3373. $as_echo "no" >&6; }
  3374. fi
  3375. test -n "$CXX" && break
  3376. done
  3377. fi
  3378. if test -z "$CXX"; then
  3379. ac_ct_CXX=$CXX
  3380. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3381. do
  3382. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3383. set dummy $ac_prog; ac_word=$2
  3384. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3385. $as_echo_n "checking for $ac_word... " >&6; }
  3386. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  3387. $as_echo_n "(cached) " >&6
  3388. else
  3389. if test -n "$ac_ct_CXX"; then
  3390. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  3391. else
  3392. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3393. for as_dir in $PATH
  3394. do
  3395. IFS=$as_save_IFS
  3396. test -z "$as_dir" && as_dir=.
  3397. for ac_exec_ext in '' $ac_executable_extensions; do
  3398. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3399. ac_cv_prog_ac_ct_CXX="$ac_prog"
  3400. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3401. break 2
  3402. fi
  3403. done
  3404. done
  3405. IFS=$as_save_IFS
  3406. fi
  3407. fi
  3408. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  3409. if test -n "$ac_ct_CXX"; then
  3410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  3411. $as_echo "$ac_ct_CXX" >&6; }
  3412. else
  3413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3414. $as_echo "no" >&6; }
  3415. fi
  3416. test -n "$ac_ct_CXX" && break
  3417. done
  3418. if test "x$ac_ct_CXX" = x; then
  3419. CXX="g++"
  3420. else
  3421. case $cross_compiling:$ac_tool_warned in
  3422. yes:)
  3423. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3424. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3425. ac_tool_warned=yes ;;
  3426. esac
  3427. CXX=$ac_ct_CXX
  3428. fi
  3429. fi
  3430. fi
  3431. fi
  3432. # Provide some information about the compiler.
  3433. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  3434. set X $ac_compile
  3435. ac_compiler=$2
  3436. for ac_option in --version -v -V -qversion; do
  3437. { { ac_try="$ac_compiler $ac_option >&5"
  3438. case "(($ac_try" in
  3439. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3440. *) ac_try_echo=$ac_try;;
  3441. esac
  3442. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3443. $as_echo "$ac_try_echo"; } >&5
  3444. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3445. ac_status=$?
  3446. if test -s conftest.err; then
  3447. sed '10a\
  3448. ... rest of stderr output deleted ...
  3449. 10q' conftest.err >conftest.er1
  3450. cat conftest.er1 >&5
  3451. fi
  3452. rm -f conftest.er1 conftest.err
  3453. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3454. test $ac_status = 0; }
  3455. done
  3456. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3457. /* end confdefs.h. */
  3458. int
  3459. main ()
  3460. {
  3461. ;
  3462. return 0;
  3463. }
  3464. _ACEOF
  3465. ac_clean_files_save=$ac_clean_files
  3466. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3467. # Try to create an executable without -o first, disregard a.out.
  3468. # It will help us diagnose broken compilers, and finding out an intuition
  3469. # of exeext.
  3470. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
  3471. $as_echo_n "checking whether the C++ compiler works... " >&6; }
  3472. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3473. # The possible output files:
  3474. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3475. ac_rmfiles=
  3476. for ac_file in $ac_files
  3477. do
  3478. case $ac_file in
  3479. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3480. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3481. esac
  3482. done
  3483. rm -f $ac_rmfiles
  3484. if { { ac_try="$ac_link_default"
  3485. case "(($ac_try" in
  3486. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3487. *) ac_try_echo=$ac_try;;
  3488. esac
  3489. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3490. $as_echo "$ac_try_echo"; } >&5
  3491. (eval "$ac_link_default") 2>&5
  3492. ac_status=$?
  3493. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3494. test $ac_status = 0; }; then :
  3495. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3496. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3497. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3498. # so that the user can short-circuit this test for compilers unknown to
  3499. # Autoconf.
  3500. for ac_file in $ac_files ''
  3501. do
  3502. test -f "$ac_file" || continue
  3503. case $ac_file in
  3504. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3505. ;;
  3506. [ab].out )
  3507. # We found the default executable, but exeext='' is most
  3508. # certainly right.
  3509. break;;
  3510. *.* )
  3511. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3512. then :; else
  3513. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3514. fi
  3515. # We set ac_cv_exeext here because the later test for it is not
  3516. # safe: cross compilers may not add the suffix if given an `-o'
  3517. # argument, so we may need to know it at that point already.
  3518. # Even if this section looks crufty: it has the advantage of
  3519. # actually working.
  3520. break;;
  3521. * )
  3522. break;;
  3523. esac
  3524. done
  3525. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3526. else
  3527. ac_file=''
  3528. fi
  3529. if test -z "$ac_file"; then :
  3530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3531. $as_echo "no" >&6; }
  3532. $as_echo "$as_me: failed program was:" >&5
  3533. sed 's/^/| /' conftest.$ac_ext >&5
  3534. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3535. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3536. { as_fn_set_status 77
  3537. as_fn_error "C++ compiler cannot create executables
  3538. See \`config.log' for more details." "$LINENO" 5; }; }
  3539. else
  3540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3541. $as_echo "yes" >&6; }
  3542. fi
  3543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
  3544. $as_echo_n "checking for C++ compiler default output file name... " >&6; }
  3545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3546. $as_echo "$ac_file" >&6; }
  3547. ac_exeext=$ac_cv_exeext
  3548. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3549. ac_clean_files=$ac_clean_files_save
  3550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3551. $as_echo_n "checking for suffix of executables... " >&6; }
  3552. if { { ac_try="$ac_link"
  3553. case "(($ac_try" in
  3554. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3555. *) ac_try_echo=$ac_try;;
  3556. esac
  3557. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3558. $as_echo "$ac_try_echo"; } >&5
  3559. (eval "$ac_link") 2>&5
  3560. ac_status=$?
  3561. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3562. test $ac_status = 0; }; then :
  3563. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3564. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3565. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3566. # `rm'.
  3567. for ac_file in conftest.exe conftest conftest.*; do
  3568. test -f "$ac_file" || continue
  3569. case $ac_file in
  3570. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3571. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3572. break;;
  3573. * ) break;;
  3574. esac
  3575. done
  3576. else
  3577. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3578. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3579. as_fn_error "cannot compute suffix of executables: cannot compile and link
  3580. See \`config.log' for more details." "$LINENO" 5; }
  3581. fi
  3582. rm -f conftest conftest$ac_cv_exeext
  3583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3584. $as_echo "$ac_cv_exeext" >&6; }
  3585. rm -f conftest.$ac_ext
  3586. EXEEXT=$ac_cv_exeext
  3587. ac_exeext=$EXEEXT
  3588. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3589. /* end confdefs.h. */
  3590. #include <stdio.h>
  3591. int
  3592. main ()
  3593. {
  3594. FILE *f = fopen ("conftest.out", "w");
  3595. return ferror (f) || fclose (f) != 0;
  3596. ;
  3597. return 0;
  3598. }
  3599. _ACEOF
  3600. ac_clean_files="$ac_clean_files conftest.out"
  3601. # Check that the compiler produces executables we can run. If not, either
  3602. # the compiler is broken, or we cross compile.
  3603. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3604. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3605. if test "$cross_compiling" != yes; then
  3606. { { ac_try="$ac_link"
  3607. case "(($ac_try" in
  3608. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3609. *) ac_try_echo=$ac_try;;
  3610. esac
  3611. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3612. $as_echo "$ac_try_echo"; } >&5
  3613. (eval "$ac_link") 2>&5
  3614. ac_status=$?
  3615. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3616. test $ac_status = 0; }
  3617. if { ac_try='./conftest$ac_cv_exeext'
  3618. { { case "(($ac_try" in
  3619. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3620. *) ac_try_echo=$ac_try;;
  3621. esac
  3622. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3623. $as_echo "$ac_try_echo"; } >&5
  3624. (eval "$ac_try") 2>&5
  3625. ac_status=$?
  3626. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3627. test $ac_status = 0; }; }; then
  3628. cross_compiling=no
  3629. else
  3630. if test "$cross_compiling" = maybe; then
  3631. cross_compiling=yes
  3632. else
  3633. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3634. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3635. as_fn_error "cannot run C++ compiled programs.
  3636. If you meant to cross compile, use \`--host'.
  3637. See \`config.log' for more details." "$LINENO" 5; }
  3638. fi
  3639. fi
  3640. fi
  3641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3642. $as_echo "$cross_compiling" >&6; }
  3643. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3644. ac_clean_files=$ac_clean_files_save
  3645. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3646. $as_echo_n "checking for suffix of object files... " >&6; }
  3647. if test "${ac_cv_objext+set}" = set; then :
  3648. $as_echo_n "(cached) " >&6
  3649. else
  3650. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3651. /* end confdefs.h. */
  3652. int
  3653. main ()
  3654. {
  3655. ;
  3656. return 0;
  3657. }
  3658. _ACEOF
  3659. rm -f conftest.o conftest.obj
  3660. if { { ac_try="$ac_compile"
  3661. case "(($ac_try" in
  3662. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3663. *) ac_try_echo=$ac_try;;
  3664. esac
  3665. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3666. $as_echo "$ac_try_echo"; } >&5
  3667. (eval "$ac_compile") 2>&5
  3668. ac_status=$?
  3669. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3670. test $ac_status = 0; }; then :
  3671. for ac_file in conftest.o conftest.obj conftest.*; do
  3672. test -f "$ac_file" || continue;
  3673. case $ac_file in
  3674. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3675. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3676. break;;
  3677. esac
  3678. done
  3679. else
  3680. $as_echo "$as_me: failed program was:" >&5
  3681. sed 's/^/| /' conftest.$ac_ext >&5
  3682. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3683. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3684. as_fn_error "cannot compute suffix of object files: cannot compile
  3685. See \`config.log' for more details." "$LINENO" 5; }
  3686. fi
  3687. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3688. fi
  3689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3690. $as_echo "$ac_cv_objext" >&6; }
  3691. OBJEXT=$ac_cv_objext
  3692. ac_objext=$OBJEXT
  3693. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  3694. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  3695. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  3696. $as_echo_n "(cached) " >&6
  3697. else
  3698. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3699. /* end confdefs.h. */
  3700. int
  3701. main ()
  3702. {
  3703. #ifndef __GNUC__
  3704. choke me
  3705. #endif
  3706. ;
  3707. return 0;
  3708. }
  3709. _ACEOF
  3710. if ac_fn_cxx_try_compile "$LINENO"; then :
  3711. ac_compiler_gnu=yes
  3712. else
  3713. ac_compiler_gnu=no
  3714. fi
  3715. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3716. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3717. fi
  3718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  3719. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  3720. if test $ac_compiler_gnu = yes; then
  3721. GXX=yes
  3722. else
  3723. GXX=
  3724. fi
  3725. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3726. ac_save_CXXFLAGS=$CXXFLAGS
  3727. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  3728. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  3729. if test "${ac_cv_prog_cxx_g+set}" = set; then :
  3730. $as_echo_n "(cached) " >&6
  3731. else
  3732. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  3733. ac_cxx_werror_flag=yes
  3734. ac_cv_prog_cxx_g=no
  3735. CXXFLAGS="-g"
  3736. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3737. /* end confdefs.h. */
  3738. int
  3739. main ()
  3740. {
  3741. ;
  3742. return 0;
  3743. }
  3744. _ACEOF
  3745. if ac_fn_cxx_try_compile "$LINENO"; then :
  3746. ac_cv_prog_cxx_g=yes
  3747. else
  3748. CXXFLAGS=""
  3749. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3750. /* end confdefs.h. */
  3751. int
  3752. main ()
  3753. {
  3754. ;
  3755. return 0;
  3756. }
  3757. _ACEOF
  3758. if ac_fn_cxx_try_compile "$LINENO"; then :
  3759. else
  3760. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3761. CXXFLAGS="-g"
  3762. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3763. /* end confdefs.h. */
  3764. int
  3765. main ()
  3766. {
  3767. ;
  3768. return 0;
  3769. }
  3770. _ACEOF
  3771. if ac_fn_cxx_try_compile "$LINENO"; then :
  3772. ac_cv_prog_cxx_g=yes
  3773. fi
  3774. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3775. fi
  3776. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3777. fi
  3778. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3779. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3780. fi
  3781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  3782. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  3783. if test "$ac_test_CXXFLAGS" = set; then
  3784. CXXFLAGS=$ac_save_CXXFLAGS
  3785. elif test $ac_cv_prog_cxx_g = yes; then
  3786. if test "$GXX" = yes; then
  3787. CXXFLAGS="-g -O2"
  3788. else
  3789. CXXFLAGS="-g"
  3790. fi
  3791. else
  3792. if test "$GXX" = yes; then
  3793. CXXFLAGS="-O2"
  3794. else
  3795. CXXFLAGS=
  3796. fi
  3797. fi
  3798. ac_ext=c
  3799. ac_cpp='$CPP $CPPFLAGS'
  3800. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3801. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3802. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3803. DEPDIR="${am__leading_dot}deps"
  3804. ac_config_commands="$ac_config_commands depfiles"
  3805. am_make=${MAKE-make}
  3806. cat > confinc << 'END'
  3807. am__doit:
  3808. @echo this is the am__doit target
  3809. .PHONY: am__doit
  3810. END
  3811. # If we don't find an include directive, just comment out the code.
  3812. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3813. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3814. am__include="#"
  3815. am__quote=
  3816. _am_result=none
  3817. # First try GNU make style include.
  3818. echo "include confinc" > confmf
  3819. # Ignore all kinds of additional output from `make'.
  3820. case `$am_make -s -f confmf 2> /dev/null` in #(
  3821. *the\ am__doit\ target*)
  3822. am__include=include
  3823. am__quote=
  3824. _am_result=GNU
  3825. ;;
  3826. esac
  3827. # Now try BSD make style include.
  3828. if test "$am__include" = "#"; then
  3829. echo '.include "confinc"' > confmf
  3830. case `$am_make -s -f confmf 2> /dev/null` in #(
  3831. *the\ am__doit\ target*)
  3832. am__include=.include
  3833. am__quote="\""
  3834. _am_result=BSD
  3835. ;;
  3836. esac
  3837. fi
  3838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3839. $as_echo "$_am_result" >&6; }
  3840. rm -f confinc confmf
  3841. # Check whether --enable-dependency-tracking was given.
  3842. if test "${enable_dependency_tracking+set}" = set; then :
  3843. enableval=$enable_dependency_tracking;
  3844. fi
  3845. if test "x$enable_dependency_tracking" != xno; then
  3846. am_depcomp="$ac_aux_dir/depcomp"
  3847. AMDEPBACKSLASH='\'
  3848. fi
  3849. if test "x$enable_dependency_tracking" != xno; then
  3850. AMDEP_TRUE=
  3851. AMDEP_FALSE='#'
  3852. else
  3853. AMDEP_TRUE='#'
  3854. AMDEP_FALSE=
  3855. fi
  3856. depcc="$CXX" am_compiler_list=
  3857. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3858. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3859. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
  3860. $as_echo_n "(cached) " >&6
  3861. else
  3862. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3863. # We make a subdir and do the tests there. Otherwise we can end up
  3864. # making bogus files that we don't know about and never remove. For
  3865. # instance it was reported that on HP-UX the gcc test will end up
  3866. # making a dummy file named `D' -- because `-MD' means `put the output
  3867. # in D'.
  3868. mkdir conftest.dir
  3869. # Copy depcomp to subdir because otherwise we won't find it if we're
  3870. # using a relative directory.
  3871. cp "$am_depcomp" conftest.dir
  3872. cd conftest.dir
  3873. # We will build objects and dependencies in a subdirectory because
  3874. # it helps to detect inapplicable dependency modes. For instance
  3875. # both Tru64's cc and ICC support -MD to output dependencies as a
  3876. # side effect of compilation, but ICC will put the dependencies in
  3877. # the current directory while Tru64 will put them in the object
  3878. # directory.
  3879. mkdir sub
  3880. am_cv_CXX_dependencies_compiler_type=none
  3881. if test "$am_compiler_list" = ""; then
  3882. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3883. fi
  3884. am__universal=false
  3885. case " $depcc " in #(
  3886. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3887. esac
  3888. for depmode in $am_compiler_list; do
  3889. # Setup a source with many dependencies, because some compilers
  3890. # like to wrap large dependency lists on column 80 (with \), and
  3891. # we should not choose a depcomp mode which is confused by this.
  3892. #
  3893. # We need to recreate these files for each test, as the compiler may
  3894. # overwrite some of them when testing with obscure command lines.
  3895. # This happens at least with the AIX C compiler.
  3896. : > sub/conftest.c
  3897. for i in 1 2 3 4 5 6; do
  3898. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3899. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3900. # Solaris 8's {/usr,}/bin/sh.
  3901. touch sub/conftst$i.h
  3902. done
  3903. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3904. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3905. # mode. It turns out that the SunPro C++ compiler does not properly
  3906. # handle `-M -o', and we need to detect this. Also, some Intel
  3907. # versions had trouble with output in subdirs
  3908. am__obj=sub/conftest.${OBJEXT-o}
  3909. am__minus_obj="-o $am__obj"
  3910. case $depmode in
  3911. gcc)
  3912. # This depmode causes a compiler race in universal mode.
  3913. test "$am__universal" = false || continue
  3914. ;;
  3915. nosideeffect)
  3916. # after this tag, mechanisms are not by side-effect, so they'll
  3917. # only be used when explicitly requested
  3918. if test "x$enable_dependency_tracking" = xyes; then
  3919. continue
  3920. else
  3921. break
  3922. fi
  3923. ;;
  3924. msvisualcpp | msvcmsys)
  3925. # This compiler won't grok `-c -o', but also, the minuso test has
  3926. # not run yet. These depmodes are late enough in the game, and
  3927. # so weak that their functioning should not be impacted.
  3928. am__obj=conftest.${OBJEXT-o}
  3929. am__minus_obj=
  3930. ;;
  3931. none) break ;;
  3932. esac
  3933. if depmode=$depmode \
  3934. source=sub/conftest.c object=$am__obj \
  3935. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3936. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3937. >/dev/null 2>conftest.err &&
  3938. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3939. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3940. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3941. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3942. # icc doesn't choke on unknown options, it will just issue warnings
  3943. # or remarks (even with -Werror). So we grep stderr for any message
  3944. # that says an option was ignored or not supported.
  3945. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3946. # icc: Command line warning: ignoring option '-M'; no argument required
  3947. # The diagnosis changed in icc 8.0:
  3948. # icc: Command line remark: option '-MP' not supported
  3949. if (grep 'ignoring option' conftest.err ||
  3950. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3951. am_cv_CXX_dependencies_compiler_type=$depmode
  3952. break
  3953. fi
  3954. fi
  3955. done
  3956. cd ..
  3957. rm -rf conftest.dir
  3958. else
  3959. am_cv_CXX_dependencies_compiler_type=none
  3960. fi
  3961. fi
  3962. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3963. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  3964. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3965. if
  3966. test "x$enable_dependency_tracking" != xno \
  3967. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3968. am__fastdepCXX_TRUE=
  3969. am__fastdepCXX_FALSE='#'
  3970. else
  3971. am__fastdepCXX_TRUE='#'
  3972. am__fastdepCXX_FALSE=
  3973. fi
  3974. ac_ext=c
  3975. ac_cpp='$CPP $CPPFLAGS'
  3976. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3977. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3978. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3979. if test -n "$ac_tool_prefix"; then
  3980. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3981. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3982. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3983. $as_echo_n "checking for $ac_word... " >&6; }
  3984. if test "${ac_cv_prog_CC+set}" = set; then :
  3985. $as_echo_n "(cached) " >&6
  3986. else
  3987. if test -n "$CC"; then
  3988. ac_cv_prog_CC="$CC" # Let the user override the test.
  3989. else
  3990. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3991. for as_dir in $PATH
  3992. do
  3993. IFS=$as_save_IFS
  3994. test -z "$as_dir" && as_dir=.
  3995. for ac_exec_ext in '' $ac_executable_extensions; do
  3996. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3997. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3998. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3999. break 2
  4000. fi
  4001. done
  4002. done
  4003. IFS=$as_save_IFS
  4004. fi
  4005. fi
  4006. CC=$ac_cv_prog_CC
  4007. if test -n "$CC"; then
  4008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4009. $as_echo "$CC" >&6; }
  4010. else
  4011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4012. $as_echo "no" >&6; }
  4013. fi
  4014. fi
  4015. if test -z "$ac_cv_prog_CC"; then
  4016. ac_ct_CC=$CC
  4017. # Extract the first word of "gcc", so it can be a program name with args.
  4018. set dummy gcc; ac_word=$2
  4019. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4020. $as_echo_n "checking for $ac_word... " >&6; }
  4021. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  4022. $as_echo_n "(cached) " >&6
  4023. else
  4024. if test -n "$ac_ct_CC"; then
  4025. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4026. else
  4027. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4028. for as_dir in $PATH
  4029. do
  4030. IFS=$as_save_IFS
  4031. test -z "$as_dir" && as_dir=.
  4032. for ac_exec_ext in '' $ac_executable_extensions; do
  4033. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4034. ac_cv_prog_ac_ct_CC="gcc"
  4035. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4036. break 2
  4037. fi
  4038. done
  4039. done
  4040. IFS=$as_save_IFS
  4041. fi
  4042. fi
  4043. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4044. if test -n "$ac_ct_CC"; then
  4045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4046. $as_echo "$ac_ct_CC" >&6; }
  4047. else
  4048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4049. $as_echo "no" >&6; }
  4050. fi
  4051. if test "x$ac_ct_CC" = x; then
  4052. CC=""
  4053. else
  4054. case $cross_compiling:$ac_tool_warned in
  4055. yes:)
  4056. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4057. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4058. ac_tool_warned=yes ;;
  4059. esac
  4060. CC=$ac_ct_CC
  4061. fi
  4062. else
  4063. CC="$ac_cv_prog_CC"
  4064. fi
  4065. if test -z "$CC"; then
  4066. if test -n "$ac_tool_prefix"; then
  4067. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  4068. set dummy ${ac_tool_prefix}cc; ac_word=$2
  4069. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4070. $as_echo_n "checking for $ac_word... " >&6; }
  4071. if test "${ac_cv_prog_CC+set}" = set; then :
  4072. $as_echo_n "(cached) " >&6
  4073. else
  4074. if test -n "$CC"; then
  4075. ac_cv_prog_CC="$CC" # Let the user override the test.
  4076. else
  4077. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4078. for as_dir in $PATH
  4079. do
  4080. IFS=$as_save_IFS
  4081. test -z "$as_dir" && as_dir=.
  4082. for ac_exec_ext in '' $ac_executable_extensions; do
  4083. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4084. ac_cv_prog_CC="${ac_tool_prefix}cc"
  4085. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4086. break 2
  4087. fi
  4088. done
  4089. done
  4090. IFS=$as_save_IFS
  4091. fi
  4092. fi
  4093. CC=$ac_cv_prog_CC
  4094. if test -n "$CC"; then
  4095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4096. $as_echo "$CC" >&6; }
  4097. else
  4098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4099. $as_echo "no" >&6; }
  4100. fi
  4101. fi
  4102. fi
  4103. if test -z "$CC"; then
  4104. # Extract the first word of "cc", so it can be a program name with args.
  4105. set dummy cc; ac_word=$2
  4106. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4107. $as_echo_n "checking for $ac_word... " >&6; }
  4108. if test "${ac_cv_prog_CC+set}" = set; then :
  4109. $as_echo_n "(cached) " >&6
  4110. else
  4111. if test -n "$CC"; then
  4112. ac_cv_prog_CC="$CC" # Let the user override the test.
  4113. else
  4114. ac_prog_rejected=no
  4115. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4116. for as_dir in $PATH
  4117. do
  4118. IFS=$as_save_IFS
  4119. test -z "$as_dir" && as_dir=.
  4120. for ac_exec_ext in '' $ac_executable_extensions; do
  4121. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4122. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  4123. ac_prog_rejected=yes
  4124. continue
  4125. fi
  4126. ac_cv_prog_CC="cc"
  4127. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4128. break 2
  4129. fi
  4130. done
  4131. done
  4132. IFS=$as_save_IFS
  4133. if test $ac_prog_rejected = yes; then
  4134. # We found a bogon in the path, so make sure we never use it.
  4135. set dummy $ac_cv_prog_CC
  4136. shift
  4137. if test $# != 0; then
  4138. # We chose a different compiler from the bogus one.
  4139. # However, it has the same basename, so the bogon will be chosen
  4140. # first if we set CC to just the basename; use the full file name.
  4141. shift
  4142. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  4143. fi
  4144. fi
  4145. fi
  4146. fi
  4147. CC=$ac_cv_prog_CC
  4148. if test -n "$CC"; then
  4149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4150. $as_echo "$CC" >&6; }
  4151. else
  4152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4153. $as_echo "no" >&6; }
  4154. fi
  4155. fi
  4156. if test -z "$CC"; then
  4157. if test -n "$ac_tool_prefix"; then
  4158. for ac_prog in cl.exe
  4159. do
  4160. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4161. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4162. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4163. $as_echo_n "checking for $ac_word... " >&6; }
  4164. if test "${ac_cv_prog_CC+set}" = set; then :
  4165. $as_echo_n "(cached) " >&6
  4166. else
  4167. if test -n "$CC"; then
  4168. ac_cv_prog_CC="$CC" # Let the user override the test.
  4169. else
  4170. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4171. for as_dir in $PATH
  4172. do
  4173. IFS=$as_save_IFS
  4174. test -z "$as_dir" && as_dir=.
  4175. for ac_exec_ext in '' $ac_executable_extensions; do
  4176. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4177. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  4178. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4179. break 2
  4180. fi
  4181. done
  4182. done
  4183. IFS=$as_save_IFS
  4184. fi
  4185. fi
  4186. CC=$ac_cv_prog_CC
  4187. if test -n "$CC"; then
  4188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4189. $as_echo "$CC" >&6; }
  4190. else
  4191. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4192. $as_echo "no" >&6; }
  4193. fi
  4194. test -n "$CC" && break
  4195. done
  4196. fi
  4197. if test -z "$CC"; then
  4198. ac_ct_CC=$CC
  4199. for ac_prog in cl.exe
  4200. do
  4201. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4202. set dummy $ac_prog; ac_word=$2
  4203. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4204. $as_echo_n "checking for $ac_word... " >&6; }
  4205. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  4206. $as_echo_n "(cached) " >&6
  4207. else
  4208. if test -n "$ac_ct_CC"; then
  4209. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4210. else
  4211. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4212. for as_dir in $PATH
  4213. do
  4214. IFS=$as_save_IFS
  4215. test -z "$as_dir" && as_dir=.
  4216. for ac_exec_ext in '' $ac_executable_extensions; do
  4217. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4218. ac_cv_prog_ac_ct_CC="$ac_prog"
  4219. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4220. break 2
  4221. fi
  4222. done
  4223. done
  4224. IFS=$as_save_IFS
  4225. fi
  4226. fi
  4227. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4228. if test -n "$ac_ct_CC"; then
  4229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4230. $as_echo "$ac_ct_CC" >&6; }
  4231. else
  4232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4233. $as_echo "no" >&6; }
  4234. fi
  4235. test -n "$ac_ct_CC" && break
  4236. done
  4237. if test "x$ac_ct_CC" = x; then
  4238. CC=""
  4239. else
  4240. case $cross_compiling:$ac_tool_warned in
  4241. yes:)
  4242. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4243. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4244. ac_tool_warned=yes ;;
  4245. esac
  4246. CC=$ac_ct_CC
  4247. fi
  4248. fi
  4249. fi
  4250. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4251. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4252. as_fn_error "no acceptable C compiler found in \$PATH
  4253. See \`config.log' for more details." "$LINENO" 5; }
  4254. # Provide some information about the compiler.
  4255. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  4256. set X $ac_compile
  4257. ac_compiler=$2
  4258. for ac_option in --version -v -V -qversion; do
  4259. { { ac_try="$ac_compiler $ac_option >&5"
  4260. case "(($ac_try" in
  4261. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4262. *) ac_try_echo=$ac_try;;
  4263. esac
  4264. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4265. $as_echo "$ac_try_echo"; } >&5
  4266. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4267. ac_status=$?
  4268. if test -s conftest.err; then
  4269. sed '10a\
  4270. ... rest of stderr output deleted ...
  4271. 10q' conftest.err >conftest.er1
  4272. cat conftest.er1 >&5
  4273. fi
  4274. rm -f conftest.er1 conftest.err
  4275. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4276. test $ac_status = 0; }
  4277. done
  4278. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  4279. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4280. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  4281. $as_echo_n "(cached) " >&6
  4282. else
  4283. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4284. /* end confdefs.h. */
  4285. int
  4286. main ()
  4287. {
  4288. #ifndef __GNUC__
  4289. choke me
  4290. #endif
  4291. ;
  4292. return 0;
  4293. }
  4294. _ACEOF
  4295. if ac_fn_c_try_compile "$LINENO"; then :
  4296. ac_compiler_gnu=yes
  4297. else
  4298. ac_compiler_gnu=no
  4299. fi
  4300. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4301. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4302. fi
  4303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4304. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4305. if test $ac_compiler_gnu = yes; then
  4306. GCC=yes
  4307. else
  4308. GCC=
  4309. fi
  4310. ac_test_CFLAGS=${CFLAGS+set}
  4311. ac_save_CFLAGS=$CFLAGS
  4312. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4313. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4314. if test "${ac_cv_prog_cc_g+set}" = set; then :
  4315. $as_echo_n "(cached) " >&6
  4316. else
  4317. ac_save_c_werror_flag=$ac_c_werror_flag
  4318. ac_c_werror_flag=yes
  4319. ac_cv_prog_cc_g=no
  4320. CFLAGS="-g"
  4321. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4322. /* end confdefs.h. */
  4323. int
  4324. main ()
  4325. {
  4326. ;
  4327. return 0;
  4328. }
  4329. _ACEOF
  4330. if ac_fn_c_try_compile "$LINENO"; then :
  4331. ac_cv_prog_cc_g=yes
  4332. else
  4333. CFLAGS=""
  4334. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4335. /* end confdefs.h. */
  4336. int
  4337. main ()
  4338. {
  4339. ;
  4340. return 0;
  4341. }
  4342. _ACEOF
  4343. if ac_fn_c_try_compile "$LINENO"; then :
  4344. else
  4345. ac_c_werror_flag=$ac_save_c_werror_flag
  4346. CFLAGS="-g"
  4347. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4348. /* end confdefs.h. */
  4349. int
  4350. main ()
  4351. {
  4352. ;
  4353. return 0;
  4354. }
  4355. _ACEOF
  4356. if ac_fn_c_try_compile "$LINENO"; then :
  4357. ac_cv_prog_cc_g=yes
  4358. fi
  4359. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4360. fi
  4361. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4362. fi
  4363. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4364. ac_c_werror_flag=$ac_save_c_werror_flag
  4365. fi
  4366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4367. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4368. if test "$ac_test_CFLAGS" = set; then
  4369. CFLAGS=$ac_save_CFLAGS
  4370. elif test $ac_cv_prog_cc_g = yes; then
  4371. if test "$GCC" = yes; then
  4372. CFLAGS="-g -O2"
  4373. else
  4374. CFLAGS="-g"
  4375. fi
  4376. else
  4377. if test "$GCC" = yes; then
  4378. CFLAGS="-O2"
  4379. else
  4380. CFLAGS=
  4381. fi
  4382. fi
  4383. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4384. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4385. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  4386. $as_echo_n "(cached) " >&6
  4387. else
  4388. ac_cv_prog_cc_c89=no
  4389. ac_save_CC=$CC
  4390. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4391. /* end confdefs.h. */
  4392. #include <stdarg.h>
  4393. #include <stdio.h>
  4394. #include <sys/types.h>
  4395. #include <sys/stat.h>
  4396. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4397. struct buf { int x; };
  4398. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4399. static char *e (p, i)
  4400. char **p;
  4401. int i;
  4402. {
  4403. return p[i];
  4404. }
  4405. static char *f (char * (*g) (char **, int), char **p, ...)
  4406. {
  4407. char *s;
  4408. va_list v;
  4409. va_start (v,p);
  4410. s = g (p, va_arg (v,int));
  4411. va_end (v);
  4412. return s;
  4413. }
  4414. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4415. function prototypes and stuff, but not '\xHH' hex character constants.
  4416. These don't provoke an error unfortunately, instead are silently treated
  4417. as 'x'. The following induces an error, until -std is added to get
  4418. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4419. array size at least. It's necessary to write '\x00'==0 to get something
  4420. that's true only with -std. */
  4421. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4422. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4423. inside strings and character constants. */
  4424. #define FOO(x) 'x'
  4425. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4426. int test (int i, double x);
  4427. struct s1 {int (*f) (int a);};
  4428. struct s2 {int (*f) (double a);};
  4429. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4430. int argc;
  4431. char **argv;
  4432. int
  4433. main ()
  4434. {
  4435. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4436. ;
  4437. return 0;
  4438. }
  4439. _ACEOF
  4440. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4441. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4442. do
  4443. CC="$ac_save_CC $ac_arg"
  4444. if ac_fn_c_try_compile "$LINENO"; then :
  4445. ac_cv_prog_cc_c89=$ac_arg
  4446. fi
  4447. rm -f core conftest.err conftest.$ac_objext
  4448. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4449. done
  4450. rm -f conftest.$ac_ext
  4451. CC=$ac_save_CC
  4452. fi
  4453. # AC_CACHE_VAL
  4454. case "x$ac_cv_prog_cc_c89" in
  4455. x)
  4456. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4457. $as_echo "none needed" >&6; } ;;
  4458. xno)
  4459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4460. $as_echo "unsupported" >&6; } ;;
  4461. *)
  4462. CC="$CC $ac_cv_prog_cc_c89"
  4463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4464. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4465. esac
  4466. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4467. fi
  4468. ac_ext=c
  4469. ac_cpp='$CPP $CPPFLAGS'
  4470. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4471. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4472. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4473. depcc="$CC" am_compiler_list=
  4474. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4475. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4476. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  4477. $as_echo_n "(cached) " >&6
  4478. else
  4479. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4480. # We make a subdir and do the tests there. Otherwise we can end up
  4481. # making bogus files that we don't know about and never remove. For
  4482. # instance it was reported that on HP-UX the gcc test will end up
  4483. # making a dummy file named `D' -- because `-MD' means `put the output
  4484. # in D'.
  4485. mkdir conftest.dir
  4486. # Copy depcomp to subdir because otherwise we won't find it if we're
  4487. # using a relative directory.
  4488. cp "$am_depcomp" conftest.dir
  4489. cd conftest.dir
  4490. # We will build objects and dependencies in a subdirectory because
  4491. # it helps to detect inapplicable dependency modes. For instance
  4492. # both Tru64's cc and ICC support -MD to output dependencies as a
  4493. # side effect of compilation, but ICC will put the dependencies in
  4494. # the current directory while Tru64 will put them in the object
  4495. # directory.
  4496. mkdir sub
  4497. am_cv_CC_dependencies_compiler_type=none
  4498. if test "$am_compiler_list" = ""; then
  4499. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4500. fi
  4501. am__universal=false
  4502. case " $depcc " in #(
  4503. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4504. esac
  4505. for depmode in $am_compiler_list; do
  4506. # Setup a source with many dependencies, because some compilers
  4507. # like to wrap large dependency lists on column 80 (with \), and
  4508. # we should not choose a depcomp mode which is confused by this.
  4509. #
  4510. # We need to recreate these files for each test, as the compiler may
  4511. # overwrite some of them when testing with obscure command lines.
  4512. # This happens at least with the AIX C compiler.
  4513. : > sub/conftest.c
  4514. for i in 1 2 3 4 5 6; do
  4515. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4516. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4517. # Solaris 8's {/usr,}/bin/sh.
  4518. touch sub/conftst$i.h
  4519. done
  4520. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4521. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4522. # mode. It turns out that the SunPro C++ compiler does not properly
  4523. # handle `-M -o', and we need to detect this. Also, some Intel
  4524. # versions had trouble with output in subdirs
  4525. am__obj=sub/conftest.${OBJEXT-o}
  4526. am__minus_obj="-o $am__obj"
  4527. case $depmode in
  4528. gcc)
  4529. # This depmode causes a compiler race in universal mode.
  4530. test "$am__universal" = false || continue
  4531. ;;
  4532. nosideeffect)
  4533. # after this tag, mechanisms are not by side-effect, so they'll
  4534. # only be used when explicitly requested
  4535. if test "x$enable_dependency_tracking" = xyes; then
  4536. continue
  4537. else
  4538. break
  4539. fi
  4540. ;;
  4541. msvisualcpp | msvcmsys)
  4542. # This compiler won't grok `-c -o', but also, the minuso test has
  4543. # not run yet. These depmodes are late enough in the game, and
  4544. # so weak that their functioning should not be impacted.
  4545. am__obj=conftest.${OBJEXT-o}
  4546. am__minus_obj=
  4547. ;;
  4548. none) break ;;
  4549. esac
  4550. if depmode=$depmode \
  4551. source=sub/conftest.c object=$am__obj \
  4552. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4553. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4554. >/dev/null 2>conftest.err &&
  4555. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4556. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4557. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4558. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4559. # icc doesn't choke on unknown options, it will just issue warnings
  4560. # or remarks (even with -Werror). So we grep stderr for any message
  4561. # that says an option was ignored or not supported.
  4562. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4563. # icc: Command line warning: ignoring option '-M'; no argument required
  4564. # The diagnosis changed in icc 8.0:
  4565. # icc: Command line remark: option '-MP' not supported
  4566. if (grep 'ignoring option' conftest.err ||
  4567. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4568. am_cv_CC_dependencies_compiler_type=$depmode
  4569. break
  4570. fi
  4571. fi
  4572. done
  4573. cd ..
  4574. rm -rf conftest.dir
  4575. else
  4576. am_cv_CC_dependencies_compiler_type=none
  4577. fi
  4578. fi
  4579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4580. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4581. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4582. if
  4583. test "x$enable_dependency_tracking" != xno \
  4584. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4585. am__fastdepCC_TRUE=
  4586. am__fastdepCC_FALSE='#'
  4587. else
  4588. am__fastdepCC_TRUE='#'
  4589. am__fastdepCC_FALSE=
  4590. fi
  4591. if test -n "$ac_tool_prefix"; then
  4592. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4593. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4594. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4595. $as_echo_n "checking for $ac_word... " >&6; }
  4596. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  4597. $as_echo_n "(cached) " >&6
  4598. else
  4599. if test -n "$RANLIB"; then
  4600. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4601. else
  4602. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4603. for as_dir in $PATH
  4604. do
  4605. IFS=$as_save_IFS
  4606. test -z "$as_dir" && as_dir=.
  4607. for ac_exec_ext in '' $ac_executable_extensions; do
  4608. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4609. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4610. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4611. break 2
  4612. fi
  4613. done
  4614. done
  4615. IFS=$as_save_IFS
  4616. fi
  4617. fi
  4618. RANLIB=$ac_cv_prog_RANLIB
  4619. if test -n "$RANLIB"; then
  4620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4621. $as_echo "$RANLIB" >&6; }
  4622. else
  4623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4624. $as_echo "no" >&6; }
  4625. fi
  4626. fi
  4627. if test -z "$ac_cv_prog_RANLIB"; then
  4628. ac_ct_RANLIB=$RANLIB
  4629. # Extract the first word of "ranlib", so it can be a program name with args.
  4630. set dummy ranlib; ac_word=$2
  4631. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4632. $as_echo_n "checking for $ac_word... " >&6; }
  4633. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  4634. $as_echo_n "(cached) " >&6
  4635. else
  4636. if test -n "$ac_ct_RANLIB"; then
  4637. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4638. else
  4639. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4640. for as_dir in $PATH
  4641. do
  4642. IFS=$as_save_IFS
  4643. test -z "$as_dir" && as_dir=.
  4644. for ac_exec_ext in '' $ac_executable_extensions; do
  4645. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4646. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4647. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4648. break 2
  4649. fi
  4650. done
  4651. done
  4652. IFS=$as_save_IFS
  4653. fi
  4654. fi
  4655. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4656. if test -n "$ac_ct_RANLIB"; then
  4657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4658. $as_echo "$ac_ct_RANLIB" >&6; }
  4659. else
  4660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4661. $as_echo "no" >&6; }
  4662. fi
  4663. if test "x$ac_ct_RANLIB" = x; then
  4664. RANLIB=":"
  4665. else
  4666. case $cross_compiling:$ac_tool_warned in
  4667. yes:)
  4668. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4669. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4670. ac_tool_warned=yes ;;
  4671. esac
  4672. RANLIB=$ac_ct_RANLIB
  4673. fi
  4674. else
  4675. RANLIB="$ac_cv_prog_RANLIB"
  4676. fi
  4677. for ac_prog in 'bison -y' byacc
  4678. do
  4679. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4680. set dummy $ac_prog; ac_word=$2
  4681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4682. $as_echo_n "checking for $ac_word... " >&6; }
  4683. if test "${ac_cv_prog_YACC+set}" = set; then :
  4684. $as_echo_n "(cached) " >&6
  4685. else
  4686. if test -n "$YACC"; then
  4687. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  4688. else
  4689. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4690. for as_dir in $PATH
  4691. do
  4692. IFS=$as_save_IFS
  4693. test -z "$as_dir" && as_dir=.
  4694. for ac_exec_ext in '' $ac_executable_extensions; do
  4695. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4696. ac_cv_prog_YACC="$ac_prog"
  4697. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4698. break 2
  4699. fi
  4700. done
  4701. done
  4702. IFS=$as_save_IFS
  4703. fi
  4704. fi
  4705. YACC=$ac_cv_prog_YACC
  4706. if test -n "$YACC"; then
  4707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
  4708. $as_echo "$YACC" >&6; }
  4709. else
  4710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4711. $as_echo "no" >&6; }
  4712. fi
  4713. test -n "$YACC" && break
  4714. done
  4715. test -n "$YACC" || YACC="yacc"
  4716. # Setting language choice
  4717. ac_ext=cpp
  4718. ac_cpp='$CXXCPP $CPPFLAGS'
  4719. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4720. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4721. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4722. # Enable system extensions
  4723. ac_ext=cpp
  4724. ac_cpp='$CXXCPP $CPPFLAGS'
  4725. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4726. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4727. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4728. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  4729. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  4730. if test -z "$CXXCPP"; then
  4731. if test "${ac_cv_prog_CXXCPP+set}" = set; then :
  4732. $as_echo_n "(cached) " >&6
  4733. else
  4734. # Double quotes because CXXCPP needs to be expanded
  4735. for CXXCPP in "$CXX -E" "/lib/cpp"
  4736. do
  4737. ac_preproc_ok=false
  4738. for ac_cxx_preproc_warn_flag in '' yes
  4739. do
  4740. # Use a header file that comes with gcc, so configuring glibc
  4741. # with a fresh cross-compiler works.
  4742. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4743. # <limits.h> exists even on freestanding compilers.
  4744. # On the NeXT, cc -E runs the code through the compiler's parser,
  4745. # not just through cpp. "Syntax error" is here to catch this case.
  4746. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4747. /* end confdefs.h. */
  4748. #ifdef __STDC__
  4749. # include <limits.h>
  4750. #else
  4751. # include <assert.h>
  4752. #endif
  4753. Syntax error
  4754. _ACEOF
  4755. if ac_fn_cxx_try_cpp "$LINENO"; then :
  4756. else
  4757. # Broken: fails on valid input.
  4758. continue
  4759. fi
  4760. rm -f conftest.err conftest.$ac_ext
  4761. # OK, works on sane cases. Now check whether nonexistent headers
  4762. # can be detected and how.
  4763. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4764. /* end confdefs.h. */
  4765. #include <ac_nonexistent.h>
  4766. _ACEOF
  4767. if ac_fn_cxx_try_cpp "$LINENO"; then :
  4768. # Broken: success on invalid input.
  4769. continue
  4770. else
  4771. # Passes both tests.
  4772. ac_preproc_ok=:
  4773. break
  4774. fi
  4775. rm -f conftest.err conftest.$ac_ext
  4776. done
  4777. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4778. rm -f conftest.err conftest.$ac_ext
  4779. if $ac_preproc_ok; then :
  4780. break
  4781. fi
  4782. done
  4783. ac_cv_prog_CXXCPP=$CXXCPP
  4784. fi
  4785. CXXCPP=$ac_cv_prog_CXXCPP
  4786. else
  4787. ac_cv_prog_CXXCPP=$CXXCPP
  4788. fi
  4789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  4790. $as_echo "$CXXCPP" >&6; }
  4791. ac_preproc_ok=false
  4792. for ac_cxx_preproc_warn_flag in '' yes
  4793. do
  4794. # Use a header file that comes with gcc, so configuring glibc
  4795. # with a fresh cross-compiler works.
  4796. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4797. # <limits.h> exists even on freestanding compilers.
  4798. # On the NeXT, cc -E runs the code through the compiler's parser,
  4799. # not just through cpp. "Syntax error" is here to catch this case.
  4800. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4801. /* end confdefs.h. */
  4802. #ifdef __STDC__
  4803. # include <limits.h>
  4804. #else
  4805. # include <assert.h>
  4806. #endif
  4807. Syntax error
  4808. _ACEOF
  4809. if ac_fn_cxx_try_cpp "$LINENO"; then :
  4810. else
  4811. # Broken: fails on valid input.
  4812. continue
  4813. fi
  4814. rm -f conftest.err conftest.$ac_ext
  4815. # OK, works on sane cases. Now check whether nonexistent headers
  4816. # can be detected and how.
  4817. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4818. /* end confdefs.h. */
  4819. #include <ac_nonexistent.h>
  4820. _ACEOF
  4821. if ac_fn_cxx_try_cpp "$LINENO"; then :
  4822. # Broken: success on invalid input.
  4823. continue
  4824. else
  4825. # Passes both tests.
  4826. ac_preproc_ok=:
  4827. break
  4828. fi
  4829. rm -f conftest.err conftest.$ac_ext
  4830. done
  4831. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4832. rm -f conftest.err conftest.$ac_ext
  4833. if $ac_preproc_ok; then :
  4834. else
  4835. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4836. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4837. as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
  4838. See \`config.log' for more details." "$LINENO" 5; }
  4839. fi
  4840. ac_ext=cpp
  4841. ac_cpp='$CXXCPP $CPPFLAGS'
  4842. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4843. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4844. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4845. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4846. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4847. if test "${ac_cv_path_GREP+set}" = set; then :
  4848. $as_echo_n "(cached) " >&6
  4849. else
  4850. if test -z "$GREP"; then
  4851. ac_path_GREP_found=false
  4852. # Loop through the user's path and test for each of PROGNAME-LIST
  4853. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4854. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4855. do
  4856. IFS=$as_save_IFS
  4857. test -z "$as_dir" && as_dir=.
  4858. for ac_prog in grep ggrep; do
  4859. for ac_exec_ext in '' $ac_executable_extensions; do
  4860. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4861. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4862. # Check for GNU ac_path_GREP and select it if it is found.
  4863. # Check for GNU $ac_path_GREP
  4864. case `"$ac_path_GREP" --version 2>&1` in
  4865. *GNU*)
  4866. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4867. *)
  4868. ac_count=0
  4869. $as_echo_n 0123456789 >"conftest.in"
  4870. while :
  4871. do
  4872. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4873. mv "conftest.tmp" "conftest.in"
  4874. cp "conftest.in" "conftest.nl"
  4875. $as_echo 'GREP' >> "conftest.nl"
  4876. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4877. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4878. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4879. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4880. # Best one so far, save it but keep looking for a better one
  4881. ac_cv_path_GREP="$ac_path_GREP"
  4882. ac_path_GREP_max=$ac_count
  4883. fi
  4884. # 10*(2^10) chars as input seems more than enough
  4885. test $ac_count -gt 10 && break
  4886. done
  4887. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4888. esac
  4889. $ac_path_GREP_found && break 3
  4890. done
  4891. done
  4892. done
  4893. IFS=$as_save_IFS
  4894. if test -z "$ac_cv_path_GREP"; then
  4895. as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4896. fi
  4897. else
  4898. ac_cv_path_GREP=$GREP
  4899. fi
  4900. fi
  4901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4902. $as_echo "$ac_cv_path_GREP" >&6; }
  4903. GREP="$ac_cv_path_GREP"
  4904. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4905. $as_echo_n "checking for egrep... " >&6; }
  4906. if test "${ac_cv_path_EGREP+set}" = set; then :
  4907. $as_echo_n "(cached) " >&6
  4908. else
  4909. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4910. then ac_cv_path_EGREP="$GREP -E"
  4911. else
  4912. if test -z "$EGREP"; then
  4913. ac_path_EGREP_found=false
  4914. # Loop through the user's path and test for each of PROGNAME-LIST
  4915. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4916. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4917. do
  4918. IFS=$as_save_IFS
  4919. test -z "$as_dir" && as_dir=.
  4920. for ac_prog in egrep; do
  4921. for ac_exec_ext in '' $ac_executable_extensions; do
  4922. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4923. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4924. # Check for GNU ac_path_EGREP and select it if it is found.
  4925. # Check for GNU $ac_path_EGREP
  4926. case `"$ac_path_EGREP" --version 2>&1` in
  4927. *GNU*)
  4928. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4929. *)
  4930. ac_count=0
  4931. $as_echo_n 0123456789 >"conftest.in"
  4932. while :
  4933. do
  4934. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4935. mv "conftest.tmp" "conftest.in"
  4936. cp "conftest.in" "conftest.nl"
  4937. $as_echo 'EGREP' >> "conftest.nl"
  4938. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4939. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4940. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4941. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4942. # Best one so far, save it but keep looking for a better one
  4943. ac_cv_path_EGREP="$ac_path_EGREP"
  4944. ac_path_EGREP_max=$ac_count
  4945. fi
  4946. # 10*(2^10) chars as input seems more than enough
  4947. test $ac_count -gt 10 && break
  4948. done
  4949. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4950. esac
  4951. $ac_path_EGREP_found && break 3
  4952. done
  4953. done
  4954. done
  4955. IFS=$as_save_IFS
  4956. if test -z "$ac_cv_path_EGREP"; then
  4957. as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4958. fi
  4959. else
  4960. ac_cv_path_EGREP=$EGREP
  4961. fi
  4962. fi
  4963. fi
  4964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4965. $as_echo "$ac_cv_path_EGREP" >&6; }
  4966. EGREP="$ac_cv_path_EGREP"
  4967. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4968. $as_echo_n "checking for ANSI C header files... " >&6; }
  4969. if test "${ac_cv_header_stdc+set}" = set; then :
  4970. $as_echo_n "(cached) " >&6
  4971. else
  4972. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4973. /* end confdefs.h. */
  4974. #include <stdlib.h>
  4975. #include <stdarg.h>
  4976. #include <string.h>
  4977. #include <float.h>
  4978. int
  4979. main ()
  4980. {
  4981. ;
  4982. return 0;
  4983. }
  4984. _ACEOF
  4985. if ac_fn_cxx_try_compile "$LINENO"; then :
  4986. ac_cv_header_stdc=yes
  4987. else
  4988. ac_cv_header_stdc=no
  4989. fi
  4990. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4991. if test $ac_cv_header_stdc = yes; then
  4992. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4993. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4994. /* end confdefs.h. */
  4995. #include <string.h>
  4996. _ACEOF
  4997. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4998. $EGREP "memchr" >/dev/null 2>&1; then :
  4999. else
  5000. ac_cv_header_stdc=no
  5001. fi
  5002. rm -f conftest*
  5003. fi
  5004. if test $ac_cv_header_stdc = yes; then
  5005. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  5006. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5007. /* end confdefs.h. */
  5008. #include <stdlib.h>
  5009. _ACEOF
  5010. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5011. $EGREP "free" >/dev/null 2>&1; then :
  5012. else
  5013. ac_cv_header_stdc=no
  5014. fi
  5015. rm -f conftest*
  5016. fi
  5017. if test $ac_cv_header_stdc = yes; then
  5018. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  5019. if test "$cross_compiling" = yes; then :
  5020. :
  5021. else
  5022. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5023. /* end confdefs.h. */
  5024. #include <ctype.h>
  5025. #include <stdlib.h>
  5026. #if ((' ' & 0x0FF) == 0x020)
  5027. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  5028. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  5029. #else
  5030. # define ISLOWER(c) \
  5031. (('a' <= (c) && (c) <= 'i') \
  5032. || ('j' <= (c) && (c) <= 'r') \
  5033. || ('s' <= (c) && (c) <= 'z'))
  5034. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  5035. #endif
  5036. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  5037. int
  5038. main ()
  5039. {
  5040. int i;
  5041. for (i = 0; i < 256; i++)
  5042. if (XOR (islower (i), ISLOWER (i))
  5043. || toupper (i) != TOUPPER (i))
  5044. return 2;
  5045. return 0;
  5046. }
  5047. _ACEOF
  5048. if ac_fn_cxx_try_run "$LINENO"; then :
  5049. else
  5050. ac_cv_header_stdc=no
  5051. fi
  5052. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5053. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5054. fi
  5055. fi
  5056. fi
  5057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  5058. $as_echo "$ac_cv_header_stdc" >&6; }
  5059. if test $ac_cv_header_stdc = yes; then
  5060. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  5061. fi
  5062. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  5063. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  5064. inttypes.h stdint.h unistd.h
  5065. do :
  5066. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5067. ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  5068. "
  5069. eval as_val=\$$as_ac_Header
  5070. if test "x$as_val" = x""yes; then :
  5071. cat >>confdefs.h <<_ACEOF
  5072. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5073. _ACEOF
  5074. fi
  5075. done
  5076. ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  5077. if test "x$ac_cv_header_minix_config_h" = x""yes; then :
  5078. MINIX=yes
  5079. else
  5080. MINIX=
  5081. fi
  5082. if test "$MINIX" = yes; then
  5083. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  5084. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  5085. $as_echo "#define _MINIX 1" >>confdefs.h
  5086. fi
  5087. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  5088. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  5089. if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
  5090. $as_echo_n "(cached) " >&6
  5091. else
  5092. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5093. /* end confdefs.h. */
  5094. # define __EXTENSIONS__ 1
  5095. $ac_includes_default
  5096. int
  5097. main ()
  5098. {
  5099. ;
  5100. return 0;
  5101. }
  5102. _ACEOF
  5103. if ac_fn_cxx_try_compile "$LINENO"; then :
  5104. ac_cv_safe_to_define___extensions__=yes
  5105. else
  5106. ac_cv_safe_to_define___extensions__=no
  5107. fi
  5108. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5109. fi
  5110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  5111. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  5112. test $ac_cv_safe_to_define___extensions__ = yes &&
  5113. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  5114. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  5115. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  5116. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  5117. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  5118. # Check pkg-config is available
  5119. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  5120. if test -n "$ac_tool_prefix"; then
  5121. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  5122. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  5123. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5124. $as_echo_n "checking for $ac_word... " >&6; }
  5125. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
  5126. $as_echo_n "(cached) " >&6
  5127. else
  5128. case $PKG_CONFIG in
  5129. [\\/]* | ?:[\\/]*)
  5130. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  5131. ;;
  5132. *)
  5133. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5134. for as_dir in $PATH
  5135. do
  5136. IFS=$as_save_IFS
  5137. test -z "$as_dir" && as_dir=.
  5138. for ac_exec_ext in '' $ac_executable_extensions; do
  5139. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5140. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5141. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5142. break 2
  5143. fi
  5144. done
  5145. done
  5146. IFS=$as_save_IFS
  5147. ;;
  5148. esac
  5149. fi
  5150. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  5151. if test -n "$PKG_CONFIG"; then
  5152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  5153. $as_echo "$PKG_CONFIG" >&6; }
  5154. else
  5155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5156. $as_echo "no" >&6; }
  5157. fi
  5158. fi
  5159. if test -z "$ac_cv_path_PKG_CONFIG"; then
  5160. ac_pt_PKG_CONFIG=$PKG_CONFIG
  5161. # Extract the first word of "pkg-config", so it can be a program name with args.
  5162. set dummy pkg-config; ac_word=$2
  5163. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5164. $as_echo_n "checking for $ac_word... " >&6; }
  5165. if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
  5166. $as_echo_n "(cached) " >&6
  5167. else
  5168. case $ac_pt_PKG_CONFIG in
  5169. [\\/]* | ?:[\\/]*)
  5170. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  5171. ;;
  5172. *)
  5173. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5174. for as_dir in $PATH
  5175. do
  5176. IFS=$as_save_IFS
  5177. test -z "$as_dir" && as_dir=.
  5178. for ac_exec_ext in '' $ac_executable_extensions; do
  5179. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5180. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5181. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5182. break 2
  5183. fi
  5184. done
  5185. done
  5186. IFS=$as_save_IFS
  5187. ;;
  5188. esac
  5189. fi
  5190. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  5191. if test -n "$ac_pt_PKG_CONFIG"; then
  5192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  5193. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  5194. else
  5195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5196. $as_echo "no" >&6; }
  5197. fi
  5198. if test "x$ac_pt_PKG_CONFIG" = x; then
  5199. PKG_CONFIG=""
  5200. else
  5201. case $cross_compiling:$ac_tool_warned in
  5202. yes:)
  5203. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5204. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5205. ac_tool_warned=yes ;;
  5206. esac
  5207. PKG_CONFIG=$ac_pt_PKG_CONFIG
  5208. fi
  5209. else
  5210. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  5211. fi
  5212. fi
  5213. if test -n "$PKG_CONFIG"; then
  5214. _pkg_min_version=0.20
  5215. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  5216. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  5217. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  5218. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5219. $as_echo "yes" >&6; }
  5220. else
  5221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5222. $as_echo "no" >&6; }
  5223. PKG_CONFIG=""
  5224. fi
  5225. fi
  5226. # Checks for libraries.
  5227. if test "x$with_libxml2" = "xyes"; then
  5228. # Check whether --with-xml-prefix was given.
  5229. if test "${with_xml_prefix+set}" = set; then :
  5230. withval=$with_xml_prefix; xml_config_prefix="$withval"
  5231. else
  5232. xml_config_prefix=""
  5233. fi
  5234. # Check whether --with-xml-exec-prefix was given.
  5235. if test "${with_xml_exec_prefix+set}" = set; then :
  5236. withval=$with_xml_exec_prefix; xml_config_exec_prefix="$withval"
  5237. else
  5238. xml_config_exec_prefix=""
  5239. fi
  5240. # Check whether --enable-xmltest was given.
  5241. if test "${enable_xmltest+set}" = set; then :
  5242. enableval=$enable_xmltest;
  5243. else
  5244. enable_xmltest=yes
  5245. fi
  5246. if test x$xml_config_exec_prefix != x ; then
  5247. xml_config_args="$xml_config_args"
  5248. if test x${XML2_CONFIG+set} != xset ; then
  5249. XML2_CONFIG=$xml_config_exec_prefix/bin/xml2-config
  5250. fi
  5251. fi
  5252. if test x$xml_config_prefix != x ; then
  5253. xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
  5254. if test x${XML2_CONFIG+set} != xset ; then
  5255. XML2_CONFIG=$xml_config_prefix/bin/xml2-config
  5256. fi
  5257. fi
  5258. # Extract the first word of "xml2-config", so it can be a program name with args.
  5259. set dummy xml2-config; ac_word=$2
  5260. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5261. $as_echo_n "checking for $ac_word... " >&6; }
  5262. if test "${ac_cv_path_XML2_CONFIG+set}" = set; then :
  5263. $as_echo_n "(cached) " >&6
  5264. else
  5265. case $XML2_CONFIG in
  5266. [\\/]* | ?:[\\/]*)
  5267. ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
  5268. ;;
  5269. *)
  5270. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5271. for as_dir in $PATH
  5272. do
  5273. IFS=$as_save_IFS
  5274. test -z "$as_dir" && as_dir=.
  5275. for ac_exec_ext in '' $ac_executable_extensions; do
  5276. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5277. ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5278. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5279. break 2
  5280. fi
  5281. done
  5282. done
  5283. IFS=$as_save_IFS
  5284. test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no"
  5285. ;;
  5286. esac
  5287. fi
  5288. XML2_CONFIG=$ac_cv_path_XML2_CONFIG
  5289. if test -n "$XML2_CONFIG"; then
  5290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5
  5291. $as_echo "$XML2_CONFIG" >&6; }
  5292. else
  5293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5294. $as_echo "no" >&6; }
  5295. fi
  5296. min_xml_version=2.6.24
  5297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml - version >= $min_xml_version" >&5
  5298. $as_echo_n "checking for libxml - version >= $min_xml_version... " >&6; }
  5299. no_xml=""
  5300. if test "$XML2_CONFIG" = "no" ; then
  5301. no_xml=yes
  5302. else
  5303. XML_CPPFLAGS=`$XML2_CONFIG $xml_config_args --cflags`
  5304. XML_LIBS=`$XML2_CONFIG $xml_config_args --libs`
  5305. xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \
  5306. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  5307. xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \
  5308. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  5309. xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \
  5310. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  5311. if test "x$enable_xmltest" = "xyes" ; then
  5312. ac_save_CPPFLAGS="$CPPFLAGS"
  5313. ac_save_LIBS="$LIBS"
  5314. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  5315. LIBS="$XML_LIBS $LIBS"
  5316. rm -f conf.xmltest
  5317. if test "$cross_compiling" = yes; then :
  5318. echo $ac_n "cross compiling; assumed OK... $ac_c"
  5319. else
  5320. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5321. /* end confdefs.h. */
  5322. #include <stdlib.h>
  5323. #include <stdio.h>
  5324. #include <string.h>
  5325. #include <libxml/xmlversion.h>
  5326. int
  5327. main()
  5328. {
  5329. int xml_major_version, xml_minor_version, xml_micro_version;
  5330. int major, minor, micro;
  5331. char *tmp_version;
  5332. system("touch conf.xmltest");
  5333. /* Capture xml2-config output via autoconf/configure variables */
  5334. /* HP/UX 9 (%@#!) writes to sscanf strings */
  5335. tmp_version = (char *)strdup("$min_xml_version");
  5336. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  5337. printf("%s, bad version string from xml2-config\n", "$min_xml_version");
  5338. exit(1);
  5339. }
  5340. free(tmp_version);
  5341. /* Capture the version information from the header files */
  5342. tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);
  5343. if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
  5344. printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION");
  5345. exit(1);
  5346. }
  5347. free(tmp_version);
  5348. /* Compare xml2-config output to the libxml headers */
  5349. if ((xml_major_version != $xml_config_major_version) ||
  5350. (xml_minor_version != $xml_config_minor_version) ||
  5351. (xml_micro_version != $xml_config_micro_version))
  5352. {
  5353. printf("*** libxml header files (version %d.%d.%d) do not match\n",
  5354. xml_major_version, xml_minor_version, xml_micro_version);
  5355. printf("*** xml2-config (version %d.%d.%d)\n",
  5356. $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version);
  5357. return 1;
  5358. }
  5359. /* Compare the headers to the library to make sure we match */
  5360. /* Less than ideal -- doesn't provide us with return value feedback,
  5361. * only exits if there's a serious mismatch between header and library.
  5362. */
  5363. LIBXML_TEST_VERSION;
  5364. /* Test that the library is greater than our minimum version */
  5365. if ((xml_major_version > major) ||
  5366. ((xml_major_version == major) && (xml_minor_version > minor)) ||
  5367. ((xml_major_version == major) && (xml_minor_version == minor) &&
  5368. (xml_micro_version >= micro)))
  5369. {
  5370. return 0;
  5371. }
  5372. else
  5373. {
  5374. printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
  5375. xml_major_version, xml_minor_version, xml_micro_version);
  5376. printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
  5377. major, minor, micro);
  5378. printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n");
  5379. printf("***\n");
  5380. printf("*** If you have already installed a sufficiently new version, this error\n");
  5381. printf("*** probably means that the wrong copy of the xml2-config shell script is\n");
  5382. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  5383. printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
  5384. printf("*** correct copy of xml2-config. (In this case, you will have to\n");
  5385. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  5386. printf("*** so that the correct libraries are found at run-time))\n");
  5387. }
  5388. return 1;
  5389. }
  5390. _ACEOF
  5391. if ac_fn_cxx_try_run "$LINENO"; then :
  5392. else
  5393. no_xml=yes
  5394. fi
  5395. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5396. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5397. fi
  5398. CPPFLAGS="$ac_save_CPPFLAGS"
  5399. LIBS="$ac_save_LIBS"
  5400. fi
  5401. fi
  5402. if test "x$no_xml" = x ; then
  5403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&5
  5404. $as_echo "yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&6; }
  5405. have_libxml2=yes
  5406. else
  5407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5408. $as_echo "no" >&6; }
  5409. if test "$XML2_CONFIG" = "no" ; then
  5410. echo "*** The xml2-config script installed by LIBXML could not be found"
  5411. echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
  5412. echo "*** your path, or set the XML2_CONFIG environment variable to the"
  5413. echo "*** full path to xml2-config."
  5414. else
  5415. if test -f conf.xmltest ; then
  5416. :
  5417. else
  5418. echo "*** Could not run libxml test program, checking why..."
  5419. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  5420. LIBS="$LIBS $XML_LIBS"
  5421. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5422. /* end confdefs.h. */
  5423. #include <libxml/xmlversion.h>
  5424. #include <stdio.h>
  5425. int
  5426. main ()
  5427. {
  5428. LIBXML_TEST_VERSION; return 0;
  5429. ;
  5430. return 0;
  5431. }
  5432. _ACEOF
  5433. if ac_fn_cxx_try_link "$LINENO"; then :
  5434. echo "*** The test program compiled, but did not run. This usually means"
  5435. echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
  5436. echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"
  5437. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  5438. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  5439. echo "*** is required on your system"
  5440. echo "***"
  5441. echo "*** If you have an old version installed, it is best to remove it, although"
  5442. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  5443. else
  5444. echo "*** The test program failed to compile or link. See the file config.log for the"
  5445. echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
  5446. echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
  5447. echo "*** may want to edit the xml2-config script: $XML2_CONFIG"
  5448. fi
  5449. rm -f core conftest.err conftest.$ac_objext \
  5450. conftest$ac_exeext conftest.$ac_ext
  5451. CPPFLAGS="$ac_save_CPPFLAGS"
  5452. LIBS="$ac_save_LIBS"
  5453. fi
  5454. fi
  5455. XML_CPPFLAGS=""
  5456. XML_LIBS=""
  5457. :
  5458. fi
  5459. rm -f conf.xmltest
  5460. if test "x$have_libxml2" = "xyes"; then
  5461. $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
  5462. elif test "x$with_libxml2_requested" = "xyes"; then
  5463. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5464. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5465. as_fn_error "libxml2 is requested but not found in the system.
  5466. See \`config.log' for more details." "$LINENO" 5; }
  5467. fi
  5468. fi
  5469. if test "x$with_libexpat" = "xyes" && test "x$have_libxml2" != "xyes"; then
  5470. # Check whether --with-libexpat-prefix was given.
  5471. if test "${with_libexpat_prefix+set}" = set; then :
  5472. withval=$with_libexpat_prefix; libexpat_prefix=$withval
  5473. else
  5474. libexpat_prefix=""
  5475. fi
  5476. if test "x$libexpat_prefix" = "x"; then
  5477. libexpat_prefix="/usr"
  5478. fi
  5479. libexpat_prefix_lib=$libexpat_prefix/lib
  5480. libexpat_prefix_include=$libexpat_prefix/include
  5481. LIBS_save=$LIBS
  5482. CPPFLAGS_save=$CPPFLAGS
  5483. LIBS="-L$libexpat_prefix_lib $LIBS"
  5484. CPPFLAGS="-I$libexpat_prefix_include $CPPFLAGS"
  5485. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML_ParserCreate in -lexpat" >&5
  5486. $as_echo_n "checking for XML_ParserCreate in -lexpat... " >&6; }
  5487. if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then :
  5488. $as_echo_n "(cached) " >&6
  5489. else
  5490. ac_check_lib_save_LIBS=$LIBS
  5491. LIBS="-lexpat $LIBS"
  5492. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5493. /* end confdefs.h. */
  5494. /* Override any GCC internal prototype to avoid an error.
  5495. Use char because int might match the return type of a GCC
  5496. builtin and then its argument prototype would still apply. */
  5497. #ifdef __cplusplus
  5498. extern "C"
  5499. #endif
  5500. char XML_ParserCreate ();
  5501. int
  5502. main ()
  5503. {
  5504. return XML_ParserCreate ();
  5505. ;
  5506. return 0;
  5507. }
  5508. _ACEOF
  5509. if ac_fn_cxx_try_link "$LINENO"; then :
  5510. ac_cv_lib_expat_XML_ParserCreate=yes
  5511. else
  5512. ac_cv_lib_expat_XML_ParserCreate=no
  5513. fi
  5514. rm -f core conftest.err conftest.$ac_objext \
  5515. conftest$ac_exeext conftest.$ac_ext
  5516. LIBS=$ac_check_lib_save_LIBS
  5517. fi
  5518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
  5519. $as_echo "$ac_cv_lib_expat_XML_ParserCreate" >&6; }
  5520. if test "x$ac_cv_lib_expat_XML_ParserCreate" = x""yes; then :
  5521. have_libexpat=yes
  5522. fi
  5523. if test "x$have_libexpat" = "xyes"; then
  5524. $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
  5525. LIBEXPAT_LIBS="-L$libexpat_prefix_lib -lexpat"
  5526. LIBEXPAT_CPPFLAGS="-I$libexpat_prefix_include"
  5527. fi
  5528. LIBS=$LIBS_save
  5529. CPPFLAGS=$CPPFLAGS_save
  5530. if test "x$have_libexpat" != "xyes" &&
  5531. test "x$with_libexpat_requested" = "xyes"; then
  5532. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5533. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5534. as_fn_error "libexpat is requested but not found in the system.
  5535. See \`config.log' for more details." "$LINENO" 5; }
  5536. fi
  5537. fi
  5538. if test "x$with_sqlite3" = "xyes"; then
  5539. # Check whether --with-sqlite3-prefix was given.
  5540. if test "${with_sqlite3_prefix+set}" = set; then :
  5541. withval=$with_sqlite3_prefix; sqlite3_prefix=$withval
  5542. else
  5543. sqlite3_prefix=""
  5544. fi
  5545. if test "x$sqlite3_prefix" = "x"; then
  5546. sqlite3_prefix="/usr"
  5547. fi
  5548. LIBS_save=$LIBS
  5549. CPPFLAGS_save=$CPPFLAGS
  5550. pkg_failed=no
  5551. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLITE3" >&5
  5552. $as_echo_n "checking for SQLITE3... " >&6; }
  5553. if test -n "$PKG_CONFIG"; then
  5554. if test -n "$SQLITE3_CFLAGS"; then
  5555. pkg_cv_SQLITE3_CFLAGS="$SQLITE3_CFLAGS"
  5556. else
  5557. if test -n "$PKG_CONFIG" && \
  5558. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
  5559. ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
  5560. ac_status=$?
  5561. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5562. test $ac_status = 0; }; then
  5563. pkg_cv_SQLITE3_CFLAGS=`$PKG_CONFIG --cflags "sqlite3" 2>/dev/null`
  5564. else
  5565. pkg_failed=yes
  5566. fi
  5567. fi
  5568. else
  5569. pkg_failed=untried
  5570. fi
  5571. if test -n "$PKG_CONFIG"; then
  5572. if test -n "$SQLITE3_LIBS"; then
  5573. pkg_cv_SQLITE3_LIBS="$SQLITE3_LIBS"
  5574. else
  5575. if test -n "$PKG_CONFIG" && \
  5576. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
  5577. ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
  5578. ac_status=$?
  5579. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5580. test $ac_status = 0; }; then
  5581. pkg_cv_SQLITE3_LIBS=`$PKG_CONFIG --libs "sqlite3" 2>/dev/null`
  5582. else
  5583. pkg_failed=yes
  5584. fi
  5585. fi
  5586. else
  5587. pkg_failed=untried
  5588. fi
  5589. if test $pkg_failed = yes; then
  5590. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  5591. _pkg_short_errors_supported=yes
  5592. else
  5593. _pkg_short_errors_supported=no
  5594. fi
  5595. if test $_pkg_short_errors_supported = yes; then
  5596. SQLITE3_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "sqlite3"`
  5597. else
  5598. SQLITE3_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "sqlite3"`
  5599. fi
  5600. # Put the nasty error message in config.log where it belongs
  5601. echo "$SQLITE3_PKG_ERRORS" >&5
  5602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5603. $as_echo "no" >&6; }
  5604. have_sqlite3=no
  5605. elif test $pkg_failed = untried; then
  5606. have_sqlite3=no
  5607. else
  5608. SQLITE3_CFLAGS=$pkg_cv_SQLITE3_CFLAGS
  5609. SQLITE3_LIBS=$pkg_cv_SQLITE3_LIBS
  5610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5611. $as_echo "yes" >&6; }
  5612. have_sqlite3=yes
  5613. fi
  5614. if test "x$have_sqlite3" != "xyes"; then
  5615. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $SQLITE3_PKG_ERRORS" >&5
  5616. $as_echo "$as_me: WARNING: $SQLITE3_PKG_ERRORS" >&2;}
  5617. sqlite3_prefix_lib=$sqlite3_prefix/lib
  5618. sqlite3_prefix_include=$sqlite3_prefix/include
  5619. LIBS="-L$sqlite3_prefix_lib $LIBS"
  5620. CPPFLAGS="-I$sqlite3_prefix_include $CPPFLAGS"
  5621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_open in -lsqlite3" >&5
  5622. $as_echo_n "checking for sqlite3_open in -lsqlite3... " >&6; }
  5623. if test "${ac_cv_lib_sqlite3_sqlite3_open+set}" = set; then :
  5624. $as_echo_n "(cached) " >&6
  5625. else
  5626. ac_check_lib_save_LIBS=$LIBS
  5627. LIBS="-lsqlite3 $LIBS"
  5628. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5629. /* end confdefs.h. */
  5630. /* Override any GCC internal prototype to avoid an error.
  5631. Use char because int might match the return type of a GCC
  5632. builtin and then its argument prototype would still apply. */
  5633. #ifdef __cplusplus
  5634. extern "C"
  5635. #endif
  5636. char sqlite3_open ();
  5637. int
  5638. main ()
  5639. {
  5640. return sqlite3_open ();
  5641. ;
  5642. return 0;
  5643. }
  5644. _ACEOF
  5645. if ac_fn_cxx_try_link "$LINENO"; then :
  5646. ac_cv_lib_sqlite3_sqlite3_open=yes
  5647. else
  5648. ac_cv_lib_sqlite3_sqlite3_open=no
  5649. fi
  5650. rm -f core conftest.err conftest.$ac_objext \
  5651. conftest$ac_exeext conftest.$ac_ext
  5652. LIBS=$ac_check_lib_save_LIBS
  5653. fi
  5654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5
  5655. $as_echo "$ac_cv_lib_sqlite3_sqlite3_open" >&6; }
  5656. if test "x$ac_cv_lib_sqlite3_sqlite3_open" = x""yes; then :
  5657. have_sqlite3=yes
  5658. fi
  5659. if test "x$have_sqlite3" = "xyes"; then
  5660. SQLITE3_LIBS="-L$sqlite3_prefix_lib -lsqlite3"
  5661. SQLITE3_CFLAGS="-I$sqlite3_prefix_include"
  5662. fi
  5663. fi
  5664. if test "x$have_sqlite3" = "xyes"; then
  5665. LIBS="$SQLITE3_LIBS $LIBS"
  5666. CPPFLAGS="$SQLITE3_CFLAGS $CPPFLAGS"
  5667. for ac_func in sqlite3_open_v2
  5668. do :
  5669. ac_fn_cxx_check_func "$LINENO" "sqlite3_open_v2" "ac_cv_func_sqlite3_open_v2"
  5670. if test "x$ac_cv_func_sqlite3_open_v2" = x""yes; then :
  5671. cat >>confdefs.h <<_ACEOF
  5672. #define HAVE_SQLITE3_OPEN_V2 1
  5673. _ACEOF
  5674. fi
  5675. done
  5676. $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
  5677. fi
  5678. LIBS=$LIBS_save
  5679. CPPFLAGS=$CPPFLAGS_save
  5680. if test "x$have_sqlite3" != "xyes" &&
  5681. test "x$with_sqlite3_requested" = "xyes"; then
  5682. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5683. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5684. as_fn_error "sqlite3 is requested but not found in the system.
  5685. See \`config.log' for more details." "$LINENO" 5; }
  5686. fi
  5687. fi
  5688. if test "x$with_gnutls" = "xyes"; then
  5689. # gnutls >= 2.8 doesn't have libgnutls-config anymore.
  5690. # First check the presence of libgnutls using pkg-config.
  5691. pkg_failed=no
  5692. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGNUTLS" >&5
  5693. $as_echo_n "checking for LIBGNUTLS... " >&6; }
  5694. if test -n "$PKG_CONFIG"; then
  5695. if test -n "$LIBGNUTLS_CFLAGS"; then
  5696. pkg_cv_LIBGNUTLS_CFLAGS="$LIBGNUTLS_CFLAGS"
  5697. else
  5698. if test -n "$PKG_CONFIG" && \
  5699. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= 1.2.9\""; } >&5
  5700. ($PKG_CONFIG --exists --print-errors "gnutls >= 1.2.9") 2>&5
  5701. ac_status=$?
  5702. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5703. test $ac_status = 0; }; then
  5704. pkg_cv_LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 1.2.9" 2>/dev/null`
  5705. else
  5706. pkg_failed=yes
  5707. fi
  5708. fi
  5709. else
  5710. pkg_failed=untried
  5711. fi
  5712. if test -n "$PKG_CONFIG"; then
  5713. if test -n "$LIBGNUTLS_LIBS"; then
  5714. pkg_cv_LIBGNUTLS_LIBS="$LIBGNUTLS_LIBS"
  5715. else
  5716. if test -n "$PKG_CONFIG" && \
  5717. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= 1.2.9\""; } >&5
  5718. ($PKG_CONFIG --exists --print-errors "gnutls >= 1.2.9") 2>&5
  5719. ac_status=$?
  5720. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5721. test $ac_status = 0; }; then
  5722. pkg_cv_LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 1.2.9" 2>/dev/null`
  5723. else
  5724. pkg_failed=yes
  5725. fi
  5726. fi
  5727. else
  5728. pkg_failed=untried
  5729. fi
  5730. if test $pkg_failed = yes; then
  5731. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  5732. _pkg_short_errors_supported=yes
  5733. else
  5734. _pkg_short_errors_supported=no
  5735. fi
  5736. if test $_pkg_short_errors_supported = yes; then
  5737. LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnutls >= 1.2.9"`
  5738. else
  5739. LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 1.2.9"`
  5740. fi
  5741. # Put the nasty error message in config.log where it belongs
  5742. echo "$LIBGNUTLS_PKG_ERRORS" >&5
  5743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5744. $as_echo "no" >&6; }
  5745. have_libgnutls=no
  5746. elif test $pkg_failed = untried; then
  5747. have_libgnutls=no
  5748. else
  5749. LIBGNUTLS_CFLAGS=$pkg_cv_LIBGNUTLS_CFLAGS
  5750. LIBGNUTLS_LIBS=$pkg_cv_LIBGNUTLS_LIBS
  5751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5752. $as_echo "yes" >&6; }
  5753. have_libgnutls=yes
  5754. fi
  5755. # If no libgnutls found by pkg-config, fall back to old macro
  5756. if test "x$have_libgnutls" = "xno"; then
  5757. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $LIBGNUTLS_PKG_ERRORS" >&5
  5758. $as_echo "$as_me: WARNING: $LIBGNUTLS_PKG_ERRORS" >&2;}
  5759. # Check whether --with-libgnutls-prefix was given.
  5760. if test "${with_libgnutls_prefix+set}" = set; then :
  5761. withval=$with_libgnutls_prefix; libgnutls_config_prefix="$withval"
  5762. else
  5763. libgnutls_config_prefix=""
  5764. fi
  5765. if test x$libgnutls_config_prefix != x ; then
  5766. if test x${LIBGNUTLS_CONFIG+set} != xset ; then
  5767. LIBGNUTLS_CONFIG=$libgnutls_config_prefix/bin/libgnutls-config
  5768. fi
  5769. fi
  5770. # Extract the first word of "libgnutls-config", so it can be a program name with args.
  5771. set dummy libgnutls-config; ac_word=$2
  5772. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5773. $as_echo_n "checking for $ac_word... " >&6; }
  5774. if test "${ac_cv_path_LIBGNUTLS_CONFIG+set}" = set; then :
  5775. $as_echo_n "(cached) " >&6
  5776. else
  5777. case $LIBGNUTLS_CONFIG in
  5778. [\\/]* | ?:[\\/]*)
  5779. ac_cv_path_LIBGNUTLS_CONFIG="$LIBGNUTLS_CONFIG" # Let the user override the test with a path.
  5780. ;;
  5781. *)
  5782. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5783. for as_dir in $PATH
  5784. do
  5785. IFS=$as_save_IFS
  5786. test -z "$as_dir" && as_dir=.
  5787. for ac_exec_ext in '' $ac_executable_extensions; do
  5788. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5789. ac_cv_path_LIBGNUTLS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5790. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5791. break 2
  5792. fi
  5793. done
  5794. done
  5795. IFS=$as_save_IFS
  5796. test -z "$ac_cv_path_LIBGNUTLS_CONFIG" && ac_cv_path_LIBGNUTLS_CONFIG="no"
  5797. ;;
  5798. esac
  5799. fi
  5800. LIBGNUTLS_CONFIG=$ac_cv_path_LIBGNUTLS_CONFIG
  5801. if test -n "$LIBGNUTLS_CONFIG"; then
  5802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CONFIG" >&5
  5803. $as_echo "$LIBGNUTLS_CONFIG" >&6; }
  5804. else
  5805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5806. $as_echo "no" >&6; }
  5807. fi
  5808. min_libgnutls_version=1.2.9
  5809. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgnutls - version >= $min_libgnutls_version" >&5
  5810. $as_echo_n "checking for libgnutls - version >= $min_libgnutls_version... " >&6; }
  5811. no_libgnutls=""
  5812. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  5813. no_libgnutls=yes
  5814. else
  5815. LIBGNUTLS_CFLAGS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --cflags`
  5816. LIBGNUTLS_LIBS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --libs`
  5817. libgnutls_config_version=`$LIBGNUTLS_CONFIG $libgnutls_config_args --version`
  5818. ac_save_CFLAGS="$CFLAGS"
  5819. ac_save_LIBS="$LIBS"
  5820. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  5821. LIBS="$LIBS $LIBGNUTLS_LIBS"
  5822. rm -f conf.libgnutlstest
  5823. if test "$cross_compiling" = yes; then :
  5824. echo $ac_n "cross compiling; assumed OK... $ac_c"
  5825. else
  5826. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5827. /* end confdefs.h. */
  5828. #include <stdio.h>
  5829. #include <stdlib.h>
  5830. #include <string.h>
  5831. #include <gnutls/gnutls.h>
  5832. int
  5833. main ()
  5834. {
  5835. system ("touch conf.libgnutlstest");
  5836. if( strcmp( gnutls_check_version(NULL), "$libgnutls_config_version" ) )
  5837. {
  5838. printf("\n*** 'libgnutls-config --version' returned %s, but LIBGNUTLS (%s)\n",
  5839. "$libgnutls_config_version", gnutls_check_version(NULL) );
  5840. printf("*** was found! If libgnutls-config was correct, then it is best\n");
  5841. printf("*** to remove the old version of LIBGNUTLS. You may also be able to fix the error\n");
  5842. printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
  5843. printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
  5844. printf("*** required on your system.\n");
  5845. printf("*** If libgnutls-config was wrong, set the environment variable LIBGNUTLS_CONFIG\n");
  5846. printf("*** to point to the correct copy of libgnutls-config, and remove the file config.cache\n");
  5847. printf("*** before re-running configure\n");
  5848. }
  5849. else if ( strcmp(gnutls_check_version(NULL), LIBGNUTLS_VERSION ) )
  5850. {
  5851. printf("\n*** LIBGNUTLS header file (version %s) does not match\n", LIBGNUTLS_VERSION);
  5852. printf("*** library (version %s)\n", gnutls_check_version(NULL) );
  5853. }
  5854. else
  5855. {
  5856. if ( gnutls_check_version( "$min_libgnutls_version" ) )
  5857. {
  5858. return 0;
  5859. }
  5860. else
  5861. {
  5862. printf("no\n*** An old version of LIBGNUTLS (%s) was found.\n",
  5863. gnutls_check_version(NULL) );
  5864. printf("*** You need a version of LIBGNUTLS newer than %s. The latest version of\n",
  5865. "$min_libgnutls_version" );
  5866. printf("*** LIBGNUTLS is always available from ftp://gnutls.hellug.gr/pub/gnutls.\n");
  5867. printf("*** \n");
  5868. printf("*** If you have already installed a sufficiently new version, this error\n");
  5869. printf("*** probably means that the wrong copy of the libgnutls-config shell script is\n");
  5870. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  5871. printf("*** of LIBGNUTLS, but you can also set the LIBGNUTLS_CONFIG environment to point to the\n");
  5872. printf("*** correct copy of libgnutls-config. (In this case, you will have to\n");
  5873. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  5874. printf("*** so that the correct libraries are found at run-time))\n");
  5875. }
  5876. }
  5877. return 1;
  5878. }
  5879. _ACEOF
  5880. if ac_fn_cxx_try_run "$LINENO"; then :
  5881. else
  5882. no_libgnutls=yes
  5883. fi
  5884. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5885. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5886. fi
  5887. CFLAGS="$ac_save_CFLAGS"
  5888. LIBS="$ac_save_LIBS"
  5889. fi
  5890. if test "x$no_libgnutls" = x ; then
  5891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5892. $as_echo "yes" >&6; }
  5893. have_libgnutls=yes
  5894. else
  5895. if test -f conf.libgnutlstest ; then
  5896. :
  5897. else
  5898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5899. $as_echo "no" >&6; }
  5900. fi
  5901. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  5902. echo "*** The libgnutls-config script installed by LIBGNUTLS could not be found"
  5903. echo "*** If LIBGNUTLS was installed in PREFIX, make sure PREFIX/bin is in"
  5904. echo "*** your path, or set the LIBGNUTLS_CONFIG environment variable to the"
  5905. echo "*** full path to libgnutls-config."
  5906. else
  5907. if test -f conf.libgnutlstest ; then
  5908. :
  5909. else
  5910. echo "*** Could not run libgnutls test program, checking why..."
  5911. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  5912. LIBS="$LIBS $LIBGNUTLS_LIBS"
  5913. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5914. /* end confdefs.h. */
  5915. #include <stdio.h>
  5916. #include <stdlib.h>
  5917. #include <string.h>
  5918. #include <gnutls/gnutls.h>
  5919. int
  5920. main ()
  5921. {
  5922. return !!gnutls_check_version(NULL);
  5923. ;
  5924. return 0;
  5925. }
  5926. _ACEOF
  5927. if ac_fn_cxx_try_link "$LINENO"; then :
  5928. echo "*** The test program compiled, but did not run. This usually means"
  5929. echo "*** that the run-time linker is not finding LIBGNUTLS or finding the wrong"
  5930. echo "*** version of LIBGNUTLS. If it is not finding LIBGNUTLS, you'll need to set your"
  5931. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  5932. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  5933. echo "*** is required on your system"
  5934. echo "***"
  5935. echo "*** If you have an old version installed, it is best to remove it, although"
  5936. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  5937. echo "***"
  5938. else
  5939. echo "*** The test program failed to compile or link. See the file config.log for the"
  5940. echo "*** exact error that occured. This usually means LIBGNUTLS was incorrectly installed"
  5941. echo "*** or that you have moved LIBGNUTLS since it was installed. In the latter case, you"
  5942. echo "*** may want to edit the libgnutls-config script: $LIBGNUTLS_CONFIG"
  5943. fi
  5944. rm -f core conftest.err conftest.$ac_objext \
  5945. conftest$ac_exeext conftest.$ac_ext
  5946. CFLAGS="$ac_save_CFLAGS"
  5947. LIBS="$ac_save_LIBS"
  5948. fi
  5949. fi
  5950. LIBGNUTLS_CFLAGS=""
  5951. LIBGNUTLS_LIBS=""
  5952. :
  5953. fi
  5954. rm -f conf.libgnutlstest
  5955. fi
  5956. if test "x$have_libgnutls" = "xyes"; then
  5957. $as_echo "#define HAVE_LIBGNUTLS 1" >>confdefs.h
  5958. elif test "x$with_gnutls_requested" = "xyes"; then
  5959. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5960. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5961. as_fn_error "gnutls is requested but not found in the system.
  5962. See \`config.log' for more details." "$LINENO" 5; }
  5963. fi
  5964. fi
  5965. if test "x$have_libgnutls" = "xyes"; then
  5966. # Check whether --with-libgcrypt-prefix was given.
  5967. if test "${with_libgcrypt_prefix+set}" = set; then :
  5968. withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
  5969. else
  5970. libgcrypt_config_prefix=""
  5971. fi
  5972. if test x$libgcrypt_config_prefix != x ; then
  5973. if test x${LIBGCRYPT_CONFIG+set} != xset ; then
  5974. LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
  5975. fi
  5976. fi
  5977. # Extract the first word of "libgcrypt-config", so it can be a program name with args.
  5978. set dummy libgcrypt-config; ac_word=$2
  5979. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5980. $as_echo_n "checking for $ac_word... " >&6; }
  5981. if test "${ac_cv_path_LIBGCRYPT_CONFIG+set}" = set; then :
  5982. $as_echo_n "(cached) " >&6
  5983. else
  5984. case $LIBGCRYPT_CONFIG in
  5985. [\\/]* | ?:[\\/]*)
  5986. ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
  5987. ;;
  5988. *)
  5989. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5990. for as_dir in $PATH
  5991. do
  5992. IFS=$as_save_IFS
  5993. test -z "$as_dir" && as_dir=.
  5994. for ac_exec_ext in '' $ac_executable_extensions; do
  5995. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5996. ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5997. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5998. break 2
  5999. fi
  6000. done
  6001. done
  6002. IFS=$as_save_IFS
  6003. test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
  6004. ;;
  6005. esac
  6006. fi
  6007. LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
  6008. if test -n "$LIBGCRYPT_CONFIG"; then
  6009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT_CONFIG" >&5
  6010. $as_echo "$LIBGCRYPT_CONFIG" >&6; }
  6011. else
  6012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6013. $as_echo "no" >&6; }
  6014. fi
  6015. tmp=1.2.2
  6016. if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
  6017. req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
  6018. min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
  6019. else
  6020. req_libgcrypt_api=0
  6021. min_libgcrypt_version="$tmp"
  6022. fi
  6023. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
  6024. $as_echo_n "checking for LIBGCRYPT - version >= $min_libgcrypt_version... " >&6; }
  6025. ok=no
  6026. if test "$LIBGCRYPT_CONFIG" != "no" ; then
  6027. req_major=`echo $min_libgcrypt_version | \
  6028. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
  6029. req_minor=`echo $min_libgcrypt_version | \
  6030. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
  6031. req_micro=`echo $min_libgcrypt_version | \
  6032. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
  6033. libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
  6034. major=`echo $libgcrypt_config_version | \
  6035. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
  6036. minor=`echo $libgcrypt_config_version | \
  6037. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
  6038. micro=`echo $libgcrypt_config_version | \
  6039. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
  6040. if test "$major" -gt "$req_major"; then
  6041. ok=yes
  6042. else
  6043. if test "$major" -eq "$req_major"; then
  6044. if test "$minor" -gt "$req_minor"; then
  6045. ok=yes
  6046. else
  6047. if test "$minor" -eq "$req_minor"; then
  6048. if test "$micro" -ge "$req_micro"; then
  6049. ok=yes
  6050. fi
  6051. fi
  6052. fi
  6053. fi
  6054. fi
  6055. fi
  6056. if test $ok = yes; then
  6057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($libgcrypt_config_version)" >&5
  6058. $as_echo "yes ($libgcrypt_config_version)" >&6; }
  6059. else
  6060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6061. $as_echo "no" >&6; }
  6062. fi
  6063. if test $ok = yes; then
  6064. # If we have a recent libgcrypt, we should also check that the
  6065. # API is compatible
  6066. if test "$req_libgcrypt_api" -gt 0 ; then
  6067. tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
  6068. if test "$tmp" -gt 0 ; then
  6069. { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGCRYPT API version" >&5
  6070. $as_echo_n "checking LIBGCRYPT API version... " >&6; }
  6071. if test "$req_libgcrypt_api" -eq "$tmp" ; then
  6072. { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
  6073. $as_echo "okay" >&6; }
  6074. else
  6075. ok=no
  6076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5
  6077. $as_echo "does not match. want=$req_libgcrypt_api got=$tmp" >&6; }
  6078. fi
  6079. fi
  6080. fi
  6081. fi
  6082. if test $ok = yes; then
  6083. LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
  6084. LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
  6085. have_libgcrypt=yes
  6086. else
  6087. LIBGCRYPT_CFLAGS=""
  6088. LIBGCRYPT_LIBS=""
  6089. :
  6090. fi
  6091. if test "x$have_libgcrypt" = "xyes"; then
  6092. $as_echo "#define HAVE_LIBGCRYPT 1" >>confdefs.h
  6093. fi
  6094. fi
  6095. if test "x$with_openssl" = "xyes" && test "x$have_libgnutls" != "xyes"; then
  6096. # Check whether --with-openssl-prefix was given.
  6097. if test "${with_openssl_prefix+set}" = set; then :
  6098. withval=$with_openssl_prefix; openssl_prefix=$withval
  6099. else
  6100. openssl_prefix=""
  6101. fi
  6102. if test "x$openssl_prefix" = "x"; then
  6103. openssl_prefix="/usr/local"
  6104. fi
  6105. LIBS_save=$LIBS
  6106. CPPFLAGS_save=$CPPFLAGS
  6107. PKG_CONFIG="$openssl_prefix/bin/pkg-config"
  6108. if test -x $PKG_CONFIG; then
  6109. { $as_echo "$as_me:${as_lineno-$LINENO}: checking checking availability of openssl using pkg-config" >&5
  6110. $as_echo_n "checking checking availability of openssl using pkg-config... " >&6; }
  6111. $PKG_CONFIG --exists openssl
  6112. if test "$?" = "0"; then
  6113. # Use pkg-config to detect LIBS and CFLAGS
  6114. OPENSSL_LIBS=`$PKG_CONFIG --libs openssl`
  6115. OPENSSL_CFLAGS=`$PKG_CONFIG --cflags openssl`
  6116. LIBS="$OPENSSL_LIBS $LIBS"
  6117. CPPFLAGS="$OPENSSL_CFLAGS $CPPFLAGS"
  6118. have_openssl=yes
  6119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6120. $as_echo "yes" >&6; }
  6121. else
  6122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6123. $as_echo "no" >&6; }
  6124. fi
  6125. fi
  6126. if test "x$have_openssl" != "xyes"; then
  6127. openssl_prefix_lib=$openssl_prefix/lib
  6128. openssl_prefix_include=$openssl_prefix/include
  6129. LIBS="-L$openssl_prefix_lib $LIBS"
  6130. CPPFLAGS="-I$openssl_prefix_include $CPPFLAGS"
  6131. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_library_init in -lssl" >&5
  6132. $as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
  6133. if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then :
  6134. $as_echo_n "(cached) " >&6
  6135. else
  6136. ac_check_lib_save_LIBS=$LIBS
  6137. LIBS="-lssl $LIBS"
  6138. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6139. /* end confdefs.h. */
  6140. /* Override any GCC internal prototype to avoid an error.
  6141. Use char because int might match the return type of a GCC
  6142. builtin and then its argument prototype would still apply. */
  6143. #ifdef __cplusplus
  6144. extern "C"
  6145. #endif
  6146. char SSL_library_init ();
  6147. int
  6148. main ()
  6149. {
  6150. return SSL_library_init ();
  6151. ;
  6152. return 0;
  6153. }
  6154. _ACEOF
  6155. if ac_fn_cxx_try_link "$LINENO"; then :
  6156. ac_cv_lib_ssl_SSL_library_init=yes
  6157. else
  6158. ac_cv_lib_ssl_SSL_library_init=no
  6159. fi
  6160. rm -f core conftest.err conftest.$ac_objext \
  6161. conftest$ac_exeext conftest.$ac_ext
  6162. LIBS=$ac_check_lib_save_LIBS
  6163. fi
  6164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_library_init" >&5
  6165. $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
  6166. if test "x$ac_cv_lib_ssl_SSL_library_init" = x""yes; then :
  6167. have_openssl=yes LIBS="-lssl $LIBS"
  6168. fi
  6169. if test "x$have_openssl" = "xyes"; then
  6170. have_openssl=no
  6171. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lcrypto" >&5
  6172. $as_echo_n "checking for main in -lcrypto... " >&6; }
  6173. if test "${ac_cv_lib_crypto_main+set}" = set; then :
  6174. $as_echo_n "(cached) " >&6
  6175. else
  6176. ac_check_lib_save_LIBS=$LIBS
  6177. LIBS="-lcrypto $LIBS"
  6178. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6179. /* end confdefs.h. */
  6180. int
  6181. main ()
  6182. {
  6183. return main ();
  6184. ;
  6185. return 0;
  6186. }
  6187. _ACEOF
  6188. if ac_fn_cxx_try_link "$LINENO"; then :
  6189. ac_cv_lib_crypto_main=yes
  6190. else
  6191. ac_cv_lib_crypto_main=no
  6192. fi
  6193. rm -f core conftest.err conftest.$ac_objext \
  6194. conftest$ac_exeext conftest.$ac_ext
  6195. LIBS=$ac_check_lib_save_LIBS
  6196. fi
  6197. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_main" >&5
  6198. $as_echo "$ac_cv_lib_crypto_main" >&6; }
  6199. if test "x$ac_cv_lib_crypto_main" = x""yes; then :
  6200. have_openssl=yes; LIBS="-lcrypto $LIBS"
  6201. fi
  6202. if test "x$have_openssl" = "xyes"; then
  6203. OPENSSL_LIBS="-L$openssl_prefix_lib -lssl -lcrypto"
  6204. OPENSSL_CFLAGS="-I$openssl_prefix_include"
  6205. fi
  6206. fi
  6207. fi
  6208. if test "x$have_openssl" = "xyes"; then
  6209. $as_echo "#define HAVE_LIBSSL 1" >>confdefs.h
  6210. # check whether EVP_DigestInit_ex exists. Old openssl doesn't have it.
  6211. for ac_func in EVP_DigestInit_ex
  6212. do :
  6213. ac_fn_cxx_check_func "$LINENO" "EVP_DigestInit_ex" "ac_cv_func_EVP_DigestInit_ex"
  6214. if test "x$ac_cv_func_EVP_DigestInit_ex" = x""yes; then :
  6215. cat >>confdefs.h <<_ACEOF
  6216. #define HAVE_EVP_DIGESTINIT_EX 1
  6217. _ACEOF
  6218. have_digestinit_ex=yes
  6219. fi
  6220. done
  6221. if test "x$have_digestinit_ex" = "x"; then
  6222. $as_echo "#define HAVE_OLD_LIBSSL 1" >>confdefs.h
  6223. fi
  6224. # search for sha256 support
  6225. for ac_func in EVP_sha256
  6226. do :
  6227. ac_fn_cxx_check_func "$LINENO" "EVP_sha256" "ac_cv_func_EVP_sha256"
  6228. if test "x$ac_cv_func_EVP_sha256" = x""yes; then :
  6229. cat >>confdefs.h <<_ACEOF
  6230. #define HAVE_EVP_SHA256 1
  6231. _ACEOF
  6232. fi
  6233. done
  6234. fi
  6235. LIBS=$LIBS_save
  6236. CPPFLAGS=$CPPFLAGS_save
  6237. if test "x$have_openssl" != "xyes" &&
  6238. test "x$with_openssl_requested" = "xyes"; then
  6239. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6240. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6241. as_fn_error "openssl is requested but not found in the system.
  6242. See \`config.log' for more details." "$LINENO" 5; }
  6243. fi
  6244. fi
  6245. if test "x$with_libcares" = "xyes"; then
  6246. # Check whether --with-libcares-prefix was given.
  6247. if test "${with_libcares_prefix+set}" = set; then :
  6248. withval=$with_libcares_prefix; libcares_prefix=$withval
  6249. else
  6250. libcares_prefix=""
  6251. fi
  6252. if test "x$libcares_prefix" = "x"; then
  6253. libcares_prefix="/usr"
  6254. fi
  6255. libcares_prefix_lib=$libcares_prefix/lib
  6256. libcares_prefix_include=$libcares_prefix/include
  6257. LIBS_save=$LIBS
  6258. CPPFLAGS_save=$CPPFLAGS
  6259. LIBS="-L$libcares_prefix_lib $LIBS"
  6260. CPPFLAGS="-I$libcares_prefix_include -Wall $CPPFLAGS"
  6261. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ares_init in -lcares" >&5
  6262. $as_echo_n "checking for ares_init in -lcares... " >&6; }
  6263. if test "${ac_cv_lib_cares_ares_init+set}" = set; then :
  6264. $as_echo_n "(cached) " >&6
  6265. else
  6266. ac_check_lib_save_LIBS=$LIBS
  6267. LIBS="-lcares $LIBS"
  6268. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6269. /* end confdefs.h. */
  6270. /* Override any GCC internal prototype to avoid an error.
  6271. Use char because int might match the return type of a GCC
  6272. builtin and then its argument prototype would still apply. */
  6273. #ifdef __cplusplus
  6274. extern "C"
  6275. #endif
  6276. char ares_init ();
  6277. int
  6278. main ()
  6279. {
  6280. return ares_init ();
  6281. ;
  6282. return 0;
  6283. }
  6284. _ACEOF
  6285. if ac_fn_cxx_try_link "$LINENO"; then :
  6286. ac_cv_lib_cares_ares_init=yes
  6287. else
  6288. ac_cv_lib_cares_ares_init=no
  6289. fi
  6290. rm -f core conftest.err conftest.$ac_objext \
  6291. conftest$ac_exeext conftest.$ac_ext
  6292. LIBS=$ac_check_lib_save_LIBS
  6293. fi
  6294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cares_ares_init" >&5
  6295. $as_echo "$ac_cv_lib_cares_ares_init" >&6; }
  6296. if test "x$ac_cv_lib_cares_ares_init" = x""yes; then :
  6297. have_libcares=yes
  6298. fi
  6299. if test "x$have_libcares" != "xyes"; then
  6300. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ares_init in -lcares" >&5
  6301. $as_echo_n "checking for ares_init in -lcares... " >&6; }
  6302. if test "${ac_cv_lib_cares_ares_init+set}" = set; then :
  6303. $as_echo_n "(cached) " >&6
  6304. else
  6305. ac_check_lib_save_LIBS=$LIBS
  6306. LIBS="-lcares -lrt $LIBS"
  6307. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6308. /* end confdefs.h. */
  6309. /* Override any GCC internal prototype to avoid an error.
  6310. Use char because int might match the return type of a GCC
  6311. builtin and then its argument prototype would still apply. */
  6312. #ifdef __cplusplus
  6313. extern "C"
  6314. #endif
  6315. char ares_init ();
  6316. int
  6317. main ()
  6318. {
  6319. return ares_init ();
  6320. ;
  6321. return 0;
  6322. }
  6323. _ACEOF
  6324. if ac_fn_cxx_try_link "$LINENO"; then :
  6325. ac_cv_lib_cares_ares_init=yes
  6326. else
  6327. ac_cv_lib_cares_ares_init=no
  6328. fi
  6329. rm -f core conftest.err conftest.$ac_objext \
  6330. conftest$ac_exeext conftest.$ac_ext
  6331. LIBS=$ac_check_lib_save_LIBS
  6332. fi
  6333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cares_ares_init" >&5
  6334. $as_echo "$ac_cv_lib_cares_ares_init" >&6; }
  6335. if test "x$ac_cv_lib_cares_ares_init" = x""yes; then :
  6336. have_libcares=yes need_librt=yes
  6337. fi
  6338. fi
  6339. if test "x$have_libcares" = "xyes"; then
  6340. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ares_host_callback accepts timeouts(c-ares >= 1.5)" >&5
  6341. $as_echo_n "checking whether ares_host_callback accepts timeouts(c-ares >= 1.5)... " >&6; }
  6342. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6343. /* end confdefs.h. */
  6344. #include <ares.h>
  6345. void callback(void* arg, int status, int timeouts, struct hostent* host);
  6346. int
  6347. main ()
  6348. {
  6349. ares_channel channel;
  6350. ares_gethostbyname(channel, "foo", 0, callback, 0);
  6351. ;
  6352. return 0;
  6353. }
  6354. _ACEOF
  6355. if ac_fn_cxx_try_compile "$LINENO"; then :
  6356. have_libcares1_5=yes
  6357. else
  6358. have_libcares1_5=no
  6359. fi
  6360. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_libcares1_5" >&5
  6362. $as_echo "$have_libcares1_5" >&6; }
  6363. if test "x$have_libcares1_5" = "xyes"; then
  6364. $as_echo "#define HAVE_LIBCARES1_5 1" >>confdefs.h
  6365. fi
  6366. $as_echo "#define HAVE_LIBCARES 1" >>confdefs.h
  6367. LIBCARES_LIBS="-L$libcares_prefix_lib -lcares"
  6368. if test "x$need_librt" = "xyes"; then
  6369. LIBCARES_LIBS="$LIBCARES_LIBS -lrt"
  6370. fi
  6371. LIBCARES_CPPFLAGS="-I$libcares_prefix_include"
  6372. fi
  6373. LIBS=$LIBS_save
  6374. CPPFLAGS=$CPPFLAGS_save
  6375. if test "x$have_libcares" != "xyes" &&
  6376. test "x$with_libcares_requested" = "xyes"; then
  6377. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6378. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6379. as_fn_error "libcares is requested but not found in the system.
  6380. See \`config.log' for more details." "$LINENO" 5; }
  6381. fi
  6382. fi
  6383. # Check availability of libz
  6384. if test "x$with_libz" = "xyes"; then
  6385. # Check whether --with-libz-prefix was given.
  6386. if test "${with_libz_prefix+set}" = set; then :
  6387. withval=$with_libz_prefix; libz_prefix=$withval
  6388. else
  6389. libz_prefix=""
  6390. fi
  6391. if test "x$libz_prefix" = "x"; then
  6392. libz_prefix="/usr"
  6393. fi
  6394. libz_prefix_lib=$libz_prefix/lib
  6395. libz_prefix_include=$libz_prefix/include
  6396. LIBS_save=$LIBS
  6397. CPPFLAGS_save=$CPPFLAGS
  6398. LIBS="-L$libz_prefix_lib $LIBS"
  6399. CPPFLAGS="-I$libz_prefix_include $CPPFLAGS"
  6400. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5
  6401. $as_echo_n "checking for zlibVersion in -lz... " >&6; }
  6402. if test "${ac_cv_lib_z_zlibVersion+set}" = set; then :
  6403. $as_echo_n "(cached) " >&6
  6404. else
  6405. ac_check_lib_save_LIBS=$LIBS
  6406. LIBS="-lz $LIBS"
  6407. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6408. /* end confdefs.h. */
  6409. /* Override any GCC internal prototype to avoid an error.
  6410. Use char because int might match the return type of a GCC
  6411. builtin and then its argument prototype would still apply. */
  6412. #ifdef __cplusplus
  6413. extern "C"
  6414. #endif
  6415. char zlibVersion ();
  6416. int
  6417. main ()
  6418. {
  6419. return zlibVersion ();
  6420. ;
  6421. return 0;
  6422. }
  6423. _ACEOF
  6424. if ac_fn_cxx_try_link "$LINENO"; then :
  6425. ac_cv_lib_z_zlibVersion=yes
  6426. else
  6427. ac_cv_lib_z_zlibVersion=no
  6428. fi
  6429. rm -f core conftest.err conftest.$ac_objext \
  6430. conftest$ac_exeext conftest.$ac_ext
  6431. LIBS=$ac_check_lib_save_LIBS
  6432. fi
  6433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5
  6434. $as_echo "$ac_cv_lib_z_zlibVersion" >&6; }
  6435. if test "x$ac_cv_lib_z_zlibVersion" = x""yes; then :
  6436. have_libz=yes
  6437. fi
  6438. if test "x$have_libz" = "xyes"; then
  6439. $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
  6440. LIBZ_LIBS="-L$libz_prefix_lib -lz"
  6441. LIBZ_CPPFLAGS="-I$libz_prefix_include"
  6442. fi
  6443. LIBS=$LIBS_save
  6444. CPPFLAGS=$CPPFLAGS_save
  6445. if test "x$have_libz" != "xyes" && test "x$with_libz_requested" = "xyes"; then
  6446. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6447. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6448. as_fn_error "libz is requested but not found in the system.
  6449. See \`config.log' for more details." "$LINENO" 5; }
  6450. fi
  6451. fi
  6452. # Define variables based on the result of the checks for libraries.
  6453. if test "x$have_libgnutls" = "xyes" || test "x$have_openssl" = "xyes"; then
  6454. $as_echo "#define ENABLE_SSL 1" >>confdefs.h
  6455. if true; then
  6456. ENABLE_SSL_TRUE=
  6457. ENABLE_SSL_FALSE='#'
  6458. else
  6459. ENABLE_SSL_TRUE='#'
  6460. ENABLE_SSL_FALSE=
  6461. fi
  6462. else
  6463. if false; then
  6464. ENABLE_SSL_TRUE=
  6465. ENABLE_SSL_FALSE='#'
  6466. else
  6467. ENABLE_SSL_TRUE='#'
  6468. ENABLE_SSL_FALSE=
  6469. fi
  6470. fi
  6471. if test "x$have_libgnutls" = "xyes" ; then
  6472. HAVE_LIBGNUTLS_TRUE=
  6473. HAVE_LIBGNUTLS_FALSE='#'
  6474. else
  6475. HAVE_LIBGNUTLS_TRUE='#'
  6476. HAVE_LIBGNUTLS_FALSE=
  6477. fi
  6478. if test "x$have_openssl" = "xyes" ; then
  6479. HAVE_LIBSSL_TRUE=
  6480. HAVE_LIBSSL_FALSE='#'
  6481. else
  6482. HAVE_LIBSSL_TRUE='#'
  6483. HAVE_LIBSSL_FALSE=
  6484. fi
  6485. if test "x$have_libgcrypt" = "xyes" || test "x$have_openssl" = "xyes"; then
  6486. $as_echo "#define ENABLE_MESSAGE_DIGEST 1" >>confdefs.h
  6487. if true; then
  6488. ENABLE_MESSAGE_DIGEST_TRUE=
  6489. ENABLE_MESSAGE_DIGEST_FALSE='#'
  6490. else
  6491. ENABLE_MESSAGE_DIGEST_TRUE='#'
  6492. ENABLE_MESSAGE_DIGEST_FALSE=
  6493. fi
  6494. enable_message_digest=yes
  6495. else
  6496. if false; then
  6497. ENABLE_MESSAGE_DIGEST_TRUE=
  6498. ENABLE_MESSAGE_DIGEST_FALSE='#'
  6499. else
  6500. ENABLE_MESSAGE_DIGEST_TRUE='#'
  6501. ENABLE_MESSAGE_DIGEST_FALSE=
  6502. fi
  6503. fi
  6504. if test "x$enable_bittorrent" = "xyes" &&
  6505. test "x$enable_message_digest" = "xyes"; then
  6506. $as_echo "#define ENABLE_BITTORRENT 1" >>confdefs.h
  6507. if true; then
  6508. ENABLE_BITTORRENT_TRUE=
  6509. ENABLE_BITTORRENT_FALSE='#'
  6510. else
  6511. ENABLE_BITTORRENT_TRUE='#'
  6512. ENABLE_BITTORRENT_FALSE=
  6513. fi
  6514. else
  6515. if test "x$enable_bittorrent_requested" = "xyes"; then
  6516. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6517. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6518. as_fn_error "bittorrent is requested but cannot be enabled with current\
  6519. configuration.\
  6520. Make sure that dependent libraries are installed and configure script options\
  6521. are correct.
  6522. See \`config.log' for more details." "$LINENO" 5; }
  6523. fi
  6524. enable_bittorrent=no
  6525. if false; then
  6526. ENABLE_BITTORRENT_TRUE=
  6527. ENABLE_BITTORRENT_FALSE='#'
  6528. else
  6529. ENABLE_BITTORRENT_TRUE='#'
  6530. ENABLE_BITTORRENT_FALSE=
  6531. fi
  6532. fi
  6533. if (test "x$have_libxml2" = "xyes" || test "x$have_libexpat" = "xyes") &&
  6534. test "x$enable_metalink" = "xyes"; then
  6535. $as_echo "#define ENABLE_METALINK 1" >>confdefs.h
  6536. if true; then
  6537. ENABLE_METALINK_TRUE=
  6538. ENABLE_METALINK_FALSE='#'
  6539. else
  6540. ENABLE_METALINK_TRUE='#'
  6541. ENABLE_METALINK_FALSE=
  6542. fi
  6543. else
  6544. if test "x$enable_metalink_requested" = "xyes"; then
  6545. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6546. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6547. as_fn_error "metalink is requested but cannot be enabled with current\
  6548. configuration.\
  6549. Make sure that dependent libraries are installed and configure script options\
  6550. are correct.
  6551. See \`config.log' for more details." "$LINENO" 5; }
  6552. fi
  6553. enable_metalink=no
  6554. if false; then
  6555. ENABLE_METALINK_TRUE=
  6556. ENABLE_METALINK_FALSE='#'
  6557. else
  6558. ENABLE_METALINK_TRUE='#'
  6559. ENABLE_METALINK_FALSE=
  6560. fi
  6561. fi
  6562. if test "x$enable_metalink" = "xyes" && test "x$have_libxml2" = "xyes"; then
  6563. ENABLE_METALINK_LIBXML2_TRUE=
  6564. ENABLE_METALINK_LIBXML2_FALSE='#'
  6565. else
  6566. ENABLE_METALINK_LIBXML2_TRUE='#'
  6567. ENABLE_METALINK_LIBXML2_FALSE=
  6568. fi
  6569. if test "x$enable_metalink" = "xyes" && test "x$have_libexpat" = "xyes"; then
  6570. ENABLE_METALINK_LIBEXPAT_TRUE=
  6571. ENABLE_METALINK_LIBEXPAT_FALSE='#'
  6572. else
  6573. ENABLE_METALINK_LIBEXPAT_TRUE='#'
  6574. ENABLE_METALINK_LIBEXPAT_FALSE=
  6575. fi
  6576. if test "x$have_libxml2" = "xyes" || test "x$have_libexpat" = "xyes"; then
  6577. enable_xml_rpc=yes
  6578. fi
  6579. if test "x$enable_xml_rpc" = "xyes"; then
  6580. $as_echo "#define ENABLE_XML_RPC 1" >>confdefs.h
  6581. fi
  6582. if test "x$enable_xml_rpc" = "xyes"; then
  6583. ENABLE_XML_RPC_TRUE=
  6584. ENABLE_XML_RPC_FALSE='#'
  6585. else
  6586. ENABLE_XML_RPC_TRUE='#'
  6587. ENABLE_XML_RPC_FALSE=
  6588. fi
  6589. if test "x$have_libxml2" = "xyes"; then
  6590. HAVE_LIBXML2_TRUE=
  6591. HAVE_LIBXML2_FALSE='#'
  6592. else
  6593. HAVE_LIBXML2_TRUE='#'
  6594. HAVE_LIBXML2_FALSE=
  6595. fi
  6596. if test "x$have_libexpat" = "xyes"; then
  6597. HAVE_LIBEXPAT_TRUE=
  6598. HAVE_LIBEXPAT_FALSE='#'
  6599. else
  6600. HAVE_LIBEXPAT_TRUE='#'
  6601. HAVE_LIBEXPAT_FALSE=
  6602. fi
  6603. if test "x$have_libcares" = "xyes"; then
  6604. $as_echo "#define ENABLE_ASYNC_DNS 1" >>confdefs.h
  6605. if true; then
  6606. ENABLE_ASYNC_DNS_TRUE=
  6607. ENABLE_ASYNC_DNS_FALSE='#'
  6608. else
  6609. ENABLE_ASYNC_DNS_TRUE='#'
  6610. ENABLE_ASYNC_DNS_FALSE=
  6611. fi
  6612. else
  6613. if false; then
  6614. ENABLE_ASYNC_DNS_TRUE=
  6615. ENABLE_ASYNC_DNS_FALSE='#'
  6616. else
  6617. ENABLE_ASYNC_DNS_TRUE='#'
  6618. ENABLE_ASYNC_DNS_FALSE=
  6619. fi
  6620. fi
  6621. # Set conditional for libz
  6622. if test "x$have_libz" = "xyes"; then
  6623. HAVE_LIBZ_TRUE=
  6624. HAVE_LIBZ_FALSE='#'
  6625. else
  6626. HAVE_LIBZ_TRUE='#'
  6627. HAVE_LIBZ_FALSE=
  6628. fi
  6629. # Set conditional for sqlite3
  6630. if test "x$have_sqlite3" = "xyes"; then
  6631. HAVE_SQLITE3_TRUE=
  6632. HAVE_SQLITE3_FALSE='#'
  6633. else
  6634. HAVE_SQLITE3_TRUE='#'
  6635. HAVE_SQLITE3_FALSE=
  6636. fi
  6637. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
  6638. $as_echo_n "checking for library containing clock_gettime... " >&6; }
  6639. if test "${ac_cv_search_clock_gettime+set}" = set; then :
  6640. $as_echo_n "(cached) " >&6
  6641. else
  6642. ac_func_search_save_LIBS=$LIBS
  6643. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6644. /* end confdefs.h. */
  6645. /* Override any GCC internal prototype to avoid an error.
  6646. Use char because int might match the return type of a GCC
  6647. builtin and then its argument prototype would still apply. */
  6648. #ifdef __cplusplus
  6649. extern "C"
  6650. #endif
  6651. char clock_gettime ();
  6652. int
  6653. main ()
  6654. {
  6655. return clock_gettime ();
  6656. ;
  6657. return 0;
  6658. }
  6659. _ACEOF
  6660. for ac_lib in '' rt; do
  6661. if test -z "$ac_lib"; then
  6662. ac_res="none required"
  6663. else
  6664. ac_res=-l$ac_lib
  6665. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  6666. fi
  6667. if ac_fn_cxx_try_link "$LINENO"; then :
  6668. ac_cv_search_clock_gettime=$ac_res
  6669. fi
  6670. rm -f core conftest.err conftest.$ac_objext \
  6671. conftest$ac_exeext
  6672. if test "${ac_cv_search_clock_gettime+set}" = set; then :
  6673. break
  6674. fi
  6675. done
  6676. if test "${ac_cv_search_clock_gettime+set}" = set; then :
  6677. else
  6678. ac_cv_search_clock_gettime=no
  6679. fi
  6680. rm conftest.$ac_ext
  6681. LIBS=$ac_func_search_save_LIBS
  6682. fi
  6683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
  6684. $as_echo "$ac_cv_search_clock_gettime" >&6; }
  6685. ac_res=$ac_cv_search_clock_gettime
  6686. if test "$ac_res" != no; then :
  6687. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  6688. fi
  6689. case "$target" in
  6690. *solaris*)
  6691. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
  6692. $as_echo_n "checking for library containing getaddrinfo... " >&6; }
  6693. if test "${ac_cv_search_getaddrinfo+set}" = set; then :
  6694. $as_echo_n "(cached) " >&6
  6695. else
  6696. ac_func_search_save_LIBS=$LIBS
  6697. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6698. /* end confdefs.h. */
  6699. /* Override any GCC internal prototype to avoid an error.
  6700. Use char because int might match the return type of a GCC
  6701. builtin and then its argument prototype would still apply. */
  6702. #ifdef __cplusplus
  6703. extern "C"
  6704. #endif
  6705. char getaddrinfo ();
  6706. int
  6707. main ()
  6708. {
  6709. return getaddrinfo ();
  6710. ;
  6711. return 0;
  6712. }
  6713. _ACEOF
  6714. for ac_lib in '' nsl socket; do
  6715. if test -z "$ac_lib"; then
  6716. ac_res="none required"
  6717. else
  6718. ac_res=-l$ac_lib
  6719. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  6720. fi
  6721. if ac_fn_cxx_try_link "$LINENO"; then :
  6722. ac_cv_search_getaddrinfo=$ac_res
  6723. fi
  6724. rm -f core conftest.err conftest.$ac_objext \
  6725. conftest$ac_exeext
  6726. if test "${ac_cv_search_getaddrinfo+set}" = set; then :
  6727. break
  6728. fi
  6729. done
  6730. if test "${ac_cv_search_getaddrinfo+set}" = set; then :
  6731. else
  6732. ac_cv_search_getaddrinfo=no
  6733. fi
  6734. rm conftest.$ac_ext
  6735. LIBS=$ac_func_search_save_LIBS
  6736. fi
  6737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
  6738. $as_echo "$ac_cv_search_getaddrinfo" >&6; }
  6739. ac_res=$ac_cv_search_getaddrinfo
  6740. if test "$ac_res" != no; then :
  6741. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  6742. fi
  6743. ;;
  6744. esac
  6745. # Checks for header files.
  6746. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  6747. # for constant arguments. Useless!
  6748. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  6749. $as_echo_n "checking for working alloca.h... " >&6; }
  6750. if test "${ac_cv_working_alloca_h+set}" = set; then :
  6751. $as_echo_n "(cached) " >&6
  6752. else
  6753. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6754. /* end confdefs.h. */
  6755. #include <alloca.h>
  6756. int
  6757. main ()
  6758. {
  6759. char *p = (char *) alloca (2 * sizeof (int));
  6760. if (p) return 0;
  6761. ;
  6762. return 0;
  6763. }
  6764. _ACEOF
  6765. if ac_fn_cxx_try_link "$LINENO"; then :
  6766. ac_cv_working_alloca_h=yes
  6767. else
  6768. ac_cv_working_alloca_h=no
  6769. fi
  6770. rm -f core conftest.err conftest.$ac_objext \
  6771. conftest$ac_exeext conftest.$ac_ext
  6772. fi
  6773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  6774. $as_echo "$ac_cv_working_alloca_h" >&6; }
  6775. if test $ac_cv_working_alloca_h = yes; then
  6776. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  6777. fi
  6778. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  6779. $as_echo_n "checking for alloca... " >&6; }
  6780. if test "${ac_cv_func_alloca_works+set}" = set; then :
  6781. $as_echo_n "(cached) " >&6
  6782. else
  6783. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6784. /* end confdefs.h. */
  6785. #ifdef __GNUC__
  6786. # define alloca __builtin_alloca
  6787. #else
  6788. # ifdef _MSC_VER
  6789. # include <malloc.h>
  6790. # define alloca _alloca
  6791. # else
  6792. # ifdef HAVE_ALLOCA_H
  6793. # include <alloca.h>
  6794. # else
  6795. # ifdef _AIX
  6796. #pragma alloca
  6797. # else
  6798. # ifndef alloca /* predefined by HP cc +Olibcalls */
  6799. char *alloca ();
  6800. # endif
  6801. # endif
  6802. # endif
  6803. # endif
  6804. #endif
  6805. int
  6806. main ()
  6807. {
  6808. char *p = (char *) alloca (1);
  6809. if (p) return 0;
  6810. ;
  6811. return 0;
  6812. }
  6813. _ACEOF
  6814. if ac_fn_cxx_try_link "$LINENO"; then :
  6815. ac_cv_func_alloca_works=yes
  6816. else
  6817. ac_cv_func_alloca_works=no
  6818. fi
  6819. rm -f core conftest.err conftest.$ac_objext \
  6820. conftest$ac_exeext conftest.$ac_ext
  6821. fi
  6822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  6823. $as_echo "$ac_cv_func_alloca_works" >&6; }
  6824. if test $ac_cv_func_alloca_works = yes; then
  6825. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  6826. else
  6827. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  6828. # that cause trouble. Some versions do not even contain alloca or
  6829. # contain a buggy version. If you still want to use their alloca,
  6830. # use ar to extract alloca.o from them instead of compiling alloca.c.
  6831. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  6832. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  6833. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  6834. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  6835. if test "${ac_cv_os_cray+set}" = set; then :
  6836. $as_echo_n "(cached) " >&6
  6837. else
  6838. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6839. /* end confdefs.h. */
  6840. #if defined CRAY && ! defined CRAY2
  6841. webecray
  6842. #else
  6843. wenotbecray
  6844. #endif
  6845. _ACEOF
  6846. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6847. $EGREP "webecray" >/dev/null 2>&1; then :
  6848. ac_cv_os_cray=yes
  6849. else
  6850. ac_cv_os_cray=no
  6851. fi
  6852. rm -f conftest*
  6853. fi
  6854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  6855. $as_echo "$ac_cv_os_cray" >&6; }
  6856. if test $ac_cv_os_cray = yes; then
  6857. for ac_func in _getb67 GETB67 getb67; do
  6858. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6859. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  6860. eval as_val=\$$as_ac_var
  6861. if test "x$as_val" = x""yes; then :
  6862. cat >>confdefs.h <<_ACEOF
  6863. #define CRAY_STACKSEG_END $ac_func
  6864. _ACEOF
  6865. break
  6866. fi
  6867. done
  6868. fi
  6869. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  6870. $as_echo_n "checking stack direction for C alloca... " >&6; }
  6871. if test "${ac_cv_c_stack_direction+set}" = set; then :
  6872. $as_echo_n "(cached) " >&6
  6873. else
  6874. if test "$cross_compiling" = yes; then :
  6875. ac_cv_c_stack_direction=0
  6876. else
  6877. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6878. /* end confdefs.h. */
  6879. $ac_includes_default
  6880. int
  6881. find_stack_direction ()
  6882. {
  6883. static char *addr = 0;
  6884. auto char dummy;
  6885. if (addr == 0)
  6886. {
  6887. addr = &dummy;
  6888. return find_stack_direction ();
  6889. }
  6890. else
  6891. return (&dummy > addr) ? 1 : -1;
  6892. }
  6893. int
  6894. main ()
  6895. {
  6896. return find_stack_direction () < 0;
  6897. }
  6898. _ACEOF
  6899. if ac_fn_cxx_try_run "$LINENO"; then :
  6900. ac_cv_c_stack_direction=1
  6901. else
  6902. ac_cv_c_stack_direction=-1
  6903. fi
  6904. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6905. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6906. fi
  6907. fi
  6908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  6909. $as_echo "$ac_cv_c_stack_direction" >&6; }
  6910. cat >>confdefs.h <<_ACEOF
  6911. #define STACK_DIRECTION $ac_cv_c_stack_direction
  6912. _ACEOF
  6913. fi
  6914. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6915. $as_echo_n "checking for ANSI C header files... " >&6; }
  6916. if test "${ac_cv_header_stdc+set}" = set; then :
  6917. $as_echo_n "(cached) " >&6
  6918. else
  6919. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6920. /* end confdefs.h. */
  6921. #include <stdlib.h>
  6922. #include <stdarg.h>
  6923. #include <string.h>
  6924. #include <float.h>
  6925. int
  6926. main ()
  6927. {
  6928. ;
  6929. return 0;
  6930. }
  6931. _ACEOF
  6932. if ac_fn_cxx_try_compile "$LINENO"; then :
  6933. ac_cv_header_stdc=yes
  6934. else
  6935. ac_cv_header_stdc=no
  6936. fi
  6937. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6938. if test $ac_cv_header_stdc = yes; then
  6939. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6940. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6941. /* end confdefs.h. */
  6942. #include <string.h>
  6943. _ACEOF
  6944. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6945. $EGREP "memchr" >/dev/null 2>&1; then :
  6946. else
  6947. ac_cv_header_stdc=no
  6948. fi
  6949. rm -f conftest*
  6950. fi
  6951. if test $ac_cv_header_stdc = yes; then
  6952. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6953. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6954. /* end confdefs.h. */
  6955. #include <stdlib.h>
  6956. _ACEOF
  6957. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6958. $EGREP "free" >/dev/null 2>&1; then :
  6959. else
  6960. ac_cv_header_stdc=no
  6961. fi
  6962. rm -f conftest*
  6963. fi
  6964. if test $ac_cv_header_stdc = yes; then
  6965. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6966. if test "$cross_compiling" = yes; then :
  6967. :
  6968. else
  6969. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6970. /* end confdefs.h. */
  6971. #include <ctype.h>
  6972. #include <stdlib.h>
  6973. #if ((' ' & 0x0FF) == 0x020)
  6974. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6975. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6976. #else
  6977. # define ISLOWER(c) \
  6978. (('a' <= (c) && (c) <= 'i') \
  6979. || ('j' <= (c) && (c) <= 'r') \
  6980. || ('s' <= (c) && (c) <= 'z'))
  6981. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6982. #endif
  6983. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6984. int
  6985. main ()
  6986. {
  6987. int i;
  6988. for (i = 0; i < 256; i++)
  6989. if (XOR (islower (i), ISLOWER (i))
  6990. || toupper (i) != TOUPPER (i))
  6991. return 2;
  6992. return 0;
  6993. }
  6994. _ACEOF
  6995. if ac_fn_cxx_try_run "$LINENO"; then :
  6996. else
  6997. ac_cv_header_stdc=no
  6998. fi
  6999. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7000. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7001. fi
  7002. fi
  7003. fi
  7004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  7005. $as_echo "$ac_cv_header_stdc" >&6; }
  7006. if test $ac_cv_header_stdc = yes; then
  7007. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  7008. fi
  7009. case "$target" in
  7010. *mingw*)
  7011. for ac_header in winsock2.h \
  7012. ws2tcpip.h
  7013. do :
  7014. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7015. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  7016. eval as_val=\$$as_ac_Header
  7017. if test "x$as_val" = x""yes; then :
  7018. cat >>confdefs.h <<_ACEOF
  7019. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7020. _ACEOF
  7021. fi
  7022. done
  7023. ;;
  7024. esac
  7025. for ac_header in argz.h \
  7026. arpa/inet.h \
  7027. fcntl.h \
  7028. float.h \
  7029. inttypes.h \
  7030. io.h \
  7031. langinfo.h \
  7032. libintl.h \
  7033. limits.h \
  7034. locale.h \
  7035. malloc.h \
  7036. netdb.h \
  7037. netinet/in.h \
  7038. stddef.h \
  7039. stdint.h \
  7040. stdio_ext.h \
  7041. stdlib.h \
  7042. string.h \
  7043. strings.h \
  7044. sys/ioctl.h \
  7045. sys/param.h \
  7046. sys/socket.h \
  7047. sys/time.h \
  7048. termios.h \
  7049. unistd.h \
  7050. utime.h \
  7051. wchar.h \
  7052. ifaddrs.h
  7053. do :
  7054. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7055. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  7056. eval as_val=\$$as_ac_Header
  7057. if test "x$as_val" = x""yes; then :
  7058. cat >>confdefs.h <<_ACEOF
  7059. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7060. _ACEOF
  7061. fi
  7062. done
  7063. # Checks for typedefs, structures, and compiler characteristics.
  7064. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
  7065. $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
  7066. if test "${ac_cv_header_stdbool_h+set}" = set; then :
  7067. $as_echo_n "(cached) " >&6
  7068. else
  7069. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7070. /* end confdefs.h. */
  7071. #include <stdbool.h>
  7072. #ifndef bool
  7073. "error: bool is not defined"
  7074. #endif
  7075. #ifndef false
  7076. "error: false is not defined"
  7077. #endif
  7078. #if false
  7079. "error: false is not 0"
  7080. #endif
  7081. #ifndef true
  7082. "error: true is not defined"
  7083. #endif
  7084. #if true != 1
  7085. "error: true is not 1"
  7086. #endif
  7087. #ifndef __bool_true_false_are_defined
  7088. "error: __bool_true_false_are_defined is not defined"
  7089. #endif
  7090. struct s { _Bool s: 1; _Bool t; } s;
  7091. char a[true == 1 ? 1 : -1];
  7092. char b[false == 0 ? 1 : -1];
  7093. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  7094. char d[(bool) 0.5 == true ? 1 : -1];
  7095. bool e = &s;
  7096. char f[(_Bool) 0.0 == false ? 1 : -1];
  7097. char g[true];
  7098. char h[sizeof (_Bool)];
  7099. char i[sizeof s.t];
  7100. enum { j = false, k = true, l = false * true, m = true * 256 };
  7101. /* The following fails for
  7102. HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
  7103. _Bool n[m];
  7104. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  7105. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  7106. # if defined __xlc__ || defined __GNUC__
  7107. /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
  7108. reported by James Lemley on 2005-10-05; see
  7109. http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
  7110. This test is not quite right, since xlc is allowed to
  7111. reject this program, as the initializer for xlcbug is
  7112. not one of the forms that C requires support for.
  7113. However, doing the test right would require a runtime
  7114. test, and that would make cross-compilation harder.
  7115. Let us hope that IBM fixes the xlc bug, and also adds
  7116. support for this kind of constant expression. In the
  7117. meantime, this test will reject xlc, which is OK, since
  7118. our stdbool.h substitute should suffice. We also test
  7119. this with GCC, where it should work, to detect more
  7120. quickly whether someone messes up the test in the
  7121. future. */
  7122. char digs[] = "0123456789";
  7123. int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
  7124. # endif
  7125. /* Catch a bug in an HP-UX C compiler. See
  7126. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  7127. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  7128. */
  7129. _Bool q = true;
  7130. _Bool *pq = &q;
  7131. int
  7132. main ()
  7133. {
  7134. *pq |= q;
  7135. *pq |= ! q;
  7136. /* Refer to every declared value, to avoid compiler optimizations. */
  7137. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  7138. + !m + !n + !o + !p + !q + !pq);
  7139. ;
  7140. return 0;
  7141. }
  7142. _ACEOF
  7143. if ac_fn_cxx_try_compile "$LINENO"; then :
  7144. ac_cv_header_stdbool_h=yes
  7145. else
  7146. ac_cv_header_stdbool_h=no
  7147. fi
  7148. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7149. fi
  7150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
  7151. $as_echo "$ac_cv_header_stdbool_h" >&6; }
  7152. ac_fn_cxx_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
  7153. if test "x$ac_cv_type__Bool" = x""yes; then :
  7154. cat >>confdefs.h <<_ACEOF
  7155. #define HAVE__BOOL 1
  7156. _ACEOF
  7157. fi
  7158. if test $ac_cv_header_stdbool_h = yes; then
  7159. $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
  7160. fi
  7161. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  7162. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  7163. if test "${ac_cv_c_const+set}" = set; then :
  7164. $as_echo_n "(cached) " >&6
  7165. else
  7166. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7167. /* end confdefs.h. */
  7168. int
  7169. main ()
  7170. {
  7171. /* FIXME: Include the comments suggested by Paul. */
  7172. #ifndef __cplusplus
  7173. /* Ultrix mips cc rejects this. */
  7174. typedef int charset[2];
  7175. const charset cs;
  7176. /* SunOS 4.1.1 cc rejects this. */
  7177. char const *const *pcpcc;
  7178. char **ppc;
  7179. /* NEC SVR4.0.2 mips cc rejects this. */
  7180. struct point {int x, y;};
  7181. static struct point const zero = {0,0};
  7182. /* AIX XL C 1.02.0.0 rejects this.
  7183. It does not let you subtract one const X* pointer from another in
  7184. an arm of an if-expression whose if-part is not a constant
  7185. expression */
  7186. const char *g = "string";
  7187. pcpcc = &g + (g ? g-g : 0);
  7188. /* HPUX 7.0 cc rejects these. */
  7189. ++pcpcc;
  7190. ppc = (char**) pcpcc;
  7191. pcpcc = (char const *const *) ppc;
  7192. { /* SCO 3.2v4 cc rejects this. */
  7193. char *t;
  7194. char const *s = 0 ? (char *) 0 : (char const *) 0;
  7195. *t++ = 0;
  7196. if (s) return 0;
  7197. }
  7198. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  7199. int x[] = {25, 17};
  7200. const int *foo = &x[0];
  7201. ++foo;
  7202. }
  7203. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  7204. typedef const int *iptr;
  7205. iptr p = 0;
  7206. ++p;
  7207. }
  7208. { /* AIX XL C 1.02.0.0 rejects this saying
  7209. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  7210. struct s { int j; const int *ap[3]; };
  7211. struct s *b; b->j = 5;
  7212. }
  7213. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  7214. const int foo = 10;
  7215. if (!foo) return 0;
  7216. }
  7217. return !cs[0] && !zero.x;
  7218. #endif
  7219. ;
  7220. return 0;
  7221. }
  7222. _ACEOF
  7223. if ac_fn_cxx_try_compile "$LINENO"; then :
  7224. ac_cv_c_const=yes
  7225. else
  7226. ac_cv_c_const=no
  7227. fi
  7228. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7229. fi
  7230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  7231. $as_echo "$ac_cv_c_const" >&6; }
  7232. if test $ac_cv_c_const = no; then
  7233. $as_echo "#define const /**/" >>confdefs.h
  7234. fi
  7235. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  7236. $as_echo_n "checking for inline... " >&6; }
  7237. if test "${ac_cv_c_inline+set}" = set; then :
  7238. $as_echo_n "(cached) " >&6
  7239. else
  7240. ac_cv_c_inline=no
  7241. for ac_kw in inline __inline__ __inline; do
  7242. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7243. /* end confdefs.h. */
  7244. #ifndef __cplusplus
  7245. typedef int foo_t;
  7246. static $ac_kw foo_t static_foo () {return 0; }
  7247. $ac_kw foo_t foo () {return 0; }
  7248. #endif
  7249. _ACEOF
  7250. if ac_fn_cxx_try_compile "$LINENO"; then :
  7251. ac_cv_c_inline=$ac_kw
  7252. fi
  7253. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7254. test "$ac_cv_c_inline" != no && break
  7255. done
  7256. fi
  7257. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  7258. $as_echo "$ac_cv_c_inline" >&6; }
  7259. case $ac_cv_c_inline in
  7260. inline | yes) ;;
  7261. *)
  7262. case $ac_cv_c_inline in
  7263. no) ac_val=;;
  7264. *) ac_val=$ac_cv_c_inline;;
  7265. esac
  7266. cat >>confdefs.h <<_ACEOF
  7267. #ifndef __cplusplus
  7268. #define inline $ac_val
  7269. #endif
  7270. _ACEOF
  7271. ;;
  7272. esac
  7273. ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
  7274. case $ac_cv_c_int16_t in #(
  7275. no|yes) ;; #(
  7276. *)
  7277. cat >>confdefs.h <<_ACEOF
  7278. #define int16_t $ac_cv_c_int16_t
  7279. _ACEOF
  7280. ;;
  7281. esac
  7282. ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
  7283. case $ac_cv_c_int32_t in #(
  7284. no|yes) ;; #(
  7285. *)
  7286. cat >>confdefs.h <<_ACEOF
  7287. #define int32_t $ac_cv_c_int32_t
  7288. _ACEOF
  7289. ;;
  7290. esac
  7291. ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
  7292. case $ac_cv_c_int64_t in #(
  7293. no|yes) ;; #(
  7294. *)
  7295. cat >>confdefs.h <<_ACEOF
  7296. #define int64_t $ac_cv_c_int64_t
  7297. _ACEOF
  7298. ;;
  7299. esac
  7300. ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
  7301. case $ac_cv_c_int8_t in #(
  7302. no|yes) ;; #(
  7303. *)
  7304. cat >>confdefs.h <<_ACEOF
  7305. #define int8_t $ac_cv_c_int8_t
  7306. _ACEOF
  7307. ;;
  7308. esac
  7309. ac_fn_cxx_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
  7310. if test "x$ac_cv_type_mode_t" = x""yes; then :
  7311. else
  7312. cat >>confdefs.h <<_ACEOF
  7313. #define mode_t int
  7314. _ACEOF
  7315. fi
  7316. ac_fn_cxx_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
  7317. if test "x$ac_cv_type_off_t" = x""yes; then :
  7318. else
  7319. cat >>confdefs.h <<_ACEOF
  7320. #define off_t long int
  7321. _ACEOF
  7322. fi
  7323. ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  7324. if test "x$ac_cv_type_size_t" = x""yes; then :
  7325. else
  7326. cat >>confdefs.h <<_ACEOF
  7327. #define size_t unsigned int
  7328. _ACEOF
  7329. fi
  7330. ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
  7331. if test "x$ac_cv_type_ssize_t" = x""yes; then :
  7332. else
  7333. cat >>confdefs.h <<_ACEOF
  7334. #define ssize_t int
  7335. _ACEOF
  7336. fi
  7337. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  7338. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  7339. if test "${ac_cv_header_time+set}" = set; then :
  7340. $as_echo_n "(cached) " >&6
  7341. else
  7342. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7343. /* end confdefs.h. */
  7344. #include <sys/types.h>
  7345. #include <sys/time.h>
  7346. #include <time.h>
  7347. int
  7348. main ()
  7349. {
  7350. if ((struct tm *) 0)
  7351. return 0;
  7352. ;
  7353. return 0;
  7354. }
  7355. _ACEOF
  7356. if ac_fn_cxx_try_compile "$LINENO"; then :
  7357. ac_cv_header_time=yes
  7358. else
  7359. ac_cv_header_time=no
  7360. fi
  7361. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7362. fi
  7363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  7364. $as_echo "$ac_cv_header_time" >&6; }
  7365. if test $ac_cv_header_time = yes; then
  7366. $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  7367. fi
  7368. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  7369. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  7370. if test "${ac_cv_struct_tm+set}" = set; then :
  7371. $as_echo_n "(cached) " >&6
  7372. else
  7373. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7374. /* end confdefs.h. */
  7375. #include <sys/types.h>
  7376. #include <time.h>
  7377. int
  7378. main ()
  7379. {
  7380. struct tm tm;
  7381. int *p = &tm.tm_sec;
  7382. return !p;
  7383. ;
  7384. return 0;
  7385. }
  7386. _ACEOF
  7387. if ac_fn_cxx_try_compile "$LINENO"; then :
  7388. ac_cv_struct_tm=time.h
  7389. else
  7390. ac_cv_struct_tm=sys/time.h
  7391. fi
  7392. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7393. fi
  7394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  7395. $as_echo "$ac_cv_struct_tm" >&6; }
  7396. if test $ac_cv_struct_tm = sys/time.h; then
  7397. $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
  7398. fi
  7399. ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
  7400. case $ac_cv_c_uint16_t in #(
  7401. no|yes) ;; #(
  7402. *)
  7403. cat >>confdefs.h <<_ACEOF
  7404. #define uint16_t $ac_cv_c_uint16_t
  7405. _ACEOF
  7406. ;;
  7407. esac
  7408. ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
  7409. case $ac_cv_c_uint32_t in #(
  7410. no|yes) ;; #(
  7411. *)
  7412. $as_echo "#define _UINT32_T 1" >>confdefs.h
  7413. cat >>confdefs.h <<_ACEOF
  7414. #define uint32_t $ac_cv_c_uint32_t
  7415. _ACEOF
  7416. ;;
  7417. esac
  7418. ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
  7419. case $ac_cv_c_uint64_t in #(
  7420. no|yes) ;; #(
  7421. *)
  7422. $as_echo "#define _UINT64_T 1" >>confdefs.h
  7423. cat >>confdefs.h <<_ACEOF
  7424. #define uint64_t $ac_cv_c_uint64_t
  7425. _ACEOF
  7426. ;;
  7427. esac
  7428. ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
  7429. case $ac_cv_c_uint8_t in #(
  7430. no|yes) ;; #(
  7431. *)
  7432. $as_echo "#define _UINT8_T 1" >>confdefs.h
  7433. cat >>confdefs.h <<_ACEOF
  7434. #define uint8_t $ac_cv_c_uint8_t
  7435. _ACEOF
  7436. ;;
  7437. esac
  7438. ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  7439. if test "x$ac_cv_type_pid_t" = x""yes; then :
  7440. else
  7441. cat >>confdefs.h <<_ACEOF
  7442. #define pid_t int
  7443. _ACEOF
  7444. fi
  7445. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  7446. $as_echo_n "checking for working volatile... " >&6; }
  7447. if test "${ac_cv_c_volatile+set}" = set; then :
  7448. $as_echo_n "(cached) " >&6
  7449. else
  7450. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7451. /* end confdefs.h. */
  7452. int
  7453. main ()
  7454. {
  7455. volatile int x;
  7456. int * volatile y = (int *) 0;
  7457. return !x && !y;
  7458. ;
  7459. return 0;
  7460. }
  7461. _ACEOF
  7462. if ac_fn_cxx_try_compile "$LINENO"; then :
  7463. ac_cv_c_volatile=yes
  7464. else
  7465. ac_cv_c_volatile=no
  7466. fi
  7467. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7468. fi
  7469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  7470. $as_echo "$ac_cv_c_volatile" >&6; }
  7471. if test $ac_cv_c_volatile = no; then
  7472. $as_echo "#define volatile /**/" >>confdefs.h
  7473. fi
  7474. ac_fn_cxx_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
  7475. if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
  7476. cat >>confdefs.h <<_ACEOF
  7477. #define HAVE_PTRDIFF_T 1
  7478. _ACEOF
  7479. fi
  7480. ac_fn_cxx_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "$ac_includes_default"
  7481. if test "x$ac_cv_type_struct_timespec" = x""yes; then :
  7482. cat >>confdefs.h <<_ACEOF
  7483. #define HAVE_STRUCT_TIMESPEC 1
  7484. _ACEOF
  7485. fi
  7486. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  7487. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  7488. if test "${ac_cv_c_bigendian+set}" = set; then :
  7489. $as_echo_n "(cached) " >&6
  7490. else
  7491. ac_cv_c_bigendian=unknown
  7492. # See if we're dealing with a universal compiler.
  7493. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7494. /* end confdefs.h. */
  7495. #ifndef __APPLE_CC__
  7496. not a universal capable compiler
  7497. #endif
  7498. typedef int dummy;
  7499. _ACEOF
  7500. if ac_fn_cxx_try_compile "$LINENO"; then :
  7501. # Check for potential -arch flags. It is not universal unless
  7502. # there are at least two -arch flags with different values.
  7503. ac_arch=
  7504. ac_prev=
  7505. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  7506. if test -n "$ac_prev"; then
  7507. case $ac_word in
  7508. i?86 | x86_64 | ppc | ppc64)
  7509. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  7510. ac_arch=$ac_word
  7511. else
  7512. ac_cv_c_bigendian=universal
  7513. break
  7514. fi
  7515. ;;
  7516. esac
  7517. ac_prev=
  7518. elif test "x$ac_word" = "x-arch"; then
  7519. ac_prev=arch
  7520. fi
  7521. done
  7522. fi
  7523. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7524. if test $ac_cv_c_bigendian = unknown; then
  7525. # See if sys/param.h defines the BYTE_ORDER macro.
  7526. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7527. /* end confdefs.h. */
  7528. #include <sys/types.h>
  7529. #include <sys/param.h>
  7530. int
  7531. main ()
  7532. {
  7533. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  7534. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  7535. && LITTLE_ENDIAN)
  7536. bogus endian macros
  7537. #endif
  7538. ;
  7539. return 0;
  7540. }
  7541. _ACEOF
  7542. if ac_fn_cxx_try_compile "$LINENO"; then :
  7543. # It does; now see whether it defined to BIG_ENDIAN or not.
  7544. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7545. /* end confdefs.h. */
  7546. #include <sys/types.h>
  7547. #include <sys/param.h>
  7548. int
  7549. main ()
  7550. {
  7551. #if BYTE_ORDER != BIG_ENDIAN
  7552. not big endian
  7553. #endif
  7554. ;
  7555. return 0;
  7556. }
  7557. _ACEOF
  7558. if ac_fn_cxx_try_compile "$LINENO"; then :
  7559. ac_cv_c_bigendian=yes
  7560. else
  7561. ac_cv_c_bigendian=no
  7562. fi
  7563. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7564. fi
  7565. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7566. fi
  7567. if test $ac_cv_c_bigendian = unknown; then
  7568. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  7569. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7570. /* end confdefs.h. */
  7571. #include <limits.h>
  7572. int
  7573. main ()
  7574. {
  7575. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  7576. bogus endian macros
  7577. #endif
  7578. ;
  7579. return 0;
  7580. }
  7581. _ACEOF
  7582. if ac_fn_cxx_try_compile "$LINENO"; then :
  7583. # It does; now see whether it defined to _BIG_ENDIAN or not.
  7584. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7585. /* end confdefs.h. */
  7586. #include <limits.h>
  7587. int
  7588. main ()
  7589. {
  7590. #ifndef _BIG_ENDIAN
  7591. not big endian
  7592. #endif
  7593. ;
  7594. return 0;
  7595. }
  7596. _ACEOF
  7597. if ac_fn_cxx_try_compile "$LINENO"; then :
  7598. ac_cv_c_bigendian=yes
  7599. else
  7600. ac_cv_c_bigendian=no
  7601. fi
  7602. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7603. fi
  7604. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7605. fi
  7606. if test $ac_cv_c_bigendian = unknown; then
  7607. # Compile a test program.
  7608. if test "$cross_compiling" = yes; then :
  7609. # Try to guess by grepping values from an object file.
  7610. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7611. /* end confdefs.h. */
  7612. short int ascii_mm[] =
  7613. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  7614. short int ascii_ii[] =
  7615. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  7616. int use_ascii (int i) {
  7617. return ascii_mm[i] + ascii_ii[i];
  7618. }
  7619. short int ebcdic_ii[] =
  7620. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  7621. short int ebcdic_mm[] =
  7622. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  7623. int use_ebcdic (int i) {
  7624. return ebcdic_mm[i] + ebcdic_ii[i];
  7625. }
  7626. extern int foo;
  7627. int
  7628. main ()
  7629. {
  7630. return use_ascii (foo) == use_ebcdic (foo);
  7631. ;
  7632. return 0;
  7633. }
  7634. _ACEOF
  7635. if ac_fn_cxx_try_compile "$LINENO"; then :
  7636. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  7637. ac_cv_c_bigendian=yes
  7638. fi
  7639. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  7640. if test "$ac_cv_c_bigendian" = unknown; then
  7641. ac_cv_c_bigendian=no
  7642. else
  7643. # finding both strings is unlikely to happen, but who knows?
  7644. ac_cv_c_bigendian=unknown
  7645. fi
  7646. fi
  7647. fi
  7648. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7649. else
  7650. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7651. /* end confdefs.h. */
  7652. $ac_includes_default
  7653. int
  7654. main ()
  7655. {
  7656. /* Are we little or big endian? From Harbison&Steele. */
  7657. union
  7658. {
  7659. long int l;
  7660. char c[sizeof (long int)];
  7661. } u;
  7662. u.l = 1;
  7663. return u.c[sizeof (long int) - 1] == 1;
  7664. ;
  7665. return 0;
  7666. }
  7667. _ACEOF
  7668. if ac_fn_cxx_try_run "$LINENO"; then :
  7669. ac_cv_c_bigendian=no
  7670. else
  7671. ac_cv_c_bigendian=yes
  7672. fi
  7673. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7674. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7675. fi
  7676. fi
  7677. fi
  7678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  7679. $as_echo "$ac_cv_c_bigendian" >&6; }
  7680. case $ac_cv_c_bigendian in #(
  7681. yes)
  7682. $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  7683. ;; #(
  7684. no)
  7685. ;; #(
  7686. universal)
  7687. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  7688. ;; #(
  7689. *)
  7690. as_fn_error "unknown endianness
  7691. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  7692. esac
  7693. # Check whether --enable-largefile was given.
  7694. if test "${enable_largefile+set}" = set; then :
  7695. enableval=$enable_largefile;
  7696. fi
  7697. if test "$enable_largefile" != no; then
  7698. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  7699. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  7700. if test "${ac_cv_sys_largefile_CC+set}" = set; then :
  7701. $as_echo_n "(cached) " >&6
  7702. else
  7703. ac_cv_sys_largefile_CC=no
  7704. if test "$GCC" != yes; then
  7705. ac_save_CC=$CC
  7706. while :; do
  7707. # IRIX 6.2 and later do not support large files by default,
  7708. # so use the C compiler's -n32 option if that helps.
  7709. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7710. /* end confdefs.h. */
  7711. #include <sys/types.h>
  7712. /* Check that off_t can represent 2**63 - 1 correctly.
  7713. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7714. since some C++ compilers masquerading as C compilers
  7715. incorrectly reject 9223372036854775807. */
  7716. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7717. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7718. && LARGE_OFF_T % 2147483647 == 1)
  7719. ? 1 : -1];
  7720. int
  7721. main ()
  7722. {
  7723. ;
  7724. return 0;
  7725. }
  7726. _ACEOF
  7727. if ac_fn_cxx_try_compile "$LINENO"; then :
  7728. break
  7729. fi
  7730. rm -f core conftest.err conftest.$ac_objext
  7731. CC="$CC -n32"
  7732. if ac_fn_cxx_try_compile "$LINENO"; then :
  7733. ac_cv_sys_largefile_CC=' -n32'; break
  7734. fi
  7735. rm -f core conftest.err conftest.$ac_objext
  7736. break
  7737. done
  7738. CC=$ac_save_CC
  7739. rm -f conftest.$ac_ext
  7740. fi
  7741. fi
  7742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  7743. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  7744. if test "$ac_cv_sys_largefile_CC" != no; then
  7745. CC=$CC$ac_cv_sys_largefile_CC
  7746. fi
  7747. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  7748. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  7749. if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
  7750. $as_echo_n "(cached) " >&6
  7751. else
  7752. while :; do
  7753. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7754. /* end confdefs.h. */
  7755. #include <sys/types.h>
  7756. /* Check that off_t can represent 2**63 - 1 correctly.
  7757. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7758. since some C++ compilers masquerading as C compilers
  7759. incorrectly reject 9223372036854775807. */
  7760. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7761. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7762. && LARGE_OFF_T % 2147483647 == 1)
  7763. ? 1 : -1];
  7764. int
  7765. main ()
  7766. {
  7767. ;
  7768. return 0;
  7769. }
  7770. _ACEOF
  7771. if ac_fn_cxx_try_compile "$LINENO"; then :
  7772. ac_cv_sys_file_offset_bits=no; break
  7773. fi
  7774. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7775. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7776. /* end confdefs.h. */
  7777. #define _FILE_OFFSET_BITS 64
  7778. #include <sys/types.h>
  7779. /* Check that off_t can represent 2**63 - 1 correctly.
  7780. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7781. since some C++ compilers masquerading as C compilers
  7782. incorrectly reject 9223372036854775807. */
  7783. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7784. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7785. && LARGE_OFF_T % 2147483647 == 1)
  7786. ? 1 : -1];
  7787. int
  7788. main ()
  7789. {
  7790. ;
  7791. return 0;
  7792. }
  7793. _ACEOF
  7794. if ac_fn_cxx_try_compile "$LINENO"; then :
  7795. ac_cv_sys_file_offset_bits=64; break
  7796. fi
  7797. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7798. ac_cv_sys_file_offset_bits=unknown
  7799. break
  7800. done
  7801. fi
  7802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  7803. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  7804. case $ac_cv_sys_file_offset_bits in #(
  7805. no | unknown) ;;
  7806. *)
  7807. cat >>confdefs.h <<_ACEOF
  7808. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  7809. _ACEOF
  7810. ;;
  7811. esac
  7812. rm -rf conftest*
  7813. if test $ac_cv_sys_file_offset_bits = unknown; then
  7814. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  7815. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  7816. if test "${ac_cv_sys_large_files+set}" = set; then :
  7817. $as_echo_n "(cached) " >&6
  7818. else
  7819. while :; do
  7820. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7821. /* end confdefs.h. */
  7822. #include <sys/types.h>
  7823. /* Check that off_t can represent 2**63 - 1 correctly.
  7824. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7825. since some C++ compilers masquerading as C compilers
  7826. incorrectly reject 9223372036854775807. */
  7827. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7828. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7829. && LARGE_OFF_T % 2147483647 == 1)
  7830. ? 1 : -1];
  7831. int
  7832. main ()
  7833. {
  7834. ;
  7835. return 0;
  7836. }
  7837. _ACEOF
  7838. if ac_fn_cxx_try_compile "$LINENO"; then :
  7839. ac_cv_sys_large_files=no; break
  7840. fi
  7841. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7842. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7843. /* end confdefs.h. */
  7844. #define _LARGE_FILES 1
  7845. #include <sys/types.h>
  7846. /* Check that off_t can represent 2**63 - 1 correctly.
  7847. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7848. since some C++ compilers masquerading as C compilers
  7849. incorrectly reject 9223372036854775807. */
  7850. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7851. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7852. && LARGE_OFF_T % 2147483647 == 1)
  7853. ? 1 : -1];
  7854. int
  7855. main ()
  7856. {
  7857. ;
  7858. return 0;
  7859. }
  7860. _ACEOF
  7861. if ac_fn_cxx_try_compile "$LINENO"; then :
  7862. ac_cv_sys_large_files=1; break
  7863. fi
  7864. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7865. ac_cv_sys_large_files=unknown
  7866. break
  7867. done
  7868. fi
  7869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  7870. $as_echo "$ac_cv_sys_large_files" >&6; }
  7871. case $ac_cv_sys_large_files in #(
  7872. no | unknown) ;;
  7873. *)
  7874. cat >>confdefs.h <<_ACEOF
  7875. #define _LARGE_FILES $ac_cv_sys_large_files
  7876. _ACEOF
  7877. ;;
  7878. esac
  7879. rm -rf conftest*
  7880. fi
  7881. fi
  7882. # Checks for library functions.
  7883. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
  7884. $as_echo_n "checking whether NLS is requested... " >&6; }
  7885. # Check whether --enable-nls was given.
  7886. if test "${enable_nls+set}" = set; then :
  7887. enableval=$enable_nls; USE_NLS=$enableval
  7888. else
  7889. USE_NLS=yes
  7890. fi
  7891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
  7892. $as_echo "$USE_NLS" >&6; }
  7893. GETTEXT_MACRO_VERSION=0.17
  7894. # Prepare PATH_SEPARATOR.
  7895. # The user is always right.
  7896. if test "${PATH_SEPARATOR+set}" != set; then
  7897. echo "#! /bin/sh" >conf$$.sh
  7898. echo "exit 0" >>conf$$.sh
  7899. chmod +x conf$$.sh
  7900. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  7901. PATH_SEPARATOR=';'
  7902. else
  7903. PATH_SEPARATOR=:
  7904. fi
  7905. rm -f conf$$.sh
  7906. fi
  7907. # Find out how to test for executable files. Don't use a zero-byte file,
  7908. # as systems may use methods other than mode bits to determine executability.
  7909. cat >conf$$.file <<_ASEOF
  7910. #! /bin/sh
  7911. exit 0
  7912. _ASEOF
  7913. chmod +x conf$$.file
  7914. if test -x conf$$.file >/dev/null 2>&1; then
  7915. ac_executable_p="test -x"
  7916. else
  7917. ac_executable_p="test -f"
  7918. fi
  7919. rm -f conf$$.file
  7920. # Extract the first word of "msgfmt", so it can be a program name with args.
  7921. set dummy msgfmt; ac_word=$2
  7922. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7923. $as_echo_n "checking for $ac_word... " >&6; }
  7924. if test "${ac_cv_path_MSGFMT+set}" = set; then :
  7925. $as_echo_n "(cached) " >&6
  7926. else
  7927. case "$MSGFMT" in
  7928. [\\/]* | ?:[\\/]*)
  7929. ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  7930. ;;
  7931. *)
  7932. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  7933. for ac_dir in $PATH; do
  7934. IFS="$ac_save_IFS"
  7935. test -z "$ac_dir" && ac_dir=.
  7936. for ac_exec_ext in '' $ac_executable_extensions; do
  7937. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  7938. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  7939. if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
  7940. (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  7941. ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
  7942. break 2
  7943. fi
  7944. fi
  7945. done
  7946. done
  7947. IFS="$ac_save_IFS"
  7948. test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
  7949. ;;
  7950. esac
  7951. fi
  7952. MSGFMT="$ac_cv_path_MSGFMT"
  7953. if test "$MSGFMT" != ":"; then
  7954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
  7955. $as_echo "$MSGFMT" >&6; }
  7956. else
  7957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7958. $as_echo "no" >&6; }
  7959. fi
  7960. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  7961. set dummy gmsgfmt; ac_word=$2
  7962. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7963. $as_echo_n "checking for $ac_word... " >&6; }
  7964. if test "${ac_cv_path_GMSGFMT+set}" = set; then :
  7965. $as_echo_n "(cached) " >&6
  7966. else
  7967. case $GMSGFMT in
  7968. [\\/]* | ?:[\\/]*)
  7969. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  7970. ;;
  7971. *)
  7972. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7973. for as_dir in $PATH
  7974. do
  7975. IFS=$as_save_IFS
  7976. test -z "$as_dir" && as_dir=.
  7977. for ac_exec_ext in '' $ac_executable_extensions; do
  7978. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7979. ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  7980. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7981. break 2
  7982. fi
  7983. done
  7984. done
  7985. IFS=$as_save_IFS
  7986. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  7987. ;;
  7988. esac
  7989. fi
  7990. GMSGFMT=$ac_cv_path_GMSGFMT
  7991. if test -n "$GMSGFMT"; then
  7992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
  7993. $as_echo "$GMSGFMT" >&6; }
  7994. else
  7995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7996. $as_echo "no" >&6; }
  7997. fi
  7998. case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  7999. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
  8000. *) MSGFMT_015=$MSGFMT ;;
  8001. esac
  8002. case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  8003. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
  8004. *) GMSGFMT_015=$GMSGFMT ;;
  8005. esac
  8006. # Prepare PATH_SEPARATOR.
  8007. # The user is always right.
  8008. if test "${PATH_SEPARATOR+set}" != set; then
  8009. echo "#! /bin/sh" >conf$$.sh
  8010. echo "exit 0" >>conf$$.sh
  8011. chmod +x conf$$.sh
  8012. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  8013. PATH_SEPARATOR=';'
  8014. else
  8015. PATH_SEPARATOR=:
  8016. fi
  8017. rm -f conf$$.sh
  8018. fi
  8019. # Find out how to test for executable files. Don't use a zero-byte file,
  8020. # as systems may use methods other than mode bits to determine executability.
  8021. cat >conf$$.file <<_ASEOF
  8022. #! /bin/sh
  8023. exit 0
  8024. _ASEOF
  8025. chmod +x conf$$.file
  8026. if test -x conf$$.file >/dev/null 2>&1; then
  8027. ac_executable_p="test -x"
  8028. else
  8029. ac_executable_p="test -f"
  8030. fi
  8031. rm -f conf$$.file
  8032. # Extract the first word of "xgettext", so it can be a program name with args.
  8033. set dummy xgettext; ac_word=$2
  8034. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8035. $as_echo_n "checking for $ac_word... " >&6; }
  8036. if test "${ac_cv_path_XGETTEXT+set}" = set; then :
  8037. $as_echo_n "(cached) " >&6
  8038. else
  8039. case "$XGETTEXT" in
  8040. [\\/]* | ?:[\\/]*)
  8041. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  8042. ;;
  8043. *)
  8044. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  8045. for ac_dir in $PATH; do
  8046. IFS="$ac_save_IFS"
  8047. test -z "$ac_dir" && ac_dir=.
  8048. for ac_exec_ext in '' $ac_executable_extensions; do
  8049. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  8050. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  8051. if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
  8052. (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
  8053. ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
  8054. break 2
  8055. fi
  8056. fi
  8057. done
  8058. done
  8059. IFS="$ac_save_IFS"
  8060. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  8061. ;;
  8062. esac
  8063. fi
  8064. XGETTEXT="$ac_cv_path_XGETTEXT"
  8065. if test "$XGETTEXT" != ":"; then
  8066. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
  8067. $as_echo "$XGETTEXT" >&6; }
  8068. else
  8069. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8070. $as_echo "no" >&6; }
  8071. fi
  8072. rm -f messages.po
  8073. case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  8074. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
  8075. *) XGETTEXT_015=$XGETTEXT ;;
  8076. esac
  8077. # Prepare PATH_SEPARATOR.
  8078. # The user is always right.
  8079. if test "${PATH_SEPARATOR+set}" != set; then
  8080. echo "#! /bin/sh" >conf$$.sh
  8081. echo "exit 0" >>conf$$.sh
  8082. chmod +x conf$$.sh
  8083. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  8084. PATH_SEPARATOR=';'
  8085. else
  8086. PATH_SEPARATOR=:
  8087. fi
  8088. rm -f conf$$.sh
  8089. fi
  8090. # Find out how to test for executable files. Don't use a zero-byte file,
  8091. # as systems may use methods other than mode bits to determine executability.
  8092. cat >conf$$.file <<_ASEOF
  8093. #! /bin/sh
  8094. exit 0
  8095. _ASEOF
  8096. chmod +x conf$$.file
  8097. if test -x conf$$.file >/dev/null 2>&1; then
  8098. ac_executable_p="test -x"
  8099. else
  8100. ac_executable_p="test -f"
  8101. fi
  8102. rm -f conf$$.file
  8103. # Extract the first word of "msgmerge", so it can be a program name with args.
  8104. set dummy msgmerge; ac_word=$2
  8105. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8106. $as_echo_n "checking for $ac_word... " >&6; }
  8107. if test "${ac_cv_path_MSGMERGE+set}" = set; then :
  8108. $as_echo_n "(cached) " >&6
  8109. else
  8110. case "$MSGMERGE" in
  8111. [\\/]* | ?:[\\/]*)
  8112. ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  8113. ;;
  8114. *)
  8115. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  8116. for ac_dir in $PATH; do
  8117. IFS="$ac_save_IFS"
  8118. test -z "$ac_dir" && ac_dir=.
  8119. for ac_exec_ext in '' $ac_executable_extensions; do
  8120. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  8121. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  8122. if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
  8123. ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
  8124. break 2
  8125. fi
  8126. fi
  8127. done
  8128. done
  8129. IFS="$ac_save_IFS"
  8130. test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
  8131. ;;
  8132. esac
  8133. fi
  8134. MSGMERGE="$ac_cv_path_MSGMERGE"
  8135. if test "$MSGMERGE" != ":"; then
  8136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
  8137. $as_echo "$MSGMERGE" >&6; }
  8138. else
  8139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8140. $as_echo "no" >&6; }
  8141. fi
  8142. test -n "$localedir" || localedir='${datadir}/locale'
  8143. test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
  8144. ac_config_commands="$ac_config_commands po-directories"
  8145. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
  8146. $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
  8147. if test "${ac_cv_gnu_library_2+set}" = set; then :
  8148. $as_echo_n "(cached) " >&6
  8149. else
  8150. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8151. /* end confdefs.h. */
  8152. #include <features.h>
  8153. #ifdef __GNU_LIBRARY__
  8154. #if (__GLIBC__ >= 2)
  8155. Lucky GNU user
  8156. #endif
  8157. #endif
  8158. _ACEOF
  8159. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  8160. $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
  8161. ac_cv_gnu_library_2=yes
  8162. else
  8163. ac_cv_gnu_library_2=no
  8164. fi
  8165. rm -f conftest*
  8166. fi
  8167. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
  8168. $as_echo "$ac_cv_gnu_library_2" >&6; }
  8169. GLIBC2="$ac_cv_gnu_library_2"
  8170. CFLAG_VISIBILITY=
  8171. HAVE_VISIBILITY=0
  8172. if test -n "$GCC"; then
  8173. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
  8174. $as_echo_n "checking for simple visibility declarations... " >&6; }
  8175. if test "${gl_cv_cc_visibility+set}" = set; then :
  8176. $as_echo_n "(cached) " >&6
  8177. else
  8178. gl_save_CFLAGS="$CFLAGS"
  8179. CFLAGS="$CFLAGS -fvisibility=hidden"
  8180. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8181. /* end confdefs.h. */
  8182. extern __attribute__((__visibility__("hidden"))) int hiddenvar;
  8183. extern __attribute__((__visibility__("default"))) int exportedvar;
  8184. extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
  8185. extern __attribute__((__visibility__("default"))) int exportedfunc (void);
  8186. int
  8187. main ()
  8188. {
  8189. ;
  8190. return 0;
  8191. }
  8192. _ACEOF
  8193. if ac_fn_cxx_try_compile "$LINENO"; then :
  8194. gl_cv_cc_visibility=yes
  8195. else
  8196. gl_cv_cc_visibility=no
  8197. fi
  8198. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8199. CFLAGS="$gl_save_CFLAGS"
  8200. fi
  8201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
  8202. $as_echo "$gl_cv_cc_visibility" >&6; }
  8203. if test $gl_cv_cc_visibility = yes; then
  8204. CFLAG_VISIBILITY="-fvisibility=hidden"
  8205. HAVE_VISIBILITY=1
  8206. fi
  8207. fi
  8208. cat >>confdefs.h <<_ACEOF
  8209. #define HAVE_VISIBILITY $HAVE_VISIBILITY
  8210. _ACEOF
  8211. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
  8212. $as_echo_n "checking for stdint.h... " >&6; }
  8213. if test "${gl_cv_header_stdint_h+set}" = set; then :
  8214. $as_echo_n "(cached) " >&6
  8215. else
  8216. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8217. /* end confdefs.h. */
  8218. #include <sys/types.h>
  8219. #include <stdint.h>
  8220. int
  8221. main ()
  8222. {
  8223. uintmax_t i = (uintmax_t) -1; return !i;
  8224. ;
  8225. return 0;
  8226. }
  8227. _ACEOF
  8228. if ac_fn_cxx_try_compile "$LINENO"; then :
  8229. gl_cv_header_stdint_h=yes
  8230. else
  8231. gl_cv_header_stdint_h=no
  8232. fi
  8233. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8234. fi
  8235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
  8236. $as_echo "$gl_cv_header_stdint_h" >&6; }
  8237. if test $gl_cv_header_stdint_h = yes; then
  8238. cat >>confdefs.h <<_ACEOF
  8239. #define HAVE_STDINT_H_WITH_UINTMAX 1
  8240. _ACEOF
  8241. fi
  8242. for ac_header in $ac_header_list
  8243. do :
  8244. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8245. ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  8246. "
  8247. eval as_val=\$$as_ac_Header
  8248. if test "x$as_val" = x""yes; then :
  8249. cat >>confdefs.h <<_ACEOF
  8250. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8251. _ACEOF
  8252. fi
  8253. done
  8254. for ac_func in getpagesize
  8255. do :
  8256. ac_fn_cxx_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  8257. if test "x$ac_cv_func_getpagesize" = x""yes; then :
  8258. cat >>confdefs.h <<_ACEOF
  8259. #define HAVE_GETPAGESIZE 1
  8260. _ACEOF
  8261. fi
  8262. done
  8263. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  8264. $as_echo_n "checking for working mmap... " >&6; }
  8265. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
  8266. $as_echo_n "(cached) " >&6
  8267. else
  8268. if test "$cross_compiling" = yes; then :
  8269. ac_cv_func_mmap_fixed_mapped=no
  8270. else
  8271. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8272. /* end confdefs.h. */
  8273. $ac_includes_default
  8274. /* malloc might have been renamed as rpl_malloc. */
  8275. #undef malloc
  8276. /* Thanks to Mike Haertel and Jim Avera for this test.
  8277. Here is a matrix of mmap possibilities:
  8278. mmap private not fixed
  8279. mmap private fixed at somewhere currently unmapped
  8280. mmap private fixed at somewhere already mapped
  8281. mmap shared not fixed
  8282. mmap shared fixed at somewhere currently unmapped
  8283. mmap shared fixed at somewhere already mapped
  8284. For private mappings, we should verify that changes cannot be read()
  8285. back from the file, nor mmap's back from the file at a different
  8286. address. (There have been systems where private was not correctly
  8287. implemented like the infamous i386 svr4.0, and systems where the
  8288. VM page cache was not coherent with the file system buffer cache
  8289. like early versions of FreeBSD and possibly contemporary NetBSD.)
  8290. For shared mappings, we should conversely verify that changes get
  8291. propagated back to all the places they're supposed to be.
  8292. Grep wants private fixed already mapped.
  8293. The main things grep needs to know about mmap are:
  8294. * does it exist and is it safe to write into the mmap'd area
  8295. * how to use it (BSD variants) */
  8296. #include <fcntl.h>
  8297. #include <sys/mman.h>
  8298. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  8299. char *malloc ();
  8300. #endif
  8301. /* This mess was copied from the GNU getpagesize.h. */
  8302. #ifndef HAVE_GETPAGESIZE
  8303. # ifdef _SC_PAGESIZE
  8304. # define getpagesize() sysconf(_SC_PAGESIZE)
  8305. # else /* no _SC_PAGESIZE */
  8306. # ifdef HAVE_SYS_PARAM_H
  8307. # include <sys/param.h>
  8308. # ifdef EXEC_PAGESIZE
  8309. # define getpagesize() EXEC_PAGESIZE
  8310. # else /* no EXEC_PAGESIZE */
  8311. # ifdef NBPG
  8312. # define getpagesize() NBPG * CLSIZE
  8313. # ifndef CLSIZE
  8314. # define CLSIZE 1
  8315. # endif /* no CLSIZE */
  8316. # else /* no NBPG */
  8317. # ifdef NBPC
  8318. # define getpagesize() NBPC
  8319. # else /* no NBPC */
  8320. # ifdef PAGESIZE
  8321. # define getpagesize() PAGESIZE
  8322. # endif /* PAGESIZE */
  8323. # endif /* no NBPC */
  8324. # endif /* no NBPG */
  8325. # endif /* no EXEC_PAGESIZE */
  8326. # else /* no HAVE_SYS_PARAM_H */
  8327. # define getpagesize() 8192 /* punt totally */
  8328. # endif /* no HAVE_SYS_PARAM_H */
  8329. # endif /* no _SC_PAGESIZE */
  8330. #endif /* no HAVE_GETPAGESIZE */
  8331. int
  8332. main ()
  8333. {
  8334. char *data, *data2, *data3;
  8335. const char *cdata2;
  8336. int i, pagesize;
  8337. int fd, fd2;
  8338. pagesize = getpagesize ();
  8339. /* First, make a file with some known garbage in it. */
  8340. data = (char *) malloc (pagesize);
  8341. if (!data)
  8342. return 1;
  8343. for (i = 0; i < pagesize; ++i)
  8344. *(data + i) = rand ();
  8345. umask (0);
  8346. fd = creat ("conftest.mmap", 0600);
  8347. if (fd < 0)
  8348. return 2;
  8349. if (write (fd, data, pagesize) != pagesize)
  8350. return 3;
  8351. close (fd);
  8352. /* Next, check that the tail of a page is zero-filled. File must have
  8353. non-zero length, otherwise we risk SIGBUS for entire page. */
  8354. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  8355. if (fd2 < 0)
  8356. return 4;
  8357. cdata2 = "";
  8358. if (write (fd2, cdata2, 1) != 1)
  8359. return 5;
  8360. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  8361. if (data2 == MAP_FAILED)
  8362. return 6;
  8363. for (i = 0; i < pagesize; ++i)
  8364. if (*(data2 + i))
  8365. return 7;
  8366. close (fd2);
  8367. if (munmap (data2, pagesize))
  8368. return 8;
  8369. /* Next, try to mmap the file at a fixed address which already has
  8370. something else allocated at it. If we can, also make sure that
  8371. we see the same garbage. */
  8372. fd = open ("conftest.mmap", O_RDWR);
  8373. if (fd < 0)
  8374. return 9;
  8375. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  8376. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  8377. return 10;
  8378. for (i = 0; i < pagesize; ++i)
  8379. if (*(data + i) != *(data2 + i))
  8380. return 11;
  8381. /* Finally, make sure that changes to the mapped area do not
  8382. percolate back to the file as seen by read(). (This is a bug on
  8383. some variants of i386 svr4.0.) */
  8384. for (i = 0; i < pagesize; ++i)
  8385. *(data2 + i) = *(data2 + i) + 1;
  8386. data3 = (char *) malloc (pagesize);
  8387. if (!data3)
  8388. return 12;
  8389. if (read (fd, data3, pagesize) != pagesize)
  8390. return 13;
  8391. for (i = 0; i < pagesize; ++i)
  8392. if (*(data + i) != *(data3 + i))
  8393. return 14;
  8394. close (fd);
  8395. return 0;
  8396. }
  8397. _ACEOF
  8398. if ac_fn_cxx_try_run "$LINENO"; then :
  8399. ac_cv_func_mmap_fixed_mapped=yes
  8400. else
  8401. ac_cv_func_mmap_fixed_mapped=no
  8402. fi
  8403. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  8404. conftest.$ac_objext conftest.beam conftest.$ac_ext
  8405. fi
  8406. fi
  8407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  8408. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  8409. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  8410. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  8411. fi
  8412. rm -f conftest.mmap conftest.txt
  8413. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
  8414. $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
  8415. if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
  8416. $as_echo_n "(cached) " >&6
  8417. else
  8418. gt_cv_int_divbyzero_sigfpe=
  8419. case "$host_os" in
  8420. macos* | darwin[6-9]* | darwin[1-9][0-9]*)
  8421. # On MacOS X 10.2 or newer, just assume the same as when cross-
  8422. # compiling. If we were to perform the real test, 1 Crash Report
  8423. # dialog window would pop up.
  8424. case "$host_cpu" in
  8425. i[34567]86 | x86_64)
  8426. gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
  8427. esac
  8428. ;;
  8429. esac
  8430. if test -z "$gt_cv_int_divbyzero_sigfpe"; then
  8431. if test "$cross_compiling" = yes; then :
  8432. # Guess based on the CPU.
  8433. case "$host_cpu" in
  8434. alpha* | i[34567]86 | x86_64 | m68k | s390*)
  8435. gt_cv_int_divbyzero_sigfpe="guessing yes";;
  8436. *)
  8437. gt_cv_int_divbyzero_sigfpe="guessing no";;
  8438. esac
  8439. else
  8440. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8441. /* end confdefs.h. */
  8442. #include <stdlib.h>
  8443. #include <signal.h>
  8444. static void
  8445. sigfpe_handler (int sig)
  8446. {
  8447. /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
  8448. exit (sig != SIGFPE);
  8449. }
  8450. int x = 1;
  8451. int y = 0;
  8452. int z;
  8453. int nan;
  8454. int main ()
  8455. {
  8456. signal (SIGFPE, sigfpe_handler);
  8457. /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
  8458. #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
  8459. signal (SIGTRAP, sigfpe_handler);
  8460. #endif
  8461. /* Linux/SPARC yields signal SIGILL. */
  8462. #if defined (__sparc__) && defined (__linux__)
  8463. signal (SIGILL, sigfpe_handler);
  8464. #endif
  8465. z = x / y;
  8466. nan = y / y;
  8467. exit (1);
  8468. }
  8469. _ACEOF
  8470. if ac_fn_cxx_try_run "$LINENO"; then :
  8471. gt_cv_int_divbyzero_sigfpe=yes
  8472. else
  8473. gt_cv_int_divbyzero_sigfpe=no
  8474. fi
  8475. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  8476. conftest.$ac_objext conftest.beam conftest.$ac_ext
  8477. fi
  8478. fi
  8479. fi
  8480. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
  8481. $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
  8482. case "$gt_cv_int_divbyzero_sigfpe" in
  8483. *yes) value=1;;
  8484. *) value=0;;
  8485. esac
  8486. cat >>confdefs.h <<_ACEOF
  8487. #define INTDIV0_RAISES_SIGFPE $value
  8488. _ACEOF
  8489. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
  8490. $as_echo_n "checking for inttypes.h... " >&6; }
  8491. if test "${gl_cv_header_inttypes_h+set}" = set; then :
  8492. $as_echo_n "(cached) " >&6
  8493. else
  8494. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8495. /* end confdefs.h. */
  8496. #include <sys/types.h>
  8497. #include <inttypes.h>
  8498. int
  8499. main ()
  8500. {
  8501. uintmax_t i = (uintmax_t) -1; return !i;
  8502. ;
  8503. return 0;
  8504. }
  8505. _ACEOF
  8506. if ac_fn_cxx_try_compile "$LINENO"; then :
  8507. gl_cv_header_inttypes_h=yes
  8508. else
  8509. gl_cv_header_inttypes_h=no
  8510. fi
  8511. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8512. fi
  8513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
  8514. $as_echo "$gl_cv_header_inttypes_h" >&6; }
  8515. if test $gl_cv_header_inttypes_h = yes; then
  8516. cat >>confdefs.h <<_ACEOF
  8517. #define HAVE_INTTYPES_H_WITH_UINTMAX 1
  8518. _ACEOF
  8519. fi
  8520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
  8521. $as_echo_n "checking for unsigned long long int... " >&6; }
  8522. if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
  8523. $as_echo_n "(cached) " >&6
  8524. else
  8525. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8526. /* end confdefs.h. */
  8527. /* Test preprocessor. */
  8528. #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  8529. error in preprocessor;
  8530. #endif
  8531. #if ! (18446744073709551615ULL <= -1ull)
  8532. error in preprocessor;
  8533. #endif
  8534. /* Test literals. */
  8535. long long int ll = 9223372036854775807ll;
  8536. long long int nll = -9223372036854775807LL;
  8537. unsigned long long int ull = 18446744073709551615ULL;
  8538. /* Test constant expressions. */
  8539. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  8540. ? 1 : -1)];
  8541. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  8542. ? 1 : -1)];
  8543. int i = 63;
  8544. int
  8545. main ()
  8546. {
  8547. /* Test availability of runtime routines for shift and division. */
  8548. long long int llmax = 9223372036854775807ll;
  8549. unsigned long long int ullmax = 18446744073709551615ull;
  8550. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  8551. | (llmax / ll) | (llmax % ll)
  8552. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  8553. | (ullmax / ull) | (ullmax % ull));
  8554. ;
  8555. return 0;
  8556. }
  8557. _ACEOF
  8558. if ac_fn_cxx_try_link "$LINENO"; then :
  8559. ac_cv_type_unsigned_long_long_int=yes
  8560. else
  8561. ac_cv_type_unsigned_long_long_int=no
  8562. fi
  8563. rm -f core conftest.err conftest.$ac_objext \
  8564. conftest$ac_exeext conftest.$ac_ext
  8565. fi
  8566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
  8567. $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
  8568. if test $ac_cv_type_unsigned_long_long_int = yes; then
  8569. $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
  8570. fi
  8571. if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
  8572. test $ac_cv_type_unsigned_long_long_int = yes \
  8573. && ac_type='unsigned long long' \
  8574. || ac_type='unsigned long'
  8575. cat >>confdefs.h <<_ACEOF
  8576. #define uintmax_t $ac_type
  8577. _ACEOF
  8578. else
  8579. $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
  8580. fi
  8581. for ac_header in inttypes.h
  8582. do :
  8583. ac_fn_cxx_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
  8584. if test "x$ac_cv_header_inttypes_h" = x""yes; then :
  8585. cat >>confdefs.h <<_ACEOF
  8586. #define HAVE_INTTYPES_H 1
  8587. _ACEOF
  8588. fi
  8589. done
  8590. if test $ac_cv_header_inttypes_h = yes; then
  8591. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
  8592. $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
  8593. if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
  8594. $as_echo_n "(cached) " >&6
  8595. else
  8596. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8597. /* end confdefs.h. */
  8598. #include <inttypes.h>
  8599. #ifdef PRId32
  8600. char *p = PRId32;
  8601. #endif
  8602. int
  8603. main ()
  8604. {
  8605. ;
  8606. return 0;
  8607. }
  8608. _ACEOF
  8609. if ac_fn_cxx_try_compile "$LINENO"; then :
  8610. gt_cv_inttypes_pri_broken=no
  8611. else
  8612. gt_cv_inttypes_pri_broken=yes
  8613. fi
  8614. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8615. fi
  8616. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
  8617. $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
  8618. fi
  8619. if test "$gt_cv_inttypes_pri_broken" = yes; then
  8620. cat >>confdefs.h <<_ACEOF
  8621. #define PRI_MACROS_BROKEN 1
  8622. _ACEOF
  8623. PRI_MACROS_BROKEN=1
  8624. else
  8625. PRI_MACROS_BROKEN=0
  8626. fi
  8627. # Check whether --enable-threads was given.
  8628. if test "${enable_threads+set}" = set; then :
  8629. enableval=$enable_threads; gl_use_threads=$enableval
  8630. else
  8631. case "$host_os" in
  8632. osf*) gl_use_threads=no ;;
  8633. *) gl_use_threads=yes ;;
  8634. esac
  8635. fi
  8636. if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
  8637. # For using <pthread.h>:
  8638. case "$host_os" in
  8639. osf*)
  8640. # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
  8641. # groks <pthread.h>. cc also understands the flag -pthread, but
  8642. # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
  8643. # 2. putting a flag into CPPFLAGS that has an effect on the linker
  8644. # causes the AC_TRY_LINK test below to succeed unexpectedly,
  8645. # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
  8646. CPPFLAGS="$CPPFLAGS -D_REENTRANT"
  8647. ;;
  8648. esac
  8649. # Some systems optimize for single-threaded programs by default, and
  8650. # need special flags to disable these optimizations. For example, the
  8651. # definition of 'errno' in <errno.h>.
  8652. case "$host_os" in
  8653. aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
  8654. solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
  8655. esac
  8656. fi
  8657. if test "X$prefix" = "XNONE"; then
  8658. acl_final_prefix="$ac_default_prefix"
  8659. else
  8660. acl_final_prefix="$prefix"
  8661. fi
  8662. if test "X$exec_prefix" = "XNONE"; then
  8663. acl_final_exec_prefix='${prefix}'
  8664. else
  8665. acl_final_exec_prefix="$exec_prefix"
  8666. fi
  8667. acl_save_prefix="$prefix"
  8668. prefix="$acl_final_prefix"
  8669. eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  8670. prefix="$acl_save_prefix"
  8671. # Check whether --with-gnu-ld was given.
  8672. if test "${with_gnu_ld+set}" = set; then :
  8673. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  8674. else
  8675. with_gnu_ld=no
  8676. fi
  8677. # Prepare PATH_SEPARATOR.
  8678. # The user is always right.
  8679. if test "${PATH_SEPARATOR+set}" != set; then
  8680. echo "#! /bin/sh" >conf$$.sh
  8681. echo "exit 0" >>conf$$.sh
  8682. chmod +x conf$$.sh
  8683. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  8684. PATH_SEPARATOR=';'
  8685. else
  8686. PATH_SEPARATOR=:
  8687. fi
  8688. rm -f conf$$.sh
  8689. fi
  8690. ac_prog=ld
  8691. if test "$GCC" = yes; then
  8692. # Check if gcc -print-prog-name=ld gives a path.
  8693. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
  8694. $as_echo_n "checking for ld used by GCC... " >&6; }
  8695. case $host in
  8696. *-*-mingw*)
  8697. # gcc leaves a trailing carriage return which upsets mingw
  8698. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  8699. *)
  8700. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  8701. esac
  8702. case $ac_prog in
  8703. # Accept absolute paths.
  8704. [\\/]* | [A-Za-z]:[\\/]*)
  8705. re_direlt='/[^/][^/]*/\.\./'
  8706. # Canonicalize the path of ld
  8707. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  8708. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  8709. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  8710. done
  8711. test -z "$LD" && LD="$ac_prog"
  8712. ;;
  8713. "")
  8714. # If it fails, then pretend we aren't using GCC.
  8715. ac_prog=ld
  8716. ;;
  8717. *)
  8718. # If it is relative, then search for the first ld in PATH.
  8719. with_gnu_ld=unknown
  8720. ;;
  8721. esac
  8722. elif test "$with_gnu_ld" = yes; then
  8723. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  8724. $as_echo_n "checking for GNU ld... " >&6; }
  8725. else
  8726. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  8727. $as_echo_n "checking for non-GNU ld... " >&6; }
  8728. fi
  8729. if test "${acl_cv_path_LD+set}" = set; then :
  8730. $as_echo_n "(cached) " >&6
  8731. else
  8732. if test -z "$LD"; then
  8733. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  8734. for ac_dir in $PATH; do
  8735. test -z "$ac_dir" && ac_dir=.
  8736. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  8737. acl_cv_path_LD="$ac_dir/$ac_prog"
  8738. # Check to see if the program is GNU ld. I'd rather use --version,
  8739. # but apparently some GNU ld's only accept -v.
  8740. # Break only if it was the GNU/non-GNU ld that we prefer.
  8741. case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
  8742. *GNU* | *'with BFD'*)
  8743. test "$with_gnu_ld" != no && break ;;
  8744. *)
  8745. test "$with_gnu_ld" != yes && break ;;
  8746. esac
  8747. fi
  8748. done
  8749. IFS="$ac_save_ifs"
  8750. else
  8751. acl_cv_path_LD="$LD" # Let the user override the test with a path.
  8752. fi
  8753. fi
  8754. LD="$acl_cv_path_LD"
  8755. if test -n "$LD"; then
  8756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  8757. $as_echo "$LD" >&6; }
  8758. else
  8759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8760. $as_echo "no" >&6; }
  8761. fi
  8762. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  8763. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  8764. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  8765. if test "${acl_cv_prog_gnu_ld+set}" = set; then :
  8766. $as_echo_n "(cached) " >&6
  8767. else
  8768. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  8769. case `$LD -v 2>&1 </dev/null` in
  8770. *GNU* | *'with BFD'*)
  8771. acl_cv_prog_gnu_ld=yes ;;
  8772. *)
  8773. acl_cv_prog_gnu_ld=no ;;
  8774. esac
  8775. fi
  8776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
  8777. $as_echo "$acl_cv_prog_gnu_ld" >&6; }
  8778. with_gnu_ld=$acl_cv_prog_gnu_ld
  8779. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
  8780. $as_echo_n "checking for shared library run path origin... " >&6; }
  8781. if test "${acl_cv_rpath+set}" = set; then :
  8782. $as_echo_n "(cached) " >&6
  8783. else
  8784. CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  8785. ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  8786. . ./conftest.sh
  8787. rm -f ./conftest.sh
  8788. acl_cv_rpath=done
  8789. fi
  8790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
  8791. $as_echo "$acl_cv_rpath" >&6; }
  8792. wl="$acl_cv_wl"
  8793. acl_libext="$acl_cv_libext"
  8794. acl_shlibext="$acl_cv_shlibext"
  8795. acl_libname_spec="$acl_cv_libname_spec"
  8796. acl_library_names_spec="$acl_cv_library_names_spec"
  8797. acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  8798. acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  8799. acl_hardcode_direct="$acl_cv_hardcode_direct"
  8800. acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
  8801. # Check whether --enable-rpath was given.
  8802. if test "${enable_rpath+set}" = set; then :
  8803. enableval=$enable_rpath; :
  8804. else
  8805. enable_rpath=yes
  8806. fi
  8807. acl_libdirstem=lib
  8808. searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
  8809. if test -n "$searchpath"; then
  8810. acl_save_IFS="${IFS= }"; IFS=":"
  8811. for searchdir in $searchpath; do
  8812. if test -d "$searchdir"; then
  8813. case "$searchdir" in
  8814. */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
  8815. *) searchdir=`cd "$searchdir" && pwd`
  8816. case "$searchdir" in
  8817. */lib64 ) acl_libdirstem=lib64 ;;
  8818. esac ;;
  8819. esac
  8820. fi
  8821. done
  8822. IFS="$acl_save_IFS"
  8823. fi
  8824. gl_threads_api=none
  8825. LIBTHREAD=
  8826. LTLIBTHREAD=
  8827. LIBMULTITHREAD=
  8828. LTLIBMULTITHREAD=
  8829. if test "$gl_use_threads" != no; then
  8830. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
  8831. $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
  8832. gl_have_weak=no
  8833. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8834. /* end confdefs.h. */
  8835. extern void xyzzy ();
  8836. #pragma weak xyzzy
  8837. int
  8838. main ()
  8839. {
  8840. xyzzy();
  8841. ;
  8842. return 0;
  8843. }
  8844. _ACEOF
  8845. if ac_fn_cxx_try_link "$LINENO"; then :
  8846. gl_have_weak=yes
  8847. fi
  8848. rm -f core conftest.err conftest.$ac_objext \
  8849. conftest$ac_exeext conftest.$ac_ext
  8850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_weak" >&5
  8851. $as_echo "$gl_have_weak" >&6; }
  8852. if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
  8853. # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
  8854. # it groks <pthread.h>. It's added above, in gl_LOCK_EARLY_BODY.
  8855. ac_fn_cxx_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
  8856. if test "x$ac_cv_header_pthread_h" = x""yes; then :
  8857. gl_have_pthread_h=yes
  8858. else
  8859. gl_have_pthread_h=no
  8860. fi
  8861. if test "$gl_have_pthread_h" = yes; then
  8862. # Other possible tests:
  8863. # -lpthreads (FSU threads, PCthreads)
  8864. # -lgthreads
  8865. gl_have_pthread=
  8866. # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
  8867. # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
  8868. # the second one only in libpthread, and lock.c needs it.
  8869. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8870. /* end confdefs.h. */
  8871. #include <pthread.h>
  8872. int
  8873. main ()
  8874. {
  8875. pthread_mutex_lock((pthread_mutex_t*)0);
  8876. pthread_mutexattr_init((pthread_mutexattr_t*)0);
  8877. ;
  8878. return 0;
  8879. }
  8880. _ACEOF
  8881. if ac_fn_cxx_try_link "$LINENO"; then :
  8882. gl_have_pthread=yes
  8883. fi
  8884. rm -f core conftest.err conftest.$ac_objext \
  8885. conftest$ac_exeext conftest.$ac_ext
  8886. # Test for libpthread by looking for pthread_kill. (Not pthread_self,
  8887. # since it is defined as a macro on OSF/1.)
  8888. if test -n "$gl_have_pthread"; then
  8889. # The program links fine without libpthread. But it may actually
  8890. # need to link with libpthread in order to create multiple threads.
  8891. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
  8892. $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
  8893. if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then :
  8894. $as_echo_n "(cached) " >&6
  8895. else
  8896. ac_check_lib_save_LIBS=$LIBS
  8897. LIBS="-lpthread $LIBS"
  8898. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8899. /* end confdefs.h. */
  8900. /* Override any GCC internal prototype to avoid an error.
  8901. Use char because int might match the return type of a GCC
  8902. builtin and then its argument prototype would still apply. */
  8903. #ifdef __cplusplus
  8904. extern "C"
  8905. #endif
  8906. char pthread_kill ();
  8907. int
  8908. main ()
  8909. {
  8910. return pthread_kill ();
  8911. ;
  8912. return 0;
  8913. }
  8914. _ACEOF
  8915. if ac_fn_cxx_try_link "$LINENO"; then :
  8916. ac_cv_lib_pthread_pthread_kill=yes
  8917. else
  8918. ac_cv_lib_pthread_pthread_kill=no
  8919. fi
  8920. rm -f core conftest.err conftest.$ac_objext \
  8921. conftest$ac_exeext conftest.$ac_ext
  8922. LIBS=$ac_check_lib_save_LIBS
  8923. fi
  8924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
  8925. $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
  8926. if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then :
  8927. LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
  8928. # On Solaris and HP-UX, most pthread functions exist also in libc.
  8929. # Therefore pthread_in_use() needs to actually try to create a
  8930. # thread: pthread_create from libc will fail, whereas
  8931. # pthread_create will actually create a thread.
  8932. case "$host_os" in
  8933. solaris* | hpux*)
  8934. $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
  8935. esac
  8936. fi
  8937. else
  8938. # Some library is needed. Try libpthread and libc_r.
  8939. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
  8940. $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
  8941. if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then :
  8942. $as_echo_n "(cached) " >&6
  8943. else
  8944. ac_check_lib_save_LIBS=$LIBS
  8945. LIBS="-lpthread $LIBS"
  8946. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8947. /* end confdefs.h. */
  8948. /* Override any GCC internal prototype to avoid an error.
  8949. Use char because int might match the return type of a GCC
  8950. builtin and then its argument prototype would still apply. */
  8951. #ifdef __cplusplus
  8952. extern "C"
  8953. #endif
  8954. char pthread_kill ();
  8955. int
  8956. main ()
  8957. {
  8958. return pthread_kill ();
  8959. ;
  8960. return 0;
  8961. }
  8962. _ACEOF
  8963. if ac_fn_cxx_try_link "$LINENO"; then :
  8964. ac_cv_lib_pthread_pthread_kill=yes
  8965. else
  8966. ac_cv_lib_pthread_pthread_kill=no
  8967. fi
  8968. rm -f core conftest.err conftest.$ac_objext \
  8969. conftest$ac_exeext conftest.$ac_ext
  8970. LIBS=$ac_check_lib_save_LIBS
  8971. fi
  8972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
  8973. $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
  8974. if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then :
  8975. gl_have_pthread=yes
  8976. LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
  8977. LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
  8978. fi
  8979. if test -z "$gl_have_pthread"; then
  8980. # For FreeBSD 4.
  8981. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
  8982. $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
  8983. if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then :
  8984. $as_echo_n "(cached) " >&6
  8985. else
  8986. ac_check_lib_save_LIBS=$LIBS
  8987. LIBS="-lc_r $LIBS"
  8988. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8989. /* end confdefs.h. */
  8990. /* Override any GCC internal prototype to avoid an error.
  8991. Use char because int might match the return type of a GCC
  8992. builtin and then its argument prototype would still apply. */
  8993. #ifdef __cplusplus
  8994. extern "C"
  8995. #endif
  8996. char pthread_kill ();
  8997. int
  8998. main ()
  8999. {
  9000. return pthread_kill ();
  9001. ;
  9002. return 0;
  9003. }
  9004. _ACEOF
  9005. if ac_fn_cxx_try_link "$LINENO"; then :
  9006. ac_cv_lib_c_r_pthread_kill=yes
  9007. else
  9008. ac_cv_lib_c_r_pthread_kill=no
  9009. fi
  9010. rm -f core conftest.err conftest.$ac_objext \
  9011. conftest$ac_exeext conftest.$ac_ext
  9012. LIBS=$ac_check_lib_save_LIBS
  9013. fi
  9014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
  9015. $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
  9016. if test "x$ac_cv_lib_c_r_pthread_kill" = x""yes; then :
  9017. gl_have_pthread=yes
  9018. LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
  9019. LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
  9020. fi
  9021. fi
  9022. fi
  9023. if test -n "$gl_have_pthread"; then
  9024. gl_threads_api=posix
  9025. $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
  9026. if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
  9027. if test $gl_have_weak = yes; then
  9028. $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
  9029. LIBTHREAD=
  9030. LTLIBTHREAD=
  9031. fi
  9032. fi
  9033. # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
  9034. # pthread_rwlock_* functions.
  9035. ac_fn_cxx_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
  9036. "
  9037. if test "x$ac_cv_type_pthread_rwlock_t" = x""yes; then :
  9038. $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
  9039. fi
  9040. # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
  9041. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9042. /* end confdefs.h. */
  9043. #include <pthread.h>
  9044. int
  9045. main ()
  9046. {
  9047. #if __FreeBSD__ == 4
  9048. error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
  9049. #else
  9050. int x = (int)PTHREAD_MUTEX_RECURSIVE;
  9051. return !x;
  9052. #endif
  9053. ;
  9054. return 0;
  9055. }
  9056. _ACEOF
  9057. if ac_fn_cxx_try_compile "$LINENO"; then :
  9058. $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
  9059. fi
  9060. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9061. fi
  9062. fi
  9063. fi
  9064. if test -z "$gl_have_pthread"; then
  9065. if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
  9066. gl_have_solaristhread=
  9067. gl_save_LIBS="$LIBS"
  9068. LIBS="$LIBS -lthread"
  9069. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9070. /* end confdefs.h. */
  9071. #include <thread.h>
  9072. #include <synch.h>
  9073. int
  9074. main ()
  9075. {
  9076. thr_self();
  9077. ;
  9078. return 0;
  9079. }
  9080. _ACEOF
  9081. if ac_fn_cxx_try_link "$LINENO"; then :
  9082. gl_have_solaristhread=yes
  9083. fi
  9084. rm -f core conftest.err conftest.$ac_objext \
  9085. conftest$ac_exeext conftest.$ac_ext
  9086. LIBS="$gl_save_LIBS"
  9087. if test -n "$gl_have_solaristhread"; then
  9088. gl_threads_api=solaris
  9089. LIBTHREAD=-lthread
  9090. LTLIBTHREAD=-lthread
  9091. LIBMULTITHREAD="$LIBTHREAD"
  9092. LTLIBMULTITHREAD="$LTLIBTHREAD"
  9093. $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
  9094. if test $gl_have_weak = yes; then
  9095. $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
  9096. LIBTHREAD=
  9097. LTLIBTHREAD=
  9098. fi
  9099. fi
  9100. fi
  9101. fi
  9102. if test "$gl_use_threads" = pth; then
  9103. gl_save_CPPFLAGS="$CPPFLAGS"
  9104. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
  9105. $as_echo_n "checking how to link with libpth... " >&6; }
  9106. if test "${ac_cv_libpth_libs+set}" = set; then :
  9107. $as_echo_n "(cached) " >&6
  9108. else
  9109. use_additional=yes
  9110. acl_save_prefix="$prefix"
  9111. prefix="$acl_final_prefix"
  9112. acl_save_exec_prefix="$exec_prefix"
  9113. exec_prefix="$acl_final_exec_prefix"
  9114. eval additional_includedir=\"$includedir\"
  9115. eval additional_libdir=\"$libdir\"
  9116. exec_prefix="$acl_save_exec_prefix"
  9117. prefix="$acl_save_prefix"
  9118. # Check whether --with-libpth-prefix was given.
  9119. if test "${with_libpth_prefix+set}" = set; then :
  9120. withval=$with_libpth_prefix;
  9121. if test "X$withval" = "Xno"; then
  9122. use_additional=no
  9123. else
  9124. if test "X$withval" = "X"; then
  9125. acl_save_prefix="$prefix"
  9126. prefix="$acl_final_prefix"
  9127. acl_save_exec_prefix="$exec_prefix"
  9128. exec_prefix="$acl_final_exec_prefix"
  9129. eval additional_includedir=\"$includedir\"
  9130. eval additional_libdir=\"$libdir\"
  9131. exec_prefix="$acl_save_exec_prefix"
  9132. prefix="$acl_save_prefix"
  9133. else
  9134. additional_includedir="$withval/include"
  9135. additional_libdir="$withval/$acl_libdirstem"
  9136. fi
  9137. fi
  9138. fi
  9139. LIBPTH=
  9140. LTLIBPTH=
  9141. INCPTH=
  9142. LIBPTH_PREFIX=
  9143. rpathdirs=
  9144. ltrpathdirs=
  9145. names_already_handled=
  9146. names_next_round='pth '
  9147. while test -n "$names_next_round"; do
  9148. names_this_round="$names_next_round"
  9149. names_next_round=
  9150. for name in $names_this_round; do
  9151. already_handled=
  9152. for n in $names_already_handled; do
  9153. if test "$n" = "$name"; then
  9154. already_handled=yes
  9155. break
  9156. fi
  9157. done
  9158. if test -z "$already_handled"; then
  9159. names_already_handled="$names_already_handled $name"
  9160. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  9161. eval value=\"\$HAVE_LIB$uppername\"
  9162. if test -n "$value"; then
  9163. if test "$value" = yes; then
  9164. eval value=\"\$LIB$uppername\"
  9165. test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
  9166. eval value=\"\$LTLIB$uppername\"
  9167. test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
  9168. else
  9169. :
  9170. fi
  9171. else
  9172. found_dir=
  9173. found_la=
  9174. found_so=
  9175. found_a=
  9176. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  9177. if test -n "$acl_shlibext"; then
  9178. shrext=".$acl_shlibext" # typically: shrext=.so
  9179. else
  9180. shrext=
  9181. fi
  9182. if test $use_additional = yes; then
  9183. dir="$additional_libdir"
  9184. if test -n "$acl_shlibext"; then
  9185. if test -f "$dir/$libname$shrext"; then
  9186. found_dir="$dir"
  9187. found_so="$dir/$libname$shrext"
  9188. else
  9189. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  9190. ver=`(cd "$dir" && \
  9191. for f in "$libname$shrext".*; do echo "$f"; done \
  9192. | sed -e "s,^$libname$shrext\\\\.,," \
  9193. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  9194. | sed 1q ) 2>/dev/null`
  9195. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  9196. found_dir="$dir"
  9197. found_so="$dir/$libname$shrext.$ver"
  9198. fi
  9199. else
  9200. eval library_names=\"$acl_library_names_spec\"
  9201. for f in $library_names; do
  9202. if test -f "$dir/$f"; then
  9203. found_dir="$dir"
  9204. found_so="$dir/$f"
  9205. break
  9206. fi
  9207. done
  9208. fi
  9209. fi
  9210. fi
  9211. if test "X$found_dir" = "X"; then
  9212. if test -f "$dir/$libname.$acl_libext"; then
  9213. found_dir="$dir"
  9214. found_a="$dir/$libname.$acl_libext"
  9215. fi
  9216. fi
  9217. if test "X$found_dir" != "X"; then
  9218. if test -f "$dir/$libname.la"; then
  9219. found_la="$dir/$libname.la"
  9220. fi
  9221. fi
  9222. fi
  9223. if test "X$found_dir" = "X"; then
  9224. for x in $LDFLAGS $LTLIBPTH; do
  9225. acl_save_prefix="$prefix"
  9226. prefix="$acl_final_prefix"
  9227. acl_save_exec_prefix="$exec_prefix"
  9228. exec_prefix="$acl_final_exec_prefix"
  9229. eval x=\"$x\"
  9230. exec_prefix="$acl_save_exec_prefix"
  9231. prefix="$acl_save_prefix"
  9232. case "$x" in
  9233. -L*)
  9234. dir=`echo "X$x" | sed -e 's/^X-L//'`
  9235. if test -n "$acl_shlibext"; then
  9236. if test -f "$dir/$libname$shrext"; then
  9237. found_dir="$dir"
  9238. found_so="$dir/$libname$shrext"
  9239. else
  9240. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  9241. ver=`(cd "$dir" && \
  9242. for f in "$libname$shrext".*; do echo "$f"; done \
  9243. | sed -e "s,^$libname$shrext\\\\.,," \
  9244. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  9245. | sed 1q ) 2>/dev/null`
  9246. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  9247. found_dir="$dir"
  9248. found_so="$dir/$libname$shrext.$ver"
  9249. fi
  9250. else
  9251. eval library_names=\"$acl_library_names_spec\"
  9252. for f in $library_names; do
  9253. if test -f "$dir/$f"; then
  9254. found_dir="$dir"
  9255. found_so="$dir/$f"
  9256. break
  9257. fi
  9258. done
  9259. fi
  9260. fi
  9261. fi
  9262. if test "X$found_dir" = "X"; then
  9263. if test -f "$dir/$libname.$acl_libext"; then
  9264. found_dir="$dir"
  9265. found_a="$dir/$libname.$acl_libext"
  9266. fi
  9267. fi
  9268. if test "X$found_dir" != "X"; then
  9269. if test -f "$dir/$libname.la"; then
  9270. found_la="$dir/$libname.la"
  9271. fi
  9272. fi
  9273. ;;
  9274. esac
  9275. if test "X$found_dir" != "X"; then
  9276. break
  9277. fi
  9278. done
  9279. fi
  9280. if test "X$found_dir" != "X"; then
  9281. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
  9282. if test "X$found_so" != "X"; then
  9283. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  9284. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  9285. else
  9286. haveit=
  9287. for x in $ltrpathdirs; do
  9288. if test "X$x" = "X$found_dir"; then
  9289. haveit=yes
  9290. break
  9291. fi
  9292. done
  9293. if test -z "$haveit"; then
  9294. ltrpathdirs="$ltrpathdirs $found_dir"
  9295. fi
  9296. if test "$acl_hardcode_direct" = yes; then
  9297. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  9298. else
  9299. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  9300. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  9301. haveit=
  9302. for x in $rpathdirs; do
  9303. if test "X$x" = "X$found_dir"; then
  9304. haveit=yes
  9305. break
  9306. fi
  9307. done
  9308. if test -z "$haveit"; then
  9309. rpathdirs="$rpathdirs $found_dir"
  9310. fi
  9311. else
  9312. haveit=
  9313. for x in $LDFLAGS $LIBPTH; do
  9314. acl_save_prefix="$prefix"
  9315. prefix="$acl_final_prefix"
  9316. acl_save_exec_prefix="$exec_prefix"
  9317. exec_prefix="$acl_final_exec_prefix"
  9318. eval x=\"$x\"
  9319. exec_prefix="$acl_save_exec_prefix"
  9320. prefix="$acl_save_prefix"
  9321. if test "X$x" = "X-L$found_dir"; then
  9322. haveit=yes
  9323. break
  9324. fi
  9325. done
  9326. if test -z "$haveit"; then
  9327. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
  9328. fi
  9329. if test "$acl_hardcode_minus_L" != no; then
  9330. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  9331. else
  9332. LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
  9333. fi
  9334. fi
  9335. fi
  9336. fi
  9337. else
  9338. if test "X$found_a" != "X"; then
  9339. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
  9340. else
  9341. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
  9342. fi
  9343. fi
  9344. additional_includedir=
  9345. case "$found_dir" in
  9346. */$acl_libdirstem | */$acl_libdirstem/)
  9347. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  9348. LIBPTH_PREFIX="$basedir"
  9349. additional_includedir="$basedir/include"
  9350. ;;
  9351. esac
  9352. if test "X$additional_includedir" != "X"; then
  9353. if test "X$additional_includedir" != "X/usr/include"; then
  9354. haveit=
  9355. if test "X$additional_includedir" = "X/usr/local/include"; then
  9356. if test -n "$GCC"; then
  9357. case $host_os in
  9358. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  9359. esac
  9360. fi
  9361. fi
  9362. if test -z "$haveit"; then
  9363. for x in $CPPFLAGS $INCPTH; do
  9364. acl_save_prefix="$prefix"
  9365. prefix="$acl_final_prefix"
  9366. acl_save_exec_prefix="$exec_prefix"
  9367. exec_prefix="$acl_final_exec_prefix"
  9368. eval x=\"$x\"
  9369. exec_prefix="$acl_save_exec_prefix"
  9370. prefix="$acl_save_prefix"
  9371. if test "X$x" = "X-I$additional_includedir"; then
  9372. haveit=yes
  9373. break
  9374. fi
  9375. done
  9376. if test -z "$haveit"; then
  9377. if test -d "$additional_includedir"; then
  9378. INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
  9379. fi
  9380. fi
  9381. fi
  9382. fi
  9383. fi
  9384. if test -n "$found_la"; then
  9385. save_libdir="$libdir"
  9386. case "$found_la" in
  9387. */* | *\\*) . "$found_la" ;;
  9388. *) . "./$found_la" ;;
  9389. esac
  9390. libdir="$save_libdir"
  9391. for dep in $dependency_libs; do
  9392. case "$dep" in
  9393. -L*)
  9394. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  9395. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  9396. haveit=
  9397. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  9398. if test -n "$GCC"; then
  9399. case $host_os in
  9400. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  9401. esac
  9402. fi
  9403. fi
  9404. if test -z "$haveit"; then
  9405. haveit=
  9406. for x in $LDFLAGS $LIBPTH; do
  9407. acl_save_prefix="$prefix"
  9408. prefix="$acl_final_prefix"
  9409. acl_save_exec_prefix="$exec_prefix"
  9410. exec_prefix="$acl_final_exec_prefix"
  9411. eval x=\"$x\"
  9412. exec_prefix="$acl_save_exec_prefix"
  9413. prefix="$acl_save_prefix"
  9414. if test "X$x" = "X-L$additional_libdir"; then
  9415. haveit=yes
  9416. break
  9417. fi
  9418. done
  9419. if test -z "$haveit"; then
  9420. if test -d "$additional_libdir"; then
  9421. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
  9422. fi
  9423. fi
  9424. haveit=
  9425. for x in $LDFLAGS $LTLIBPTH; do
  9426. acl_save_prefix="$prefix"
  9427. prefix="$acl_final_prefix"
  9428. acl_save_exec_prefix="$exec_prefix"
  9429. exec_prefix="$acl_final_exec_prefix"
  9430. eval x=\"$x\"
  9431. exec_prefix="$acl_save_exec_prefix"
  9432. prefix="$acl_save_prefix"
  9433. if test "X$x" = "X-L$additional_libdir"; then
  9434. haveit=yes
  9435. break
  9436. fi
  9437. done
  9438. if test -z "$haveit"; then
  9439. if test -d "$additional_libdir"; then
  9440. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
  9441. fi
  9442. fi
  9443. fi
  9444. fi
  9445. ;;
  9446. -R*)
  9447. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  9448. if test "$enable_rpath" != no; then
  9449. haveit=
  9450. for x in $rpathdirs; do
  9451. if test "X$x" = "X$dir"; then
  9452. haveit=yes
  9453. break
  9454. fi
  9455. done
  9456. if test -z "$haveit"; then
  9457. rpathdirs="$rpathdirs $dir"
  9458. fi
  9459. haveit=
  9460. for x in $ltrpathdirs; do
  9461. if test "X$x" = "X$dir"; then
  9462. haveit=yes
  9463. break
  9464. fi
  9465. done
  9466. if test -z "$haveit"; then
  9467. ltrpathdirs="$ltrpathdirs $dir"
  9468. fi
  9469. fi
  9470. ;;
  9471. -l*)
  9472. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  9473. ;;
  9474. *.la)
  9475. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  9476. ;;
  9477. *)
  9478. LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
  9479. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
  9480. ;;
  9481. esac
  9482. done
  9483. fi
  9484. else
  9485. LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
  9486. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
  9487. fi
  9488. fi
  9489. fi
  9490. done
  9491. done
  9492. if test "X$rpathdirs" != "X"; then
  9493. if test -n "$acl_hardcode_libdir_separator"; then
  9494. alldirs=
  9495. for found_dir in $rpathdirs; do
  9496. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  9497. done
  9498. acl_save_libdir="$libdir"
  9499. libdir="$alldirs"
  9500. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  9501. libdir="$acl_save_libdir"
  9502. LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
  9503. else
  9504. for found_dir in $rpathdirs; do
  9505. acl_save_libdir="$libdir"
  9506. libdir="$found_dir"
  9507. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  9508. libdir="$acl_save_libdir"
  9509. LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
  9510. done
  9511. fi
  9512. fi
  9513. if test "X$ltrpathdirs" != "X"; then
  9514. for found_dir in $ltrpathdirs; do
  9515. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
  9516. done
  9517. fi
  9518. ac_cv_libpth_libs="$LIBPTH"
  9519. ac_cv_libpth_ltlibs="$LTLIBPTH"
  9520. ac_cv_libpth_cppflags="$INCPTH"
  9521. ac_cv_libpth_prefix="$LIBPTH_PREFIX"
  9522. fi
  9523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
  9524. $as_echo "$ac_cv_libpth_libs" >&6; }
  9525. LIBPTH="$ac_cv_libpth_libs"
  9526. LTLIBPTH="$ac_cv_libpth_ltlibs"
  9527. INCPTH="$ac_cv_libpth_cppflags"
  9528. LIBPTH_PREFIX="$ac_cv_libpth_prefix"
  9529. for element in $INCPTH; do
  9530. haveit=
  9531. for x in $CPPFLAGS; do
  9532. acl_save_prefix="$prefix"
  9533. prefix="$acl_final_prefix"
  9534. acl_save_exec_prefix="$exec_prefix"
  9535. exec_prefix="$acl_final_exec_prefix"
  9536. eval x=\"$x\"
  9537. exec_prefix="$acl_save_exec_prefix"
  9538. prefix="$acl_save_prefix"
  9539. if test "X$x" = "X$element"; then
  9540. haveit=yes
  9541. break
  9542. fi
  9543. done
  9544. if test -z "$haveit"; then
  9545. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  9546. fi
  9547. done
  9548. HAVE_LIBPTH=yes
  9549. gl_have_pth=
  9550. gl_save_LIBS="$LIBS"
  9551. LIBS="$LIBS -lpth"
  9552. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9553. /* end confdefs.h. */
  9554. #include <pth.h>
  9555. int
  9556. main ()
  9557. {
  9558. pth_self();
  9559. ;
  9560. return 0;
  9561. }
  9562. _ACEOF
  9563. if ac_fn_cxx_try_link "$LINENO"; then :
  9564. gl_have_pth=yes
  9565. fi
  9566. rm -f core conftest.err conftest.$ac_objext \
  9567. conftest$ac_exeext conftest.$ac_ext
  9568. LIBS="$gl_save_LIBS"
  9569. if test -n "$gl_have_pth"; then
  9570. gl_threads_api=pth
  9571. LIBTHREAD="$LIBPTH"
  9572. LTLIBTHREAD="$LTLIBPTH"
  9573. LIBMULTITHREAD="$LIBTHREAD"
  9574. LTLIBMULTITHREAD="$LTLIBTHREAD"
  9575. $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
  9576. if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
  9577. if test $gl_have_weak = yes; then
  9578. $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
  9579. LIBTHREAD=
  9580. LTLIBTHREAD=
  9581. fi
  9582. fi
  9583. else
  9584. CPPFLAGS="$gl_save_CPPFLAGS"
  9585. fi
  9586. fi
  9587. if test -z "$gl_have_pthread"; then
  9588. if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
  9589. if { case "$host_os" in
  9590. mingw*) true;;
  9591. *) false;;
  9592. esac
  9593. }; then
  9594. gl_threads_api=win32
  9595. $as_echo "#define USE_WIN32_THREADS 1" >>confdefs.h
  9596. fi
  9597. fi
  9598. fi
  9599. fi
  9600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
  9601. $as_echo_n "checking for multithread API to use... " >&6; }
  9602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
  9603. $as_echo "$gl_threads_api" >&6; }
  9604. use_additional=yes
  9605. acl_save_prefix="$prefix"
  9606. prefix="$acl_final_prefix"
  9607. acl_save_exec_prefix="$exec_prefix"
  9608. exec_prefix="$acl_final_exec_prefix"
  9609. eval additional_includedir=\"$includedir\"
  9610. eval additional_libdir=\"$libdir\"
  9611. exec_prefix="$acl_save_exec_prefix"
  9612. prefix="$acl_save_prefix"
  9613. # Check whether --with-libiconv-prefix was given.
  9614. if test "${with_libiconv_prefix+set}" = set; then :
  9615. withval=$with_libiconv_prefix;
  9616. if test "X$withval" = "Xno"; then
  9617. use_additional=no
  9618. else
  9619. if test "X$withval" = "X"; then
  9620. acl_save_prefix="$prefix"
  9621. prefix="$acl_final_prefix"
  9622. acl_save_exec_prefix="$exec_prefix"
  9623. exec_prefix="$acl_final_exec_prefix"
  9624. eval additional_includedir=\"$includedir\"
  9625. eval additional_libdir=\"$libdir\"
  9626. exec_prefix="$acl_save_exec_prefix"
  9627. prefix="$acl_save_prefix"
  9628. else
  9629. additional_includedir="$withval/include"
  9630. additional_libdir="$withval/$acl_libdirstem"
  9631. fi
  9632. fi
  9633. fi
  9634. LIBICONV=
  9635. LTLIBICONV=
  9636. INCICONV=
  9637. LIBICONV_PREFIX=
  9638. rpathdirs=
  9639. ltrpathdirs=
  9640. names_already_handled=
  9641. names_next_round='iconv '
  9642. while test -n "$names_next_round"; do
  9643. names_this_round="$names_next_round"
  9644. names_next_round=
  9645. for name in $names_this_round; do
  9646. already_handled=
  9647. for n in $names_already_handled; do
  9648. if test "$n" = "$name"; then
  9649. already_handled=yes
  9650. break
  9651. fi
  9652. done
  9653. if test -z "$already_handled"; then
  9654. names_already_handled="$names_already_handled $name"
  9655. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  9656. eval value=\"\$HAVE_LIB$uppername\"
  9657. if test -n "$value"; then
  9658. if test "$value" = yes; then
  9659. eval value=\"\$LIB$uppername\"
  9660. test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
  9661. eval value=\"\$LTLIB$uppername\"
  9662. test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
  9663. else
  9664. :
  9665. fi
  9666. else
  9667. found_dir=
  9668. found_la=
  9669. found_so=
  9670. found_a=
  9671. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  9672. if test -n "$acl_shlibext"; then
  9673. shrext=".$acl_shlibext" # typically: shrext=.so
  9674. else
  9675. shrext=
  9676. fi
  9677. if test $use_additional = yes; then
  9678. dir="$additional_libdir"
  9679. if test -n "$acl_shlibext"; then
  9680. if test -f "$dir/$libname$shrext"; then
  9681. found_dir="$dir"
  9682. found_so="$dir/$libname$shrext"
  9683. else
  9684. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  9685. ver=`(cd "$dir" && \
  9686. for f in "$libname$shrext".*; do echo "$f"; done \
  9687. | sed -e "s,^$libname$shrext\\\\.,," \
  9688. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  9689. | sed 1q ) 2>/dev/null`
  9690. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  9691. found_dir="$dir"
  9692. found_so="$dir/$libname$shrext.$ver"
  9693. fi
  9694. else
  9695. eval library_names=\"$acl_library_names_spec\"
  9696. for f in $library_names; do
  9697. if test -f "$dir/$f"; then
  9698. found_dir="$dir"
  9699. found_so="$dir/$f"
  9700. break
  9701. fi
  9702. done
  9703. fi
  9704. fi
  9705. fi
  9706. if test "X$found_dir" = "X"; then
  9707. if test -f "$dir/$libname.$acl_libext"; then
  9708. found_dir="$dir"
  9709. found_a="$dir/$libname.$acl_libext"
  9710. fi
  9711. fi
  9712. if test "X$found_dir" != "X"; then
  9713. if test -f "$dir/$libname.la"; then
  9714. found_la="$dir/$libname.la"
  9715. fi
  9716. fi
  9717. fi
  9718. if test "X$found_dir" = "X"; then
  9719. for x in $LDFLAGS $LTLIBICONV; do
  9720. acl_save_prefix="$prefix"
  9721. prefix="$acl_final_prefix"
  9722. acl_save_exec_prefix="$exec_prefix"
  9723. exec_prefix="$acl_final_exec_prefix"
  9724. eval x=\"$x\"
  9725. exec_prefix="$acl_save_exec_prefix"
  9726. prefix="$acl_save_prefix"
  9727. case "$x" in
  9728. -L*)
  9729. dir=`echo "X$x" | sed -e 's/^X-L//'`
  9730. if test -n "$acl_shlibext"; then
  9731. if test -f "$dir/$libname$shrext"; then
  9732. found_dir="$dir"
  9733. found_so="$dir/$libname$shrext"
  9734. else
  9735. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  9736. ver=`(cd "$dir" && \
  9737. for f in "$libname$shrext".*; do echo "$f"; done \
  9738. | sed -e "s,^$libname$shrext\\\\.,," \
  9739. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  9740. | sed 1q ) 2>/dev/null`
  9741. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  9742. found_dir="$dir"
  9743. found_so="$dir/$libname$shrext.$ver"
  9744. fi
  9745. else
  9746. eval library_names=\"$acl_library_names_spec\"
  9747. for f in $library_names; do
  9748. if test -f "$dir/$f"; then
  9749. found_dir="$dir"
  9750. found_so="$dir/$f"
  9751. break
  9752. fi
  9753. done
  9754. fi
  9755. fi
  9756. fi
  9757. if test "X$found_dir" = "X"; then
  9758. if test -f "$dir/$libname.$acl_libext"; then
  9759. found_dir="$dir"
  9760. found_a="$dir/$libname.$acl_libext"
  9761. fi
  9762. fi
  9763. if test "X$found_dir" != "X"; then
  9764. if test -f "$dir/$libname.la"; then
  9765. found_la="$dir/$libname.la"
  9766. fi
  9767. fi
  9768. ;;
  9769. esac
  9770. if test "X$found_dir" != "X"; then
  9771. break
  9772. fi
  9773. done
  9774. fi
  9775. if test "X$found_dir" != "X"; then
  9776. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
  9777. if test "X$found_so" != "X"; then
  9778. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  9779. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  9780. else
  9781. haveit=
  9782. for x in $ltrpathdirs; do
  9783. if test "X$x" = "X$found_dir"; then
  9784. haveit=yes
  9785. break
  9786. fi
  9787. done
  9788. if test -z "$haveit"; then
  9789. ltrpathdirs="$ltrpathdirs $found_dir"
  9790. fi
  9791. if test "$acl_hardcode_direct" = yes; then
  9792. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  9793. else
  9794. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  9795. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  9796. haveit=
  9797. for x in $rpathdirs; do
  9798. if test "X$x" = "X$found_dir"; then
  9799. haveit=yes
  9800. break
  9801. fi
  9802. done
  9803. if test -z "$haveit"; then
  9804. rpathdirs="$rpathdirs $found_dir"
  9805. fi
  9806. else
  9807. haveit=
  9808. for x in $LDFLAGS $LIBICONV; do
  9809. acl_save_prefix="$prefix"
  9810. prefix="$acl_final_prefix"
  9811. acl_save_exec_prefix="$exec_prefix"
  9812. exec_prefix="$acl_final_exec_prefix"
  9813. eval x=\"$x\"
  9814. exec_prefix="$acl_save_exec_prefix"
  9815. prefix="$acl_save_prefix"
  9816. if test "X$x" = "X-L$found_dir"; then
  9817. haveit=yes
  9818. break
  9819. fi
  9820. done
  9821. if test -z "$haveit"; then
  9822. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
  9823. fi
  9824. if test "$acl_hardcode_minus_L" != no; then
  9825. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  9826. else
  9827. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  9828. fi
  9829. fi
  9830. fi
  9831. fi
  9832. else
  9833. if test "X$found_a" != "X"; then
  9834. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
  9835. else
  9836. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
  9837. fi
  9838. fi
  9839. additional_includedir=
  9840. case "$found_dir" in
  9841. */$acl_libdirstem | */$acl_libdirstem/)
  9842. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  9843. LIBICONV_PREFIX="$basedir"
  9844. additional_includedir="$basedir/include"
  9845. ;;
  9846. esac
  9847. if test "X$additional_includedir" != "X"; then
  9848. if test "X$additional_includedir" != "X/usr/include"; then
  9849. haveit=
  9850. if test "X$additional_includedir" = "X/usr/local/include"; then
  9851. if test -n "$GCC"; then
  9852. case $host_os in
  9853. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  9854. esac
  9855. fi
  9856. fi
  9857. if test -z "$haveit"; then
  9858. for x in $CPPFLAGS $INCICONV; do
  9859. acl_save_prefix="$prefix"
  9860. prefix="$acl_final_prefix"
  9861. acl_save_exec_prefix="$exec_prefix"
  9862. exec_prefix="$acl_final_exec_prefix"
  9863. eval x=\"$x\"
  9864. exec_prefix="$acl_save_exec_prefix"
  9865. prefix="$acl_save_prefix"
  9866. if test "X$x" = "X-I$additional_includedir"; then
  9867. haveit=yes
  9868. break
  9869. fi
  9870. done
  9871. if test -z "$haveit"; then
  9872. if test -d "$additional_includedir"; then
  9873. INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
  9874. fi
  9875. fi
  9876. fi
  9877. fi
  9878. fi
  9879. if test -n "$found_la"; then
  9880. save_libdir="$libdir"
  9881. case "$found_la" in
  9882. */* | *\\*) . "$found_la" ;;
  9883. *) . "./$found_la" ;;
  9884. esac
  9885. libdir="$save_libdir"
  9886. for dep in $dependency_libs; do
  9887. case "$dep" in
  9888. -L*)
  9889. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  9890. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  9891. haveit=
  9892. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  9893. if test -n "$GCC"; then
  9894. case $host_os in
  9895. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  9896. esac
  9897. fi
  9898. fi
  9899. if test -z "$haveit"; then
  9900. haveit=
  9901. for x in $LDFLAGS $LIBICONV; do
  9902. acl_save_prefix="$prefix"
  9903. prefix="$acl_final_prefix"
  9904. acl_save_exec_prefix="$exec_prefix"
  9905. exec_prefix="$acl_final_exec_prefix"
  9906. eval x=\"$x\"
  9907. exec_prefix="$acl_save_exec_prefix"
  9908. prefix="$acl_save_prefix"
  9909. if test "X$x" = "X-L$additional_libdir"; then
  9910. haveit=yes
  9911. break
  9912. fi
  9913. done
  9914. if test -z "$haveit"; then
  9915. if test -d "$additional_libdir"; then
  9916. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
  9917. fi
  9918. fi
  9919. haveit=
  9920. for x in $LDFLAGS $LTLIBICONV; do
  9921. acl_save_prefix="$prefix"
  9922. prefix="$acl_final_prefix"
  9923. acl_save_exec_prefix="$exec_prefix"
  9924. exec_prefix="$acl_final_exec_prefix"
  9925. eval x=\"$x\"
  9926. exec_prefix="$acl_save_exec_prefix"
  9927. prefix="$acl_save_prefix"
  9928. if test "X$x" = "X-L$additional_libdir"; then
  9929. haveit=yes
  9930. break
  9931. fi
  9932. done
  9933. if test -z "$haveit"; then
  9934. if test -d "$additional_libdir"; then
  9935. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
  9936. fi
  9937. fi
  9938. fi
  9939. fi
  9940. ;;
  9941. -R*)
  9942. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  9943. if test "$enable_rpath" != no; then
  9944. haveit=
  9945. for x in $rpathdirs; do
  9946. if test "X$x" = "X$dir"; then
  9947. haveit=yes
  9948. break
  9949. fi
  9950. done
  9951. if test -z "$haveit"; then
  9952. rpathdirs="$rpathdirs $dir"
  9953. fi
  9954. haveit=
  9955. for x in $ltrpathdirs; do
  9956. if test "X$x" = "X$dir"; then
  9957. haveit=yes
  9958. break
  9959. fi
  9960. done
  9961. if test -z "$haveit"; then
  9962. ltrpathdirs="$ltrpathdirs $dir"
  9963. fi
  9964. fi
  9965. ;;
  9966. -l*)
  9967. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  9968. ;;
  9969. *.la)
  9970. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  9971. ;;
  9972. *)
  9973. LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
  9974. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
  9975. ;;
  9976. esac
  9977. done
  9978. fi
  9979. else
  9980. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  9981. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
  9982. fi
  9983. fi
  9984. fi
  9985. done
  9986. done
  9987. if test "X$rpathdirs" != "X"; then
  9988. if test -n "$acl_hardcode_libdir_separator"; then
  9989. alldirs=
  9990. for found_dir in $rpathdirs; do
  9991. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  9992. done
  9993. acl_save_libdir="$libdir"
  9994. libdir="$alldirs"
  9995. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  9996. libdir="$acl_save_libdir"
  9997. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  9998. else
  9999. for found_dir in $rpathdirs; do
  10000. acl_save_libdir="$libdir"
  10001. libdir="$found_dir"
  10002. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  10003. libdir="$acl_save_libdir"
  10004. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  10005. done
  10006. fi
  10007. fi
  10008. if test "X$ltrpathdirs" != "X"; then
  10009. for found_dir in $ltrpathdirs; do
  10010. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
  10011. done
  10012. fi
  10013. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10014. /* end confdefs.h. */
  10015. int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
  10016. int
  10017. main ()
  10018. {
  10019. ;
  10020. return 0;
  10021. }
  10022. _ACEOF
  10023. if ac_fn_cxx_try_link "$LINENO"; then :
  10024. $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
  10025. fi
  10026. rm -f core conftest.err conftest.$ac_objext \
  10027. conftest$ac_exeext conftest.$ac_ext
  10028. for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
  10029. do :
  10030. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10031. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  10032. eval as_val=\$$as_ac_Header
  10033. if test "x$as_val" = x""yes; then :
  10034. cat >>confdefs.h <<_ACEOF
  10035. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10036. _ACEOF
  10037. fi
  10038. done
  10039. for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
  10040. stpcpy strcasecmp strdup strtoul tsearch argz_count argz_stringify \
  10041. argz_next __fsetlocking
  10042. do :
  10043. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10044. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  10045. eval as_val=\$$as_ac_var
  10046. if test "x$as_val" = x""yes; then :
  10047. cat >>confdefs.h <<_ACEOF
  10048. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10049. _ACEOF
  10050. fi
  10051. done
  10052. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
  10053. $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
  10054. if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then :
  10055. $as_echo_n "(cached) " >&6
  10056. else
  10057. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10058. /* end confdefs.h. */
  10059. #include <stdio.h>
  10060. int
  10061. main ()
  10062. {
  10063. #ifndef feof_unlocked
  10064. char *p = (char *) feof_unlocked;
  10065. #endif
  10066. ;
  10067. return 0;
  10068. }
  10069. _ACEOF
  10070. if ac_fn_cxx_try_compile "$LINENO"; then :
  10071. ac_cv_have_decl_feof_unlocked=yes
  10072. else
  10073. ac_cv_have_decl_feof_unlocked=no
  10074. fi
  10075. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10076. fi
  10077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
  10078. $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
  10079. if test $ac_cv_have_decl_feof_unlocked = yes; then
  10080. gt_value=1
  10081. else
  10082. gt_value=0
  10083. fi
  10084. cat >>confdefs.h <<_ACEOF
  10085. #define HAVE_DECL_FEOF_UNLOCKED $gt_value
  10086. _ACEOF
  10087. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
  10088. $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
  10089. if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then :
  10090. $as_echo_n "(cached) " >&6
  10091. else
  10092. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10093. /* end confdefs.h. */
  10094. #include <stdio.h>
  10095. int
  10096. main ()
  10097. {
  10098. #ifndef fgets_unlocked
  10099. char *p = (char *) fgets_unlocked;
  10100. #endif
  10101. ;
  10102. return 0;
  10103. }
  10104. _ACEOF
  10105. if ac_fn_cxx_try_compile "$LINENO"; then :
  10106. ac_cv_have_decl_fgets_unlocked=yes
  10107. else
  10108. ac_cv_have_decl_fgets_unlocked=no
  10109. fi
  10110. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10111. fi
  10112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
  10113. $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
  10114. if test $ac_cv_have_decl_fgets_unlocked = yes; then
  10115. gt_value=1
  10116. else
  10117. gt_value=0
  10118. fi
  10119. cat >>confdefs.h <<_ACEOF
  10120. #define HAVE_DECL_FGETS_UNLOCKED $gt_value
  10121. _ACEOF
  10122. am_save_CPPFLAGS="$CPPFLAGS"
  10123. for element in $INCICONV; do
  10124. haveit=
  10125. for x in $CPPFLAGS; do
  10126. acl_save_prefix="$prefix"
  10127. prefix="$acl_final_prefix"
  10128. acl_save_exec_prefix="$exec_prefix"
  10129. exec_prefix="$acl_final_exec_prefix"
  10130. eval x=\"$x\"
  10131. exec_prefix="$acl_save_exec_prefix"
  10132. prefix="$acl_save_prefix"
  10133. if test "X$x" = "X$element"; then
  10134. haveit=yes
  10135. break
  10136. fi
  10137. done
  10138. if test -z "$haveit"; then
  10139. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  10140. fi
  10141. done
  10142. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
  10143. $as_echo_n "checking for iconv... " >&6; }
  10144. if test "${am_cv_func_iconv+set}" = set; then :
  10145. $as_echo_n "(cached) " >&6
  10146. else
  10147. am_cv_func_iconv="no, consider installing GNU libiconv"
  10148. am_cv_lib_iconv=no
  10149. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10150. /* end confdefs.h. */
  10151. #include <stdlib.h>
  10152. #include <iconv.h>
  10153. int
  10154. main ()
  10155. {
  10156. iconv_t cd = iconv_open("","");
  10157. iconv(cd,NULL,NULL,NULL,NULL);
  10158. iconv_close(cd);
  10159. ;
  10160. return 0;
  10161. }
  10162. _ACEOF
  10163. if ac_fn_cxx_try_link "$LINENO"; then :
  10164. am_cv_func_iconv=yes
  10165. fi
  10166. rm -f core conftest.err conftest.$ac_objext \
  10167. conftest$ac_exeext conftest.$ac_ext
  10168. if test "$am_cv_func_iconv" != yes; then
  10169. am_save_LIBS="$LIBS"
  10170. LIBS="$LIBS $LIBICONV"
  10171. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10172. /* end confdefs.h. */
  10173. #include <stdlib.h>
  10174. #include <iconv.h>
  10175. int
  10176. main ()
  10177. {
  10178. iconv_t cd = iconv_open("","");
  10179. iconv(cd,NULL,NULL,NULL,NULL);
  10180. iconv_close(cd);
  10181. ;
  10182. return 0;
  10183. }
  10184. _ACEOF
  10185. if ac_fn_cxx_try_link "$LINENO"; then :
  10186. am_cv_lib_iconv=yes
  10187. am_cv_func_iconv=yes
  10188. fi
  10189. rm -f core conftest.err conftest.$ac_objext \
  10190. conftest$ac_exeext conftest.$ac_ext
  10191. LIBS="$am_save_LIBS"
  10192. fi
  10193. fi
  10194. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
  10195. $as_echo "$am_cv_func_iconv" >&6; }
  10196. if test "$am_cv_func_iconv" = yes; then
  10197. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
  10198. $as_echo_n "checking for working iconv... " >&6; }
  10199. if test "${am_cv_func_iconv_works+set}" = set; then :
  10200. $as_echo_n "(cached) " >&6
  10201. else
  10202. am_save_LIBS="$LIBS"
  10203. if test $am_cv_lib_iconv = yes; then
  10204. LIBS="$LIBS $LIBICONV"
  10205. fi
  10206. if test "$cross_compiling" = yes; then :
  10207. case "$host_os" in
  10208. aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
  10209. *) am_cv_func_iconv_works="guessing yes" ;;
  10210. esac
  10211. else
  10212. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10213. /* end confdefs.h. */
  10214. #include <iconv.h>
  10215. #include <string.h>
  10216. int main ()
  10217. {
  10218. /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
  10219. returns. */
  10220. {
  10221. iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
  10222. if (cd_utf8_to_88591 != (iconv_t)(-1))
  10223. {
  10224. static const char input[] = "\342\202\254"; /* EURO SIGN */
  10225. char buf[10];
  10226. const char *inptr = input;
  10227. size_t inbytesleft = strlen (input);
  10228. char *outptr = buf;
  10229. size_t outbytesleft = sizeof (buf);
  10230. size_t res = iconv (cd_utf8_to_88591,
  10231. (char **) &inptr, &inbytesleft,
  10232. &outptr, &outbytesleft);
  10233. if (res == 0)
  10234. return 1;
  10235. }
  10236. }
  10237. #if 0 /* This bug could be worked around by the caller. */
  10238. /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
  10239. {
  10240. iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
  10241. if (cd_88591_to_utf8 != (iconv_t)(-1))
  10242. {
  10243. static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
  10244. char buf[50];
  10245. const char *inptr = input;
  10246. size_t inbytesleft = strlen (input);
  10247. char *outptr = buf;
  10248. size_t outbytesleft = sizeof (buf);
  10249. size_t res = iconv (cd_88591_to_utf8,
  10250. (char **) &inptr, &inbytesleft,
  10251. &outptr, &outbytesleft);
  10252. if ((int)res > 0)
  10253. return 1;
  10254. }
  10255. }
  10256. #endif
  10257. /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
  10258. provided. */
  10259. if (/* Try standardized names. */
  10260. iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
  10261. /* Try IRIX, OSF/1 names. */
  10262. && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
  10263. /* Try AIX names. */
  10264. && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
  10265. /* Try HP-UX names. */
  10266. && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
  10267. return 1;
  10268. return 0;
  10269. }
  10270. _ACEOF
  10271. if ac_fn_cxx_try_run "$LINENO"; then :
  10272. am_cv_func_iconv_works=yes
  10273. else
  10274. am_cv_func_iconv_works=no
  10275. fi
  10276. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10277. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10278. fi
  10279. LIBS="$am_save_LIBS"
  10280. fi
  10281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
  10282. $as_echo "$am_cv_func_iconv_works" >&6; }
  10283. case "$am_cv_func_iconv_works" in
  10284. *no) am_func_iconv=no am_cv_lib_iconv=no ;;
  10285. *) am_func_iconv=yes ;;
  10286. esac
  10287. else
  10288. am_func_iconv=no am_cv_lib_iconv=no
  10289. fi
  10290. if test "$am_func_iconv" = yes; then
  10291. $as_echo "#define HAVE_ICONV 1" >>confdefs.h
  10292. fi
  10293. if test "$am_cv_lib_iconv" = yes; then
  10294. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
  10295. $as_echo_n "checking how to link with libiconv... " >&6; }
  10296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
  10297. $as_echo "$LIBICONV" >&6; }
  10298. else
  10299. CPPFLAGS="$am_save_CPPFLAGS"
  10300. LIBICONV=
  10301. LTLIBICONV=
  10302. fi
  10303. if test "$am_cv_func_iconv" = yes; then
  10304. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
  10305. $as_echo_n "checking for iconv declaration... " >&6; }
  10306. if test "${am_cv_proto_iconv+set}" = set; then :
  10307. $as_echo_n "(cached) " >&6
  10308. else
  10309. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10310. /* end confdefs.h. */
  10311. #include <stdlib.h>
  10312. #include <iconv.h>
  10313. extern
  10314. #ifdef __cplusplus
  10315. "C"
  10316. #endif
  10317. #if defined(__STDC__) || defined(__cplusplus)
  10318. size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  10319. #else
  10320. size_t iconv();
  10321. #endif
  10322. int
  10323. main ()
  10324. {
  10325. ;
  10326. return 0;
  10327. }
  10328. _ACEOF
  10329. if ac_fn_cxx_try_compile "$LINENO"; then :
  10330. am_cv_proto_iconv_arg1=""
  10331. else
  10332. am_cv_proto_iconv_arg1="const"
  10333. fi
  10334. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10335. 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);"
  10336. fi
  10337. am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  10338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
  10339. }$am_cv_proto_iconv" >&5
  10340. $as_echo "${ac_t:-
  10341. }$am_cv_proto_iconv" >&6; }
  10342. cat >>confdefs.h <<_ACEOF
  10343. #define ICONV_CONST $am_cv_proto_iconv_arg1
  10344. _ACEOF
  10345. fi
  10346. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NL_LOCALE_NAME macro" >&5
  10347. $as_echo_n "checking for NL_LOCALE_NAME macro... " >&6; }
  10348. if test "${gt_cv_nl_locale_name+set}" = set; then :
  10349. $as_echo_n "(cached) " >&6
  10350. else
  10351. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10352. /* end confdefs.h. */
  10353. #include <langinfo.h>
  10354. #include <locale.h>
  10355. int
  10356. main ()
  10357. {
  10358. char* cs = nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES));
  10359. return !cs;
  10360. ;
  10361. return 0;
  10362. }
  10363. _ACEOF
  10364. if ac_fn_cxx_try_link "$LINENO"; then :
  10365. gt_cv_nl_locale_name=yes
  10366. else
  10367. gt_cv_nl_locale_name=no
  10368. fi
  10369. rm -f core conftest.err conftest.$ac_objext \
  10370. conftest$ac_exeext conftest.$ac_ext
  10371. fi
  10372. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_nl_locale_name" >&5
  10373. $as_echo "$gt_cv_nl_locale_name" >&6; }
  10374. if test $gt_cv_nl_locale_name = yes; then
  10375. $as_echo "#define HAVE_NL_LOCALE_NAME 1" >>confdefs.h
  10376. fi
  10377. for ac_prog in bison
  10378. do
  10379. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10380. set dummy $ac_prog; ac_word=$2
  10381. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10382. $as_echo_n "checking for $ac_word... " >&6; }
  10383. if test "${ac_cv_prog_INTLBISON+set}" = set; then :
  10384. $as_echo_n "(cached) " >&6
  10385. else
  10386. if test -n "$INTLBISON"; then
  10387. ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
  10388. else
  10389. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10390. for as_dir in $PATH
  10391. do
  10392. IFS=$as_save_IFS
  10393. test -z "$as_dir" && as_dir=.
  10394. for ac_exec_ext in '' $ac_executable_extensions; do
  10395. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10396. ac_cv_prog_INTLBISON="$ac_prog"
  10397. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10398. break 2
  10399. fi
  10400. done
  10401. done
  10402. IFS=$as_save_IFS
  10403. fi
  10404. fi
  10405. INTLBISON=$ac_cv_prog_INTLBISON
  10406. if test -n "$INTLBISON"; then
  10407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
  10408. $as_echo "$INTLBISON" >&6; }
  10409. else
  10410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10411. $as_echo "no" >&6; }
  10412. fi
  10413. test -n "$INTLBISON" && break
  10414. done
  10415. if test -z "$INTLBISON"; then
  10416. ac_verc_fail=yes
  10417. else
  10418. { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
  10419. $as_echo_n "checking version of bison... " >&6; }
  10420. ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
  10421. case $ac_prog_version in
  10422. '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
  10423. 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
  10424. ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
  10425. *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
  10426. esac
  10427. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
  10428. $as_echo "$ac_prog_version" >&6; }
  10429. fi
  10430. if test $ac_verc_fail = yes; then
  10431. INTLBISON=:
  10432. fi
  10433. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
  10434. $as_echo_n "checking for long long int... " >&6; }
  10435. if test "${ac_cv_type_long_long_int+set}" = set; then :
  10436. $as_echo_n "(cached) " >&6
  10437. else
  10438. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10439. /* end confdefs.h. */
  10440. /* Test preprocessor. */
  10441. #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  10442. error in preprocessor;
  10443. #endif
  10444. #if ! (18446744073709551615ULL <= -1ull)
  10445. error in preprocessor;
  10446. #endif
  10447. /* Test literals. */
  10448. long long int ll = 9223372036854775807ll;
  10449. long long int nll = -9223372036854775807LL;
  10450. unsigned long long int ull = 18446744073709551615ULL;
  10451. /* Test constant expressions. */
  10452. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  10453. ? 1 : -1)];
  10454. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  10455. ? 1 : -1)];
  10456. int i = 63;
  10457. int
  10458. main ()
  10459. {
  10460. /* Test availability of runtime routines for shift and division. */
  10461. long long int llmax = 9223372036854775807ll;
  10462. unsigned long long int ullmax = 18446744073709551615ull;
  10463. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  10464. | (llmax / ll) | (llmax % ll)
  10465. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  10466. | (ullmax / ull) | (ullmax % ull));
  10467. ;
  10468. return 0;
  10469. }
  10470. _ACEOF
  10471. if ac_fn_cxx_try_link "$LINENO"; then :
  10472. if test "$cross_compiling" = yes; then :
  10473. ac_cv_type_long_long_int=yes
  10474. else
  10475. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10476. /* end confdefs.h. */
  10477. #include <limits.h>
  10478. #ifndef LLONG_MAX
  10479. # define HALF \
  10480. (1LL << (sizeof (long long int) * CHAR_BIT - 2))
  10481. # define LLONG_MAX (HALF - 1 + HALF)
  10482. #endif
  10483. int
  10484. main ()
  10485. {
  10486. long long int n = 1;
  10487. int i;
  10488. for (i = 0; ; i++)
  10489. {
  10490. long long int m = n << i;
  10491. if (m >> i != n)
  10492. return 1;
  10493. if (LLONG_MAX / 2 < m)
  10494. break;
  10495. }
  10496. return 0;
  10497. ;
  10498. return 0;
  10499. }
  10500. _ACEOF
  10501. if ac_fn_cxx_try_run "$LINENO"; then :
  10502. ac_cv_type_long_long_int=yes
  10503. else
  10504. ac_cv_type_long_long_int=no
  10505. fi
  10506. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10507. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10508. fi
  10509. else
  10510. ac_cv_type_long_long_int=no
  10511. fi
  10512. rm -f core conftest.err conftest.$ac_objext \
  10513. conftest$ac_exeext conftest.$ac_ext
  10514. fi
  10515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
  10516. $as_echo "$ac_cv_type_long_long_int" >&6; }
  10517. if test $ac_cv_type_long_long_int = yes; then
  10518. $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
  10519. fi
  10520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
  10521. $as_echo_n "checking for wchar_t... " >&6; }
  10522. if test "${gt_cv_c_wchar_t+set}" = set; then :
  10523. $as_echo_n "(cached) " >&6
  10524. else
  10525. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10526. /* end confdefs.h. */
  10527. #include <stddef.h>
  10528. wchar_t foo = (wchar_t)'\0';
  10529. int
  10530. main ()
  10531. {
  10532. ;
  10533. return 0;
  10534. }
  10535. _ACEOF
  10536. if ac_fn_cxx_try_compile "$LINENO"; then :
  10537. gt_cv_c_wchar_t=yes
  10538. else
  10539. gt_cv_c_wchar_t=no
  10540. fi
  10541. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10542. fi
  10543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
  10544. $as_echo "$gt_cv_c_wchar_t" >&6; }
  10545. if test $gt_cv_c_wchar_t = yes; then
  10546. $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
  10547. fi
  10548. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
  10549. $as_echo_n "checking for wint_t... " >&6; }
  10550. if test "${gt_cv_c_wint_t+set}" = set; then :
  10551. $as_echo_n "(cached) " >&6
  10552. else
  10553. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10554. /* end confdefs.h. */
  10555. /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
  10556. <wchar.h>.
  10557. BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
  10558. before <wchar.h>. */
  10559. #include <stddef.h>
  10560. #include <stdio.h>
  10561. #include <time.h>
  10562. #include <wchar.h>
  10563. wint_t foo = (wchar_t)'\0';
  10564. int
  10565. main ()
  10566. {
  10567. ;
  10568. return 0;
  10569. }
  10570. _ACEOF
  10571. if ac_fn_cxx_try_compile "$LINENO"; then :
  10572. gt_cv_c_wint_t=yes
  10573. else
  10574. gt_cv_c_wint_t=no
  10575. fi
  10576. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10577. fi
  10578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
  10579. $as_echo "$gt_cv_c_wint_t" >&6; }
  10580. if test $gt_cv_c_wint_t = yes; then
  10581. $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
  10582. fi
  10583. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
  10584. $as_echo_n "checking for intmax_t... " >&6; }
  10585. if test "${gt_cv_c_intmax_t+set}" = set; then :
  10586. $as_echo_n "(cached) " >&6
  10587. else
  10588. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10589. /* end confdefs.h. */
  10590. #include <stddef.h>
  10591. #include <stdlib.h>
  10592. #if HAVE_STDINT_H_WITH_UINTMAX
  10593. #include <stdint.h>
  10594. #endif
  10595. #if HAVE_INTTYPES_H_WITH_UINTMAX
  10596. #include <inttypes.h>
  10597. #endif
  10598. int
  10599. main ()
  10600. {
  10601. intmax_t x = -1;
  10602. return !x;
  10603. ;
  10604. return 0;
  10605. }
  10606. _ACEOF
  10607. if ac_fn_cxx_try_compile "$LINENO"; then :
  10608. gt_cv_c_intmax_t=yes
  10609. else
  10610. gt_cv_c_intmax_t=no
  10611. fi
  10612. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10613. fi
  10614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
  10615. $as_echo "$gt_cv_c_intmax_t" >&6; }
  10616. if test $gt_cv_c_intmax_t = yes; then
  10617. $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
  10618. fi
  10619. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
  10620. $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
  10621. if test "${gt_cv_func_printf_posix+set}" = set; then :
  10622. $as_echo_n "(cached) " >&6
  10623. else
  10624. if test "$cross_compiling" = yes; then :
  10625. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10626. /* end confdefs.h. */
  10627. #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
  10628. notposix
  10629. #endif
  10630. _ACEOF
  10631. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10632. $EGREP "notposix" >/dev/null 2>&1; then :
  10633. gt_cv_func_printf_posix="guessing no"
  10634. else
  10635. gt_cv_func_printf_posix="guessing yes"
  10636. fi
  10637. rm -f conftest*
  10638. else
  10639. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10640. /* end confdefs.h. */
  10641. #include <stdio.h>
  10642. #include <string.h>
  10643. /* The string "%2$d %1$d", with dollar characters protected from the shell's
  10644. dollar expansion (possibly an autoconf bug). */
  10645. static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
  10646. static char buf[100];
  10647. int main ()
  10648. {
  10649. sprintf (buf, format, 33, 55);
  10650. return (strcmp (buf, "55 33") != 0);
  10651. }
  10652. _ACEOF
  10653. if ac_fn_cxx_try_run "$LINENO"; then :
  10654. gt_cv_func_printf_posix=yes
  10655. else
  10656. gt_cv_func_printf_posix=no
  10657. fi
  10658. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10659. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10660. fi
  10661. fi
  10662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
  10663. $as_echo "$gt_cv_func_printf_posix" >&6; }
  10664. case $gt_cv_func_printf_posix in
  10665. *yes)
  10666. $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
  10667. ;;
  10668. esac
  10669. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
  10670. $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
  10671. if test "${ac_cv_gnu_library_2_1+set}" = set; then :
  10672. $as_echo_n "(cached) " >&6
  10673. else
  10674. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10675. /* end confdefs.h. */
  10676. #include <features.h>
  10677. #ifdef __GNU_LIBRARY__
  10678. #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
  10679. Lucky GNU user
  10680. #endif
  10681. #endif
  10682. _ACEOF
  10683. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10684. $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
  10685. ac_cv_gnu_library_2_1=yes
  10686. else
  10687. ac_cv_gnu_library_2_1=no
  10688. fi
  10689. rm -f conftest*
  10690. fi
  10691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
  10692. $as_echo "$ac_cv_gnu_library_2_1" >&6; }
  10693. GLIBC21="$ac_cv_gnu_library_2_1"
  10694. for ac_header in stdint.h
  10695. do :
  10696. ac_fn_cxx_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
  10697. if test "x$ac_cv_header_stdint_h" = x""yes; then :
  10698. cat >>confdefs.h <<_ACEOF
  10699. #define HAVE_STDINT_H 1
  10700. _ACEOF
  10701. fi
  10702. done
  10703. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
  10704. $as_echo_n "checking for SIZE_MAX... " >&6; }
  10705. if test "${gl_cv_size_max+set}" = set; then :
  10706. $as_echo_n "(cached) " >&6
  10707. else
  10708. gl_cv_size_max=
  10709. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10710. /* end confdefs.h. */
  10711. #include <limits.h>
  10712. #if HAVE_STDINT_H
  10713. #include <stdint.h>
  10714. #endif
  10715. #ifdef SIZE_MAX
  10716. Found it
  10717. #endif
  10718. _ACEOF
  10719. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10720. $EGREP "Found it" >/dev/null 2>&1; then :
  10721. gl_cv_size_max=yes
  10722. fi
  10723. rm -f conftest*
  10724. if test -z "$gl_cv_size_max"; then
  10725. if ac_fn_cxx_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
  10726. #include <limits.h>"; then :
  10727. else
  10728. size_t_bits_minus_1=
  10729. fi
  10730. if ac_fn_cxx_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
  10731. else
  10732. fits_in_uint=
  10733. fi
  10734. if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
  10735. if test $fits_in_uint = 1; then
  10736. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10737. /* end confdefs.h. */
  10738. #include <stddef.h>
  10739. extern size_t foo;
  10740. extern unsigned long foo;
  10741. int
  10742. main ()
  10743. {
  10744. ;
  10745. return 0;
  10746. }
  10747. _ACEOF
  10748. if ac_fn_cxx_try_compile "$LINENO"; then :
  10749. fits_in_uint=0
  10750. fi
  10751. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10752. fi
  10753. if test $fits_in_uint = 1; then
  10754. gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
  10755. else
  10756. gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
  10757. fi
  10758. else
  10759. gl_cv_size_max='((size_t)~(size_t)0)'
  10760. fi
  10761. fi
  10762. fi
  10763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
  10764. $as_echo "$gl_cv_size_max" >&6; }
  10765. if test "$gl_cv_size_max" != yes; then
  10766. cat >>confdefs.h <<_ACEOF
  10767. #define SIZE_MAX $gl_cv_size_max
  10768. _ACEOF
  10769. fi
  10770. for ac_header in stdint.h
  10771. do :
  10772. ac_fn_cxx_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
  10773. if test "x$ac_cv_header_stdint_h" = x""yes; then :
  10774. cat >>confdefs.h <<_ACEOF
  10775. #define HAVE_STDINT_H 1
  10776. _ACEOF
  10777. fi
  10778. done
  10779. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
  10780. $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
  10781. if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
  10782. $as_echo_n "(cached) " >&6
  10783. else
  10784. gt_save_LIBS="$LIBS"
  10785. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  10786. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10787. /* end confdefs.h. */
  10788. #include <CoreFoundation/CFPreferences.h>
  10789. int
  10790. main ()
  10791. {
  10792. CFPreferencesCopyAppValue(NULL, NULL)
  10793. ;
  10794. return 0;
  10795. }
  10796. _ACEOF
  10797. if ac_fn_cxx_try_link "$LINENO"; then :
  10798. gt_cv_func_CFPreferencesCopyAppValue=yes
  10799. else
  10800. gt_cv_func_CFPreferencesCopyAppValue=no
  10801. fi
  10802. rm -f core conftest.err conftest.$ac_objext \
  10803. conftest$ac_exeext conftest.$ac_ext
  10804. LIBS="$gt_save_LIBS"
  10805. fi
  10806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
  10807. $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  10808. if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  10809. $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
  10810. fi
  10811. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
  10812. $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
  10813. if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
  10814. $as_echo_n "(cached) " >&6
  10815. else
  10816. gt_save_LIBS="$LIBS"
  10817. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  10818. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10819. /* end confdefs.h. */
  10820. #include <CoreFoundation/CFLocale.h>
  10821. int
  10822. main ()
  10823. {
  10824. CFLocaleCopyCurrent();
  10825. ;
  10826. return 0;
  10827. }
  10828. _ACEOF
  10829. if ac_fn_cxx_try_link "$LINENO"; then :
  10830. gt_cv_func_CFLocaleCopyCurrent=yes
  10831. else
  10832. gt_cv_func_CFLocaleCopyCurrent=no
  10833. fi
  10834. rm -f core conftest.err conftest.$ac_objext \
  10835. conftest$ac_exeext conftest.$ac_ext
  10836. LIBS="$gt_save_LIBS"
  10837. fi
  10838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  10839. $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  10840. if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  10841. $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
  10842. fi
  10843. INTL_MACOSX_LIBS=
  10844. if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  10845. INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  10846. fi
  10847. ac_fn_cxx_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
  10848. if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
  10849. else
  10850. $as_echo "#define ptrdiff_t long" >>confdefs.h
  10851. fi
  10852. for ac_header in stddef.h stdlib.h string.h
  10853. do :
  10854. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10855. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  10856. eval as_val=\$$as_ac_Header
  10857. if test "x$as_val" = x""yes; then :
  10858. cat >>confdefs.h <<_ACEOF
  10859. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10860. _ACEOF
  10861. fi
  10862. done
  10863. for ac_func in asprintf fwprintf putenv setenv setlocale snprintf wcslen
  10864. do :
  10865. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10866. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  10867. eval as_val=\$$as_ac_var
  10868. if test "x$as_val" = x""yes; then :
  10869. cat >>confdefs.h <<_ACEOF
  10870. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10871. _ACEOF
  10872. fi
  10873. done
  10874. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
  10875. $as_echo_n "checking whether _snprintf is declared... " >&6; }
  10876. if test "${ac_cv_have_decl__snprintf+set}" = set; then :
  10877. $as_echo_n "(cached) " >&6
  10878. else
  10879. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10880. /* end confdefs.h. */
  10881. #include <stdio.h>
  10882. int
  10883. main ()
  10884. {
  10885. #ifndef _snprintf
  10886. char *p = (char *) _snprintf;
  10887. #endif
  10888. ;
  10889. return 0;
  10890. }
  10891. _ACEOF
  10892. if ac_fn_cxx_try_compile "$LINENO"; then :
  10893. ac_cv_have_decl__snprintf=yes
  10894. else
  10895. ac_cv_have_decl__snprintf=no
  10896. fi
  10897. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10898. fi
  10899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
  10900. $as_echo "$ac_cv_have_decl__snprintf" >&6; }
  10901. if test $ac_cv_have_decl__snprintf = yes; then
  10902. gt_value=1
  10903. else
  10904. gt_value=0
  10905. fi
  10906. cat >>confdefs.h <<_ACEOF
  10907. #define HAVE_DECL__SNPRINTF $gt_value
  10908. _ACEOF
  10909. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
  10910. $as_echo_n "checking whether _snwprintf is declared... " >&6; }
  10911. if test "${ac_cv_have_decl__snwprintf+set}" = set; then :
  10912. $as_echo_n "(cached) " >&6
  10913. else
  10914. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10915. /* end confdefs.h. */
  10916. #include <stdio.h>
  10917. int
  10918. main ()
  10919. {
  10920. #ifndef _snwprintf
  10921. char *p = (char *) _snwprintf;
  10922. #endif
  10923. ;
  10924. return 0;
  10925. }
  10926. _ACEOF
  10927. if ac_fn_cxx_try_compile "$LINENO"; then :
  10928. ac_cv_have_decl__snwprintf=yes
  10929. else
  10930. ac_cv_have_decl__snwprintf=no
  10931. fi
  10932. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10933. fi
  10934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
  10935. $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
  10936. if test $ac_cv_have_decl__snwprintf = yes; then
  10937. gt_value=1
  10938. else
  10939. gt_value=0
  10940. fi
  10941. cat >>confdefs.h <<_ACEOF
  10942. #define HAVE_DECL__SNWPRINTF $gt_value
  10943. _ACEOF
  10944. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
  10945. $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
  10946. if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then :
  10947. $as_echo_n "(cached) " >&6
  10948. else
  10949. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10950. /* end confdefs.h. */
  10951. #include <stdio.h>
  10952. int
  10953. main ()
  10954. {
  10955. #ifndef getc_unlocked
  10956. char *p = (char *) getc_unlocked;
  10957. #endif
  10958. ;
  10959. return 0;
  10960. }
  10961. _ACEOF
  10962. if ac_fn_cxx_try_compile "$LINENO"; then :
  10963. ac_cv_have_decl_getc_unlocked=yes
  10964. else
  10965. ac_cv_have_decl_getc_unlocked=no
  10966. fi
  10967. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10968. fi
  10969. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
  10970. $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
  10971. if test $ac_cv_have_decl_getc_unlocked = yes; then
  10972. gt_value=1
  10973. else
  10974. gt_value=0
  10975. fi
  10976. cat >>confdefs.h <<_ACEOF
  10977. #define HAVE_DECL_GETC_UNLOCKED $gt_value
  10978. _ACEOF
  10979. case $gt_cv_func_printf_posix in
  10980. *yes) HAVE_POSIX_PRINTF=1 ;;
  10981. *) HAVE_POSIX_PRINTF=0 ;;
  10982. esac
  10983. if test "$ac_cv_func_asprintf" = yes; then
  10984. HAVE_ASPRINTF=1
  10985. else
  10986. HAVE_ASPRINTF=0
  10987. fi
  10988. if test "$ac_cv_func_snprintf" = yes; then
  10989. HAVE_SNPRINTF=1
  10990. else
  10991. HAVE_SNPRINTF=0
  10992. fi
  10993. if test "$ac_cv_func_wprintf" = yes; then
  10994. HAVE_WPRINTF=1
  10995. else
  10996. HAVE_WPRINTF=0
  10997. fi
  10998. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
  10999. $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
  11000. if test "${am_cv_langinfo_codeset+set}" = set; then :
  11001. $as_echo_n "(cached) " >&6
  11002. else
  11003. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11004. /* end confdefs.h. */
  11005. #include <langinfo.h>
  11006. int
  11007. main ()
  11008. {
  11009. char* cs = nl_langinfo(CODESET); return !cs;
  11010. ;
  11011. return 0;
  11012. }
  11013. _ACEOF
  11014. if ac_fn_cxx_try_link "$LINENO"; then :
  11015. am_cv_langinfo_codeset=yes
  11016. else
  11017. am_cv_langinfo_codeset=no
  11018. fi
  11019. rm -f core conftest.err conftest.$ac_objext \
  11020. conftest$ac_exeext conftest.$ac_ext
  11021. fi
  11022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
  11023. $as_echo "$am_cv_langinfo_codeset" >&6; }
  11024. if test $am_cv_langinfo_codeset = yes; then
  11025. $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
  11026. fi
  11027. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
  11028. $as_echo_n "checking for LC_MESSAGES... " >&6; }
  11029. if test "${gt_cv_val_LC_MESSAGES+set}" = set; then :
  11030. $as_echo_n "(cached) " >&6
  11031. else
  11032. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11033. /* end confdefs.h. */
  11034. #include <locale.h>
  11035. int
  11036. main ()
  11037. {
  11038. return LC_MESSAGES
  11039. ;
  11040. return 0;
  11041. }
  11042. _ACEOF
  11043. if ac_fn_cxx_try_link "$LINENO"; then :
  11044. gt_cv_val_LC_MESSAGES=yes
  11045. else
  11046. gt_cv_val_LC_MESSAGES=no
  11047. fi
  11048. rm -f core conftest.err conftest.$ac_objext \
  11049. conftest$ac_exeext conftest.$ac_ext
  11050. fi
  11051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
  11052. $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
  11053. if test $gt_cv_val_LC_MESSAGES = yes; then
  11054. $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
  11055. fi
  11056. if test "$enable_shared" = yes; then
  11057. case "$host_os" in
  11058. mingw* | cygwin*) is_woe32dll=yes ;;
  11059. *) is_woe32dll=no ;;
  11060. esac
  11061. else
  11062. is_woe32dll=no
  11063. fi
  11064. WOE32DLL=$is_woe32dll
  11065. case "$host_os" in
  11066. mingw* | cygwin*) is_woe32=yes ;;
  11067. *) is_woe32=no ;;
  11068. esac
  11069. WOE32=$is_woe32
  11070. if test $WOE32 = yes; then
  11071. if test -n "$ac_tool_prefix"; then
  11072. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  11073. set dummy ${ac_tool_prefix}windres; ac_word=$2
  11074. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11075. $as_echo_n "checking for $ac_word... " >&6; }
  11076. if test "${ac_cv_prog_WINDRES+set}" = set; then :
  11077. $as_echo_n "(cached) " >&6
  11078. else
  11079. if test -n "$WINDRES"; then
  11080. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  11081. else
  11082. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11083. for as_dir in $PATH
  11084. do
  11085. IFS=$as_save_IFS
  11086. test -z "$as_dir" && as_dir=.
  11087. for ac_exec_ext in '' $ac_executable_extensions; do
  11088. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11089. ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
  11090. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11091. break 2
  11092. fi
  11093. done
  11094. done
  11095. IFS=$as_save_IFS
  11096. fi
  11097. fi
  11098. WINDRES=$ac_cv_prog_WINDRES
  11099. if test -n "$WINDRES"; then
  11100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
  11101. $as_echo "$WINDRES" >&6; }
  11102. else
  11103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11104. $as_echo "no" >&6; }
  11105. fi
  11106. fi
  11107. if test -z "$ac_cv_prog_WINDRES"; then
  11108. ac_ct_WINDRES=$WINDRES
  11109. # Extract the first word of "windres", so it can be a program name with args.
  11110. set dummy windres; ac_word=$2
  11111. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11112. $as_echo_n "checking for $ac_word... " >&6; }
  11113. if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
  11114. $as_echo_n "(cached) " >&6
  11115. else
  11116. if test -n "$ac_ct_WINDRES"; then
  11117. ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
  11118. else
  11119. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11120. for as_dir in $PATH
  11121. do
  11122. IFS=$as_save_IFS
  11123. test -z "$as_dir" && as_dir=.
  11124. for ac_exec_ext in '' $ac_executable_extensions; do
  11125. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11126. ac_cv_prog_ac_ct_WINDRES="windres"
  11127. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11128. break 2
  11129. fi
  11130. done
  11131. done
  11132. IFS=$as_save_IFS
  11133. fi
  11134. fi
  11135. ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
  11136. if test -n "$ac_ct_WINDRES"; then
  11137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
  11138. $as_echo "$ac_ct_WINDRES" >&6; }
  11139. else
  11140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11141. $as_echo "no" >&6; }
  11142. fi
  11143. if test "x$ac_ct_WINDRES" = x; then
  11144. WINDRES=""
  11145. else
  11146. case $cross_compiling:$ac_tool_warned in
  11147. yes:)
  11148. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11149. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11150. ac_tool_warned=yes ;;
  11151. esac
  11152. WINDRES=$ac_ct_WINDRES
  11153. fi
  11154. else
  11155. WINDRES="$ac_cv_prog_WINDRES"
  11156. fi
  11157. fi
  11158. case "$host_os" in
  11159. hpux*) LTLIBC="" ;;
  11160. *) LTLIBC="-lc" ;;
  11161. esac
  11162. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
  11163. $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
  11164. if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
  11165. $as_echo_n "(cached) " >&6
  11166. else
  11167. gt_save_LIBS="$LIBS"
  11168. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  11169. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11170. /* end confdefs.h. */
  11171. #include <CoreFoundation/CFPreferences.h>
  11172. int
  11173. main ()
  11174. {
  11175. CFPreferencesCopyAppValue(NULL, NULL)
  11176. ;
  11177. return 0;
  11178. }
  11179. _ACEOF
  11180. if ac_fn_cxx_try_link "$LINENO"; then :
  11181. gt_cv_func_CFPreferencesCopyAppValue=yes
  11182. else
  11183. gt_cv_func_CFPreferencesCopyAppValue=no
  11184. fi
  11185. rm -f core conftest.err conftest.$ac_objext \
  11186. conftest$ac_exeext conftest.$ac_ext
  11187. LIBS="$gt_save_LIBS"
  11188. fi
  11189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
  11190. $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  11191. if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  11192. $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
  11193. fi
  11194. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
  11195. $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
  11196. if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
  11197. $as_echo_n "(cached) " >&6
  11198. else
  11199. gt_save_LIBS="$LIBS"
  11200. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  11201. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11202. /* end confdefs.h. */
  11203. #include <CoreFoundation/CFLocale.h>
  11204. int
  11205. main ()
  11206. {
  11207. CFLocaleCopyCurrent();
  11208. ;
  11209. return 0;
  11210. }
  11211. _ACEOF
  11212. if ac_fn_cxx_try_link "$LINENO"; then :
  11213. gt_cv_func_CFLocaleCopyCurrent=yes
  11214. else
  11215. gt_cv_func_CFLocaleCopyCurrent=no
  11216. fi
  11217. rm -f core conftest.err conftest.$ac_objext \
  11218. conftest$ac_exeext conftest.$ac_ext
  11219. LIBS="$gt_save_LIBS"
  11220. fi
  11221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  11222. $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  11223. if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  11224. $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
  11225. fi
  11226. INTL_MACOSX_LIBS=
  11227. if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  11228. INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  11229. fi
  11230. BUILD_INCLUDED_LIBINTL=no
  11231. USE_INCLUDED_LIBINTL=no
  11232. LIBINTL=
  11233. LTLIBINTL=
  11234. POSUB=
  11235. case " $gt_needs " in
  11236. *" need-formatstring-macros "*) gt_api_version=3 ;;
  11237. *" need-ngettext "*) gt_api_version=2 ;;
  11238. *) gt_api_version=1 ;;
  11239. esac
  11240. gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
  11241. gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
  11242. if test "$USE_NLS" = "yes"; then
  11243. gt_use_preinstalled_gnugettext=no
  11244. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
  11245. $as_echo_n "checking whether included gettext is requested... " >&6; }
  11246. # Check whether --with-included-gettext was given.
  11247. if test "${with_included_gettext+set}" = set; then :
  11248. withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
  11249. else
  11250. nls_cv_force_use_gnu_gettext=no
  11251. fi
  11252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
  11253. $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
  11254. nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
  11255. if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
  11256. if test $gt_api_version -ge 3; then
  11257. gt_revision_test_code='
  11258. #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
  11259. #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
  11260. #endif
  11261. typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
  11262. '
  11263. else
  11264. gt_revision_test_code=
  11265. fi
  11266. if test $gt_api_version -ge 2; then
  11267. gt_expression_test_code=' + * ngettext ("", "", 0)'
  11268. else
  11269. gt_expression_test_code=
  11270. fi
  11271. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
  11272. $as_echo_n "checking for GNU gettext in libc... " >&6; }
  11273. if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then :
  11274. $as_echo_n "(cached) " >&6
  11275. else
  11276. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11277. /* end confdefs.h. */
  11278. #include <libintl.h>
  11279. $gt_revision_test_code
  11280. extern int _nl_msg_cat_cntr;
  11281. extern int *_nl_domain_bindings;
  11282. int
  11283. main ()
  11284. {
  11285. bindtextdomain ("", "");
  11286. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
  11287. ;
  11288. return 0;
  11289. }
  11290. _ACEOF
  11291. if ac_fn_cxx_try_link "$LINENO"; then :
  11292. eval "$gt_func_gnugettext_libc=yes"
  11293. else
  11294. eval "$gt_func_gnugettext_libc=no"
  11295. fi
  11296. rm -f core conftest.err conftest.$ac_objext \
  11297. conftest$ac_exeext conftest.$ac_ext
  11298. fi
  11299. eval ac_res=\$$gt_func_gnugettext_libc
  11300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  11301. $as_echo "$ac_res" >&6; }
  11302. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
  11303. use_additional=yes
  11304. acl_save_prefix="$prefix"
  11305. prefix="$acl_final_prefix"
  11306. acl_save_exec_prefix="$exec_prefix"
  11307. exec_prefix="$acl_final_exec_prefix"
  11308. eval additional_includedir=\"$includedir\"
  11309. eval additional_libdir=\"$libdir\"
  11310. exec_prefix="$acl_save_exec_prefix"
  11311. prefix="$acl_save_prefix"
  11312. # Check whether --with-libintl-prefix was given.
  11313. if test "${with_libintl_prefix+set}" = set; then :
  11314. withval=$with_libintl_prefix;
  11315. if test "X$withval" = "Xno"; then
  11316. use_additional=no
  11317. else
  11318. if test "X$withval" = "X"; then
  11319. acl_save_prefix="$prefix"
  11320. prefix="$acl_final_prefix"
  11321. acl_save_exec_prefix="$exec_prefix"
  11322. exec_prefix="$acl_final_exec_prefix"
  11323. eval additional_includedir=\"$includedir\"
  11324. eval additional_libdir=\"$libdir\"
  11325. exec_prefix="$acl_save_exec_prefix"
  11326. prefix="$acl_save_prefix"
  11327. else
  11328. additional_includedir="$withval/include"
  11329. additional_libdir="$withval/$acl_libdirstem"
  11330. fi
  11331. fi
  11332. fi
  11333. LIBINTL=
  11334. LTLIBINTL=
  11335. INCINTL=
  11336. LIBINTL_PREFIX=
  11337. rpathdirs=
  11338. ltrpathdirs=
  11339. names_already_handled=
  11340. names_next_round='intl '
  11341. while test -n "$names_next_round"; do
  11342. names_this_round="$names_next_round"
  11343. names_next_round=
  11344. for name in $names_this_round; do
  11345. already_handled=
  11346. for n in $names_already_handled; do
  11347. if test "$n" = "$name"; then
  11348. already_handled=yes
  11349. break
  11350. fi
  11351. done
  11352. if test -z "$already_handled"; then
  11353. names_already_handled="$names_already_handled $name"
  11354. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  11355. eval value=\"\$HAVE_LIB$uppername\"
  11356. if test -n "$value"; then
  11357. if test "$value" = yes; then
  11358. eval value=\"\$LIB$uppername\"
  11359. test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
  11360. eval value=\"\$LTLIB$uppername\"
  11361. test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
  11362. else
  11363. :
  11364. fi
  11365. else
  11366. found_dir=
  11367. found_la=
  11368. found_so=
  11369. found_a=
  11370. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  11371. if test -n "$acl_shlibext"; then
  11372. shrext=".$acl_shlibext" # typically: shrext=.so
  11373. else
  11374. shrext=
  11375. fi
  11376. if test $use_additional = yes; then
  11377. dir="$additional_libdir"
  11378. if test -n "$acl_shlibext"; then
  11379. if test -f "$dir/$libname$shrext"; then
  11380. found_dir="$dir"
  11381. found_so="$dir/$libname$shrext"
  11382. else
  11383. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  11384. ver=`(cd "$dir" && \
  11385. for f in "$libname$shrext".*; do echo "$f"; done \
  11386. | sed -e "s,^$libname$shrext\\\\.,," \
  11387. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  11388. | sed 1q ) 2>/dev/null`
  11389. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  11390. found_dir="$dir"
  11391. found_so="$dir/$libname$shrext.$ver"
  11392. fi
  11393. else
  11394. eval library_names=\"$acl_library_names_spec\"
  11395. for f in $library_names; do
  11396. if test -f "$dir/$f"; then
  11397. found_dir="$dir"
  11398. found_so="$dir/$f"
  11399. break
  11400. fi
  11401. done
  11402. fi
  11403. fi
  11404. fi
  11405. if test "X$found_dir" = "X"; then
  11406. if test -f "$dir/$libname.$acl_libext"; then
  11407. found_dir="$dir"
  11408. found_a="$dir/$libname.$acl_libext"
  11409. fi
  11410. fi
  11411. if test "X$found_dir" != "X"; then
  11412. if test -f "$dir/$libname.la"; then
  11413. found_la="$dir/$libname.la"
  11414. fi
  11415. fi
  11416. fi
  11417. if test "X$found_dir" = "X"; then
  11418. for x in $LDFLAGS $LTLIBINTL; do
  11419. acl_save_prefix="$prefix"
  11420. prefix="$acl_final_prefix"
  11421. acl_save_exec_prefix="$exec_prefix"
  11422. exec_prefix="$acl_final_exec_prefix"
  11423. eval x=\"$x\"
  11424. exec_prefix="$acl_save_exec_prefix"
  11425. prefix="$acl_save_prefix"
  11426. case "$x" in
  11427. -L*)
  11428. dir=`echo "X$x" | sed -e 's/^X-L//'`
  11429. if test -n "$acl_shlibext"; then
  11430. if test -f "$dir/$libname$shrext"; then
  11431. found_dir="$dir"
  11432. found_so="$dir/$libname$shrext"
  11433. else
  11434. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  11435. ver=`(cd "$dir" && \
  11436. for f in "$libname$shrext".*; do echo "$f"; done \
  11437. | sed -e "s,^$libname$shrext\\\\.,," \
  11438. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  11439. | sed 1q ) 2>/dev/null`
  11440. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  11441. found_dir="$dir"
  11442. found_so="$dir/$libname$shrext.$ver"
  11443. fi
  11444. else
  11445. eval library_names=\"$acl_library_names_spec\"
  11446. for f in $library_names; do
  11447. if test -f "$dir/$f"; then
  11448. found_dir="$dir"
  11449. found_so="$dir/$f"
  11450. break
  11451. fi
  11452. done
  11453. fi
  11454. fi
  11455. fi
  11456. if test "X$found_dir" = "X"; then
  11457. if test -f "$dir/$libname.$acl_libext"; then
  11458. found_dir="$dir"
  11459. found_a="$dir/$libname.$acl_libext"
  11460. fi
  11461. fi
  11462. if test "X$found_dir" != "X"; then
  11463. if test -f "$dir/$libname.la"; then
  11464. found_la="$dir/$libname.la"
  11465. fi
  11466. fi
  11467. ;;
  11468. esac
  11469. if test "X$found_dir" != "X"; then
  11470. break
  11471. fi
  11472. done
  11473. fi
  11474. if test "X$found_dir" != "X"; then
  11475. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
  11476. if test "X$found_so" != "X"; then
  11477. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  11478. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  11479. else
  11480. haveit=
  11481. for x in $ltrpathdirs; do
  11482. if test "X$x" = "X$found_dir"; then
  11483. haveit=yes
  11484. break
  11485. fi
  11486. done
  11487. if test -z "$haveit"; then
  11488. ltrpathdirs="$ltrpathdirs $found_dir"
  11489. fi
  11490. if test "$acl_hardcode_direct" = yes; then
  11491. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  11492. else
  11493. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  11494. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  11495. haveit=
  11496. for x in $rpathdirs; do
  11497. if test "X$x" = "X$found_dir"; then
  11498. haveit=yes
  11499. break
  11500. fi
  11501. done
  11502. if test -z "$haveit"; then
  11503. rpathdirs="$rpathdirs $found_dir"
  11504. fi
  11505. else
  11506. haveit=
  11507. for x in $LDFLAGS $LIBINTL; do
  11508. acl_save_prefix="$prefix"
  11509. prefix="$acl_final_prefix"
  11510. acl_save_exec_prefix="$exec_prefix"
  11511. exec_prefix="$acl_final_exec_prefix"
  11512. eval x=\"$x\"
  11513. exec_prefix="$acl_save_exec_prefix"
  11514. prefix="$acl_save_prefix"
  11515. if test "X$x" = "X-L$found_dir"; then
  11516. haveit=yes
  11517. break
  11518. fi
  11519. done
  11520. if test -z "$haveit"; then
  11521. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
  11522. fi
  11523. if test "$acl_hardcode_minus_L" != no; then
  11524. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  11525. else
  11526. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  11527. fi
  11528. fi
  11529. fi
  11530. fi
  11531. else
  11532. if test "X$found_a" != "X"; then
  11533. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
  11534. else
  11535. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
  11536. fi
  11537. fi
  11538. additional_includedir=
  11539. case "$found_dir" in
  11540. */$acl_libdirstem | */$acl_libdirstem/)
  11541. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  11542. LIBINTL_PREFIX="$basedir"
  11543. additional_includedir="$basedir/include"
  11544. ;;
  11545. esac
  11546. if test "X$additional_includedir" != "X"; then
  11547. if test "X$additional_includedir" != "X/usr/include"; then
  11548. haveit=
  11549. if test "X$additional_includedir" = "X/usr/local/include"; then
  11550. if test -n "$GCC"; then
  11551. case $host_os in
  11552. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  11553. esac
  11554. fi
  11555. fi
  11556. if test -z "$haveit"; then
  11557. for x in $CPPFLAGS $INCINTL; do
  11558. acl_save_prefix="$prefix"
  11559. prefix="$acl_final_prefix"
  11560. acl_save_exec_prefix="$exec_prefix"
  11561. exec_prefix="$acl_final_exec_prefix"
  11562. eval x=\"$x\"
  11563. exec_prefix="$acl_save_exec_prefix"
  11564. prefix="$acl_save_prefix"
  11565. if test "X$x" = "X-I$additional_includedir"; then
  11566. haveit=yes
  11567. break
  11568. fi
  11569. done
  11570. if test -z "$haveit"; then
  11571. if test -d "$additional_includedir"; then
  11572. INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
  11573. fi
  11574. fi
  11575. fi
  11576. fi
  11577. fi
  11578. if test -n "$found_la"; then
  11579. save_libdir="$libdir"
  11580. case "$found_la" in
  11581. */* | *\\*) . "$found_la" ;;
  11582. *) . "./$found_la" ;;
  11583. esac
  11584. libdir="$save_libdir"
  11585. for dep in $dependency_libs; do
  11586. case "$dep" in
  11587. -L*)
  11588. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  11589. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  11590. haveit=
  11591. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  11592. if test -n "$GCC"; then
  11593. case $host_os in
  11594. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  11595. esac
  11596. fi
  11597. fi
  11598. if test -z "$haveit"; then
  11599. haveit=
  11600. for x in $LDFLAGS $LIBINTL; do
  11601. acl_save_prefix="$prefix"
  11602. prefix="$acl_final_prefix"
  11603. acl_save_exec_prefix="$exec_prefix"
  11604. exec_prefix="$acl_final_exec_prefix"
  11605. eval x=\"$x\"
  11606. exec_prefix="$acl_save_exec_prefix"
  11607. prefix="$acl_save_prefix"
  11608. if test "X$x" = "X-L$additional_libdir"; then
  11609. haveit=yes
  11610. break
  11611. fi
  11612. done
  11613. if test -z "$haveit"; then
  11614. if test -d "$additional_libdir"; then
  11615. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
  11616. fi
  11617. fi
  11618. haveit=
  11619. for x in $LDFLAGS $LTLIBINTL; 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-L$additional_libdir"; then
  11628. haveit=yes
  11629. break
  11630. fi
  11631. done
  11632. if test -z "$haveit"; then
  11633. if test -d "$additional_libdir"; then
  11634. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
  11635. fi
  11636. fi
  11637. fi
  11638. fi
  11639. ;;
  11640. -R*)
  11641. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  11642. if test "$enable_rpath" != no; then
  11643. haveit=
  11644. for x in $rpathdirs; do
  11645. if test "X$x" = "X$dir"; then
  11646. haveit=yes
  11647. break
  11648. fi
  11649. done
  11650. if test -z "$haveit"; then
  11651. rpathdirs="$rpathdirs $dir"
  11652. fi
  11653. haveit=
  11654. for x in $ltrpathdirs; do
  11655. if test "X$x" = "X$dir"; then
  11656. haveit=yes
  11657. break
  11658. fi
  11659. done
  11660. if test -z "$haveit"; then
  11661. ltrpathdirs="$ltrpathdirs $dir"
  11662. fi
  11663. fi
  11664. ;;
  11665. -l*)
  11666. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  11667. ;;
  11668. *.la)
  11669. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  11670. ;;
  11671. *)
  11672. LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
  11673. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
  11674. ;;
  11675. esac
  11676. done
  11677. fi
  11678. else
  11679. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  11680. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
  11681. fi
  11682. fi
  11683. fi
  11684. done
  11685. done
  11686. if test "X$rpathdirs" != "X"; then
  11687. if test -n "$acl_hardcode_libdir_separator"; then
  11688. alldirs=
  11689. for found_dir in $rpathdirs; do
  11690. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  11691. done
  11692. acl_save_libdir="$libdir"
  11693. libdir="$alldirs"
  11694. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  11695. libdir="$acl_save_libdir"
  11696. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  11697. else
  11698. for found_dir in $rpathdirs; do
  11699. acl_save_libdir="$libdir"
  11700. libdir="$found_dir"
  11701. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  11702. libdir="$acl_save_libdir"
  11703. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  11704. done
  11705. fi
  11706. fi
  11707. if test "X$ltrpathdirs" != "X"; then
  11708. for found_dir in $ltrpathdirs; do
  11709. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
  11710. done
  11711. fi
  11712. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
  11713. $as_echo_n "checking for GNU gettext in libintl... " >&6; }
  11714. if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then :
  11715. $as_echo_n "(cached) " >&6
  11716. else
  11717. gt_save_CPPFLAGS="$CPPFLAGS"
  11718. CPPFLAGS="$CPPFLAGS $INCINTL"
  11719. gt_save_LIBS="$LIBS"
  11720. LIBS="$LIBS $LIBINTL"
  11721. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11722. /* end confdefs.h. */
  11723. #include <libintl.h>
  11724. $gt_revision_test_code
  11725. extern int _nl_msg_cat_cntr;
  11726. extern
  11727. #ifdef __cplusplus
  11728. "C"
  11729. #endif
  11730. const char *_nl_expand_alias (const char *);
  11731. int
  11732. main ()
  11733. {
  11734. bindtextdomain ("", "");
  11735. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  11736. ;
  11737. return 0;
  11738. }
  11739. _ACEOF
  11740. if ac_fn_cxx_try_link "$LINENO"; then :
  11741. eval "$gt_func_gnugettext_libintl=yes"
  11742. else
  11743. eval "$gt_func_gnugettext_libintl=no"
  11744. fi
  11745. rm -f core conftest.err conftest.$ac_objext \
  11746. conftest$ac_exeext conftest.$ac_ext
  11747. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
  11748. LIBS="$LIBS $LIBICONV"
  11749. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11750. /* end confdefs.h. */
  11751. #include <libintl.h>
  11752. $gt_revision_test_code
  11753. extern int _nl_msg_cat_cntr;
  11754. extern
  11755. #ifdef __cplusplus
  11756. "C"
  11757. #endif
  11758. const char *_nl_expand_alias (const char *);
  11759. int
  11760. main ()
  11761. {
  11762. bindtextdomain ("", "");
  11763. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  11764. ;
  11765. return 0;
  11766. }
  11767. _ACEOF
  11768. if ac_fn_cxx_try_link "$LINENO"; then :
  11769. LIBINTL="$LIBINTL $LIBICONV"
  11770. LTLIBINTL="$LTLIBINTL $LTLIBICONV"
  11771. eval "$gt_func_gnugettext_libintl=yes"
  11772. fi
  11773. rm -f core conftest.err conftest.$ac_objext \
  11774. conftest$ac_exeext conftest.$ac_ext
  11775. fi
  11776. CPPFLAGS="$gt_save_CPPFLAGS"
  11777. LIBS="$gt_save_LIBS"
  11778. fi
  11779. eval ac_res=\$$gt_func_gnugettext_libintl
  11780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  11781. $as_echo "$ac_res" >&6; }
  11782. fi
  11783. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
  11784. || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
  11785. && test "$PACKAGE" != gettext-runtime \
  11786. && test "$PACKAGE" != gettext-tools; }; then
  11787. gt_use_preinstalled_gnugettext=yes
  11788. else
  11789. LIBINTL=
  11790. LTLIBINTL=
  11791. INCINTL=
  11792. fi
  11793. if test "$gt_use_preinstalled_gnugettext" != "yes"; then
  11794. nls_cv_use_gnu_gettext=yes
  11795. fi
  11796. fi
  11797. if test "$nls_cv_use_gnu_gettext" = "yes"; then
  11798. BUILD_INCLUDED_LIBINTL=yes
  11799. USE_INCLUDED_LIBINTL=yes
  11800. LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
  11801. LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
  11802. LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
  11803. fi
  11804. CATOBJEXT=
  11805. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  11806. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  11807. CATOBJEXT=.gmo
  11808. fi
  11809. if test -n "$INTL_MACOSX_LIBS"; then
  11810. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  11811. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  11812. LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
  11813. LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
  11814. fi
  11815. fi
  11816. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  11817. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  11818. $as_echo "#define ENABLE_NLS 1" >>confdefs.h
  11819. else
  11820. USE_NLS=no
  11821. fi
  11822. fi
  11823. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
  11824. $as_echo_n "checking whether to use NLS... " >&6; }
  11825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
  11826. $as_echo "$USE_NLS" >&6; }
  11827. if test "$USE_NLS" = "yes"; then
  11828. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
  11829. $as_echo_n "checking where the gettext function comes from... " >&6; }
  11830. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  11831. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  11832. gt_source="external libintl"
  11833. else
  11834. gt_source="libc"
  11835. fi
  11836. else
  11837. gt_source="included intl directory"
  11838. fi
  11839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
  11840. $as_echo "$gt_source" >&6; }
  11841. fi
  11842. if test "$USE_NLS" = "yes"; then
  11843. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  11844. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  11845. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
  11846. $as_echo_n "checking how to link with libintl... " >&6; }
  11847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
  11848. $as_echo "$LIBINTL" >&6; }
  11849. for element in $INCINTL; do
  11850. haveit=
  11851. for x in $CPPFLAGS; do
  11852. acl_save_prefix="$prefix"
  11853. prefix="$acl_final_prefix"
  11854. acl_save_exec_prefix="$exec_prefix"
  11855. exec_prefix="$acl_final_exec_prefix"
  11856. eval x=\"$x\"
  11857. exec_prefix="$acl_save_exec_prefix"
  11858. prefix="$acl_save_prefix"
  11859. if test "X$x" = "X$element"; then
  11860. haveit=yes
  11861. break
  11862. fi
  11863. done
  11864. if test -z "$haveit"; then
  11865. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  11866. fi
  11867. done
  11868. fi
  11869. $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
  11870. $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
  11871. fi
  11872. POSUB=po
  11873. fi
  11874. if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
  11875. BUILD_INCLUDED_LIBINTL=yes
  11876. fi
  11877. nls_cv_header_intl=
  11878. nls_cv_header_libgt=
  11879. DATADIRNAME=share
  11880. INSTOBJEXT=.mo
  11881. GENCAT=gencat
  11882. INTLOBJS=
  11883. if test "$USE_INCLUDED_LIBINTL" = yes; then
  11884. INTLOBJS="\$(GETTOBJS)"
  11885. fi
  11886. INTL_LIBTOOL_SUFFIX_PREFIX=
  11887. INTLLIBS="$LIBINTL"
  11888. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
  11889. $as_echo_n "checking for error_at_line... " >&6; }
  11890. if test "${ac_cv_lib_error_at_line+set}" = set; then :
  11891. $as_echo_n "(cached) " >&6
  11892. else
  11893. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11894. /* end confdefs.h. */
  11895. #include <error.h>
  11896. int
  11897. main ()
  11898. {
  11899. error_at_line (0, 0, "", 0, "an error occurred");
  11900. ;
  11901. return 0;
  11902. }
  11903. _ACEOF
  11904. if ac_fn_cxx_try_link "$LINENO"; then :
  11905. ac_cv_lib_error_at_line=yes
  11906. else
  11907. ac_cv_lib_error_at_line=no
  11908. fi
  11909. rm -f core conftest.err conftest.$ac_objext \
  11910. conftest$ac_exeext conftest.$ac_ext
  11911. fi
  11912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
  11913. $as_echo "$ac_cv_lib_error_at_line" >&6; }
  11914. if test $ac_cv_lib_error_at_line = no; then
  11915. case " $LIBOBJS " in
  11916. *" error.$ac_objext "* ) ;;
  11917. *) LIBOBJS="$LIBOBJS error.$ac_objext"
  11918. ;;
  11919. esac
  11920. fi
  11921. if test $ac_cv_c_compiler_gnu = yes; then
  11922. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
  11923. $as_echo_n "checking whether $CC needs -traditional... " >&6; }
  11924. if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
  11925. $as_echo_n "(cached) " >&6
  11926. else
  11927. ac_pattern="Autoconf.*'x'"
  11928. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11929. /* end confdefs.h. */
  11930. #include <sgtty.h>
  11931. Autoconf TIOCGETP
  11932. _ACEOF
  11933. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  11934. $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  11935. ac_cv_prog_gcc_traditional=yes
  11936. else
  11937. ac_cv_prog_gcc_traditional=no
  11938. fi
  11939. rm -f conftest*
  11940. if test $ac_cv_prog_gcc_traditional = no; then
  11941. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11942. /* end confdefs.h. */
  11943. #include <termio.h>
  11944. Autoconf TCGETA
  11945. _ACEOF
  11946. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  11947. $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  11948. ac_cv_prog_gcc_traditional=yes
  11949. fi
  11950. rm -f conftest*
  11951. fi
  11952. fi
  11953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
  11954. $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
  11955. if test $ac_cv_prog_gcc_traditional = yes; then
  11956. CC="$CC -traditional"
  11957. fi
  11958. fi
  11959. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  11960. $as_echo_n "checking for working memcmp... " >&6; }
  11961. if test "${ac_cv_func_memcmp_working+set}" = set; then :
  11962. $as_echo_n "(cached) " >&6
  11963. else
  11964. if test "$cross_compiling" = yes; then :
  11965. ac_cv_func_memcmp_working=no
  11966. else
  11967. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11968. /* end confdefs.h. */
  11969. $ac_includes_default
  11970. int
  11971. main ()
  11972. {
  11973. /* Some versions of memcmp are not 8-bit clean. */
  11974. char c0 = '\100', c1 = '\200', c2 = '\201';
  11975. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  11976. return 1;
  11977. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  11978. or more and with at least one buffer not starting on a 4-byte boundary.
  11979. William Lewis provided this test program. */
  11980. {
  11981. char foo[21];
  11982. char bar[21];
  11983. int i;
  11984. for (i = 0; i < 4; i++)
  11985. {
  11986. char *a = foo + i;
  11987. char *b = bar + i;
  11988. strcpy (a, "--------01111111");
  11989. strcpy (b, "--------10000000");
  11990. if (memcmp (a, b, 16) >= 0)
  11991. return 1;
  11992. }
  11993. return 0;
  11994. }
  11995. ;
  11996. return 0;
  11997. }
  11998. _ACEOF
  11999. if ac_fn_cxx_try_run "$LINENO"; then :
  12000. ac_cv_func_memcmp_working=yes
  12001. else
  12002. ac_cv_func_memcmp_working=no
  12003. fi
  12004. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12005. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12006. fi
  12007. fi
  12008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  12009. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  12010. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  12011. *" memcmp.$ac_objext "* ) ;;
  12012. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  12013. ;;
  12014. esac
  12015. for ac_func in $ac_func_list
  12016. do :
  12017. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12018. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  12019. eval as_val=\$$as_ac_var
  12020. if test "x$as_val" = x""yes; then :
  12021. cat >>confdefs.h <<_ACEOF
  12022. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12023. _ACEOF
  12024. fi
  12025. done
  12026. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
  12027. $as_echo_n "checking for working mktime... " >&6; }
  12028. if test "${ac_cv_func_working_mktime+set}" = set; then :
  12029. $as_echo_n "(cached) " >&6
  12030. else
  12031. if test "$cross_compiling" = yes; then :
  12032. ac_cv_func_working_mktime=no
  12033. else
  12034. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12035. /* end confdefs.h. */
  12036. /* Test program from Paul Eggert and Tony Leneis. */
  12037. #ifdef TIME_WITH_SYS_TIME
  12038. # include <sys/time.h>
  12039. # include <time.h>
  12040. #else
  12041. # ifdef HAVE_SYS_TIME_H
  12042. # include <sys/time.h>
  12043. # else
  12044. # include <time.h>
  12045. # endif
  12046. #endif
  12047. #include <limits.h>
  12048. #include <stdlib.h>
  12049. #ifdef HAVE_UNISTD_H
  12050. # include <unistd.h>
  12051. #endif
  12052. #ifndef HAVE_ALARM
  12053. # define alarm(X) /* empty */
  12054. #endif
  12055. /* Work around redefinition to rpl_putenv by other config tests. */
  12056. #undef putenv
  12057. static time_t time_t_max;
  12058. static time_t time_t_min;
  12059. /* Values we'll use to set the TZ environment variable. */
  12060. static char *tz_strings[] = {
  12061. (char *) 0, "TZ=GMT0", "TZ=JST-9",
  12062. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  12063. };
  12064. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  12065. /* Return 0 if mktime fails to convert a date in the spring-forward gap.
  12066. Based on a problem report from Andreas Jaeger. */
  12067. static int
  12068. spring_forward_gap ()
  12069. {
  12070. /* glibc (up to about 1998-10-07) failed this test. */
  12071. struct tm tm;
  12072. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  12073. instead of "TZ=America/Vancouver" in order to detect the bug even
  12074. on systems that don't support the Olson extension, or don't have the
  12075. full zoneinfo tables installed. */
  12076. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  12077. tm.tm_year = 98;
  12078. tm.tm_mon = 3;
  12079. tm.tm_mday = 5;
  12080. tm.tm_hour = 2;
  12081. tm.tm_min = 0;
  12082. tm.tm_sec = 0;
  12083. tm.tm_isdst = -1;
  12084. return mktime (&tm) != (time_t) -1;
  12085. }
  12086. static int
  12087. mktime_test1 (now)
  12088. time_t now;
  12089. {
  12090. struct tm *lt;
  12091. return ! (lt = localtime (&now)) || mktime (lt) == now;
  12092. }
  12093. static int
  12094. mktime_test (now)
  12095. time_t now;
  12096. {
  12097. return (mktime_test1 (now)
  12098. && mktime_test1 ((time_t) (time_t_max - now))
  12099. && mktime_test1 ((time_t) (time_t_min + now)));
  12100. }
  12101. static int
  12102. irix_6_4_bug ()
  12103. {
  12104. /* Based on code from Ariel Faigon. */
  12105. struct tm tm;
  12106. tm.tm_year = 96;
  12107. tm.tm_mon = 3;
  12108. tm.tm_mday = 0;
  12109. tm.tm_hour = 0;
  12110. tm.tm_min = 0;
  12111. tm.tm_sec = 0;
  12112. tm.tm_isdst = -1;
  12113. mktime (&tm);
  12114. return tm.tm_mon == 2 && tm.tm_mday == 31;
  12115. }
  12116. static int
  12117. bigtime_test (j)
  12118. int j;
  12119. {
  12120. struct tm tm;
  12121. time_t now;
  12122. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  12123. now = mktime (&tm);
  12124. if (now != (time_t) -1)
  12125. {
  12126. struct tm *lt = localtime (&now);
  12127. if (! (lt
  12128. && lt->tm_year == tm.tm_year
  12129. && lt->tm_mon == tm.tm_mon
  12130. && lt->tm_mday == tm.tm_mday
  12131. && lt->tm_hour == tm.tm_hour
  12132. && lt->tm_min == tm.tm_min
  12133. && lt->tm_sec == tm.tm_sec
  12134. && lt->tm_yday == tm.tm_yday
  12135. && lt->tm_wday == tm.tm_wday
  12136. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  12137. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  12138. return 0;
  12139. }
  12140. return 1;
  12141. }
  12142. static int
  12143. year_2050_test ()
  12144. {
  12145. /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
  12146. ignoring leap seconds. */
  12147. unsigned long int answer = 2527315200UL;
  12148. struct tm tm;
  12149. time_t t;
  12150. tm.tm_year = 2050 - 1900;
  12151. tm.tm_mon = 2 - 1;
  12152. tm.tm_mday = 1;
  12153. tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
  12154. tm.tm_isdst = -1;
  12155. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  12156. instead of "TZ=America/Vancouver" in order to detect the bug even
  12157. on systems that don't support the Olson extension, or don't have the
  12158. full zoneinfo tables installed. */
  12159. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  12160. t = mktime (&tm);
  12161. /* Check that the result is either a failure, or close enough
  12162. to the correct answer that we can assume the discrepancy is
  12163. due to leap seconds. */
  12164. return (t == (time_t) -1
  12165. || (0 < t && answer - 120 <= t && t <= answer + 120));
  12166. }
  12167. int
  12168. main ()
  12169. {
  12170. time_t t, delta;
  12171. int i, j;
  12172. /* This test makes some buggy mktime implementations loop.
  12173. Give up after 60 seconds; a mktime slower than that
  12174. isn't worth using anyway. */
  12175. alarm (60);
  12176. for (;;)
  12177. {
  12178. t = (time_t_max << 1) + 1;
  12179. if (t <= time_t_max)
  12180. break;
  12181. time_t_max = t;
  12182. }
  12183. time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
  12184. delta = time_t_max / 997; /* a suitable prime number */
  12185. for (i = 0; i < N_STRINGS; i++)
  12186. {
  12187. if (tz_strings[i])
  12188. putenv (tz_strings[i]);
  12189. for (t = 0; t <= time_t_max - delta; t += delta)
  12190. if (! mktime_test (t))
  12191. return 1;
  12192. if (! (mktime_test ((time_t) 1)
  12193. && mktime_test ((time_t) (60 * 60))
  12194. && mktime_test ((time_t) (60 * 60 * 24))))
  12195. return 1;
  12196. for (j = 1; ; j <<= 1)
  12197. if (! bigtime_test (j))
  12198. return 1;
  12199. else if (INT_MAX / 2 < j)
  12200. break;
  12201. if (! bigtime_test (INT_MAX))
  12202. return 1;
  12203. }
  12204. return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
  12205. }
  12206. _ACEOF
  12207. if ac_fn_cxx_try_run "$LINENO"; then :
  12208. ac_cv_func_working_mktime=yes
  12209. else
  12210. ac_cv_func_working_mktime=no
  12211. fi
  12212. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12213. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12214. fi
  12215. fi
  12216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
  12217. $as_echo "$ac_cv_func_working_mktime" >&6; }
  12218. if test $ac_cv_func_working_mktime = no; then
  12219. case " $LIBOBJS " in
  12220. *" mktime.$ac_objext "* ) ;;
  12221. *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
  12222. ;;
  12223. esac
  12224. fi
  12225. for ac_func in getpagesize
  12226. do :
  12227. ac_fn_cxx_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  12228. if test "x$ac_cv_func_getpagesize" = x""yes; then :
  12229. cat >>confdefs.h <<_ACEOF
  12230. #define HAVE_GETPAGESIZE 1
  12231. _ACEOF
  12232. fi
  12233. done
  12234. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  12235. $as_echo_n "checking for working mmap... " >&6; }
  12236. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
  12237. $as_echo_n "(cached) " >&6
  12238. else
  12239. if test "$cross_compiling" = yes; then :
  12240. ac_cv_func_mmap_fixed_mapped=no
  12241. else
  12242. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12243. /* end confdefs.h. */
  12244. $ac_includes_default
  12245. /* malloc might have been renamed as rpl_malloc. */
  12246. #undef malloc
  12247. /* Thanks to Mike Haertel and Jim Avera for this test.
  12248. Here is a matrix of mmap possibilities:
  12249. mmap private not fixed
  12250. mmap private fixed at somewhere currently unmapped
  12251. mmap private fixed at somewhere already mapped
  12252. mmap shared not fixed
  12253. mmap shared fixed at somewhere currently unmapped
  12254. mmap shared fixed at somewhere already mapped
  12255. For private mappings, we should verify that changes cannot be read()
  12256. back from the file, nor mmap's back from the file at a different
  12257. address. (There have been systems where private was not correctly
  12258. implemented like the infamous i386 svr4.0, and systems where the
  12259. VM page cache was not coherent with the file system buffer cache
  12260. like early versions of FreeBSD and possibly contemporary NetBSD.)
  12261. For shared mappings, we should conversely verify that changes get
  12262. propagated back to all the places they're supposed to be.
  12263. Grep wants private fixed already mapped.
  12264. The main things grep needs to know about mmap are:
  12265. * does it exist and is it safe to write into the mmap'd area
  12266. * how to use it (BSD variants) */
  12267. #include <fcntl.h>
  12268. #include <sys/mman.h>
  12269. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  12270. char *malloc ();
  12271. #endif
  12272. /* This mess was copied from the GNU getpagesize.h. */
  12273. #ifndef HAVE_GETPAGESIZE
  12274. # ifdef _SC_PAGESIZE
  12275. # define getpagesize() sysconf(_SC_PAGESIZE)
  12276. # else /* no _SC_PAGESIZE */
  12277. # ifdef HAVE_SYS_PARAM_H
  12278. # include <sys/param.h>
  12279. # ifdef EXEC_PAGESIZE
  12280. # define getpagesize() EXEC_PAGESIZE
  12281. # else /* no EXEC_PAGESIZE */
  12282. # ifdef NBPG
  12283. # define getpagesize() NBPG * CLSIZE
  12284. # ifndef CLSIZE
  12285. # define CLSIZE 1
  12286. # endif /* no CLSIZE */
  12287. # else /* no NBPG */
  12288. # ifdef NBPC
  12289. # define getpagesize() NBPC
  12290. # else /* no NBPC */
  12291. # ifdef PAGESIZE
  12292. # define getpagesize() PAGESIZE
  12293. # endif /* PAGESIZE */
  12294. # endif /* no NBPC */
  12295. # endif /* no NBPG */
  12296. # endif /* no EXEC_PAGESIZE */
  12297. # else /* no HAVE_SYS_PARAM_H */
  12298. # define getpagesize() 8192 /* punt totally */
  12299. # endif /* no HAVE_SYS_PARAM_H */
  12300. # endif /* no _SC_PAGESIZE */
  12301. #endif /* no HAVE_GETPAGESIZE */
  12302. int
  12303. main ()
  12304. {
  12305. char *data, *data2, *data3;
  12306. const char *cdata2;
  12307. int i, pagesize;
  12308. int fd, fd2;
  12309. pagesize = getpagesize ();
  12310. /* First, make a file with some known garbage in it. */
  12311. data = (char *) malloc (pagesize);
  12312. if (!data)
  12313. return 1;
  12314. for (i = 0; i < pagesize; ++i)
  12315. *(data + i) = rand ();
  12316. umask (0);
  12317. fd = creat ("conftest.mmap", 0600);
  12318. if (fd < 0)
  12319. return 2;
  12320. if (write (fd, data, pagesize) != pagesize)
  12321. return 3;
  12322. close (fd);
  12323. /* Next, check that the tail of a page is zero-filled. File must have
  12324. non-zero length, otherwise we risk SIGBUS for entire page. */
  12325. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  12326. if (fd2 < 0)
  12327. return 4;
  12328. cdata2 = "";
  12329. if (write (fd2, cdata2, 1) != 1)
  12330. return 5;
  12331. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  12332. if (data2 == MAP_FAILED)
  12333. return 6;
  12334. for (i = 0; i < pagesize; ++i)
  12335. if (*(data2 + i))
  12336. return 7;
  12337. close (fd2);
  12338. if (munmap (data2, pagesize))
  12339. return 8;
  12340. /* Next, try to mmap the file at a fixed address which already has
  12341. something else allocated at it. If we can, also make sure that
  12342. we see the same garbage. */
  12343. fd = open ("conftest.mmap", O_RDWR);
  12344. if (fd < 0)
  12345. return 9;
  12346. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  12347. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  12348. return 10;
  12349. for (i = 0; i < pagesize; ++i)
  12350. if (*(data + i) != *(data2 + i))
  12351. return 11;
  12352. /* Finally, make sure that changes to the mapped area do not
  12353. percolate back to the file as seen by read(). (This is a bug on
  12354. some variants of i386 svr4.0.) */
  12355. for (i = 0; i < pagesize; ++i)
  12356. *(data2 + i) = *(data2 + i) + 1;
  12357. data3 = (char *) malloc (pagesize);
  12358. if (!data3)
  12359. return 12;
  12360. if (read (fd, data3, pagesize) != pagesize)
  12361. return 13;
  12362. for (i = 0; i < pagesize; ++i)
  12363. if (*(data + i) != *(data3 + i))
  12364. return 14;
  12365. close (fd);
  12366. return 0;
  12367. }
  12368. _ACEOF
  12369. if ac_fn_cxx_try_run "$LINENO"; then :
  12370. ac_cv_func_mmap_fixed_mapped=yes
  12371. else
  12372. ac_cv_func_mmap_fixed_mapped=no
  12373. fi
  12374. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12375. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12376. fi
  12377. fi
  12378. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  12379. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  12380. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  12381. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  12382. fi
  12383. rm -f conftest.mmap conftest.txt
  12384. for ac_header in sys/select.h sys/socket.h
  12385. do :
  12386. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  12387. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  12388. eval as_val=\$$as_ac_Header
  12389. if test "x$as_val" = x""yes; then :
  12390. cat >>confdefs.h <<_ACEOF
  12391. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  12392. _ACEOF
  12393. fi
  12394. done
  12395. { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
  12396. $as_echo_n "checking types of arguments for select... " >&6; }
  12397. if test "${ac_cv_func_select_args+set}" = set; then :
  12398. $as_echo_n "(cached) " >&6
  12399. else
  12400. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  12401. for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
  12402. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  12403. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12404. /* end confdefs.h. */
  12405. $ac_includes_default
  12406. #ifdef HAVE_SYS_SELECT_H
  12407. # include <sys/select.h>
  12408. #endif
  12409. #ifdef HAVE_SYS_SOCKET_H
  12410. # include <sys/socket.h>
  12411. #endif
  12412. int
  12413. main ()
  12414. {
  12415. extern int select ($ac_arg1,
  12416. $ac_arg234, $ac_arg234, $ac_arg234,
  12417. $ac_arg5);
  12418. ;
  12419. return 0;
  12420. }
  12421. _ACEOF
  12422. if ac_fn_cxx_try_compile "$LINENO"; then :
  12423. ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  12424. fi
  12425. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12426. done
  12427. done
  12428. done
  12429. # Provide a safe default value.
  12430. : ${ac_cv_func_select_args='int,int *,struct timeval *'}
  12431. fi
  12432. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
  12433. $as_echo "$ac_cv_func_select_args" >&6; }
  12434. ac_save_IFS=$IFS; IFS=','
  12435. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  12436. IFS=$ac_save_IFS
  12437. shift
  12438. cat >>confdefs.h <<_ACEOF
  12439. #define SELECT_TYPE_ARG1 $1
  12440. _ACEOF
  12441. cat >>confdefs.h <<_ACEOF
  12442. #define SELECT_TYPE_ARG234 ($2)
  12443. _ACEOF
  12444. cat >>confdefs.h <<_ACEOF
  12445. #define SELECT_TYPE_ARG5 ($3)
  12446. _ACEOF
  12447. rm -f conftest*
  12448. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
  12449. $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
  12450. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
  12451. $as_echo_n "(cached) " >&6
  12452. else
  12453. rm -f conftest.sym conftest.file
  12454. echo >conftest.file
  12455. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  12456. if test "$cross_compiling" = yes; then :
  12457. ac_cv_func_lstat_dereferences_slashed_symlink=no
  12458. else
  12459. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12460. /* end confdefs.h. */
  12461. $ac_includes_default
  12462. int
  12463. main ()
  12464. {
  12465. struct stat sbuf;
  12466. /* Linux will dereference the symlink and fail, as required by POSIX.
  12467. That is better in the sense that it means we will not
  12468. have to compile and use the lstat wrapper. */
  12469. return lstat ("conftest.sym/", &sbuf) == 0;
  12470. ;
  12471. return 0;
  12472. }
  12473. _ACEOF
  12474. if ac_fn_cxx_try_run "$LINENO"; then :
  12475. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  12476. else
  12477. ac_cv_func_lstat_dereferences_slashed_symlink=no
  12478. fi
  12479. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12480. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12481. fi
  12482. else
  12483. # If the `ln -s' command failed, then we probably don't even
  12484. # have an lstat function.
  12485. ac_cv_func_lstat_dereferences_slashed_symlink=no
  12486. fi
  12487. rm -f conftest.sym conftest.file
  12488. fi
  12489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  12490. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  12491. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  12492. cat >>confdefs.h <<_ACEOF
  12493. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  12494. _ACEOF
  12495. if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
  12496. case " $LIBOBJS " in
  12497. *" lstat.$ac_objext "* ) ;;
  12498. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  12499. ;;
  12500. esac
  12501. fi
  12502. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
  12503. $as_echo_n "checking whether stat accepts an empty string... " >&6; }
  12504. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
  12505. $as_echo_n "(cached) " >&6
  12506. else
  12507. if test "$cross_compiling" = yes; then :
  12508. ac_cv_func_stat_empty_string_bug=yes
  12509. else
  12510. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12511. /* end confdefs.h. */
  12512. $ac_includes_default
  12513. int
  12514. main ()
  12515. {
  12516. struct stat sbuf;
  12517. return stat ("", &sbuf) == 0;
  12518. ;
  12519. return 0;
  12520. }
  12521. _ACEOF
  12522. if ac_fn_cxx_try_run "$LINENO"; then :
  12523. ac_cv_func_stat_empty_string_bug=no
  12524. else
  12525. ac_cv_func_stat_empty_string_bug=yes
  12526. fi
  12527. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12528. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12529. fi
  12530. fi
  12531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
  12532. $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
  12533. if test $ac_cv_func_stat_empty_string_bug = yes; then
  12534. case " $LIBOBJS " in
  12535. *" stat.$ac_objext "* ) ;;
  12536. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  12537. ;;
  12538. esac
  12539. cat >>confdefs.h <<_ACEOF
  12540. #define HAVE_STAT_EMPTY_STRING_BUG 1
  12541. _ACEOF
  12542. fi
  12543. for ac_func in strftime
  12544. do :
  12545. ac_fn_cxx_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
  12546. if test "x$ac_cv_func_strftime" = x""yes; then :
  12547. cat >>confdefs.h <<_ACEOF
  12548. #define HAVE_STRFTIME 1
  12549. _ACEOF
  12550. else
  12551. # strftime is in -lintl on SCO UNIX.
  12552. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
  12553. $as_echo_n "checking for strftime in -lintl... " >&6; }
  12554. if test "${ac_cv_lib_intl_strftime+set}" = set; then :
  12555. $as_echo_n "(cached) " >&6
  12556. else
  12557. ac_check_lib_save_LIBS=$LIBS
  12558. LIBS="-lintl $LIBS"
  12559. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12560. /* end confdefs.h. */
  12561. /* Override any GCC internal prototype to avoid an error.
  12562. Use char because int might match the return type of a GCC
  12563. builtin and then its argument prototype would still apply. */
  12564. #ifdef __cplusplus
  12565. extern "C"
  12566. #endif
  12567. char strftime ();
  12568. int
  12569. main ()
  12570. {
  12571. return strftime ();
  12572. ;
  12573. return 0;
  12574. }
  12575. _ACEOF
  12576. if ac_fn_cxx_try_link "$LINENO"; then :
  12577. ac_cv_lib_intl_strftime=yes
  12578. else
  12579. ac_cv_lib_intl_strftime=no
  12580. fi
  12581. rm -f core conftest.err conftest.$ac_objext \
  12582. conftest$ac_exeext conftest.$ac_ext
  12583. LIBS=$ac_check_lib_save_LIBS
  12584. fi
  12585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
  12586. $as_echo "$ac_cv_lib_intl_strftime" >&6; }
  12587. if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
  12588. $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
  12589. LIBS="-lintl $LIBS"
  12590. fi
  12591. fi
  12592. done
  12593. for ac_func in vprintf
  12594. do :
  12595. ac_fn_cxx_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
  12596. if test "x$ac_cv_func_vprintf" = x""yes; then :
  12597. cat >>confdefs.h <<_ACEOF
  12598. #define HAVE_VPRINTF 1
  12599. _ACEOF
  12600. ac_fn_cxx_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
  12601. if test "x$ac_cv_func__doprnt" = x""yes; then :
  12602. $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
  12603. fi
  12604. fi
  12605. done
  12606. for ac_header in vfork.h
  12607. do :
  12608. ac_fn_cxx_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
  12609. if test "x$ac_cv_header_vfork_h" = x""yes; then :
  12610. cat >>confdefs.h <<_ACEOF
  12611. #define HAVE_VFORK_H 1
  12612. _ACEOF
  12613. fi
  12614. done
  12615. for ac_func in fork vfork
  12616. do :
  12617. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12618. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  12619. eval as_val=\$$as_ac_var
  12620. if test "x$as_val" = x""yes; then :
  12621. cat >>confdefs.h <<_ACEOF
  12622. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12623. _ACEOF
  12624. fi
  12625. done
  12626. if test "x$ac_cv_func_fork" = xyes; then
  12627. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  12628. $as_echo_n "checking for working fork... " >&6; }
  12629. if test "${ac_cv_func_fork_works+set}" = set; then :
  12630. $as_echo_n "(cached) " >&6
  12631. else
  12632. if test "$cross_compiling" = yes; then :
  12633. ac_cv_func_fork_works=cross
  12634. else
  12635. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12636. /* end confdefs.h. */
  12637. $ac_includes_default
  12638. int
  12639. main ()
  12640. {
  12641. /* By Ruediger Kuhlmann. */
  12642. return fork () < 0;
  12643. ;
  12644. return 0;
  12645. }
  12646. _ACEOF
  12647. if ac_fn_cxx_try_run "$LINENO"; then :
  12648. ac_cv_func_fork_works=yes
  12649. else
  12650. ac_cv_func_fork_works=no
  12651. fi
  12652. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12653. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12654. fi
  12655. fi
  12656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  12657. $as_echo "$ac_cv_func_fork_works" >&6; }
  12658. else
  12659. ac_cv_func_fork_works=$ac_cv_func_fork
  12660. fi
  12661. if test "x$ac_cv_func_fork_works" = xcross; then
  12662. case $host in
  12663. *-*-amigaos* | *-*-msdosdjgpp*)
  12664. # Override, as these systems have only a dummy fork() stub
  12665. ac_cv_func_fork_works=no
  12666. ;;
  12667. *)
  12668. ac_cv_func_fork_works=yes
  12669. ;;
  12670. esac
  12671. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  12672. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  12673. fi
  12674. ac_cv_func_vfork_works=$ac_cv_func_vfork
  12675. if test "x$ac_cv_func_vfork" = xyes; then
  12676. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  12677. $as_echo_n "checking for working vfork... " >&6; }
  12678. if test "${ac_cv_func_vfork_works+set}" = set; then :
  12679. $as_echo_n "(cached) " >&6
  12680. else
  12681. if test "$cross_compiling" = yes; then :
  12682. ac_cv_func_vfork_works=cross
  12683. else
  12684. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12685. /* end confdefs.h. */
  12686. /* Thanks to Paul Eggert for this test. */
  12687. $ac_includes_default
  12688. #include <sys/wait.h>
  12689. #ifdef HAVE_VFORK_H
  12690. # include <vfork.h>
  12691. #endif
  12692. /* On some sparc systems, changes by the child to local and incoming
  12693. argument registers are propagated back to the parent. The compiler
  12694. is told about this with #include <vfork.h>, but some compilers
  12695. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  12696. static variable whose address is put into a register that is
  12697. clobbered by the vfork. */
  12698. static void
  12699. #ifdef __cplusplus
  12700. sparc_address_test (int arg)
  12701. # else
  12702. sparc_address_test (arg) int arg;
  12703. #endif
  12704. {
  12705. static pid_t child;
  12706. if (!child) {
  12707. child = vfork ();
  12708. if (child < 0) {
  12709. perror ("vfork");
  12710. _exit(2);
  12711. }
  12712. if (!child) {
  12713. arg = getpid();
  12714. write(-1, "", 0);
  12715. _exit (arg);
  12716. }
  12717. }
  12718. }
  12719. int
  12720. main ()
  12721. {
  12722. pid_t parent = getpid ();
  12723. pid_t child;
  12724. sparc_address_test (0);
  12725. child = vfork ();
  12726. if (child == 0) {
  12727. /* Here is another test for sparc vfork register problems. This
  12728. test uses lots of local variables, at least as many local
  12729. variables as main has allocated so far including compiler
  12730. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  12731. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  12732. reuse the register of parent for one of the local variables,
  12733. since it will think that parent can't possibly be used any more
  12734. in this routine. Assigning to the local variable will thus
  12735. munge parent in the parent process. */
  12736. pid_t
  12737. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  12738. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  12739. /* Convince the compiler that p..p7 are live; otherwise, it might
  12740. use the same hardware register for all 8 local variables. */
  12741. if (p != p1 || p != p2 || p != p3 || p != p4
  12742. || p != p5 || p != p6 || p != p7)
  12743. _exit(1);
  12744. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  12745. from child file descriptors. If the child closes a descriptor
  12746. before it execs or exits, this munges the parent's descriptor
  12747. as well. Test for this by closing stdout in the child. */
  12748. _exit(close(fileno(stdout)) != 0);
  12749. } else {
  12750. int status;
  12751. struct stat st;
  12752. while (wait(&status) != child)
  12753. ;
  12754. return (
  12755. /* Was there some problem with vforking? */
  12756. child < 0
  12757. /* Did the child fail? (This shouldn't happen.) */
  12758. || status
  12759. /* Did the vfork/compiler bug occur? */
  12760. || parent != getpid()
  12761. /* Did the file descriptor bug occur? */
  12762. || fstat(fileno(stdout), &st) != 0
  12763. );
  12764. }
  12765. }
  12766. _ACEOF
  12767. if ac_fn_cxx_try_run "$LINENO"; then :
  12768. ac_cv_func_vfork_works=yes
  12769. else
  12770. ac_cv_func_vfork_works=no
  12771. fi
  12772. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12773. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12774. fi
  12775. fi
  12776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  12777. $as_echo "$ac_cv_func_vfork_works" >&6; }
  12778. fi;
  12779. if test "x$ac_cv_func_fork_works" = xcross; then
  12780. ac_cv_func_vfork_works=$ac_cv_func_vfork
  12781. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  12782. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  12783. fi
  12784. if test "x$ac_cv_func_vfork_works" = xyes; then
  12785. $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
  12786. else
  12787. $as_echo "#define vfork fork" >>confdefs.h
  12788. fi
  12789. if test "x$ac_cv_func_fork_works" = xyes; then
  12790. $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
  12791. fi
  12792. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  12793. $as_echo_n "checking for working strtod... " >&6; }
  12794. if test "${ac_cv_func_strtod+set}" = set; then :
  12795. $as_echo_n "(cached) " >&6
  12796. else
  12797. if test "$cross_compiling" = yes; then :
  12798. ac_cv_func_strtod=no
  12799. else
  12800. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12801. /* end confdefs.h. */
  12802. $ac_includes_default
  12803. #ifndef strtod
  12804. double strtod ();
  12805. #endif
  12806. int
  12807. main()
  12808. {
  12809. {
  12810. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  12811. char *string = " +69";
  12812. char *term;
  12813. double value;
  12814. value = strtod (string, &term);
  12815. if (value != 69 || term != (string + 4))
  12816. return 1;
  12817. }
  12818. {
  12819. /* Under Solaris 2.4, strtod returns the wrong value for the
  12820. terminating character under some conditions. */
  12821. char *string = "NaN";
  12822. char *term;
  12823. strtod (string, &term);
  12824. if (term != string && *(term - 1) == 0)
  12825. return 1;
  12826. }
  12827. return 0;
  12828. }
  12829. _ACEOF
  12830. if ac_fn_cxx_try_run "$LINENO"; then :
  12831. ac_cv_func_strtod=yes
  12832. else
  12833. ac_cv_func_strtod=no
  12834. fi
  12835. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12836. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12837. fi
  12838. fi
  12839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  12840. $as_echo "$ac_cv_func_strtod" >&6; }
  12841. if test $ac_cv_func_strtod = no; then
  12842. case " $LIBOBJS " in
  12843. *" strtod.$ac_objext "* ) ;;
  12844. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  12845. ;;
  12846. esac
  12847. ac_fn_cxx_check_func "$LINENO" "pow" "ac_cv_func_pow"
  12848. if test "x$ac_cv_func_pow" = x""yes; then :
  12849. fi
  12850. if test $ac_cv_func_pow = no; then
  12851. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  12852. $as_echo_n "checking for pow in -lm... " >&6; }
  12853. if test "${ac_cv_lib_m_pow+set}" = set; then :
  12854. $as_echo_n "(cached) " >&6
  12855. else
  12856. ac_check_lib_save_LIBS=$LIBS
  12857. LIBS="-lm $LIBS"
  12858. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12859. /* end confdefs.h. */
  12860. /* Override any GCC internal prototype to avoid an error.
  12861. Use char because int might match the return type of a GCC
  12862. builtin and then its argument prototype would still apply. */
  12863. #ifdef __cplusplus
  12864. extern "C"
  12865. #endif
  12866. char pow ();
  12867. int
  12868. main ()
  12869. {
  12870. return pow ();
  12871. ;
  12872. return 0;
  12873. }
  12874. _ACEOF
  12875. if ac_fn_cxx_try_link "$LINENO"; then :
  12876. ac_cv_lib_m_pow=yes
  12877. else
  12878. ac_cv_lib_m_pow=no
  12879. fi
  12880. rm -f core conftest.err conftest.$ac_objext \
  12881. conftest$ac_exeext conftest.$ac_ext
  12882. LIBS=$ac_check_lib_save_LIBS
  12883. fi
  12884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  12885. $as_echo "$ac_cv_lib_m_pow" >&6; }
  12886. if test "x$ac_cv_lib_m_pow" = x""yes; then :
  12887. POW_LIB=-lm
  12888. else
  12889. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  12890. $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  12891. fi
  12892. fi
  12893. fi
  12894. for ac_func in __argz_count \
  12895. __argz_next \
  12896. __argz_stringify \
  12897. atexit \
  12898. clock_gettime \
  12899. ftruncate \
  12900. getcwd \
  12901. gethostbyaddr \
  12902. gethostbyname \
  12903. getifaddrs \
  12904. getpagesize \
  12905. inet_ntoa \
  12906. memchr \
  12907. memmove \
  12908. mempcpy \
  12909. memset \
  12910. mkdir \
  12911. munmap \
  12912. nl_langinfo \
  12913. posix_memalign \
  12914. pow \
  12915. putenv \
  12916. rmdir \
  12917. select \
  12918. setlocale \
  12919. sleep \
  12920. socket \
  12921. stpcpy \
  12922. strcasecmp \
  12923. strchr \
  12924. strcspn \
  12925. strdup \
  12926. strerror \
  12927. strncasecmp \
  12928. strstr \
  12929. strtol \
  12930. strtoul \
  12931. strtoull \
  12932. tzset \
  12933. unsetenv \
  12934. usleep \
  12935. utime
  12936. do :
  12937. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12938. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  12939. eval as_val=\$$as_ac_var
  12940. if test "x$as_val" = x""yes; then :
  12941. cat >>confdefs.h <<_ACEOF
  12942. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12943. _ACEOF
  12944. fi
  12945. done
  12946. if test "x$enable_epoll" = "xyes"; then
  12947. for ac_func in epoll_create
  12948. do :
  12949. ac_fn_cxx_check_func "$LINENO" "epoll_create" "ac_cv_func_epoll_create"
  12950. if test "x$ac_cv_func_epoll_create" = x""yes; then :
  12951. cat >>confdefs.h <<_ACEOF
  12952. #define HAVE_EPOLL_CREATE 1
  12953. _ACEOF
  12954. have_epoll=yes
  12955. fi
  12956. done
  12957. if test "x$have_epoll" = "xyes"; then
  12958. $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
  12959. fi
  12960. fi
  12961. if test "x$have_epoll" = "xyes"; then
  12962. HAVE_EPOLL_TRUE=
  12963. HAVE_EPOLL_FALSE='#'
  12964. else
  12965. HAVE_EPOLL_TRUE='#'
  12966. HAVE_EPOLL_FALSE=
  12967. fi
  12968. for ac_func in posix_fallocate
  12969. do :
  12970. ac_fn_cxx_check_func "$LINENO" "posix_fallocate" "ac_cv_func_posix_fallocate"
  12971. if test "x$ac_cv_func_posix_fallocate" = x""yes; then :
  12972. cat >>confdefs.h <<_ACEOF
  12973. #define HAVE_POSIX_FALLOCATE 1
  12974. _ACEOF
  12975. have_posix_fallocate=yes
  12976. fi
  12977. done
  12978. if test "x$have_posix_fallocate" = "xyes"; then
  12979. HAVE_POSIX_FALLOCATE_TRUE=
  12980. HAVE_POSIX_FALLOCATE_FALSE='#'
  12981. else
  12982. HAVE_POSIX_FALLOCATE_TRUE='#'
  12983. HAVE_POSIX_FALLOCATE_FALSE=
  12984. fi
  12985. for ac_func in asctime_r
  12986. do :
  12987. ac_fn_cxx_check_func "$LINENO" "asctime_r" "ac_cv_func_asctime_r"
  12988. if test "x$ac_cv_func_asctime_r" = x""yes; then :
  12989. cat >>confdefs.h <<_ACEOF
  12990. #define HAVE_ASCTIME_R 1
  12991. _ACEOF
  12992. if true; then
  12993. HAVE_ASCTIME_R_TRUE=
  12994. HAVE_ASCTIME_R_FALSE='#'
  12995. else
  12996. HAVE_ASCTIME_R_TRUE='#'
  12997. HAVE_ASCTIME_R_FALSE=
  12998. fi
  12999. else
  13000. if false; then
  13001. HAVE_ASCTIME_R_TRUE=
  13002. HAVE_ASCTIME_R_FALSE='#'
  13003. else
  13004. HAVE_ASCTIME_R_TRUE='#'
  13005. HAVE_ASCTIME_R_FALSE=
  13006. fi
  13007. fi
  13008. done
  13009. for ac_func in basename
  13010. do :
  13011. ac_fn_cxx_check_func "$LINENO" "basename" "ac_cv_func_basename"
  13012. if test "x$ac_cv_func_basename" = x""yes; then :
  13013. cat >>confdefs.h <<_ACEOF
  13014. #define HAVE_BASENAME 1
  13015. _ACEOF
  13016. if true; then
  13017. HAVE_BASENAME_TRUE=
  13018. HAVE_BASENAME_FALSE='#'
  13019. else
  13020. HAVE_BASENAME_TRUE='#'
  13021. HAVE_BASENAME_FALSE=
  13022. fi
  13023. else
  13024. if false; then
  13025. HAVE_BASENAME_TRUE=
  13026. HAVE_BASENAME_FALSE='#'
  13027. else
  13028. HAVE_BASENAME_TRUE='#'
  13029. HAVE_BASENAME_FALSE=
  13030. fi
  13031. fi
  13032. done
  13033. for ac_func in gai_strerror
  13034. do :
  13035. ac_fn_cxx_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
  13036. if test "x$ac_cv_func_gai_strerror" = x""yes; then :
  13037. cat >>confdefs.h <<_ACEOF
  13038. #define HAVE_GAI_STRERROR 1
  13039. _ACEOF
  13040. if true; then
  13041. HAVE_GAI_STRERROR_TRUE=
  13042. HAVE_GAI_STRERROR_FALSE='#'
  13043. else
  13044. HAVE_GAI_STRERROR_TRUE='#'
  13045. HAVE_GAI_STRERROR_FALSE=
  13046. fi
  13047. else
  13048. if false; then
  13049. HAVE_GAI_STRERROR_TRUE=
  13050. HAVE_GAI_STRERROR_FALSE='#'
  13051. else
  13052. HAVE_GAI_STRERROR_TRUE='#'
  13053. HAVE_GAI_STRERROR_FALSE=
  13054. fi
  13055. fi
  13056. done
  13057. for ac_func in getaddrinfo
  13058. do :
  13059. ac_fn_cxx_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
  13060. if test "x$ac_cv_func_getaddrinfo" = x""yes; then :
  13061. cat >>confdefs.h <<_ACEOF
  13062. #define HAVE_GETADDRINFO 1
  13063. _ACEOF
  13064. if true; then
  13065. HAVE_GETADDRINFO_TRUE=
  13066. HAVE_GETADDRINFO_FALSE='#'
  13067. else
  13068. HAVE_GETADDRINFO_TRUE='#'
  13069. HAVE_GETADDRINFO_FALSE=
  13070. fi
  13071. else
  13072. if false; then
  13073. HAVE_GETADDRINFO_TRUE=
  13074. HAVE_GETADDRINFO_FALSE='#'
  13075. else
  13076. HAVE_GETADDRINFO_TRUE='#'
  13077. HAVE_GETADDRINFO_FALSE=
  13078. fi
  13079. fi
  13080. done
  13081. for ac_func in gettimeofday
  13082. do :
  13083. ac_fn_cxx_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
  13084. if test "x$ac_cv_func_gettimeofday" = x""yes; then :
  13085. cat >>confdefs.h <<_ACEOF
  13086. #define HAVE_GETTIMEOFDAY 1
  13087. _ACEOF
  13088. if true; then
  13089. HAVE_GETTIMEOFDAY_TRUE=
  13090. HAVE_GETTIMEOFDAY_FALSE='#'
  13091. else
  13092. HAVE_GETTIMEOFDAY_TRUE='#'
  13093. HAVE_GETTIMEOFDAY_FALSE=
  13094. fi
  13095. else
  13096. if false; then
  13097. HAVE_GETTIMEOFDAY_TRUE=
  13098. HAVE_GETTIMEOFDAY_FALSE='#'
  13099. else
  13100. HAVE_GETTIMEOFDAY_TRUE='#'
  13101. HAVE_GETTIMEOFDAY_FALSE=
  13102. fi
  13103. fi
  13104. done
  13105. for ac_func in inet_aton
  13106. do :
  13107. ac_fn_cxx_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
  13108. if test "x$ac_cv_func_inet_aton" = x""yes; then :
  13109. cat >>confdefs.h <<_ACEOF
  13110. #define HAVE_INET_ATON 1
  13111. _ACEOF
  13112. if true; then
  13113. HAVE_INET_ATON_TRUE=
  13114. HAVE_INET_ATON_FALSE='#'
  13115. else
  13116. HAVE_INET_ATON_TRUE='#'
  13117. HAVE_INET_ATON_FALSE=
  13118. fi
  13119. else
  13120. if false; then
  13121. HAVE_INET_ATON_TRUE=
  13122. HAVE_INET_ATON_FALSE='#'
  13123. else
  13124. HAVE_INET_ATON_TRUE='#'
  13125. HAVE_INET_ATON_FALSE=
  13126. fi
  13127. fi
  13128. done
  13129. for ac_func in localtime_r
  13130. do :
  13131. ac_fn_cxx_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r"
  13132. if test "x$ac_cv_func_localtime_r" = x""yes; then :
  13133. cat >>confdefs.h <<_ACEOF
  13134. #define HAVE_LOCALTIME_R 1
  13135. _ACEOF
  13136. if true; then
  13137. HAVE_LOCALTIME_R_TRUE=
  13138. HAVE_LOCALTIME_R_FALSE='#'
  13139. else
  13140. HAVE_LOCALTIME_R_TRUE='#'
  13141. HAVE_LOCALTIME_R_FALSE=
  13142. fi
  13143. else
  13144. if false; then
  13145. HAVE_LOCALTIME_R_TRUE=
  13146. HAVE_LOCALTIME_R_FALSE='#'
  13147. else
  13148. HAVE_LOCALTIME_R_TRUE='#'
  13149. HAVE_LOCALTIME_R_FALSE=
  13150. fi
  13151. fi
  13152. done
  13153. for ac_func in strptime
  13154. do :
  13155. ac_fn_cxx_check_func "$LINENO" "strptime" "ac_cv_func_strptime"
  13156. if test "x$ac_cv_func_strptime" = x""yes; then :
  13157. cat >>confdefs.h <<_ACEOF
  13158. #define HAVE_STRPTIME 1
  13159. _ACEOF
  13160. if true; then
  13161. HAVE_STRPTIME_TRUE=
  13162. HAVE_STRPTIME_FALSE='#'
  13163. else
  13164. HAVE_STRPTIME_TRUE='#'
  13165. HAVE_STRPTIME_FALSE=
  13166. fi
  13167. else
  13168. if false; then
  13169. HAVE_STRPTIME_TRUE=
  13170. HAVE_STRPTIME_FALSE='#'
  13171. else
  13172. HAVE_STRPTIME_TRUE='#'
  13173. HAVE_STRPTIME_FALSE=
  13174. fi
  13175. fi
  13176. done
  13177. for ac_func in timegm
  13178. do :
  13179. ac_fn_cxx_check_func "$LINENO" "timegm" "ac_cv_func_timegm"
  13180. if test "x$ac_cv_func_timegm" = x""yes; then :
  13181. cat >>confdefs.h <<_ACEOF
  13182. #define HAVE_TIMEGM 1
  13183. _ACEOF
  13184. if true; then
  13185. HAVE_TIMEGM_TRUE=
  13186. HAVE_TIMEGM_FALSE='#'
  13187. else
  13188. HAVE_TIMEGM_TRUE='#'
  13189. HAVE_TIMEGM_FALSE=
  13190. fi
  13191. else
  13192. if false; then
  13193. HAVE_TIMEGM_TRUE=
  13194. HAVE_TIMEGM_FALSE='#'
  13195. else
  13196. HAVE_TIMEGM_TRUE='#'
  13197. HAVE_TIMEGM_FALSE=
  13198. fi
  13199. fi
  13200. done
  13201. for ac_func in daemon
  13202. do :
  13203. ac_fn_cxx_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
  13204. if test "x$ac_cv_func_daemon" = x""yes; then :
  13205. cat >>confdefs.h <<_ACEOF
  13206. #define HAVE_DAEMON 1
  13207. _ACEOF
  13208. have_daemon=yes
  13209. fi
  13210. done
  13211. if test "x$have_daemon" = "xyes"; then
  13212. HAVE_DAEMON_TRUE=
  13213. HAVE_DAEMON_FALSE='#'
  13214. else
  13215. HAVE_DAEMON_TRUE='#'
  13216. HAVE_DAEMON_FALSE=
  13217. fi
  13218. case "$target" in
  13219. *mingw*)
  13220. if true; then
  13221. HAVE_GETADDRINFO_TRUE=
  13222. HAVE_GETADDRINFO_FALSE='#'
  13223. else
  13224. HAVE_GETADDRINFO_TRUE='#'
  13225. HAVE_GETADDRINFO_FALSE=
  13226. fi
  13227. if false; then
  13228. HAVE_GAI_STRERROR_TRUE=
  13229. HAVE_GAI_STRERROR_FALSE='#'
  13230. else
  13231. HAVE_GAI_STRERROR_TRUE='#'
  13232. HAVE_GAI_STRERROR_FALSE=
  13233. fi
  13234. ;;
  13235. esac
  13236. ac_fn_cxx_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <netinet/in.h>
  13237. "
  13238. if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = x""yes; then :
  13239. $as_echo "#define HAVE_SOCKADDR_IN_SIN_LEN 1" >>confdefs.h
  13240. fi
  13241. # Check struct option.name is assignable from const char*. struct
  13242. # option.name in opensolaris is of type char*. In Linux, it is const
  13243. # char*
  13244. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct option.name is assignable from const char*" >&5
  13245. $as_echo_n "checking whether struct option.name is assignable from const char*... " >&6; }
  13246. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13247. /* end confdefs.h. */
  13248. #include <unistd.h>
  13249. #include <getopt.h>
  13250. int
  13251. main ()
  13252. {
  13253. const char* s = "const char";
  13254. option op;
  13255. op.name = s;
  13256. ;
  13257. return 0;
  13258. }
  13259. _ACEOF
  13260. if ac_fn_cxx_try_compile "$LINENO"; then :
  13261. have_option_const_name=yes
  13262. else
  13263. have_option_const_name=no
  13264. fi
  13265. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_option_const_name" >&5
  13267. $as_echo "$have_option_const_name" >&6; }
  13268. if test "x$have_option_const_name" = "xyes"; then
  13269. $as_echo "#define HAVE_OPTION_CONST_NAME 1" >>confdefs.h
  13270. fi
  13271. ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile po/Makefile.in intl/Makefile lib/Makefile doc/Makefile"
  13272. cat >confcache <<\_ACEOF
  13273. # This file is a shell script that caches the results of configure
  13274. # tests run on this system so they can be shared between configure
  13275. # scripts and configure runs, see configure's option --config-cache.
  13276. # It is not useful on other systems. If it contains results you don't
  13277. # want to keep, you may remove or edit it.
  13278. #
  13279. # config.status only pays attention to the cache file if you give it
  13280. # the --recheck option to rerun configure.
  13281. #
  13282. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  13283. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  13284. # following values.
  13285. _ACEOF
  13286. # The following way of writing the cache mishandles newlines in values,
  13287. # but we know of no workaround that is simple, portable, and efficient.
  13288. # So, we kill variables containing newlines.
  13289. # Ultrix sh set writes to stderr and can't be redirected directly,
  13290. # and sets the high bit in the cache file unless we assign to the vars.
  13291. (
  13292. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  13293. eval ac_val=\$$ac_var
  13294. case $ac_val in #(
  13295. *${as_nl}*)
  13296. case $ac_var in #(
  13297. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  13298. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  13299. esac
  13300. case $ac_var in #(
  13301. _ | IFS | as_nl) ;; #(
  13302. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  13303. *) { eval $ac_var=; unset $ac_var;} ;;
  13304. esac ;;
  13305. esac
  13306. done
  13307. (set) 2>&1 |
  13308. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  13309. *${as_nl}ac_space=\ *)
  13310. # `set' does not quote correctly, so add quotes: double-quote
  13311. # substitution turns \\\\ into \\, and sed turns \\ into \.
  13312. sed -n \
  13313. "s/'/'\\\\''/g;
  13314. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  13315. ;; #(
  13316. *)
  13317. # `set' quotes correctly as required by POSIX, so do not add quotes.
  13318. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  13319. ;;
  13320. esac |
  13321. sort
  13322. ) |
  13323. sed '
  13324. /^ac_cv_env_/b end
  13325. t clear
  13326. :clear
  13327. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  13328. t end
  13329. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  13330. :end' >>confcache
  13331. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  13332. if test -w "$cache_file"; then
  13333. test "x$cache_file" != "x/dev/null" &&
  13334. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  13335. $as_echo "$as_me: updating cache $cache_file" >&6;}
  13336. cat confcache >$cache_file
  13337. else
  13338. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  13339. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  13340. fi
  13341. fi
  13342. rm -f confcache
  13343. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  13344. # Let make expand exec_prefix.
  13345. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  13346. DEFS=-DHAVE_CONFIG_H
  13347. ac_libobjs=
  13348. ac_ltlibobjs=
  13349. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  13350. # 1. Remove the extension, and $U if already installed.
  13351. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  13352. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  13353. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  13354. # will be set to the directory where LIBOBJS objects are built.
  13355. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  13356. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  13357. done
  13358. LIBOBJS=$ac_libobjs
  13359. LTLIBOBJS=$ac_ltlibobjs
  13360. if test -n "$EXEEXT"; then
  13361. am__EXEEXT_TRUE=
  13362. am__EXEEXT_FALSE='#'
  13363. else
  13364. am__EXEEXT_TRUE='#'
  13365. am__EXEEXT_FALSE=
  13366. fi
  13367. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  13368. as_fn_error "conditional \"AMDEP\" was never defined.
  13369. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13370. fi
  13371. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  13372. as_fn_error "conditional \"am__fastdepCXX\" was never defined.
  13373. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13374. fi
  13375. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  13376. as_fn_error "conditional \"am__fastdepCC\" was never defined.
  13377. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13378. fi
  13379. if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
  13380. as_fn_error "conditional \"ENABLE_SSL\" was never defined.
  13381. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13382. fi
  13383. if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
  13384. as_fn_error "conditional \"ENABLE_SSL\" was never defined.
  13385. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13386. fi
  13387. if test -z "${HAVE_LIBGNUTLS_TRUE}" && test -z "${HAVE_LIBGNUTLS_FALSE}"; then
  13388. as_fn_error "conditional \"HAVE_LIBGNUTLS\" was never defined.
  13389. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13390. fi
  13391. if test -z "${HAVE_LIBSSL_TRUE}" && test -z "${HAVE_LIBSSL_FALSE}"; then
  13392. as_fn_error "conditional \"HAVE_LIBSSL\" was never defined.
  13393. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13394. fi
  13395. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  13396. as_fn_error "conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  13397. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13398. fi
  13399. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  13400. as_fn_error "conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  13401. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13402. fi
  13403. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  13404. as_fn_error "conditional \"ENABLE_BITTORRENT\" was never defined.
  13405. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13406. fi
  13407. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  13408. as_fn_error "conditional \"ENABLE_BITTORRENT\" was never defined.
  13409. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13410. fi
  13411. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  13412. as_fn_error "conditional \"ENABLE_METALINK\" was never defined.
  13413. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13414. fi
  13415. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  13416. as_fn_error "conditional \"ENABLE_METALINK\" was never defined.
  13417. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13418. fi
  13419. if test -z "${ENABLE_METALINK_LIBXML2_TRUE}" && test -z "${ENABLE_METALINK_LIBXML2_FALSE}"; then
  13420. as_fn_error "conditional \"ENABLE_METALINK_LIBXML2\" was never defined.
  13421. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13422. fi
  13423. if test -z "${ENABLE_METALINK_LIBEXPAT_TRUE}" && test -z "${ENABLE_METALINK_LIBEXPAT_FALSE}"; then
  13424. as_fn_error "conditional \"ENABLE_METALINK_LIBEXPAT\" was never defined.
  13425. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13426. fi
  13427. if test -z "${ENABLE_XML_RPC_TRUE}" && test -z "${ENABLE_XML_RPC_FALSE}"; then
  13428. as_fn_error "conditional \"ENABLE_XML_RPC\" was never defined.
  13429. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13430. fi
  13431. if test -z "${HAVE_LIBXML2_TRUE}" && test -z "${HAVE_LIBXML2_FALSE}"; then
  13432. as_fn_error "conditional \"HAVE_LIBXML2\" was never defined.
  13433. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13434. fi
  13435. if test -z "${HAVE_LIBEXPAT_TRUE}" && test -z "${HAVE_LIBEXPAT_FALSE}"; then
  13436. as_fn_error "conditional \"HAVE_LIBEXPAT\" was never defined.
  13437. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13438. fi
  13439. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  13440. as_fn_error "conditional \"ENABLE_ASYNC_DNS\" was never defined.
  13441. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13442. fi
  13443. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  13444. as_fn_error "conditional \"ENABLE_ASYNC_DNS\" was never defined.
  13445. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13446. fi
  13447. if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
  13448. as_fn_error "conditional \"HAVE_LIBZ\" was never defined.
  13449. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13450. fi
  13451. if test -z "${HAVE_SQLITE3_TRUE}" && test -z "${HAVE_SQLITE3_FALSE}"; then
  13452. as_fn_error "conditional \"HAVE_SQLITE3\" was never defined.
  13453. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13454. fi
  13455. if test -z "${HAVE_EPOLL_TRUE}" && test -z "${HAVE_EPOLL_FALSE}"; then
  13456. as_fn_error "conditional \"HAVE_EPOLL\" was never defined.
  13457. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13458. fi
  13459. if test -z "${HAVE_POSIX_FALLOCATE_TRUE}" && test -z "${HAVE_POSIX_FALLOCATE_FALSE}"; then
  13460. as_fn_error "conditional \"HAVE_POSIX_FALLOCATE\" was never defined.
  13461. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13462. fi
  13463. if test -z "${HAVE_ASCTIME_R_TRUE}" && test -z "${HAVE_ASCTIME_R_FALSE}"; then
  13464. as_fn_error "conditional \"HAVE_ASCTIME_R\" was never defined.
  13465. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13466. fi
  13467. if test -z "${HAVE_ASCTIME_R_TRUE}" && test -z "${HAVE_ASCTIME_R_FALSE}"; then
  13468. as_fn_error "conditional \"HAVE_ASCTIME_R\" was never defined.
  13469. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13470. fi
  13471. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  13472. as_fn_error "conditional \"HAVE_BASENAME\" was never defined.
  13473. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13474. fi
  13475. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  13476. as_fn_error "conditional \"HAVE_BASENAME\" was never defined.
  13477. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13478. fi
  13479. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  13480. as_fn_error "conditional \"HAVE_GAI_STRERROR\" was never defined.
  13481. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13482. fi
  13483. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  13484. as_fn_error "conditional \"HAVE_GAI_STRERROR\" was never defined.
  13485. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13486. fi
  13487. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  13488. as_fn_error "conditional \"HAVE_GETADDRINFO\" was never defined.
  13489. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13490. fi
  13491. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  13492. as_fn_error "conditional \"HAVE_GETADDRINFO\" was never defined.
  13493. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13494. fi
  13495. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  13496. as_fn_error "conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  13497. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13498. fi
  13499. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  13500. as_fn_error "conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  13501. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13502. fi
  13503. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  13504. as_fn_error "conditional \"HAVE_INET_ATON\" was never defined.
  13505. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13506. fi
  13507. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  13508. as_fn_error "conditional \"HAVE_INET_ATON\" was never defined.
  13509. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13510. fi
  13511. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  13512. as_fn_error "conditional \"HAVE_LOCALTIME_R\" was never defined.
  13513. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13514. fi
  13515. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  13516. as_fn_error "conditional \"HAVE_LOCALTIME_R\" was never defined.
  13517. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13518. fi
  13519. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  13520. as_fn_error "conditional \"HAVE_STRPTIME\" was never defined.
  13521. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13522. fi
  13523. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  13524. as_fn_error "conditional \"HAVE_STRPTIME\" was never defined.
  13525. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13526. fi
  13527. if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
  13528. as_fn_error "conditional \"HAVE_TIMEGM\" was never defined.
  13529. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13530. fi
  13531. if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
  13532. as_fn_error "conditional \"HAVE_TIMEGM\" was never defined.
  13533. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13534. fi
  13535. if test -z "${HAVE_DAEMON_TRUE}" && test -z "${HAVE_DAEMON_FALSE}"; then
  13536. as_fn_error "conditional \"HAVE_DAEMON\" was never defined.
  13537. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13538. fi
  13539. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  13540. as_fn_error "conditional \"HAVE_GETADDRINFO\" was never defined.
  13541. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13542. fi
  13543. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  13544. as_fn_error "conditional \"HAVE_GAI_STRERROR\" was never defined.
  13545. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13546. fi
  13547. : ${CONFIG_STATUS=./config.status}
  13548. ac_write_fail=0
  13549. ac_clean_files_save=$ac_clean_files
  13550. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  13551. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  13552. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  13553. as_write_fail=0
  13554. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  13555. #! $SHELL
  13556. # Generated by $as_me.
  13557. # Run this file to recreate the current configuration.
  13558. # Compiler output produced by configure, useful for debugging
  13559. # configure, is in config.log if it exists.
  13560. debug=false
  13561. ac_cs_recheck=false
  13562. ac_cs_silent=false
  13563. SHELL=\${CONFIG_SHELL-$SHELL}
  13564. export SHELL
  13565. _ASEOF
  13566. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  13567. ## -------------------- ##
  13568. ## M4sh Initialization. ##
  13569. ## -------------------- ##
  13570. # Be more Bourne compatible
  13571. DUALCASE=1; export DUALCASE # for MKS sh
  13572. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  13573. emulate sh
  13574. NULLCMD=:
  13575. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  13576. # is contrary to our usage. Disable this feature.
  13577. alias -g '${1+"$@"}'='"$@"'
  13578. setopt NO_GLOB_SUBST
  13579. else
  13580. case `(set -o) 2>/dev/null` in #(
  13581. *posix*) :
  13582. set -o posix ;; #(
  13583. *) :
  13584. ;;
  13585. esac
  13586. fi
  13587. as_nl='
  13588. '
  13589. export as_nl
  13590. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  13591. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  13592. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  13593. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  13594. # Prefer a ksh shell builtin over an external printf program on Solaris,
  13595. # but without wasting forks for bash or zsh.
  13596. if test -z "$BASH_VERSION$ZSH_VERSION" \
  13597. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  13598. as_echo='print -r --'
  13599. as_echo_n='print -rn --'
  13600. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  13601. as_echo='printf %s\n'
  13602. as_echo_n='printf %s'
  13603. else
  13604. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  13605. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  13606. as_echo_n='/usr/ucb/echo -n'
  13607. else
  13608. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  13609. as_echo_n_body='eval
  13610. arg=$1;
  13611. case $arg in #(
  13612. *"$as_nl"*)
  13613. expr "X$arg" : "X\\(.*\\)$as_nl";
  13614. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  13615. esac;
  13616. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  13617. '
  13618. export as_echo_n_body
  13619. as_echo_n='sh -c $as_echo_n_body as_echo'
  13620. fi
  13621. export as_echo_body
  13622. as_echo='sh -c $as_echo_body as_echo'
  13623. fi
  13624. # The user is always right.
  13625. if test "${PATH_SEPARATOR+set}" != set; then
  13626. PATH_SEPARATOR=:
  13627. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  13628. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  13629. PATH_SEPARATOR=';'
  13630. }
  13631. fi
  13632. # IFS
  13633. # We need space, tab and new line, in precisely that order. Quoting is
  13634. # there to prevent editors from complaining about space-tab.
  13635. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  13636. # splitting by setting IFS to empty value.)
  13637. IFS=" "" $as_nl"
  13638. # Find who we are. Look in the path if we contain no directory separator.
  13639. case $0 in #((
  13640. *[\\/]* ) as_myself=$0 ;;
  13641. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13642. for as_dir in $PATH
  13643. do
  13644. IFS=$as_save_IFS
  13645. test -z "$as_dir" && as_dir=.
  13646. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  13647. done
  13648. IFS=$as_save_IFS
  13649. ;;
  13650. esac
  13651. # We did not find ourselves, most probably we were run as `sh COMMAND'
  13652. # in which case we are not to be found in the path.
  13653. if test "x$as_myself" = x; then
  13654. as_myself=$0
  13655. fi
  13656. if test ! -f "$as_myself"; then
  13657. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  13658. exit 1
  13659. fi
  13660. # Unset variables that we do not need and which cause bugs (e.g. in
  13661. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  13662. # suppresses any "Segmentation fault" message there. '((' could
  13663. # trigger a bug in pdksh 5.2.14.
  13664. for as_var in BASH_ENV ENV MAIL MAILPATH
  13665. do eval test x\${$as_var+set} = xset \
  13666. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  13667. done
  13668. PS1='$ '
  13669. PS2='> '
  13670. PS4='+ '
  13671. # NLS nuisances.
  13672. LC_ALL=C
  13673. export LC_ALL
  13674. LANGUAGE=C
  13675. export LANGUAGE
  13676. # CDPATH.
  13677. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13678. # as_fn_error ERROR [LINENO LOG_FD]
  13679. # ---------------------------------
  13680. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  13681. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  13682. # script with status $?, using 1 if that was 0.
  13683. as_fn_error ()
  13684. {
  13685. as_status=$?; test $as_status -eq 0 && as_status=1
  13686. if test "$3"; then
  13687. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  13688. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  13689. fi
  13690. $as_echo "$as_me: error: $1" >&2
  13691. as_fn_exit $as_status
  13692. } # as_fn_error
  13693. # as_fn_set_status STATUS
  13694. # -----------------------
  13695. # Set $? to STATUS, without forking.
  13696. as_fn_set_status ()
  13697. {
  13698. return $1
  13699. } # as_fn_set_status
  13700. # as_fn_exit STATUS
  13701. # -----------------
  13702. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  13703. as_fn_exit ()
  13704. {
  13705. set +e
  13706. as_fn_set_status $1
  13707. exit $1
  13708. } # as_fn_exit
  13709. # as_fn_unset VAR
  13710. # ---------------
  13711. # Portably unset VAR.
  13712. as_fn_unset ()
  13713. {
  13714. { eval $1=; unset $1;}
  13715. }
  13716. as_unset=as_fn_unset
  13717. # as_fn_append VAR VALUE
  13718. # ----------------------
  13719. # Append the text in VALUE to the end of the definition contained in VAR. Take
  13720. # advantage of any shell optimizations that allow amortized linear growth over
  13721. # repeated appends, instead of the typical quadratic growth present in naive
  13722. # implementations.
  13723. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  13724. eval 'as_fn_append ()
  13725. {
  13726. eval $1+=\$2
  13727. }'
  13728. else
  13729. as_fn_append ()
  13730. {
  13731. eval $1=\$$1\$2
  13732. }
  13733. fi # as_fn_append
  13734. # as_fn_arith ARG...
  13735. # ------------------
  13736. # Perform arithmetic evaluation on the ARGs, and store the result in the
  13737. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  13738. # must be portable across $(()) and expr.
  13739. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  13740. eval 'as_fn_arith ()
  13741. {
  13742. as_val=$(( $* ))
  13743. }'
  13744. else
  13745. as_fn_arith ()
  13746. {
  13747. as_val=`expr "$@" || test $? -eq 1`
  13748. }
  13749. fi # as_fn_arith
  13750. if expr a : '\(a\)' >/dev/null 2>&1 &&
  13751. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  13752. as_expr=expr
  13753. else
  13754. as_expr=false
  13755. fi
  13756. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  13757. as_basename=basename
  13758. else
  13759. as_basename=false
  13760. fi
  13761. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  13762. as_dirname=dirname
  13763. else
  13764. as_dirname=false
  13765. fi
  13766. as_me=`$as_basename -- "$0" ||
  13767. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  13768. X"$0" : 'X\(//\)$' \| \
  13769. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  13770. $as_echo X/"$0" |
  13771. sed '/^.*\/\([^/][^/]*\)\/*$/{
  13772. s//\1/
  13773. q
  13774. }
  13775. /^X\/\(\/\/\)$/{
  13776. s//\1/
  13777. q
  13778. }
  13779. /^X\/\(\/\).*/{
  13780. s//\1/
  13781. q
  13782. }
  13783. s/.*/./; q'`
  13784. # Avoid depending upon Character Ranges.
  13785. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  13786. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  13787. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  13788. as_cr_digits='0123456789'
  13789. as_cr_alnum=$as_cr_Letters$as_cr_digits
  13790. ECHO_C= ECHO_N= ECHO_T=
  13791. case `echo -n x` in #(((((
  13792. -n*)
  13793. case `echo 'xy\c'` in
  13794. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  13795. xy) ECHO_C='\c';;
  13796. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  13797. ECHO_T=' ';;
  13798. esac;;
  13799. *)
  13800. ECHO_N='-n';;
  13801. esac
  13802. rm -f conf$$ conf$$.exe conf$$.file
  13803. if test -d conf$$.dir; then
  13804. rm -f conf$$.dir/conf$$.file
  13805. else
  13806. rm -f conf$$.dir
  13807. mkdir conf$$.dir 2>/dev/null
  13808. fi
  13809. if (echo >conf$$.file) 2>/dev/null; then
  13810. if ln -s conf$$.file conf$$ 2>/dev/null; then
  13811. as_ln_s='ln -s'
  13812. # ... but there are two gotchas:
  13813. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  13814. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  13815. # In both cases, we have to default to `cp -p'.
  13816. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  13817. as_ln_s='cp -p'
  13818. elif ln conf$$.file conf$$ 2>/dev/null; then
  13819. as_ln_s=ln
  13820. else
  13821. as_ln_s='cp -p'
  13822. fi
  13823. else
  13824. as_ln_s='cp -p'
  13825. fi
  13826. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  13827. rmdir conf$$.dir 2>/dev/null
  13828. # as_fn_mkdir_p
  13829. # -------------
  13830. # Create "$as_dir" as a directory, including parents if necessary.
  13831. as_fn_mkdir_p ()
  13832. {
  13833. case $as_dir in #(
  13834. -*) as_dir=./$as_dir;;
  13835. esac
  13836. test -d "$as_dir" || eval $as_mkdir_p || {
  13837. as_dirs=
  13838. while :; do
  13839. case $as_dir in #(
  13840. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  13841. *) as_qdir=$as_dir;;
  13842. esac
  13843. as_dirs="'$as_qdir' $as_dirs"
  13844. as_dir=`$as_dirname -- "$as_dir" ||
  13845. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13846. X"$as_dir" : 'X\(//\)[^/]' \| \
  13847. X"$as_dir" : 'X\(//\)$' \| \
  13848. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  13849. $as_echo X"$as_dir" |
  13850. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13851. s//\1/
  13852. q
  13853. }
  13854. /^X\(\/\/\)[^/].*/{
  13855. s//\1/
  13856. q
  13857. }
  13858. /^X\(\/\/\)$/{
  13859. s//\1/
  13860. q
  13861. }
  13862. /^X\(\/\).*/{
  13863. s//\1/
  13864. q
  13865. }
  13866. s/.*/./; q'`
  13867. test -d "$as_dir" && break
  13868. done
  13869. test -z "$as_dirs" || eval "mkdir $as_dirs"
  13870. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  13871. } # as_fn_mkdir_p
  13872. if mkdir -p . 2>/dev/null; then
  13873. as_mkdir_p='mkdir -p "$as_dir"'
  13874. else
  13875. test -d ./-p && rmdir ./-p
  13876. as_mkdir_p=false
  13877. fi
  13878. if test -x / >/dev/null 2>&1; then
  13879. as_test_x='test -x'
  13880. else
  13881. if ls -dL / >/dev/null 2>&1; then
  13882. as_ls_L_option=L
  13883. else
  13884. as_ls_L_option=
  13885. fi
  13886. as_test_x='
  13887. eval sh -c '\''
  13888. if test -d "$1"; then
  13889. test -d "$1/.";
  13890. else
  13891. case $1 in #(
  13892. -*)set "./$1";;
  13893. esac;
  13894. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  13895. ???[sx]*):;;*)false;;esac;fi
  13896. '\'' sh
  13897. '
  13898. fi
  13899. as_executable_p=$as_test_x
  13900. # Sed expression to map a string onto a valid CPP name.
  13901. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  13902. # Sed expression to map a string onto a valid variable name.
  13903. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  13904. exec 6>&1
  13905. ## ----------------------------------- ##
  13906. ## Main body of $CONFIG_STATUS script. ##
  13907. ## ----------------------------------- ##
  13908. _ASEOF
  13909. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  13910. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13911. # Save the log message, to keep $0 and so on meaningful, and to
  13912. # report actual input values of CONFIG_FILES etc. instead of their
  13913. # values after options handling.
  13914. ac_log="
  13915. This file was extended by aria2 $as_me 1.9.1, which was
  13916. generated by GNU Autoconf 2.65. Invocation command line was
  13917. CONFIG_FILES = $CONFIG_FILES
  13918. CONFIG_HEADERS = $CONFIG_HEADERS
  13919. CONFIG_LINKS = $CONFIG_LINKS
  13920. CONFIG_COMMANDS = $CONFIG_COMMANDS
  13921. $ $0 $@
  13922. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  13923. "
  13924. _ACEOF
  13925. case $ac_config_files in *"
  13926. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  13927. esac
  13928. case $ac_config_headers in *"
  13929. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  13930. esac
  13931. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13932. # Files that config.status was made for.
  13933. config_files="$ac_config_files"
  13934. config_headers="$ac_config_headers"
  13935. config_commands="$ac_config_commands"
  13936. _ACEOF
  13937. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13938. ac_cs_usage="\
  13939. \`$as_me' instantiates files and other configuration actions
  13940. from templates according to the current configuration. Unless the files
  13941. and actions are specified as TAGs, all are instantiated by default.
  13942. Usage: $0 [OPTION]... [TAG]...
  13943. -h, --help print this help, then exit
  13944. -V, --version print version number and configuration settings, then exit
  13945. --config print configuration, then exit
  13946. -q, --quiet, --silent
  13947. do not print progress messages
  13948. -d, --debug don't remove temporary files
  13949. --recheck update $as_me by reconfiguring in the same conditions
  13950. --file=FILE[:TEMPLATE]
  13951. instantiate the configuration file FILE
  13952. --header=FILE[:TEMPLATE]
  13953. instantiate the configuration header FILE
  13954. Configuration files:
  13955. $config_files
  13956. Configuration headers:
  13957. $config_headers
  13958. Configuration commands:
  13959. $config_commands
  13960. Report bugs to <t-tujikawa@users.sourceforge.net>.
  13961. aria2 home page: <http://aria2.sourceforge.net/>."
  13962. _ACEOF
  13963. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13964. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  13965. ac_cs_version="\\
  13966. aria2 config.status 1.9.1
  13967. configured by $0, generated by GNU Autoconf 2.65,
  13968. with options \\"\$ac_cs_config\\"
  13969. Copyright (C) 2009 Free Software Foundation, Inc.
  13970. This config.status script is free software; the Free Software Foundation
  13971. gives unlimited permission to copy, distribute and modify it."
  13972. ac_pwd='$ac_pwd'
  13973. srcdir='$srcdir'
  13974. INSTALL='$INSTALL'
  13975. MKDIR_P='$MKDIR_P'
  13976. AWK='$AWK'
  13977. test -n "\$AWK" || AWK=awk
  13978. _ACEOF
  13979. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13980. # The default lists apply if the user does not specify any file.
  13981. ac_need_defaults=:
  13982. while test $# != 0
  13983. do
  13984. case $1 in
  13985. --*=*)
  13986. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  13987. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  13988. ac_shift=:
  13989. ;;
  13990. *)
  13991. ac_option=$1
  13992. ac_optarg=$2
  13993. ac_shift=shift
  13994. ;;
  13995. esac
  13996. case $ac_option in
  13997. # Handling of the options.
  13998. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  13999. ac_cs_recheck=: ;;
  14000. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  14001. $as_echo "$ac_cs_version"; exit ;;
  14002. --config | --confi | --conf | --con | --co | --c )
  14003. $as_echo "$ac_cs_config"; exit ;;
  14004. --debug | --debu | --deb | --de | --d | -d )
  14005. debug=: ;;
  14006. --file | --fil | --fi | --f )
  14007. $ac_shift
  14008. case $ac_optarg in
  14009. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14010. esac
  14011. as_fn_append CONFIG_FILES " '$ac_optarg'"
  14012. ac_need_defaults=false;;
  14013. --header | --heade | --head | --hea )
  14014. $ac_shift
  14015. case $ac_optarg in
  14016. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14017. esac
  14018. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  14019. ac_need_defaults=false;;
  14020. --he | --h)
  14021. # Conflict between --help and --header
  14022. as_fn_error "ambiguous option: \`$1'
  14023. Try \`$0 --help' for more information.";;
  14024. --help | --hel | -h )
  14025. $as_echo "$ac_cs_usage"; exit ;;
  14026. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  14027. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  14028. ac_cs_silent=: ;;
  14029. # This is an error.
  14030. -*) as_fn_error "unrecognized option: \`$1'
  14031. Try \`$0 --help' for more information." ;;
  14032. *) as_fn_append ac_config_targets " $1"
  14033. ac_need_defaults=false ;;
  14034. esac
  14035. shift
  14036. done
  14037. ac_configure_extra_args=
  14038. if $ac_cs_silent; then
  14039. exec 6>/dev/null
  14040. ac_configure_extra_args="$ac_configure_extra_args --silent"
  14041. fi
  14042. _ACEOF
  14043. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14044. if \$ac_cs_recheck; then
  14045. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  14046. shift
  14047. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  14048. CONFIG_SHELL='$SHELL'
  14049. export CONFIG_SHELL
  14050. exec "\$@"
  14051. fi
  14052. _ACEOF
  14053. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14054. exec 5>>config.log
  14055. {
  14056. echo
  14057. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  14058. ## Running $as_me. ##
  14059. _ASBOX
  14060. $as_echo "$ac_log"
  14061. } >&5
  14062. _ACEOF
  14063. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14064. #
  14065. # INIT-COMMANDS
  14066. #
  14067. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  14068. # Capture the value of obsolete ALL_LINGUAS because we need it to compute
  14069. # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
  14070. # from automake < 1.5.
  14071. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
  14072. # Capture the value of LINGUAS because we need it to compute CATALOGS.
  14073. LINGUAS="${LINGUAS-%UNSET%}"
  14074. _ACEOF
  14075. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14076. # Handling of arguments.
  14077. for ac_config_target in $ac_config_targets
  14078. do
  14079. case $ac_config_target in
  14080. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  14081. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  14082. "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
  14083. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  14084. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  14085. "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  14086. "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
  14087. "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
  14088. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  14089. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  14090. *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  14091. esac
  14092. done
  14093. # If the user did not use the arguments to specify the items to instantiate,
  14094. # then the envvar interface is used. Set only those that are not.
  14095. # We use the long form for the default assignment because of an extremely
  14096. # bizarre bug on SunOS 4.1.3.
  14097. if $ac_need_defaults; then
  14098. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  14099. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  14100. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  14101. fi
  14102. # Have a temporary directory for convenience. Make it in the build tree
  14103. # simply because there is no reason against having it here, and in addition,
  14104. # creating and moving files from /tmp can sometimes cause problems.
  14105. # Hook for its removal unless debugging.
  14106. # Note that there is a small window in which the directory will not be cleaned:
  14107. # after its creation but before its name has been assigned to `$tmp'.
  14108. $debug ||
  14109. {
  14110. tmp=
  14111. trap 'exit_status=$?
  14112. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  14113. ' 0
  14114. trap 'as_fn_exit 1' 1 2 13 15
  14115. }
  14116. # Create a (secure) tmp directory for tmp files.
  14117. {
  14118. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  14119. test -n "$tmp" && test -d "$tmp"
  14120. } ||
  14121. {
  14122. tmp=./conf$$-$RANDOM
  14123. (umask 077 && mkdir "$tmp")
  14124. } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  14125. # Set up the scripts for CONFIG_FILES section.
  14126. # No need to generate them if there are no CONFIG_FILES.
  14127. # This happens for instance with `./config.status config.h'.
  14128. if test -n "$CONFIG_FILES"; then
  14129. ac_cr=`echo X | tr X '\015'`
  14130. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  14131. # But we know of no other shell where ac_cr would be empty at this
  14132. # point, so we can use a bashism as a fallback.
  14133. if test "x$ac_cr" = x; then
  14134. eval ac_cr=\$\'\\r\'
  14135. fi
  14136. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  14137. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  14138. ac_cs_awk_cr='\r'
  14139. else
  14140. ac_cs_awk_cr=$ac_cr
  14141. fi
  14142. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  14143. _ACEOF
  14144. {
  14145. echo "cat >conf$$subs.awk <<_ACEOF" &&
  14146. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  14147. echo "_ACEOF"
  14148. } >conf$$subs.sh ||
  14149. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  14150. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  14151. ac_delim='%!_!# '
  14152. for ac_last_try in false false false false false :; do
  14153. . ./conf$$subs.sh ||
  14154. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  14155. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  14156. if test $ac_delim_n = $ac_delim_num; then
  14157. break
  14158. elif $ac_last_try; then
  14159. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  14160. else
  14161. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  14162. fi
  14163. done
  14164. rm -f conf$$subs.sh
  14165. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14166. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  14167. _ACEOF
  14168. sed -n '
  14169. h
  14170. s/^/S["/; s/!.*/"]=/
  14171. p
  14172. g
  14173. s/^[^!]*!//
  14174. :repl
  14175. t repl
  14176. s/'"$ac_delim"'$//
  14177. t delim
  14178. :nl
  14179. h
  14180. s/\(.\{148\}\)..*/\1/
  14181. t more1
  14182. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  14183. p
  14184. n
  14185. b repl
  14186. :more1
  14187. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14188. p
  14189. g
  14190. s/.\{148\}//
  14191. t nl
  14192. :delim
  14193. h
  14194. s/\(.\{148\}\)..*/\1/
  14195. t more2
  14196. s/["\\]/\\&/g; s/^/"/; s/$/"/
  14197. p
  14198. b
  14199. :more2
  14200. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14201. p
  14202. g
  14203. s/.\{148\}//
  14204. t delim
  14205. ' <conf$$subs.awk | sed '
  14206. /^[^""]/{
  14207. N
  14208. s/\n//
  14209. }
  14210. ' >>$CONFIG_STATUS || ac_write_fail=1
  14211. rm -f conf$$subs.awk
  14212. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14213. _ACAWK
  14214. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  14215. for (key in S) S_is_set[key] = 1
  14216. FS = ""
  14217. }
  14218. {
  14219. line = $ 0
  14220. nfields = split(line, field, "@")
  14221. substed = 0
  14222. len = length(field[1])
  14223. for (i = 2; i < nfields; i++) {
  14224. key = field[i]
  14225. keylen = length(key)
  14226. if (S_is_set[key]) {
  14227. value = S[key]
  14228. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  14229. len += length(value) + length(field[++i])
  14230. substed = 1
  14231. } else
  14232. len += 1 + keylen
  14233. }
  14234. print line
  14235. }
  14236. _ACAWK
  14237. _ACEOF
  14238. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14239. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  14240. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  14241. else
  14242. cat
  14243. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  14244. || as_fn_error "could not setup config files machinery" "$LINENO" 5
  14245. _ACEOF
  14246. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  14247. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  14248. # trailing colons and then remove the whole line if VPATH becomes empty
  14249. # (actually we leave an empty line to preserve line numbers).
  14250. if test "x$srcdir" = x.; then
  14251. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  14252. s/:*\$(srcdir):*/:/
  14253. s/:*\${srcdir}:*/:/
  14254. s/:*@srcdir@:*/:/
  14255. s/^\([^=]*=[ ]*\):*/\1/
  14256. s/:*$//
  14257. s/^[^=]*=[ ]*$//
  14258. }'
  14259. fi
  14260. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14261. fi # test -n "$CONFIG_FILES"
  14262. # Set up the scripts for CONFIG_HEADERS section.
  14263. # No need to generate them if there are no CONFIG_HEADERS.
  14264. # This happens for instance with `./config.status Makefile'.
  14265. if test -n "$CONFIG_HEADERS"; then
  14266. cat >"$tmp/defines.awk" <<\_ACAWK ||
  14267. BEGIN {
  14268. _ACEOF
  14269. # Transform confdefs.h into an awk script `defines.awk', embedded as
  14270. # here-document in config.status, that substitutes the proper values into
  14271. # config.h.in to produce config.h.
  14272. # Create a delimiter string that does not exist in confdefs.h, to ease
  14273. # handling of long lines.
  14274. ac_delim='%!_!# '
  14275. for ac_last_try in false false :; do
  14276. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  14277. if test -z "$ac_t"; then
  14278. break
  14279. elif $ac_last_try; then
  14280. as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  14281. else
  14282. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  14283. fi
  14284. done
  14285. # For the awk script, D is an array of macro values keyed by name,
  14286. # likewise P contains macro parameters if any. Preserve backslash
  14287. # newline sequences.
  14288. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  14289. sed -n '
  14290. s/.\{148\}/&'"$ac_delim"'/g
  14291. t rset
  14292. :rset
  14293. s/^[ ]*#[ ]*define[ ][ ]*/ /
  14294. t def
  14295. d
  14296. :def
  14297. s/\\$//
  14298. t bsnl
  14299. s/["\\]/\\&/g
  14300. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  14301. D["\1"]=" \3"/p
  14302. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  14303. d
  14304. :bsnl
  14305. s/["\\]/\\&/g
  14306. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  14307. D["\1"]=" \3\\\\\\n"\\/p
  14308. t cont
  14309. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  14310. t cont
  14311. d
  14312. :cont
  14313. n
  14314. s/.\{148\}/&'"$ac_delim"'/g
  14315. t clear
  14316. :clear
  14317. s/\\$//
  14318. t bsnlc
  14319. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  14320. d
  14321. :bsnlc
  14322. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  14323. b cont
  14324. ' <confdefs.h | sed '
  14325. s/'"$ac_delim"'/"\\\
  14326. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  14327. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14328. for (key in D) D_is_set[key] = 1
  14329. FS = ""
  14330. }
  14331. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  14332. line = \$ 0
  14333. split(line, arg, " ")
  14334. if (arg[1] == "#") {
  14335. defundef = arg[2]
  14336. mac1 = arg[3]
  14337. } else {
  14338. defundef = substr(arg[1], 2)
  14339. mac1 = arg[2]
  14340. }
  14341. split(mac1, mac2, "(") #)
  14342. macro = mac2[1]
  14343. prefix = substr(line, 1, index(line, defundef) - 1)
  14344. if (D_is_set[macro]) {
  14345. # Preserve the white space surrounding the "#".
  14346. print prefix "define", macro P[macro] D[macro]
  14347. next
  14348. } else {
  14349. # Replace #undef with comments. This is necessary, for example,
  14350. # in the case of _POSIX_SOURCE, which is predefined and required
  14351. # on some systems where configure will not decide to define it.
  14352. if (defundef == "undef") {
  14353. print "/*", prefix defundef, macro, "*/"
  14354. next
  14355. }
  14356. }
  14357. }
  14358. { print }
  14359. _ACAWK
  14360. _ACEOF
  14361. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14362. as_fn_error "could not setup config headers machinery" "$LINENO" 5
  14363. fi # test -n "$CONFIG_HEADERS"
  14364. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  14365. shift
  14366. for ac_tag
  14367. do
  14368. case $ac_tag in
  14369. :[FHLC]) ac_mode=$ac_tag; continue;;
  14370. esac
  14371. case $ac_mode$ac_tag in
  14372. :[FHL]*:*);;
  14373. :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  14374. :[FH]-) ac_tag=-:-;;
  14375. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  14376. esac
  14377. ac_save_IFS=$IFS
  14378. IFS=:
  14379. set x $ac_tag
  14380. IFS=$ac_save_IFS
  14381. shift
  14382. ac_file=$1
  14383. shift
  14384. case $ac_mode in
  14385. :L) ac_source=$1;;
  14386. :[FH])
  14387. ac_file_inputs=
  14388. for ac_f
  14389. do
  14390. case $ac_f in
  14391. -) ac_f="$tmp/stdin";;
  14392. *) # Look for the file first in the build tree, then in the source tree
  14393. # (if the path is not absolute). The absolute path cannot be DOS-style,
  14394. # because $ac_f cannot contain `:'.
  14395. test -f "$ac_f" ||
  14396. case $ac_f in
  14397. [\\/$]*) false;;
  14398. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  14399. esac ||
  14400. as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  14401. esac
  14402. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  14403. as_fn_append ac_file_inputs " '$ac_f'"
  14404. done
  14405. # Let's still pretend it is `configure' which instantiates (i.e., don't
  14406. # use $as_me), people would be surprised to read:
  14407. # /* config.h. Generated by config.status. */
  14408. configure_input='Generated from '`
  14409. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  14410. `' by configure.'
  14411. if test x"$ac_file" != x-; then
  14412. configure_input="$ac_file. $configure_input"
  14413. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  14414. $as_echo "$as_me: creating $ac_file" >&6;}
  14415. fi
  14416. # Neutralize special characters interpreted by sed in replacement strings.
  14417. case $configure_input in #(
  14418. *\&* | *\|* | *\\* )
  14419. ac_sed_conf_input=`$as_echo "$configure_input" |
  14420. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  14421. *) ac_sed_conf_input=$configure_input;;
  14422. esac
  14423. case $ac_tag in
  14424. *:-:* | *:-) cat >"$tmp/stdin" \
  14425. || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  14426. esac
  14427. ;;
  14428. esac
  14429. ac_dir=`$as_dirname -- "$ac_file" ||
  14430. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14431. X"$ac_file" : 'X\(//\)[^/]' \| \
  14432. X"$ac_file" : 'X\(//\)$' \| \
  14433. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  14434. $as_echo X"$ac_file" |
  14435. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14436. s//\1/
  14437. q
  14438. }
  14439. /^X\(\/\/\)[^/].*/{
  14440. s//\1/
  14441. q
  14442. }
  14443. /^X\(\/\/\)$/{
  14444. s//\1/
  14445. q
  14446. }
  14447. /^X\(\/\).*/{
  14448. s//\1/
  14449. q
  14450. }
  14451. s/.*/./; q'`
  14452. as_dir="$ac_dir"; as_fn_mkdir_p
  14453. ac_builddir=.
  14454. case "$ac_dir" in
  14455. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14456. *)
  14457. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  14458. # A ".." for each directory in $ac_dir_suffix.
  14459. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  14460. case $ac_top_builddir_sub in
  14461. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14462. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  14463. esac ;;
  14464. esac
  14465. ac_abs_top_builddir=$ac_pwd
  14466. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  14467. # for backward compatibility:
  14468. ac_top_builddir=$ac_top_build_prefix
  14469. case $srcdir in
  14470. .) # We are building in place.
  14471. ac_srcdir=.
  14472. ac_top_srcdir=$ac_top_builddir_sub
  14473. ac_abs_top_srcdir=$ac_pwd ;;
  14474. [\\/]* | ?:[\\/]* ) # Absolute name.
  14475. ac_srcdir=$srcdir$ac_dir_suffix;
  14476. ac_top_srcdir=$srcdir
  14477. ac_abs_top_srcdir=$srcdir ;;
  14478. *) # Relative name.
  14479. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  14480. ac_top_srcdir=$ac_top_build_prefix$srcdir
  14481. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  14482. esac
  14483. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  14484. case $ac_mode in
  14485. :F)
  14486. #
  14487. # CONFIG_FILE
  14488. #
  14489. case $INSTALL in
  14490. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  14491. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  14492. esac
  14493. ac_MKDIR_P=$MKDIR_P
  14494. case $MKDIR_P in
  14495. [\\/$]* | ?:[\\/]* ) ;;
  14496. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  14497. esac
  14498. _ACEOF
  14499. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14500. # If the template does not know about datarootdir, expand it.
  14501. # FIXME: This hack should be removed a few years after 2.60.
  14502. ac_datarootdir_hack=; ac_datarootdir_seen=
  14503. ac_sed_dataroot='
  14504. /datarootdir/ {
  14505. p
  14506. q
  14507. }
  14508. /@datadir@/p
  14509. /@docdir@/p
  14510. /@infodir@/p
  14511. /@localedir@/p
  14512. /@mandir@/p'
  14513. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  14514. *datarootdir*) ac_datarootdir_seen=yes;;
  14515. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  14516. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  14517. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  14518. _ACEOF
  14519. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14520. ac_datarootdir_hack='
  14521. s&@datadir@&$datadir&g
  14522. s&@docdir@&$docdir&g
  14523. s&@infodir@&$infodir&g
  14524. s&@localedir@&$localedir&g
  14525. s&@mandir@&$mandir&g
  14526. s&\\\${datarootdir}&$datarootdir&g' ;;
  14527. esac
  14528. _ACEOF
  14529. # Neutralize VPATH when `$srcdir' = `.'.
  14530. # Shell code in configure.ac might set extrasub.
  14531. # FIXME: do we really want to maintain this feature?
  14532. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14533. ac_sed_extra="$ac_vpsub
  14534. $extrasub
  14535. _ACEOF
  14536. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14537. :t
  14538. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  14539. s|@configure_input@|$ac_sed_conf_input|;t t
  14540. s&@top_builddir@&$ac_top_builddir_sub&;t t
  14541. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  14542. s&@srcdir@&$ac_srcdir&;t t
  14543. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  14544. s&@top_srcdir@&$ac_top_srcdir&;t t
  14545. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  14546. s&@builddir@&$ac_builddir&;t t
  14547. s&@abs_builddir@&$ac_abs_builddir&;t t
  14548. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  14549. s&@INSTALL@&$ac_INSTALL&;t t
  14550. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  14551. $ac_datarootdir_hack
  14552. "
  14553. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  14554. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14555. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  14556. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  14557. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  14558. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14559. which seems to be undefined. Please make sure it is defined." >&5
  14560. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14561. which seems to be undefined. Please make sure it is defined." >&2;}
  14562. rm -f "$tmp/stdin"
  14563. case $ac_file in
  14564. -) cat "$tmp/out" && rm -f "$tmp/out";;
  14565. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  14566. esac \
  14567. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14568. ;;
  14569. :H)
  14570. #
  14571. # CONFIG_HEADER
  14572. #
  14573. if test x"$ac_file" != x-; then
  14574. {
  14575. $as_echo "/* $configure_input */" \
  14576. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  14577. } >"$tmp/config.h" \
  14578. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14579. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  14580. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  14581. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  14582. else
  14583. rm -f "$ac_file"
  14584. mv "$tmp/config.h" "$ac_file" \
  14585. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14586. fi
  14587. else
  14588. $as_echo "/* $configure_input */" \
  14589. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  14590. || as_fn_error "could not create -" "$LINENO" 5
  14591. fi
  14592. # Compute "$ac_file"'s index in $config_headers.
  14593. _am_arg="$ac_file"
  14594. _am_stamp_count=1
  14595. for _am_header in $config_headers :; do
  14596. case $_am_header in
  14597. $_am_arg | $_am_arg:* )
  14598. break ;;
  14599. * )
  14600. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  14601. esac
  14602. done
  14603. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  14604. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14605. X"$_am_arg" : 'X\(//\)[^/]' \| \
  14606. X"$_am_arg" : 'X\(//\)$' \| \
  14607. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  14608. $as_echo X"$_am_arg" |
  14609. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14610. s//\1/
  14611. q
  14612. }
  14613. /^X\(\/\/\)[^/].*/{
  14614. s//\1/
  14615. q
  14616. }
  14617. /^X\(\/\/\)$/{
  14618. s//\1/
  14619. q
  14620. }
  14621. /^X\(\/\).*/{
  14622. s//\1/
  14623. q
  14624. }
  14625. s/.*/./; q'`/stamp-h$_am_stamp_count
  14626. ;;
  14627. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  14628. $as_echo "$as_me: executing $ac_file commands" >&6;}
  14629. ;;
  14630. esac
  14631. case $ac_file$ac_mode in
  14632. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  14633. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  14634. # are listed without --file. Let's play safe and only enable the eval
  14635. # if we detect the quoting.
  14636. case $CONFIG_FILES in
  14637. *\'*) eval set x "$CONFIG_FILES" ;;
  14638. *) set x $CONFIG_FILES ;;
  14639. esac
  14640. shift
  14641. for mf
  14642. do
  14643. # Strip MF so we end up with the name of the file.
  14644. mf=`echo "$mf" | sed -e 's/:.*$//'`
  14645. # Check whether this is an Automake generated Makefile or not.
  14646. # We used to match only the files named `Makefile.in', but
  14647. # some people rename them; so instead we look at the file content.
  14648. # Grep'ing the first line is not enough: some people post-process
  14649. # each Makefile.in and add a new line on top of each file to say so.
  14650. # Grep'ing the whole file is not good either: AIX grep has a line
  14651. # limit of 2048, but all sed's we know have understand at least 4000.
  14652. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  14653. dirpart=`$as_dirname -- "$mf" ||
  14654. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14655. X"$mf" : 'X\(//\)[^/]' \| \
  14656. X"$mf" : 'X\(//\)$' \| \
  14657. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  14658. $as_echo X"$mf" |
  14659. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14660. s//\1/
  14661. q
  14662. }
  14663. /^X\(\/\/\)[^/].*/{
  14664. s//\1/
  14665. q
  14666. }
  14667. /^X\(\/\/\)$/{
  14668. s//\1/
  14669. q
  14670. }
  14671. /^X\(\/\).*/{
  14672. s//\1/
  14673. q
  14674. }
  14675. s/.*/./; q'`
  14676. else
  14677. continue
  14678. fi
  14679. # Extract the definition of DEPDIR, am__include, and am__quote
  14680. # from the Makefile without running `make'.
  14681. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  14682. test -z "$DEPDIR" && continue
  14683. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  14684. test -z "am__include" && continue
  14685. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  14686. # When using ansi2knr, U may be empty or an underscore; expand it
  14687. U=`sed -n 's/^U = //p' < "$mf"`
  14688. # Find all dependency output files, they are included files with
  14689. # $(DEPDIR) in their names. We invoke sed twice because it is the
  14690. # simplest approach to changing $(DEPDIR) to its actual value in the
  14691. # expansion.
  14692. for file in `sed -n "
  14693. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  14694. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  14695. # Make sure the directory exists.
  14696. test -f "$dirpart/$file" && continue
  14697. fdir=`$as_dirname -- "$file" ||
  14698. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14699. X"$file" : 'X\(//\)[^/]' \| \
  14700. X"$file" : 'X\(//\)$' \| \
  14701. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  14702. $as_echo X"$file" |
  14703. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14704. s//\1/
  14705. q
  14706. }
  14707. /^X\(\/\/\)[^/].*/{
  14708. s//\1/
  14709. q
  14710. }
  14711. /^X\(\/\/\)$/{
  14712. s//\1/
  14713. q
  14714. }
  14715. /^X\(\/\).*/{
  14716. s//\1/
  14717. q
  14718. }
  14719. s/.*/./; q'`
  14720. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  14721. # echo "creating $dirpart/$file"
  14722. echo '# dummy' > "$dirpart/$file"
  14723. done
  14724. done
  14725. }
  14726. ;;
  14727. "po-directories":C)
  14728. for ac_file in $CONFIG_FILES; do
  14729. # Support "outfile[:infile[:infile...]]"
  14730. case "$ac_file" in
  14731. *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  14732. esac
  14733. # PO directories have a Makefile.in generated from Makefile.in.in.
  14734. case "$ac_file" in */Makefile.in)
  14735. # Adjust a relative srcdir.
  14736. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  14737. ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
  14738. ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  14739. # In autoconf-2.13 it is called $ac_given_srcdir.
  14740. # In autoconf-2.50 it is called $srcdir.
  14741. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  14742. case "$ac_given_srcdir" in
  14743. .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  14744. /*) top_srcdir="$ac_given_srcdir" ;;
  14745. *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
  14746. esac
  14747. # Treat a directory as a PO directory if and only if it has a
  14748. # POTFILES.in file. This allows packages to have multiple PO
  14749. # directories under different names or in different locations.
  14750. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
  14751. rm -f "$ac_dir/POTFILES"
  14752. test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
  14753. cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
  14754. POMAKEFILEDEPS="POTFILES.in"
  14755. # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
  14756. # on $ac_dir but don't depend on user-specified configuration
  14757. # parameters.
  14758. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  14759. # The LINGUAS file contains the set of available languages.
  14760. if test -n "$OBSOLETE_ALL_LINGUAS"; then
  14761. test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
  14762. fi
  14763. ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  14764. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  14765. eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  14766. POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  14767. else
  14768. # The set of available languages was given in configure.in.
  14769. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  14770. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
  14771. fi
  14772. # Compute POFILES
  14773. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
  14774. # Compute UPDATEPOFILES
  14775. # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
  14776. # Compute DUMMYPOFILES
  14777. # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
  14778. # Compute GMOFILES
  14779. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
  14780. case "$ac_given_srcdir" in
  14781. .) srcdirpre= ;;
  14782. *) srcdirpre='$(srcdir)/' ;;
  14783. esac
  14784. POFILES=
  14785. UPDATEPOFILES=
  14786. DUMMYPOFILES=
  14787. GMOFILES=
  14788. for lang in $ALL_LINGUAS; do
  14789. POFILES="$POFILES $srcdirpre$lang.po"
  14790. UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  14791. DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  14792. GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  14793. done
  14794. # CATALOGS depends on both $ac_dir and the user's LINGUAS
  14795. # environment variable.
  14796. INST_LINGUAS=
  14797. if test -n "$ALL_LINGUAS"; then
  14798. for presentlang in $ALL_LINGUAS; do
  14799. useit=no
  14800. if test "%UNSET%" != "$LINGUAS"; then
  14801. desiredlanguages="$LINGUAS"
  14802. else
  14803. desiredlanguages="$ALL_LINGUAS"
  14804. fi
  14805. for desiredlang in $desiredlanguages; do
  14806. # Use the presentlang catalog if desiredlang is
  14807. # a. equal to presentlang, or
  14808. # b. a variant of presentlang (because in this case,
  14809. # presentlang can be used as a fallback for messages
  14810. # which are not translated in the desiredlang catalog).
  14811. case "$desiredlang" in
  14812. "$presentlang"*) useit=yes;;
  14813. esac
  14814. done
  14815. if test $useit = yes; then
  14816. INST_LINGUAS="$INST_LINGUAS $presentlang"
  14817. fi
  14818. done
  14819. fi
  14820. CATALOGS=
  14821. if test -n "$INST_LINGUAS"; then
  14822. for lang in $INST_LINGUAS; do
  14823. CATALOGS="$CATALOGS $lang.gmo"
  14824. done
  14825. fi
  14826. test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
  14827. 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"
  14828. for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
  14829. if test -f "$f"; then
  14830. case "$f" in
  14831. *.orig | *.bak | *~) ;;
  14832. *) cat "$f" >> "$ac_dir/Makefile" ;;
  14833. esac
  14834. fi
  14835. done
  14836. fi
  14837. ;;
  14838. esac
  14839. done ;;
  14840. esac
  14841. done # for ac_tag
  14842. as_fn_exit 0
  14843. _ACEOF
  14844. ac_clean_files=$ac_clean_files_save
  14845. test $ac_write_fail = 0 ||
  14846. as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  14847. # configure is writing to config.log, and then calls config.status.
  14848. # config.status does its own redirection, appending to config.log.
  14849. # Unfortunately, on DOS this fails, as config.log is still kept open
  14850. # by configure, so config.status won't be able to write to it; its
  14851. # output is simply discarded. So we exec the FD to /dev/null,
  14852. # effectively closing config.log, so it can be properly (re)opened and
  14853. # appended to by config.status. When coming back to configure, we
  14854. # need to make the FD available again.
  14855. if test "$no_create" != yes; then
  14856. ac_cs_success=:
  14857. ac_config_status_args=
  14858. test "$silent" = yes &&
  14859. ac_config_status_args="$ac_config_status_args --quiet"
  14860. exec 5>/dev/null
  14861. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  14862. exec 5>>config.log
  14863. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  14864. # would make configure fail if this is the last instruction.
  14865. $ac_cs_success || as_fn_exit $?
  14866. fi
  14867. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  14868. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  14869. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  14870. fi
  14871. echo " "
  14872. echo "Build: $build"
  14873. echo "Target: $target"
  14874. echo "Install prefix: $prefix"
  14875. echo "CXXFLAGS: $CXXFLAGS"
  14876. echo "CFLAGS: $CFLAGS"
  14877. echo "CPPFLAGS: $CPPFLAGS"
  14878. echo "LDFLAGS: $LDFLAGS"
  14879. echo "LIBS: $LIBS"
  14880. echo "SQLite3: $have_sqlite3"
  14881. echo "GnuTLS: $have_libgnutls"
  14882. echo "OpenSSL: $have_openssl"
  14883. echo "CA Bundle: $ca_bundle"
  14884. echo "LibXML2: $have_libxml2"
  14885. echo "LibExpat: $have_libexpat"
  14886. echo "LibCares: $have_libcares"
  14887. echo "Libz: $have_libz"
  14888. echo "Epoll: $have_epoll"
  14889. echo "Bittorrent: $enable_bittorrent"
  14890. echo "Metalink: $enable_metalink"
  14891. echo "XML-RPC: $enable_xml_rpc"