configure 467 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.64 for aria2 1.6.3.
  4. #
  5. # Report bugs to <t-tujikawa@users.sourceforge.net>.
  6. #
  7. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  8. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
  9. # Foundation, Inc.
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in #(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. case $0 in #((
  86. *[\\/]* ) as_myself=$0 ;;
  87. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  88. for as_dir in $PATH
  89. do
  90. IFS=$as_save_IFS
  91. test -z "$as_dir" && as_dir=.
  92. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  93. done
  94. IFS=$as_save_IFS
  95. ;;
  96. esac
  97. # We did not find ourselves, most probably we were run as `sh COMMAND'
  98. # in which case we are not to be found in the path.
  99. if test "x$as_myself" = x; then
  100. as_myself=$0
  101. fi
  102. if test ! -f "$as_myself"; then
  103. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  104. exit 1
  105. fi
  106. # Unset variables that we do not need and which cause bugs (e.g. in
  107. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  108. # suppresses any "Segmentation fault" message there. '((' could
  109. # trigger a bug in pdksh 5.2.14.
  110. for as_var in BASH_ENV ENV MAIL MAILPATH
  111. do eval test x\${$as_var+set} = xset \
  112. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  113. done
  114. PS1='$ '
  115. PS2='> '
  116. PS4='+ '
  117. # NLS nuisances.
  118. LC_ALL=C
  119. export LC_ALL
  120. LANGUAGE=C
  121. export LANGUAGE
  122. # CDPATH.
  123. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  124. if test "x$CONFIG_SHELL" = x; then
  125. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  126. emulate sh
  127. NULLCMD=:
  128. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  129. # is contrary to our usage. Disable this feature.
  130. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  131. setopt NO_GLOB_SUBST
  132. else
  133. case \`(set -o) 2>/dev/null\` in #(
  134. *posix*) :
  135. set -o posix ;; #(
  136. *) :
  137. ;;
  138. esac
  139. fi
  140. "
  141. as_required="as_fn_return () { (exit \$1); }
  142. as_fn_success () { as_fn_return 0; }
  143. as_fn_failure () { as_fn_return 1; }
  144. as_fn_ret_success () { return 0; }
  145. as_fn_ret_failure () { return 1; }
  146. exitcode=0
  147. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  148. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  149. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  150. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  151. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  152. else
  153. exitcode=1; echo positional parameters were not saved.
  154. fi
  155. test x\$exitcode = x0 || exit 1"
  156. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  157. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  158. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  159. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  160. test \$(( 1 + 1 )) = 2 || exit 1"
  161. if (eval "$as_required") 2>/dev/null; then :
  162. as_have_required=yes
  163. else
  164. as_have_required=no
  165. fi
  166. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  167. else
  168. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  169. as_found=false
  170. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  171. do
  172. IFS=$as_save_IFS
  173. test -z "$as_dir" && as_dir=.
  174. as_found=:
  175. case $as_dir in #(
  176. /*)
  177. for as_base in sh bash ksh sh5; do
  178. # Try only shells that exist, to save several forks.
  179. as_shell=$as_dir/$as_base
  180. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  181. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  182. CONFIG_SHELL=$as_shell as_have_required=yes
  183. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  184. break 2
  185. fi
  186. fi
  187. done;;
  188. esac
  189. as_found=false
  190. done
  191. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  192. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  193. CONFIG_SHELL=$SHELL as_have_required=yes
  194. fi; }
  195. IFS=$as_save_IFS
  196. if test "x$CONFIG_SHELL" != x; then :
  197. # We cannot yet assume a decent shell, so we have to provide a
  198. # neutralization value for shells without unset; and this also
  199. # works around shells that cannot unset nonexistent variables.
  200. BASH_ENV=/dev/null
  201. ENV=/dev/null
  202. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  203. export CONFIG_SHELL
  204. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  205. fi
  206. if test x$as_have_required = xno; then :
  207. $as_echo "$0: This script requires a shell more modern than all"
  208. $as_echo "$0: the shells that I found on your system."
  209. if test x${ZSH_VERSION+set} = xset ; then
  210. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  211. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  212. else
  213. $as_echo "$0: Please tell bug-autoconf@gnu.org and
  214. $0: t-tujikawa@users.sourceforge.net about your system,
  215. $0: including any error possibly output before this
  216. $0: message. Then install a modern shell, or manually run
  217. $0: the script under such a shell if you do have one."
  218. fi
  219. exit 1
  220. fi
  221. fi
  222. fi
  223. SHELL=${CONFIG_SHELL-/bin/sh}
  224. export SHELL
  225. # Unset more variables known to interfere with behavior of common tools.
  226. CLICOLOR_FORCE= GREP_OPTIONS=
  227. unset CLICOLOR_FORCE GREP_OPTIONS
  228. ## --------------------- ##
  229. ## M4sh Shell Functions. ##
  230. ## --------------------- ##
  231. # as_fn_unset VAR
  232. # ---------------
  233. # Portably unset VAR.
  234. as_fn_unset ()
  235. {
  236. { eval $1=; unset $1;}
  237. }
  238. as_unset=as_fn_unset
  239. # as_fn_set_status STATUS
  240. # -----------------------
  241. # Set $? to STATUS, without forking.
  242. as_fn_set_status ()
  243. {
  244. return $1
  245. } # as_fn_set_status
  246. # as_fn_exit STATUS
  247. # -----------------
  248. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  249. as_fn_exit ()
  250. {
  251. set +e
  252. as_fn_set_status $1
  253. exit $1
  254. } # as_fn_exit
  255. # as_fn_mkdir_p
  256. # -------------
  257. # Create "$as_dir" as a directory, including parents if necessary.
  258. as_fn_mkdir_p ()
  259. {
  260. case $as_dir in #(
  261. -*) as_dir=./$as_dir;;
  262. esac
  263. test -d "$as_dir" || eval $as_mkdir_p || {
  264. as_dirs=
  265. while :; do
  266. case $as_dir in #(
  267. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  268. *) as_qdir=$as_dir;;
  269. esac
  270. as_dirs="'$as_qdir' $as_dirs"
  271. as_dir=`$as_dirname -- "$as_dir" ||
  272. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  273. X"$as_dir" : 'X\(//\)[^/]' \| \
  274. X"$as_dir" : 'X\(//\)$' \| \
  275. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  276. $as_echo X"$as_dir" |
  277. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  278. s//\1/
  279. q
  280. }
  281. /^X\(\/\/\)[^/].*/{
  282. s//\1/
  283. q
  284. }
  285. /^X\(\/\/\)$/{
  286. s//\1/
  287. q
  288. }
  289. /^X\(\/\).*/{
  290. s//\1/
  291. q
  292. }
  293. s/.*/./; q'`
  294. test -d "$as_dir" && break
  295. done
  296. test -z "$as_dirs" || eval "mkdir $as_dirs"
  297. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  298. } # as_fn_mkdir_p
  299. # as_fn_append VAR VALUE
  300. # ----------------------
  301. # Append the text in VALUE to the end of the definition contained in VAR. Take
  302. # advantage of any shell optimizations that allow amortized linear growth over
  303. # repeated appends, instead of the typical quadratic growth present in naive
  304. # implementations.
  305. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  306. eval 'as_fn_append ()
  307. {
  308. eval $1+=\$2
  309. }'
  310. else
  311. as_fn_append ()
  312. {
  313. eval $1=\$$1\$2
  314. }
  315. fi # as_fn_append
  316. # as_fn_arith ARG...
  317. # ------------------
  318. # Perform arithmetic evaluation on the ARGs, and store the result in the
  319. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  320. # must be portable across $(()) and expr.
  321. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  322. eval 'as_fn_arith ()
  323. {
  324. as_val=$(( $* ))
  325. }'
  326. else
  327. as_fn_arith ()
  328. {
  329. as_val=`expr "$@" || test $? -eq 1`
  330. }
  331. fi # as_fn_arith
  332. # as_fn_error ERROR [LINENO LOG_FD]
  333. # ---------------------------------
  334. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  335. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  336. # script with status $?, using 1 if that was 0.
  337. as_fn_error ()
  338. {
  339. as_status=$?; test $as_status -eq 0 && as_status=1
  340. if test "$3"; then
  341. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  342. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  343. fi
  344. $as_echo "$as_me: error: $1" >&2
  345. as_fn_exit $as_status
  346. } # as_fn_error
  347. if expr a : '\(a\)' >/dev/null 2>&1 &&
  348. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  349. as_expr=expr
  350. else
  351. as_expr=false
  352. fi
  353. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  354. as_basename=basename
  355. else
  356. as_basename=false
  357. fi
  358. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  359. as_dirname=dirname
  360. else
  361. as_dirname=false
  362. fi
  363. as_me=`$as_basename -- "$0" ||
  364. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  365. X"$0" : 'X\(//\)$' \| \
  366. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  367. $as_echo X/"$0" |
  368. sed '/^.*\/\([^/][^/]*\)\/*$/{
  369. s//\1/
  370. q
  371. }
  372. /^X\/\(\/\/\)$/{
  373. s//\1/
  374. q
  375. }
  376. /^X\/\(\/\).*/{
  377. s//\1/
  378. q
  379. }
  380. s/.*/./; q'`
  381. # Avoid depending upon Character Ranges.
  382. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  383. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  384. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  385. as_cr_digits='0123456789'
  386. as_cr_alnum=$as_cr_Letters$as_cr_digits
  387. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  388. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  389. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  390. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  391. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  392. sed -n '
  393. p
  394. /[$]LINENO/=
  395. ' <$as_myself |
  396. sed '
  397. s/[$]LINENO.*/&-/
  398. t lineno
  399. b
  400. :lineno
  401. N
  402. :loop
  403. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  404. t loop
  405. s/-\n.*//
  406. ' >$as_me.lineno &&
  407. chmod +x "$as_me.lineno" ||
  408. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  409. # Don't try to exec as it changes $[0], causing all sort of problems
  410. # (the dirname of $[0] is not the place where we might find the
  411. # original and so on. Autoconf is especially sensitive to this).
  412. . "./$as_me.lineno"
  413. # Exit status is that of the last command.
  414. exit
  415. }
  416. ECHO_C= ECHO_N= ECHO_T=
  417. case `echo -n x` in #(((((
  418. -n*)
  419. case `echo 'xy\c'` in
  420. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  421. xy) ECHO_C='\c';;
  422. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  423. ECHO_T=' ';;
  424. esac;;
  425. *)
  426. ECHO_N='-n';;
  427. esac
  428. rm -f conf$$ conf$$.exe conf$$.file
  429. if test -d conf$$.dir; then
  430. rm -f conf$$.dir/conf$$.file
  431. else
  432. rm -f conf$$.dir
  433. mkdir conf$$.dir 2>/dev/null
  434. fi
  435. if (echo >conf$$.file) 2>/dev/null; then
  436. if ln -s conf$$.file conf$$ 2>/dev/null; then
  437. as_ln_s='ln -s'
  438. # ... but there are two gotchas:
  439. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  440. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  441. # In both cases, we have to default to `cp -p'.
  442. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  443. as_ln_s='cp -p'
  444. elif ln conf$$.file conf$$ 2>/dev/null; then
  445. as_ln_s=ln
  446. else
  447. as_ln_s='cp -p'
  448. fi
  449. else
  450. as_ln_s='cp -p'
  451. fi
  452. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  453. rmdir conf$$.dir 2>/dev/null
  454. if mkdir -p . 2>/dev/null; then
  455. as_mkdir_p='mkdir -p "$as_dir"'
  456. else
  457. test -d ./-p && rmdir ./-p
  458. as_mkdir_p=false
  459. fi
  460. if test -x / >/dev/null 2>&1; then
  461. as_test_x='test -x'
  462. else
  463. if ls -dL / >/dev/null 2>&1; then
  464. as_ls_L_option=L
  465. else
  466. as_ls_L_option=
  467. fi
  468. as_test_x='
  469. eval sh -c '\''
  470. if test -d "$1"; then
  471. test -d "$1/.";
  472. else
  473. case $1 in #(
  474. -*)set "./$1";;
  475. esac;
  476. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  477. ???[sx]*):;;*)false;;esac;fi
  478. '\'' sh
  479. '
  480. fi
  481. as_executable_p=$as_test_x
  482. # Sed expression to map a string onto a valid CPP name.
  483. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  484. # Sed expression to map a string onto a valid variable name.
  485. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  486. exec 7<&0 </dev/null 6>&1
  487. # Name of the host.
  488. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  489. # so uname gets run too.
  490. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  491. #
  492. # Initializations.
  493. #
  494. ac_default_prefix=/usr/local
  495. ac_clean_files=
  496. ac_config_libobj_dir=.
  497. LIBOBJS=
  498. cross_compiling=no
  499. subdirs=
  500. MFLAGS=
  501. MAKEFLAGS=
  502. # Identity of this package.
  503. PACKAGE_NAME='aria2'
  504. PACKAGE_TARNAME='aria2'
  505. PACKAGE_VERSION='1.6.3'
  506. PACKAGE_STRING='aria2 1.6.3'
  507. PACKAGE_BUGREPORT='t-tujikawa@users.sourceforge.net'
  508. PACKAGE_URL='http://aria2.sourceforge.net/'
  509. ac_unique_file="src/a2io.h"
  510. # Factoring default headers for most tests.
  511. ac_includes_default="\
  512. #include <stdio.h>
  513. #ifdef HAVE_SYS_TYPES_H
  514. # include <sys/types.h>
  515. #endif
  516. #ifdef HAVE_SYS_STAT_H
  517. # include <sys/stat.h>
  518. #endif
  519. #ifdef STDC_HEADERS
  520. # include <stdlib.h>
  521. # include <stddef.h>
  522. #else
  523. # ifdef HAVE_STDLIB_H
  524. # include <stdlib.h>
  525. # endif
  526. #endif
  527. #ifdef HAVE_STRING_H
  528. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  529. # include <memory.h>
  530. # endif
  531. # include <string.h>
  532. #endif
  533. #ifdef HAVE_STRINGS_H
  534. # include <strings.h>
  535. #endif
  536. #ifdef HAVE_INTTYPES_H
  537. # include <inttypes.h>
  538. #endif
  539. #ifdef HAVE_STDINT_H
  540. # include <stdint.h>
  541. #endif
  542. #ifdef HAVE_UNISTD_H
  543. # include <unistd.h>
  544. #endif"
  545. gt_needs=
  546. ac_header_list=
  547. ac_func_list=
  548. ac_subst_vars='am__EXEEXT_FALSE
  549. am__EXEEXT_TRUE
  550. LTLIBOBJS
  551. HAVE_DAEMON_FALSE
  552. HAVE_DAEMON_TRUE
  553. HAVE_TIMEGM_FALSE
  554. HAVE_TIMEGM_TRUE
  555. HAVE_STRPTIME_FALSE
  556. HAVE_STRPTIME_TRUE
  557. HAVE_LOCALTIME_R_FALSE
  558. HAVE_LOCALTIME_R_TRUE
  559. HAVE_INET_ATON_FALSE
  560. HAVE_INET_ATON_TRUE
  561. HAVE_GETTIMEOFDAY_FALSE
  562. HAVE_GETTIMEOFDAY_TRUE
  563. HAVE_GETADDRINFO_FALSE
  564. HAVE_GETADDRINFO_TRUE
  565. HAVE_GAI_STRERROR_FALSE
  566. HAVE_GAI_STRERROR_TRUE
  567. HAVE_BASENAME_FALSE
  568. HAVE_BASENAME_TRUE
  569. HAVE_ASCTIME_R_FALSE
  570. HAVE_ASCTIME_R_TRUE
  571. HAVE_POSIX_FALLOCATE_FALSE
  572. HAVE_POSIX_FALLOCATE_TRUE
  573. HAVE_EPOLL_FALSE
  574. HAVE_EPOLL_TRUE
  575. POW_LIB
  576. LIBOBJS
  577. POSUB
  578. LTLIBINTL
  579. LIBINTL
  580. INTLLIBS
  581. INTL_LIBTOOL_SUFFIX_PREFIX
  582. INTLOBJS
  583. GENCAT
  584. INSTOBJEXT
  585. DATADIRNAME
  586. CATOBJEXT
  587. USE_INCLUDED_LIBINTL
  588. BUILD_INCLUDED_LIBINTL
  589. LTLIBC
  590. WINDRES
  591. WOE32
  592. WOE32DLL
  593. HAVE_WPRINTF
  594. HAVE_SNPRINTF
  595. HAVE_ASPRINTF
  596. HAVE_POSIX_PRINTF
  597. INTL_MACOSX_LIBS
  598. GLIBC21
  599. INTLBISON
  600. LTLIBICONV
  601. LIBICONV
  602. LTLIBMULTITHREAD
  603. LIBMULTITHREAD
  604. LTLIBTHREAD
  605. LIBTHREAD
  606. LIBPTH_PREFIX
  607. LTLIBPTH
  608. LIBPTH
  609. PRI_MACROS_BROKEN
  610. HAVE_VISIBILITY
  611. CFLAG_VISIBILITY
  612. GLIBC2
  613. XGETTEXT_EXTRA_OPTIONS
  614. MSGMERGE
  615. XGETTEXT_015
  616. XGETTEXT
  617. GMSGFMT_015
  618. MSGFMT_015
  619. GMSGFMT
  620. MSGFMT
  621. GETTEXT_MACRO_VERSION
  622. USE_NLS
  623. ALLOCA
  624. HAVE_SQLITE3_FALSE
  625. HAVE_SQLITE3_TRUE
  626. HAVE_LIBZ_FALSE
  627. HAVE_LIBZ_TRUE
  628. ENABLE_ASYNC_DNS_FALSE
  629. ENABLE_ASYNC_DNS_TRUE
  630. HAVE_LIBEXPAT_FALSE
  631. HAVE_LIBEXPAT_TRUE
  632. HAVE_LIBXML2_FALSE
  633. HAVE_LIBXML2_TRUE
  634. ENABLE_XML_RPC_FALSE
  635. ENABLE_XML_RPC_TRUE
  636. ENABLE_METALINK_LIBEXPAT_FALSE
  637. ENABLE_METALINK_LIBEXPAT_TRUE
  638. ENABLE_METALINK_LIBXML2_FALSE
  639. ENABLE_METALINK_LIBXML2_TRUE
  640. ENABLE_METALINK_FALSE
  641. ENABLE_METALINK_TRUE
  642. ENABLE_BITTORRENT_FALSE
  643. ENABLE_BITTORRENT_TRUE
  644. ENABLE_MESSAGE_DIGEST_FALSE
  645. ENABLE_MESSAGE_DIGEST_TRUE
  646. HAVE_LIBSSL_FALSE
  647. HAVE_LIBSSL_TRUE
  648. HAVE_LIBGNUTLS_FALSE
  649. HAVE_LIBGNUTLS_TRUE
  650. ca_bundle
  651. ENABLE_SSL_FALSE
  652. ENABLE_SSL_TRUE
  653. LIBZ_CPPFLAGS
  654. LIBZ_LIBS
  655. LIBCARES_CPPFLAGS
  656. LIBCARES_LIBS
  657. OPENSSL_CFLAGS
  658. OPENSSL_LIBS
  659. LIBGCRYPT_LIBS
  660. LIBGCRYPT_CFLAGS
  661. LIBGCRYPT_CONFIG
  662. LIBGNUTLS_CONFIG
  663. LIBGNUTLS_LIBS
  664. LIBGNUTLS_CFLAGS
  665. SQLITE3_LIBS
  666. SQLITE3_CFLAGS
  667. PKG_CONFIG
  668. LIBEXPAT_CPPFLAGS
  669. LIBEXPAT_LIBS
  670. XML_LIBS
  671. XML_CPPFLAGS
  672. XML2_CONFIG
  673. EGREP
  674. GREP
  675. CXXCPP
  676. YFLAGS
  677. YACC
  678. RANLIB
  679. am__fastdepCC_FALSE
  680. am__fastdepCC_TRUE
  681. CCDEPMODE
  682. ac_ct_CC
  683. CFLAGS
  684. CC
  685. am__fastdepCXX_FALSE
  686. am__fastdepCXX_TRUE
  687. CXXDEPMODE
  688. AMDEPBACKSLASH
  689. AMDEP_FALSE
  690. AMDEP_TRUE
  691. am__quote
  692. am__include
  693. DEPDIR
  694. OBJEXT
  695. EXEEXT
  696. ac_ct_CXX
  697. CPPFLAGS
  698. LDFLAGS
  699. CXXFLAGS
  700. CXX
  701. WINSOCK_LIBS
  702. CPPUNIT_LIBS
  703. CPPUNIT_CFLAGS
  704. CPPUNIT_CONFIG
  705. am__untar
  706. am__tar
  707. AMTAR
  708. am__leading_dot
  709. SET_MAKE
  710. AWK
  711. mkdir_p
  712. MKDIR_P
  713. INSTALL_STRIP_PROGRAM
  714. STRIP
  715. install_sh
  716. MAKEINFO
  717. AUTOHEADER
  718. AUTOMAKE
  719. AUTOCONF
  720. ACLOCAL
  721. VERSION
  722. PACKAGE
  723. CYGPATH_W
  724. am__isrc
  725. INSTALL_DATA
  726. INSTALL_SCRIPT
  727. INSTALL_PROGRAM
  728. target_os
  729. target_vendor
  730. target_cpu
  731. target
  732. host_os
  733. host_vendor
  734. host_cpu
  735. host
  736. build_os
  737. build_vendor
  738. build_cpu
  739. build
  740. target_alias
  741. host_alias
  742. build_alias
  743. LIBS
  744. ECHO_T
  745. ECHO_N
  746. ECHO_C
  747. DEFS
  748. mandir
  749. localedir
  750. libdir
  751. psdir
  752. pdfdir
  753. dvidir
  754. htmldir
  755. infodir
  756. docdir
  757. oldincludedir
  758. includedir
  759. localstatedir
  760. sharedstatedir
  761. sysconfdir
  762. datadir
  763. datarootdir
  764. libexecdir
  765. sbindir
  766. bindir
  767. program_transform_name
  768. prefix
  769. exec_prefix
  770. PACKAGE_URL
  771. PACKAGE_BUGREPORT
  772. PACKAGE_STRING
  773. PACKAGE_VERSION
  774. PACKAGE_TARNAME
  775. PACKAGE_NAME
  776. PATH_SEPARATOR
  777. SHELL'
  778. ac_subst_files=''
  779. ac_user_opts='
  780. enable_option_checking
  781. with_cppunit_prefix
  782. with_cppunit_exec_prefix
  783. with_gnutls
  784. with_openssl
  785. with_sqlite3
  786. with_libxml2
  787. with_libexpat
  788. with_libcares
  789. with_libz
  790. enable_bittorrent
  791. enable_metalink
  792. enable_epoll
  793. with_ca_bundle
  794. enable_dependency_tracking
  795. with_xml_prefix
  796. with_xml_exec_prefix
  797. enable_xmltest
  798. with_libexpat_prefix
  799. with_sqlite3_prefix
  800. with_libgnutls_prefix
  801. with_libgcrypt_prefix
  802. with_openssl_prefix
  803. with_libcares_prefix
  804. with_libz_prefix
  805. enable_largefile
  806. enable_nls
  807. enable_threads
  808. with_gnu_ld
  809. enable_rpath
  810. with_libpth_prefix
  811. with_libiconv_prefix
  812. with_included_gettext
  813. with_libintl_prefix
  814. '
  815. ac_precious_vars='build_alias
  816. host_alias
  817. target_alias
  818. CXX
  819. CXXFLAGS
  820. LDFLAGS
  821. LIBS
  822. CPPFLAGS
  823. CCC
  824. CC
  825. CFLAGS
  826. YACC
  827. YFLAGS
  828. CXXCPP
  829. PKG_CONFIG
  830. SQLITE3_CFLAGS
  831. SQLITE3_LIBS
  832. LIBGNUTLS_CFLAGS
  833. LIBGNUTLS_LIBS'
  834. # Initialize some variables set by options.
  835. ac_init_help=
  836. ac_init_version=false
  837. ac_unrecognized_opts=
  838. ac_unrecognized_sep=
  839. # The variables have the same names as the options, with
  840. # dashes changed to underlines.
  841. cache_file=/dev/null
  842. exec_prefix=NONE
  843. no_create=
  844. no_recursion=
  845. prefix=NONE
  846. program_prefix=NONE
  847. program_suffix=NONE
  848. program_transform_name=s,x,x,
  849. silent=
  850. site=
  851. srcdir=
  852. verbose=
  853. x_includes=NONE
  854. x_libraries=NONE
  855. # Installation directory options.
  856. # These are left unexpanded so users can "make install exec_prefix=/foo"
  857. # and all the variables that are supposed to be based on exec_prefix
  858. # by default will actually change.
  859. # Use braces instead of parens because sh, perl, etc. also accept them.
  860. # (The list follows the same order as the GNU Coding Standards.)
  861. bindir='${exec_prefix}/bin'
  862. sbindir='${exec_prefix}/sbin'
  863. libexecdir='${exec_prefix}/libexec'
  864. datarootdir='${prefix}/share'
  865. datadir='${datarootdir}'
  866. sysconfdir='${prefix}/etc'
  867. sharedstatedir='${prefix}/com'
  868. localstatedir='${prefix}/var'
  869. includedir='${prefix}/include'
  870. oldincludedir='/usr/include'
  871. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  872. infodir='${datarootdir}/info'
  873. htmldir='${docdir}'
  874. dvidir='${docdir}'
  875. pdfdir='${docdir}'
  876. psdir='${docdir}'
  877. libdir='${exec_prefix}/lib'
  878. localedir='${datarootdir}/locale'
  879. mandir='${datarootdir}/man'
  880. ac_prev=
  881. ac_dashdash=
  882. for ac_option
  883. do
  884. # If the previous option needs an argument, assign it.
  885. if test -n "$ac_prev"; then
  886. eval $ac_prev=\$ac_option
  887. ac_prev=
  888. continue
  889. fi
  890. case $ac_option in
  891. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  892. *) ac_optarg=yes ;;
  893. esac
  894. # Accept the important Cygnus configure options, so we can diagnose typos.
  895. case $ac_dashdash$ac_option in
  896. --)
  897. ac_dashdash=yes ;;
  898. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  899. ac_prev=bindir ;;
  900. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  901. bindir=$ac_optarg ;;
  902. -build | --build | --buil | --bui | --bu)
  903. ac_prev=build_alias ;;
  904. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  905. build_alias=$ac_optarg ;;
  906. -cache-file | --cache-file | --cache-fil | --cache-fi \
  907. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  908. ac_prev=cache_file ;;
  909. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  910. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  911. cache_file=$ac_optarg ;;
  912. --config-cache | -C)
  913. cache_file=config.cache ;;
  914. -datadir | --datadir | --datadi | --datad)
  915. ac_prev=datadir ;;
  916. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  917. datadir=$ac_optarg ;;
  918. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  919. | --dataroo | --dataro | --datar)
  920. ac_prev=datarootdir ;;
  921. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  922. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  923. datarootdir=$ac_optarg ;;
  924. -disable-* | --disable-*)
  925. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  926. # Reject names that are not valid shell variable names.
  927. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  928. as_fn_error "invalid feature name: $ac_useropt"
  929. ac_useropt_orig=$ac_useropt
  930. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  931. case $ac_user_opts in
  932. *"
  933. "enable_$ac_useropt"
  934. "*) ;;
  935. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  936. ac_unrecognized_sep=', ';;
  937. esac
  938. eval enable_$ac_useropt=no ;;
  939. -docdir | --docdir | --docdi | --doc | --do)
  940. ac_prev=docdir ;;
  941. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  942. docdir=$ac_optarg ;;
  943. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  944. ac_prev=dvidir ;;
  945. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  946. dvidir=$ac_optarg ;;
  947. -enable-* | --enable-*)
  948. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  949. # Reject names that are not valid shell variable names.
  950. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  951. as_fn_error "invalid feature name: $ac_useropt"
  952. ac_useropt_orig=$ac_useropt
  953. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  954. case $ac_user_opts in
  955. *"
  956. "enable_$ac_useropt"
  957. "*) ;;
  958. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  959. ac_unrecognized_sep=', ';;
  960. esac
  961. eval enable_$ac_useropt=\$ac_optarg ;;
  962. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  963. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  964. | --exec | --exe | --ex)
  965. ac_prev=exec_prefix ;;
  966. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  967. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  968. | --exec=* | --exe=* | --ex=*)
  969. exec_prefix=$ac_optarg ;;
  970. -gas | --gas | --ga | --g)
  971. # Obsolete; use --with-gas.
  972. with_gas=yes ;;
  973. -help | --help | --hel | --he | -h)
  974. ac_init_help=long ;;
  975. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  976. ac_init_help=recursive ;;
  977. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  978. ac_init_help=short ;;
  979. -host | --host | --hos | --ho)
  980. ac_prev=host_alias ;;
  981. -host=* | --host=* | --hos=* | --ho=*)
  982. host_alias=$ac_optarg ;;
  983. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  984. ac_prev=htmldir ;;
  985. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  986. | --ht=*)
  987. htmldir=$ac_optarg ;;
  988. -includedir | --includedir | --includedi | --included | --include \
  989. | --includ | --inclu | --incl | --inc)
  990. ac_prev=includedir ;;
  991. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  992. | --includ=* | --inclu=* | --incl=* | --inc=*)
  993. includedir=$ac_optarg ;;
  994. -infodir | --infodir | --infodi | --infod | --info | --inf)
  995. ac_prev=infodir ;;
  996. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  997. infodir=$ac_optarg ;;
  998. -libdir | --libdir | --libdi | --libd)
  999. ac_prev=libdir ;;
  1000. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1001. libdir=$ac_optarg ;;
  1002. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1003. | --libexe | --libex | --libe)
  1004. ac_prev=libexecdir ;;
  1005. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1006. | --libexe=* | --libex=* | --libe=*)
  1007. libexecdir=$ac_optarg ;;
  1008. -localedir | --localedir | --localedi | --localed | --locale)
  1009. ac_prev=localedir ;;
  1010. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1011. localedir=$ac_optarg ;;
  1012. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1013. | --localstate | --localstat | --localsta | --localst | --locals)
  1014. ac_prev=localstatedir ;;
  1015. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1016. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1017. localstatedir=$ac_optarg ;;
  1018. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1019. ac_prev=mandir ;;
  1020. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1021. mandir=$ac_optarg ;;
  1022. -nfp | --nfp | --nf)
  1023. # Obsolete; use --without-fp.
  1024. with_fp=no ;;
  1025. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1026. | --no-cr | --no-c | -n)
  1027. no_create=yes ;;
  1028. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1029. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1030. no_recursion=yes ;;
  1031. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1032. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1033. | --oldin | --oldi | --old | --ol | --o)
  1034. ac_prev=oldincludedir ;;
  1035. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1036. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1037. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1038. oldincludedir=$ac_optarg ;;
  1039. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1040. ac_prev=prefix ;;
  1041. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1042. prefix=$ac_optarg ;;
  1043. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1044. | --program-pre | --program-pr | --program-p)
  1045. ac_prev=program_prefix ;;
  1046. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1047. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1048. program_prefix=$ac_optarg ;;
  1049. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1050. | --program-suf | --program-su | --program-s)
  1051. ac_prev=program_suffix ;;
  1052. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1053. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1054. program_suffix=$ac_optarg ;;
  1055. -program-transform-name | --program-transform-name \
  1056. | --program-transform-nam | --program-transform-na \
  1057. | --program-transform-n | --program-transform- \
  1058. | --program-transform | --program-transfor \
  1059. | --program-transfo | --program-transf \
  1060. | --program-trans | --program-tran \
  1061. | --progr-tra | --program-tr | --program-t)
  1062. ac_prev=program_transform_name ;;
  1063. -program-transform-name=* | --program-transform-name=* \
  1064. | --program-transform-nam=* | --program-transform-na=* \
  1065. | --program-transform-n=* | --program-transform-=* \
  1066. | --program-transform=* | --program-transfor=* \
  1067. | --program-transfo=* | --program-transf=* \
  1068. | --program-trans=* | --program-tran=* \
  1069. | --progr-tra=* | --program-tr=* | --program-t=*)
  1070. program_transform_name=$ac_optarg ;;
  1071. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1072. ac_prev=pdfdir ;;
  1073. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1074. pdfdir=$ac_optarg ;;
  1075. -psdir | --psdir | --psdi | --psd | --ps)
  1076. ac_prev=psdir ;;
  1077. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1078. psdir=$ac_optarg ;;
  1079. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1080. | -silent | --silent | --silen | --sile | --sil)
  1081. silent=yes ;;
  1082. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1083. ac_prev=sbindir ;;
  1084. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1085. | --sbi=* | --sb=*)
  1086. sbindir=$ac_optarg ;;
  1087. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1088. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1089. | --sharedst | --shareds | --shared | --share | --shar \
  1090. | --sha | --sh)
  1091. ac_prev=sharedstatedir ;;
  1092. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1093. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1094. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1095. | --sha=* | --sh=*)
  1096. sharedstatedir=$ac_optarg ;;
  1097. -site | --site | --sit)
  1098. ac_prev=site ;;
  1099. -site=* | --site=* | --sit=*)
  1100. site=$ac_optarg ;;
  1101. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1102. ac_prev=srcdir ;;
  1103. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1104. srcdir=$ac_optarg ;;
  1105. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1106. | --syscon | --sysco | --sysc | --sys | --sy)
  1107. ac_prev=sysconfdir ;;
  1108. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1109. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1110. sysconfdir=$ac_optarg ;;
  1111. -target | --target | --targe | --targ | --tar | --ta | --t)
  1112. ac_prev=target_alias ;;
  1113. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1114. target_alias=$ac_optarg ;;
  1115. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1116. verbose=yes ;;
  1117. -version | --version | --versio | --versi | --vers | -V)
  1118. ac_init_version=: ;;
  1119. -with-* | --with-*)
  1120. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1121. # Reject names that are not valid shell variable names.
  1122. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1123. as_fn_error "invalid package name: $ac_useropt"
  1124. ac_useropt_orig=$ac_useropt
  1125. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1126. case $ac_user_opts in
  1127. *"
  1128. "with_$ac_useropt"
  1129. "*) ;;
  1130. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1131. ac_unrecognized_sep=', ';;
  1132. esac
  1133. eval with_$ac_useropt=\$ac_optarg ;;
  1134. -without-* | --without-*)
  1135. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1136. # Reject names that are not valid shell variable names.
  1137. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1138. as_fn_error "invalid package name: $ac_useropt"
  1139. ac_useropt_orig=$ac_useropt
  1140. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1141. case $ac_user_opts in
  1142. *"
  1143. "with_$ac_useropt"
  1144. "*) ;;
  1145. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1146. ac_unrecognized_sep=', ';;
  1147. esac
  1148. eval with_$ac_useropt=no ;;
  1149. --x)
  1150. # Obsolete; use --with-x.
  1151. with_x=yes ;;
  1152. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1153. | --x-incl | --x-inc | --x-in | --x-i)
  1154. ac_prev=x_includes ;;
  1155. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1156. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1157. x_includes=$ac_optarg ;;
  1158. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1159. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1160. ac_prev=x_libraries ;;
  1161. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1162. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1163. x_libraries=$ac_optarg ;;
  1164. -*) as_fn_error "unrecognized option: \`$ac_option'
  1165. Try \`$0 --help' for more information."
  1166. ;;
  1167. *=*)
  1168. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1169. # Reject names that are not valid shell variable names.
  1170. case $ac_envvar in #(
  1171. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1172. as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  1173. esac
  1174. eval $ac_envvar=\$ac_optarg
  1175. export $ac_envvar ;;
  1176. *)
  1177. # FIXME: should be removed in autoconf 3.0.
  1178. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1179. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1180. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1181. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1182. ;;
  1183. esac
  1184. done
  1185. if test -n "$ac_prev"; then
  1186. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1187. as_fn_error "missing argument to $ac_option"
  1188. fi
  1189. if test -n "$ac_unrecognized_opts"; then
  1190. case $enable_option_checking in
  1191. no) ;;
  1192. fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  1193. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1194. esac
  1195. fi
  1196. # Check all directory arguments for consistency.
  1197. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1198. datadir sysconfdir sharedstatedir localstatedir includedir \
  1199. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1200. libdir localedir mandir
  1201. do
  1202. eval ac_val=\$$ac_var
  1203. # Remove trailing slashes.
  1204. case $ac_val in
  1205. */ )
  1206. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1207. eval $ac_var=\$ac_val;;
  1208. esac
  1209. # Be sure to have absolute directory names.
  1210. case $ac_val in
  1211. [\\/$]* | ?:[\\/]* ) continue;;
  1212. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1213. esac
  1214. as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  1215. done
  1216. # There might be people who depend on the old broken behavior: `$host'
  1217. # used to hold the argument of --host etc.
  1218. # FIXME: To remove some day.
  1219. build=$build_alias
  1220. host=$host_alias
  1221. target=$target_alias
  1222. # FIXME: To remove some day.
  1223. if test "x$host_alias" != x; then
  1224. if test "x$build_alias" = x; then
  1225. cross_compiling=maybe
  1226. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1227. If a cross compiler is detected then cross compile mode will be used." >&2
  1228. elif test "x$build_alias" != "x$host_alias"; then
  1229. cross_compiling=yes
  1230. fi
  1231. fi
  1232. ac_tool_prefix=
  1233. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1234. test "$silent" = yes && exec 6>/dev/null
  1235. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1236. ac_ls_di=`ls -di .` &&
  1237. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1238. as_fn_error "working directory cannot be determined"
  1239. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1240. as_fn_error "pwd does not report name of working directory"
  1241. # Find the source files, if location was not specified.
  1242. if test -z "$srcdir"; then
  1243. ac_srcdir_defaulted=yes
  1244. # Try the directory containing this script, then the parent directory.
  1245. ac_confdir=`$as_dirname -- "$as_myself" ||
  1246. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1247. X"$as_myself" : 'X\(//\)[^/]' \| \
  1248. X"$as_myself" : 'X\(//\)$' \| \
  1249. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1250. $as_echo X"$as_myself" |
  1251. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1252. s//\1/
  1253. q
  1254. }
  1255. /^X\(\/\/\)[^/].*/{
  1256. s//\1/
  1257. q
  1258. }
  1259. /^X\(\/\/\)$/{
  1260. s//\1/
  1261. q
  1262. }
  1263. /^X\(\/\).*/{
  1264. s//\1/
  1265. q
  1266. }
  1267. s/.*/./; q'`
  1268. srcdir=$ac_confdir
  1269. if test ! -r "$srcdir/$ac_unique_file"; then
  1270. srcdir=..
  1271. fi
  1272. else
  1273. ac_srcdir_defaulted=no
  1274. fi
  1275. if test ! -r "$srcdir/$ac_unique_file"; then
  1276. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1277. as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  1278. fi
  1279. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1280. ac_abs_confdir=`(
  1281. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  1282. pwd)`
  1283. # When building in place, set srcdir=.
  1284. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1285. srcdir=.
  1286. fi
  1287. # Remove unnecessary trailing slashes from srcdir.
  1288. # Double slashes in file names in object file debugging info
  1289. # mess up M-x gdb in Emacs.
  1290. case $srcdir in
  1291. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1292. esac
  1293. for ac_var in $ac_precious_vars; do
  1294. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1295. eval ac_env_${ac_var}_value=\$${ac_var}
  1296. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1297. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1298. done
  1299. #
  1300. # Report the --help message.
  1301. #
  1302. if test "$ac_init_help" = "long"; then
  1303. # Omit some internal or obsolete options to make the list less imposing.
  1304. # This message is too long to be a string in the A/UX 3.1 sh.
  1305. cat <<_ACEOF
  1306. \`configure' configures aria2 1.6.3 to adapt to many kinds of systems.
  1307. Usage: $0 [OPTION]... [VAR=VALUE]...
  1308. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1309. VAR=VALUE. See below for descriptions of some of the useful variables.
  1310. Defaults for the options are specified in brackets.
  1311. Configuration:
  1312. -h, --help display this help and exit
  1313. --help=short display options specific to this package
  1314. --help=recursive display the short help of all the included packages
  1315. -V, --version display version information and exit
  1316. -q, --quiet, --silent do not print \`checking...' messages
  1317. --cache-file=FILE cache test results in FILE [disabled]
  1318. -C, --config-cache alias for \`--cache-file=config.cache'
  1319. -n, --no-create do not create output files
  1320. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1321. Installation directories:
  1322. --prefix=PREFIX install architecture-independent files in PREFIX
  1323. [$ac_default_prefix]
  1324. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1325. [PREFIX]
  1326. By default, \`make install' will install all the files in
  1327. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1328. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1329. for instance \`--prefix=\$HOME'.
  1330. For better control, use the options below.
  1331. Fine tuning of the installation directories:
  1332. --bindir=DIR user executables [EPREFIX/bin]
  1333. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1334. --libexecdir=DIR program executables [EPREFIX/libexec]
  1335. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1336. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1337. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1338. --libdir=DIR object code libraries [EPREFIX/lib]
  1339. --includedir=DIR C header files [PREFIX/include]
  1340. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1341. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1342. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1343. --infodir=DIR info documentation [DATAROOTDIR/info]
  1344. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1345. --mandir=DIR man documentation [DATAROOTDIR/man]
  1346. --docdir=DIR documentation root [DATAROOTDIR/doc/aria2]
  1347. --htmldir=DIR html documentation [DOCDIR]
  1348. --dvidir=DIR dvi documentation [DOCDIR]
  1349. --pdfdir=DIR pdf documentation [DOCDIR]
  1350. --psdir=DIR ps documentation [DOCDIR]
  1351. _ACEOF
  1352. cat <<\_ACEOF
  1353. Program names:
  1354. --program-prefix=PREFIX prepend PREFIX to installed program names
  1355. --program-suffix=SUFFIX append SUFFIX to installed program names
  1356. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1357. System types:
  1358. --build=BUILD configure for building on BUILD [guessed]
  1359. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1360. --target=TARGET configure for building compilers for TARGET [HOST]
  1361. _ACEOF
  1362. fi
  1363. if test -n "$ac_init_help"; then
  1364. case $ac_init_help in
  1365. short | recursive ) echo "Configuration of aria2 1.6.3:";;
  1366. esac
  1367. cat <<\_ACEOF
  1368. Optional Features:
  1369. --disable-option-checking ignore unrecognized --enable/--with options
  1370. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1371. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1372. --enable-bittorrent Enable bittorrent support.
  1373. --enable-metalink Enable metalink support.
  1374. --enable-epoll Enable epoll support.
  1375. --disable-dependency-tracking speeds up one-time build
  1376. --enable-dependency-tracking do not reject slow dependency extractors
  1377. --disable-xmltest Do not try to compile and run a test LIBXML program
  1378. --disable-largefile omit support for large files
  1379. --disable-nls do not use Native Language Support
  1380. --enable-threads={posix|solaris|pth|win32}
  1381. specify multithreading API
  1382. --disable-threads build without multithread safety
  1383. --disable-rpath do not hardcode runtime library paths
  1384. Optional Packages:
  1385. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1386. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1387. --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
  1388. --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
  1389. --with-gnutls Use gnutls if it is installed.
  1390. --with-openssl Use openssl if it is installed.
  1391. --with-sqlite3 Use sqlite3 if it is installed.
  1392. --with-libxml2 Use libxml2 if it is installed.
  1393. --with-libexpat Use libexpat if it is installed.
  1394. --with-libcares Use libcares if it is installed.
  1395. --with-libz Use libz if it is installed.
  1396. --with-ca-bundle=FILE Use FILE as default CA bundle.
  1397. --with-xml-prefix=PFX Prefix where libxml is installed (optional)
  1398. --with-xml-exec-prefix=PFX Exec prefix where libxml is installed (optional)
  1399. --with-libexpat-prefix=PREFIX Prefix where libexpat installed (optional)
  1400. --with-sqlite3-prefix=PREFIX Prefix where SQLite3 installed (optional)
  1401. --with-libgnutls-prefix=PFX Prefix where libgnutls is installed (optional)
  1402. --with-libgcrypt-prefix=PFX
  1403. prefix where LIBGCRYPT is installed (optional)
  1404. --with-openssl-prefix=PREFIX Prefix where OpenSSL installed (optional)
  1405. --with-libcares-prefix=PREFIX Prefix where libcares installed (optional)
  1406. --with-libz-prefix=PREFIX Prefix where libz installed (optional)
  1407. --with-gnu-ld assume the C compiler uses GNU ld default=no
  1408. --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
  1409. --without-libpth-prefix don't search for libpth in includedir and libdir
  1410. --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
  1411. --without-libiconv-prefix don't search for libiconv in includedir and libdir
  1412. --with-included-gettext use the GNU gettext library included here
  1413. --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
  1414. --without-libintl-prefix don't search for libintl in includedir and libdir
  1415. Some influential environment variables:
  1416. CXX C++ compiler command
  1417. CXXFLAGS C++ compiler flags
  1418. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1419. nonstandard directory <lib dir>
  1420. LIBS libraries to pass to the linker, e.g. -l<library>
  1421. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1422. you have headers in a nonstandard directory <include dir>
  1423. CC C compiler command
  1424. CFLAGS C compiler flags
  1425. YACC The `Yet Another C Compiler' implementation to use. Defaults to
  1426. the first program found out of: `bison -y', `byacc', `yacc'.
  1427. YFLAGS The list of arguments that will be passed by default to $YACC.
  1428. This script will default YFLAGS to the empty string to avoid a
  1429. default value of `-d' given by some make applications.
  1430. CXXCPP C++ preprocessor
  1431. PKG_CONFIG path to pkg-config utility
  1432. SQLITE3_CFLAGS
  1433. C compiler flags for SQLITE3, overriding pkg-config
  1434. SQLITE3_LIBS
  1435. linker flags for SQLITE3, overriding pkg-config
  1436. LIBGNUTLS_CFLAGS
  1437. C compiler flags for LIBGNUTLS, overriding pkg-config
  1438. LIBGNUTLS_LIBS
  1439. linker flags for LIBGNUTLS, overriding pkg-config
  1440. Use these variables to override the choices made by `configure' or to help
  1441. it to find libraries and programs with nonstandard names/locations.
  1442. Report bugs to <t-tujikawa@users.sourceforge.net>.
  1443. aria2 home page: <http://aria2.sourceforge.net/>.
  1444. _ACEOF
  1445. ac_status=$?
  1446. fi
  1447. if test "$ac_init_help" = "recursive"; then
  1448. # If there are subdirs, report their specific --help.
  1449. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1450. test -d "$ac_dir" ||
  1451. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1452. continue
  1453. ac_builddir=.
  1454. case "$ac_dir" in
  1455. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1456. *)
  1457. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1458. # A ".." for each directory in $ac_dir_suffix.
  1459. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1460. case $ac_top_builddir_sub in
  1461. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1462. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1463. esac ;;
  1464. esac
  1465. ac_abs_top_builddir=$ac_pwd
  1466. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1467. # for backward compatibility:
  1468. ac_top_builddir=$ac_top_build_prefix
  1469. case $srcdir in
  1470. .) # We are building in place.
  1471. ac_srcdir=.
  1472. ac_top_srcdir=$ac_top_builddir_sub
  1473. ac_abs_top_srcdir=$ac_pwd ;;
  1474. [\\/]* | ?:[\\/]* ) # Absolute name.
  1475. ac_srcdir=$srcdir$ac_dir_suffix;
  1476. ac_top_srcdir=$srcdir
  1477. ac_abs_top_srcdir=$srcdir ;;
  1478. *) # Relative name.
  1479. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1480. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1481. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1482. esac
  1483. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1484. cd "$ac_dir" || { ac_status=$?; continue; }
  1485. # Check for guested configure.
  1486. if test -f "$ac_srcdir/configure.gnu"; then
  1487. echo &&
  1488. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1489. elif test -f "$ac_srcdir/configure"; then
  1490. echo &&
  1491. $SHELL "$ac_srcdir/configure" --help=recursive
  1492. else
  1493. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1494. fi || ac_status=$?
  1495. cd "$ac_pwd" || { ac_status=$?; break; }
  1496. done
  1497. fi
  1498. test -n "$ac_init_help" && exit $ac_status
  1499. if $ac_init_version; then
  1500. cat <<\_ACEOF
  1501. aria2 configure 1.6.3
  1502. generated by GNU Autoconf 2.64
  1503. Copyright (C) 2009 Free Software Foundation, Inc.
  1504. This configure script is free software; the Free Software Foundation
  1505. gives unlimited permission to copy, distribute and modify it.
  1506. _ACEOF
  1507. exit
  1508. fi
  1509. ## ------------------------ ##
  1510. ## Autoconf initialization. ##
  1511. ## ------------------------ ##
  1512. # ac_fn_cxx_try_compile LINENO
  1513. # ----------------------------
  1514. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1515. ac_fn_cxx_try_compile ()
  1516. {
  1517. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1518. rm -f conftest.$ac_objext
  1519. if { { ac_try="$ac_compile"
  1520. case "(($ac_try" in
  1521. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1522. *) ac_try_echo=$ac_try;;
  1523. esac
  1524. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1525. $as_echo "$ac_try_echo"; } >&5
  1526. (eval "$ac_compile") 2>conftest.err
  1527. ac_status=$?
  1528. if test -s conftest.err; then
  1529. grep -v '^ *+' conftest.err >conftest.er1
  1530. cat conftest.er1 >&5
  1531. mv -f conftest.er1 conftest.err
  1532. fi
  1533. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1534. test $ac_status = 0; } && {
  1535. test -z "$ac_cxx_werror_flag" ||
  1536. test ! -s conftest.err
  1537. } && test -s conftest.$ac_objext; then :
  1538. ac_retval=0
  1539. else
  1540. $as_echo "$as_me: failed program was:" >&5
  1541. sed 's/^/| /' conftest.$ac_ext >&5
  1542. ac_retval=1
  1543. fi
  1544. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1545. return $ac_retval
  1546. } # ac_fn_cxx_try_compile
  1547. # ac_fn_c_try_compile LINENO
  1548. # --------------------------
  1549. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1550. ac_fn_c_try_compile ()
  1551. {
  1552. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1553. rm -f conftest.$ac_objext
  1554. if { { ac_try="$ac_compile"
  1555. case "(($ac_try" in
  1556. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1557. *) ac_try_echo=$ac_try;;
  1558. esac
  1559. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1560. $as_echo "$ac_try_echo"; } >&5
  1561. (eval "$ac_compile") 2>conftest.err
  1562. ac_status=$?
  1563. if test -s conftest.err; then
  1564. grep -v '^ *+' conftest.err >conftest.er1
  1565. cat conftest.er1 >&5
  1566. mv -f conftest.er1 conftest.err
  1567. fi
  1568. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1569. test $ac_status = 0; } && {
  1570. test -z "$ac_c_werror_flag" ||
  1571. test ! -s conftest.err
  1572. } && test -s conftest.$ac_objext; then :
  1573. ac_retval=0
  1574. else
  1575. $as_echo "$as_me: failed program was:" >&5
  1576. sed 's/^/| /' conftest.$ac_ext >&5
  1577. ac_retval=1
  1578. fi
  1579. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1580. return $ac_retval
  1581. } # ac_fn_c_try_compile
  1582. # ac_fn_cxx_try_cpp LINENO
  1583. # ------------------------
  1584. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1585. ac_fn_cxx_try_cpp ()
  1586. {
  1587. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1588. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1589. case "(($ac_try" in
  1590. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1591. *) ac_try_echo=$ac_try;;
  1592. esac
  1593. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1594. $as_echo "$ac_try_echo"; } >&5
  1595. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1596. ac_status=$?
  1597. if test -s conftest.err; then
  1598. grep -v '^ *+' conftest.err >conftest.er1
  1599. cat conftest.er1 >&5
  1600. mv -f conftest.er1 conftest.err
  1601. fi
  1602. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1603. test $ac_status = 0; } >/dev/null && {
  1604. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1605. test ! -s conftest.err
  1606. }; then :
  1607. ac_retval=0
  1608. else
  1609. $as_echo "$as_me: failed program was:" >&5
  1610. sed 's/^/| /' conftest.$ac_ext >&5
  1611. ac_retval=1
  1612. fi
  1613. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1614. return $ac_retval
  1615. } # ac_fn_cxx_try_cpp
  1616. # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
  1617. # ---------------------------------------------------------
  1618. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1619. # the include files in INCLUDES and setting the cache variable VAR
  1620. # accordingly.
  1621. ac_fn_cxx_check_header_mongrel ()
  1622. {
  1623. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1624. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1625. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1626. $as_echo_n "checking for $2... " >&6; }
  1627. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1628. $as_echo_n "(cached) " >&6
  1629. fi
  1630. eval ac_res=\$$3
  1631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1632. $as_echo "$ac_res" >&6; }
  1633. else
  1634. # Is the header compilable?
  1635. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1636. $as_echo_n "checking $2 usability... " >&6; }
  1637. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1638. /* end confdefs.h. */
  1639. $4
  1640. #include <$2>
  1641. _ACEOF
  1642. if ac_fn_cxx_try_compile "$LINENO"; then :
  1643. ac_header_compiler=yes
  1644. else
  1645. ac_header_compiler=no
  1646. fi
  1647. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1649. $as_echo "$ac_header_compiler" >&6; }
  1650. # Is the header present?
  1651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1652. $as_echo_n "checking $2 presence... " >&6; }
  1653. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1654. /* end confdefs.h. */
  1655. #include <$2>
  1656. _ACEOF
  1657. if ac_fn_cxx_try_cpp "$LINENO"; then :
  1658. ac_header_preproc=yes
  1659. else
  1660. ac_header_preproc=no
  1661. fi
  1662. rm -f conftest.err conftest.$ac_ext
  1663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1664. $as_echo "$ac_header_preproc" >&6; }
  1665. # So? What about this header?
  1666. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
  1667. yes:no: )
  1668. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1669. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1670. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1671. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1672. ;;
  1673. no:yes:* )
  1674. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1675. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1676. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1677. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1678. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1679. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1680. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1681. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1682. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1683. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1684. ( cat <<\_ASBOX
  1685. ## ----------------------------------------------- ##
  1686. ## Report this to t-tujikawa@users.sourceforge.net ##
  1687. ## ----------------------------------------------- ##
  1688. _ASBOX
  1689. ) | sed "s/^/$as_me: WARNING: /" >&2
  1690. ;;
  1691. esac
  1692. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1693. $as_echo_n "checking for $2... " >&6; }
  1694. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1695. $as_echo_n "(cached) " >&6
  1696. else
  1697. eval "$3=\$ac_header_compiler"
  1698. fi
  1699. eval ac_res=\$$3
  1700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1701. $as_echo "$ac_res" >&6; }
  1702. fi
  1703. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1704. } # ac_fn_cxx_check_header_mongrel
  1705. # ac_fn_cxx_try_run LINENO
  1706. # ------------------------
  1707. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1708. # that executables *can* be run.
  1709. ac_fn_cxx_try_run ()
  1710. {
  1711. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1712. if { { ac_try="$ac_link"
  1713. case "(($ac_try" in
  1714. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1715. *) ac_try_echo=$ac_try;;
  1716. esac
  1717. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1718. $as_echo "$ac_try_echo"; } >&5
  1719. (eval "$ac_link") 2>&5
  1720. ac_status=$?
  1721. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1722. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1723. { { case "(($ac_try" in
  1724. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1725. *) ac_try_echo=$ac_try;;
  1726. esac
  1727. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1728. $as_echo "$ac_try_echo"; } >&5
  1729. (eval "$ac_try") 2>&5
  1730. ac_status=$?
  1731. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1732. test $ac_status = 0; }; }; then :
  1733. ac_retval=0
  1734. else
  1735. $as_echo "$as_me: program exited with status $ac_status" >&5
  1736. $as_echo "$as_me: failed program was:" >&5
  1737. sed 's/^/| /' conftest.$ac_ext >&5
  1738. ac_retval=$ac_status
  1739. fi
  1740. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1741. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1742. return $ac_retval
  1743. } # ac_fn_cxx_try_run
  1744. # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
  1745. # ---------------------------------------------------------
  1746. # Tests whether HEADER exists and can be compiled using the include files in
  1747. # INCLUDES, setting the cache variable VAR accordingly.
  1748. ac_fn_cxx_check_header_compile ()
  1749. {
  1750. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1751. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1752. $as_echo_n "checking for $2... " >&6; }
  1753. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1754. $as_echo_n "(cached) " >&6
  1755. else
  1756. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1757. /* end confdefs.h. */
  1758. $4
  1759. #include <$2>
  1760. _ACEOF
  1761. if ac_fn_cxx_try_compile "$LINENO"; then :
  1762. eval "$3=yes"
  1763. else
  1764. eval "$3=no"
  1765. fi
  1766. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1767. fi
  1768. eval ac_res=\$$3
  1769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1770. $as_echo "$ac_res" >&6; }
  1771. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1772. } # ac_fn_cxx_check_header_compile
  1773. # ac_fn_cxx_try_link LINENO
  1774. # -------------------------
  1775. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1776. ac_fn_cxx_try_link ()
  1777. {
  1778. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1779. rm -f conftest.$ac_objext conftest$ac_exeext
  1780. if { { ac_try="$ac_link"
  1781. case "(($ac_try" in
  1782. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1783. *) ac_try_echo=$ac_try;;
  1784. esac
  1785. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1786. $as_echo "$ac_try_echo"; } >&5
  1787. (eval "$ac_link") 2>conftest.err
  1788. ac_status=$?
  1789. if test -s conftest.err; then
  1790. grep -v '^ *+' conftest.err >conftest.er1
  1791. cat conftest.er1 >&5
  1792. mv -f conftest.er1 conftest.err
  1793. fi
  1794. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1795. test $ac_status = 0; } && {
  1796. test -z "$ac_cxx_werror_flag" ||
  1797. test ! -s conftest.err
  1798. } && test -s conftest$ac_exeext && {
  1799. test "$cross_compiling" = yes ||
  1800. $as_test_x conftest$ac_exeext
  1801. }; then :
  1802. ac_retval=0
  1803. else
  1804. $as_echo "$as_me: failed program was:" >&5
  1805. sed 's/^/| /' conftest.$ac_ext >&5
  1806. ac_retval=1
  1807. fi
  1808. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1809. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1810. # interfere with the next link command; also delete a directory that is
  1811. # left behind by Apple's compiler. We do this before executing the actions.
  1812. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1813. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1814. return $ac_retval
  1815. } # ac_fn_cxx_try_link
  1816. # ac_fn_cxx_check_func LINENO FUNC VAR
  1817. # ------------------------------------
  1818. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1819. ac_fn_cxx_check_func ()
  1820. {
  1821. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1822. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1823. $as_echo_n "checking for $2... " >&6; }
  1824. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1825. $as_echo_n "(cached) " >&6
  1826. else
  1827. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1828. /* end confdefs.h. */
  1829. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1830. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1831. #define $2 innocuous_$2
  1832. /* System header to define __stub macros and hopefully few prototypes,
  1833. which can conflict with char $2 (); below.
  1834. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1835. <limits.h> exists even on freestanding compilers. */
  1836. #ifdef __STDC__
  1837. # include <limits.h>
  1838. #else
  1839. # include <assert.h>
  1840. #endif
  1841. #undef $2
  1842. /* Override any GCC internal prototype to avoid an error.
  1843. Use char because int might match the return type of a GCC
  1844. builtin and then its argument prototype would still apply. */
  1845. #ifdef __cplusplus
  1846. extern "C"
  1847. #endif
  1848. char $2 ();
  1849. /* The GNU C library defines this for functions which it implements
  1850. to always fail with ENOSYS. Some functions are actually named
  1851. something starting with __ and the normal name is an alias. */
  1852. #if defined __stub_$2 || defined __stub___$2
  1853. choke me
  1854. #endif
  1855. int
  1856. main ()
  1857. {
  1858. return $2 ();
  1859. ;
  1860. return 0;
  1861. }
  1862. _ACEOF
  1863. if ac_fn_cxx_try_link "$LINENO"; then :
  1864. eval "$3=yes"
  1865. else
  1866. eval "$3=no"
  1867. fi
  1868. rm -f core conftest.err conftest.$ac_objext \
  1869. conftest$ac_exeext conftest.$ac_ext
  1870. fi
  1871. eval ac_res=\$$3
  1872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1873. $as_echo "$ac_res" >&6; }
  1874. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1875. } # ac_fn_cxx_check_func
  1876. # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
  1877. # ---------------------------------------------
  1878. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1879. # variable VAR accordingly.
  1880. ac_fn_cxx_check_type ()
  1881. {
  1882. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1883. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1884. $as_echo_n "checking for $2... " >&6; }
  1885. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1886. $as_echo_n "(cached) " >&6
  1887. else
  1888. eval "$3=no"
  1889. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1890. /* end confdefs.h. */
  1891. $4
  1892. int
  1893. main ()
  1894. {
  1895. if (sizeof ($2))
  1896. return 0;
  1897. ;
  1898. return 0;
  1899. }
  1900. _ACEOF
  1901. if ac_fn_cxx_try_compile "$LINENO"; then :
  1902. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1903. /* end confdefs.h. */
  1904. $4
  1905. int
  1906. main ()
  1907. {
  1908. if (sizeof (($2)))
  1909. return 0;
  1910. ;
  1911. return 0;
  1912. }
  1913. _ACEOF
  1914. if ac_fn_cxx_try_compile "$LINENO"; then :
  1915. else
  1916. eval "$3=yes"
  1917. fi
  1918. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1919. fi
  1920. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1921. fi
  1922. eval ac_res=\$$3
  1923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1924. $as_echo "$ac_res" >&6; }
  1925. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1926. } # ac_fn_cxx_check_type
  1927. # ac_fn_c_find_intX_t LINENO BITS VAR
  1928. # -----------------------------------
  1929. # Finds a signed integer type with width BITS, setting cache variable VAR
  1930. # accordingly.
  1931. ac_fn_c_find_intX_t ()
  1932. {
  1933. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1934. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
  1935. $as_echo_n "checking for int$2_t... " >&6; }
  1936. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1937. $as_echo_n "(cached) " >&6
  1938. else
  1939. eval "$3=no"
  1940. for ac_type in int$2_t 'int' 'long int' \
  1941. 'long long int' 'short int' 'signed char'; do
  1942. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1943. /* end confdefs.h. */
  1944. $ac_includes_default
  1945. int
  1946. main ()
  1947. {
  1948. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
  1949. test_array [0] = 0
  1950. ;
  1951. return 0;
  1952. }
  1953. _ACEOF
  1954. if ac_fn_cxx_try_compile "$LINENO"; then :
  1955. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1956. /* end confdefs.h. */
  1957. $ac_includes_default
  1958. int
  1959. main ()
  1960. {
  1961. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
  1962. < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
  1963. test_array [0] = 0
  1964. ;
  1965. return 0;
  1966. }
  1967. _ACEOF
  1968. if ac_fn_cxx_try_compile "$LINENO"; then :
  1969. else
  1970. case $ac_type in #(
  1971. int$2_t) :
  1972. eval "$3=yes" ;; #(
  1973. *) :
  1974. eval "$3=\$ac_type" ;;
  1975. esac
  1976. fi
  1977. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1978. fi
  1979. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1980. eval as_val=\$$3
  1981. if test "x$as_val" = x""no; then :
  1982. else
  1983. break
  1984. fi
  1985. done
  1986. fi
  1987. eval ac_res=\$$3
  1988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1989. $as_echo "$ac_res" >&6; }
  1990. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1991. } # ac_fn_c_find_intX_t
  1992. # ac_fn_c_find_uintX_t LINENO BITS VAR
  1993. # ------------------------------------
  1994. # Finds an unsigned integer type with width BITS, setting cache variable VAR
  1995. # accordingly.
  1996. ac_fn_c_find_uintX_t ()
  1997. {
  1998. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1999. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
  2000. $as_echo_n "checking for uint$2_t... " >&6; }
  2001. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  2002. $as_echo_n "(cached) " >&6
  2003. else
  2004. eval "$3=no"
  2005. for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
  2006. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  2007. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2008. /* end confdefs.h. */
  2009. $ac_includes_default
  2010. int
  2011. main ()
  2012. {
  2013. static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
  2014. test_array [0] = 0
  2015. ;
  2016. return 0;
  2017. }
  2018. _ACEOF
  2019. if ac_fn_cxx_try_compile "$LINENO"; then :
  2020. case $ac_type in #(
  2021. uint$2_t) :
  2022. eval "$3=yes" ;; #(
  2023. *) :
  2024. eval "$3=\$ac_type" ;;
  2025. esac
  2026. fi
  2027. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2028. eval as_val=\$$3
  2029. if test "x$as_val" = x""no; then :
  2030. else
  2031. break
  2032. fi
  2033. done
  2034. fi
  2035. eval ac_res=\$$3
  2036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2037. $as_echo "$ac_res" >&6; }
  2038. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2039. } # ac_fn_c_find_uintX_t
  2040. # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
  2041. # ----------------------------------------------
  2042. # Tries to find the compile-time value of EXPR in a program that includes
  2043. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  2044. # computed
  2045. ac_fn_cxx_compute_int ()
  2046. {
  2047. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2048. if test "$cross_compiling" = yes; then
  2049. # Depending upon the size, compute the lo and hi bounds.
  2050. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2051. /* end confdefs.h. */
  2052. $4
  2053. int
  2054. main ()
  2055. {
  2056. static int test_array [1 - 2 * !(($2) >= 0)];
  2057. test_array [0] = 0
  2058. ;
  2059. return 0;
  2060. }
  2061. _ACEOF
  2062. if ac_fn_cxx_try_compile "$LINENO"; then :
  2063. ac_lo=0 ac_mid=0
  2064. while :; do
  2065. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2066. /* end confdefs.h. */
  2067. $4
  2068. int
  2069. main ()
  2070. {
  2071. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2072. test_array [0] = 0
  2073. ;
  2074. return 0;
  2075. }
  2076. _ACEOF
  2077. if ac_fn_cxx_try_compile "$LINENO"; then :
  2078. ac_hi=$ac_mid; break
  2079. else
  2080. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  2081. if test $ac_lo -le $ac_mid; then
  2082. ac_lo= ac_hi=
  2083. break
  2084. fi
  2085. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  2086. fi
  2087. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2088. done
  2089. else
  2090. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2091. /* end confdefs.h. */
  2092. $4
  2093. int
  2094. main ()
  2095. {
  2096. static int test_array [1 - 2 * !(($2) < 0)];
  2097. test_array [0] = 0
  2098. ;
  2099. return 0;
  2100. }
  2101. _ACEOF
  2102. if ac_fn_cxx_try_compile "$LINENO"; then :
  2103. ac_hi=-1 ac_mid=-1
  2104. while :; do
  2105. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2106. /* end confdefs.h. */
  2107. $4
  2108. int
  2109. main ()
  2110. {
  2111. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  2112. test_array [0] = 0
  2113. ;
  2114. return 0;
  2115. }
  2116. _ACEOF
  2117. if ac_fn_cxx_try_compile "$LINENO"; then :
  2118. ac_lo=$ac_mid; break
  2119. else
  2120. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  2121. if test $ac_mid -le $ac_hi; then
  2122. ac_lo= ac_hi=
  2123. break
  2124. fi
  2125. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  2126. fi
  2127. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2128. done
  2129. else
  2130. ac_lo= ac_hi=
  2131. fi
  2132. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2133. fi
  2134. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2135. # Binary search between lo and hi bounds.
  2136. while test "x$ac_lo" != "x$ac_hi"; do
  2137. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  2138. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2139. /* end confdefs.h. */
  2140. $4
  2141. int
  2142. main ()
  2143. {
  2144. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2145. test_array [0] = 0
  2146. ;
  2147. return 0;
  2148. }
  2149. _ACEOF
  2150. if ac_fn_cxx_try_compile "$LINENO"; then :
  2151. ac_hi=$ac_mid
  2152. else
  2153. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  2154. fi
  2155. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2156. done
  2157. case $ac_lo in #((
  2158. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  2159. '') ac_retval=1 ;;
  2160. esac
  2161. else
  2162. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2163. /* end confdefs.h. */
  2164. $4
  2165. static long int longval () { return $2; }
  2166. static unsigned long int ulongval () { return $2; }
  2167. #include <stdio.h>
  2168. #include <stdlib.h>
  2169. int
  2170. main ()
  2171. {
  2172. FILE *f = fopen ("conftest.val", "w");
  2173. if (! f)
  2174. return 1;
  2175. if (($2) < 0)
  2176. {
  2177. long int i = longval ();
  2178. if (i != ($2))
  2179. return 1;
  2180. fprintf (f, "%ld", i);
  2181. }
  2182. else
  2183. {
  2184. unsigned long int i = ulongval ();
  2185. if (i != ($2))
  2186. return 1;
  2187. fprintf (f, "%lu", i);
  2188. }
  2189. /* Do not output a trailing newline, as this causes \r\n confusion
  2190. on some platforms. */
  2191. return ferror (f) || fclose (f) != 0;
  2192. ;
  2193. return 0;
  2194. }
  2195. _ACEOF
  2196. if ac_fn_cxx_try_run "$LINENO"; then :
  2197. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  2198. else
  2199. ac_retval=1
  2200. fi
  2201. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  2202. conftest.$ac_objext conftest.beam conftest.$ac_ext
  2203. rm -f conftest.val
  2204. fi
  2205. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2206. return $ac_retval
  2207. } # ac_fn_cxx_compute_int
  2208. # ac_fn_cxx_check_member LINENO AGGR MEMBER VAR INCLUDES
  2209. # ------------------------------------------------------
  2210. # Tries to find if the field MEMBER exists in type AGGR, after including
  2211. # INCLUDES, setting cache variable VAR accordingly.
  2212. ac_fn_cxx_check_member ()
  2213. {
  2214. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2215. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2216. $as_echo_n "checking for $2.$3... " >&6; }
  2217. if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
  2218. $as_echo_n "(cached) " >&6
  2219. else
  2220. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2221. /* end confdefs.h. */
  2222. $5
  2223. int
  2224. main ()
  2225. {
  2226. static $2 ac_aggr;
  2227. if (ac_aggr.$3)
  2228. return 0;
  2229. ;
  2230. return 0;
  2231. }
  2232. _ACEOF
  2233. if ac_fn_cxx_try_compile "$LINENO"; then :
  2234. eval "$4=yes"
  2235. else
  2236. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2237. /* end confdefs.h. */
  2238. $5
  2239. int
  2240. main ()
  2241. {
  2242. static $2 ac_aggr;
  2243. if (sizeof ac_aggr.$3)
  2244. return 0;
  2245. ;
  2246. return 0;
  2247. }
  2248. _ACEOF
  2249. if ac_fn_cxx_try_compile "$LINENO"; then :
  2250. eval "$4=yes"
  2251. else
  2252. eval "$4=no"
  2253. fi
  2254. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2255. fi
  2256. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2257. fi
  2258. eval ac_res=\$$4
  2259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2260. $as_echo "$ac_res" >&6; }
  2261. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2262. } # ac_fn_cxx_check_member
  2263. cat >config.log <<_ACEOF
  2264. This file contains any messages produced by compilers while
  2265. running configure, to aid debugging if configure makes a mistake.
  2266. It was created by aria2 $as_me 1.6.3, which was
  2267. generated by GNU Autoconf 2.64. Invocation command line was
  2268. $ $0 $@
  2269. _ACEOF
  2270. exec 5>>config.log
  2271. {
  2272. cat <<_ASUNAME
  2273. ## --------- ##
  2274. ## Platform. ##
  2275. ## --------- ##
  2276. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2277. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2278. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2279. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2280. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2281. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2282. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2283. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2284. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2285. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2286. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2287. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2288. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2289. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2290. _ASUNAME
  2291. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2292. for as_dir in $PATH
  2293. do
  2294. IFS=$as_save_IFS
  2295. test -z "$as_dir" && as_dir=.
  2296. $as_echo "PATH: $as_dir"
  2297. done
  2298. IFS=$as_save_IFS
  2299. } >&5
  2300. cat >&5 <<_ACEOF
  2301. ## ----------- ##
  2302. ## Core tests. ##
  2303. ## ----------- ##
  2304. _ACEOF
  2305. # Keep a trace of the command line.
  2306. # Strip out --no-create and --no-recursion so they do not pile up.
  2307. # Strip out --silent because we don't want to record it for future runs.
  2308. # Also quote any args containing shell meta-characters.
  2309. # Make two passes to allow for proper duplicate-argument suppression.
  2310. ac_configure_args=
  2311. ac_configure_args0=
  2312. ac_configure_args1=
  2313. ac_must_keep_next=false
  2314. for ac_pass in 1 2
  2315. do
  2316. for ac_arg
  2317. do
  2318. case $ac_arg in
  2319. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2320. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2321. | -silent | --silent | --silen | --sile | --sil)
  2322. continue ;;
  2323. *\'*)
  2324. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2325. esac
  2326. case $ac_pass in
  2327. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2328. 2)
  2329. as_fn_append ac_configure_args1 " '$ac_arg'"
  2330. if test $ac_must_keep_next = true; then
  2331. ac_must_keep_next=false # Got value, back to normal.
  2332. else
  2333. case $ac_arg in
  2334. *=* | --config-cache | -C | -disable-* | --disable-* \
  2335. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2336. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2337. | -with-* | --with-* | -without-* | --without-* | --x)
  2338. case "$ac_configure_args0 " in
  2339. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2340. esac
  2341. ;;
  2342. -* ) ac_must_keep_next=true ;;
  2343. esac
  2344. fi
  2345. as_fn_append ac_configure_args " '$ac_arg'"
  2346. ;;
  2347. esac
  2348. done
  2349. done
  2350. { ac_configure_args0=; unset ac_configure_args0;}
  2351. { ac_configure_args1=; unset ac_configure_args1;}
  2352. # When interrupted or exit'd, cleanup temporary files, and complete
  2353. # config.log. We remove comments because anyway the quotes in there
  2354. # would cause problems or look ugly.
  2355. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2356. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2357. trap 'exit_status=$?
  2358. # Save into config.log some information that might help in debugging.
  2359. {
  2360. echo
  2361. cat <<\_ASBOX
  2362. ## ---------------- ##
  2363. ## Cache variables. ##
  2364. ## ---------------- ##
  2365. _ASBOX
  2366. echo
  2367. # The following way of writing the cache mishandles newlines in values,
  2368. (
  2369. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2370. eval ac_val=\$$ac_var
  2371. case $ac_val in #(
  2372. *${as_nl}*)
  2373. case $ac_var in #(
  2374. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2375. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2376. esac
  2377. case $ac_var in #(
  2378. _ | IFS | as_nl) ;; #(
  2379. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2380. *) { eval $ac_var=; unset $ac_var;} ;;
  2381. esac ;;
  2382. esac
  2383. done
  2384. (set) 2>&1 |
  2385. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2386. *${as_nl}ac_space=\ *)
  2387. sed -n \
  2388. "s/'\''/'\''\\\\'\'''\''/g;
  2389. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2390. ;; #(
  2391. *)
  2392. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2393. ;;
  2394. esac |
  2395. sort
  2396. )
  2397. echo
  2398. cat <<\_ASBOX
  2399. ## ----------------- ##
  2400. ## Output variables. ##
  2401. ## ----------------- ##
  2402. _ASBOX
  2403. echo
  2404. for ac_var in $ac_subst_vars
  2405. do
  2406. eval ac_val=\$$ac_var
  2407. case $ac_val in
  2408. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2409. esac
  2410. $as_echo "$ac_var='\''$ac_val'\''"
  2411. done | sort
  2412. echo
  2413. if test -n "$ac_subst_files"; then
  2414. cat <<\_ASBOX
  2415. ## ------------------- ##
  2416. ## File substitutions. ##
  2417. ## ------------------- ##
  2418. _ASBOX
  2419. echo
  2420. for ac_var in $ac_subst_files
  2421. do
  2422. eval ac_val=\$$ac_var
  2423. case $ac_val in
  2424. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2425. esac
  2426. $as_echo "$ac_var='\''$ac_val'\''"
  2427. done | sort
  2428. echo
  2429. fi
  2430. if test -s confdefs.h; then
  2431. cat <<\_ASBOX
  2432. ## ----------- ##
  2433. ## confdefs.h. ##
  2434. ## ----------- ##
  2435. _ASBOX
  2436. echo
  2437. cat confdefs.h
  2438. echo
  2439. fi
  2440. test "$ac_signal" != 0 &&
  2441. $as_echo "$as_me: caught signal $ac_signal"
  2442. $as_echo "$as_me: exit $exit_status"
  2443. } >&5
  2444. rm -f core *.core core.conftest.* &&
  2445. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2446. exit $exit_status
  2447. ' 0
  2448. for ac_signal in 1 2 13 15; do
  2449. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2450. done
  2451. ac_signal=0
  2452. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2453. rm -f -r conftest* confdefs.h
  2454. $as_echo "/* confdefs.h */" > confdefs.h
  2455. # Predefined preprocessor variables.
  2456. cat >>confdefs.h <<_ACEOF
  2457. #define PACKAGE_NAME "$PACKAGE_NAME"
  2458. _ACEOF
  2459. cat >>confdefs.h <<_ACEOF
  2460. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2461. _ACEOF
  2462. cat >>confdefs.h <<_ACEOF
  2463. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2464. _ACEOF
  2465. cat >>confdefs.h <<_ACEOF
  2466. #define PACKAGE_STRING "$PACKAGE_STRING"
  2467. _ACEOF
  2468. cat >>confdefs.h <<_ACEOF
  2469. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2470. _ACEOF
  2471. cat >>confdefs.h <<_ACEOF
  2472. #define PACKAGE_URL "$PACKAGE_URL"
  2473. _ACEOF
  2474. # Let the site file select an alternate cache file if it wants to.
  2475. # Prefer an explicitly selected file to automatically selected ones.
  2476. ac_site_file1=NONE
  2477. ac_site_file2=NONE
  2478. if test -n "$CONFIG_SITE"; then
  2479. ac_site_file1=$CONFIG_SITE
  2480. elif test "x$prefix" != xNONE; then
  2481. ac_site_file1=$prefix/share/config.site
  2482. ac_site_file2=$prefix/etc/config.site
  2483. else
  2484. ac_site_file1=$ac_default_prefix/share/config.site
  2485. ac_site_file2=$ac_default_prefix/etc/config.site
  2486. fi
  2487. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2488. do
  2489. test "x$ac_site_file" = xNONE && continue
  2490. if test -r "$ac_site_file"; then
  2491. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2492. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2493. sed 's/^/| /' "$ac_site_file" >&5
  2494. . "$ac_site_file"
  2495. fi
  2496. done
  2497. if test -r "$cache_file"; then
  2498. # Some versions of bash will fail to source /dev/null (special
  2499. # files actually), so we avoid doing that.
  2500. if test -f "$cache_file"; then
  2501. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2502. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2503. case $cache_file in
  2504. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2505. *) . "./$cache_file";;
  2506. esac
  2507. fi
  2508. else
  2509. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2510. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2511. >$cache_file
  2512. fi
  2513. gt_needs="$gt_needs "
  2514. as_fn_append ac_header_list " sys/time.h"
  2515. as_fn_append ac_header_list " unistd.h"
  2516. as_fn_append ac_func_list " alarm"
  2517. # Check that the precious variables saved in the cache have kept the same
  2518. # value.
  2519. ac_cache_corrupted=false
  2520. for ac_var in $ac_precious_vars; do
  2521. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2522. eval ac_new_set=\$ac_env_${ac_var}_set
  2523. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2524. eval ac_new_val=\$ac_env_${ac_var}_value
  2525. case $ac_old_set,$ac_new_set in
  2526. set,)
  2527. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2528. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2529. ac_cache_corrupted=: ;;
  2530. ,set)
  2531. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2532. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2533. ac_cache_corrupted=: ;;
  2534. ,);;
  2535. *)
  2536. if test "x$ac_old_val" != "x$ac_new_val"; then
  2537. # differences in whitespace do not lead to failure.
  2538. ac_old_val_w=`echo x $ac_old_val`
  2539. ac_new_val_w=`echo x $ac_new_val`
  2540. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2541. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2542. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2543. ac_cache_corrupted=:
  2544. else
  2545. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2546. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2547. eval $ac_var=\$ac_old_val
  2548. fi
  2549. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2550. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2551. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2552. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2553. fi;;
  2554. esac
  2555. # Pass precious variables to config.status.
  2556. if test "$ac_new_set" = set; then
  2557. case $ac_new_val in
  2558. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2559. *) ac_arg=$ac_var=$ac_new_val ;;
  2560. esac
  2561. case " $ac_configure_args " in
  2562. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2563. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2564. esac
  2565. fi
  2566. done
  2567. if $ac_cache_corrupted; then
  2568. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2569. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2570. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2571. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2572. as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2573. fi
  2574. ## -------------------- ##
  2575. ## Main body of script. ##
  2576. ## -------------------- ##
  2577. ac_ext=c
  2578. ac_cpp='$CPP $CPPFLAGS'
  2579. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2580. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2581. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2582. ac_aux_dir=
  2583. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2584. for ac_t in install-sh install.sh shtool; do
  2585. if test -f "$ac_dir/$ac_t"; then
  2586. ac_aux_dir=$ac_dir
  2587. ac_install_sh="$ac_aux_dir/$ac_t -c"
  2588. break 2
  2589. fi
  2590. done
  2591. done
  2592. if test -z "$ac_aux_dir"; then
  2593. as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2594. fi
  2595. # These three variables are undocumented and unsupported,
  2596. # and are intended to be withdrawn in a future Autoconf release.
  2597. # They can cause serious problems if a builder's source tree is in a directory
  2598. # whose full name contains unusual characters.
  2599. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2600. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2601. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2602. # Make sure we can run config.sub.
  2603. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2604. as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2605. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2606. $as_echo_n "checking build system type... " >&6; }
  2607. if test "${ac_cv_build+set}" = set; then :
  2608. $as_echo_n "(cached) " >&6
  2609. else
  2610. ac_build_alias=$build_alias
  2611. test "x$ac_build_alias" = x &&
  2612. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2613. test "x$ac_build_alias" = x &&
  2614. as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  2615. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2616. as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2617. fi
  2618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2619. $as_echo "$ac_cv_build" >&6; }
  2620. case $ac_cv_build in
  2621. *-*-*) ;;
  2622. *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  2623. esac
  2624. build=$ac_cv_build
  2625. ac_save_IFS=$IFS; IFS='-'
  2626. set x $ac_cv_build
  2627. shift
  2628. build_cpu=$1
  2629. build_vendor=$2
  2630. shift; shift
  2631. # Remember, the first character of IFS is used to create $*,
  2632. # except with old shells:
  2633. build_os=$*
  2634. IFS=$ac_save_IFS
  2635. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2636. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2637. $as_echo_n "checking host system type... " >&6; }
  2638. if test "${ac_cv_host+set}" = set; then :
  2639. $as_echo_n "(cached) " >&6
  2640. else
  2641. if test "x$host_alias" = x; then
  2642. ac_cv_host=$ac_cv_build
  2643. else
  2644. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2645. as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2646. fi
  2647. fi
  2648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2649. $as_echo "$ac_cv_host" >&6; }
  2650. case $ac_cv_host in
  2651. *-*-*) ;;
  2652. *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  2653. esac
  2654. host=$ac_cv_host
  2655. ac_save_IFS=$IFS; IFS='-'
  2656. set x $ac_cv_host
  2657. shift
  2658. host_cpu=$1
  2659. host_vendor=$2
  2660. shift; shift
  2661. # Remember, the first character of IFS is used to create $*,
  2662. # except with old shells:
  2663. host_os=$*
  2664. IFS=$ac_save_IFS
  2665. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2666. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2667. $as_echo_n "checking target system type... " >&6; }
  2668. if test "${ac_cv_target+set}" = set; then :
  2669. $as_echo_n "(cached) " >&6
  2670. else
  2671. if test "x$target_alias" = x; then
  2672. ac_cv_target=$ac_cv_host
  2673. else
  2674. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2675. as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2676. fi
  2677. fi
  2678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2679. $as_echo "$ac_cv_target" >&6; }
  2680. case $ac_cv_target in
  2681. *-*-*) ;;
  2682. *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
  2683. esac
  2684. target=$ac_cv_target
  2685. ac_save_IFS=$IFS; IFS='-'
  2686. set x $ac_cv_target
  2687. shift
  2688. target_cpu=$1
  2689. target_vendor=$2
  2690. shift; shift
  2691. # Remember, the first character of IFS is used to create $*,
  2692. # except with old shells:
  2693. target_os=$*
  2694. IFS=$ac_save_IFS
  2695. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2696. # The aliases save the names the user supplied, while $host etc.
  2697. # will get canonicalized.
  2698. test -n "$target_alias" &&
  2699. test "$program_prefix$program_suffix$program_transform_name" = \
  2700. NONENONEs,x,x, &&
  2701. program_prefix=${target_alias}-
  2702. am__api_version='1.11'
  2703. # Find a good install program. We prefer a C program (faster),
  2704. # so one script is as good as another. But avoid the broken or
  2705. # incompatible versions:
  2706. # SysV /etc/install, /usr/sbin/install
  2707. # SunOS /usr/etc/install
  2708. # IRIX /sbin/install
  2709. # AIX /bin/install
  2710. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2711. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2712. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2713. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2714. # OS/2's system install, which has a completely different semantic
  2715. # ./install, which can be erroneously created by make from ./install.sh.
  2716. # Reject install programs that cannot install multiple files.
  2717. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2718. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2719. if test -z "$INSTALL"; then
  2720. if test "${ac_cv_path_install+set}" = set; then :
  2721. $as_echo_n "(cached) " >&6
  2722. else
  2723. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2724. for as_dir in $PATH
  2725. do
  2726. IFS=$as_save_IFS
  2727. test -z "$as_dir" && as_dir=.
  2728. # Account for people who put trailing slashes in PATH elements.
  2729. case $as_dir/ in #((
  2730. ./ | .// | /[cC]/* | \
  2731. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2732. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2733. /usr/ucb/* ) ;;
  2734. *)
  2735. # OSF1 and SCO ODT 3.0 have their own names for install.
  2736. # Don't use installbsd from OSF since it installs stuff as root
  2737. # by default.
  2738. for ac_prog in ginstall scoinst install; do
  2739. for ac_exec_ext in '' $ac_executable_extensions; do
  2740. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2741. if test $ac_prog = install &&
  2742. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2743. # AIX install. It has an incompatible calling convention.
  2744. :
  2745. elif test $ac_prog = install &&
  2746. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2747. # program-specific install script used by HP pwplus--don't use.
  2748. :
  2749. else
  2750. rm -rf conftest.one conftest.two conftest.dir
  2751. echo one > conftest.one
  2752. echo two > conftest.two
  2753. mkdir conftest.dir
  2754. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2755. test -s conftest.one && test -s conftest.two &&
  2756. test -s conftest.dir/conftest.one &&
  2757. test -s conftest.dir/conftest.two
  2758. then
  2759. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2760. break 3
  2761. fi
  2762. fi
  2763. fi
  2764. done
  2765. done
  2766. ;;
  2767. esac
  2768. done
  2769. IFS=$as_save_IFS
  2770. rm -rf conftest.one conftest.two conftest.dir
  2771. fi
  2772. if test "${ac_cv_path_install+set}" = set; then
  2773. INSTALL=$ac_cv_path_install
  2774. else
  2775. # As a last resort, use the slow shell script. Don't cache a
  2776. # value for INSTALL within a source directory, because that will
  2777. # break other packages using the cache if that directory is
  2778. # removed, or if the value is a relative name.
  2779. INSTALL=$ac_install_sh
  2780. fi
  2781. fi
  2782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2783. $as_echo "$INSTALL" >&6; }
  2784. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2785. # It thinks the first close brace ends the variable substitution.
  2786. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2787. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2788. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2790. $as_echo_n "checking whether build environment is sane... " >&6; }
  2791. # Just in case
  2792. sleep 1
  2793. echo timestamp > conftest.file
  2794. # Reject unsafe characters in $srcdir or the absolute working directory
  2795. # name. Accept space and tab only in the latter.
  2796. am_lf='
  2797. '
  2798. case `pwd` in
  2799. *[\\\"\#\$\&\'\`$am_lf]*)
  2800. as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
  2801. esac
  2802. case $srcdir in
  2803. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2804. as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  2805. esac
  2806. # Do `set' in a subshell so we don't clobber the current shell's
  2807. # arguments. Must try -L first in case configure is actually a
  2808. # symlink; some systems play weird games with the mod time of symlinks
  2809. # (eg FreeBSD returns the mod time of the symlink's containing
  2810. # directory).
  2811. if (
  2812. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2813. if test "$*" = "X"; then
  2814. # -L didn't work.
  2815. set X `ls -t "$srcdir/configure" conftest.file`
  2816. fi
  2817. rm -f conftest.file
  2818. if test "$*" != "X $srcdir/configure conftest.file" \
  2819. && test "$*" != "X conftest.file $srcdir/configure"; then
  2820. # If neither matched, then we have a broken ls. This can happen
  2821. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2822. # broken ls alias from the environment. This has actually
  2823. # happened. Such a system could not be considered "sane".
  2824. as_fn_error "ls -t appears to fail. Make sure there is not a broken
  2825. alias in your environment" "$LINENO" 5
  2826. fi
  2827. test "$2" = conftest.file
  2828. )
  2829. then
  2830. # Ok.
  2831. :
  2832. else
  2833. as_fn_error "newly created file is older than distributed files!
  2834. Check your system clock" "$LINENO" 5
  2835. fi
  2836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2837. $as_echo "yes" >&6; }
  2838. test "$program_prefix" != NONE &&
  2839. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2840. # Use a double $ so make ignores it.
  2841. test "$program_suffix" != NONE &&
  2842. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2843. # Double any \ or $.
  2844. # By default was `s,x,x', remove it if useless.
  2845. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2846. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2847. # expand $ac_aux_dir to an absolute path
  2848. am_aux_dir=`cd $ac_aux_dir && pwd`
  2849. if test x"${MISSING+set}" != xset; then
  2850. case $am_aux_dir in
  2851. *\ * | *\ *)
  2852. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2853. *)
  2854. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2855. esac
  2856. fi
  2857. # Use eval to expand $SHELL
  2858. if eval "$MISSING --run true"; then
  2859. am_missing_run="$MISSING --run "
  2860. else
  2861. am_missing_run=
  2862. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  2863. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2864. fi
  2865. if test x"${install_sh}" != xset; then
  2866. case $am_aux_dir in
  2867. *\ * | *\ *)
  2868. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2869. *)
  2870. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2871. esac
  2872. fi
  2873. # Installed binaries are usually stripped using `strip' when the user
  2874. # run `make install-strip'. However `strip' might not be the right
  2875. # tool to use in cross-compilation environments, therefore Automake
  2876. # will honor the `STRIP' environment variable to overrule this program.
  2877. if test "$cross_compiling" != no; then
  2878. if test -n "$ac_tool_prefix"; then
  2879. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2880. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2881. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2882. $as_echo_n "checking for $ac_word... " >&6; }
  2883. if test "${ac_cv_prog_STRIP+set}" = set; then :
  2884. $as_echo_n "(cached) " >&6
  2885. else
  2886. if test -n "$STRIP"; then
  2887. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2888. else
  2889. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2890. for as_dir in $PATH
  2891. do
  2892. IFS=$as_save_IFS
  2893. test -z "$as_dir" && as_dir=.
  2894. for ac_exec_ext in '' $ac_executable_extensions; do
  2895. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2896. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2897. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2898. break 2
  2899. fi
  2900. done
  2901. done
  2902. IFS=$as_save_IFS
  2903. fi
  2904. fi
  2905. STRIP=$ac_cv_prog_STRIP
  2906. if test -n "$STRIP"; then
  2907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2908. $as_echo "$STRIP" >&6; }
  2909. else
  2910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2911. $as_echo "no" >&6; }
  2912. fi
  2913. fi
  2914. if test -z "$ac_cv_prog_STRIP"; then
  2915. ac_ct_STRIP=$STRIP
  2916. # Extract the first word of "strip", so it can be a program name with args.
  2917. set dummy strip; ac_word=$2
  2918. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2919. $as_echo_n "checking for $ac_word... " >&6; }
  2920. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  2921. $as_echo_n "(cached) " >&6
  2922. else
  2923. if test -n "$ac_ct_STRIP"; then
  2924. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2925. else
  2926. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2927. for as_dir in $PATH
  2928. do
  2929. IFS=$as_save_IFS
  2930. test -z "$as_dir" && as_dir=.
  2931. for ac_exec_ext in '' $ac_executable_extensions; do
  2932. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2933. ac_cv_prog_ac_ct_STRIP="strip"
  2934. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2935. break 2
  2936. fi
  2937. done
  2938. done
  2939. IFS=$as_save_IFS
  2940. fi
  2941. fi
  2942. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2943. if test -n "$ac_ct_STRIP"; then
  2944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2945. $as_echo "$ac_ct_STRIP" >&6; }
  2946. else
  2947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2948. $as_echo "no" >&6; }
  2949. fi
  2950. if test "x$ac_ct_STRIP" = x; then
  2951. STRIP=":"
  2952. else
  2953. case $cross_compiling:$ac_tool_warned in
  2954. yes:)
  2955. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2956. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2957. ac_tool_warned=yes ;;
  2958. esac
  2959. STRIP=$ac_ct_STRIP
  2960. fi
  2961. else
  2962. STRIP="$ac_cv_prog_STRIP"
  2963. fi
  2964. fi
  2965. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2966. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2967. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2968. if test -z "$MKDIR_P"; then
  2969. if test "${ac_cv_path_mkdir+set}" = set; then :
  2970. $as_echo_n "(cached) " >&6
  2971. else
  2972. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2973. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2974. do
  2975. IFS=$as_save_IFS
  2976. test -z "$as_dir" && as_dir=.
  2977. for ac_prog in mkdir gmkdir; do
  2978. for ac_exec_ext in '' $ac_executable_extensions; do
  2979. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2980. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2981. 'mkdir (GNU coreutils) '* | \
  2982. 'mkdir (coreutils) '* | \
  2983. 'mkdir (fileutils) '4.1*)
  2984. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2985. break 3;;
  2986. esac
  2987. done
  2988. done
  2989. done
  2990. IFS=$as_save_IFS
  2991. fi
  2992. if test "${ac_cv_path_mkdir+set}" = set; then
  2993. MKDIR_P="$ac_cv_path_mkdir -p"
  2994. else
  2995. # As a last resort, use the slow shell script. Don't cache a
  2996. # value for MKDIR_P within a source directory, because that will
  2997. # break other packages using the cache if that directory is
  2998. # removed, or if the value is a relative name.
  2999. test -d ./--version && rmdir ./--version
  3000. MKDIR_P="$ac_install_sh -d"
  3001. fi
  3002. fi
  3003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  3004. $as_echo "$MKDIR_P" >&6; }
  3005. mkdir_p="$MKDIR_P"
  3006. case $mkdir_p in
  3007. [\\/$]* | ?:[\\/]*) ;;
  3008. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  3009. esac
  3010. for ac_prog in gawk mawk nawk awk
  3011. do
  3012. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3013. set dummy $ac_prog; ac_word=$2
  3014. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3015. $as_echo_n "checking for $ac_word... " >&6; }
  3016. if test "${ac_cv_prog_AWK+set}" = set; then :
  3017. $as_echo_n "(cached) " >&6
  3018. else
  3019. if test -n "$AWK"; then
  3020. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3021. else
  3022. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3023. for as_dir in $PATH
  3024. do
  3025. IFS=$as_save_IFS
  3026. test -z "$as_dir" && as_dir=.
  3027. for ac_exec_ext in '' $ac_executable_extensions; do
  3028. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3029. ac_cv_prog_AWK="$ac_prog"
  3030. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3031. break 2
  3032. fi
  3033. done
  3034. done
  3035. IFS=$as_save_IFS
  3036. fi
  3037. fi
  3038. AWK=$ac_cv_prog_AWK
  3039. if test -n "$AWK"; then
  3040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  3041. $as_echo "$AWK" >&6; }
  3042. else
  3043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3044. $as_echo "no" >&6; }
  3045. fi
  3046. test -n "$AWK" && break
  3047. done
  3048. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3049. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3050. set x ${MAKE-make}
  3051. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3052. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  3053. $as_echo_n "(cached) " >&6
  3054. else
  3055. cat >conftest.make <<\_ACEOF
  3056. SHELL = /bin/sh
  3057. all:
  3058. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3059. _ACEOF
  3060. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  3061. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3062. *@@@%%%=?*=@@@%%%*)
  3063. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3064. *)
  3065. eval ac_cv_prog_make_${ac_make}_set=no;;
  3066. esac
  3067. rm -f conftest.make
  3068. fi
  3069. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3070. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3071. $as_echo "yes" >&6; }
  3072. SET_MAKE=
  3073. else
  3074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3075. $as_echo "no" >&6; }
  3076. SET_MAKE="MAKE=${MAKE-make}"
  3077. fi
  3078. rm -rf .tst 2>/dev/null
  3079. mkdir .tst 2>/dev/null
  3080. if test -d .tst; then
  3081. am__leading_dot=.
  3082. else
  3083. am__leading_dot=_
  3084. fi
  3085. rmdir .tst 2>/dev/null
  3086. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  3087. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  3088. # is not polluted with repeated "-I."
  3089. am__isrc=' -I$(srcdir)'
  3090. # test to see if srcdir already configured
  3091. if test -f $srcdir/config.status; then
  3092. as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  3093. fi
  3094. fi
  3095. # test whether we have cygpath
  3096. if test -z "$CYGPATH_W"; then
  3097. if (cygpath --version) >/dev/null 2>/dev/null; then
  3098. CYGPATH_W='cygpath -w'
  3099. else
  3100. CYGPATH_W=echo
  3101. fi
  3102. fi
  3103. # Define the identity of the package.
  3104. PACKAGE='aria2'
  3105. VERSION='1.6.3'
  3106. cat >>confdefs.h <<_ACEOF
  3107. #define PACKAGE "$PACKAGE"
  3108. _ACEOF
  3109. cat >>confdefs.h <<_ACEOF
  3110. #define VERSION "$VERSION"
  3111. _ACEOF
  3112. # Some tools Automake needs.
  3113. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  3114. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  3115. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  3116. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  3117. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  3118. # We need awk for the "check" target. The system "awk" is bad on
  3119. # some platforms.
  3120. # Always define AMTAR for backward compatibility.
  3121. AMTAR=${AMTAR-"${am_missing_run}tar"}
  3122. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  3123. # Check whether --with-cppunit-prefix was given.
  3124. if test "${with_cppunit_prefix+set}" = set; then :
  3125. withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
  3126. else
  3127. cppunit_config_prefix=""
  3128. fi
  3129. # Check whether --with-cppunit-exec-prefix was given.
  3130. if test "${with_cppunit_exec_prefix+set}" = set; then :
  3131. withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
  3132. else
  3133. cppunit_config_exec_prefix=""
  3134. fi
  3135. if test x$cppunit_config_exec_prefix != x ; then
  3136. cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
  3137. if test x${CPPUNIT_CONFIG+set} != xset ; then
  3138. CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
  3139. fi
  3140. fi
  3141. if test x$cppunit_config_prefix != x ; then
  3142. cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
  3143. if test x${CPPUNIT_CONFIG+set} != xset ; then
  3144. CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
  3145. fi
  3146. fi
  3147. # Extract the first word of "cppunit-config", so it can be a program name with args.
  3148. set dummy cppunit-config; ac_word=$2
  3149. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3150. $as_echo_n "checking for $ac_word... " >&6; }
  3151. if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then :
  3152. $as_echo_n "(cached) " >&6
  3153. else
  3154. case $CPPUNIT_CONFIG in
  3155. [\\/]* | ?:[\\/]*)
  3156. ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
  3157. ;;
  3158. *)
  3159. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3160. for as_dir in $PATH
  3161. do
  3162. IFS=$as_save_IFS
  3163. test -z "$as_dir" && as_dir=.
  3164. for ac_exec_ext in '' $ac_executable_extensions; do
  3165. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3166. ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  3167. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3168. break 2
  3169. fi
  3170. done
  3171. done
  3172. IFS=$as_save_IFS
  3173. test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
  3174. ;;
  3175. esac
  3176. fi
  3177. CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
  3178. if test -n "$CPPUNIT_CONFIG"; then
  3179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPUNIT_CONFIG" >&5
  3180. $as_echo "$CPPUNIT_CONFIG" >&6; }
  3181. else
  3182. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3183. $as_echo "no" >&6; }
  3184. fi
  3185. cppunit_version_min=1.10.2
  3186. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cppunit - version >= $cppunit_version_min" >&5
  3187. $as_echo_n "checking for Cppunit - version >= $cppunit_version_min... " >&6; }
  3188. no_cppunit=""
  3189. if test "$CPPUNIT_CONFIG" = "no" ; then
  3190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3191. $as_echo "no" >&6; }
  3192. no_cppunit=yes
  3193. else
  3194. CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
  3195. CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
  3196. cppunit_version=`$CPPUNIT_CONFIG --version`
  3197. cppunit_major_version=`echo $cppunit_version | \
  3198. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  3199. cppunit_minor_version=`echo $cppunit_version | \
  3200. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  3201. cppunit_micro_version=`echo $cppunit_version | \
  3202. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  3203. cppunit_major_min=`echo $cppunit_version_min | \
  3204. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  3205. if test "x${cppunit_major_min}" = "x" ; then
  3206. cppunit_major_min=0
  3207. fi
  3208. cppunit_minor_min=`echo $cppunit_version_min | \
  3209. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  3210. if test "x${cppunit_minor_min}" = "x" ; then
  3211. cppunit_minor_min=0
  3212. fi
  3213. cppunit_micro_min=`echo $cppunit_version_min | \
  3214. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  3215. if test "x${cppunit_micro_min}" = "x" ; then
  3216. cppunit_micro_min=0
  3217. fi
  3218. cppunit_version_proper=`expr \
  3219. $cppunit_major_version \> $cppunit_major_min \| \
  3220. $cppunit_major_version \= $cppunit_major_min \& \
  3221. $cppunit_minor_version \> $cppunit_minor_min \| \
  3222. $cppunit_major_version \= $cppunit_major_min \& \
  3223. $cppunit_minor_version \= $cppunit_minor_min \& \
  3224. $cppunit_micro_version \>= $cppunit_micro_min `
  3225. if test "$cppunit_version_proper" = "1" ; then
  3226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
  3227. $as_echo "$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
  3228. else
  3229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3230. $as_echo "no" >&6; }
  3231. no_cppunit=yes
  3232. fi
  3233. fi
  3234. if test "x$no_cppunit" = x ; then
  3235. :
  3236. else
  3237. CPPUNIT_CFLAGS=""
  3238. CPPUNIT_LIBS=""
  3239. :
  3240. fi
  3241. ac_config_headers="$ac_config_headers config.h"
  3242. case "$target" in
  3243. *mingw*|*cygwin*)
  3244. WINSOCK_LIBS="-lws2_32 -lpthread"
  3245. ;;
  3246. esac
  3247. cat >>confdefs.h <<_ACEOF
  3248. #define TARGET "$target"
  3249. _ACEOF
  3250. # Checks for arguments.
  3251. # Check whether --with-gnutls was given.
  3252. if test "${with_gnutls+set}" = set; then :
  3253. withval=$with_gnutls; with_gnutls=$withval
  3254. else
  3255. with_gnutls=yes
  3256. fi
  3257. # Check whether --with-openssl was given.
  3258. if test "${with_openssl+set}" = set; then :
  3259. withval=$with_openssl; with_openssl=$withval
  3260. else
  3261. with_openssl=yes
  3262. fi
  3263. # Check whether --with-sqlite3 was given.
  3264. if test "${with_sqlite3+set}" = set; then :
  3265. withval=$with_sqlite3; with_sqlite3=$withval
  3266. else
  3267. with_sqlite3=yes
  3268. fi
  3269. # Check whether --with-libxml2 was given.
  3270. if test "${with_libxml2+set}" = set; then :
  3271. withval=$with_libxml2; with_libxml2=$withval
  3272. else
  3273. with_libxml2=yes
  3274. fi
  3275. # Check whether --with-libexpat was given.
  3276. if test "${with_libexpat+set}" = set; then :
  3277. withval=$with_libexpat; with_libexpat=$withval
  3278. else
  3279. with_libexpat=yes
  3280. fi
  3281. # Check whether --with-libcares was given.
  3282. if test "${with_libcares+set}" = set; then :
  3283. withval=$with_libcares; with_libcares=$withval
  3284. else
  3285. with_libcares=yes
  3286. fi
  3287. # Check whether --with-libz was given.
  3288. if test "${with_libz+set}" = set; then :
  3289. withval=$with_libz; with_libz=$withval
  3290. else
  3291. with_libz=yes
  3292. fi
  3293. # Check whether --enable-bittorrent was given.
  3294. if test "${enable_bittorrent+set}" = set; then :
  3295. enableval=$enable_bittorrent; enable_bittorrent=$enableval
  3296. else
  3297. enable_bittorrent=yes
  3298. fi
  3299. # Check whether --enable-metalink was given.
  3300. if test "${enable_metalink+set}" = set; then :
  3301. enableval=$enable_metalink; enable_metalink=$enableval
  3302. else
  3303. enable_metalink=yes
  3304. fi
  3305. # Check whether --enable-epoll was given.
  3306. if test "${enable_epoll+set}" = set; then :
  3307. enableval=$enable_epoll; enable_epoll=$enableval
  3308. else
  3309. enable_epoll=yes
  3310. fi
  3311. # Check whether --with-ca-bundle was given.
  3312. if test "${with_ca_bundle+set}" = set; then :
  3313. withval=$with_ca_bundle; ca_bundle=$withval
  3314. else
  3315. ca_bundle=""
  3316. fi
  3317. # Checks for programs.
  3318. ac_ext=cpp
  3319. ac_cpp='$CXXCPP $CPPFLAGS'
  3320. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3321. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3322. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3323. if test -z "$CXX"; then
  3324. if test -n "$CCC"; then
  3325. CXX=$CCC
  3326. else
  3327. if test -n "$ac_tool_prefix"; then
  3328. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3329. do
  3330. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3331. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3332. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3333. $as_echo_n "checking for $ac_word... " >&6; }
  3334. if test "${ac_cv_prog_CXX+set}" = set; then :
  3335. $as_echo_n "(cached) " >&6
  3336. else
  3337. if test -n "$CXX"; then
  3338. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  3339. else
  3340. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3341. for as_dir in $PATH
  3342. do
  3343. IFS=$as_save_IFS
  3344. test -z "$as_dir" && as_dir=.
  3345. for ac_exec_ext in '' $ac_executable_extensions; do
  3346. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3347. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  3348. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3349. break 2
  3350. fi
  3351. done
  3352. done
  3353. IFS=$as_save_IFS
  3354. fi
  3355. fi
  3356. CXX=$ac_cv_prog_CXX
  3357. if test -n "$CXX"; then
  3358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  3359. $as_echo "$CXX" >&6; }
  3360. else
  3361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3362. $as_echo "no" >&6; }
  3363. fi
  3364. test -n "$CXX" && break
  3365. done
  3366. fi
  3367. if test -z "$CXX"; then
  3368. ac_ct_CXX=$CXX
  3369. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3370. do
  3371. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3372. set dummy $ac_prog; ac_word=$2
  3373. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3374. $as_echo_n "checking for $ac_word... " >&6; }
  3375. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  3376. $as_echo_n "(cached) " >&6
  3377. else
  3378. if test -n "$ac_ct_CXX"; then
  3379. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  3380. else
  3381. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3382. for as_dir in $PATH
  3383. do
  3384. IFS=$as_save_IFS
  3385. test -z "$as_dir" && as_dir=.
  3386. for ac_exec_ext in '' $ac_executable_extensions; do
  3387. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3388. ac_cv_prog_ac_ct_CXX="$ac_prog"
  3389. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3390. break 2
  3391. fi
  3392. done
  3393. done
  3394. IFS=$as_save_IFS
  3395. fi
  3396. fi
  3397. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  3398. if test -n "$ac_ct_CXX"; then
  3399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  3400. $as_echo "$ac_ct_CXX" >&6; }
  3401. else
  3402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3403. $as_echo "no" >&6; }
  3404. fi
  3405. test -n "$ac_ct_CXX" && break
  3406. done
  3407. if test "x$ac_ct_CXX" = x; then
  3408. CXX="g++"
  3409. else
  3410. case $cross_compiling:$ac_tool_warned in
  3411. yes:)
  3412. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3413. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3414. ac_tool_warned=yes ;;
  3415. esac
  3416. CXX=$ac_ct_CXX
  3417. fi
  3418. fi
  3419. fi
  3420. fi
  3421. # Provide some information about the compiler.
  3422. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  3423. set X $ac_compile
  3424. ac_compiler=$2
  3425. for ac_option in --version -v -V -qversion; do
  3426. { { ac_try="$ac_compiler $ac_option >&5"
  3427. case "(($ac_try" in
  3428. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3429. *) ac_try_echo=$ac_try;;
  3430. esac
  3431. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3432. $as_echo "$ac_try_echo"; } >&5
  3433. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3434. ac_status=$?
  3435. if test -s conftest.err; then
  3436. sed '10a\
  3437. ... rest of stderr output deleted ...
  3438. 10q' conftest.err >conftest.er1
  3439. cat conftest.er1 >&5
  3440. rm -f conftest.er1 conftest.err
  3441. fi
  3442. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3443. test $ac_status = 0; }
  3444. done
  3445. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3446. /* end confdefs.h. */
  3447. #include <stdio.h>
  3448. int
  3449. main ()
  3450. {
  3451. FILE *f = fopen ("conftest.out", "w");
  3452. return ferror (f) || fclose (f) != 0;
  3453. ;
  3454. return 0;
  3455. }
  3456. _ACEOF
  3457. ac_clean_files_save=$ac_clean_files
  3458. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
  3459. # Try to create an executable without -o first, disregard a.out.
  3460. # It will help us diagnose broken compilers, and finding out an intuition
  3461. # of exeext.
  3462. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
  3463. $as_echo_n "checking for C++ compiler default output file name... " >&6; }
  3464. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3465. # The possible output files:
  3466. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3467. ac_rmfiles=
  3468. for ac_file in $ac_files
  3469. do
  3470. case $ac_file in
  3471. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3472. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3473. esac
  3474. done
  3475. rm -f $ac_rmfiles
  3476. if { { ac_try="$ac_link_default"
  3477. case "(($ac_try" in
  3478. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3479. *) ac_try_echo=$ac_try;;
  3480. esac
  3481. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3482. $as_echo "$ac_try_echo"; } >&5
  3483. (eval "$ac_link_default") 2>&5
  3484. ac_status=$?
  3485. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3486. test $ac_status = 0; }; then :
  3487. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3488. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3489. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3490. # so that the user can short-circuit this test for compilers unknown to
  3491. # Autoconf.
  3492. for ac_file in $ac_files ''
  3493. do
  3494. test -f "$ac_file" || continue
  3495. case $ac_file in
  3496. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3497. ;;
  3498. [ab].out )
  3499. # We found the default executable, but exeext='' is most
  3500. # certainly right.
  3501. break;;
  3502. *.* )
  3503. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3504. then :; else
  3505. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3506. fi
  3507. # We set ac_cv_exeext here because the later test for it is not
  3508. # safe: cross compilers may not add the suffix if given an `-o'
  3509. # argument, so we may need to know it at that point already.
  3510. # Even if this section looks crufty: it has the advantage of
  3511. # actually working.
  3512. break;;
  3513. * )
  3514. break;;
  3515. esac
  3516. done
  3517. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3518. else
  3519. ac_file=''
  3520. fi
  3521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3522. $as_echo "$ac_file" >&6; }
  3523. if test -z "$ac_file"; then :
  3524. $as_echo "$as_me: failed program was:" >&5
  3525. sed 's/^/| /' conftest.$ac_ext >&5
  3526. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3527. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3528. { as_fn_set_status 77
  3529. as_fn_error "C++ compiler cannot create executables
  3530. See \`config.log' for more details." "$LINENO" 5; }; }
  3531. fi
  3532. ac_exeext=$ac_cv_exeext
  3533. # Check that the compiler produces executables we can run. If not, either
  3534. # the compiler is broken, or we cross compile.
  3535. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
  3536. $as_echo_n "checking whether the C++ compiler works... " >&6; }
  3537. # If not cross compiling, check that we can run a simple program.
  3538. if test "$cross_compiling" != yes; then
  3539. if { ac_try='./$ac_file'
  3540. { { case "(($ac_try" in
  3541. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3542. *) ac_try_echo=$ac_try;;
  3543. esac
  3544. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3545. $as_echo "$ac_try_echo"; } >&5
  3546. (eval "$ac_try") 2>&5
  3547. ac_status=$?
  3548. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3549. test $ac_status = 0; }; }; then
  3550. cross_compiling=no
  3551. else
  3552. if test "$cross_compiling" = maybe; then
  3553. cross_compiling=yes
  3554. else
  3555. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3556. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3557. as_fn_error "cannot run C++ compiled programs.
  3558. If you meant to cross compile, use \`--host'.
  3559. See \`config.log' for more details." "$LINENO" 5; }
  3560. fi
  3561. fi
  3562. fi
  3563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3564. $as_echo "yes" >&6; }
  3565. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
  3566. ac_clean_files=$ac_clean_files_save
  3567. # Check that the compiler produces executables we can run. If not, either
  3568. # the compiler is broken, or we cross compile.
  3569. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3570. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3572. $as_echo "$cross_compiling" >&6; }
  3573. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3574. $as_echo_n "checking for suffix of executables... " >&6; }
  3575. if { { ac_try="$ac_link"
  3576. case "(($ac_try" in
  3577. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3578. *) ac_try_echo=$ac_try;;
  3579. esac
  3580. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3581. $as_echo "$ac_try_echo"; } >&5
  3582. (eval "$ac_link") 2>&5
  3583. ac_status=$?
  3584. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3585. test $ac_status = 0; }; then :
  3586. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3587. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3588. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3589. # `rm'.
  3590. for ac_file in conftest.exe conftest conftest.*; do
  3591. test -f "$ac_file" || continue
  3592. case $ac_file in
  3593. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3594. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3595. break;;
  3596. * ) break;;
  3597. esac
  3598. done
  3599. else
  3600. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3601. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3602. as_fn_error "cannot compute suffix of executables: cannot compile and link
  3603. See \`config.log' for more details." "$LINENO" 5; }
  3604. fi
  3605. rm -f conftest$ac_cv_exeext
  3606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3607. $as_echo "$ac_cv_exeext" >&6; }
  3608. rm -f conftest.$ac_ext
  3609. EXEEXT=$ac_cv_exeext
  3610. ac_exeext=$EXEEXT
  3611. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3612. $as_echo_n "checking for suffix of object files... " >&6; }
  3613. if test "${ac_cv_objext+set}" = set; then :
  3614. $as_echo_n "(cached) " >&6
  3615. else
  3616. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3617. /* end confdefs.h. */
  3618. int
  3619. main ()
  3620. {
  3621. ;
  3622. return 0;
  3623. }
  3624. _ACEOF
  3625. rm -f conftest.o conftest.obj
  3626. if { { ac_try="$ac_compile"
  3627. case "(($ac_try" in
  3628. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3629. *) ac_try_echo=$ac_try;;
  3630. esac
  3631. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3632. $as_echo "$ac_try_echo"; } >&5
  3633. (eval "$ac_compile") 2>&5
  3634. ac_status=$?
  3635. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3636. test $ac_status = 0; }; then :
  3637. for ac_file in conftest.o conftest.obj conftest.*; do
  3638. test -f "$ac_file" || continue;
  3639. case $ac_file in
  3640. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3641. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3642. break;;
  3643. esac
  3644. done
  3645. else
  3646. $as_echo "$as_me: failed program was:" >&5
  3647. sed 's/^/| /' conftest.$ac_ext >&5
  3648. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3649. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3650. as_fn_error "cannot compute suffix of object files: cannot compile
  3651. See \`config.log' for more details." "$LINENO" 5; }
  3652. fi
  3653. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3654. fi
  3655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3656. $as_echo "$ac_cv_objext" >&6; }
  3657. OBJEXT=$ac_cv_objext
  3658. ac_objext=$OBJEXT
  3659. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  3660. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  3661. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  3662. $as_echo_n "(cached) " >&6
  3663. else
  3664. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3665. /* end confdefs.h. */
  3666. int
  3667. main ()
  3668. {
  3669. #ifndef __GNUC__
  3670. choke me
  3671. #endif
  3672. ;
  3673. return 0;
  3674. }
  3675. _ACEOF
  3676. if ac_fn_cxx_try_compile "$LINENO"; then :
  3677. ac_compiler_gnu=yes
  3678. else
  3679. ac_compiler_gnu=no
  3680. fi
  3681. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3682. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3683. fi
  3684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  3685. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  3686. if test $ac_compiler_gnu = yes; then
  3687. GXX=yes
  3688. else
  3689. GXX=
  3690. fi
  3691. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3692. ac_save_CXXFLAGS=$CXXFLAGS
  3693. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  3694. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  3695. if test "${ac_cv_prog_cxx_g+set}" = set; then :
  3696. $as_echo_n "(cached) " >&6
  3697. else
  3698. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  3699. ac_cxx_werror_flag=yes
  3700. ac_cv_prog_cxx_g=no
  3701. CXXFLAGS="-g"
  3702. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3703. /* end confdefs.h. */
  3704. int
  3705. main ()
  3706. {
  3707. ;
  3708. return 0;
  3709. }
  3710. _ACEOF
  3711. if ac_fn_cxx_try_compile "$LINENO"; then :
  3712. ac_cv_prog_cxx_g=yes
  3713. else
  3714. CXXFLAGS=""
  3715. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3716. /* end confdefs.h. */
  3717. int
  3718. main ()
  3719. {
  3720. ;
  3721. return 0;
  3722. }
  3723. _ACEOF
  3724. if ac_fn_cxx_try_compile "$LINENO"; then :
  3725. else
  3726. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3727. CXXFLAGS="-g"
  3728. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3729. /* end confdefs.h. */
  3730. int
  3731. main ()
  3732. {
  3733. ;
  3734. return 0;
  3735. }
  3736. _ACEOF
  3737. if ac_fn_cxx_try_compile "$LINENO"; then :
  3738. ac_cv_prog_cxx_g=yes
  3739. fi
  3740. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3741. fi
  3742. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3743. fi
  3744. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3745. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3746. fi
  3747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  3748. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  3749. if test "$ac_test_CXXFLAGS" = set; then
  3750. CXXFLAGS=$ac_save_CXXFLAGS
  3751. elif test $ac_cv_prog_cxx_g = yes; then
  3752. if test "$GXX" = yes; then
  3753. CXXFLAGS="-g -O2"
  3754. else
  3755. CXXFLAGS="-g"
  3756. fi
  3757. else
  3758. if test "$GXX" = yes; then
  3759. CXXFLAGS="-O2"
  3760. else
  3761. CXXFLAGS=
  3762. fi
  3763. fi
  3764. ac_ext=c
  3765. ac_cpp='$CPP $CPPFLAGS'
  3766. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3767. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3768. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3769. DEPDIR="${am__leading_dot}deps"
  3770. ac_config_commands="$ac_config_commands depfiles"
  3771. am_make=${MAKE-make}
  3772. cat > confinc << 'END'
  3773. am__doit:
  3774. @echo this is the am__doit target
  3775. .PHONY: am__doit
  3776. END
  3777. # If we don't find an include directive, just comment out the code.
  3778. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3779. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3780. am__include="#"
  3781. am__quote=
  3782. _am_result=none
  3783. # First try GNU make style include.
  3784. echo "include confinc" > confmf
  3785. # Ignore all kinds of additional output from `make'.
  3786. case `$am_make -s -f confmf 2> /dev/null` in #(
  3787. *the\ am__doit\ target*)
  3788. am__include=include
  3789. am__quote=
  3790. _am_result=GNU
  3791. ;;
  3792. esac
  3793. # Now try BSD make style include.
  3794. if test "$am__include" = "#"; then
  3795. echo '.include "confinc"' > confmf
  3796. case `$am_make -s -f confmf 2> /dev/null` in #(
  3797. *the\ am__doit\ target*)
  3798. am__include=.include
  3799. am__quote="\""
  3800. _am_result=BSD
  3801. ;;
  3802. esac
  3803. fi
  3804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3805. $as_echo "$_am_result" >&6; }
  3806. rm -f confinc confmf
  3807. # Check whether --enable-dependency-tracking was given.
  3808. if test "${enable_dependency_tracking+set}" = set; then :
  3809. enableval=$enable_dependency_tracking;
  3810. fi
  3811. if test "x$enable_dependency_tracking" != xno; then
  3812. am_depcomp="$ac_aux_dir/depcomp"
  3813. AMDEPBACKSLASH='\'
  3814. fi
  3815. if test "x$enable_dependency_tracking" != xno; then
  3816. AMDEP_TRUE=
  3817. AMDEP_FALSE='#'
  3818. else
  3819. AMDEP_TRUE='#'
  3820. AMDEP_FALSE=
  3821. fi
  3822. depcc="$CXX" am_compiler_list=
  3823. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3824. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3825. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
  3826. $as_echo_n "(cached) " >&6
  3827. else
  3828. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3829. # We make a subdir and do the tests there. Otherwise we can end up
  3830. # making bogus files that we don't know about and never remove. For
  3831. # instance it was reported that on HP-UX the gcc test will end up
  3832. # making a dummy file named `D' -- because `-MD' means `put the output
  3833. # in D'.
  3834. mkdir conftest.dir
  3835. # Copy depcomp to subdir because otherwise we won't find it if we're
  3836. # using a relative directory.
  3837. cp "$am_depcomp" conftest.dir
  3838. cd conftest.dir
  3839. # We will build objects and dependencies in a subdirectory because
  3840. # it helps to detect inapplicable dependency modes. For instance
  3841. # both Tru64's cc and ICC support -MD to output dependencies as a
  3842. # side effect of compilation, but ICC will put the dependencies in
  3843. # the current directory while Tru64 will put them in the object
  3844. # directory.
  3845. mkdir sub
  3846. am_cv_CXX_dependencies_compiler_type=none
  3847. if test "$am_compiler_list" = ""; then
  3848. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3849. fi
  3850. am__universal=false
  3851. case " $depcc " in #(
  3852. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3853. esac
  3854. for depmode in $am_compiler_list; do
  3855. # Setup a source with many dependencies, because some compilers
  3856. # like to wrap large dependency lists on column 80 (with \), and
  3857. # we should not choose a depcomp mode which is confused by this.
  3858. #
  3859. # We need to recreate these files for each test, as the compiler may
  3860. # overwrite some of them when testing with obscure command lines.
  3861. # This happens at least with the AIX C compiler.
  3862. : > sub/conftest.c
  3863. for i in 1 2 3 4 5 6; do
  3864. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3865. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3866. # Solaris 8's {/usr,}/bin/sh.
  3867. touch sub/conftst$i.h
  3868. done
  3869. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3870. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3871. # mode. It turns out that the SunPro C++ compiler does not properly
  3872. # handle `-M -o', and we need to detect this. Also, some Intel
  3873. # versions had trouble with output in subdirs
  3874. am__obj=sub/conftest.${OBJEXT-o}
  3875. am__minus_obj="-o $am__obj"
  3876. case $depmode in
  3877. gcc)
  3878. # This depmode causes a compiler race in universal mode.
  3879. test "$am__universal" = false || continue
  3880. ;;
  3881. nosideeffect)
  3882. # after this tag, mechanisms are not by side-effect, so they'll
  3883. # only be used when explicitly requested
  3884. if test "x$enable_dependency_tracking" = xyes; then
  3885. continue
  3886. else
  3887. break
  3888. fi
  3889. ;;
  3890. msvisualcpp | msvcmsys)
  3891. # This compiler won't grok `-c -o', but also, the minuso test has
  3892. # not run yet. These depmodes are late enough in the game, and
  3893. # so weak that their functioning should not be impacted.
  3894. am__obj=conftest.${OBJEXT-o}
  3895. am__minus_obj=
  3896. ;;
  3897. none) break ;;
  3898. esac
  3899. if depmode=$depmode \
  3900. source=sub/conftest.c object=$am__obj \
  3901. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3902. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3903. >/dev/null 2>conftest.err &&
  3904. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3905. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3906. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3907. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3908. # icc doesn't choke on unknown options, it will just issue warnings
  3909. # or remarks (even with -Werror). So we grep stderr for any message
  3910. # that says an option was ignored or not supported.
  3911. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3912. # icc: Command line warning: ignoring option '-M'; no argument required
  3913. # The diagnosis changed in icc 8.0:
  3914. # icc: Command line remark: option '-MP' not supported
  3915. if (grep 'ignoring option' conftest.err ||
  3916. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3917. am_cv_CXX_dependencies_compiler_type=$depmode
  3918. break
  3919. fi
  3920. fi
  3921. done
  3922. cd ..
  3923. rm -rf conftest.dir
  3924. else
  3925. am_cv_CXX_dependencies_compiler_type=none
  3926. fi
  3927. fi
  3928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3929. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  3930. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3931. if
  3932. test "x$enable_dependency_tracking" != xno \
  3933. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3934. am__fastdepCXX_TRUE=
  3935. am__fastdepCXX_FALSE='#'
  3936. else
  3937. am__fastdepCXX_TRUE='#'
  3938. am__fastdepCXX_FALSE=
  3939. fi
  3940. ac_ext=c
  3941. ac_cpp='$CPP $CPPFLAGS'
  3942. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3943. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3944. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3945. if test -n "$ac_tool_prefix"; then
  3946. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3947. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3948. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3949. $as_echo_n "checking for $ac_word... " >&6; }
  3950. if test "${ac_cv_prog_CC+set}" = set; then :
  3951. $as_echo_n "(cached) " >&6
  3952. else
  3953. if test -n "$CC"; then
  3954. ac_cv_prog_CC="$CC" # Let the user override the test.
  3955. else
  3956. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3957. for as_dir in $PATH
  3958. do
  3959. IFS=$as_save_IFS
  3960. test -z "$as_dir" && as_dir=.
  3961. for ac_exec_ext in '' $ac_executable_extensions; do
  3962. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3963. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3964. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3965. break 2
  3966. fi
  3967. done
  3968. done
  3969. IFS=$as_save_IFS
  3970. fi
  3971. fi
  3972. CC=$ac_cv_prog_CC
  3973. if test -n "$CC"; then
  3974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3975. $as_echo "$CC" >&6; }
  3976. else
  3977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3978. $as_echo "no" >&6; }
  3979. fi
  3980. fi
  3981. if test -z "$ac_cv_prog_CC"; then
  3982. ac_ct_CC=$CC
  3983. # Extract the first word of "gcc", so it can be a program name with args.
  3984. set dummy gcc; ac_word=$2
  3985. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3986. $as_echo_n "checking for $ac_word... " >&6; }
  3987. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3988. $as_echo_n "(cached) " >&6
  3989. else
  3990. if test -n "$ac_ct_CC"; then
  3991. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3992. else
  3993. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3994. for as_dir in $PATH
  3995. do
  3996. IFS=$as_save_IFS
  3997. test -z "$as_dir" && as_dir=.
  3998. for ac_exec_ext in '' $ac_executable_extensions; do
  3999. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4000. ac_cv_prog_ac_ct_CC="gcc"
  4001. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4002. break 2
  4003. fi
  4004. done
  4005. done
  4006. IFS=$as_save_IFS
  4007. fi
  4008. fi
  4009. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4010. if test -n "$ac_ct_CC"; then
  4011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4012. $as_echo "$ac_ct_CC" >&6; }
  4013. else
  4014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4015. $as_echo "no" >&6; }
  4016. fi
  4017. if test "x$ac_ct_CC" = x; then
  4018. CC=""
  4019. else
  4020. case $cross_compiling:$ac_tool_warned in
  4021. yes:)
  4022. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4023. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4024. ac_tool_warned=yes ;;
  4025. esac
  4026. CC=$ac_ct_CC
  4027. fi
  4028. else
  4029. CC="$ac_cv_prog_CC"
  4030. fi
  4031. if test -z "$CC"; then
  4032. if test -n "$ac_tool_prefix"; then
  4033. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  4034. set dummy ${ac_tool_prefix}cc; ac_word=$2
  4035. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4036. $as_echo_n "checking for $ac_word... " >&6; }
  4037. if test "${ac_cv_prog_CC+set}" = set; then :
  4038. $as_echo_n "(cached) " >&6
  4039. else
  4040. if test -n "$CC"; then
  4041. ac_cv_prog_CC="$CC" # Let the user override the test.
  4042. else
  4043. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4044. for as_dir in $PATH
  4045. do
  4046. IFS=$as_save_IFS
  4047. test -z "$as_dir" && as_dir=.
  4048. for ac_exec_ext in '' $ac_executable_extensions; do
  4049. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4050. ac_cv_prog_CC="${ac_tool_prefix}cc"
  4051. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4052. break 2
  4053. fi
  4054. done
  4055. done
  4056. IFS=$as_save_IFS
  4057. fi
  4058. fi
  4059. CC=$ac_cv_prog_CC
  4060. if test -n "$CC"; then
  4061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4062. $as_echo "$CC" >&6; }
  4063. else
  4064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4065. $as_echo "no" >&6; }
  4066. fi
  4067. fi
  4068. fi
  4069. if test -z "$CC"; then
  4070. # Extract the first word of "cc", so it can be a program name with args.
  4071. set dummy cc; ac_word=$2
  4072. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4073. $as_echo_n "checking for $ac_word... " >&6; }
  4074. if test "${ac_cv_prog_CC+set}" = set; then :
  4075. $as_echo_n "(cached) " >&6
  4076. else
  4077. if test -n "$CC"; then
  4078. ac_cv_prog_CC="$CC" # Let the user override the test.
  4079. else
  4080. ac_prog_rejected=no
  4081. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4082. for as_dir in $PATH
  4083. do
  4084. IFS=$as_save_IFS
  4085. test -z "$as_dir" && as_dir=.
  4086. for ac_exec_ext in '' $ac_executable_extensions; do
  4087. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4088. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  4089. ac_prog_rejected=yes
  4090. continue
  4091. fi
  4092. ac_cv_prog_CC="cc"
  4093. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4094. break 2
  4095. fi
  4096. done
  4097. done
  4098. IFS=$as_save_IFS
  4099. if test $ac_prog_rejected = yes; then
  4100. # We found a bogon in the path, so make sure we never use it.
  4101. set dummy $ac_cv_prog_CC
  4102. shift
  4103. if test $# != 0; then
  4104. # We chose a different compiler from the bogus one.
  4105. # However, it has the same basename, so the bogon will be chosen
  4106. # first if we set CC to just the basename; use the full file name.
  4107. shift
  4108. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  4109. fi
  4110. fi
  4111. fi
  4112. fi
  4113. CC=$ac_cv_prog_CC
  4114. if test -n "$CC"; then
  4115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4116. $as_echo "$CC" >&6; }
  4117. else
  4118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4119. $as_echo "no" >&6; }
  4120. fi
  4121. fi
  4122. if test -z "$CC"; then
  4123. if test -n "$ac_tool_prefix"; then
  4124. for ac_prog in cl.exe
  4125. do
  4126. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4127. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4128. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4129. $as_echo_n "checking for $ac_word... " >&6; }
  4130. if test "${ac_cv_prog_CC+set}" = set; then :
  4131. $as_echo_n "(cached) " >&6
  4132. else
  4133. if test -n "$CC"; then
  4134. ac_cv_prog_CC="$CC" # Let the user override the test.
  4135. else
  4136. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4137. for as_dir in $PATH
  4138. do
  4139. IFS=$as_save_IFS
  4140. test -z "$as_dir" && as_dir=.
  4141. for ac_exec_ext in '' $ac_executable_extensions; do
  4142. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4143. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  4144. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4145. break 2
  4146. fi
  4147. done
  4148. done
  4149. IFS=$as_save_IFS
  4150. fi
  4151. fi
  4152. CC=$ac_cv_prog_CC
  4153. if test -n "$CC"; then
  4154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4155. $as_echo "$CC" >&6; }
  4156. else
  4157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4158. $as_echo "no" >&6; }
  4159. fi
  4160. test -n "$CC" && break
  4161. done
  4162. fi
  4163. if test -z "$CC"; then
  4164. ac_ct_CC=$CC
  4165. for ac_prog in cl.exe
  4166. do
  4167. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4168. set dummy $ac_prog; ac_word=$2
  4169. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4170. $as_echo_n "checking for $ac_word... " >&6; }
  4171. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  4172. $as_echo_n "(cached) " >&6
  4173. else
  4174. if test -n "$ac_ct_CC"; then
  4175. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4176. else
  4177. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4178. for as_dir in $PATH
  4179. do
  4180. IFS=$as_save_IFS
  4181. test -z "$as_dir" && as_dir=.
  4182. for ac_exec_ext in '' $ac_executable_extensions; do
  4183. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4184. ac_cv_prog_ac_ct_CC="$ac_prog"
  4185. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4186. break 2
  4187. fi
  4188. done
  4189. done
  4190. IFS=$as_save_IFS
  4191. fi
  4192. fi
  4193. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4194. if test -n "$ac_ct_CC"; then
  4195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4196. $as_echo "$ac_ct_CC" >&6; }
  4197. else
  4198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4199. $as_echo "no" >&6; }
  4200. fi
  4201. test -n "$ac_ct_CC" && break
  4202. done
  4203. if test "x$ac_ct_CC" = x; then
  4204. CC=""
  4205. else
  4206. case $cross_compiling:$ac_tool_warned in
  4207. yes:)
  4208. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4209. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4210. ac_tool_warned=yes ;;
  4211. esac
  4212. CC=$ac_ct_CC
  4213. fi
  4214. fi
  4215. fi
  4216. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4217. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4218. as_fn_error "no acceptable C compiler found in \$PATH
  4219. See \`config.log' for more details." "$LINENO" 5; }
  4220. # Provide some information about the compiler.
  4221. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  4222. set X $ac_compile
  4223. ac_compiler=$2
  4224. for ac_option in --version -v -V -qversion; do
  4225. { { ac_try="$ac_compiler $ac_option >&5"
  4226. case "(($ac_try" in
  4227. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4228. *) ac_try_echo=$ac_try;;
  4229. esac
  4230. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4231. $as_echo "$ac_try_echo"; } >&5
  4232. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4233. ac_status=$?
  4234. if test -s conftest.err; then
  4235. sed '10a\
  4236. ... rest of stderr output deleted ...
  4237. 10q' conftest.err >conftest.er1
  4238. cat conftest.er1 >&5
  4239. rm -f conftest.er1 conftest.err
  4240. fi
  4241. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4242. test $ac_status = 0; }
  4243. done
  4244. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  4245. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4246. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  4247. $as_echo_n "(cached) " >&6
  4248. else
  4249. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4250. /* end confdefs.h. */
  4251. int
  4252. main ()
  4253. {
  4254. #ifndef __GNUC__
  4255. choke me
  4256. #endif
  4257. ;
  4258. return 0;
  4259. }
  4260. _ACEOF
  4261. if ac_fn_c_try_compile "$LINENO"; then :
  4262. ac_compiler_gnu=yes
  4263. else
  4264. ac_compiler_gnu=no
  4265. fi
  4266. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4267. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4268. fi
  4269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4270. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4271. if test $ac_compiler_gnu = yes; then
  4272. GCC=yes
  4273. else
  4274. GCC=
  4275. fi
  4276. ac_test_CFLAGS=${CFLAGS+set}
  4277. ac_save_CFLAGS=$CFLAGS
  4278. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4279. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4280. if test "${ac_cv_prog_cc_g+set}" = set; then :
  4281. $as_echo_n "(cached) " >&6
  4282. else
  4283. ac_save_c_werror_flag=$ac_c_werror_flag
  4284. ac_c_werror_flag=yes
  4285. ac_cv_prog_cc_g=no
  4286. CFLAGS="-g"
  4287. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4288. /* end confdefs.h. */
  4289. int
  4290. main ()
  4291. {
  4292. ;
  4293. return 0;
  4294. }
  4295. _ACEOF
  4296. if ac_fn_c_try_compile "$LINENO"; then :
  4297. ac_cv_prog_cc_g=yes
  4298. else
  4299. CFLAGS=""
  4300. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4301. /* end confdefs.h. */
  4302. int
  4303. main ()
  4304. {
  4305. ;
  4306. return 0;
  4307. }
  4308. _ACEOF
  4309. if ac_fn_c_try_compile "$LINENO"; then :
  4310. else
  4311. ac_c_werror_flag=$ac_save_c_werror_flag
  4312. CFLAGS="-g"
  4313. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4314. /* end confdefs.h. */
  4315. int
  4316. main ()
  4317. {
  4318. ;
  4319. return 0;
  4320. }
  4321. _ACEOF
  4322. if ac_fn_c_try_compile "$LINENO"; then :
  4323. ac_cv_prog_cc_g=yes
  4324. fi
  4325. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4326. fi
  4327. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4328. fi
  4329. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4330. ac_c_werror_flag=$ac_save_c_werror_flag
  4331. fi
  4332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4333. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4334. if test "$ac_test_CFLAGS" = set; then
  4335. CFLAGS=$ac_save_CFLAGS
  4336. elif test $ac_cv_prog_cc_g = yes; then
  4337. if test "$GCC" = yes; then
  4338. CFLAGS="-g -O2"
  4339. else
  4340. CFLAGS="-g"
  4341. fi
  4342. else
  4343. if test "$GCC" = yes; then
  4344. CFLAGS="-O2"
  4345. else
  4346. CFLAGS=
  4347. fi
  4348. fi
  4349. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4350. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4351. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  4352. $as_echo_n "(cached) " >&6
  4353. else
  4354. ac_cv_prog_cc_c89=no
  4355. ac_save_CC=$CC
  4356. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4357. /* end confdefs.h. */
  4358. #include <stdarg.h>
  4359. #include <stdio.h>
  4360. #include <sys/types.h>
  4361. #include <sys/stat.h>
  4362. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4363. struct buf { int x; };
  4364. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4365. static char *e (p, i)
  4366. char **p;
  4367. int i;
  4368. {
  4369. return p[i];
  4370. }
  4371. static char *f (char * (*g) (char **, int), char **p, ...)
  4372. {
  4373. char *s;
  4374. va_list v;
  4375. va_start (v,p);
  4376. s = g (p, va_arg (v,int));
  4377. va_end (v);
  4378. return s;
  4379. }
  4380. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4381. function prototypes and stuff, but not '\xHH' hex character constants.
  4382. These don't provoke an error unfortunately, instead are silently treated
  4383. as 'x'. The following induces an error, until -std is added to get
  4384. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4385. array size at least. It's necessary to write '\x00'==0 to get something
  4386. that's true only with -std. */
  4387. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4388. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4389. inside strings and character constants. */
  4390. #define FOO(x) 'x'
  4391. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4392. int test (int i, double x);
  4393. struct s1 {int (*f) (int a);};
  4394. struct s2 {int (*f) (double a);};
  4395. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4396. int argc;
  4397. char **argv;
  4398. int
  4399. main ()
  4400. {
  4401. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4402. ;
  4403. return 0;
  4404. }
  4405. _ACEOF
  4406. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4407. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4408. do
  4409. CC="$ac_save_CC $ac_arg"
  4410. if ac_fn_c_try_compile "$LINENO"; then :
  4411. ac_cv_prog_cc_c89=$ac_arg
  4412. fi
  4413. rm -f core conftest.err conftest.$ac_objext
  4414. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4415. done
  4416. rm -f conftest.$ac_ext
  4417. CC=$ac_save_CC
  4418. fi
  4419. # AC_CACHE_VAL
  4420. case "x$ac_cv_prog_cc_c89" in
  4421. x)
  4422. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4423. $as_echo "none needed" >&6; } ;;
  4424. xno)
  4425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4426. $as_echo "unsupported" >&6; } ;;
  4427. *)
  4428. CC="$CC $ac_cv_prog_cc_c89"
  4429. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4430. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4431. esac
  4432. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4433. fi
  4434. ac_ext=c
  4435. ac_cpp='$CPP $CPPFLAGS'
  4436. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4437. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4438. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4439. depcc="$CC" am_compiler_list=
  4440. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4441. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4442. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  4443. $as_echo_n "(cached) " >&6
  4444. else
  4445. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4446. # We make a subdir and do the tests there. Otherwise we can end up
  4447. # making bogus files that we don't know about and never remove. For
  4448. # instance it was reported that on HP-UX the gcc test will end up
  4449. # making a dummy file named `D' -- because `-MD' means `put the output
  4450. # in D'.
  4451. mkdir conftest.dir
  4452. # Copy depcomp to subdir because otherwise we won't find it if we're
  4453. # using a relative directory.
  4454. cp "$am_depcomp" conftest.dir
  4455. cd conftest.dir
  4456. # We will build objects and dependencies in a subdirectory because
  4457. # it helps to detect inapplicable dependency modes. For instance
  4458. # both Tru64's cc and ICC support -MD to output dependencies as a
  4459. # side effect of compilation, but ICC will put the dependencies in
  4460. # the current directory while Tru64 will put them in the object
  4461. # directory.
  4462. mkdir sub
  4463. am_cv_CC_dependencies_compiler_type=none
  4464. if test "$am_compiler_list" = ""; then
  4465. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4466. fi
  4467. am__universal=false
  4468. case " $depcc " in #(
  4469. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4470. esac
  4471. for depmode in $am_compiler_list; do
  4472. # Setup a source with many dependencies, because some compilers
  4473. # like to wrap large dependency lists on column 80 (with \), and
  4474. # we should not choose a depcomp mode which is confused by this.
  4475. #
  4476. # We need to recreate these files for each test, as the compiler may
  4477. # overwrite some of them when testing with obscure command lines.
  4478. # This happens at least with the AIX C compiler.
  4479. : > sub/conftest.c
  4480. for i in 1 2 3 4 5 6; do
  4481. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4482. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4483. # Solaris 8's {/usr,}/bin/sh.
  4484. touch sub/conftst$i.h
  4485. done
  4486. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4487. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4488. # mode. It turns out that the SunPro C++ compiler does not properly
  4489. # handle `-M -o', and we need to detect this. Also, some Intel
  4490. # versions had trouble with output in subdirs
  4491. am__obj=sub/conftest.${OBJEXT-o}
  4492. am__minus_obj="-o $am__obj"
  4493. case $depmode in
  4494. gcc)
  4495. # This depmode causes a compiler race in universal mode.
  4496. test "$am__universal" = false || continue
  4497. ;;
  4498. nosideeffect)
  4499. # after this tag, mechanisms are not by side-effect, so they'll
  4500. # only be used when explicitly requested
  4501. if test "x$enable_dependency_tracking" = xyes; then
  4502. continue
  4503. else
  4504. break
  4505. fi
  4506. ;;
  4507. msvisualcpp | msvcmsys)
  4508. # This compiler won't grok `-c -o', but also, the minuso test has
  4509. # not run yet. These depmodes are late enough in the game, and
  4510. # so weak that their functioning should not be impacted.
  4511. am__obj=conftest.${OBJEXT-o}
  4512. am__minus_obj=
  4513. ;;
  4514. none) break ;;
  4515. esac
  4516. if depmode=$depmode \
  4517. source=sub/conftest.c object=$am__obj \
  4518. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4519. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4520. >/dev/null 2>conftest.err &&
  4521. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4522. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4523. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4524. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4525. # icc doesn't choke on unknown options, it will just issue warnings
  4526. # or remarks (even with -Werror). So we grep stderr for any message
  4527. # that says an option was ignored or not supported.
  4528. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4529. # icc: Command line warning: ignoring option '-M'; no argument required
  4530. # The diagnosis changed in icc 8.0:
  4531. # icc: Command line remark: option '-MP' not supported
  4532. if (grep 'ignoring option' conftest.err ||
  4533. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4534. am_cv_CC_dependencies_compiler_type=$depmode
  4535. break
  4536. fi
  4537. fi
  4538. done
  4539. cd ..
  4540. rm -rf conftest.dir
  4541. else
  4542. am_cv_CC_dependencies_compiler_type=none
  4543. fi
  4544. fi
  4545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4546. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4547. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4548. if
  4549. test "x$enable_dependency_tracking" != xno \
  4550. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4551. am__fastdepCC_TRUE=
  4552. am__fastdepCC_FALSE='#'
  4553. else
  4554. am__fastdepCC_TRUE='#'
  4555. am__fastdepCC_FALSE=
  4556. fi
  4557. if test -n "$ac_tool_prefix"; then
  4558. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4559. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4560. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4561. $as_echo_n "checking for $ac_word... " >&6; }
  4562. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  4563. $as_echo_n "(cached) " >&6
  4564. else
  4565. if test -n "$RANLIB"; then
  4566. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4567. else
  4568. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4569. for as_dir in $PATH
  4570. do
  4571. IFS=$as_save_IFS
  4572. test -z "$as_dir" && as_dir=.
  4573. for ac_exec_ext in '' $ac_executable_extensions; do
  4574. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4575. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4576. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4577. break 2
  4578. fi
  4579. done
  4580. done
  4581. IFS=$as_save_IFS
  4582. fi
  4583. fi
  4584. RANLIB=$ac_cv_prog_RANLIB
  4585. if test -n "$RANLIB"; then
  4586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4587. $as_echo "$RANLIB" >&6; }
  4588. else
  4589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4590. $as_echo "no" >&6; }
  4591. fi
  4592. fi
  4593. if test -z "$ac_cv_prog_RANLIB"; then
  4594. ac_ct_RANLIB=$RANLIB
  4595. # Extract the first word of "ranlib", so it can be a program name with args.
  4596. set dummy ranlib; ac_word=$2
  4597. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4598. $as_echo_n "checking for $ac_word... " >&6; }
  4599. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  4600. $as_echo_n "(cached) " >&6
  4601. else
  4602. if test -n "$ac_ct_RANLIB"; then
  4603. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4604. else
  4605. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4606. for as_dir in $PATH
  4607. do
  4608. IFS=$as_save_IFS
  4609. test -z "$as_dir" && as_dir=.
  4610. for ac_exec_ext in '' $ac_executable_extensions; do
  4611. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4612. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4613. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4614. break 2
  4615. fi
  4616. done
  4617. done
  4618. IFS=$as_save_IFS
  4619. fi
  4620. fi
  4621. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4622. if test -n "$ac_ct_RANLIB"; then
  4623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4624. $as_echo "$ac_ct_RANLIB" >&6; }
  4625. else
  4626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4627. $as_echo "no" >&6; }
  4628. fi
  4629. if test "x$ac_ct_RANLIB" = x; then
  4630. RANLIB=":"
  4631. else
  4632. case $cross_compiling:$ac_tool_warned in
  4633. yes:)
  4634. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4635. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4636. ac_tool_warned=yes ;;
  4637. esac
  4638. RANLIB=$ac_ct_RANLIB
  4639. fi
  4640. else
  4641. RANLIB="$ac_cv_prog_RANLIB"
  4642. fi
  4643. for ac_prog in 'bison -y' byacc
  4644. do
  4645. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4646. set dummy $ac_prog; ac_word=$2
  4647. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4648. $as_echo_n "checking for $ac_word... " >&6; }
  4649. if test "${ac_cv_prog_YACC+set}" = set; then :
  4650. $as_echo_n "(cached) " >&6
  4651. else
  4652. if test -n "$YACC"; then
  4653. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  4654. else
  4655. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4656. for as_dir in $PATH
  4657. do
  4658. IFS=$as_save_IFS
  4659. test -z "$as_dir" && as_dir=.
  4660. for ac_exec_ext in '' $ac_executable_extensions; do
  4661. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4662. ac_cv_prog_YACC="$ac_prog"
  4663. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4664. break 2
  4665. fi
  4666. done
  4667. done
  4668. IFS=$as_save_IFS
  4669. fi
  4670. fi
  4671. YACC=$ac_cv_prog_YACC
  4672. if test -n "$YACC"; then
  4673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
  4674. $as_echo "$YACC" >&6; }
  4675. else
  4676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4677. $as_echo "no" >&6; }
  4678. fi
  4679. test -n "$YACC" && break
  4680. done
  4681. test -n "$YACC" || YACC="yacc"
  4682. # Setting language choice
  4683. ac_ext=cpp
  4684. ac_cpp='$CXXCPP $CPPFLAGS'
  4685. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4686. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4687. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4688. # Enable system extensions
  4689. ac_ext=cpp
  4690. ac_cpp='$CXXCPP $CPPFLAGS'
  4691. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4692. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4693. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4694. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  4695. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  4696. if test -z "$CXXCPP"; then
  4697. if test "${ac_cv_prog_CXXCPP+set}" = set; then :
  4698. $as_echo_n "(cached) " >&6
  4699. else
  4700. # Double quotes because CXXCPP needs to be expanded
  4701. for CXXCPP in "$CXX -E" "/lib/cpp"
  4702. do
  4703. ac_preproc_ok=false
  4704. for ac_cxx_preproc_warn_flag in '' yes
  4705. do
  4706. # Use a header file that comes with gcc, so configuring glibc
  4707. # with a fresh cross-compiler works.
  4708. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4709. # <limits.h> exists even on freestanding compilers.
  4710. # On the NeXT, cc -E runs the code through the compiler's parser,
  4711. # not just through cpp. "Syntax error" is here to catch this case.
  4712. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4713. /* end confdefs.h. */
  4714. #ifdef __STDC__
  4715. # include <limits.h>
  4716. #else
  4717. # include <assert.h>
  4718. #endif
  4719. Syntax error
  4720. _ACEOF
  4721. if ac_fn_cxx_try_cpp "$LINENO"; then :
  4722. else
  4723. # Broken: fails on valid input.
  4724. continue
  4725. fi
  4726. rm -f conftest.err conftest.$ac_ext
  4727. # OK, works on sane cases. Now check whether nonexistent headers
  4728. # can be detected and how.
  4729. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4730. /* end confdefs.h. */
  4731. #include <ac_nonexistent.h>
  4732. _ACEOF
  4733. if ac_fn_cxx_try_cpp "$LINENO"; then :
  4734. # Broken: success on invalid input.
  4735. continue
  4736. else
  4737. # Passes both tests.
  4738. ac_preproc_ok=:
  4739. break
  4740. fi
  4741. rm -f conftest.err conftest.$ac_ext
  4742. done
  4743. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4744. rm -f conftest.err conftest.$ac_ext
  4745. if $ac_preproc_ok; then :
  4746. break
  4747. fi
  4748. done
  4749. ac_cv_prog_CXXCPP=$CXXCPP
  4750. fi
  4751. CXXCPP=$ac_cv_prog_CXXCPP
  4752. else
  4753. ac_cv_prog_CXXCPP=$CXXCPP
  4754. fi
  4755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  4756. $as_echo "$CXXCPP" >&6; }
  4757. ac_preproc_ok=false
  4758. for ac_cxx_preproc_warn_flag in '' yes
  4759. do
  4760. # Use a header file that comes with gcc, so configuring glibc
  4761. # with a fresh cross-compiler works.
  4762. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4763. # <limits.h> exists even on freestanding compilers.
  4764. # On the NeXT, cc -E runs the code through the compiler's parser,
  4765. # not just through cpp. "Syntax error" is here to catch this case.
  4766. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4767. /* end confdefs.h. */
  4768. #ifdef __STDC__
  4769. # include <limits.h>
  4770. #else
  4771. # include <assert.h>
  4772. #endif
  4773. Syntax error
  4774. _ACEOF
  4775. if ac_fn_cxx_try_cpp "$LINENO"; then :
  4776. else
  4777. # Broken: fails on valid input.
  4778. continue
  4779. fi
  4780. rm -f conftest.err conftest.$ac_ext
  4781. # OK, works on sane cases. Now check whether nonexistent headers
  4782. # can be detected and how.
  4783. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4784. /* end confdefs.h. */
  4785. #include <ac_nonexistent.h>
  4786. _ACEOF
  4787. if ac_fn_cxx_try_cpp "$LINENO"; then :
  4788. # Broken: success on invalid input.
  4789. continue
  4790. else
  4791. # Passes both tests.
  4792. ac_preproc_ok=:
  4793. break
  4794. fi
  4795. rm -f conftest.err conftest.$ac_ext
  4796. done
  4797. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4798. rm -f conftest.err conftest.$ac_ext
  4799. if $ac_preproc_ok; then :
  4800. else
  4801. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4802. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4803. as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
  4804. See \`config.log' for more details." "$LINENO" 5; }
  4805. fi
  4806. ac_ext=cpp
  4807. ac_cpp='$CXXCPP $CPPFLAGS'
  4808. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4809. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4810. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4811. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4812. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4813. if test "${ac_cv_path_GREP+set}" = set; then :
  4814. $as_echo_n "(cached) " >&6
  4815. else
  4816. if test -z "$GREP"; then
  4817. ac_path_GREP_found=false
  4818. # Loop through the user's path and test for each of PROGNAME-LIST
  4819. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4820. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4821. do
  4822. IFS=$as_save_IFS
  4823. test -z "$as_dir" && as_dir=.
  4824. for ac_prog in grep ggrep; do
  4825. for ac_exec_ext in '' $ac_executable_extensions; do
  4826. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4827. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4828. # Check for GNU ac_path_GREP and select it if it is found.
  4829. # Check for GNU $ac_path_GREP
  4830. case `"$ac_path_GREP" --version 2>&1` in
  4831. *GNU*)
  4832. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4833. *)
  4834. ac_count=0
  4835. $as_echo_n 0123456789 >"conftest.in"
  4836. while :
  4837. do
  4838. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4839. mv "conftest.tmp" "conftest.in"
  4840. cp "conftest.in" "conftest.nl"
  4841. $as_echo 'GREP' >> "conftest.nl"
  4842. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4843. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4844. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4845. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4846. # Best one so far, save it but keep looking for a better one
  4847. ac_cv_path_GREP="$ac_path_GREP"
  4848. ac_path_GREP_max=$ac_count
  4849. fi
  4850. # 10*(2^10) chars as input seems more than enough
  4851. test $ac_count -gt 10 && break
  4852. done
  4853. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4854. esac
  4855. $ac_path_GREP_found && break 3
  4856. done
  4857. done
  4858. done
  4859. IFS=$as_save_IFS
  4860. if test -z "$ac_cv_path_GREP"; then
  4861. as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4862. fi
  4863. else
  4864. ac_cv_path_GREP=$GREP
  4865. fi
  4866. fi
  4867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4868. $as_echo "$ac_cv_path_GREP" >&6; }
  4869. GREP="$ac_cv_path_GREP"
  4870. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4871. $as_echo_n "checking for egrep... " >&6; }
  4872. if test "${ac_cv_path_EGREP+set}" = set; then :
  4873. $as_echo_n "(cached) " >&6
  4874. else
  4875. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4876. then ac_cv_path_EGREP="$GREP -E"
  4877. else
  4878. if test -z "$EGREP"; then
  4879. ac_path_EGREP_found=false
  4880. # Loop through the user's path and test for each of PROGNAME-LIST
  4881. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4882. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4883. do
  4884. IFS=$as_save_IFS
  4885. test -z "$as_dir" && as_dir=.
  4886. for ac_prog in egrep; do
  4887. for ac_exec_ext in '' $ac_executable_extensions; do
  4888. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4889. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4890. # Check for GNU ac_path_EGREP and select it if it is found.
  4891. # Check for GNU $ac_path_EGREP
  4892. case `"$ac_path_EGREP" --version 2>&1` in
  4893. *GNU*)
  4894. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4895. *)
  4896. ac_count=0
  4897. $as_echo_n 0123456789 >"conftest.in"
  4898. while :
  4899. do
  4900. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4901. mv "conftest.tmp" "conftest.in"
  4902. cp "conftest.in" "conftest.nl"
  4903. $as_echo 'EGREP' >> "conftest.nl"
  4904. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4905. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4906. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4907. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4908. # Best one so far, save it but keep looking for a better one
  4909. ac_cv_path_EGREP="$ac_path_EGREP"
  4910. ac_path_EGREP_max=$ac_count
  4911. fi
  4912. # 10*(2^10) chars as input seems more than enough
  4913. test $ac_count -gt 10 && break
  4914. done
  4915. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4916. esac
  4917. $ac_path_EGREP_found && break 3
  4918. done
  4919. done
  4920. done
  4921. IFS=$as_save_IFS
  4922. if test -z "$ac_cv_path_EGREP"; then
  4923. as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4924. fi
  4925. else
  4926. ac_cv_path_EGREP=$EGREP
  4927. fi
  4928. fi
  4929. fi
  4930. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4931. $as_echo "$ac_cv_path_EGREP" >&6; }
  4932. EGREP="$ac_cv_path_EGREP"
  4933. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4934. $as_echo_n "checking for ANSI C header files... " >&6; }
  4935. if test "${ac_cv_header_stdc+set}" = set; then :
  4936. $as_echo_n "(cached) " >&6
  4937. else
  4938. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4939. /* end confdefs.h. */
  4940. #include <stdlib.h>
  4941. #include <stdarg.h>
  4942. #include <string.h>
  4943. #include <float.h>
  4944. int
  4945. main ()
  4946. {
  4947. ;
  4948. return 0;
  4949. }
  4950. _ACEOF
  4951. if ac_fn_cxx_try_compile "$LINENO"; then :
  4952. ac_cv_header_stdc=yes
  4953. else
  4954. ac_cv_header_stdc=no
  4955. fi
  4956. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4957. if test $ac_cv_header_stdc = yes; then
  4958. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4959. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4960. /* end confdefs.h. */
  4961. #include <string.h>
  4962. _ACEOF
  4963. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4964. $EGREP "memchr" >/dev/null 2>&1; then :
  4965. else
  4966. ac_cv_header_stdc=no
  4967. fi
  4968. rm -f conftest*
  4969. fi
  4970. if test $ac_cv_header_stdc = yes; then
  4971. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4972. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4973. /* end confdefs.h. */
  4974. #include <stdlib.h>
  4975. _ACEOF
  4976. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4977. $EGREP "free" >/dev/null 2>&1; then :
  4978. else
  4979. ac_cv_header_stdc=no
  4980. fi
  4981. rm -f conftest*
  4982. fi
  4983. if test $ac_cv_header_stdc = yes; then
  4984. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4985. if test "$cross_compiling" = yes; then :
  4986. :
  4987. else
  4988. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4989. /* end confdefs.h. */
  4990. #include <ctype.h>
  4991. #include <stdlib.h>
  4992. #if ((' ' & 0x0FF) == 0x020)
  4993. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4994. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4995. #else
  4996. # define ISLOWER(c) \
  4997. (('a' <= (c) && (c) <= 'i') \
  4998. || ('j' <= (c) && (c) <= 'r') \
  4999. || ('s' <= (c) && (c) <= 'z'))
  5000. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  5001. #endif
  5002. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  5003. int
  5004. main ()
  5005. {
  5006. int i;
  5007. for (i = 0; i < 256; i++)
  5008. if (XOR (islower (i), ISLOWER (i))
  5009. || toupper (i) != TOUPPER (i))
  5010. return 2;
  5011. return 0;
  5012. }
  5013. _ACEOF
  5014. if ac_fn_cxx_try_run "$LINENO"; then :
  5015. else
  5016. ac_cv_header_stdc=no
  5017. fi
  5018. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5019. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5020. fi
  5021. fi
  5022. fi
  5023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  5024. $as_echo "$ac_cv_header_stdc" >&6; }
  5025. if test $ac_cv_header_stdc = yes; then
  5026. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  5027. fi
  5028. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  5029. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  5030. inttypes.h stdint.h unistd.h
  5031. do :
  5032. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5033. ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  5034. "
  5035. eval as_val=\$$as_ac_Header
  5036. if test "x$as_val" = x""yes; then :
  5037. cat >>confdefs.h <<_ACEOF
  5038. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5039. _ACEOF
  5040. fi
  5041. done
  5042. ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  5043. if test "x$ac_cv_header_minix_config_h" = x""yes; then :
  5044. MINIX=yes
  5045. else
  5046. MINIX=
  5047. fi
  5048. if test "$MINIX" = yes; then
  5049. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  5050. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  5051. $as_echo "#define _MINIX 1" >>confdefs.h
  5052. fi
  5053. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  5054. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  5055. if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
  5056. $as_echo_n "(cached) " >&6
  5057. else
  5058. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5059. /* end confdefs.h. */
  5060. # define __EXTENSIONS__ 1
  5061. $ac_includes_default
  5062. int
  5063. main ()
  5064. {
  5065. ;
  5066. return 0;
  5067. }
  5068. _ACEOF
  5069. if ac_fn_cxx_try_compile "$LINENO"; then :
  5070. ac_cv_safe_to_define___extensions__=yes
  5071. else
  5072. ac_cv_safe_to_define___extensions__=no
  5073. fi
  5074. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5075. fi
  5076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  5077. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  5078. test $ac_cv_safe_to_define___extensions__ = yes &&
  5079. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  5080. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  5081. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  5082. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  5083. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  5084. # Checks for libraries.
  5085. if test "x$with_libxml2" = "xyes"; then
  5086. # Check whether --with-xml-prefix was given.
  5087. if test "${with_xml_prefix+set}" = set; then :
  5088. withval=$with_xml_prefix; xml_config_prefix="$withval"
  5089. else
  5090. xml_config_prefix=""
  5091. fi
  5092. # Check whether --with-xml-exec-prefix was given.
  5093. if test "${with_xml_exec_prefix+set}" = set; then :
  5094. withval=$with_xml_exec_prefix; xml_config_exec_prefix="$withval"
  5095. else
  5096. xml_config_exec_prefix=""
  5097. fi
  5098. # Check whether --enable-xmltest was given.
  5099. if test "${enable_xmltest+set}" = set; then :
  5100. enableval=$enable_xmltest;
  5101. else
  5102. enable_xmltest=yes
  5103. fi
  5104. if test x$xml_config_exec_prefix != x ; then
  5105. xml_config_args="$xml_config_args"
  5106. if test x${XML2_CONFIG+set} != xset ; then
  5107. XML2_CONFIG=$xml_config_exec_prefix/bin/xml2-config
  5108. fi
  5109. fi
  5110. if test x$xml_config_prefix != x ; then
  5111. xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
  5112. if test x${XML2_CONFIG+set} != xset ; then
  5113. XML2_CONFIG=$xml_config_prefix/bin/xml2-config
  5114. fi
  5115. fi
  5116. # Extract the first word of "xml2-config", so it can be a program name with args.
  5117. set dummy xml2-config; ac_word=$2
  5118. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5119. $as_echo_n "checking for $ac_word... " >&6; }
  5120. if test "${ac_cv_path_XML2_CONFIG+set}" = set; then :
  5121. $as_echo_n "(cached) " >&6
  5122. else
  5123. case $XML2_CONFIG in
  5124. [\\/]* | ?:[\\/]*)
  5125. ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
  5126. ;;
  5127. *)
  5128. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5129. for as_dir in $PATH
  5130. do
  5131. IFS=$as_save_IFS
  5132. test -z "$as_dir" && as_dir=.
  5133. for ac_exec_ext in '' $ac_executable_extensions; do
  5134. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5135. ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5136. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5137. break 2
  5138. fi
  5139. done
  5140. done
  5141. IFS=$as_save_IFS
  5142. test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no"
  5143. ;;
  5144. esac
  5145. fi
  5146. XML2_CONFIG=$ac_cv_path_XML2_CONFIG
  5147. if test -n "$XML2_CONFIG"; then
  5148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5
  5149. $as_echo "$XML2_CONFIG" >&6; }
  5150. else
  5151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5152. $as_echo "no" >&6; }
  5153. fi
  5154. min_xml_version=2.6.24
  5155. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml - version >= $min_xml_version" >&5
  5156. $as_echo_n "checking for libxml - version >= $min_xml_version... " >&6; }
  5157. no_xml=""
  5158. if test "$XML2_CONFIG" = "no" ; then
  5159. no_xml=yes
  5160. else
  5161. XML_CPPFLAGS=`$XML2_CONFIG $xml_config_args --cflags`
  5162. XML_LIBS=`$XML2_CONFIG $xml_config_args --libs`
  5163. xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \
  5164. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  5165. xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \
  5166. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  5167. xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \
  5168. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  5169. if test "x$enable_xmltest" = "xyes" ; then
  5170. ac_save_CPPFLAGS="$CPPFLAGS"
  5171. ac_save_LIBS="$LIBS"
  5172. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  5173. LIBS="$XML_LIBS $LIBS"
  5174. rm -f conf.xmltest
  5175. if test "$cross_compiling" = yes; then :
  5176. echo $ac_n "cross compiling; assumed OK... $ac_c"
  5177. else
  5178. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5179. /* end confdefs.h. */
  5180. #include <stdlib.h>
  5181. #include <stdio.h>
  5182. #include <string.h>
  5183. #include <libxml/xmlversion.h>
  5184. int
  5185. main()
  5186. {
  5187. int xml_major_version, xml_minor_version, xml_micro_version;
  5188. int major, minor, micro;
  5189. char *tmp_version;
  5190. system("touch conf.xmltest");
  5191. /* Capture xml2-config output via autoconf/configure variables */
  5192. /* HP/UX 9 (%@#!) writes to sscanf strings */
  5193. tmp_version = (char *)strdup("$min_xml_version");
  5194. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  5195. printf("%s, bad version string from xml2-config\n", "$min_xml_version");
  5196. exit(1);
  5197. }
  5198. free(tmp_version);
  5199. /* Capture the version information from the header files */
  5200. tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);
  5201. if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
  5202. printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION");
  5203. exit(1);
  5204. }
  5205. free(tmp_version);
  5206. /* Compare xml2-config output to the libxml headers */
  5207. if ((xml_major_version != $xml_config_major_version) ||
  5208. (xml_minor_version != $xml_config_minor_version) ||
  5209. (xml_micro_version != $xml_config_micro_version))
  5210. {
  5211. printf("*** libxml header files (version %d.%d.%d) do not match\n",
  5212. xml_major_version, xml_minor_version, xml_micro_version);
  5213. printf("*** xml2-config (version %d.%d.%d)\n",
  5214. $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version);
  5215. return 1;
  5216. }
  5217. /* Compare the headers to the library to make sure we match */
  5218. /* Less than ideal -- doesn't provide us with return value feedback,
  5219. * only exits if there's a serious mismatch between header and library.
  5220. */
  5221. LIBXML_TEST_VERSION;
  5222. /* Test that the library is greater than our minimum version */
  5223. if ((xml_major_version > major) ||
  5224. ((xml_major_version == major) && (xml_minor_version > minor)) ||
  5225. ((xml_major_version == major) && (xml_minor_version == minor) &&
  5226. (xml_micro_version >= micro)))
  5227. {
  5228. return 0;
  5229. }
  5230. else
  5231. {
  5232. printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
  5233. xml_major_version, xml_minor_version, xml_micro_version);
  5234. printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
  5235. major, minor, micro);
  5236. printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n");
  5237. printf("***\n");
  5238. printf("*** If you have already installed a sufficiently new version, this error\n");
  5239. printf("*** probably means that the wrong copy of the xml2-config shell script is\n");
  5240. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  5241. printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
  5242. printf("*** correct copy of xml2-config. (In this case, you will have to\n");
  5243. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  5244. printf("*** so that the correct libraries are found at run-time))\n");
  5245. }
  5246. return 1;
  5247. }
  5248. _ACEOF
  5249. if ac_fn_cxx_try_run "$LINENO"; then :
  5250. else
  5251. no_xml=yes
  5252. fi
  5253. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5254. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5255. fi
  5256. CPPFLAGS="$ac_save_CPPFLAGS"
  5257. LIBS="$ac_save_LIBS"
  5258. fi
  5259. fi
  5260. if test "x$no_xml" = x ; then
  5261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&5
  5262. $as_echo "yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&6; }
  5263. have_libxml2=yes
  5264. else
  5265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5266. $as_echo "no" >&6; }
  5267. if test "$XML2_CONFIG" = "no" ; then
  5268. echo "*** The xml2-config script installed by LIBXML could not be found"
  5269. echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
  5270. echo "*** your path, or set the XML2_CONFIG environment variable to the"
  5271. echo "*** full path to xml2-config."
  5272. else
  5273. if test -f conf.xmltest ; then
  5274. :
  5275. else
  5276. echo "*** Could not run libxml test program, checking why..."
  5277. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  5278. LIBS="$LIBS $XML_LIBS"
  5279. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5280. /* end confdefs.h. */
  5281. #include <libxml/xmlversion.h>
  5282. #include <stdio.h>
  5283. int
  5284. main ()
  5285. {
  5286. LIBXML_TEST_VERSION; return 0;
  5287. ;
  5288. return 0;
  5289. }
  5290. _ACEOF
  5291. if ac_fn_cxx_try_link "$LINENO"; then :
  5292. echo "*** The test program compiled, but did not run. This usually means"
  5293. echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
  5294. echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"
  5295. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  5296. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  5297. echo "*** is required on your system"
  5298. echo "***"
  5299. echo "*** If you have an old version installed, it is best to remove it, although"
  5300. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  5301. else
  5302. echo "*** The test program failed to compile or link. See the file config.log for the"
  5303. echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
  5304. echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
  5305. echo "*** may want to edit the xml2-config script: $XML2_CONFIG"
  5306. fi
  5307. rm -f core conftest.err conftest.$ac_objext \
  5308. conftest$ac_exeext conftest.$ac_ext
  5309. CPPFLAGS="$ac_save_CPPFLAGS"
  5310. LIBS="$ac_save_LIBS"
  5311. fi
  5312. fi
  5313. XML_CPPFLAGS=""
  5314. XML_LIBS=""
  5315. :
  5316. fi
  5317. rm -f conf.xmltest
  5318. if test "x$have_libxml2" = "xyes"; then
  5319. $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
  5320. fi
  5321. fi
  5322. if test "x$with_libexpat" = "xyes" && test "x$have_libxml2" != "xyes"; then
  5323. # Check whether --with-libexpat-prefix was given.
  5324. if test "${with_libexpat_prefix+set}" = set; then :
  5325. withval=$with_libexpat_prefix; libexpat_prefix=$withval
  5326. else
  5327. libexpat_prefix=""
  5328. fi
  5329. if test "x$libexpat_prefix" = "x"; then
  5330. libexpat_prefix="/usr"
  5331. fi
  5332. libexpat_prefix_lib=$libexpat_prefix/lib
  5333. libexpat_prefix_include=$libexpat_prefix/include
  5334. LIBS_save=$LIBS
  5335. CPPFLAGS_save=$CPPFLAGS
  5336. LIBS="-L$libexpat_prefix_lib $LIBS"
  5337. CPPFLAGS="-I$libexpat_prefix_include $CPPFLAGS"
  5338. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML_ParserCreate in -lexpat" >&5
  5339. $as_echo_n "checking for XML_ParserCreate in -lexpat... " >&6; }
  5340. if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then :
  5341. $as_echo_n "(cached) " >&6
  5342. else
  5343. ac_check_lib_save_LIBS=$LIBS
  5344. LIBS="-lexpat $LIBS"
  5345. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5346. /* end confdefs.h. */
  5347. /* Override any GCC internal prototype to avoid an error.
  5348. Use char because int might match the return type of a GCC
  5349. builtin and then its argument prototype would still apply. */
  5350. #ifdef __cplusplus
  5351. extern "C"
  5352. #endif
  5353. char XML_ParserCreate ();
  5354. int
  5355. main ()
  5356. {
  5357. return XML_ParserCreate ();
  5358. ;
  5359. return 0;
  5360. }
  5361. _ACEOF
  5362. if ac_fn_cxx_try_link "$LINENO"; then :
  5363. ac_cv_lib_expat_XML_ParserCreate=yes
  5364. else
  5365. ac_cv_lib_expat_XML_ParserCreate=no
  5366. fi
  5367. rm -f core conftest.err conftest.$ac_objext \
  5368. conftest$ac_exeext conftest.$ac_ext
  5369. LIBS=$ac_check_lib_save_LIBS
  5370. fi
  5371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
  5372. $as_echo "$ac_cv_lib_expat_XML_ParserCreate" >&6; }
  5373. if test "x$ac_cv_lib_expat_XML_ParserCreate" = x""yes; then :
  5374. have_libexpat=yes
  5375. fi
  5376. if test "x$have_libexpat" = "xyes"; then
  5377. $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
  5378. LIBEXPAT_LIBS="-L$libexpat_prefix_lib -lexpat"
  5379. LIBEXPAT_CPPFLAGS="-I$libexpat_prefix_include"
  5380. fi
  5381. LIBS=$LIBS_save
  5382. CPPFLAGS=$CPPFLAGS_save
  5383. fi
  5384. if test "x$with_sqlite3" = "xyes"; then
  5385. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  5386. if test -n "$ac_tool_prefix"; then
  5387. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  5388. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  5389. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5390. $as_echo_n "checking for $ac_word... " >&6; }
  5391. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
  5392. $as_echo_n "(cached) " >&6
  5393. else
  5394. case $PKG_CONFIG in
  5395. [\\/]* | ?:[\\/]*)
  5396. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  5397. ;;
  5398. *)
  5399. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5400. for as_dir in $PATH
  5401. do
  5402. IFS=$as_save_IFS
  5403. test -z "$as_dir" && as_dir=.
  5404. for ac_exec_ext in '' $ac_executable_extensions; do
  5405. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5406. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5407. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5408. break 2
  5409. fi
  5410. done
  5411. done
  5412. IFS=$as_save_IFS
  5413. ;;
  5414. esac
  5415. fi
  5416. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  5417. if test -n "$PKG_CONFIG"; then
  5418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  5419. $as_echo "$PKG_CONFIG" >&6; }
  5420. else
  5421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5422. $as_echo "no" >&6; }
  5423. fi
  5424. fi
  5425. if test -z "$ac_cv_path_PKG_CONFIG"; then
  5426. ac_pt_PKG_CONFIG=$PKG_CONFIG
  5427. # Extract the first word of "pkg-config", so it can be a program name with args.
  5428. set dummy pkg-config; ac_word=$2
  5429. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5430. $as_echo_n "checking for $ac_word... " >&6; }
  5431. if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
  5432. $as_echo_n "(cached) " >&6
  5433. else
  5434. case $ac_pt_PKG_CONFIG in
  5435. [\\/]* | ?:[\\/]*)
  5436. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  5437. ;;
  5438. *)
  5439. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5440. for as_dir in $PATH
  5441. do
  5442. IFS=$as_save_IFS
  5443. test -z "$as_dir" && as_dir=.
  5444. for ac_exec_ext in '' $ac_executable_extensions; do
  5445. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5446. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5447. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5448. break 2
  5449. fi
  5450. done
  5451. done
  5452. IFS=$as_save_IFS
  5453. ;;
  5454. esac
  5455. fi
  5456. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  5457. if test -n "$ac_pt_PKG_CONFIG"; then
  5458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  5459. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  5460. else
  5461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5462. $as_echo "no" >&6; }
  5463. fi
  5464. if test "x$ac_pt_PKG_CONFIG" = x; then
  5465. PKG_CONFIG=""
  5466. else
  5467. case $cross_compiling:$ac_tool_warned in
  5468. yes:)
  5469. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5470. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5471. ac_tool_warned=yes ;;
  5472. esac
  5473. PKG_CONFIG=$ac_pt_PKG_CONFIG
  5474. fi
  5475. else
  5476. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  5477. fi
  5478. fi
  5479. if test -n "$PKG_CONFIG"; then
  5480. _pkg_min_version=0.9.0
  5481. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  5482. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  5483. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  5484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5485. $as_echo "yes" >&6; }
  5486. else
  5487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5488. $as_echo "no" >&6; }
  5489. PKG_CONFIG=""
  5490. fi
  5491. fi
  5492. # Check whether --with-sqlite3-prefix was given.
  5493. if test "${with_sqlite3_prefix+set}" = set; then :
  5494. withval=$with_sqlite3_prefix; sqlite3_prefix=$withval
  5495. else
  5496. sqlite3_prefix=""
  5497. fi
  5498. if test "x$sqlite3_prefix" = "x"; then
  5499. sqlite3_prefix="/usr"
  5500. fi
  5501. LIBS_save=$LIBS
  5502. CPPFLAGS_save=$CPPFLAGS
  5503. pkg_failed=no
  5504. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLITE3" >&5
  5505. $as_echo_n "checking for SQLITE3... " >&6; }
  5506. if test -n "$PKG_CONFIG"; then
  5507. if test -n "$SQLITE3_CFLAGS"; then
  5508. pkg_cv_SQLITE3_CFLAGS="$SQLITE3_CFLAGS"
  5509. else
  5510. if test -n "$PKG_CONFIG" && \
  5511. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
  5512. ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
  5513. ac_status=$?
  5514. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5515. test $ac_status = 0; }; then
  5516. pkg_cv_SQLITE3_CFLAGS=`$PKG_CONFIG --cflags "sqlite3" 2>/dev/null`
  5517. else
  5518. pkg_failed=yes
  5519. fi
  5520. fi
  5521. else
  5522. pkg_failed=untried
  5523. fi
  5524. if test -n "$PKG_CONFIG"; then
  5525. if test -n "$SQLITE3_LIBS"; then
  5526. pkg_cv_SQLITE3_LIBS="$SQLITE3_LIBS"
  5527. else
  5528. if test -n "$PKG_CONFIG" && \
  5529. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
  5530. ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
  5531. ac_status=$?
  5532. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5533. test $ac_status = 0; }; then
  5534. pkg_cv_SQLITE3_LIBS=`$PKG_CONFIG --libs "sqlite3" 2>/dev/null`
  5535. else
  5536. pkg_failed=yes
  5537. fi
  5538. fi
  5539. else
  5540. pkg_failed=untried
  5541. fi
  5542. if test $pkg_failed = yes; then
  5543. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  5544. _pkg_short_errors_supported=yes
  5545. else
  5546. _pkg_short_errors_supported=no
  5547. fi
  5548. if test $_pkg_short_errors_supported = yes; then
  5549. SQLITE3_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "sqlite3"`
  5550. else
  5551. SQLITE3_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "sqlite3"`
  5552. fi
  5553. # Put the nasty error message in config.log where it belongs
  5554. echo "$SQLITE3_PKG_ERRORS" >&5
  5555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5556. $as_echo "no" >&6; }
  5557. have_sqlite3=no
  5558. elif test $pkg_failed = untried; then
  5559. have_sqlite3=no
  5560. else
  5561. SQLITE3_CFLAGS=$pkg_cv_SQLITE3_CFLAGS
  5562. SQLITE3_LIBS=$pkg_cv_SQLITE3_LIBS
  5563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5564. $as_echo "yes" >&6; }
  5565. have_sqlite3=yes
  5566. fi
  5567. if test "x$have_sqlite3" != "xyes"; then
  5568. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $SQLITE3_PKG_ERRORS" >&5
  5569. $as_echo "$as_me: WARNING: $SQLITE3_PKG_ERRORS" >&2;}
  5570. sqlite3_prefix_lib=$sqlite3_prefix/lib
  5571. sqlite3_prefix_include=$sqlite3_prefix/include
  5572. LIBS="-L$sqlite3_prefix_lib $LIBS"
  5573. CPPFLAGS="-I$sqlite3_prefix_include $CPPFLAGS"
  5574. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_open in -lsqlite3" >&5
  5575. $as_echo_n "checking for sqlite3_open in -lsqlite3... " >&6; }
  5576. if test "${ac_cv_lib_sqlite3_sqlite3_open+set}" = set; then :
  5577. $as_echo_n "(cached) " >&6
  5578. else
  5579. ac_check_lib_save_LIBS=$LIBS
  5580. LIBS="-lsqlite3 $LIBS"
  5581. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5582. /* end confdefs.h. */
  5583. /* Override any GCC internal prototype to avoid an error.
  5584. Use char because int might match the return type of a GCC
  5585. builtin and then its argument prototype would still apply. */
  5586. #ifdef __cplusplus
  5587. extern "C"
  5588. #endif
  5589. char sqlite3_open ();
  5590. int
  5591. main ()
  5592. {
  5593. return sqlite3_open ();
  5594. ;
  5595. return 0;
  5596. }
  5597. _ACEOF
  5598. if ac_fn_cxx_try_link "$LINENO"; then :
  5599. ac_cv_lib_sqlite3_sqlite3_open=yes
  5600. else
  5601. ac_cv_lib_sqlite3_sqlite3_open=no
  5602. fi
  5603. rm -f core conftest.err conftest.$ac_objext \
  5604. conftest$ac_exeext conftest.$ac_ext
  5605. LIBS=$ac_check_lib_save_LIBS
  5606. fi
  5607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5
  5608. $as_echo "$ac_cv_lib_sqlite3_sqlite3_open" >&6; }
  5609. if test "x$ac_cv_lib_sqlite3_sqlite3_open" = x""yes; then :
  5610. have_sqlite3=yes
  5611. fi
  5612. if test "x$have_sqlite3" = "xyes"; then
  5613. SQLITE3_LIBS="-L$sqlite3_prefix_lib -lsqlite3"
  5614. SQLITE3_CFLAGS="-I$sqlite3_prefix_include"
  5615. fi
  5616. fi
  5617. if test "x$have_sqlite3" = "xyes"; then
  5618. LIBS="$SQLITE3_LIBS $LIBS"
  5619. CPPFLAGS="$SQLITE3_CFLAGS $CPPFLAGS"
  5620. for ac_func in sqlite3_open_v2
  5621. do :
  5622. ac_fn_cxx_check_func "$LINENO" "sqlite3_open_v2" "ac_cv_func_sqlite3_open_v2"
  5623. if test "x$ac_cv_func_sqlite3_open_v2" = x""yes; then :
  5624. cat >>confdefs.h <<_ACEOF
  5625. #define HAVE_SQLITE3_OPEN_V2 1
  5626. _ACEOF
  5627. fi
  5628. done
  5629. $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
  5630. fi
  5631. LIBS=$LIBS_save
  5632. CPPFLAGS=$CPPFLAGS_save
  5633. fi
  5634. if test "x$with_gnutls" = "xyes"; then
  5635. # gnutls >= 2.8 doesn't have libgnutls-config anymore.
  5636. # First check the presence of libgnutls using pkg-config.
  5637. pkg_failed=no
  5638. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGNUTLS" >&5
  5639. $as_echo_n "checking for LIBGNUTLS... " >&6; }
  5640. if test -n "$PKG_CONFIG"; then
  5641. if test -n "$LIBGNUTLS_CFLAGS"; then
  5642. pkg_cv_LIBGNUTLS_CFLAGS="$LIBGNUTLS_CFLAGS"
  5643. else
  5644. if test -n "$PKG_CONFIG" && \
  5645. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= 1.2.9\""; } >&5
  5646. ($PKG_CONFIG --exists --print-errors "gnutls >= 1.2.9") 2>&5
  5647. ac_status=$?
  5648. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5649. test $ac_status = 0; }; then
  5650. pkg_cv_LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 1.2.9" 2>/dev/null`
  5651. else
  5652. pkg_failed=yes
  5653. fi
  5654. fi
  5655. else
  5656. pkg_failed=untried
  5657. fi
  5658. if test -n "$PKG_CONFIG"; then
  5659. if test -n "$LIBGNUTLS_LIBS"; then
  5660. pkg_cv_LIBGNUTLS_LIBS="$LIBGNUTLS_LIBS"
  5661. else
  5662. if test -n "$PKG_CONFIG" && \
  5663. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= 1.2.9\""; } >&5
  5664. ($PKG_CONFIG --exists --print-errors "gnutls >= 1.2.9") 2>&5
  5665. ac_status=$?
  5666. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5667. test $ac_status = 0; }; then
  5668. pkg_cv_LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 1.2.9" 2>/dev/null`
  5669. else
  5670. pkg_failed=yes
  5671. fi
  5672. fi
  5673. else
  5674. pkg_failed=untried
  5675. fi
  5676. if test $pkg_failed = yes; then
  5677. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  5678. _pkg_short_errors_supported=yes
  5679. else
  5680. _pkg_short_errors_supported=no
  5681. fi
  5682. if test $_pkg_short_errors_supported = yes; then
  5683. LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnutls >= 1.2.9"`
  5684. else
  5685. LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 1.2.9"`
  5686. fi
  5687. # Put the nasty error message in config.log where it belongs
  5688. echo "$LIBGNUTLS_PKG_ERRORS" >&5
  5689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5690. $as_echo "no" >&6; }
  5691. have_libgnutls=no
  5692. elif test $pkg_failed = untried; then
  5693. have_libgnutls=no
  5694. else
  5695. LIBGNUTLS_CFLAGS=$pkg_cv_LIBGNUTLS_CFLAGS
  5696. LIBGNUTLS_LIBS=$pkg_cv_LIBGNUTLS_LIBS
  5697. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5698. $as_echo "yes" >&6; }
  5699. have_libgnutls=yes
  5700. fi
  5701. # If no libgnutls found by pkg-config, fall back to old macro
  5702. if test "x$have_libgnutls" = "xno"; then
  5703. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $LIBGNUTLS_PKG_ERRORS" >&5
  5704. $as_echo "$as_me: WARNING: $LIBGNUTLS_PKG_ERRORS" >&2;}
  5705. # Check whether --with-libgnutls-prefix was given.
  5706. if test "${with_libgnutls_prefix+set}" = set; then :
  5707. withval=$with_libgnutls_prefix; libgnutls_config_prefix="$withval"
  5708. else
  5709. libgnutls_config_prefix=""
  5710. fi
  5711. if test x$libgnutls_config_prefix != x ; then
  5712. if test x${LIBGNUTLS_CONFIG+set} != xset ; then
  5713. LIBGNUTLS_CONFIG=$libgnutls_config_prefix/bin/libgnutls-config
  5714. fi
  5715. fi
  5716. # Extract the first word of "libgnutls-config", so it can be a program name with args.
  5717. set dummy libgnutls-config; ac_word=$2
  5718. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5719. $as_echo_n "checking for $ac_word... " >&6; }
  5720. if test "${ac_cv_path_LIBGNUTLS_CONFIG+set}" = set; then :
  5721. $as_echo_n "(cached) " >&6
  5722. else
  5723. case $LIBGNUTLS_CONFIG in
  5724. [\\/]* | ?:[\\/]*)
  5725. ac_cv_path_LIBGNUTLS_CONFIG="$LIBGNUTLS_CONFIG" # Let the user override the test with a path.
  5726. ;;
  5727. *)
  5728. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5729. for as_dir in $PATH
  5730. do
  5731. IFS=$as_save_IFS
  5732. test -z "$as_dir" && as_dir=.
  5733. for ac_exec_ext in '' $ac_executable_extensions; do
  5734. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5735. ac_cv_path_LIBGNUTLS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5736. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5737. break 2
  5738. fi
  5739. done
  5740. done
  5741. IFS=$as_save_IFS
  5742. test -z "$ac_cv_path_LIBGNUTLS_CONFIG" && ac_cv_path_LIBGNUTLS_CONFIG="no"
  5743. ;;
  5744. esac
  5745. fi
  5746. LIBGNUTLS_CONFIG=$ac_cv_path_LIBGNUTLS_CONFIG
  5747. if test -n "$LIBGNUTLS_CONFIG"; then
  5748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CONFIG" >&5
  5749. $as_echo "$LIBGNUTLS_CONFIG" >&6; }
  5750. else
  5751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5752. $as_echo "no" >&6; }
  5753. fi
  5754. min_libgnutls_version=1.2.9
  5755. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgnutls - version >= $min_libgnutls_version" >&5
  5756. $as_echo_n "checking for libgnutls - version >= $min_libgnutls_version... " >&6; }
  5757. no_libgnutls=""
  5758. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  5759. no_libgnutls=yes
  5760. else
  5761. LIBGNUTLS_CFLAGS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --cflags`
  5762. LIBGNUTLS_LIBS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --libs`
  5763. libgnutls_config_version=`$LIBGNUTLS_CONFIG $libgnutls_config_args --version`
  5764. ac_save_CFLAGS="$CFLAGS"
  5765. ac_save_LIBS="$LIBS"
  5766. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  5767. LIBS="$LIBS $LIBGNUTLS_LIBS"
  5768. rm -f conf.libgnutlstest
  5769. if test "$cross_compiling" = yes; then :
  5770. echo $ac_n "cross compiling; assumed OK... $ac_c"
  5771. else
  5772. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5773. /* end confdefs.h. */
  5774. #include <stdio.h>
  5775. #include <stdlib.h>
  5776. #include <string.h>
  5777. #include <gnutls/gnutls.h>
  5778. int
  5779. main ()
  5780. {
  5781. system ("touch conf.libgnutlstest");
  5782. if( strcmp( gnutls_check_version(NULL), "$libgnutls_config_version" ) )
  5783. {
  5784. printf("\n*** 'libgnutls-config --version' returned %s, but LIBGNUTLS (%s)\n",
  5785. "$libgnutls_config_version", gnutls_check_version(NULL) );
  5786. printf("*** was found! If libgnutls-config was correct, then it is best\n");
  5787. printf("*** to remove the old version of LIBGNUTLS. You may also be able to fix the error\n");
  5788. printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
  5789. printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
  5790. printf("*** required on your system.\n");
  5791. printf("*** If libgnutls-config was wrong, set the environment variable LIBGNUTLS_CONFIG\n");
  5792. printf("*** to point to the correct copy of libgnutls-config, and remove the file config.cache\n");
  5793. printf("*** before re-running configure\n");
  5794. }
  5795. else if ( strcmp(gnutls_check_version(NULL), LIBGNUTLS_VERSION ) )
  5796. {
  5797. printf("\n*** LIBGNUTLS header file (version %s) does not match\n", LIBGNUTLS_VERSION);
  5798. printf("*** library (version %s)\n", gnutls_check_version(NULL) );
  5799. }
  5800. else
  5801. {
  5802. if ( gnutls_check_version( "$min_libgnutls_version" ) )
  5803. {
  5804. return 0;
  5805. }
  5806. else
  5807. {
  5808. printf("no\n*** An old version of LIBGNUTLS (%s) was found.\n",
  5809. gnutls_check_version(NULL) );
  5810. printf("*** You need a version of LIBGNUTLS newer than %s. The latest version of\n",
  5811. "$min_libgnutls_version" );
  5812. printf("*** LIBGNUTLS is always available from ftp://gnutls.hellug.gr/pub/gnutls.\n");
  5813. printf("*** \n");
  5814. printf("*** If you have already installed a sufficiently new version, this error\n");
  5815. printf("*** probably means that the wrong copy of the libgnutls-config shell script is\n");
  5816. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  5817. printf("*** of LIBGNUTLS, but you can also set the LIBGNUTLS_CONFIG environment to point to the\n");
  5818. printf("*** correct copy of libgnutls-config. (In this case, you will have to\n");
  5819. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  5820. printf("*** so that the correct libraries are found at run-time))\n");
  5821. }
  5822. }
  5823. return 1;
  5824. }
  5825. _ACEOF
  5826. if ac_fn_cxx_try_run "$LINENO"; then :
  5827. else
  5828. no_libgnutls=yes
  5829. fi
  5830. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5831. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5832. fi
  5833. CFLAGS="$ac_save_CFLAGS"
  5834. LIBS="$ac_save_LIBS"
  5835. fi
  5836. if test "x$no_libgnutls" = x ; then
  5837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5838. $as_echo "yes" >&6; }
  5839. have_libgnutls=yes
  5840. else
  5841. if test -f conf.libgnutlstest ; then
  5842. :
  5843. else
  5844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5845. $as_echo "no" >&6; }
  5846. fi
  5847. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  5848. echo "*** The libgnutls-config script installed by LIBGNUTLS could not be found"
  5849. echo "*** If LIBGNUTLS was installed in PREFIX, make sure PREFIX/bin is in"
  5850. echo "*** your path, or set the LIBGNUTLS_CONFIG environment variable to the"
  5851. echo "*** full path to libgnutls-config."
  5852. else
  5853. if test -f conf.libgnutlstest ; then
  5854. :
  5855. else
  5856. echo "*** Could not run libgnutls test program, checking why..."
  5857. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  5858. LIBS="$LIBS $LIBGNUTLS_LIBS"
  5859. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5860. /* end confdefs.h. */
  5861. #include <stdio.h>
  5862. #include <stdlib.h>
  5863. #include <string.h>
  5864. #include <gnutls/gnutls.h>
  5865. int
  5866. main ()
  5867. {
  5868. return !!gnutls_check_version(NULL);
  5869. ;
  5870. return 0;
  5871. }
  5872. _ACEOF
  5873. if ac_fn_cxx_try_link "$LINENO"; then :
  5874. echo "*** The test program compiled, but did not run. This usually means"
  5875. echo "*** that the run-time linker is not finding LIBGNUTLS or finding the wrong"
  5876. echo "*** version of LIBGNUTLS. If it is not finding LIBGNUTLS, you'll need to set your"
  5877. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  5878. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  5879. echo "*** is required on your system"
  5880. echo "***"
  5881. echo "*** If you have an old version installed, it is best to remove it, although"
  5882. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  5883. echo "***"
  5884. else
  5885. echo "*** The test program failed to compile or link. See the file config.log for the"
  5886. echo "*** exact error that occured. This usually means LIBGNUTLS was incorrectly installed"
  5887. echo "*** or that you have moved LIBGNUTLS since it was installed. In the latter case, you"
  5888. echo "*** may want to edit the libgnutls-config script: $LIBGNUTLS_CONFIG"
  5889. fi
  5890. rm -f core conftest.err conftest.$ac_objext \
  5891. conftest$ac_exeext conftest.$ac_ext
  5892. CFLAGS="$ac_save_CFLAGS"
  5893. LIBS="$ac_save_LIBS"
  5894. fi
  5895. fi
  5896. LIBGNUTLS_CFLAGS=""
  5897. LIBGNUTLS_LIBS=""
  5898. :
  5899. fi
  5900. rm -f conf.libgnutlstest
  5901. fi
  5902. if test "x$have_libgnutls" = "xyes"; then
  5903. $as_echo "#define HAVE_LIBGNUTLS 1" >>confdefs.h
  5904. fi
  5905. fi
  5906. if test "x$have_libgnutls" = "xyes"; then
  5907. # Check whether --with-libgcrypt-prefix was given.
  5908. if test "${with_libgcrypt_prefix+set}" = set; then :
  5909. withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
  5910. else
  5911. libgcrypt_config_prefix=""
  5912. fi
  5913. if test x$libgcrypt_config_prefix != x ; then
  5914. if test x${LIBGCRYPT_CONFIG+set} != xset ; then
  5915. LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
  5916. fi
  5917. fi
  5918. # Extract the first word of "libgcrypt-config", so it can be a program name with args.
  5919. set dummy libgcrypt-config; ac_word=$2
  5920. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5921. $as_echo_n "checking for $ac_word... " >&6; }
  5922. if test "${ac_cv_path_LIBGCRYPT_CONFIG+set}" = set; then :
  5923. $as_echo_n "(cached) " >&6
  5924. else
  5925. case $LIBGCRYPT_CONFIG in
  5926. [\\/]* | ?:[\\/]*)
  5927. ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
  5928. ;;
  5929. *)
  5930. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5931. for as_dir in $PATH
  5932. do
  5933. IFS=$as_save_IFS
  5934. test -z "$as_dir" && as_dir=.
  5935. for ac_exec_ext in '' $ac_executable_extensions; do
  5936. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5937. ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5938. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5939. break 2
  5940. fi
  5941. done
  5942. done
  5943. IFS=$as_save_IFS
  5944. test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
  5945. ;;
  5946. esac
  5947. fi
  5948. LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
  5949. if test -n "$LIBGCRYPT_CONFIG"; then
  5950. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT_CONFIG" >&5
  5951. $as_echo "$LIBGCRYPT_CONFIG" >&6; }
  5952. else
  5953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5954. $as_echo "no" >&6; }
  5955. fi
  5956. tmp=1.2.2
  5957. if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
  5958. req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
  5959. min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
  5960. else
  5961. req_libgcrypt_api=0
  5962. min_libgcrypt_version="$tmp"
  5963. fi
  5964. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
  5965. $as_echo_n "checking for LIBGCRYPT - version >= $min_libgcrypt_version... " >&6; }
  5966. ok=no
  5967. if test "$LIBGCRYPT_CONFIG" != "no" ; then
  5968. req_major=`echo $min_libgcrypt_version | \
  5969. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
  5970. req_minor=`echo $min_libgcrypt_version | \
  5971. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
  5972. req_micro=`echo $min_libgcrypt_version | \
  5973. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
  5974. libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
  5975. major=`echo $libgcrypt_config_version | \
  5976. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
  5977. minor=`echo $libgcrypt_config_version | \
  5978. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
  5979. micro=`echo $libgcrypt_config_version | \
  5980. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
  5981. if test "$major" -gt "$req_major"; then
  5982. ok=yes
  5983. else
  5984. if test "$major" -eq "$req_major"; then
  5985. if test "$minor" -gt "$req_minor"; then
  5986. ok=yes
  5987. else
  5988. if test "$minor" -eq "$req_minor"; then
  5989. if test "$micro" -ge "$req_micro"; then
  5990. ok=yes
  5991. fi
  5992. fi
  5993. fi
  5994. fi
  5995. fi
  5996. fi
  5997. if test $ok = yes; then
  5998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($libgcrypt_config_version)" >&5
  5999. $as_echo "yes ($libgcrypt_config_version)" >&6; }
  6000. else
  6001. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6002. $as_echo "no" >&6; }
  6003. fi
  6004. if test $ok = yes; then
  6005. # If we have a recent libgcrypt, we should also check that the
  6006. # API is compatible
  6007. if test "$req_libgcrypt_api" -gt 0 ; then
  6008. tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
  6009. if test "$tmp" -gt 0 ; then
  6010. { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGCRYPT API version" >&5
  6011. $as_echo_n "checking LIBGCRYPT API version... " >&6; }
  6012. if test "$req_libgcrypt_api" -eq "$tmp" ; then
  6013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
  6014. $as_echo "okay" >&6; }
  6015. else
  6016. ok=no
  6017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5
  6018. $as_echo "does not match. want=$req_libgcrypt_api got=$tmp" >&6; }
  6019. fi
  6020. fi
  6021. fi
  6022. fi
  6023. if test $ok = yes; then
  6024. LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
  6025. LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
  6026. have_libgcrypt=yes
  6027. else
  6028. LIBGCRYPT_CFLAGS=""
  6029. LIBGCRYPT_LIBS=""
  6030. :
  6031. fi
  6032. if test "x$have_libgcrypt" = "xyes"; then
  6033. $as_echo "#define HAVE_LIBGCRYPT 1" >>confdefs.h
  6034. fi
  6035. fi
  6036. if test "x$with_openssl" = "xyes" && test "x$have_libgnutls" != "xyes"; then
  6037. # Check whether --with-openssl-prefix was given.
  6038. if test "${with_openssl_prefix+set}" = set; then :
  6039. withval=$with_openssl_prefix; openssl_prefix=$withval
  6040. else
  6041. openssl_prefix=""
  6042. fi
  6043. if test "x$openssl_prefix" = "x"; then
  6044. openssl_prefix="/usr/local"
  6045. fi
  6046. LIBS_save=$LIBS
  6047. CPPFLAGS_save=$CPPFLAGS
  6048. PKG_CONFIG="$openssl_prefix/bin/pkg-config"
  6049. if test -x $PKG_CONFIG; then
  6050. { $as_echo "$as_me:${as_lineno-$LINENO}: checking checking availability of openssl using pkg-config" >&5
  6051. $as_echo_n "checking checking availability of openssl using pkg-config... " >&6; }
  6052. $PKG_CONFIG --exists openssl
  6053. if test "$?" = "0"; then
  6054. # Use pkg-config to detect LIBS and CFLAGS
  6055. OPENSSL_LIBS=`$PKG_CONFIG --libs openssl`
  6056. OPENSSL_CFLAGS=`$PKG_CONFIG --cflags openssl`
  6057. LIBS="$OPENSSL_LIBS $LIBS"
  6058. CPPFLAGS="$OPENSSL_CFLAGS $CPPFLAGS"
  6059. have_openssl=yes
  6060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6061. $as_echo "yes" >&6; }
  6062. else
  6063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6064. $as_echo "no" >&6; }
  6065. fi
  6066. fi
  6067. if test "x$have_openssl" != "xyes"; then
  6068. openssl_prefix_lib=$openssl_prefix/lib
  6069. openssl_prefix_include=$openssl_prefix/include
  6070. LIBS="-L$openssl_prefix_lib $LIBS"
  6071. CPPFLAGS="-I$openssl_prefix_include $CPPFLAGS"
  6072. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_library_init in -lssl" >&5
  6073. $as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
  6074. if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then :
  6075. $as_echo_n "(cached) " >&6
  6076. else
  6077. ac_check_lib_save_LIBS=$LIBS
  6078. LIBS="-lssl $LIBS"
  6079. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6080. /* end confdefs.h. */
  6081. /* Override any GCC internal prototype to avoid an error.
  6082. Use char because int might match the return type of a GCC
  6083. builtin and then its argument prototype would still apply. */
  6084. #ifdef __cplusplus
  6085. extern "C"
  6086. #endif
  6087. char SSL_library_init ();
  6088. int
  6089. main ()
  6090. {
  6091. return SSL_library_init ();
  6092. ;
  6093. return 0;
  6094. }
  6095. _ACEOF
  6096. if ac_fn_cxx_try_link "$LINENO"; then :
  6097. ac_cv_lib_ssl_SSL_library_init=yes
  6098. else
  6099. ac_cv_lib_ssl_SSL_library_init=no
  6100. fi
  6101. rm -f core conftest.err conftest.$ac_objext \
  6102. conftest$ac_exeext conftest.$ac_ext
  6103. LIBS=$ac_check_lib_save_LIBS
  6104. fi
  6105. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_library_init" >&5
  6106. $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
  6107. if test "x$ac_cv_lib_ssl_SSL_library_init" = x""yes; then :
  6108. have_openssl=yes LIBS="-lssl $LIBS"
  6109. fi
  6110. if test "x$have_openssl" = "xyes"; then
  6111. have_openssl=no
  6112. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lcrypto" >&5
  6113. $as_echo_n "checking for main in -lcrypto... " >&6; }
  6114. if test "${ac_cv_lib_crypto_main+set}" = set; then :
  6115. $as_echo_n "(cached) " >&6
  6116. else
  6117. ac_check_lib_save_LIBS=$LIBS
  6118. LIBS="-lcrypto $LIBS"
  6119. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6120. /* end confdefs.h. */
  6121. int
  6122. main ()
  6123. {
  6124. return main ();
  6125. ;
  6126. return 0;
  6127. }
  6128. _ACEOF
  6129. if ac_fn_cxx_try_link "$LINENO"; then :
  6130. ac_cv_lib_crypto_main=yes
  6131. else
  6132. ac_cv_lib_crypto_main=no
  6133. fi
  6134. rm -f core conftest.err conftest.$ac_objext \
  6135. conftest$ac_exeext conftest.$ac_ext
  6136. LIBS=$ac_check_lib_save_LIBS
  6137. fi
  6138. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_main" >&5
  6139. $as_echo "$ac_cv_lib_crypto_main" >&6; }
  6140. if test "x$ac_cv_lib_crypto_main" = x""yes; then :
  6141. have_openssl=yes; LIBS="-lcrypto $LIBS"
  6142. fi
  6143. if test "x$have_openssl" = "xyes"; then
  6144. OPENSSL_LIBS="-L$openssl_prefix_lib -lssl -lcrypto"
  6145. OPENSSL_CFLAGS="-I$openssl_prefix_include"
  6146. fi
  6147. fi
  6148. fi
  6149. if test "x$have_openssl" = "xyes"; then
  6150. $as_echo "#define HAVE_LIBSSL 1" >>confdefs.h
  6151. # check whether EVP_DigestInit_ex exists. Old openssl doesn't have it.
  6152. for ac_func in EVP_DigestInit_ex
  6153. do :
  6154. ac_fn_cxx_check_func "$LINENO" "EVP_DigestInit_ex" "ac_cv_func_EVP_DigestInit_ex"
  6155. if test "x$ac_cv_func_EVP_DigestInit_ex" = x""yes; then :
  6156. cat >>confdefs.h <<_ACEOF
  6157. #define HAVE_EVP_DIGESTINIT_EX 1
  6158. _ACEOF
  6159. have_digestinit_ex=yes
  6160. fi
  6161. done
  6162. if test "x$have_digestinit_ex" = "x"; then
  6163. $as_echo "#define HAVE_OLD_LIBSSL 1" >>confdefs.h
  6164. fi
  6165. # search for sha256 support
  6166. for ac_func in EVP_sha256
  6167. do :
  6168. ac_fn_cxx_check_func "$LINENO" "EVP_sha256" "ac_cv_func_EVP_sha256"
  6169. if test "x$ac_cv_func_EVP_sha256" = x""yes; then :
  6170. cat >>confdefs.h <<_ACEOF
  6171. #define HAVE_EVP_SHA256 1
  6172. _ACEOF
  6173. fi
  6174. done
  6175. fi
  6176. LIBS=$LIBS_save
  6177. CPPFLAGS=$CPPFLAGS_save
  6178. fi
  6179. if test "x$with_libcares" = "xyes"; then
  6180. # Check whether --with-libcares-prefix was given.
  6181. if test "${with_libcares_prefix+set}" = set; then :
  6182. withval=$with_libcares_prefix; libcares_prefix=$withval
  6183. else
  6184. libcares_prefix=""
  6185. fi
  6186. if test "x$libcares_prefix" = "x"; then
  6187. libcares_prefix="/usr"
  6188. fi
  6189. libcares_prefix_lib=$libcares_prefix/lib
  6190. libcares_prefix_include=$libcares_prefix/include
  6191. LIBS_save=$LIBS
  6192. CPPFLAGS_save=$CPPFLAGS
  6193. LIBS="-L$libcares_prefix_lib $LIBS"
  6194. CPPFLAGS="-I$libcares_prefix_include -Wall $CPPFLAGS"
  6195. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ares_init in -lcares" >&5
  6196. $as_echo_n "checking for ares_init in -lcares... " >&6; }
  6197. if test "${ac_cv_lib_cares_ares_init+set}" = set; then :
  6198. $as_echo_n "(cached) " >&6
  6199. else
  6200. ac_check_lib_save_LIBS=$LIBS
  6201. LIBS="-lcares $LIBS"
  6202. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6203. /* end confdefs.h. */
  6204. /* Override any GCC internal prototype to avoid an error.
  6205. Use char because int might match the return type of a GCC
  6206. builtin and then its argument prototype would still apply. */
  6207. #ifdef __cplusplus
  6208. extern "C"
  6209. #endif
  6210. char ares_init ();
  6211. int
  6212. main ()
  6213. {
  6214. return ares_init ();
  6215. ;
  6216. return 0;
  6217. }
  6218. _ACEOF
  6219. if ac_fn_cxx_try_link "$LINENO"; then :
  6220. ac_cv_lib_cares_ares_init=yes
  6221. else
  6222. ac_cv_lib_cares_ares_init=no
  6223. fi
  6224. rm -f core conftest.err conftest.$ac_objext \
  6225. conftest$ac_exeext conftest.$ac_ext
  6226. LIBS=$ac_check_lib_save_LIBS
  6227. fi
  6228. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cares_ares_init" >&5
  6229. $as_echo "$ac_cv_lib_cares_ares_init" >&6; }
  6230. if test "x$ac_cv_lib_cares_ares_init" = x""yes; then :
  6231. have_libcares=yes
  6232. fi
  6233. if test "x$have_libcares" != "xyes"; then
  6234. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ares_init in -lcares" >&5
  6235. $as_echo_n "checking for ares_init in -lcares... " >&6; }
  6236. if test "${ac_cv_lib_cares_ares_init+set}" = set; then :
  6237. $as_echo_n "(cached) " >&6
  6238. else
  6239. ac_check_lib_save_LIBS=$LIBS
  6240. LIBS="-lcares -lrt $LIBS"
  6241. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6242. /* end confdefs.h. */
  6243. /* Override any GCC internal prototype to avoid an error.
  6244. Use char because int might match the return type of a GCC
  6245. builtin and then its argument prototype would still apply. */
  6246. #ifdef __cplusplus
  6247. extern "C"
  6248. #endif
  6249. char ares_init ();
  6250. int
  6251. main ()
  6252. {
  6253. return ares_init ();
  6254. ;
  6255. return 0;
  6256. }
  6257. _ACEOF
  6258. if ac_fn_cxx_try_link "$LINENO"; then :
  6259. ac_cv_lib_cares_ares_init=yes
  6260. else
  6261. ac_cv_lib_cares_ares_init=no
  6262. fi
  6263. rm -f core conftest.err conftest.$ac_objext \
  6264. conftest$ac_exeext conftest.$ac_ext
  6265. LIBS=$ac_check_lib_save_LIBS
  6266. fi
  6267. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cares_ares_init" >&5
  6268. $as_echo "$ac_cv_lib_cares_ares_init" >&6; }
  6269. if test "x$ac_cv_lib_cares_ares_init" = x""yes; then :
  6270. have_libcares=yes need_librt=yes
  6271. fi
  6272. fi
  6273. if test "x$have_libcares" = "xyes"; then
  6274. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ares_host_callback accepts timeouts(c-ares >= 1.5)" >&5
  6275. $as_echo_n "checking whether ares_host_callback accepts timeouts(c-ares >= 1.5)... " >&6; }
  6276. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6277. /* end confdefs.h. */
  6278. #include <ares.h>
  6279. void callback(void* arg, int status, int timeouts, struct hostent* host);
  6280. int
  6281. main ()
  6282. {
  6283. ares_channel channel;
  6284. ares_gethostbyname(channel, "foo", 0, callback, 0);
  6285. ;
  6286. return 0;
  6287. }
  6288. _ACEOF
  6289. if ac_fn_cxx_try_compile "$LINENO"; then :
  6290. have_libcares1_5=yes
  6291. else
  6292. have_libcares1_5=no
  6293. fi
  6294. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_libcares1_5" >&5
  6296. $as_echo "$have_libcares1_5" >&6; }
  6297. if test "x$have_libcares1_5" = "xyes"; then
  6298. $as_echo "#define HAVE_LIBCARES1_5 1" >>confdefs.h
  6299. fi
  6300. $as_echo "#define HAVE_LIBCARES 1" >>confdefs.h
  6301. LIBCARES_LIBS="-L$libcares_prefix_lib -lcares"
  6302. if test "x$need_librt" = "xyes"; then
  6303. LIBCARES_LIBS="$LIBCARES_LIBS -lrt"
  6304. fi
  6305. LIBCARES_CPPFLAGS="-I$libcares_prefix_include"
  6306. fi
  6307. LIBS=$LIBS_save
  6308. CPPFLAGS=$CPPFLAGS_save
  6309. fi
  6310. # Check availability of libz
  6311. if test "x$with_libz" = "xyes"; then
  6312. # Check whether --with-libz-prefix was given.
  6313. if test "${with_libz_prefix+set}" = set; then :
  6314. withval=$with_libz_prefix; libz_prefix=$withval
  6315. else
  6316. libz_prefix=""
  6317. fi
  6318. if test "x$libz_prefix" = "x"; then
  6319. libz_prefix="/usr"
  6320. fi
  6321. libz_prefix_lib=$libz_prefix/lib
  6322. libz_prefix_include=$libz_prefix/include
  6323. LIBS_save=$LIBS
  6324. CPPFLAGS_save=$CPPFLAGS
  6325. LIBS="-L$libz_prefix_lib $LIBS"
  6326. CPPFLAGS="-I$libz_prefix_include $CPPFLAGS"
  6327. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5
  6328. $as_echo_n "checking for zlibVersion in -lz... " >&6; }
  6329. if test "${ac_cv_lib_z_zlibVersion+set}" = set; then :
  6330. $as_echo_n "(cached) " >&6
  6331. else
  6332. ac_check_lib_save_LIBS=$LIBS
  6333. LIBS="-lz $LIBS"
  6334. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6335. /* end confdefs.h. */
  6336. /* Override any GCC internal prototype to avoid an error.
  6337. Use char because int might match the return type of a GCC
  6338. builtin and then its argument prototype would still apply. */
  6339. #ifdef __cplusplus
  6340. extern "C"
  6341. #endif
  6342. char zlibVersion ();
  6343. int
  6344. main ()
  6345. {
  6346. return zlibVersion ();
  6347. ;
  6348. return 0;
  6349. }
  6350. _ACEOF
  6351. if ac_fn_cxx_try_link "$LINENO"; then :
  6352. ac_cv_lib_z_zlibVersion=yes
  6353. else
  6354. ac_cv_lib_z_zlibVersion=no
  6355. fi
  6356. rm -f core conftest.err conftest.$ac_objext \
  6357. conftest$ac_exeext conftest.$ac_ext
  6358. LIBS=$ac_check_lib_save_LIBS
  6359. fi
  6360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5
  6361. $as_echo "$ac_cv_lib_z_zlibVersion" >&6; }
  6362. if test "x$ac_cv_lib_z_zlibVersion" = x""yes; then :
  6363. have_libz=yes
  6364. fi
  6365. if test "x$have_libz" = "xyes"; then
  6366. $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
  6367. LIBZ_LIBS="-L$libz_prefix_lib -lz"
  6368. LIBZ_CPPFLAGS="-I$libz_prefix_include"
  6369. fi
  6370. LIBS=$LIBS_save
  6371. CPPFLAGS=$CPPFLAGS_save
  6372. fi
  6373. # Define variables based on the result of the checks for libraries.
  6374. if test "x$have_libgnutls" = "xyes" || test "x$have_openssl" = "xyes"; then
  6375. $as_echo "#define ENABLE_SSL 1" >>confdefs.h
  6376. if true; then
  6377. ENABLE_SSL_TRUE=
  6378. ENABLE_SSL_FALSE='#'
  6379. else
  6380. ENABLE_SSL_TRUE='#'
  6381. ENABLE_SSL_FALSE=
  6382. fi
  6383. else
  6384. if false; then
  6385. ENABLE_SSL_TRUE=
  6386. ENABLE_SSL_FALSE='#'
  6387. else
  6388. ENABLE_SSL_TRUE='#'
  6389. ENABLE_SSL_FALSE=
  6390. fi
  6391. fi
  6392. if test "x$have_libgnutls" = "xyes" ; then
  6393. HAVE_LIBGNUTLS_TRUE=
  6394. HAVE_LIBGNUTLS_FALSE='#'
  6395. else
  6396. HAVE_LIBGNUTLS_TRUE='#'
  6397. HAVE_LIBGNUTLS_FALSE=
  6398. fi
  6399. if test "x$have_openssl" = "xyes" ; then
  6400. HAVE_LIBSSL_TRUE=
  6401. HAVE_LIBSSL_FALSE='#'
  6402. else
  6403. HAVE_LIBSSL_TRUE='#'
  6404. HAVE_LIBSSL_FALSE=
  6405. fi
  6406. if test "x$have_libgcrypt" = "xyes" || test "x$have_openssl" = "xyes"; then
  6407. $as_echo "#define ENABLE_MESSAGE_DIGEST 1" >>confdefs.h
  6408. if true; then
  6409. ENABLE_MESSAGE_DIGEST_TRUE=
  6410. ENABLE_MESSAGE_DIGEST_FALSE='#'
  6411. else
  6412. ENABLE_MESSAGE_DIGEST_TRUE='#'
  6413. ENABLE_MESSAGE_DIGEST_FALSE=
  6414. fi
  6415. enable_message_digest=yes
  6416. else
  6417. if false; then
  6418. ENABLE_MESSAGE_DIGEST_TRUE=
  6419. ENABLE_MESSAGE_DIGEST_FALSE='#'
  6420. else
  6421. ENABLE_MESSAGE_DIGEST_TRUE='#'
  6422. ENABLE_MESSAGE_DIGEST_FALSE=
  6423. fi
  6424. fi
  6425. if test "x$enable_bittorrent" = "xyes" &&
  6426. test "x$enable_message_digest" = "xyes"; then
  6427. $as_echo "#define ENABLE_BITTORRENT 1" >>confdefs.h
  6428. if true; then
  6429. ENABLE_BITTORRENT_TRUE=
  6430. ENABLE_BITTORRENT_FALSE='#'
  6431. else
  6432. ENABLE_BITTORRENT_TRUE='#'
  6433. ENABLE_BITTORRENT_FALSE=
  6434. fi
  6435. else
  6436. enable_bittorrent=no
  6437. if false; then
  6438. ENABLE_BITTORRENT_TRUE=
  6439. ENABLE_BITTORRENT_FALSE='#'
  6440. else
  6441. ENABLE_BITTORRENT_TRUE='#'
  6442. ENABLE_BITTORRENT_FALSE=
  6443. fi
  6444. fi
  6445. if (test "x$have_libxml2" = "xyes" || test "x$have_libexpat" = "xyes") &&
  6446. test "x$enable_metalink" = "xyes"; then
  6447. $as_echo "#define ENABLE_METALINK 1" >>confdefs.h
  6448. if true; then
  6449. ENABLE_METALINK_TRUE=
  6450. ENABLE_METALINK_FALSE='#'
  6451. else
  6452. ENABLE_METALINK_TRUE='#'
  6453. ENABLE_METALINK_FALSE=
  6454. fi
  6455. else
  6456. enable_metalink=no
  6457. if false; then
  6458. ENABLE_METALINK_TRUE=
  6459. ENABLE_METALINK_FALSE='#'
  6460. else
  6461. ENABLE_METALINK_TRUE='#'
  6462. ENABLE_METALINK_FALSE=
  6463. fi
  6464. fi
  6465. if test "x$enable_metalink" = "xyes" && test "x$have_libxml2" = "xyes"; then
  6466. ENABLE_METALINK_LIBXML2_TRUE=
  6467. ENABLE_METALINK_LIBXML2_FALSE='#'
  6468. else
  6469. ENABLE_METALINK_LIBXML2_TRUE='#'
  6470. ENABLE_METALINK_LIBXML2_FALSE=
  6471. fi
  6472. if test "x$enable_metalink" = "xyes" && test "x$have_libexpat" = "xyes"; then
  6473. ENABLE_METALINK_LIBEXPAT_TRUE=
  6474. ENABLE_METALINK_LIBEXPAT_FALSE='#'
  6475. else
  6476. ENABLE_METALINK_LIBEXPAT_TRUE='#'
  6477. ENABLE_METALINK_LIBEXPAT_FALSE=
  6478. fi
  6479. if test "x$have_libxml2" = "xyes" || test "x$have_libexpat" = "xyes"; then
  6480. enable_xml_rpc=yes
  6481. fi
  6482. if test "x$enable_xml_rpc" = "xyes"; then
  6483. $as_echo "#define ENABLE_XML_RPC 1" >>confdefs.h
  6484. fi
  6485. if test "x$enable_xml_rpc" = "xyes"; then
  6486. ENABLE_XML_RPC_TRUE=
  6487. ENABLE_XML_RPC_FALSE='#'
  6488. else
  6489. ENABLE_XML_RPC_TRUE='#'
  6490. ENABLE_XML_RPC_FALSE=
  6491. fi
  6492. if test "x$have_libxml2" = "xyes"; then
  6493. HAVE_LIBXML2_TRUE=
  6494. HAVE_LIBXML2_FALSE='#'
  6495. else
  6496. HAVE_LIBXML2_TRUE='#'
  6497. HAVE_LIBXML2_FALSE=
  6498. fi
  6499. if test "x$have_libexpat" = "xyes"; then
  6500. HAVE_LIBEXPAT_TRUE=
  6501. HAVE_LIBEXPAT_FALSE='#'
  6502. else
  6503. HAVE_LIBEXPAT_TRUE='#'
  6504. HAVE_LIBEXPAT_FALSE=
  6505. fi
  6506. if test "x$have_libcares" = "xyes"; then
  6507. $as_echo "#define ENABLE_ASYNC_DNS 1" >>confdefs.h
  6508. if true; then
  6509. ENABLE_ASYNC_DNS_TRUE=
  6510. ENABLE_ASYNC_DNS_FALSE='#'
  6511. else
  6512. ENABLE_ASYNC_DNS_TRUE='#'
  6513. ENABLE_ASYNC_DNS_FALSE=
  6514. fi
  6515. else
  6516. if false; then
  6517. ENABLE_ASYNC_DNS_TRUE=
  6518. ENABLE_ASYNC_DNS_FALSE='#'
  6519. else
  6520. ENABLE_ASYNC_DNS_TRUE='#'
  6521. ENABLE_ASYNC_DNS_FALSE=
  6522. fi
  6523. fi
  6524. # Set conditional for libz
  6525. if test "x$have_libz" = "xyes"; then
  6526. HAVE_LIBZ_TRUE=
  6527. HAVE_LIBZ_FALSE='#'
  6528. else
  6529. HAVE_LIBZ_TRUE='#'
  6530. HAVE_LIBZ_FALSE=
  6531. fi
  6532. # Set conditional for sqlite3
  6533. if test "x$have_sqlite3" = "xyes"; then
  6534. HAVE_SQLITE3_TRUE=
  6535. HAVE_SQLITE3_FALSE='#'
  6536. else
  6537. HAVE_SQLITE3_TRUE='#'
  6538. HAVE_SQLITE3_FALSE=
  6539. fi
  6540. # Checks for header files.
  6541. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  6542. # for constant arguments. Useless!
  6543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  6544. $as_echo_n "checking for working alloca.h... " >&6; }
  6545. if test "${ac_cv_working_alloca_h+set}" = set; then :
  6546. $as_echo_n "(cached) " >&6
  6547. else
  6548. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6549. /* end confdefs.h. */
  6550. #include <alloca.h>
  6551. int
  6552. main ()
  6553. {
  6554. char *p = (char *) alloca (2 * sizeof (int));
  6555. if (p) return 0;
  6556. ;
  6557. return 0;
  6558. }
  6559. _ACEOF
  6560. if ac_fn_cxx_try_link "$LINENO"; then :
  6561. ac_cv_working_alloca_h=yes
  6562. else
  6563. ac_cv_working_alloca_h=no
  6564. fi
  6565. rm -f core conftest.err conftest.$ac_objext \
  6566. conftest$ac_exeext conftest.$ac_ext
  6567. fi
  6568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  6569. $as_echo "$ac_cv_working_alloca_h" >&6; }
  6570. if test $ac_cv_working_alloca_h = yes; then
  6571. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  6572. fi
  6573. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  6574. $as_echo_n "checking for alloca... " >&6; }
  6575. if test "${ac_cv_func_alloca_works+set}" = set; then :
  6576. $as_echo_n "(cached) " >&6
  6577. else
  6578. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6579. /* end confdefs.h. */
  6580. #ifdef __GNUC__
  6581. # define alloca __builtin_alloca
  6582. #else
  6583. # ifdef _MSC_VER
  6584. # include <malloc.h>
  6585. # define alloca _alloca
  6586. # else
  6587. # ifdef HAVE_ALLOCA_H
  6588. # include <alloca.h>
  6589. # else
  6590. # ifdef _AIX
  6591. #pragma alloca
  6592. # else
  6593. # ifndef alloca /* predefined by HP cc +Olibcalls */
  6594. char *alloca ();
  6595. # endif
  6596. # endif
  6597. # endif
  6598. # endif
  6599. #endif
  6600. int
  6601. main ()
  6602. {
  6603. char *p = (char *) alloca (1);
  6604. if (p) return 0;
  6605. ;
  6606. return 0;
  6607. }
  6608. _ACEOF
  6609. if ac_fn_cxx_try_link "$LINENO"; then :
  6610. ac_cv_func_alloca_works=yes
  6611. else
  6612. ac_cv_func_alloca_works=no
  6613. fi
  6614. rm -f core conftest.err conftest.$ac_objext \
  6615. conftest$ac_exeext conftest.$ac_ext
  6616. fi
  6617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  6618. $as_echo "$ac_cv_func_alloca_works" >&6; }
  6619. if test $ac_cv_func_alloca_works = yes; then
  6620. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  6621. else
  6622. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  6623. # that cause trouble. Some versions do not even contain alloca or
  6624. # contain a buggy version. If you still want to use their alloca,
  6625. # use ar to extract alloca.o from them instead of compiling alloca.c.
  6626. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  6627. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  6628. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  6629. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  6630. if test "${ac_cv_os_cray+set}" = set; then :
  6631. $as_echo_n "(cached) " >&6
  6632. else
  6633. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6634. /* end confdefs.h. */
  6635. #if defined CRAY && ! defined CRAY2
  6636. webecray
  6637. #else
  6638. wenotbecray
  6639. #endif
  6640. _ACEOF
  6641. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6642. $EGREP "webecray" >/dev/null 2>&1; then :
  6643. ac_cv_os_cray=yes
  6644. else
  6645. ac_cv_os_cray=no
  6646. fi
  6647. rm -f conftest*
  6648. fi
  6649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  6650. $as_echo "$ac_cv_os_cray" >&6; }
  6651. if test $ac_cv_os_cray = yes; then
  6652. for ac_func in _getb67 GETB67 getb67; do
  6653. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6654. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  6655. eval as_val=\$$as_ac_var
  6656. if test "x$as_val" = x""yes; then :
  6657. cat >>confdefs.h <<_ACEOF
  6658. #define CRAY_STACKSEG_END $ac_func
  6659. _ACEOF
  6660. break
  6661. fi
  6662. done
  6663. fi
  6664. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  6665. $as_echo_n "checking stack direction for C alloca... " >&6; }
  6666. if test "${ac_cv_c_stack_direction+set}" = set; then :
  6667. $as_echo_n "(cached) " >&6
  6668. else
  6669. if test "$cross_compiling" = yes; then :
  6670. ac_cv_c_stack_direction=0
  6671. else
  6672. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6673. /* end confdefs.h. */
  6674. $ac_includes_default
  6675. int
  6676. find_stack_direction ()
  6677. {
  6678. static char *addr = 0;
  6679. auto char dummy;
  6680. if (addr == 0)
  6681. {
  6682. addr = &dummy;
  6683. return find_stack_direction ();
  6684. }
  6685. else
  6686. return (&dummy > addr) ? 1 : -1;
  6687. }
  6688. int
  6689. main ()
  6690. {
  6691. return find_stack_direction () < 0;
  6692. }
  6693. _ACEOF
  6694. if ac_fn_cxx_try_run "$LINENO"; then :
  6695. ac_cv_c_stack_direction=1
  6696. else
  6697. ac_cv_c_stack_direction=-1
  6698. fi
  6699. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6700. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6701. fi
  6702. fi
  6703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  6704. $as_echo "$ac_cv_c_stack_direction" >&6; }
  6705. cat >>confdefs.h <<_ACEOF
  6706. #define STACK_DIRECTION $ac_cv_c_stack_direction
  6707. _ACEOF
  6708. fi
  6709. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6710. $as_echo_n "checking for ANSI C header files... " >&6; }
  6711. if test "${ac_cv_header_stdc+set}" = set; then :
  6712. $as_echo_n "(cached) " >&6
  6713. else
  6714. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6715. /* end confdefs.h. */
  6716. #include <stdlib.h>
  6717. #include <stdarg.h>
  6718. #include <string.h>
  6719. #include <float.h>
  6720. int
  6721. main ()
  6722. {
  6723. ;
  6724. return 0;
  6725. }
  6726. _ACEOF
  6727. if ac_fn_cxx_try_compile "$LINENO"; then :
  6728. ac_cv_header_stdc=yes
  6729. else
  6730. ac_cv_header_stdc=no
  6731. fi
  6732. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6733. if test $ac_cv_header_stdc = yes; then
  6734. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6735. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6736. /* end confdefs.h. */
  6737. #include <string.h>
  6738. _ACEOF
  6739. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6740. $EGREP "memchr" >/dev/null 2>&1; then :
  6741. else
  6742. ac_cv_header_stdc=no
  6743. fi
  6744. rm -f conftest*
  6745. fi
  6746. if test $ac_cv_header_stdc = yes; then
  6747. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6748. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6749. /* end confdefs.h. */
  6750. #include <stdlib.h>
  6751. _ACEOF
  6752. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6753. $EGREP "free" >/dev/null 2>&1; then :
  6754. else
  6755. ac_cv_header_stdc=no
  6756. fi
  6757. rm -f conftest*
  6758. fi
  6759. if test $ac_cv_header_stdc = yes; then
  6760. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6761. if test "$cross_compiling" = yes; then :
  6762. :
  6763. else
  6764. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6765. /* end confdefs.h. */
  6766. #include <ctype.h>
  6767. #include <stdlib.h>
  6768. #if ((' ' & 0x0FF) == 0x020)
  6769. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6770. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6771. #else
  6772. # define ISLOWER(c) \
  6773. (('a' <= (c) && (c) <= 'i') \
  6774. || ('j' <= (c) && (c) <= 'r') \
  6775. || ('s' <= (c) && (c) <= 'z'))
  6776. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6777. #endif
  6778. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6779. int
  6780. main ()
  6781. {
  6782. int i;
  6783. for (i = 0; i < 256; i++)
  6784. if (XOR (islower (i), ISLOWER (i))
  6785. || toupper (i) != TOUPPER (i))
  6786. return 2;
  6787. return 0;
  6788. }
  6789. _ACEOF
  6790. if ac_fn_cxx_try_run "$LINENO"; then :
  6791. else
  6792. ac_cv_header_stdc=no
  6793. fi
  6794. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6795. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6796. fi
  6797. fi
  6798. fi
  6799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6800. $as_echo "$ac_cv_header_stdc" >&6; }
  6801. if test $ac_cv_header_stdc = yes; then
  6802. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6803. fi
  6804. case "$target" in
  6805. *mingw*)
  6806. for ac_header in winsock2.h \
  6807. ws2tcpip.h
  6808. do :
  6809. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6810. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  6811. eval as_val=\$$as_ac_Header
  6812. if test "x$as_val" = x""yes; then :
  6813. cat >>confdefs.h <<_ACEOF
  6814. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6815. _ACEOF
  6816. fi
  6817. done
  6818. ;;
  6819. esac
  6820. for ac_header in argz.h \
  6821. arpa/inet.h \
  6822. fcntl.h \
  6823. float.h \
  6824. inttypes.h \
  6825. io.h \
  6826. langinfo.h \
  6827. libintl.h \
  6828. limits.h \
  6829. locale.h \
  6830. malloc.h \
  6831. netdb.h \
  6832. netinet/in.h \
  6833. stddef.h \
  6834. stdint.h \
  6835. stdio_ext.h \
  6836. stdlib.h \
  6837. string.h \
  6838. strings.h \
  6839. sys/ioctl.h \
  6840. sys/param.h \
  6841. sys/socket.h \
  6842. sys/time.h \
  6843. termios.h \
  6844. unistd.h \
  6845. utime.h \
  6846. wchar.h
  6847. do :
  6848. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6849. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  6850. eval as_val=\$$as_ac_Header
  6851. if test "x$as_val" = x""yes; then :
  6852. cat >>confdefs.h <<_ACEOF
  6853. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6854. _ACEOF
  6855. fi
  6856. done
  6857. # Checks for typedefs, structures, and compiler characteristics.
  6858. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
  6859. $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
  6860. if test "${ac_cv_header_stdbool_h+set}" = set; then :
  6861. $as_echo_n "(cached) " >&6
  6862. else
  6863. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6864. /* end confdefs.h. */
  6865. #include <stdbool.h>
  6866. #ifndef bool
  6867. "error: bool is not defined"
  6868. #endif
  6869. #ifndef false
  6870. "error: false is not defined"
  6871. #endif
  6872. #if false
  6873. "error: false is not 0"
  6874. #endif
  6875. #ifndef true
  6876. "error: true is not defined"
  6877. #endif
  6878. #if true != 1
  6879. "error: true is not 1"
  6880. #endif
  6881. #ifndef __bool_true_false_are_defined
  6882. "error: __bool_true_false_are_defined is not defined"
  6883. #endif
  6884. struct s { _Bool s: 1; _Bool t; } s;
  6885. char a[true == 1 ? 1 : -1];
  6886. char b[false == 0 ? 1 : -1];
  6887. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  6888. char d[(bool) 0.5 == true ? 1 : -1];
  6889. bool e = &s;
  6890. char f[(_Bool) 0.0 == false ? 1 : -1];
  6891. char g[true];
  6892. char h[sizeof (_Bool)];
  6893. char i[sizeof s.t];
  6894. enum { j = false, k = true, l = false * true, m = true * 256 };
  6895. /* The following fails for
  6896. HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
  6897. _Bool n[m];
  6898. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  6899. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  6900. # if defined __xlc__ || defined __GNUC__
  6901. /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
  6902. reported by James Lemley on 2005-10-05; see
  6903. http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
  6904. This test is not quite right, since xlc is allowed to
  6905. reject this program, as the initializer for xlcbug is
  6906. not one of the forms that C requires support for.
  6907. However, doing the test right would require a runtime
  6908. test, and that would make cross-compilation harder.
  6909. Let us hope that IBM fixes the xlc bug, and also adds
  6910. support for this kind of constant expression. In the
  6911. meantime, this test will reject xlc, which is OK, since
  6912. our stdbool.h substitute should suffice. We also test
  6913. this with GCC, where it should work, to detect more
  6914. quickly whether someone messes up the test in the
  6915. future. */
  6916. char digs[] = "0123456789";
  6917. int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
  6918. # endif
  6919. /* Catch a bug in an HP-UX C compiler. See
  6920. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  6921. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  6922. */
  6923. _Bool q = true;
  6924. _Bool *pq = &q;
  6925. int
  6926. main ()
  6927. {
  6928. *pq |= q;
  6929. *pq |= ! q;
  6930. /* Refer to every declared value, to avoid compiler optimizations. */
  6931. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  6932. + !m + !n + !o + !p + !q + !pq);
  6933. ;
  6934. return 0;
  6935. }
  6936. _ACEOF
  6937. if ac_fn_cxx_try_compile "$LINENO"; then :
  6938. ac_cv_header_stdbool_h=yes
  6939. else
  6940. ac_cv_header_stdbool_h=no
  6941. fi
  6942. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6943. fi
  6944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
  6945. $as_echo "$ac_cv_header_stdbool_h" >&6; }
  6946. ac_fn_cxx_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
  6947. if test "x$ac_cv_type__Bool" = x""yes; then :
  6948. cat >>confdefs.h <<_ACEOF
  6949. #define HAVE__BOOL 1
  6950. _ACEOF
  6951. fi
  6952. if test $ac_cv_header_stdbool_h = yes; then
  6953. $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
  6954. fi
  6955. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  6956. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  6957. if test "${ac_cv_c_const+set}" = set; then :
  6958. $as_echo_n "(cached) " >&6
  6959. else
  6960. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6961. /* end confdefs.h. */
  6962. int
  6963. main ()
  6964. {
  6965. /* FIXME: Include the comments suggested by Paul. */
  6966. #ifndef __cplusplus
  6967. /* Ultrix mips cc rejects this. */
  6968. typedef int charset[2];
  6969. const charset cs;
  6970. /* SunOS 4.1.1 cc rejects this. */
  6971. char const *const *pcpcc;
  6972. char **ppc;
  6973. /* NEC SVR4.0.2 mips cc rejects this. */
  6974. struct point {int x, y;};
  6975. static struct point const zero = {0,0};
  6976. /* AIX XL C 1.02.0.0 rejects this.
  6977. It does not let you subtract one const X* pointer from another in
  6978. an arm of an if-expression whose if-part is not a constant
  6979. expression */
  6980. const char *g = "string";
  6981. pcpcc = &g + (g ? g-g : 0);
  6982. /* HPUX 7.0 cc rejects these. */
  6983. ++pcpcc;
  6984. ppc = (char**) pcpcc;
  6985. pcpcc = (char const *const *) ppc;
  6986. { /* SCO 3.2v4 cc rejects this. */
  6987. char *t;
  6988. char const *s = 0 ? (char *) 0 : (char const *) 0;
  6989. *t++ = 0;
  6990. if (s) return 0;
  6991. }
  6992. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  6993. int x[] = {25, 17};
  6994. const int *foo = &x[0];
  6995. ++foo;
  6996. }
  6997. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  6998. typedef const int *iptr;
  6999. iptr p = 0;
  7000. ++p;
  7001. }
  7002. { /* AIX XL C 1.02.0.0 rejects this saying
  7003. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  7004. struct s { int j; const int *ap[3]; };
  7005. struct s *b; b->j = 5;
  7006. }
  7007. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  7008. const int foo = 10;
  7009. if (!foo) return 0;
  7010. }
  7011. return !cs[0] && !zero.x;
  7012. #endif
  7013. ;
  7014. return 0;
  7015. }
  7016. _ACEOF
  7017. if ac_fn_cxx_try_compile "$LINENO"; then :
  7018. ac_cv_c_const=yes
  7019. else
  7020. ac_cv_c_const=no
  7021. fi
  7022. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7023. fi
  7024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  7025. $as_echo "$ac_cv_c_const" >&6; }
  7026. if test $ac_cv_c_const = no; then
  7027. $as_echo "#define const /**/" >>confdefs.h
  7028. fi
  7029. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  7030. $as_echo_n "checking for inline... " >&6; }
  7031. if test "${ac_cv_c_inline+set}" = set; then :
  7032. $as_echo_n "(cached) " >&6
  7033. else
  7034. ac_cv_c_inline=no
  7035. for ac_kw in inline __inline__ __inline; do
  7036. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7037. /* end confdefs.h. */
  7038. #ifndef __cplusplus
  7039. typedef int foo_t;
  7040. static $ac_kw foo_t static_foo () {return 0; }
  7041. $ac_kw foo_t foo () {return 0; }
  7042. #endif
  7043. _ACEOF
  7044. if ac_fn_cxx_try_compile "$LINENO"; then :
  7045. ac_cv_c_inline=$ac_kw
  7046. fi
  7047. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7048. test "$ac_cv_c_inline" != no && break
  7049. done
  7050. fi
  7051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  7052. $as_echo "$ac_cv_c_inline" >&6; }
  7053. case $ac_cv_c_inline in
  7054. inline | yes) ;;
  7055. *)
  7056. case $ac_cv_c_inline in
  7057. no) ac_val=;;
  7058. *) ac_val=$ac_cv_c_inline;;
  7059. esac
  7060. cat >>confdefs.h <<_ACEOF
  7061. #ifndef __cplusplus
  7062. #define inline $ac_val
  7063. #endif
  7064. _ACEOF
  7065. ;;
  7066. esac
  7067. ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
  7068. case $ac_cv_c_int16_t in #(
  7069. no|yes) ;; #(
  7070. *)
  7071. cat >>confdefs.h <<_ACEOF
  7072. #define int16_t $ac_cv_c_int16_t
  7073. _ACEOF
  7074. ;;
  7075. esac
  7076. ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
  7077. case $ac_cv_c_int32_t in #(
  7078. no|yes) ;; #(
  7079. *)
  7080. cat >>confdefs.h <<_ACEOF
  7081. #define int32_t $ac_cv_c_int32_t
  7082. _ACEOF
  7083. ;;
  7084. esac
  7085. ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
  7086. case $ac_cv_c_int64_t in #(
  7087. no|yes) ;; #(
  7088. *)
  7089. cat >>confdefs.h <<_ACEOF
  7090. #define int64_t $ac_cv_c_int64_t
  7091. _ACEOF
  7092. ;;
  7093. esac
  7094. ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
  7095. case $ac_cv_c_int8_t in #(
  7096. no|yes) ;; #(
  7097. *)
  7098. cat >>confdefs.h <<_ACEOF
  7099. #define int8_t $ac_cv_c_int8_t
  7100. _ACEOF
  7101. ;;
  7102. esac
  7103. ac_fn_cxx_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
  7104. if test "x$ac_cv_type_mode_t" = x""yes; then :
  7105. else
  7106. cat >>confdefs.h <<_ACEOF
  7107. #define mode_t int
  7108. _ACEOF
  7109. fi
  7110. ac_fn_cxx_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
  7111. if test "x$ac_cv_type_off_t" = x""yes; then :
  7112. else
  7113. cat >>confdefs.h <<_ACEOF
  7114. #define off_t long int
  7115. _ACEOF
  7116. fi
  7117. ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  7118. if test "x$ac_cv_type_size_t" = x""yes; then :
  7119. else
  7120. cat >>confdefs.h <<_ACEOF
  7121. #define size_t unsigned int
  7122. _ACEOF
  7123. fi
  7124. ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
  7125. if test "x$ac_cv_type_ssize_t" = x""yes; then :
  7126. else
  7127. cat >>confdefs.h <<_ACEOF
  7128. #define ssize_t int
  7129. _ACEOF
  7130. fi
  7131. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  7132. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  7133. if test "${ac_cv_header_time+set}" = set; then :
  7134. $as_echo_n "(cached) " >&6
  7135. else
  7136. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7137. /* end confdefs.h. */
  7138. #include <sys/types.h>
  7139. #include <sys/time.h>
  7140. #include <time.h>
  7141. int
  7142. main ()
  7143. {
  7144. if ((struct tm *) 0)
  7145. return 0;
  7146. ;
  7147. return 0;
  7148. }
  7149. _ACEOF
  7150. if ac_fn_cxx_try_compile "$LINENO"; then :
  7151. ac_cv_header_time=yes
  7152. else
  7153. ac_cv_header_time=no
  7154. fi
  7155. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7156. fi
  7157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  7158. $as_echo "$ac_cv_header_time" >&6; }
  7159. if test $ac_cv_header_time = yes; then
  7160. $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  7161. fi
  7162. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  7163. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  7164. if test "${ac_cv_struct_tm+set}" = set; then :
  7165. $as_echo_n "(cached) " >&6
  7166. else
  7167. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7168. /* end confdefs.h. */
  7169. #include <sys/types.h>
  7170. #include <time.h>
  7171. int
  7172. main ()
  7173. {
  7174. struct tm tm;
  7175. int *p = &tm.tm_sec;
  7176. return !p;
  7177. ;
  7178. return 0;
  7179. }
  7180. _ACEOF
  7181. if ac_fn_cxx_try_compile "$LINENO"; then :
  7182. ac_cv_struct_tm=time.h
  7183. else
  7184. ac_cv_struct_tm=sys/time.h
  7185. fi
  7186. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7187. fi
  7188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  7189. $as_echo "$ac_cv_struct_tm" >&6; }
  7190. if test $ac_cv_struct_tm = sys/time.h; then
  7191. $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
  7192. fi
  7193. ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
  7194. case $ac_cv_c_uint16_t in #(
  7195. no|yes) ;; #(
  7196. *)
  7197. cat >>confdefs.h <<_ACEOF
  7198. #define uint16_t $ac_cv_c_uint16_t
  7199. _ACEOF
  7200. ;;
  7201. esac
  7202. ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
  7203. case $ac_cv_c_uint32_t in #(
  7204. no|yes) ;; #(
  7205. *)
  7206. $as_echo "#define _UINT32_T 1" >>confdefs.h
  7207. cat >>confdefs.h <<_ACEOF
  7208. #define uint32_t $ac_cv_c_uint32_t
  7209. _ACEOF
  7210. ;;
  7211. esac
  7212. ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
  7213. case $ac_cv_c_uint64_t in #(
  7214. no|yes) ;; #(
  7215. *)
  7216. $as_echo "#define _UINT64_T 1" >>confdefs.h
  7217. cat >>confdefs.h <<_ACEOF
  7218. #define uint64_t $ac_cv_c_uint64_t
  7219. _ACEOF
  7220. ;;
  7221. esac
  7222. ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
  7223. case $ac_cv_c_uint8_t in #(
  7224. no|yes) ;; #(
  7225. *)
  7226. $as_echo "#define _UINT8_T 1" >>confdefs.h
  7227. cat >>confdefs.h <<_ACEOF
  7228. #define uint8_t $ac_cv_c_uint8_t
  7229. _ACEOF
  7230. ;;
  7231. esac
  7232. ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  7233. if test "x$ac_cv_type_pid_t" = x""yes; then :
  7234. else
  7235. cat >>confdefs.h <<_ACEOF
  7236. #define pid_t int
  7237. _ACEOF
  7238. fi
  7239. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  7240. $as_echo_n "checking for working volatile... " >&6; }
  7241. if test "${ac_cv_c_volatile+set}" = set; then :
  7242. $as_echo_n "(cached) " >&6
  7243. else
  7244. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7245. /* end confdefs.h. */
  7246. int
  7247. main ()
  7248. {
  7249. volatile int x;
  7250. int * volatile y = (int *) 0;
  7251. return !x && !y;
  7252. ;
  7253. return 0;
  7254. }
  7255. _ACEOF
  7256. if ac_fn_cxx_try_compile "$LINENO"; then :
  7257. ac_cv_c_volatile=yes
  7258. else
  7259. ac_cv_c_volatile=no
  7260. fi
  7261. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7262. fi
  7263. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  7264. $as_echo "$ac_cv_c_volatile" >&6; }
  7265. if test $ac_cv_c_volatile = no; then
  7266. $as_echo "#define volatile /**/" >>confdefs.h
  7267. fi
  7268. ac_fn_cxx_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
  7269. if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
  7270. cat >>confdefs.h <<_ACEOF
  7271. #define HAVE_PTRDIFF_T 1
  7272. _ACEOF
  7273. fi
  7274. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  7275. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  7276. if test "${ac_cv_c_bigendian+set}" = set; then :
  7277. $as_echo_n "(cached) " >&6
  7278. else
  7279. ac_cv_c_bigendian=unknown
  7280. # See if we're dealing with a universal compiler.
  7281. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7282. /* end confdefs.h. */
  7283. #ifndef __APPLE_CC__
  7284. not a universal capable compiler
  7285. #endif
  7286. typedef int dummy;
  7287. _ACEOF
  7288. if ac_fn_cxx_try_compile "$LINENO"; then :
  7289. # Check for potential -arch flags. It is not universal unless
  7290. # there are at least two -arch flags with different values.
  7291. ac_arch=
  7292. ac_prev=
  7293. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  7294. if test -n "$ac_prev"; then
  7295. case $ac_word in
  7296. i?86 | x86_64 | ppc | ppc64)
  7297. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  7298. ac_arch=$ac_word
  7299. else
  7300. ac_cv_c_bigendian=universal
  7301. break
  7302. fi
  7303. ;;
  7304. esac
  7305. ac_prev=
  7306. elif test "x$ac_word" = "x-arch"; then
  7307. ac_prev=arch
  7308. fi
  7309. done
  7310. fi
  7311. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7312. if test $ac_cv_c_bigendian = unknown; then
  7313. # See if sys/param.h defines the BYTE_ORDER macro.
  7314. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7315. /* end confdefs.h. */
  7316. #include <sys/types.h>
  7317. #include <sys/param.h>
  7318. int
  7319. main ()
  7320. {
  7321. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  7322. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  7323. && LITTLE_ENDIAN)
  7324. bogus endian macros
  7325. #endif
  7326. ;
  7327. return 0;
  7328. }
  7329. _ACEOF
  7330. if ac_fn_cxx_try_compile "$LINENO"; then :
  7331. # It does; now see whether it defined to BIG_ENDIAN or not.
  7332. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7333. /* end confdefs.h. */
  7334. #include <sys/types.h>
  7335. #include <sys/param.h>
  7336. int
  7337. main ()
  7338. {
  7339. #if BYTE_ORDER != BIG_ENDIAN
  7340. not big endian
  7341. #endif
  7342. ;
  7343. return 0;
  7344. }
  7345. _ACEOF
  7346. if ac_fn_cxx_try_compile "$LINENO"; then :
  7347. ac_cv_c_bigendian=yes
  7348. else
  7349. ac_cv_c_bigendian=no
  7350. fi
  7351. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7352. fi
  7353. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7354. fi
  7355. if test $ac_cv_c_bigendian = unknown; then
  7356. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  7357. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7358. /* end confdefs.h. */
  7359. #include <limits.h>
  7360. int
  7361. main ()
  7362. {
  7363. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  7364. bogus endian macros
  7365. #endif
  7366. ;
  7367. return 0;
  7368. }
  7369. _ACEOF
  7370. if ac_fn_cxx_try_compile "$LINENO"; then :
  7371. # It does; now see whether it defined to _BIG_ENDIAN or not.
  7372. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7373. /* end confdefs.h. */
  7374. #include <limits.h>
  7375. int
  7376. main ()
  7377. {
  7378. #ifndef _BIG_ENDIAN
  7379. not big endian
  7380. #endif
  7381. ;
  7382. return 0;
  7383. }
  7384. _ACEOF
  7385. if ac_fn_cxx_try_compile "$LINENO"; then :
  7386. ac_cv_c_bigendian=yes
  7387. else
  7388. ac_cv_c_bigendian=no
  7389. fi
  7390. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7391. fi
  7392. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7393. fi
  7394. if test $ac_cv_c_bigendian = unknown; then
  7395. # Compile a test program.
  7396. if test "$cross_compiling" = yes; then :
  7397. # Try to guess by grepping values from an object file.
  7398. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7399. /* end confdefs.h. */
  7400. short int ascii_mm[] =
  7401. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  7402. short int ascii_ii[] =
  7403. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  7404. int use_ascii (int i) {
  7405. return ascii_mm[i] + ascii_ii[i];
  7406. }
  7407. short int ebcdic_ii[] =
  7408. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  7409. short int ebcdic_mm[] =
  7410. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  7411. int use_ebcdic (int i) {
  7412. return ebcdic_mm[i] + ebcdic_ii[i];
  7413. }
  7414. extern int foo;
  7415. int
  7416. main ()
  7417. {
  7418. return use_ascii (foo) == use_ebcdic (foo);
  7419. ;
  7420. return 0;
  7421. }
  7422. _ACEOF
  7423. if ac_fn_cxx_try_compile "$LINENO"; then :
  7424. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  7425. ac_cv_c_bigendian=yes
  7426. fi
  7427. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  7428. if test "$ac_cv_c_bigendian" = unknown; then
  7429. ac_cv_c_bigendian=no
  7430. else
  7431. # finding both strings is unlikely to happen, but who knows?
  7432. ac_cv_c_bigendian=unknown
  7433. fi
  7434. fi
  7435. fi
  7436. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7437. else
  7438. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7439. /* end confdefs.h. */
  7440. $ac_includes_default
  7441. int
  7442. main ()
  7443. {
  7444. /* Are we little or big endian? From Harbison&Steele. */
  7445. union
  7446. {
  7447. long int l;
  7448. char c[sizeof (long int)];
  7449. } u;
  7450. u.l = 1;
  7451. return u.c[sizeof (long int) - 1] == 1;
  7452. ;
  7453. return 0;
  7454. }
  7455. _ACEOF
  7456. if ac_fn_cxx_try_run "$LINENO"; then :
  7457. ac_cv_c_bigendian=no
  7458. else
  7459. ac_cv_c_bigendian=yes
  7460. fi
  7461. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7462. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7463. fi
  7464. fi
  7465. fi
  7466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  7467. $as_echo "$ac_cv_c_bigendian" >&6; }
  7468. case $ac_cv_c_bigendian in #(
  7469. yes)
  7470. $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  7471. ;; #(
  7472. no)
  7473. ;; #(
  7474. universal)
  7475. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  7476. ;; #(
  7477. *)
  7478. as_fn_error "unknown endianness
  7479. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  7480. esac
  7481. # Check whether --enable-largefile was given.
  7482. if test "${enable_largefile+set}" = set; then :
  7483. enableval=$enable_largefile;
  7484. fi
  7485. if test "$enable_largefile" != no; then
  7486. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  7487. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  7488. if test "${ac_cv_sys_largefile_CC+set}" = set; then :
  7489. $as_echo_n "(cached) " >&6
  7490. else
  7491. ac_cv_sys_largefile_CC=no
  7492. if test "$GCC" != yes; then
  7493. ac_save_CC=$CC
  7494. while :; do
  7495. # IRIX 6.2 and later do not support large files by default,
  7496. # so use the C compiler's -n32 option if that helps.
  7497. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7498. /* end confdefs.h. */
  7499. #include <sys/types.h>
  7500. /* Check that off_t can represent 2**63 - 1 correctly.
  7501. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7502. since some C++ compilers masquerading as C compilers
  7503. incorrectly reject 9223372036854775807. */
  7504. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7505. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7506. && LARGE_OFF_T % 2147483647 == 1)
  7507. ? 1 : -1];
  7508. int
  7509. main ()
  7510. {
  7511. ;
  7512. return 0;
  7513. }
  7514. _ACEOF
  7515. if ac_fn_cxx_try_compile "$LINENO"; then :
  7516. break
  7517. fi
  7518. rm -f core conftest.err conftest.$ac_objext
  7519. CC="$CC -n32"
  7520. if ac_fn_cxx_try_compile "$LINENO"; then :
  7521. ac_cv_sys_largefile_CC=' -n32'; break
  7522. fi
  7523. rm -f core conftest.err conftest.$ac_objext
  7524. break
  7525. done
  7526. CC=$ac_save_CC
  7527. rm -f conftest.$ac_ext
  7528. fi
  7529. fi
  7530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  7531. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  7532. if test "$ac_cv_sys_largefile_CC" != no; then
  7533. CC=$CC$ac_cv_sys_largefile_CC
  7534. fi
  7535. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  7536. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  7537. if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
  7538. $as_echo_n "(cached) " >&6
  7539. else
  7540. while :; do
  7541. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7542. /* end confdefs.h. */
  7543. #include <sys/types.h>
  7544. /* Check that off_t can represent 2**63 - 1 correctly.
  7545. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7546. since some C++ compilers masquerading as C compilers
  7547. incorrectly reject 9223372036854775807. */
  7548. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7549. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7550. && LARGE_OFF_T % 2147483647 == 1)
  7551. ? 1 : -1];
  7552. int
  7553. main ()
  7554. {
  7555. ;
  7556. return 0;
  7557. }
  7558. _ACEOF
  7559. if ac_fn_cxx_try_compile "$LINENO"; then :
  7560. ac_cv_sys_file_offset_bits=no; break
  7561. fi
  7562. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7563. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7564. /* end confdefs.h. */
  7565. #define _FILE_OFFSET_BITS 64
  7566. #include <sys/types.h>
  7567. /* Check that off_t can represent 2**63 - 1 correctly.
  7568. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7569. since some C++ compilers masquerading as C compilers
  7570. incorrectly reject 9223372036854775807. */
  7571. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7572. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7573. && LARGE_OFF_T % 2147483647 == 1)
  7574. ? 1 : -1];
  7575. int
  7576. main ()
  7577. {
  7578. ;
  7579. return 0;
  7580. }
  7581. _ACEOF
  7582. if ac_fn_cxx_try_compile "$LINENO"; then :
  7583. ac_cv_sys_file_offset_bits=64; break
  7584. fi
  7585. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7586. ac_cv_sys_file_offset_bits=unknown
  7587. break
  7588. done
  7589. fi
  7590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  7591. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  7592. case $ac_cv_sys_file_offset_bits in #(
  7593. no | unknown) ;;
  7594. *)
  7595. cat >>confdefs.h <<_ACEOF
  7596. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  7597. _ACEOF
  7598. ;;
  7599. esac
  7600. rm -rf conftest*
  7601. if test $ac_cv_sys_file_offset_bits = unknown; then
  7602. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  7603. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  7604. if test "${ac_cv_sys_large_files+set}" = set; then :
  7605. $as_echo_n "(cached) " >&6
  7606. else
  7607. while :; do
  7608. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7609. /* end confdefs.h. */
  7610. #include <sys/types.h>
  7611. /* Check that off_t can represent 2**63 - 1 correctly.
  7612. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7613. since some C++ compilers masquerading as C compilers
  7614. incorrectly reject 9223372036854775807. */
  7615. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7616. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7617. && LARGE_OFF_T % 2147483647 == 1)
  7618. ? 1 : -1];
  7619. int
  7620. main ()
  7621. {
  7622. ;
  7623. return 0;
  7624. }
  7625. _ACEOF
  7626. if ac_fn_cxx_try_compile "$LINENO"; then :
  7627. ac_cv_sys_large_files=no; break
  7628. fi
  7629. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7630. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7631. /* end confdefs.h. */
  7632. #define _LARGE_FILES 1
  7633. #include <sys/types.h>
  7634. /* Check that off_t can represent 2**63 - 1 correctly.
  7635. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7636. since some C++ compilers masquerading as C compilers
  7637. incorrectly reject 9223372036854775807. */
  7638. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7639. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7640. && LARGE_OFF_T % 2147483647 == 1)
  7641. ? 1 : -1];
  7642. int
  7643. main ()
  7644. {
  7645. ;
  7646. return 0;
  7647. }
  7648. _ACEOF
  7649. if ac_fn_cxx_try_compile "$LINENO"; then :
  7650. ac_cv_sys_large_files=1; break
  7651. fi
  7652. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7653. ac_cv_sys_large_files=unknown
  7654. break
  7655. done
  7656. fi
  7657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  7658. $as_echo "$ac_cv_sys_large_files" >&6; }
  7659. case $ac_cv_sys_large_files in #(
  7660. no | unknown) ;;
  7661. *)
  7662. cat >>confdefs.h <<_ACEOF
  7663. #define _LARGE_FILES $ac_cv_sys_large_files
  7664. _ACEOF
  7665. ;;
  7666. esac
  7667. rm -rf conftest*
  7668. fi
  7669. fi
  7670. # Checks for library functions.
  7671. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
  7672. $as_echo_n "checking whether NLS is requested... " >&6; }
  7673. # Check whether --enable-nls was given.
  7674. if test "${enable_nls+set}" = set; then :
  7675. enableval=$enable_nls; USE_NLS=$enableval
  7676. else
  7677. USE_NLS=yes
  7678. fi
  7679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
  7680. $as_echo "$USE_NLS" >&6; }
  7681. GETTEXT_MACRO_VERSION=0.17
  7682. # Prepare PATH_SEPARATOR.
  7683. # The user is always right.
  7684. if test "${PATH_SEPARATOR+set}" != set; then
  7685. echo "#! /bin/sh" >conf$$.sh
  7686. echo "exit 0" >>conf$$.sh
  7687. chmod +x conf$$.sh
  7688. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  7689. PATH_SEPARATOR=';'
  7690. else
  7691. PATH_SEPARATOR=:
  7692. fi
  7693. rm -f conf$$.sh
  7694. fi
  7695. # Find out how to test for executable files. Don't use a zero-byte file,
  7696. # as systems may use methods other than mode bits to determine executability.
  7697. cat >conf$$.file <<_ASEOF
  7698. #! /bin/sh
  7699. exit 0
  7700. _ASEOF
  7701. chmod +x conf$$.file
  7702. if test -x conf$$.file >/dev/null 2>&1; then
  7703. ac_executable_p="test -x"
  7704. else
  7705. ac_executable_p="test -f"
  7706. fi
  7707. rm -f conf$$.file
  7708. # Extract the first word of "msgfmt", so it can be a program name with args.
  7709. set dummy msgfmt; ac_word=$2
  7710. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7711. $as_echo_n "checking for $ac_word... " >&6; }
  7712. if test "${ac_cv_path_MSGFMT+set}" = set; then :
  7713. $as_echo_n "(cached) " >&6
  7714. else
  7715. case "$MSGFMT" in
  7716. [\\/]* | ?:[\\/]*)
  7717. ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  7718. ;;
  7719. *)
  7720. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  7721. for ac_dir in $PATH; do
  7722. IFS="$ac_save_IFS"
  7723. test -z "$ac_dir" && ac_dir=.
  7724. for ac_exec_ext in '' $ac_executable_extensions; do
  7725. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  7726. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  7727. if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
  7728. (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  7729. ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
  7730. break 2
  7731. fi
  7732. fi
  7733. done
  7734. done
  7735. IFS="$ac_save_IFS"
  7736. test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
  7737. ;;
  7738. esac
  7739. fi
  7740. MSGFMT="$ac_cv_path_MSGFMT"
  7741. if test "$MSGFMT" != ":"; then
  7742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
  7743. $as_echo "$MSGFMT" >&6; }
  7744. else
  7745. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7746. $as_echo "no" >&6; }
  7747. fi
  7748. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  7749. set dummy gmsgfmt; ac_word=$2
  7750. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7751. $as_echo_n "checking for $ac_word... " >&6; }
  7752. if test "${ac_cv_path_GMSGFMT+set}" = set; then :
  7753. $as_echo_n "(cached) " >&6
  7754. else
  7755. case $GMSGFMT in
  7756. [\\/]* | ?:[\\/]*)
  7757. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  7758. ;;
  7759. *)
  7760. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7761. for as_dir in $PATH
  7762. do
  7763. IFS=$as_save_IFS
  7764. test -z "$as_dir" && as_dir=.
  7765. for ac_exec_ext in '' $ac_executable_extensions; do
  7766. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7767. ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  7768. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7769. break 2
  7770. fi
  7771. done
  7772. done
  7773. IFS=$as_save_IFS
  7774. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  7775. ;;
  7776. esac
  7777. fi
  7778. GMSGFMT=$ac_cv_path_GMSGFMT
  7779. if test -n "$GMSGFMT"; then
  7780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
  7781. $as_echo "$GMSGFMT" >&6; }
  7782. else
  7783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7784. $as_echo "no" >&6; }
  7785. fi
  7786. case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  7787. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
  7788. *) MSGFMT_015=$MSGFMT ;;
  7789. esac
  7790. case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  7791. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
  7792. *) GMSGFMT_015=$GMSGFMT ;;
  7793. esac
  7794. # Prepare PATH_SEPARATOR.
  7795. # The user is always right.
  7796. if test "${PATH_SEPARATOR+set}" != set; then
  7797. echo "#! /bin/sh" >conf$$.sh
  7798. echo "exit 0" >>conf$$.sh
  7799. chmod +x conf$$.sh
  7800. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  7801. PATH_SEPARATOR=';'
  7802. else
  7803. PATH_SEPARATOR=:
  7804. fi
  7805. rm -f conf$$.sh
  7806. fi
  7807. # Find out how to test for executable files. Don't use a zero-byte file,
  7808. # as systems may use methods other than mode bits to determine executability.
  7809. cat >conf$$.file <<_ASEOF
  7810. #! /bin/sh
  7811. exit 0
  7812. _ASEOF
  7813. chmod +x conf$$.file
  7814. if test -x conf$$.file >/dev/null 2>&1; then
  7815. ac_executable_p="test -x"
  7816. else
  7817. ac_executable_p="test -f"
  7818. fi
  7819. rm -f conf$$.file
  7820. # Extract the first word of "xgettext", so it can be a program name with args.
  7821. set dummy xgettext; ac_word=$2
  7822. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7823. $as_echo_n "checking for $ac_word... " >&6; }
  7824. if test "${ac_cv_path_XGETTEXT+set}" = set; then :
  7825. $as_echo_n "(cached) " >&6
  7826. else
  7827. case "$XGETTEXT" in
  7828. [\\/]* | ?:[\\/]*)
  7829. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  7830. ;;
  7831. *)
  7832. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  7833. for ac_dir in $PATH; do
  7834. IFS="$ac_save_IFS"
  7835. test -z "$ac_dir" && ac_dir=.
  7836. for ac_exec_ext in '' $ac_executable_extensions; do
  7837. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  7838. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  7839. if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
  7840. (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
  7841. ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
  7842. break 2
  7843. fi
  7844. fi
  7845. done
  7846. done
  7847. IFS="$ac_save_IFS"
  7848. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  7849. ;;
  7850. esac
  7851. fi
  7852. XGETTEXT="$ac_cv_path_XGETTEXT"
  7853. if test "$XGETTEXT" != ":"; then
  7854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
  7855. $as_echo "$XGETTEXT" >&6; }
  7856. else
  7857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7858. $as_echo "no" >&6; }
  7859. fi
  7860. rm -f messages.po
  7861. case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  7862. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
  7863. *) XGETTEXT_015=$XGETTEXT ;;
  7864. esac
  7865. # Prepare PATH_SEPARATOR.
  7866. # The user is always right.
  7867. if test "${PATH_SEPARATOR+set}" != set; then
  7868. echo "#! /bin/sh" >conf$$.sh
  7869. echo "exit 0" >>conf$$.sh
  7870. chmod +x conf$$.sh
  7871. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  7872. PATH_SEPARATOR=';'
  7873. else
  7874. PATH_SEPARATOR=:
  7875. fi
  7876. rm -f conf$$.sh
  7877. fi
  7878. # Find out how to test for executable files. Don't use a zero-byte file,
  7879. # as systems may use methods other than mode bits to determine executability.
  7880. cat >conf$$.file <<_ASEOF
  7881. #! /bin/sh
  7882. exit 0
  7883. _ASEOF
  7884. chmod +x conf$$.file
  7885. if test -x conf$$.file >/dev/null 2>&1; then
  7886. ac_executable_p="test -x"
  7887. else
  7888. ac_executable_p="test -f"
  7889. fi
  7890. rm -f conf$$.file
  7891. # Extract the first word of "msgmerge", so it can be a program name with args.
  7892. set dummy msgmerge; ac_word=$2
  7893. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7894. $as_echo_n "checking for $ac_word... " >&6; }
  7895. if test "${ac_cv_path_MSGMERGE+set}" = set; then :
  7896. $as_echo_n "(cached) " >&6
  7897. else
  7898. case "$MSGMERGE" in
  7899. [\\/]* | ?:[\\/]*)
  7900. ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  7901. ;;
  7902. *)
  7903. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  7904. for ac_dir in $PATH; do
  7905. IFS="$ac_save_IFS"
  7906. test -z "$ac_dir" && ac_dir=.
  7907. for ac_exec_ext in '' $ac_executable_extensions; do
  7908. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  7909. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  7910. if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
  7911. ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
  7912. break 2
  7913. fi
  7914. fi
  7915. done
  7916. done
  7917. IFS="$ac_save_IFS"
  7918. test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
  7919. ;;
  7920. esac
  7921. fi
  7922. MSGMERGE="$ac_cv_path_MSGMERGE"
  7923. if test "$MSGMERGE" != ":"; then
  7924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
  7925. $as_echo "$MSGMERGE" >&6; }
  7926. else
  7927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7928. $as_echo "no" >&6; }
  7929. fi
  7930. test -n "$localedir" || localedir='${datadir}/locale'
  7931. test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
  7932. ac_config_commands="$ac_config_commands po-directories"
  7933. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
  7934. $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
  7935. if test "${ac_cv_gnu_library_2+set}" = set; then :
  7936. $as_echo_n "(cached) " >&6
  7937. else
  7938. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7939. /* end confdefs.h. */
  7940. #include <features.h>
  7941. #ifdef __GNU_LIBRARY__
  7942. #if (__GLIBC__ >= 2)
  7943. Lucky GNU user
  7944. #endif
  7945. #endif
  7946. _ACEOF
  7947. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7948. $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
  7949. ac_cv_gnu_library_2=yes
  7950. else
  7951. ac_cv_gnu_library_2=no
  7952. fi
  7953. rm -f conftest*
  7954. fi
  7955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
  7956. $as_echo "$ac_cv_gnu_library_2" >&6; }
  7957. GLIBC2="$ac_cv_gnu_library_2"
  7958. CFLAG_VISIBILITY=
  7959. HAVE_VISIBILITY=0
  7960. if test -n "$GCC"; then
  7961. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
  7962. $as_echo_n "checking for simple visibility declarations... " >&6; }
  7963. if test "${gl_cv_cc_visibility+set}" = set; then :
  7964. $as_echo_n "(cached) " >&6
  7965. else
  7966. gl_save_CFLAGS="$CFLAGS"
  7967. CFLAGS="$CFLAGS -fvisibility=hidden"
  7968. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7969. /* end confdefs.h. */
  7970. extern __attribute__((__visibility__("hidden"))) int hiddenvar;
  7971. extern __attribute__((__visibility__("default"))) int exportedvar;
  7972. extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
  7973. extern __attribute__((__visibility__("default"))) int exportedfunc (void);
  7974. int
  7975. main ()
  7976. {
  7977. ;
  7978. return 0;
  7979. }
  7980. _ACEOF
  7981. if ac_fn_cxx_try_compile "$LINENO"; then :
  7982. gl_cv_cc_visibility=yes
  7983. else
  7984. gl_cv_cc_visibility=no
  7985. fi
  7986. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7987. CFLAGS="$gl_save_CFLAGS"
  7988. fi
  7989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
  7990. $as_echo "$gl_cv_cc_visibility" >&6; }
  7991. if test $gl_cv_cc_visibility = yes; then
  7992. CFLAG_VISIBILITY="-fvisibility=hidden"
  7993. HAVE_VISIBILITY=1
  7994. fi
  7995. fi
  7996. cat >>confdefs.h <<_ACEOF
  7997. #define HAVE_VISIBILITY $HAVE_VISIBILITY
  7998. _ACEOF
  7999. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
  8000. $as_echo_n "checking for stdint.h... " >&6; }
  8001. if test "${gl_cv_header_stdint_h+set}" = set; then :
  8002. $as_echo_n "(cached) " >&6
  8003. else
  8004. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8005. /* end confdefs.h. */
  8006. #include <sys/types.h>
  8007. #include <stdint.h>
  8008. int
  8009. main ()
  8010. {
  8011. uintmax_t i = (uintmax_t) -1; return !i;
  8012. ;
  8013. return 0;
  8014. }
  8015. _ACEOF
  8016. if ac_fn_cxx_try_compile "$LINENO"; then :
  8017. gl_cv_header_stdint_h=yes
  8018. else
  8019. gl_cv_header_stdint_h=no
  8020. fi
  8021. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8022. fi
  8023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
  8024. $as_echo "$gl_cv_header_stdint_h" >&6; }
  8025. if test $gl_cv_header_stdint_h = yes; then
  8026. cat >>confdefs.h <<_ACEOF
  8027. #define HAVE_STDINT_H_WITH_UINTMAX 1
  8028. _ACEOF
  8029. fi
  8030. for ac_header in stdlib.h unistd.h
  8031. do :
  8032. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8033. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  8034. eval as_val=\$$as_ac_Header
  8035. if test "x$as_val" = x""yes; then :
  8036. cat >>confdefs.h <<_ACEOF
  8037. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8038. _ACEOF
  8039. fi
  8040. done
  8041. for ac_func in getpagesize
  8042. do :
  8043. ac_fn_cxx_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  8044. if test "x$ac_cv_func_getpagesize" = x""yes; then :
  8045. cat >>confdefs.h <<_ACEOF
  8046. #define HAVE_GETPAGESIZE 1
  8047. _ACEOF
  8048. fi
  8049. done
  8050. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  8051. $as_echo_n "checking for working mmap... " >&6; }
  8052. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
  8053. $as_echo_n "(cached) " >&6
  8054. else
  8055. if test "$cross_compiling" = yes; then :
  8056. ac_cv_func_mmap_fixed_mapped=no
  8057. else
  8058. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8059. /* end confdefs.h. */
  8060. $ac_includes_default
  8061. /* malloc might have been renamed as rpl_malloc. */
  8062. #undef malloc
  8063. /* Thanks to Mike Haertel and Jim Avera for this test.
  8064. Here is a matrix of mmap possibilities:
  8065. mmap private not fixed
  8066. mmap private fixed at somewhere currently unmapped
  8067. mmap private fixed at somewhere already mapped
  8068. mmap shared not fixed
  8069. mmap shared fixed at somewhere currently unmapped
  8070. mmap shared fixed at somewhere already mapped
  8071. For private mappings, we should verify that changes cannot be read()
  8072. back from the file, nor mmap's back from the file at a different
  8073. address. (There have been systems where private was not correctly
  8074. implemented like the infamous i386 svr4.0, and systems where the
  8075. VM page cache was not coherent with the file system buffer cache
  8076. like early versions of FreeBSD and possibly contemporary NetBSD.)
  8077. For shared mappings, we should conversely verify that changes get
  8078. propagated back to all the places they're supposed to be.
  8079. Grep wants private fixed already mapped.
  8080. The main things grep needs to know about mmap are:
  8081. * does it exist and is it safe to write into the mmap'd area
  8082. * how to use it (BSD variants) */
  8083. #include <fcntl.h>
  8084. #include <sys/mman.h>
  8085. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  8086. char *malloc ();
  8087. #endif
  8088. /* This mess was copied from the GNU getpagesize.h. */
  8089. #ifndef HAVE_GETPAGESIZE
  8090. /* Assume that all systems that can run configure have sys/param.h. */
  8091. # ifndef HAVE_SYS_PARAM_H
  8092. # define HAVE_SYS_PARAM_H 1
  8093. # endif
  8094. # ifdef _SC_PAGESIZE
  8095. # define getpagesize() sysconf(_SC_PAGESIZE)
  8096. # else /* no _SC_PAGESIZE */
  8097. # ifdef HAVE_SYS_PARAM_H
  8098. # include <sys/param.h>
  8099. # ifdef EXEC_PAGESIZE
  8100. # define getpagesize() EXEC_PAGESIZE
  8101. # else /* no EXEC_PAGESIZE */
  8102. # ifdef NBPG
  8103. # define getpagesize() NBPG * CLSIZE
  8104. # ifndef CLSIZE
  8105. # define CLSIZE 1
  8106. # endif /* no CLSIZE */
  8107. # else /* no NBPG */
  8108. # ifdef NBPC
  8109. # define getpagesize() NBPC
  8110. # else /* no NBPC */
  8111. # ifdef PAGESIZE
  8112. # define getpagesize() PAGESIZE
  8113. # endif /* PAGESIZE */
  8114. # endif /* no NBPC */
  8115. # endif /* no NBPG */
  8116. # endif /* no EXEC_PAGESIZE */
  8117. # else /* no HAVE_SYS_PARAM_H */
  8118. # define getpagesize() 8192 /* punt totally */
  8119. # endif /* no HAVE_SYS_PARAM_H */
  8120. # endif /* no _SC_PAGESIZE */
  8121. #endif /* no HAVE_GETPAGESIZE */
  8122. int
  8123. main ()
  8124. {
  8125. char *data, *data2, *data3;
  8126. int i, pagesize;
  8127. int fd;
  8128. pagesize = getpagesize ();
  8129. /* First, make a file with some known garbage in it. */
  8130. data = (char *) malloc (pagesize);
  8131. if (!data)
  8132. return 1;
  8133. for (i = 0; i < pagesize; ++i)
  8134. *(data + i) = rand ();
  8135. umask (0);
  8136. fd = creat ("conftest.mmap", 0600);
  8137. if (fd < 0)
  8138. return 1;
  8139. if (write (fd, data, pagesize) != pagesize)
  8140. return 1;
  8141. close (fd);
  8142. /* Next, try to mmap the file at a fixed address which already has
  8143. something else allocated at it. If we can, also make sure that
  8144. we see the same garbage. */
  8145. fd = open ("conftest.mmap", O_RDWR);
  8146. if (fd < 0)
  8147. return 1;
  8148. data2 = (char *) malloc (2 * pagesize);
  8149. if (!data2)
  8150. return 1;
  8151. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  8152. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  8153. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  8154. return 1;
  8155. for (i = 0; i < pagesize; ++i)
  8156. if (*(data + i) != *(data2 + i))
  8157. return 1;
  8158. /* Finally, make sure that changes to the mapped area do not
  8159. percolate back to the file as seen by read(). (This is a bug on
  8160. some variants of i386 svr4.0.) */
  8161. for (i = 0; i < pagesize; ++i)
  8162. *(data2 + i) = *(data2 + i) + 1;
  8163. data3 = (char *) malloc (pagesize);
  8164. if (!data3)
  8165. return 1;
  8166. if (read (fd, data3, pagesize) != pagesize)
  8167. return 1;
  8168. for (i = 0; i < pagesize; ++i)
  8169. if (*(data + i) != *(data3 + i))
  8170. return 1;
  8171. close (fd);
  8172. return 0;
  8173. }
  8174. _ACEOF
  8175. if ac_fn_cxx_try_run "$LINENO"; then :
  8176. ac_cv_func_mmap_fixed_mapped=yes
  8177. else
  8178. ac_cv_func_mmap_fixed_mapped=no
  8179. fi
  8180. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  8181. conftest.$ac_objext conftest.beam conftest.$ac_ext
  8182. fi
  8183. fi
  8184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  8185. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  8186. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  8187. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  8188. fi
  8189. rm -f conftest.mmap
  8190. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
  8191. $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
  8192. if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
  8193. $as_echo_n "(cached) " >&6
  8194. else
  8195. gt_cv_int_divbyzero_sigfpe=
  8196. case "$host_os" in
  8197. macos* | darwin[6-9]* | darwin[1-9][0-9]*)
  8198. # On MacOS X 10.2 or newer, just assume the same as when cross-
  8199. # compiling. If we were to perform the real test, 1 Crash Report
  8200. # dialog window would pop up.
  8201. case "$host_cpu" in
  8202. i[34567]86 | x86_64)
  8203. gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
  8204. esac
  8205. ;;
  8206. esac
  8207. if test -z "$gt_cv_int_divbyzero_sigfpe"; then
  8208. if test "$cross_compiling" = yes; then :
  8209. # Guess based on the CPU.
  8210. case "$host_cpu" in
  8211. alpha* | i[34567]86 | x86_64 | m68k | s390*)
  8212. gt_cv_int_divbyzero_sigfpe="guessing yes";;
  8213. *)
  8214. gt_cv_int_divbyzero_sigfpe="guessing no";;
  8215. esac
  8216. else
  8217. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8218. /* end confdefs.h. */
  8219. #include <stdlib.h>
  8220. #include <signal.h>
  8221. static void
  8222. sigfpe_handler (int sig)
  8223. {
  8224. /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
  8225. exit (sig != SIGFPE);
  8226. }
  8227. int x = 1;
  8228. int y = 0;
  8229. int z;
  8230. int nan;
  8231. int main ()
  8232. {
  8233. signal (SIGFPE, sigfpe_handler);
  8234. /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
  8235. #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
  8236. signal (SIGTRAP, sigfpe_handler);
  8237. #endif
  8238. /* Linux/SPARC yields signal SIGILL. */
  8239. #if defined (__sparc__) && defined (__linux__)
  8240. signal (SIGILL, sigfpe_handler);
  8241. #endif
  8242. z = x / y;
  8243. nan = y / y;
  8244. exit (1);
  8245. }
  8246. _ACEOF
  8247. if ac_fn_cxx_try_run "$LINENO"; then :
  8248. gt_cv_int_divbyzero_sigfpe=yes
  8249. else
  8250. gt_cv_int_divbyzero_sigfpe=no
  8251. fi
  8252. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  8253. conftest.$ac_objext conftest.beam conftest.$ac_ext
  8254. fi
  8255. fi
  8256. fi
  8257. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
  8258. $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
  8259. case "$gt_cv_int_divbyzero_sigfpe" in
  8260. *yes) value=1;;
  8261. *) value=0;;
  8262. esac
  8263. cat >>confdefs.h <<_ACEOF
  8264. #define INTDIV0_RAISES_SIGFPE $value
  8265. _ACEOF
  8266. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
  8267. $as_echo_n "checking for inttypes.h... " >&6; }
  8268. if test "${gl_cv_header_inttypes_h+set}" = set; then :
  8269. $as_echo_n "(cached) " >&6
  8270. else
  8271. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8272. /* end confdefs.h. */
  8273. #include <sys/types.h>
  8274. #include <inttypes.h>
  8275. int
  8276. main ()
  8277. {
  8278. uintmax_t i = (uintmax_t) -1; return !i;
  8279. ;
  8280. return 0;
  8281. }
  8282. _ACEOF
  8283. if ac_fn_cxx_try_compile "$LINENO"; then :
  8284. gl_cv_header_inttypes_h=yes
  8285. else
  8286. gl_cv_header_inttypes_h=no
  8287. fi
  8288. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8289. fi
  8290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
  8291. $as_echo "$gl_cv_header_inttypes_h" >&6; }
  8292. if test $gl_cv_header_inttypes_h = yes; then
  8293. cat >>confdefs.h <<_ACEOF
  8294. #define HAVE_INTTYPES_H_WITH_UINTMAX 1
  8295. _ACEOF
  8296. fi
  8297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
  8298. $as_echo_n "checking for unsigned long long int... " >&6; }
  8299. if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
  8300. $as_echo_n "(cached) " >&6
  8301. else
  8302. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8303. /* end confdefs.h. */
  8304. /* Test preprocessor. */
  8305. #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  8306. error in preprocessor;
  8307. #endif
  8308. #if ! (18446744073709551615ULL <= -1ull)
  8309. error in preprocessor;
  8310. #endif
  8311. /* Test literals. */
  8312. long long int ll = 9223372036854775807ll;
  8313. long long int nll = -9223372036854775807LL;
  8314. unsigned long long int ull = 18446744073709551615ULL;
  8315. /* Test constant expressions. */
  8316. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  8317. ? 1 : -1)];
  8318. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  8319. ? 1 : -1)];
  8320. int i = 63;
  8321. int
  8322. main ()
  8323. {
  8324. /* Test availability of runtime routines for shift and division. */
  8325. long long int llmax = 9223372036854775807ll;
  8326. unsigned long long int ullmax = 18446744073709551615ull;
  8327. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  8328. | (llmax / ll) | (llmax % ll)
  8329. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  8330. | (ullmax / ull) | (ullmax % ull));
  8331. ;
  8332. return 0;
  8333. }
  8334. _ACEOF
  8335. if ac_fn_cxx_try_link "$LINENO"; then :
  8336. ac_cv_type_unsigned_long_long_int=yes
  8337. else
  8338. ac_cv_type_unsigned_long_long_int=no
  8339. fi
  8340. rm -f core conftest.err conftest.$ac_objext \
  8341. conftest$ac_exeext conftest.$ac_ext
  8342. fi
  8343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
  8344. $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
  8345. if test $ac_cv_type_unsigned_long_long_int = yes; then
  8346. $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
  8347. fi
  8348. if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
  8349. test $ac_cv_type_unsigned_long_long_int = yes \
  8350. && ac_type='unsigned long long' \
  8351. || ac_type='unsigned long'
  8352. cat >>confdefs.h <<_ACEOF
  8353. #define uintmax_t $ac_type
  8354. _ACEOF
  8355. else
  8356. $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
  8357. fi
  8358. for ac_header in inttypes.h
  8359. do :
  8360. ac_fn_cxx_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
  8361. if test "x$ac_cv_header_inttypes_h" = x""yes; then :
  8362. cat >>confdefs.h <<_ACEOF
  8363. #define HAVE_INTTYPES_H 1
  8364. _ACEOF
  8365. fi
  8366. done
  8367. if test $ac_cv_header_inttypes_h = yes; then
  8368. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
  8369. $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
  8370. if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
  8371. $as_echo_n "(cached) " >&6
  8372. else
  8373. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8374. /* end confdefs.h. */
  8375. #include <inttypes.h>
  8376. #ifdef PRId32
  8377. char *p = PRId32;
  8378. #endif
  8379. int
  8380. main ()
  8381. {
  8382. ;
  8383. return 0;
  8384. }
  8385. _ACEOF
  8386. if ac_fn_cxx_try_compile "$LINENO"; then :
  8387. gt_cv_inttypes_pri_broken=no
  8388. else
  8389. gt_cv_inttypes_pri_broken=yes
  8390. fi
  8391. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8392. fi
  8393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
  8394. $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
  8395. fi
  8396. if test "$gt_cv_inttypes_pri_broken" = yes; then
  8397. cat >>confdefs.h <<_ACEOF
  8398. #define PRI_MACROS_BROKEN 1
  8399. _ACEOF
  8400. PRI_MACROS_BROKEN=1
  8401. else
  8402. PRI_MACROS_BROKEN=0
  8403. fi
  8404. # Check whether --enable-threads was given.
  8405. if test "${enable_threads+set}" = set; then :
  8406. enableval=$enable_threads; gl_use_threads=$enableval
  8407. else
  8408. case "$host_os" in
  8409. osf*) gl_use_threads=no ;;
  8410. *) gl_use_threads=yes ;;
  8411. esac
  8412. fi
  8413. if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
  8414. # For using <pthread.h>:
  8415. case "$host_os" in
  8416. osf*)
  8417. # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
  8418. # groks <pthread.h>. cc also understands the flag -pthread, but
  8419. # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
  8420. # 2. putting a flag into CPPFLAGS that has an effect on the linker
  8421. # causes the AC_TRY_LINK test below to succeed unexpectedly,
  8422. # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
  8423. CPPFLAGS="$CPPFLAGS -D_REENTRANT"
  8424. ;;
  8425. esac
  8426. # Some systems optimize for single-threaded programs by default, and
  8427. # need special flags to disable these optimizations. For example, the
  8428. # definition of 'errno' in <errno.h>.
  8429. case "$host_os" in
  8430. aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
  8431. solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
  8432. esac
  8433. fi
  8434. if test "X$prefix" = "XNONE"; then
  8435. acl_final_prefix="$ac_default_prefix"
  8436. else
  8437. acl_final_prefix="$prefix"
  8438. fi
  8439. if test "X$exec_prefix" = "XNONE"; then
  8440. acl_final_exec_prefix='${prefix}'
  8441. else
  8442. acl_final_exec_prefix="$exec_prefix"
  8443. fi
  8444. acl_save_prefix="$prefix"
  8445. prefix="$acl_final_prefix"
  8446. eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  8447. prefix="$acl_save_prefix"
  8448. # Check whether --with-gnu-ld was given.
  8449. if test "${with_gnu_ld+set}" = set; then :
  8450. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  8451. else
  8452. with_gnu_ld=no
  8453. fi
  8454. # Prepare PATH_SEPARATOR.
  8455. # The user is always right.
  8456. if test "${PATH_SEPARATOR+set}" != set; then
  8457. echo "#! /bin/sh" >conf$$.sh
  8458. echo "exit 0" >>conf$$.sh
  8459. chmod +x conf$$.sh
  8460. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  8461. PATH_SEPARATOR=';'
  8462. else
  8463. PATH_SEPARATOR=:
  8464. fi
  8465. rm -f conf$$.sh
  8466. fi
  8467. ac_prog=ld
  8468. if test "$GCC" = yes; then
  8469. # Check if gcc -print-prog-name=ld gives a path.
  8470. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
  8471. $as_echo_n "checking for ld used by GCC... " >&6; }
  8472. case $host in
  8473. *-*-mingw*)
  8474. # gcc leaves a trailing carriage return which upsets mingw
  8475. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  8476. *)
  8477. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  8478. esac
  8479. case $ac_prog in
  8480. # Accept absolute paths.
  8481. [\\/]* | [A-Za-z]:[\\/]*)
  8482. re_direlt='/[^/][^/]*/\.\./'
  8483. # Canonicalize the path of ld
  8484. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  8485. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  8486. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  8487. done
  8488. test -z "$LD" && LD="$ac_prog"
  8489. ;;
  8490. "")
  8491. # If it fails, then pretend we aren't using GCC.
  8492. ac_prog=ld
  8493. ;;
  8494. *)
  8495. # If it is relative, then search for the first ld in PATH.
  8496. with_gnu_ld=unknown
  8497. ;;
  8498. esac
  8499. elif test "$with_gnu_ld" = yes; then
  8500. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  8501. $as_echo_n "checking for GNU ld... " >&6; }
  8502. else
  8503. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  8504. $as_echo_n "checking for non-GNU ld... " >&6; }
  8505. fi
  8506. if test "${acl_cv_path_LD+set}" = set; then :
  8507. $as_echo_n "(cached) " >&6
  8508. else
  8509. if test -z "$LD"; then
  8510. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  8511. for ac_dir in $PATH; do
  8512. test -z "$ac_dir" && ac_dir=.
  8513. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  8514. acl_cv_path_LD="$ac_dir/$ac_prog"
  8515. # Check to see if the program is GNU ld. I'd rather use --version,
  8516. # but apparently some GNU ld's only accept -v.
  8517. # Break only if it was the GNU/non-GNU ld that we prefer.
  8518. case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
  8519. *GNU* | *'with BFD'*)
  8520. test "$with_gnu_ld" != no && break ;;
  8521. *)
  8522. test "$with_gnu_ld" != yes && break ;;
  8523. esac
  8524. fi
  8525. done
  8526. IFS="$ac_save_ifs"
  8527. else
  8528. acl_cv_path_LD="$LD" # Let the user override the test with a path.
  8529. fi
  8530. fi
  8531. LD="$acl_cv_path_LD"
  8532. if test -n "$LD"; then
  8533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  8534. $as_echo "$LD" >&6; }
  8535. else
  8536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8537. $as_echo "no" >&6; }
  8538. fi
  8539. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  8540. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  8541. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  8542. if test "${acl_cv_prog_gnu_ld+set}" = set; then :
  8543. $as_echo_n "(cached) " >&6
  8544. else
  8545. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  8546. case `$LD -v 2>&1 </dev/null` in
  8547. *GNU* | *'with BFD'*)
  8548. acl_cv_prog_gnu_ld=yes ;;
  8549. *)
  8550. acl_cv_prog_gnu_ld=no ;;
  8551. esac
  8552. fi
  8553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
  8554. $as_echo "$acl_cv_prog_gnu_ld" >&6; }
  8555. with_gnu_ld=$acl_cv_prog_gnu_ld
  8556. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
  8557. $as_echo_n "checking for shared library run path origin... " >&6; }
  8558. if test "${acl_cv_rpath+set}" = set; then :
  8559. $as_echo_n "(cached) " >&6
  8560. else
  8561. CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  8562. ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  8563. . ./conftest.sh
  8564. rm -f ./conftest.sh
  8565. acl_cv_rpath=done
  8566. fi
  8567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
  8568. $as_echo "$acl_cv_rpath" >&6; }
  8569. wl="$acl_cv_wl"
  8570. acl_libext="$acl_cv_libext"
  8571. acl_shlibext="$acl_cv_shlibext"
  8572. acl_libname_spec="$acl_cv_libname_spec"
  8573. acl_library_names_spec="$acl_cv_library_names_spec"
  8574. acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  8575. acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  8576. acl_hardcode_direct="$acl_cv_hardcode_direct"
  8577. acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
  8578. # Check whether --enable-rpath was given.
  8579. if test "${enable_rpath+set}" = set; then :
  8580. enableval=$enable_rpath; :
  8581. else
  8582. enable_rpath=yes
  8583. fi
  8584. acl_libdirstem=lib
  8585. searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
  8586. if test -n "$searchpath"; then
  8587. acl_save_IFS="${IFS= }"; IFS=":"
  8588. for searchdir in $searchpath; do
  8589. if test -d "$searchdir"; then
  8590. case "$searchdir" in
  8591. */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
  8592. *) searchdir=`cd "$searchdir" && pwd`
  8593. case "$searchdir" in
  8594. */lib64 ) acl_libdirstem=lib64 ;;
  8595. esac ;;
  8596. esac
  8597. fi
  8598. done
  8599. IFS="$acl_save_IFS"
  8600. fi
  8601. gl_threads_api=none
  8602. LIBTHREAD=
  8603. LTLIBTHREAD=
  8604. LIBMULTITHREAD=
  8605. LTLIBMULTITHREAD=
  8606. if test "$gl_use_threads" != no; then
  8607. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
  8608. $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
  8609. gl_have_weak=no
  8610. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8611. /* end confdefs.h. */
  8612. extern void xyzzy ();
  8613. #pragma weak xyzzy
  8614. int
  8615. main ()
  8616. {
  8617. xyzzy();
  8618. ;
  8619. return 0;
  8620. }
  8621. _ACEOF
  8622. if ac_fn_cxx_try_link "$LINENO"; then :
  8623. gl_have_weak=yes
  8624. fi
  8625. rm -f core conftest.err conftest.$ac_objext \
  8626. conftest$ac_exeext conftest.$ac_ext
  8627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_weak" >&5
  8628. $as_echo "$gl_have_weak" >&6; }
  8629. if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
  8630. # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
  8631. # it groks <pthread.h>. It's added above, in gl_LOCK_EARLY_BODY.
  8632. ac_fn_cxx_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
  8633. if test "x$ac_cv_header_pthread_h" = x""yes; then :
  8634. gl_have_pthread_h=yes
  8635. else
  8636. gl_have_pthread_h=no
  8637. fi
  8638. if test "$gl_have_pthread_h" = yes; then
  8639. # Other possible tests:
  8640. # -lpthreads (FSU threads, PCthreads)
  8641. # -lgthreads
  8642. gl_have_pthread=
  8643. # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
  8644. # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
  8645. # the second one only in libpthread, and lock.c needs it.
  8646. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8647. /* end confdefs.h. */
  8648. #include <pthread.h>
  8649. int
  8650. main ()
  8651. {
  8652. pthread_mutex_lock((pthread_mutex_t*)0);
  8653. pthread_mutexattr_init((pthread_mutexattr_t*)0);
  8654. ;
  8655. return 0;
  8656. }
  8657. _ACEOF
  8658. if ac_fn_cxx_try_link "$LINENO"; then :
  8659. gl_have_pthread=yes
  8660. fi
  8661. rm -f core conftest.err conftest.$ac_objext \
  8662. conftest$ac_exeext conftest.$ac_ext
  8663. # Test for libpthread by looking for pthread_kill. (Not pthread_self,
  8664. # since it is defined as a macro on OSF/1.)
  8665. if test -n "$gl_have_pthread"; then
  8666. # The program links fine without libpthread. But it may actually
  8667. # need to link with libpthread in order to create multiple threads.
  8668. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
  8669. $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
  8670. if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then :
  8671. $as_echo_n "(cached) " >&6
  8672. else
  8673. ac_check_lib_save_LIBS=$LIBS
  8674. LIBS="-lpthread $LIBS"
  8675. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8676. /* end confdefs.h. */
  8677. /* Override any GCC internal prototype to avoid an error.
  8678. Use char because int might match the return type of a GCC
  8679. builtin and then its argument prototype would still apply. */
  8680. #ifdef __cplusplus
  8681. extern "C"
  8682. #endif
  8683. char pthread_kill ();
  8684. int
  8685. main ()
  8686. {
  8687. return pthread_kill ();
  8688. ;
  8689. return 0;
  8690. }
  8691. _ACEOF
  8692. if ac_fn_cxx_try_link "$LINENO"; then :
  8693. ac_cv_lib_pthread_pthread_kill=yes
  8694. else
  8695. ac_cv_lib_pthread_pthread_kill=no
  8696. fi
  8697. rm -f core conftest.err conftest.$ac_objext \
  8698. conftest$ac_exeext conftest.$ac_ext
  8699. LIBS=$ac_check_lib_save_LIBS
  8700. fi
  8701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
  8702. $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
  8703. if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then :
  8704. LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
  8705. # On Solaris and HP-UX, most pthread functions exist also in libc.
  8706. # Therefore pthread_in_use() needs to actually try to create a
  8707. # thread: pthread_create from libc will fail, whereas
  8708. # pthread_create will actually create a thread.
  8709. case "$host_os" in
  8710. solaris* | hpux*)
  8711. $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
  8712. esac
  8713. fi
  8714. else
  8715. # Some library is needed. Try libpthread and libc_r.
  8716. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
  8717. $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
  8718. if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then :
  8719. $as_echo_n "(cached) " >&6
  8720. else
  8721. ac_check_lib_save_LIBS=$LIBS
  8722. LIBS="-lpthread $LIBS"
  8723. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8724. /* end confdefs.h. */
  8725. /* Override any GCC internal prototype to avoid an error.
  8726. Use char because int might match the return type of a GCC
  8727. builtin and then its argument prototype would still apply. */
  8728. #ifdef __cplusplus
  8729. extern "C"
  8730. #endif
  8731. char pthread_kill ();
  8732. int
  8733. main ()
  8734. {
  8735. return pthread_kill ();
  8736. ;
  8737. return 0;
  8738. }
  8739. _ACEOF
  8740. if ac_fn_cxx_try_link "$LINENO"; then :
  8741. ac_cv_lib_pthread_pthread_kill=yes
  8742. else
  8743. ac_cv_lib_pthread_pthread_kill=no
  8744. fi
  8745. rm -f core conftest.err conftest.$ac_objext \
  8746. conftest$ac_exeext conftest.$ac_ext
  8747. LIBS=$ac_check_lib_save_LIBS
  8748. fi
  8749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
  8750. $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
  8751. if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then :
  8752. gl_have_pthread=yes
  8753. LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
  8754. LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
  8755. fi
  8756. if test -z "$gl_have_pthread"; then
  8757. # For FreeBSD 4.
  8758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
  8759. $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
  8760. if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then :
  8761. $as_echo_n "(cached) " >&6
  8762. else
  8763. ac_check_lib_save_LIBS=$LIBS
  8764. LIBS="-lc_r $LIBS"
  8765. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8766. /* end confdefs.h. */
  8767. /* Override any GCC internal prototype to avoid an error.
  8768. Use char because int might match the return type of a GCC
  8769. builtin and then its argument prototype would still apply. */
  8770. #ifdef __cplusplus
  8771. extern "C"
  8772. #endif
  8773. char pthread_kill ();
  8774. int
  8775. main ()
  8776. {
  8777. return pthread_kill ();
  8778. ;
  8779. return 0;
  8780. }
  8781. _ACEOF
  8782. if ac_fn_cxx_try_link "$LINENO"; then :
  8783. ac_cv_lib_c_r_pthread_kill=yes
  8784. else
  8785. ac_cv_lib_c_r_pthread_kill=no
  8786. fi
  8787. rm -f core conftest.err conftest.$ac_objext \
  8788. conftest$ac_exeext conftest.$ac_ext
  8789. LIBS=$ac_check_lib_save_LIBS
  8790. fi
  8791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
  8792. $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
  8793. if test "x$ac_cv_lib_c_r_pthread_kill" = x""yes; then :
  8794. gl_have_pthread=yes
  8795. LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
  8796. LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
  8797. fi
  8798. fi
  8799. fi
  8800. if test -n "$gl_have_pthread"; then
  8801. gl_threads_api=posix
  8802. $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
  8803. if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
  8804. if test $gl_have_weak = yes; then
  8805. $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
  8806. LIBTHREAD=
  8807. LTLIBTHREAD=
  8808. fi
  8809. fi
  8810. # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
  8811. # pthread_rwlock_* functions.
  8812. ac_fn_cxx_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
  8813. "
  8814. if test "x$ac_cv_type_pthread_rwlock_t" = x""yes; then :
  8815. $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
  8816. fi
  8817. # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
  8818. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8819. /* end confdefs.h. */
  8820. #include <pthread.h>
  8821. int
  8822. main ()
  8823. {
  8824. #if __FreeBSD__ == 4
  8825. error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
  8826. #else
  8827. int x = (int)PTHREAD_MUTEX_RECURSIVE;
  8828. return !x;
  8829. #endif
  8830. ;
  8831. return 0;
  8832. }
  8833. _ACEOF
  8834. if ac_fn_cxx_try_compile "$LINENO"; then :
  8835. $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
  8836. fi
  8837. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8838. fi
  8839. fi
  8840. fi
  8841. if test -z "$gl_have_pthread"; then
  8842. if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
  8843. gl_have_solaristhread=
  8844. gl_save_LIBS="$LIBS"
  8845. LIBS="$LIBS -lthread"
  8846. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8847. /* end confdefs.h. */
  8848. #include <thread.h>
  8849. #include <synch.h>
  8850. int
  8851. main ()
  8852. {
  8853. thr_self();
  8854. ;
  8855. return 0;
  8856. }
  8857. _ACEOF
  8858. if ac_fn_cxx_try_link "$LINENO"; then :
  8859. gl_have_solaristhread=yes
  8860. fi
  8861. rm -f core conftest.err conftest.$ac_objext \
  8862. conftest$ac_exeext conftest.$ac_ext
  8863. LIBS="$gl_save_LIBS"
  8864. if test -n "$gl_have_solaristhread"; then
  8865. gl_threads_api=solaris
  8866. LIBTHREAD=-lthread
  8867. LTLIBTHREAD=-lthread
  8868. LIBMULTITHREAD="$LIBTHREAD"
  8869. LTLIBMULTITHREAD="$LTLIBTHREAD"
  8870. $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
  8871. if test $gl_have_weak = yes; then
  8872. $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
  8873. LIBTHREAD=
  8874. LTLIBTHREAD=
  8875. fi
  8876. fi
  8877. fi
  8878. fi
  8879. if test "$gl_use_threads" = pth; then
  8880. gl_save_CPPFLAGS="$CPPFLAGS"
  8881. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
  8882. $as_echo_n "checking how to link with libpth... " >&6; }
  8883. if test "${ac_cv_libpth_libs+set}" = set; then :
  8884. $as_echo_n "(cached) " >&6
  8885. else
  8886. use_additional=yes
  8887. acl_save_prefix="$prefix"
  8888. prefix="$acl_final_prefix"
  8889. acl_save_exec_prefix="$exec_prefix"
  8890. exec_prefix="$acl_final_exec_prefix"
  8891. eval additional_includedir=\"$includedir\"
  8892. eval additional_libdir=\"$libdir\"
  8893. exec_prefix="$acl_save_exec_prefix"
  8894. prefix="$acl_save_prefix"
  8895. # Check whether --with-libpth-prefix was given.
  8896. if test "${with_libpth_prefix+set}" = set; then :
  8897. withval=$with_libpth_prefix;
  8898. if test "X$withval" = "Xno"; then
  8899. use_additional=no
  8900. else
  8901. if test "X$withval" = "X"; then
  8902. acl_save_prefix="$prefix"
  8903. prefix="$acl_final_prefix"
  8904. acl_save_exec_prefix="$exec_prefix"
  8905. exec_prefix="$acl_final_exec_prefix"
  8906. eval additional_includedir=\"$includedir\"
  8907. eval additional_libdir=\"$libdir\"
  8908. exec_prefix="$acl_save_exec_prefix"
  8909. prefix="$acl_save_prefix"
  8910. else
  8911. additional_includedir="$withval/include"
  8912. additional_libdir="$withval/$acl_libdirstem"
  8913. fi
  8914. fi
  8915. fi
  8916. LIBPTH=
  8917. LTLIBPTH=
  8918. INCPTH=
  8919. LIBPTH_PREFIX=
  8920. rpathdirs=
  8921. ltrpathdirs=
  8922. names_already_handled=
  8923. names_next_round='pth '
  8924. while test -n "$names_next_round"; do
  8925. names_this_round="$names_next_round"
  8926. names_next_round=
  8927. for name in $names_this_round; do
  8928. already_handled=
  8929. for n in $names_already_handled; do
  8930. if test "$n" = "$name"; then
  8931. already_handled=yes
  8932. break
  8933. fi
  8934. done
  8935. if test -z "$already_handled"; then
  8936. names_already_handled="$names_already_handled $name"
  8937. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  8938. eval value=\"\$HAVE_LIB$uppername\"
  8939. if test -n "$value"; then
  8940. if test "$value" = yes; then
  8941. eval value=\"\$LIB$uppername\"
  8942. test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
  8943. eval value=\"\$LTLIB$uppername\"
  8944. test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
  8945. else
  8946. :
  8947. fi
  8948. else
  8949. found_dir=
  8950. found_la=
  8951. found_so=
  8952. found_a=
  8953. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  8954. if test -n "$acl_shlibext"; then
  8955. shrext=".$acl_shlibext" # typically: shrext=.so
  8956. else
  8957. shrext=
  8958. fi
  8959. if test $use_additional = yes; then
  8960. dir="$additional_libdir"
  8961. if test -n "$acl_shlibext"; then
  8962. if test -f "$dir/$libname$shrext"; then
  8963. found_dir="$dir"
  8964. found_so="$dir/$libname$shrext"
  8965. else
  8966. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  8967. ver=`(cd "$dir" && \
  8968. for f in "$libname$shrext".*; do echo "$f"; done \
  8969. | sed -e "s,^$libname$shrext\\\\.,," \
  8970. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  8971. | sed 1q ) 2>/dev/null`
  8972. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  8973. found_dir="$dir"
  8974. found_so="$dir/$libname$shrext.$ver"
  8975. fi
  8976. else
  8977. eval library_names=\"$acl_library_names_spec\"
  8978. for f in $library_names; do
  8979. if test -f "$dir/$f"; then
  8980. found_dir="$dir"
  8981. found_so="$dir/$f"
  8982. break
  8983. fi
  8984. done
  8985. fi
  8986. fi
  8987. fi
  8988. if test "X$found_dir" = "X"; then
  8989. if test -f "$dir/$libname.$acl_libext"; then
  8990. found_dir="$dir"
  8991. found_a="$dir/$libname.$acl_libext"
  8992. fi
  8993. fi
  8994. if test "X$found_dir" != "X"; then
  8995. if test -f "$dir/$libname.la"; then
  8996. found_la="$dir/$libname.la"
  8997. fi
  8998. fi
  8999. fi
  9000. if test "X$found_dir" = "X"; then
  9001. for x in $LDFLAGS $LTLIBPTH; do
  9002. acl_save_prefix="$prefix"
  9003. prefix="$acl_final_prefix"
  9004. acl_save_exec_prefix="$exec_prefix"
  9005. exec_prefix="$acl_final_exec_prefix"
  9006. eval x=\"$x\"
  9007. exec_prefix="$acl_save_exec_prefix"
  9008. prefix="$acl_save_prefix"
  9009. case "$x" in
  9010. -L*)
  9011. dir=`echo "X$x" | sed -e 's/^X-L//'`
  9012. if test -n "$acl_shlibext"; then
  9013. if test -f "$dir/$libname$shrext"; then
  9014. found_dir="$dir"
  9015. found_so="$dir/$libname$shrext"
  9016. else
  9017. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  9018. ver=`(cd "$dir" && \
  9019. for f in "$libname$shrext".*; do echo "$f"; done \
  9020. | sed -e "s,^$libname$shrext\\\\.,," \
  9021. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  9022. | sed 1q ) 2>/dev/null`
  9023. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  9024. found_dir="$dir"
  9025. found_so="$dir/$libname$shrext.$ver"
  9026. fi
  9027. else
  9028. eval library_names=\"$acl_library_names_spec\"
  9029. for f in $library_names; do
  9030. if test -f "$dir/$f"; then
  9031. found_dir="$dir"
  9032. found_so="$dir/$f"
  9033. break
  9034. fi
  9035. done
  9036. fi
  9037. fi
  9038. fi
  9039. if test "X$found_dir" = "X"; then
  9040. if test -f "$dir/$libname.$acl_libext"; then
  9041. found_dir="$dir"
  9042. found_a="$dir/$libname.$acl_libext"
  9043. fi
  9044. fi
  9045. if test "X$found_dir" != "X"; then
  9046. if test -f "$dir/$libname.la"; then
  9047. found_la="$dir/$libname.la"
  9048. fi
  9049. fi
  9050. ;;
  9051. esac
  9052. if test "X$found_dir" != "X"; then
  9053. break
  9054. fi
  9055. done
  9056. fi
  9057. if test "X$found_dir" != "X"; then
  9058. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
  9059. if test "X$found_so" != "X"; then
  9060. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  9061. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  9062. else
  9063. haveit=
  9064. for x in $ltrpathdirs; do
  9065. if test "X$x" = "X$found_dir"; then
  9066. haveit=yes
  9067. break
  9068. fi
  9069. done
  9070. if test -z "$haveit"; then
  9071. ltrpathdirs="$ltrpathdirs $found_dir"
  9072. fi
  9073. if test "$acl_hardcode_direct" = yes; then
  9074. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  9075. else
  9076. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  9077. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  9078. haveit=
  9079. for x in $rpathdirs; do
  9080. if test "X$x" = "X$found_dir"; then
  9081. haveit=yes
  9082. break
  9083. fi
  9084. done
  9085. if test -z "$haveit"; then
  9086. rpathdirs="$rpathdirs $found_dir"
  9087. fi
  9088. else
  9089. haveit=
  9090. for x in $LDFLAGS $LIBPTH; do
  9091. acl_save_prefix="$prefix"
  9092. prefix="$acl_final_prefix"
  9093. acl_save_exec_prefix="$exec_prefix"
  9094. exec_prefix="$acl_final_exec_prefix"
  9095. eval x=\"$x\"
  9096. exec_prefix="$acl_save_exec_prefix"
  9097. prefix="$acl_save_prefix"
  9098. if test "X$x" = "X-L$found_dir"; then
  9099. haveit=yes
  9100. break
  9101. fi
  9102. done
  9103. if test -z "$haveit"; then
  9104. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
  9105. fi
  9106. if test "$acl_hardcode_minus_L" != no; then
  9107. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  9108. else
  9109. LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
  9110. fi
  9111. fi
  9112. fi
  9113. fi
  9114. else
  9115. if test "X$found_a" != "X"; then
  9116. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
  9117. else
  9118. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
  9119. fi
  9120. fi
  9121. additional_includedir=
  9122. case "$found_dir" in
  9123. */$acl_libdirstem | */$acl_libdirstem/)
  9124. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  9125. LIBPTH_PREFIX="$basedir"
  9126. additional_includedir="$basedir/include"
  9127. ;;
  9128. esac
  9129. if test "X$additional_includedir" != "X"; then
  9130. if test "X$additional_includedir" != "X/usr/include"; then
  9131. haveit=
  9132. if test "X$additional_includedir" = "X/usr/local/include"; then
  9133. if test -n "$GCC"; then
  9134. case $host_os in
  9135. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  9136. esac
  9137. fi
  9138. fi
  9139. if test -z "$haveit"; then
  9140. for x in $CPPFLAGS $INCPTH; do
  9141. acl_save_prefix="$prefix"
  9142. prefix="$acl_final_prefix"
  9143. acl_save_exec_prefix="$exec_prefix"
  9144. exec_prefix="$acl_final_exec_prefix"
  9145. eval x=\"$x\"
  9146. exec_prefix="$acl_save_exec_prefix"
  9147. prefix="$acl_save_prefix"
  9148. if test "X$x" = "X-I$additional_includedir"; then
  9149. haveit=yes
  9150. break
  9151. fi
  9152. done
  9153. if test -z "$haveit"; then
  9154. if test -d "$additional_includedir"; then
  9155. INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
  9156. fi
  9157. fi
  9158. fi
  9159. fi
  9160. fi
  9161. if test -n "$found_la"; then
  9162. save_libdir="$libdir"
  9163. case "$found_la" in
  9164. */* | *\\*) . "$found_la" ;;
  9165. *) . "./$found_la" ;;
  9166. esac
  9167. libdir="$save_libdir"
  9168. for dep in $dependency_libs; do
  9169. case "$dep" in
  9170. -L*)
  9171. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  9172. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  9173. haveit=
  9174. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  9175. if test -n "$GCC"; then
  9176. case $host_os in
  9177. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  9178. esac
  9179. fi
  9180. fi
  9181. if test -z "$haveit"; then
  9182. haveit=
  9183. for x in $LDFLAGS $LIBPTH; do
  9184. acl_save_prefix="$prefix"
  9185. prefix="$acl_final_prefix"
  9186. acl_save_exec_prefix="$exec_prefix"
  9187. exec_prefix="$acl_final_exec_prefix"
  9188. eval x=\"$x\"
  9189. exec_prefix="$acl_save_exec_prefix"
  9190. prefix="$acl_save_prefix"
  9191. if test "X$x" = "X-L$additional_libdir"; then
  9192. haveit=yes
  9193. break
  9194. fi
  9195. done
  9196. if test -z "$haveit"; then
  9197. if test -d "$additional_libdir"; then
  9198. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
  9199. fi
  9200. fi
  9201. haveit=
  9202. for x in $LDFLAGS $LTLIBPTH; do
  9203. acl_save_prefix="$prefix"
  9204. prefix="$acl_final_prefix"
  9205. acl_save_exec_prefix="$exec_prefix"
  9206. exec_prefix="$acl_final_exec_prefix"
  9207. eval x=\"$x\"
  9208. exec_prefix="$acl_save_exec_prefix"
  9209. prefix="$acl_save_prefix"
  9210. if test "X$x" = "X-L$additional_libdir"; then
  9211. haveit=yes
  9212. break
  9213. fi
  9214. done
  9215. if test -z "$haveit"; then
  9216. if test -d "$additional_libdir"; then
  9217. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
  9218. fi
  9219. fi
  9220. fi
  9221. fi
  9222. ;;
  9223. -R*)
  9224. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  9225. if test "$enable_rpath" != no; then
  9226. haveit=
  9227. for x in $rpathdirs; do
  9228. if test "X$x" = "X$dir"; then
  9229. haveit=yes
  9230. break
  9231. fi
  9232. done
  9233. if test -z "$haveit"; then
  9234. rpathdirs="$rpathdirs $dir"
  9235. fi
  9236. haveit=
  9237. for x in $ltrpathdirs; do
  9238. if test "X$x" = "X$dir"; then
  9239. haveit=yes
  9240. break
  9241. fi
  9242. done
  9243. if test -z "$haveit"; then
  9244. ltrpathdirs="$ltrpathdirs $dir"
  9245. fi
  9246. fi
  9247. ;;
  9248. -l*)
  9249. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  9250. ;;
  9251. *.la)
  9252. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  9253. ;;
  9254. *)
  9255. LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
  9256. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
  9257. ;;
  9258. esac
  9259. done
  9260. fi
  9261. else
  9262. LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
  9263. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
  9264. fi
  9265. fi
  9266. fi
  9267. done
  9268. done
  9269. if test "X$rpathdirs" != "X"; then
  9270. if test -n "$acl_hardcode_libdir_separator"; then
  9271. alldirs=
  9272. for found_dir in $rpathdirs; do
  9273. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  9274. done
  9275. acl_save_libdir="$libdir"
  9276. libdir="$alldirs"
  9277. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  9278. libdir="$acl_save_libdir"
  9279. LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
  9280. else
  9281. for found_dir in $rpathdirs; do
  9282. acl_save_libdir="$libdir"
  9283. libdir="$found_dir"
  9284. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  9285. libdir="$acl_save_libdir"
  9286. LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
  9287. done
  9288. fi
  9289. fi
  9290. if test "X$ltrpathdirs" != "X"; then
  9291. for found_dir in $ltrpathdirs; do
  9292. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
  9293. done
  9294. fi
  9295. ac_cv_libpth_libs="$LIBPTH"
  9296. ac_cv_libpth_ltlibs="$LTLIBPTH"
  9297. ac_cv_libpth_cppflags="$INCPTH"
  9298. ac_cv_libpth_prefix="$LIBPTH_PREFIX"
  9299. fi
  9300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
  9301. $as_echo "$ac_cv_libpth_libs" >&6; }
  9302. LIBPTH="$ac_cv_libpth_libs"
  9303. LTLIBPTH="$ac_cv_libpth_ltlibs"
  9304. INCPTH="$ac_cv_libpth_cppflags"
  9305. LIBPTH_PREFIX="$ac_cv_libpth_prefix"
  9306. for element in $INCPTH; do
  9307. haveit=
  9308. for x in $CPPFLAGS; do
  9309. acl_save_prefix="$prefix"
  9310. prefix="$acl_final_prefix"
  9311. acl_save_exec_prefix="$exec_prefix"
  9312. exec_prefix="$acl_final_exec_prefix"
  9313. eval x=\"$x\"
  9314. exec_prefix="$acl_save_exec_prefix"
  9315. prefix="$acl_save_prefix"
  9316. if test "X$x" = "X$element"; then
  9317. haveit=yes
  9318. break
  9319. fi
  9320. done
  9321. if test -z "$haveit"; then
  9322. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  9323. fi
  9324. done
  9325. HAVE_LIBPTH=yes
  9326. gl_have_pth=
  9327. gl_save_LIBS="$LIBS"
  9328. LIBS="$LIBS -lpth"
  9329. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9330. /* end confdefs.h. */
  9331. #include <pth.h>
  9332. int
  9333. main ()
  9334. {
  9335. pth_self();
  9336. ;
  9337. return 0;
  9338. }
  9339. _ACEOF
  9340. if ac_fn_cxx_try_link "$LINENO"; then :
  9341. gl_have_pth=yes
  9342. fi
  9343. rm -f core conftest.err conftest.$ac_objext \
  9344. conftest$ac_exeext conftest.$ac_ext
  9345. LIBS="$gl_save_LIBS"
  9346. if test -n "$gl_have_pth"; then
  9347. gl_threads_api=pth
  9348. LIBTHREAD="$LIBPTH"
  9349. LTLIBTHREAD="$LTLIBPTH"
  9350. LIBMULTITHREAD="$LIBTHREAD"
  9351. LTLIBMULTITHREAD="$LTLIBTHREAD"
  9352. $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
  9353. if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
  9354. if test $gl_have_weak = yes; then
  9355. $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
  9356. LIBTHREAD=
  9357. LTLIBTHREAD=
  9358. fi
  9359. fi
  9360. else
  9361. CPPFLAGS="$gl_save_CPPFLAGS"
  9362. fi
  9363. fi
  9364. if test -z "$gl_have_pthread"; then
  9365. if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
  9366. if { case "$host_os" in
  9367. mingw*) true;;
  9368. *) false;;
  9369. esac
  9370. }; then
  9371. gl_threads_api=win32
  9372. $as_echo "#define USE_WIN32_THREADS 1" >>confdefs.h
  9373. fi
  9374. fi
  9375. fi
  9376. fi
  9377. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
  9378. $as_echo_n "checking for multithread API to use... " >&6; }
  9379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
  9380. $as_echo "$gl_threads_api" >&6; }
  9381. use_additional=yes
  9382. acl_save_prefix="$prefix"
  9383. prefix="$acl_final_prefix"
  9384. acl_save_exec_prefix="$exec_prefix"
  9385. exec_prefix="$acl_final_exec_prefix"
  9386. eval additional_includedir=\"$includedir\"
  9387. eval additional_libdir=\"$libdir\"
  9388. exec_prefix="$acl_save_exec_prefix"
  9389. prefix="$acl_save_prefix"
  9390. # Check whether --with-libiconv-prefix was given.
  9391. if test "${with_libiconv_prefix+set}" = set; then :
  9392. withval=$with_libiconv_prefix;
  9393. if test "X$withval" = "Xno"; then
  9394. use_additional=no
  9395. else
  9396. if test "X$withval" = "X"; then
  9397. acl_save_prefix="$prefix"
  9398. prefix="$acl_final_prefix"
  9399. acl_save_exec_prefix="$exec_prefix"
  9400. exec_prefix="$acl_final_exec_prefix"
  9401. eval additional_includedir=\"$includedir\"
  9402. eval additional_libdir=\"$libdir\"
  9403. exec_prefix="$acl_save_exec_prefix"
  9404. prefix="$acl_save_prefix"
  9405. else
  9406. additional_includedir="$withval/include"
  9407. additional_libdir="$withval/$acl_libdirstem"
  9408. fi
  9409. fi
  9410. fi
  9411. LIBICONV=
  9412. LTLIBICONV=
  9413. INCICONV=
  9414. LIBICONV_PREFIX=
  9415. rpathdirs=
  9416. ltrpathdirs=
  9417. names_already_handled=
  9418. names_next_round='iconv '
  9419. while test -n "$names_next_round"; do
  9420. names_this_round="$names_next_round"
  9421. names_next_round=
  9422. for name in $names_this_round; do
  9423. already_handled=
  9424. for n in $names_already_handled; do
  9425. if test "$n" = "$name"; then
  9426. already_handled=yes
  9427. break
  9428. fi
  9429. done
  9430. if test -z "$already_handled"; then
  9431. names_already_handled="$names_already_handled $name"
  9432. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  9433. eval value=\"\$HAVE_LIB$uppername\"
  9434. if test -n "$value"; then
  9435. if test "$value" = yes; then
  9436. eval value=\"\$LIB$uppername\"
  9437. test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
  9438. eval value=\"\$LTLIB$uppername\"
  9439. test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
  9440. else
  9441. :
  9442. fi
  9443. else
  9444. found_dir=
  9445. found_la=
  9446. found_so=
  9447. found_a=
  9448. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  9449. if test -n "$acl_shlibext"; then
  9450. shrext=".$acl_shlibext" # typically: shrext=.so
  9451. else
  9452. shrext=
  9453. fi
  9454. if test $use_additional = yes; then
  9455. dir="$additional_libdir"
  9456. if test -n "$acl_shlibext"; then
  9457. if test -f "$dir/$libname$shrext"; then
  9458. found_dir="$dir"
  9459. found_so="$dir/$libname$shrext"
  9460. else
  9461. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  9462. ver=`(cd "$dir" && \
  9463. for f in "$libname$shrext".*; do echo "$f"; done \
  9464. | sed -e "s,^$libname$shrext\\\\.,," \
  9465. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  9466. | sed 1q ) 2>/dev/null`
  9467. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  9468. found_dir="$dir"
  9469. found_so="$dir/$libname$shrext.$ver"
  9470. fi
  9471. else
  9472. eval library_names=\"$acl_library_names_spec\"
  9473. for f in $library_names; do
  9474. if test -f "$dir/$f"; then
  9475. found_dir="$dir"
  9476. found_so="$dir/$f"
  9477. break
  9478. fi
  9479. done
  9480. fi
  9481. fi
  9482. fi
  9483. if test "X$found_dir" = "X"; then
  9484. if test -f "$dir/$libname.$acl_libext"; then
  9485. found_dir="$dir"
  9486. found_a="$dir/$libname.$acl_libext"
  9487. fi
  9488. fi
  9489. if test "X$found_dir" != "X"; then
  9490. if test -f "$dir/$libname.la"; then
  9491. found_la="$dir/$libname.la"
  9492. fi
  9493. fi
  9494. fi
  9495. if test "X$found_dir" = "X"; then
  9496. for x in $LDFLAGS $LTLIBICONV; do
  9497. acl_save_prefix="$prefix"
  9498. prefix="$acl_final_prefix"
  9499. acl_save_exec_prefix="$exec_prefix"
  9500. exec_prefix="$acl_final_exec_prefix"
  9501. eval x=\"$x\"
  9502. exec_prefix="$acl_save_exec_prefix"
  9503. prefix="$acl_save_prefix"
  9504. case "$x" in
  9505. -L*)
  9506. dir=`echo "X$x" | sed -e 's/^X-L//'`
  9507. if test -n "$acl_shlibext"; then
  9508. if test -f "$dir/$libname$shrext"; then
  9509. found_dir="$dir"
  9510. found_so="$dir/$libname$shrext"
  9511. else
  9512. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  9513. ver=`(cd "$dir" && \
  9514. for f in "$libname$shrext".*; do echo "$f"; done \
  9515. | sed -e "s,^$libname$shrext\\\\.,," \
  9516. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  9517. | sed 1q ) 2>/dev/null`
  9518. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  9519. found_dir="$dir"
  9520. found_so="$dir/$libname$shrext.$ver"
  9521. fi
  9522. else
  9523. eval library_names=\"$acl_library_names_spec\"
  9524. for f in $library_names; do
  9525. if test -f "$dir/$f"; then
  9526. found_dir="$dir"
  9527. found_so="$dir/$f"
  9528. break
  9529. fi
  9530. done
  9531. fi
  9532. fi
  9533. fi
  9534. if test "X$found_dir" = "X"; then
  9535. if test -f "$dir/$libname.$acl_libext"; then
  9536. found_dir="$dir"
  9537. found_a="$dir/$libname.$acl_libext"
  9538. fi
  9539. fi
  9540. if test "X$found_dir" != "X"; then
  9541. if test -f "$dir/$libname.la"; then
  9542. found_la="$dir/$libname.la"
  9543. fi
  9544. fi
  9545. ;;
  9546. esac
  9547. if test "X$found_dir" != "X"; then
  9548. break
  9549. fi
  9550. done
  9551. fi
  9552. if test "X$found_dir" != "X"; then
  9553. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
  9554. if test "X$found_so" != "X"; then
  9555. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  9556. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  9557. else
  9558. haveit=
  9559. for x in $ltrpathdirs; do
  9560. if test "X$x" = "X$found_dir"; then
  9561. haveit=yes
  9562. break
  9563. fi
  9564. done
  9565. if test -z "$haveit"; then
  9566. ltrpathdirs="$ltrpathdirs $found_dir"
  9567. fi
  9568. if test "$acl_hardcode_direct" = yes; then
  9569. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  9570. else
  9571. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  9572. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  9573. haveit=
  9574. for x in $rpathdirs; do
  9575. if test "X$x" = "X$found_dir"; then
  9576. haveit=yes
  9577. break
  9578. fi
  9579. done
  9580. if test -z "$haveit"; then
  9581. rpathdirs="$rpathdirs $found_dir"
  9582. fi
  9583. else
  9584. haveit=
  9585. for x in $LDFLAGS $LIBICONV; do
  9586. acl_save_prefix="$prefix"
  9587. prefix="$acl_final_prefix"
  9588. acl_save_exec_prefix="$exec_prefix"
  9589. exec_prefix="$acl_final_exec_prefix"
  9590. eval x=\"$x\"
  9591. exec_prefix="$acl_save_exec_prefix"
  9592. prefix="$acl_save_prefix"
  9593. if test "X$x" = "X-L$found_dir"; then
  9594. haveit=yes
  9595. break
  9596. fi
  9597. done
  9598. if test -z "$haveit"; then
  9599. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
  9600. fi
  9601. if test "$acl_hardcode_minus_L" != no; then
  9602. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  9603. else
  9604. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  9605. fi
  9606. fi
  9607. fi
  9608. fi
  9609. else
  9610. if test "X$found_a" != "X"; then
  9611. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
  9612. else
  9613. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
  9614. fi
  9615. fi
  9616. additional_includedir=
  9617. case "$found_dir" in
  9618. */$acl_libdirstem | */$acl_libdirstem/)
  9619. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  9620. LIBICONV_PREFIX="$basedir"
  9621. additional_includedir="$basedir/include"
  9622. ;;
  9623. esac
  9624. if test "X$additional_includedir" != "X"; then
  9625. if test "X$additional_includedir" != "X/usr/include"; then
  9626. haveit=
  9627. if test "X$additional_includedir" = "X/usr/local/include"; then
  9628. if test -n "$GCC"; then
  9629. case $host_os in
  9630. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  9631. esac
  9632. fi
  9633. fi
  9634. if test -z "$haveit"; then
  9635. for x in $CPPFLAGS $INCICONV; do
  9636. acl_save_prefix="$prefix"
  9637. prefix="$acl_final_prefix"
  9638. acl_save_exec_prefix="$exec_prefix"
  9639. exec_prefix="$acl_final_exec_prefix"
  9640. eval x=\"$x\"
  9641. exec_prefix="$acl_save_exec_prefix"
  9642. prefix="$acl_save_prefix"
  9643. if test "X$x" = "X-I$additional_includedir"; then
  9644. haveit=yes
  9645. break
  9646. fi
  9647. done
  9648. if test -z "$haveit"; then
  9649. if test -d "$additional_includedir"; then
  9650. INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
  9651. fi
  9652. fi
  9653. fi
  9654. fi
  9655. fi
  9656. if test -n "$found_la"; then
  9657. save_libdir="$libdir"
  9658. case "$found_la" in
  9659. */* | *\\*) . "$found_la" ;;
  9660. *) . "./$found_la" ;;
  9661. esac
  9662. libdir="$save_libdir"
  9663. for dep in $dependency_libs; do
  9664. case "$dep" in
  9665. -L*)
  9666. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  9667. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  9668. haveit=
  9669. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  9670. if test -n "$GCC"; then
  9671. case $host_os in
  9672. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  9673. esac
  9674. fi
  9675. fi
  9676. if test -z "$haveit"; then
  9677. haveit=
  9678. for x in $LDFLAGS $LIBICONV; do
  9679. acl_save_prefix="$prefix"
  9680. prefix="$acl_final_prefix"
  9681. acl_save_exec_prefix="$exec_prefix"
  9682. exec_prefix="$acl_final_exec_prefix"
  9683. eval x=\"$x\"
  9684. exec_prefix="$acl_save_exec_prefix"
  9685. prefix="$acl_save_prefix"
  9686. if test "X$x" = "X-L$additional_libdir"; then
  9687. haveit=yes
  9688. break
  9689. fi
  9690. done
  9691. if test -z "$haveit"; then
  9692. if test -d "$additional_libdir"; then
  9693. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
  9694. fi
  9695. fi
  9696. haveit=
  9697. for x in $LDFLAGS $LTLIBICONV; do
  9698. acl_save_prefix="$prefix"
  9699. prefix="$acl_final_prefix"
  9700. acl_save_exec_prefix="$exec_prefix"
  9701. exec_prefix="$acl_final_exec_prefix"
  9702. eval x=\"$x\"
  9703. exec_prefix="$acl_save_exec_prefix"
  9704. prefix="$acl_save_prefix"
  9705. if test "X$x" = "X-L$additional_libdir"; then
  9706. haveit=yes
  9707. break
  9708. fi
  9709. done
  9710. if test -z "$haveit"; then
  9711. if test -d "$additional_libdir"; then
  9712. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
  9713. fi
  9714. fi
  9715. fi
  9716. fi
  9717. ;;
  9718. -R*)
  9719. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  9720. if test "$enable_rpath" != no; then
  9721. haveit=
  9722. for x in $rpathdirs; do
  9723. if test "X$x" = "X$dir"; then
  9724. haveit=yes
  9725. break
  9726. fi
  9727. done
  9728. if test -z "$haveit"; then
  9729. rpathdirs="$rpathdirs $dir"
  9730. fi
  9731. haveit=
  9732. for x in $ltrpathdirs; do
  9733. if test "X$x" = "X$dir"; then
  9734. haveit=yes
  9735. break
  9736. fi
  9737. done
  9738. if test -z "$haveit"; then
  9739. ltrpathdirs="$ltrpathdirs $dir"
  9740. fi
  9741. fi
  9742. ;;
  9743. -l*)
  9744. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  9745. ;;
  9746. *.la)
  9747. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  9748. ;;
  9749. *)
  9750. LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
  9751. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
  9752. ;;
  9753. esac
  9754. done
  9755. fi
  9756. else
  9757. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  9758. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
  9759. fi
  9760. fi
  9761. fi
  9762. done
  9763. done
  9764. if test "X$rpathdirs" != "X"; then
  9765. if test -n "$acl_hardcode_libdir_separator"; then
  9766. alldirs=
  9767. for found_dir in $rpathdirs; do
  9768. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  9769. done
  9770. acl_save_libdir="$libdir"
  9771. libdir="$alldirs"
  9772. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  9773. libdir="$acl_save_libdir"
  9774. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  9775. else
  9776. for found_dir in $rpathdirs; do
  9777. acl_save_libdir="$libdir"
  9778. libdir="$found_dir"
  9779. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  9780. libdir="$acl_save_libdir"
  9781. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  9782. done
  9783. fi
  9784. fi
  9785. if test "X$ltrpathdirs" != "X"; then
  9786. for found_dir in $ltrpathdirs; do
  9787. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
  9788. done
  9789. fi
  9790. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9791. /* end confdefs.h. */
  9792. int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
  9793. int
  9794. main ()
  9795. {
  9796. ;
  9797. return 0;
  9798. }
  9799. _ACEOF
  9800. if ac_fn_cxx_try_link "$LINENO"; then :
  9801. $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
  9802. fi
  9803. rm -f core conftest.err conftest.$ac_objext \
  9804. conftest$ac_exeext conftest.$ac_ext
  9805. for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
  9806. do :
  9807. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9808. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  9809. eval as_val=\$$as_ac_Header
  9810. if test "x$as_val" = x""yes; then :
  9811. cat >>confdefs.h <<_ACEOF
  9812. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9813. _ACEOF
  9814. fi
  9815. done
  9816. for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
  9817. stpcpy strcasecmp strdup strtoul tsearch argz_count argz_stringify \
  9818. argz_next __fsetlocking
  9819. do :
  9820. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9821. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  9822. eval as_val=\$$as_ac_var
  9823. if test "x$as_val" = x""yes; then :
  9824. cat >>confdefs.h <<_ACEOF
  9825. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9826. _ACEOF
  9827. fi
  9828. done
  9829. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
  9830. $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
  9831. if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then :
  9832. $as_echo_n "(cached) " >&6
  9833. else
  9834. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9835. /* end confdefs.h. */
  9836. #include <stdio.h>
  9837. int
  9838. main ()
  9839. {
  9840. #ifndef feof_unlocked
  9841. char *p = (char *) feof_unlocked;
  9842. #endif
  9843. ;
  9844. return 0;
  9845. }
  9846. _ACEOF
  9847. if ac_fn_cxx_try_compile "$LINENO"; then :
  9848. ac_cv_have_decl_feof_unlocked=yes
  9849. else
  9850. ac_cv_have_decl_feof_unlocked=no
  9851. fi
  9852. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9853. fi
  9854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
  9855. $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
  9856. if test $ac_cv_have_decl_feof_unlocked = yes; then
  9857. gt_value=1
  9858. else
  9859. gt_value=0
  9860. fi
  9861. cat >>confdefs.h <<_ACEOF
  9862. #define HAVE_DECL_FEOF_UNLOCKED $gt_value
  9863. _ACEOF
  9864. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
  9865. $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
  9866. if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then :
  9867. $as_echo_n "(cached) " >&6
  9868. else
  9869. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9870. /* end confdefs.h. */
  9871. #include <stdio.h>
  9872. int
  9873. main ()
  9874. {
  9875. #ifndef fgets_unlocked
  9876. char *p = (char *) fgets_unlocked;
  9877. #endif
  9878. ;
  9879. return 0;
  9880. }
  9881. _ACEOF
  9882. if ac_fn_cxx_try_compile "$LINENO"; then :
  9883. ac_cv_have_decl_fgets_unlocked=yes
  9884. else
  9885. ac_cv_have_decl_fgets_unlocked=no
  9886. fi
  9887. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9888. fi
  9889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
  9890. $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
  9891. if test $ac_cv_have_decl_fgets_unlocked = yes; then
  9892. gt_value=1
  9893. else
  9894. gt_value=0
  9895. fi
  9896. cat >>confdefs.h <<_ACEOF
  9897. #define HAVE_DECL_FGETS_UNLOCKED $gt_value
  9898. _ACEOF
  9899. am_save_CPPFLAGS="$CPPFLAGS"
  9900. for element in $INCICONV; do
  9901. haveit=
  9902. for x in $CPPFLAGS; do
  9903. acl_save_prefix="$prefix"
  9904. prefix="$acl_final_prefix"
  9905. acl_save_exec_prefix="$exec_prefix"
  9906. exec_prefix="$acl_final_exec_prefix"
  9907. eval x=\"$x\"
  9908. exec_prefix="$acl_save_exec_prefix"
  9909. prefix="$acl_save_prefix"
  9910. if test "X$x" = "X$element"; then
  9911. haveit=yes
  9912. break
  9913. fi
  9914. done
  9915. if test -z "$haveit"; then
  9916. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  9917. fi
  9918. done
  9919. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
  9920. $as_echo_n "checking for iconv... " >&6; }
  9921. if test "${am_cv_func_iconv+set}" = set; then :
  9922. $as_echo_n "(cached) " >&6
  9923. else
  9924. am_cv_func_iconv="no, consider installing GNU libiconv"
  9925. am_cv_lib_iconv=no
  9926. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9927. /* end confdefs.h. */
  9928. #include <stdlib.h>
  9929. #include <iconv.h>
  9930. int
  9931. main ()
  9932. {
  9933. iconv_t cd = iconv_open("","");
  9934. iconv(cd,NULL,NULL,NULL,NULL);
  9935. iconv_close(cd);
  9936. ;
  9937. return 0;
  9938. }
  9939. _ACEOF
  9940. if ac_fn_cxx_try_link "$LINENO"; then :
  9941. am_cv_func_iconv=yes
  9942. fi
  9943. rm -f core conftest.err conftest.$ac_objext \
  9944. conftest$ac_exeext conftest.$ac_ext
  9945. if test "$am_cv_func_iconv" != yes; then
  9946. am_save_LIBS="$LIBS"
  9947. LIBS="$LIBS $LIBICONV"
  9948. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9949. /* end confdefs.h. */
  9950. #include <stdlib.h>
  9951. #include <iconv.h>
  9952. int
  9953. main ()
  9954. {
  9955. iconv_t cd = iconv_open("","");
  9956. iconv(cd,NULL,NULL,NULL,NULL);
  9957. iconv_close(cd);
  9958. ;
  9959. return 0;
  9960. }
  9961. _ACEOF
  9962. if ac_fn_cxx_try_link "$LINENO"; then :
  9963. am_cv_lib_iconv=yes
  9964. am_cv_func_iconv=yes
  9965. fi
  9966. rm -f core conftest.err conftest.$ac_objext \
  9967. conftest$ac_exeext conftest.$ac_ext
  9968. LIBS="$am_save_LIBS"
  9969. fi
  9970. fi
  9971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
  9972. $as_echo "$am_cv_func_iconv" >&6; }
  9973. if test "$am_cv_func_iconv" = yes; then
  9974. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
  9975. $as_echo_n "checking for working iconv... " >&6; }
  9976. if test "${am_cv_func_iconv_works+set}" = set; then :
  9977. $as_echo_n "(cached) " >&6
  9978. else
  9979. am_save_LIBS="$LIBS"
  9980. if test $am_cv_lib_iconv = yes; then
  9981. LIBS="$LIBS $LIBICONV"
  9982. fi
  9983. if test "$cross_compiling" = yes; then :
  9984. case "$host_os" in
  9985. aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
  9986. *) am_cv_func_iconv_works="guessing yes" ;;
  9987. esac
  9988. else
  9989. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9990. /* end confdefs.h. */
  9991. #include <iconv.h>
  9992. #include <string.h>
  9993. int main ()
  9994. {
  9995. /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
  9996. returns. */
  9997. {
  9998. iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
  9999. if (cd_utf8_to_88591 != (iconv_t)(-1))
  10000. {
  10001. static const char input[] = "\342\202\254"; /* EURO SIGN */
  10002. char buf[10];
  10003. const char *inptr = input;
  10004. size_t inbytesleft = strlen (input);
  10005. char *outptr = buf;
  10006. size_t outbytesleft = sizeof (buf);
  10007. size_t res = iconv (cd_utf8_to_88591,
  10008. (char **) &inptr, &inbytesleft,
  10009. &outptr, &outbytesleft);
  10010. if (res == 0)
  10011. return 1;
  10012. }
  10013. }
  10014. #if 0 /* This bug could be worked around by the caller. */
  10015. /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
  10016. {
  10017. iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
  10018. if (cd_88591_to_utf8 != (iconv_t)(-1))
  10019. {
  10020. static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
  10021. char buf[50];
  10022. const char *inptr = input;
  10023. size_t inbytesleft = strlen (input);
  10024. char *outptr = buf;
  10025. size_t outbytesleft = sizeof (buf);
  10026. size_t res = iconv (cd_88591_to_utf8,
  10027. (char **) &inptr, &inbytesleft,
  10028. &outptr, &outbytesleft);
  10029. if ((int)res > 0)
  10030. return 1;
  10031. }
  10032. }
  10033. #endif
  10034. /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
  10035. provided. */
  10036. if (/* Try standardized names. */
  10037. iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
  10038. /* Try IRIX, OSF/1 names. */
  10039. && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
  10040. /* Try AIX names. */
  10041. && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
  10042. /* Try HP-UX names. */
  10043. && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
  10044. return 1;
  10045. return 0;
  10046. }
  10047. _ACEOF
  10048. if ac_fn_cxx_try_run "$LINENO"; then :
  10049. am_cv_func_iconv_works=yes
  10050. else
  10051. am_cv_func_iconv_works=no
  10052. fi
  10053. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10054. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10055. fi
  10056. LIBS="$am_save_LIBS"
  10057. fi
  10058. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
  10059. $as_echo "$am_cv_func_iconv_works" >&6; }
  10060. case "$am_cv_func_iconv_works" in
  10061. *no) am_func_iconv=no am_cv_lib_iconv=no ;;
  10062. *) am_func_iconv=yes ;;
  10063. esac
  10064. else
  10065. am_func_iconv=no am_cv_lib_iconv=no
  10066. fi
  10067. if test "$am_func_iconv" = yes; then
  10068. $as_echo "#define HAVE_ICONV 1" >>confdefs.h
  10069. fi
  10070. if test "$am_cv_lib_iconv" = yes; then
  10071. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
  10072. $as_echo_n "checking how to link with libiconv... " >&6; }
  10073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
  10074. $as_echo "$LIBICONV" >&6; }
  10075. else
  10076. CPPFLAGS="$am_save_CPPFLAGS"
  10077. LIBICONV=
  10078. LTLIBICONV=
  10079. fi
  10080. if test "$am_cv_func_iconv" = yes; then
  10081. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
  10082. $as_echo_n "checking for iconv declaration... " >&6; }
  10083. if test "${am_cv_proto_iconv+set}" = set; then :
  10084. $as_echo_n "(cached) " >&6
  10085. else
  10086. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10087. /* end confdefs.h. */
  10088. #include <stdlib.h>
  10089. #include <iconv.h>
  10090. extern
  10091. #ifdef __cplusplus
  10092. "C"
  10093. #endif
  10094. #if defined(__STDC__) || defined(__cplusplus)
  10095. size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  10096. #else
  10097. size_t iconv();
  10098. #endif
  10099. int
  10100. main ()
  10101. {
  10102. ;
  10103. return 0;
  10104. }
  10105. _ACEOF
  10106. if ac_fn_cxx_try_compile "$LINENO"; then :
  10107. am_cv_proto_iconv_arg1=""
  10108. else
  10109. am_cv_proto_iconv_arg1="const"
  10110. fi
  10111. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10112. 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);"
  10113. fi
  10114. am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  10115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
  10116. }$am_cv_proto_iconv" >&5
  10117. $as_echo "${ac_t:-
  10118. }$am_cv_proto_iconv" >&6; }
  10119. cat >>confdefs.h <<_ACEOF
  10120. #define ICONV_CONST $am_cv_proto_iconv_arg1
  10121. _ACEOF
  10122. fi
  10123. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NL_LOCALE_NAME macro" >&5
  10124. $as_echo_n "checking for NL_LOCALE_NAME macro... " >&6; }
  10125. if test "${gt_cv_nl_locale_name+set}" = set; then :
  10126. $as_echo_n "(cached) " >&6
  10127. else
  10128. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10129. /* end confdefs.h. */
  10130. #include <langinfo.h>
  10131. #include <locale.h>
  10132. int
  10133. main ()
  10134. {
  10135. char* cs = nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES));
  10136. return !cs;
  10137. ;
  10138. return 0;
  10139. }
  10140. _ACEOF
  10141. if ac_fn_cxx_try_link "$LINENO"; then :
  10142. gt_cv_nl_locale_name=yes
  10143. else
  10144. gt_cv_nl_locale_name=no
  10145. fi
  10146. rm -f core conftest.err conftest.$ac_objext \
  10147. conftest$ac_exeext conftest.$ac_ext
  10148. fi
  10149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_nl_locale_name" >&5
  10150. $as_echo "$gt_cv_nl_locale_name" >&6; }
  10151. if test $gt_cv_nl_locale_name = yes; then
  10152. $as_echo "#define HAVE_NL_LOCALE_NAME 1" >>confdefs.h
  10153. fi
  10154. for ac_prog in bison
  10155. do
  10156. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10157. set dummy $ac_prog; ac_word=$2
  10158. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10159. $as_echo_n "checking for $ac_word... " >&6; }
  10160. if test "${ac_cv_prog_INTLBISON+set}" = set; then :
  10161. $as_echo_n "(cached) " >&6
  10162. else
  10163. if test -n "$INTLBISON"; then
  10164. ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
  10165. else
  10166. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10167. for as_dir in $PATH
  10168. do
  10169. IFS=$as_save_IFS
  10170. test -z "$as_dir" && as_dir=.
  10171. for ac_exec_ext in '' $ac_executable_extensions; do
  10172. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10173. ac_cv_prog_INTLBISON="$ac_prog"
  10174. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10175. break 2
  10176. fi
  10177. done
  10178. done
  10179. IFS=$as_save_IFS
  10180. fi
  10181. fi
  10182. INTLBISON=$ac_cv_prog_INTLBISON
  10183. if test -n "$INTLBISON"; then
  10184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
  10185. $as_echo "$INTLBISON" >&6; }
  10186. else
  10187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10188. $as_echo "no" >&6; }
  10189. fi
  10190. test -n "$INTLBISON" && break
  10191. done
  10192. if test -z "$INTLBISON"; then
  10193. ac_verc_fail=yes
  10194. else
  10195. { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
  10196. $as_echo_n "checking version of bison... " >&6; }
  10197. ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
  10198. case $ac_prog_version in
  10199. '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
  10200. 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
  10201. ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
  10202. *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
  10203. esac
  10204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
  10205. $as_echo "$ac_prog_version" >&6; }
  10206. fi
  10207. if test $ac_verc_fail = yes; then
  10208. INTLBISON=:
  10209. fi
  10210. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
  10211. $as_echo_n "checking for long long int... " >&6; }
  10212. if test "${ac_cv_type_long_long_int+set}" = set; then :
  10213. $as_echo_n "(cached) " >&6
  10214. else
  10215. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10216. /* end confdefs.h. */
  10217. /* Test preprocessor. */
  10218. #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  10219. error in preprocessor;
  10220. #endif
  10221. #if ! (18446744073709551615ULL <= -1ull)
  10222. error in preprocessor;
  10223. #endif
  10224. /* Test literals. */
  10225. long long int ll = 9223372036854775807ll;
  10226. long long int nll = -9223372036854775807LL;
  10227. unsigned long long int ull = 18446744073709551615ULL;
  10228. /* Test constant expressions. */
  10229. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  10230. ? 1 : -1)];
  10231. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  10232. ? 1 : -1)];
  10233. int i = 63;
  10234. int
  10235. main ()
  10236. {
  10237. /* Test availability of runtime routines for shift and division. */
  10238. long long int llmax = 9223372036854775807ll;
  10239. unsigned long long int ullmax = 18446744073709551615ull;
  10240. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  10241. | (llmax / ll) | (llmax % ll)
  10242. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  10243. | (ullmax / ull) | (ullmax % ull));
  10244. ;
  10245. return 0;
  10246. }
  10247. _ACEOF
  10248. if ac_fn_cxx_try_link "$LINENO"; then :
  10249. if test "$cross_compiling" = yes; then :
  10250. ac_cv_type_long_long_int=yes
  10251. else
  10252. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10253. /* end confdefs.h. */
  10254. #include <limits.h>
  10255. #ifndef LLONG_MAX
  10256. # define HALF \
  10257. (1LL << (sizeof (long long int) * CHAR_BIT - 2))
  10258. # define LLONG_MAX (HALF - 1 + HALF)
  10259. #endif
  10260. int
  10261. main ()
  10262. {
  10263. long long int n = 1;
  10264. int i;
  10265. for (i = 0; ; i++)
  10266. {
  10267. long long int m = n << i;
  10268. if (m >> i != n)
  10269. return 1;
  10270. if (LLONG_MAX / 2 < m)
  10271. break;
  10272. }
  10273. return 0;
  10274. ;
  10275. return 0;
  10276. }
  10277. _ACEOF
  10278. if ac_fn_cxx_try_run "$LINENO"; then :
  10279. ac_cv_type_long_long_int=yes
  10280. else
  10281. ac_cv_type_long_long_int=no
  10282. fi
  10283. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10284. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10285. fi
  10286. else
  10287. ac_cv_type_long_long_int=no
  10288. fi
  10289. rm -f core conftest.err conftest.$ac_objext \
  10290. conftest$ac_exeext conftest.$ac_ext
  10291. fi
  10292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
  10293. $as_echo "$ac_cv_type_long_long_int" >&6; }
  10294. if test $ac_cv_type_long_long_int = yes; then
  10295. $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
  10296. fi
  10297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
  10298. $as_echo_n "checking for wchar_t... " >&6; }
  10299. if test "${gt_cv_c_wchar_t+set}" = set; then :
  10300. $as_echo_n "(cached) " >&6
  10301. else
  10302. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10303. /* end confdefs.h. */
  10304. #include <stddef.h>
  10305. wchar_t foo = (wchar_t)'\0';
  10306. int
  10307. main ()
  10308. {
  10309. ;
  10310. return 0;
  10311. }
  10312. _ACEOF
  10313. if ac_fn_cxx_try_compile "$LINENO"; then :
  10314. gt_cv_c_wchar_t=yes
  10315. else
  10316. gt_cv_c_wchar_t=no
  10317. fi
  10318. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10319. fi
  10320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
  10321. $as_echo "$gt_cv_c_wchar_t" >&6; }
  10322. if test $gt_cv_c_wchar_t = yes; then
  10323. $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
  10324. fi
  10325. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
  10326. $as_echo_n "checking for wint_t... " >&6; }
  10327. if test "${gt_cv_c_wint_t+set}" = set; then :
  10328. $as_echo_n "(cached) " >&6
  10329. else
  10330. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10331. /* end confdefs.h. */
  10332. /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
  10333. <wchar.h>.
  10334. BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
  10335. before <wchar.h>. */
  10336. #include <stddef.h>
  10337. #include <stdio.h>
  10338. #include <time.h>
  10339. #include <wchar.h>
  10340. wint_t foo = (wchar_t)'\0';
  10341. int
  10342. main ()
  10343. {
  10344. ;
  10345. return 0;
  10346. }
  10347. _ACEOF
  10348. if ac_fn_cxx_try_compile "$LINENO"; then :
  10349. gt_cv_c_wint_t=yes
  10350. else
  10351. gt_cv_c_wint_t=no
  10352. fi
  10353. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10354. fi
  10355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
  10356. $as_echo "$gt_cv_c_wint_t" >&6; }
  10357. if test $gt_cv_c_wint_t = yes; then
  10358. $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
  10359. fi
  10360. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
  10361. $as_echo_n "checking for intmax_t... " >&6; }
  10362. if test "${gt_cv_c_intmax_t+set}" = set; then :
  10363. $as_echo_n "(cached) " >&6
  10364. else
  10365. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10366. /* end confdefs.h. */
  10367. #include <stddef.h>
  10368. #include <stdlib.h>
  10369. #if HAVE_STDINT_H_WITH_UINTMAX
  10370. #include <stdint.h>
  10371. #endif
  10372. #if HAVE_INTTYPES_H_WITH_UINTMAX
  10373. #include <inttypes.h>
  10374. #endif
  10375. int
  10376. main ()
  10377. {
  10378. intmax_t x = -1;
  10379. return !x;
  10380. ;
  10381. return 0;
  10382. }
  10383. _ACEOF
  10384. if ac_fn_cxx_try_compile "$LINENO"; then :
  10385. gt_cv_c_intmax_t=yes
  10386. else
  10387. gt_cv_c_intmax_t=no
  10388. fi
  10389. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10390. fi
  10391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
  10392. $as_echo "$gt_cv_c_intmax_t" >&6; }
  10393. if test $gt_cv_c_intmax_t = yes; then
  10394. $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
  10395. fi
  10396. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
  10397. $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
  10398. if test "${gt_cv_func_printf_posix+set}" = set; then :
  10399. $as_echo_n "(cached) " >&6
  10400. else
  10401. if test "$cross_compiling" = yes; then :
  10402. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10403. /* end confdefs.h. */
  10404. #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
  10405. notposix
  10406. #endif
  10407. _ACEOF
  10408. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10409. $EGREP "notposix" >/dev/null 2>&1; then :
  10410. gt_cv_func_printf_posix="guessing no"
  10411. else
  10412. gt_cv_func_printf_posix="guessing yes"
  10413. fi
  10414. rm -f conftest*
  10415. else
  10416. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10417. /* end confdefs.h. */
  10418. #include <stdio.h>
  10419. #include <string.h>
  10420. /* The string "%2$d %1$d", with dollar characters protected from the shell's
  10421. dollar expansion (possibly an autoconf bug). */
  10422. static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
  10423. static char buf[100];
  10424. int main ()
  10425. {
  10426. sprintf (buf, format, 33, 55);
  10427. return (strcmp (buf, "55 33") != 0);
  10428. }
  10429. _ACEOF
  10430. if ac_fn_cxx_try_run "$LINENO"; then :
  10431. gt_cv_func_printf_posix=yes
  10432. else
  10433. gt_cv_func_printf_posix=no
  10434. fi
  10435. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10436. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10437. fi
  10438. fi
  10439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
  10440. $as_echo "$gt_cv_func_printf_posix" >&6; }
  10441. case $gt_cv_func_printf_posix in
  10442. *yes)
  10443. $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
  10444. ;;
  10445. esac
  10446. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
  10447. $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
  10448. if test "${ac_cv_gnu_library_2_1+set}" = set; then :
  10449. $as_echo_n "(cached) " >&6
  10450. else
  10451. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10452. /* end confdefs.h. */
  10453. #include <features.h>
  10454. #ifdef __GNU_LIBRARY__
  10455. #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
  10456. Lucky GNU user
  10457. #endif
  10458. #endif
  10459. _ACEOF
  10460. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10461. $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
  10462. ac_cv_gnu_library_2_1=yes
  10463. else
  10464. ac_cv_gnu_library_2_1=no
  10465. fi
  10466. rm -f conftest*
  10467. fi
  10468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
  10469. $as_echo "$ac_cv_gnu_library_2_1" >&6; }
  10470. GLIBC21="$ac_cv_gnu_library_2_1"
  10471. for ac_header in stdint.h
  10472. do :
  10473. ac_fn_cxx_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
  10474. if test "x$ac_cv_header_stdint_h" = x""yes; then :
  10475. cat >>confdefs.h <<_ACEOF
  10476. #define HAVE_STDINT_H 1
  10477. _ACEOF
  10478. fi
  10479. done
  10480. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
  10481. $as_echo_n "checking for SIZE_MAX... " >&6; }
  10482. if test "${gl_cv_size_max+set}" = set; then :
  10483. $as_echo_n "(cached) " >&6
  10484. else
  10485. gl_cv_size_max=
  10486. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10487. /* end confdefs.h. */
  10488. #include <limits.h>
  10489. #if HAVE_STDINT_H
  10490. #include <stdint.h>
  10491. #endif
  10492. #ifdef SIZE_MAX
  10493. Found it
  10494. #endif
  10495. _ACEOF
  10496. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10497. $EGREP "Found it" >/dev/null 2>&1; then :
  10498. gl_cv_size_max=yes
  10499. fi
  10500. rm -f conftest*
  10501. if test -z "$gl_cv_size_max"; then
  10502. if ac_fn_cxx_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
  10503. #include <limits.h>"; then :
  10504. else
  10505. size_t_bits_minus_1=
  10506. fi
  10507. if ac_fn_cxx_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
  10508. else
  10509. fits_in_uint=
  10510. fi
  10511. if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
  10512. if test $fits_in_uint = 1; then
  10513. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10514. /* end confdefs.h. */
  10515. #include <stddef.h>
  10516. extern size_t foo;
  10517. extern unsigned long foo;
  10518. int
  10519. main ()
  10520. {
  10521. ;
  10522. return 0;
  10523. }
  10524. _ACEOF
  10525. if ac_fn_cxx_try_compile "$LINENO"; then :
  10526. fits_in_uint=0
  10527. fi
  10528. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10529. fi
  10530. if test $fits_in_uint = 1; then
  10531. gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
  10532. else
  10533. gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
  10534. fi
  10535. else
  10536. gl_cv_size_max='((size_t)~(size_t)0)'
  10537. fi
  10538. fi
  10539. fi
  10540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
  10541. $as_echo "$gl_cv_size_max" >&6; }
  10542. if test "$gl_cv_size_max" != yes; then
  10543. cat >>confdefs.h <<_ACEOF
  10544. #define SIZE_MAX $gl_cv_size_max
  10545. _ACEOF
  10546. fi
  10547. for ac_header in stdint.h
  10548. do :
  10549. ac_fn_cxx_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
  10550. if test "x$ac_cv_header_stdint_h" = x""yes; then :
  10551. cat >>confdefs.h <<_ACEOF
  10552. #define HAVE_STDINT_H 1
  10553. _ACEOF
  10554. fi
  10555. done
  10556. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
  10557. $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
  10558. if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
  10559. $as_echo_n "(cached) " >&6
  10560. else
  10561. gt_save_LIBS="$LIBS"
  10562. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  10563. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10564. /* end confdefs.h. */
  10565. #include <CoreFoundation/CFPreferences.h>
  10566. int
  10567. main ()
  10568. {
  10569. CFPreferencesCopyAppValue(NULL, NULL)
  10570. ;
  10571. return 0;
  10572. }
  10573. _ACEOF
  10574. if ac_fn_cxx_try_link "$LINENO"; then :
  10575. gt_cv_func_CFPreferencesCopyAppValue=yes
  10576. else
  10577. gt_cv_func_CFPreferencesCopyAppValue=no
  10578. fi
  10579. rm -f core conftest.err conftest.$ac_objext \
  10580. conftest$ac_exeext conftest.$ac_ext
  10581. LIBS="$gt_save_LIBS"
  10582. fi
  10583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
  10584. $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  10585. if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  10586. $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
  10587. fi
  10588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
  10589. $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
  10590. if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
  10591. $as_echo_n "(cached) " >&6
  10592. else
  10593. gt_save_LIBS="$LIBS"
  10594. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  10595. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10596. /* end confdefs.h. */
  10597. #include <CoreFoundation/CFLocale.h>
  10598. int
  10599. main ()
  10600. {
  10601. CFLocaleCopyCurrent();
  10602. ;
  10603. return 0;
  10604. }
  10605. _ACEOF
  10606. if ac_fn_cxx_try_link "$LINENO"; then :
  10607. gt_cv_func_CFLocaleCopyCurrent=yes
  10608. else
  10609. gt_cv_func_CFLocaleCopyCurrent=no
  10610. fi
  10611. rm -f core conftest.err conftest.$ac_objext \
  10612. conftest$ac_exeext conftest.$ac_ext
  10613. LIBS="$gt_save_LIBS"
  10614. fi
  10615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  10616. $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  10617. if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  10618. $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
  10619. fi
  10620. INTL_MACOSX_LIBS=
  10621. if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  10622. INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  10623. fi
  10624. ac_fn_cxx_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
  10625. if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
  10626. else
  10627. $as_echo "#define ptrdiff_t long" >>confdefs.h
  10628. fi
  10629. for ac_header in stddef.h stdlib.h string.h
  10630. do :
  10631. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10632. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  10633. eval as_val=\$$as_ac_Header
  10634. if test "x$as_val" = x""yes; then :
  10635. cat >>confdefs.h <<_ACEOF
  10636. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10637. _ACEOF
  10638. fi
  10639. done
  10640. for ac_func in asprintf fwprintf putenv setenv setlocale snprintf wcslen
  10641. do :
  10642. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10643. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  10644. eval as_val=\$$as_ac_var
  10645. if test "x$as_val" = x""yes; then :
  10646. cat >>confdefs.h <<_ACEOF
  10647. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10648. _ACEOF
  10649. fi
  10650. done
  10651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
  10652. $as_echo_n "checking whether _snprintf is declared... " >&6; }
  10653. if test "${ac_cv_have_decl__snprintf+set}" = set; then :
  10654. $as_echo_n "(cached) " >&6
  10655. else
  10656. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10657. /* end confdefs.h. */
  10658. #include <stdio.h>
  10659. int
  10660. main ()
  10661. {
  10662. #ifndef _snprintf
  10663. char *p = (char *) _snprintf;
  10664. #endif
  10665. ;
  10666. return 0;
  10667. }
  10668. _ACEOF
  10669. if ac_fn_cxx_try_compile "$LINENO"; then :
  10670. ac_cv_have_decl__snprintf=yes
  10671. else
  10672. ac_cv_have_decl__snprintf=no
  10673. fi
  10674. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10675. fi
  10676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
  10677. $as_echo "$ac_cv_have_decl__snprintf" >&6; }
  10678. if test $ac_cv_have_decl__snprintf = yes; then
  10679. gt_value=1
  10680. else
  10681. gt_value=0
  10682. fi
  10683. cat >>confdefs.h <<_ACEOF
  10684. #define HAVE_DECL__SNPRINTF $gt_value
  10685. _ACEOF
  10686. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
  10687. $as_echo_n "checking whether _snwprintf is declared... " >&6; }
  10688. if test "${ac_cv_have_decl__snwprintf+set}" = set; then :
  10689. $as_echo_n "(cached) " >&6
  10690. else
  10691. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10692. /* end confdefs.h. */
  10693. #include <stdio.h>
  10694. int
  10695. main ()
  10696. {
  10697. #ifndef _snwprintf
  10698. char *p = (char *) _snwprintf;
  10699. #endif
  10700. ;
  10701. return 0;
  10702. }
  10703. _ACEOF
  10704. if ac_fn_cxx_try_compile "$LINENO"; then :
  10705. ac_cv_have_decl__snwprintf=yes
  10706. else
  10707. ac_cv_have_decl__snwprintf=no
  10708. fi
  10709. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10710. fi
  10711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
  10712. $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
  10713. if test $ac_cv_have_decl__snwprintf = yes; then
  10714. gt_value=1
  10715. else
  10716. gt_value=0
  10717. fi
  10718. cat >>confdefs.h <<_ACEOF
  10719. #define HAVE_DECL__SNWPRINTF $gt_value
  10720. _ACEOF
  10721. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
  10722. $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
  10723. if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then :
  10724. $as_echo_n "(cached) " >&6
  10725. else
  10726. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10727. /* end confdefs.h. */
  10728. #include <stdio.h>
  10729. int
  10730. main ()
  10731. {
  10732. #ifndef getc_unlocked
  10733. char *p = (char *) getc_unlocked;
  10734. #endif
  10735. ;
  10736. return 0;
  10737. }
  10738. _ACEOF
  10739. if ac_fn_cxx_try_compile "$LINENO"; then :
  10740. ac_cv_have_decl_getc_unlocked=yes
  10741. else
  10742. ac_cv_have_decl_getc_unlocked=no
  10743. fi
  10744. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10745. fi
  10746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
  10747. $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
  10748. if test $ac_cv_have_decl_getc_unlocked = yes; then
  10749. gt_value=1
  10750. else
  10751. gt_value=0
  10752. fi
  10753. cat >>confdefs.h <<_ACEOF
  10754. #define HAVE_DECL_GETC_UNLOCKED $gt_value
  10755. _ACEOF
  10756. case $gt_cv_func_printf_posix in
  10757. *yes) HAVE_POSIX_PRINTF=1 ;;
  10758. *) HAVE_POSIX_PRINTF=0 ;;
  10759. esac
  10760. if test "$ac_cv_func_asprintf" = yes; then
  10761. HAVE_ASPRINTF=1
  10762. else
  10763. HAVE_ASPRINTF=0
  10764. fi
  10765. if test "$ac_cv_func_snprintf" = yes; then
  10766. HAVE_SNPRINTF=1
  10767. else
  10768. HAVE_SNPRINTF=0
  10769. fi
  10770. if test "$ac_cv_func_wprintf" = yes; then
  10771. HAVE_WPRINTF=1
  10772. else
  10773. HAVE_WPRINTF=0
  10774. fi
  10775. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
  10776. $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
  10777. if test "${am_cv_langinfo_codeset+set}" = set; then :
  10778. $as_echo_n "(cached) " >&6
  10779. else
  10780. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10781. /* end confdefs.h. */
  10782. #include <langinfo.h>
  10783. int
  10784. main ()
  10785. {
  10786. char* cs = nl_langinfo(CODESET); return !cs;
  10787. ;
  10788. return 0;
  10789. }
  10790. _ACEOF
  10791. if ac_fn_cxx_try_link "$LINENO"; then :
  10792. am_cv_langinfo_codeset=yes
  10793. else
  10794. am_cv_langinfo_codeset=no
  10795. fi
  10796. rm -f core conftest.err conftest.$ac_objext \
  10797. conftest$ac_exeext conftest.$ac_ext
  10798. fi
  10799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
  10800. $as_echo "$am_cv_langinfo_codeset" >&6; }
  10801. if test $am_cv_langinfo_codeset = yes; then
  10802. $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
  10803. fi
  10804. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
  10805. $as_echo_n "checking for LC_MESSAGES... " >&6; }
  10806. if test "${gt_cv_val_LC_MESSAGES+set}" = set; then :
  10807. $as_echo_n "(cached) " >&6
  10808. else
  10809. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10810. /* end confdefs.h. */
  10811. #include <locale.h>
  10812. int
  10813. main ()
  10814. {
  10815. return LC_MESSAGES
  10816. ;
  10817. return 0;
  10818. }
  10819. _ACEOF
  10820. if ac_fn_cxx_try_link "$LINENO"; then :
  10821. gt_cv_val_LC_MESSAGES=yes
  10822. else
  10823. gt_cv_val_LC_MESSAGES=no
  10824. fi
  10825. rm -f core conftest.err conftest.$ac_objext \
  10826. conftest$ac_exeext conftest.$ac_ext
  10827. fi
  10828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
  10829. $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
  10830. if test $gt_cv_val_LC_MESSAGES = yes; then
  10831. $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
  10832. fi
  10833. if test "$enable_shared" = yes; then
  10834. case "$host_os" in
  10835. mingw* | cygwin*) is_woe32dll=yes ;;
  10836. *) is_woe32dll=no ;;
  10837. esac
  10838. else
  10839. is_woe32dll=no
  10840. fi
  10841. WOE32DLL=$is_woe32dll
  10842. case "$host_os" in
  10843. mingw* | cygwin*) is_woe32=yes ;;
  10844. *) is_woe32=no ;;
  10845. esac
  10846. WOE32=$is_woe32
  10847. if test $WOE32 = yes; then
  10848. if test -n "$ac_tool_prefix"; then
  10849. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  10850. set dummy ${ac_tool_prefix}windres; ac_word=$2
  10851. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10852. $as_echo_n "checking for $ac_word... " >&6; }
  10853. if test "${ac_cv_prog_WINDRES+set}" = set; then :
  10854. $as_echo_n "(cached) " >&6
  10855. else
  10856. if test -n "$WINDRES"; then
  10857. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  10858. else
  10859. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10860. for as_dir in $PATH
  10861. do
  10862. IFS=$as_save_IFS
  10863. test -z "$as_dir" && as_dir=.
  10864. for ac_exec_ext in '' $ac_executable_extensions; do
  10865. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10866. ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
  10867. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10868. break 2
  10869. fi
  10870. done
  10871. done
  10872. IFS=$as_save_IFS
  10873. fi
  10874. fi
  10875. WINDRES=$ac_cv_prog_WINDRES
  10876. if test -n "$WINDRES"; then
  10877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
  10878. $as_echo "$WINDRES" >&6; }
  10879. else
  10880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10881. $as_echo "no" >&6; }
  10882. fi
  10883. fi
  10884. if test -z "$ac_cv_prog_WINDRES"; then
  10885. ac_ct_WINDRES=$WINDRES
  10886. # Extract the first word of "windres", so it can be a program name with args.
  10887. set dummy windres; ac_word=$2
  10888. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10889. $as_echo_n "checking for $ac_word... " >&6; }
  10890. if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
  10891. $as_echo_n "(cached) " >&6
  10892. else
  10893. if test -n "$ac_ct_WINDRES"; then
  10894. ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
  10895. else
  10896. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10897. for as_dir in $PATH
  10898. do
  10899. IFS=$as_save_IFS
  10900. test -z "$as_dir" && as_dir=.
  10901. for ac_exec_ext in '' $ac_executable_extensions; do
  10902. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10903. ac_cv_prog_ac_ct_WINDRES="windres"
  10904. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10905. break 2
  10906. fi
  10907. done
  10908. done
  10909. IFS=$as_save_IFS
  10910. fi
  10911. fi
  10912. ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
  10913. if test -n "$ac_ct_WINDRES"; then
  10914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
  10915. $as_echo "$ac_ct_WINDRES" >&6; }
  10916. else
  10917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10918. $as_echo "no" >&6; }
  10919. fi
  10920. if test "x$ac_ct_WINDRES" = x; then
  10921. WINDRES=""
  10922. else
  10923. case $cross_compiling:$ac_tool_warned in
  10924. yes:)
  10925. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10926. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10927. ac_tool_warned=yes ;;
  10928. esac
  10929. WINDRES=$ac_ct_WINDRES
  10930. fi
  10931. else
  10932. WINDRES="$ac_cv_prog_WINDRES"
  10933. fi
  10934. fi
  10935. case "$host_os" in
  10936. hpux*) LTLIBC="" ;;
  10937. *) LTLIBC="-lc" ;;
  10938. esac
  10939. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
  10940. $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
  10941. if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
  10942. $as_echo_n "(cached) " >&6
  10943. else
  10944. gt_save_LIBS="$LIBS"
  10945. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  10946. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10947. /* end confdefs.h. */
  10948. #include <CoreFoundation/CFPreferences.h>
  10949. int
  10950. main ()
  10951. {
  10952. CFPreferencesCopyAppValue(NULL, NULL)
  10953. ;
  10954. return 0;
  10955. }
  10956. _ACEOF
  10957. if ac_fn_cxx_try_link "$LINENO"; then :
  10958. gt_cv_func_CFPreferencesCopyAppValue=yes
  10959. else
  10960. gt_cv_func_CFPreferencesCopyAppValue=no
  10961. fi
  10962. rm -f core conftest.err conftest.$ac_objext \
  10963. conftest$ac_exeext conftest.$ac_ext
  10964. LIBS="$gt_save_LIBS"
  10965. fi
  10966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
  10967. $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  10968. if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  10969. $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
  10970. fi
  10971. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
  10972. $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
  10973. if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
  10974. $as_echo_n "(cached) " >&6
  10975. else
  10976. gt_save_LIBS="$LIBS"
  10977. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  10978. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10979. /* end confdefs.h. */
  10980. #include <CoreFoundation/CFLocale.h>
  10981. int
  10982. main ()
  10983. {
  10984. CFLocaleCopyCurrent();
  10985. ;
  10986. return 0;
  10987. }
  10988. _ACEOF
  10989. if ac_fn_cxx_try_link "$LINENO"; then :
  10990. gt_cv_func_CFLocaleCopyCurrent=yes
  10991. else
  10992. gt_cv_func_CFLocaleCopyCurrent=no
  10993. fi
  10994. rm -f core conftest.err conftest.$ac_objext \
  10995. conftest$ac_exeext conftest.$ac_ext
  10996. LIBS="$gt_save_LIBS"
  10997. fi
  10998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  10999. $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  11000. if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  11001. $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
  11002. fi
  11003. INTL_MACOSX_LIBS=
  11004. if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  11005. INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  11006. fi
  11007. BUILD_INCLUDED_LIBINTL=no
  11008. USE_INCLUDED_LIBINTL=no
  11009. LIBINTL=
  11010. LTLIBINTL=
  11011. POSUB=
  11012. case " $gt_needs " in
  11013. *" need-formatstring-macros "*) gt_api_version=3 ;;
  11014. *" need-ngettext "*) gt_api_version=2 ;;
  11015. *) gt_api_version=1 ;;
  11016. esac
  11017. gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
  11018. gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
  11019. if test "$USE_NLS" = "yes"; then
  11020. gt_use_preinstalled_gnugettext=no
  11021. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
  11022. $as_echo_n "checking whether included gettext is requested... " >&6; }
  11023. # Check whether --with-included-gettext was given.
  11024. if test "${with_included_gettext+set}" = set; then :
  11025. withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
  11026. else
  11027. nls_cv_force_use_gnu_gettext=no
  11028. fi
  11029. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
  11030. $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
  11031. nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
  11032. if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
  11033. if test $gt_api_version -ge 3; then
  11034. gt_revision_test_code='
  11035. #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
  11036. #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
  11037. #endif
  11038. typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
  11039. '
  11040. else
  11041. gt_revision_test_code=
  11042. fi
  11043. if test $gt_api_version -ge 2; then
  11044. gt_expression_test_code=' + * ngettext ("", "", 0)'
  11045. else
  11046. gt_expression_test_code=
  11047. fi
  11048. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
  11049. $as_echo_n "checking for GNU gettext in libc... " >&6; }
  11050. if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then :
  11051. $as_echo_n "(cached) " >&6
  11052. else
  11053. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11054. /* end confdefs.h. */
  11055. #include <libintl.h>
  11056. $gt_revision_test_code
  11057. extern int _nl_msg_cat_cntr;
  11058. extern int *_nl_domain_bindings;
  11059. int
  11060. main ()
  11061. {
  11062. bindtextdomain ("", "");
  11063. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
  11064. ;
  11065. return 0;
  11066. }
  11067. _ACEOF
  11068. if ac_fn_cxx_try_link "$LINENO"; then :
  11069. eval "$gt_func_gnugettext_libc=yes"
  11070. else
  11071. eval "$gt_func_gnugettext_libc=no"
  11072. fi
  11073. rm -f core conftest.err conftest.$ac_objext \
  11074. conftest$ac_exeext conftest.$ac_ext
  11075. fi
  11076. eval ac_res=\$$gt_func_gnugettext_libc
  11077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  11078. $as_echo "$ac_res" >&6; }
  11079. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
  11080. use_additional=yes
  11081. acl_save_prefix="$prefix"
  11082. prefix="$acl_final_prefix"
  11083. acl_save_exec_prefix="$exec_prefix"
  11084. exec_prefix="$acl_final_exec_prefix"
  11085. eval additional_includedir=\"$includedir\"
  11086. eval additional_libdir=\"$libdir\"
  11087. exec_prefix="$acl_save_exec_prefix"
  11088. prefix="$acl_save_prefix"
  11089. # Check whether --with-libintl-prefix was given.
  11090. if test "${with_libintl_prefix+set}" = set; then :
  11091. withval=$with_libintl_prefix;
  11092. if test "X$withval" = "Xno"; then
  11093. use_additional=no
  11094. else
  11095. if test "X$withval" = "X"; then
  11096. acl_save_prefix="$prefix"
  11097. prefix="$acl_final_prefix"
  11098. acl_save_exec_prefix="$exec_prefix"
  11099. exec_prefix="$acl_final_exec_prefix"
  11100. eval additional_includedir=\"$includedir\"
  11101. eval additional_libdir=\"$libdir\"
  11102. exec_prefix="$acl_save_exec_prefix"
  11103. prefix="$acl_save_prefix"
  11104. else
  11105. additional_includedir="$withval/include"
  11106. additional_libdir="$withval/$acl_libdirstem"
  11107. fi
  11108. fi
  11109. fi
  11110. LIBINTL=
  11111. LTLIBINTL=
  11112. INCINTL=
  11113. LIBINTL_PREFIX=
  11114. rpathdirs=
  11115. ltrpathdirs=
  11116. names_already_handled=
  11117. names_next_round='intl '
  11118. while test -n "$names_next_round"; do
  11119. names_this_round="$names_next_round"
  11120. names_next_round=
  11121. for name in $names_this_round; do
  11122. already_handled=
  11123. for n in $names_already_handled; do
  11124. if test "$n" = "$name"; then
  11125. already_handled=yes
  11126. break
  11127. fi
  11128. done
  11129. if test -z "$already_handled"; then
  11130. names_already_handled="$names_already_handled $name"
  11131. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  11132. eval value=\"\$HAVE_LIB$uppername\"
  11133. if test -n "$value"; then
  11134. if test "$value" = yes; then
  11135. eval value=\"\$LIB$uppername\"
  11136. test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
  11137. eval value=\"\$LTLIB$uppername\"
  11138. test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
  11139. else
  11140. :
  11141. fi
  11142. else
  11143. found_dir=
  11144. found_la=
  11145. found_so=
  11146. found_a=
  11147. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  11148. if test -n "$acl_shlibext"; then
  11149. shrext=".$acl_shlibext" # typically: shrext=.so
  11150. else
  11151. shrext=
  11152. fi
  11153. if test $use_additional = yes; then
  11154. dir="$additional_libdir"
  11155. if test -n "$acl_shlibext"; then
  11156. if test -f "$dir/$libname$shrext"; then
  11157. found_dir="$dir"
  11158. found_so="$dir/$libname$shrext"
  11159. else
  11160. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  11161. ver=`(cd "$dir" && \
  11162. for f in "$libname$shrext".*; do echo "$f"; done \
  11163. | sed -e "s,^$libname$shrext\\\\.,," \
  11164. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  11165. | sed 1q ) 2>/dev/null`
  11166. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  11167. found_dir="$dir"
  11168. found_so="$dir/$libname$shrext.$ver"
  11169. fi
  11170. else
  11171. eval library_names=\"$acl_library_names_spec\"
  11172. for f in $library_names; do
  11173. if test -f "$dir/$f"; then
  11174. found_dir="$dir"
  11175. found_so="$dir/$f"
  11176. break
  11177. fi
  11178. done
  11179. fi
  11180. fi
  11181. fi
  11182. if test "X$found_dir" = "X"; then
  11183. if test -f "$dir/$libname.$acl_libext"; then
  11184. found_dir="$dir"
  11185. found_a="$dir/$libname.$acl_libext"
  11186. fi
  11187. fi
  11188. if test "X$found_dir" != "X"; then
  11189. if test -f "$dir/$libname.la"; then
  11190. found_la="$dir/$libname.la"
  11191. fi
  11192. fi
  11193. fi
  11194. if test "X$found_dir" = "X"; then
  11195. for x in $LDFLAGS $LTLIBINTL; do
  11196. acl_save_prefix="$prefix"
  11197. prefix="$acl_final_prefix"
  11198. acl_save_exec_prefix="$exec_prefix"
  11199. exec_prefix="$acl_final_exec_prefix"
  11200. eval x=\"$x\"
  11201. exec_prefix="$acl_save_exec_prefix"
  11202. prefix="$acl_save_prefix"
  11203. case "$x" in
  11204. -L*)
  11205. dir=`echo "X$x" | sed -e 's/^X-L//'`
  11206. if test -n "$acl_shlibext"; then
  11207. if test -f "$dir/$libname$shrext"; then
  11208. found_dir="$dir"
  11209. found_so="$dir/$libname$shrext"
  11210. else
  11211. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  11212. ver=`(cd "$dir" && \
  11213. for f in "$libname$shrext".*; do echo "$f"; done \
  11214. | sed -e "s,^$libname$shrext\\\\.,," \
  11215. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  11216. | sed 1q ) 2>/dev/null`
  11217. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  11218. found_dir="$dir"
  11219. found_so="$dir/$libname$shrext.$ver"
  11220. fi
  11221. else
  11222. eval library_names=\"$acl_library_names_spec\"
  11223. for f in $library_names; do
  11224. if test -f "$dir/$f"; then
  11225. found_dir="$dir"
  11226. found_so="$dir/$f"
  11227. break
  11228. fi
  11229. done
  11230. fi
  11231. fi
  11232. fi
  11233. if test "X$found_dir" = "X"; then
  11234. if test -f "$dir/$libname.$acl_libext"; then
  11235. found_dir="$dir"
  11236. found_a="$dir/$libname.$acl_libext"
  11237. fi
  11238. fi
  11239. if test "X$found_dir" != "X"; then
  11240. if test -f "$dir/$libname.la"; then
  11241. found_la="$dir/$libname.la"
  11242. fi
  11243. fi
  11244. ;;
  11245. esac
  11246. if test "X$found_dir" != "X"; then
  11247. break
  11248. fi
  11249. done
  11250. fi
  11251. if test "X$found_dir" != "X"; then
  11252. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
  11253. if test "X$found_so" != "X"; then
  11254. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  11255. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  11256. else
  11257. haveit=
  11258. for x in $ltrpathdirs; do
  11259. if test "X$x" = "X$found_dir"; then
  11260. haveit=yes
  11261. break
  11262. fi
  11263. done
  11264. if test -z "$haveit"; then
  11265. ltrpathdirs="$ltrpathdirs $found_dir"
  11266. fi
  11267. if test "$acl_hardcode_direct" = yes; then
  11268. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  11269. else
  11270. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  11271. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  11272. haveit=
  11273. for x in $rpathdirs; do
  11274. if test "X$x" = "X$found_dir"; then
  11275. haveit=yes
  11276. break
  11277. fi
  11278. done
  11279. if test -z "$haveit"; then
  11280. rpathdirs="$rpathdirs $found_dir"
  11281. fi
  11282. else
  11283. haveit=
  11284. for x in $LDFLAGS $LIBINTL; do
  11285. acl_save_prefix="$prefix"
  11286. prefix="$acl_final_prefix"
  11287. acl_save_exec_prefix="$exec_prefix"
  11288. exec_prefix="$acl_final_exec_prefix"
  11289. eval x=\"$x\"
  11290. exec_prefix="$acl_save_exec_prefix"
  11291. prefix="$acl_save_prefix"
  11292. if test "X$x" = "X-L$found_dir"; then
  11293. haveit=yes
  11294. break
  11295. fi
  11296. done
  11297. if test -z "$haveit"; then
  11298. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
  11299. fi
  11300. if test "$acl_hardcode_minus_L" != no; then
  11301. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  11302. else
  11303. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  11304. fi
  11305. fi
  11306. fi
  11307. fi
  11308. else
  11309. if test "X$found_a" != "X"; then
  11310. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
  11311. else
  11312. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
  11313. fi
  11314. fi
  11315. additional_includedir=
  11316. case "$found_dir" in
  11317. */$acl_libdirstem | */$acl_libdirstem/)
  11318. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  11319. LIBINTL_PREFIX="$basedir"
  11320. additional_includedir="$basedir/include"
  11321. ;;
  11322. esac
  11323. if test "X$additional_includedir" != "X"; then
  11324. if test "X$additional_includedir" != "X/usr/include"; then
  11325. haveit=
  11326. if test "X$additional_includedir" = "X/usr/local/include"; then
  11327. if test -n "$GCC"; then
  11328. case $host_os in
  11329. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  11330. esac
  11331. fi
  11332. fi
  11333. if test -z "$haveit"; then
  11334. for x in $CPPFLAGS $INCINTL; do
  11335. acl_save_prefix="$prefix"
  11336. prefix="$acl_final_prefix"
  11337. acl_save_exec_prefix="$exec_prefix"
  11338. exec_prefix="$acl_final_exec_prefix"
  11339. eval x=\"$x\"
  11340. exec_prefix="$acl_save_exec_prefix"
  11341. prefix="$acl_save_prefix"
  11342. if test "X$x" = "X-I$additional_includedir"; then
  11343. haveit=yes
  11344. break
  11345. fi
  11346. done
  11347. if test -z "$haveit"; then
  11348. if test -d "$additional_includedir"; then
  11349. INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
  11350. fi
  11351. fi
  11352. fi
  11353. fi
  11354. fi
  11355. if test -n "$found_la"; then
  11356. save_libdir="$libdir"
  11357. case "$found_la" in
  11358. */* | *\\*) . "$found_la" ;;
  11359. *) . "./$found_la" ;;
  11360. esac
  11361. libdir="$save_libdir"
  11362. for dep in $dependency_libs; do
  11363. case "$dep" in
  11364. -L*)
  11365. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  11366. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  11367. haveit=
  11368. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  11369. if test -n "$GCC"; then
  11370. case $host_os in
  11371. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  11372. esac
  11373. fi
  11374. fi
  11375. if test -z "$haveit"; then
  11376. haveit=
  11377. for x in $LDFLAGS $LIBINTL; do
  11378. acl_save_prefix="$prefix"
  11379. prefix="$acl_final_prefix"
  11380. acl_save_exec_prefix="$exec_prefix"
  11381. exec_prefix="$acl_final_exec_prefix"
  11382. eval x=\"$x\"
  11383. exec_prefix="$acl_save_exec_prefix"
  11384. prefix="$acl_save_prefix"
  11385. if test "X$x" = "X-L$additional_libdir"; then
  11386. haveit=yes
  11387. break
  11388. fi
  11389. done
  11390. if test -z "$haveit"; then
  11391. if test -d "$additional_libdir"; then
  11392. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
  11393. fi
  11394. fi
  11395. haveit=
  11396. for x in $LDFLAGS $LTLIBINTL; do
  11397. acl_save_prefix="$prefix"
  11398. prefix="$acl_final_prefix"
  11399. acl_save_exec_prefix="$exec_prefix"
  11400. exec_prefix="$acl_final_exec_prefix"
  11401. eval x=\"$x\"
  11402. exec_prefix="$acl_save_exec_prefix"
  11403. prefix="$acl_save_prefix"
  11404. if test "X$x" = "X-L$additional_libdir"; then
  11405. haveit=yes
  11406. break
  11407. fi
  11408. done
  11409. if test -z "$haveit"; then
  11410. if test -d "$additional_libdir"; then
  11411. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
  11412. fi
  11413. fi
  11414. fi
  11415. fi
  11416. ;;
  11417. -R*)
  11418. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  11419. if test "$enable_rpath" != no; then
  11420. haveit=
  11421. for x in $rpathdirs; do
  11422. if test "X$x" = "X$dir"; then
  11423. haveit=yes
  11424. break
  11425. fi
  11426. done
  11427. if test -z "$haveit"; then
  11428. rpathdirs="$rpathdirs $dir"
  11429. fi
  11430. haveit=
  11431. for x in $ltrpathdirs; do
  11432. if test "X$x" = "X$dir"; then
  11433. haveit=yes
  11434. break
  11435. fi
  11436. done
  11437. if test -z "$haveit"; then
  11438. ltrpathdirs="$ltrpathdirs $dir"
  11439. fi
  11440. fi
  11441. ;;
  11442. -l*)
  11443. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  11444. ;;
  11445. *.la)
  11446. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  11447. ;;
  11448. *)
  11449. LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
  11450. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
  11451. ;;
  11452. esac
  11453. done
  11454. fi
  11455. else
  11456. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  11457. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
  11458. fi
  11459. fi
  11460. fi
  11461. done
  11462. done
  11463. if test "X$rpathdirs" != "X"; then
  11464. if test -n "$acl_hardcode_libdir_separator"; then
  11465. alldirs=
  11466. for found_dir in $rpathdirs; do
  11467. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  11468. done
  11469. acl_save_libdir="$libdir"
  11470. libdir="$alldirs"
  11471. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  11472. libdir="$acl_save_libdir"
  11473. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  11474. else
  11475. for found_dir in $rpathdirs; do
  11476. acl_save_libdir="$libdir"
  11477. libdir="$found_dir"
  11478. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  11479. libdir="$acl_save_libdir"
  11480. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  11481. done
  11482. fi
  11483. fi
  11484. if test "X$ltrpathdirs" != "X"; then
  11485. for found_dir in $ltrpathdirs; do
  11486. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
  11487. done
  11488. fi
  11489. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
  11490. $as_echo_n "checking for GNU gettext in libintl... " >&6; }
  11491. if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then :
  11492. $as_echo_n "(cached) " >&6
  11493. else
  11494. gt_save_CPPFLAGS="$CPPFLAGS"
  11495. CPPFLAGS="$CPPFLAGS $INCINTL"
  11496. gt_save_LIBS="$LIBS"
  11497. LIBS="$LIBS $LIBINTL"
  11498. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11499. /* end confdefs.h. */
  11500. #include <libintl.h>
  11501. $gt_revision_test_code
  11502. extern int _nl_msg_cat_cntr;
  11503. extern
  11504. #ifdef __cplusplus
  11505. "C"
  11506. #endif
  11507. const char *_nl_expand_alias (const char *);
  11508. int
  11509. main ()
  11510. {
  11511. bindtextdomain ("", "");
  11512. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  11513. ;
  11514. return 0;
  11515. }
  11516. _ACEOF
  11517. if ac_fn_cxx_try_link "$LINENO"; then :
  11518. eval "$gt_func_gnugettext_libintl=yes"
  11519. else
  11520. eval "$gt_func_gnugettext_libintl=no"
  11521. fi
  11522. rm -f core conftest.err conftest.$ac_objext \
  11523. conftest$ac_exeext conftest.$ac_ext
  11524. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
  11525. LIBS="$LIBS $LIBICONV"
  11526. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11527. /* end confdefs.h. */
  11528. #include <libintl.h>
  11529. $gt_revision_test_code
  11530. extern int _nl_msg_cat_cntr;
  11531. extern
  11532. #ifdef __cplusplus
  11533. "C"
  11534. #endif
  11535. const char *_nl_expand_alias (const char *);
  11536. int
  11537. main ()
  11538. {
  11539. bindtextdomain ("", "");
  11540. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  11541. ;
  11542. return 0;
  11543. }
  11544. _ACEOF
  11545. if ac_fn_cxx_try_link "$LINENO"; then :
  11546. LIBINTL="$LIBINTL $LIBICONV"
  11547. LTLIBINTL="$LTLIBINTL $LTLIBICONV"
  11548. eval "$gt_func_gnugettext_libintl=yes"
  11549. fi
  11550. rm -f core conftest.err conftest.$ac_objext \
  11551. conftest$ac_exeext conftest.$ac_ext
  11552. fi
  11553. CPPFLAGS="$gt_save_CPPFLAGS"
  11554. LIBS="$gt_save_LIBS"
  11555. fi
  11556. eval ac_res=\$$gt_func_gnugettext_libintl
  11557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  11558. $as_echo "$ac_res" >&6; }
  11559. fi
  11560. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
  11561. || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
  11562. && test "$PACKAGE" != gettext-runtime \
  11563. && test "$PACKAGE" != gettext-tools; }; then
  11564. gt_use_preinstalled_gnugettext=yes
  11565. else
  11566. LIBINTL=
  11567. LTLIBINTL=
  11568. INCINTL=
  11569. fi
  11570. if test "$gt_use_preinstalled_gnugettext" != "yes"; then
  11571. nls_cv_use_gnu_gettext=yes
  11572. fi
  11573. fi
  11574. if test "$nls_cv_use_gnu_gettext" = "yes"; then
  11575. BUILD_INCLUDED_LIBINTL=yes
  11576. USE_INCLUDED_LIBINTL=yes
  11577. LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
  11578. LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
  11579. LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
  11580. fi
  11581. CATOBJEXT=
  11582. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  11583. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  11584. CATOBJEXT=.gmo
  11585. fi
  11586. if test -n "$INTL_MACOSX_LIBS"; then
  11587. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  11588. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  11589. LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
  11590. LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
  11591. fi
  11592. fi
  11593. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  11594. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  11595. $as_echo "#define ENABLE_NLS 1" >>confdefs.h
  11596. else
  11597. USE_NLS=no
  11598. fi
  11599. fi
  11600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
  11601. $as_echo_n "checking whether to use NLS... " >&6; }
  11602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
  11603. $as_echo "$USE_NLS" >&6; }
  11604. if test "$USE_NLS" = "yes"; then
  11605. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
  11606. $as_echo_n "checking where the gettext function comes from... " >&6; }
  11607. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  11608. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  11609. gt_source="external libintl"
  11610. else
  11611. gt_source="libc"
  11612. fi
  11613. else
  11614. gt_source="included intl directory"
  11615. fi
  11616. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
  11617. $as_echo "$gt_source" >&6; }
  11618. fi
  11619. if test "$USE_NLS" = "yes"; then
  11620. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  11621. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  11622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
  11623. $as_echo_n "checking how to link with libintl... " >&6; }
  11624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
  11625. $as_echo "$LIBINTL" >&6; }
  11626. for element in $INCINTL; do
  11627. haveit=
  11628. for x in $CPPFLAGS; do
  11629. acl_save_prefix="$prefix"
  11630. prefix="$acl_final_prefix"
  11631. acl_save_exec_prefix="$exec_prefix"
  11632. exec_prefix="$acl_final_exec_prefix"
  11633. eval x=\"$x\"
  11634. exec_prefix="$acl_save_exec_prefix"
  11635. prefix="$acl_save_prefix"
  11636. if test "X$x" = "X$element"; then
  11637. haveit=yes
  11638. break
  11639. fi
  11640. done
  11641. if test -z "$haveit"; then
  11642. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  11643. fi
  11644. done
  11645. fi
  11646. $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
  11647. $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
  11648. fi
  11649. POSUB=po
  11650. fi
  11651. if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
  11652. BUILD_INCLUDED_LIBINTL=yes
  11653. fi
  11654. nls_cv_header_intl=
  11655. nls_cv_header_libgt=
  11656. DATADIRNAME=share
  11657. INSTOBJEXT=.mo
  11658. GENCAT=gencat
  11659. INTLOBJS=
  11660. if test "$USE_INCLUDED_LIBINTL" = yes; then
  11661. INTLOBJS="\$(GETTOBJS)"
  11662. fi
  11663. INTL_LIBTOOL_SUFFIX_PREFIX=
  11664. INTLLIBS="$LIBINTL"
  11665. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
  11666. $as_echo_n "checking for error_at_line... " >&6; }
  11667. if test "${ac_cv_lib_error_at_line+set}" = set; then :
  11668. $as_echo_n "(cached) " >&6
  11669. else
  11670. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11671. /* end confdefs.h. */
  11672. #include <error.h>
  11673. int
  11674. main ()
  11675. {
  11676. error_at_line (0, 0, "", 0, "an error occurred");
  11677. ;
  11678. return 0;
  11679. }
  11680. _ACEOF
  11681. if ac_fn_cxx_try_link "$LINENO"; then :
  11682. ac_cv_lib_error_at_line=yes
  11683. else
  11684. ac_cv_lib_error_at_line=no
  11685. fi
  11686. rm -f core conftest.err conftest.$ac_objext \
  11687. conftest$ac_exeext conftest.$ac_ext
  11688. fi
  11689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
  11690. $as_echo "$ac_cv_lib_error_at_line" >&6; }
  11691. if test $ac_cv_lib_error_at_line = no; then
  11692. case " $LIBOBJS " in
  11693. *" error.$ac_objext "* ) ;;
  11694. *) LIBOBJS="$LIBOBJS error.$ac_objext"
  11695. ;;
  11696. esac
  11697. fi
  11698. if test $ac_cv_c_compiler_gnu = yes; then
  11699. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
  11700. $as_echo_n "checking whether $CC needs -traditional... " >&6; }
  11701. if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
  11702. $as_echo_n "(cached) " >&6
  11703. else
  11704. ac_pattern="Autoconf.*'x'"
  11705. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11706. /* end confdefs.h. */
  11707. #include <sgtty.h>
  11708. Autoconf TIOCGETP
  11709. _ACEOF
  11710. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  11711. $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  11712. ac_cv_prog_gcc_traditional=yes
  11713. else
  11714. ac_cv_prog_gcc_traditional=no
  11715. fi
  11716. rm -f conftest*
  11717. if test $ac_cv_prog_gcc_traditional = no; then
  11718. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11719. /* end confdefs.h. */
  11720. #include <termio.h>
  11721. Autoconf TCGETA
  11722. _ACEOF
  11723. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  11724. $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  11725. ac_cv_prog_gcc_traditional=yes
  11726. fi
  11727. rm -f conftest*
  11728. fi
  11729. fi
  11730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
  11731. $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
  11732. if test $ac_cv_prog_gcc_traditional = yes; then
  11733. CC="$CC -traditional"
  11734. fi
  11735. fi
  11736. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  11737. $as_echo_n "checking for working memcmp... " >&6; }
  11738. if test "${ac_cv_func_memcmp_working+set}" = set; then :
  11739. $as_echo_n "(cached) " >&6
  11740. else
  11741. if test "$cross_compiling" = yes; then :
  11742. ac_cv_func_memcmp_working=no
  11743. else
  11744. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11745. /* end confdefs.h. */
  11746. $ac_includes_default
  11747. int
  11748. main ()
  11749. {
  11750. /* Some versions of memcmp are not 8-bit clean. */
  11751. char c0 = '\100', c1 = '\200', c2 = '\201';
  11752. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  11753. return 1;
  11754. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  11755. or more and with at least one buffer not starting on a 4-byte boundary.
  11756. William Lewis provided this test program. */
  11757. {
  11758. char foo[21];
  11759. char bar[21];
  11760. int i;
  11761. for (i = 0; i < 4; i++)
  11762. {
  11763. char *a = foo + i;
  11764. char *b = bar + i;
  11765. strcpy (a, "--------01111111");
  11766. strcpy (b, "--------10000000");
  11767. if (memcmp (a, b, 16) >= 0)
  11768. return 1;
  11769. }
  11770. return 0;
  11771. }
  11772. ;
  11773. return 0;
  11774. }
  11775. _ACEOF
  11776. if ac_fn_cxx_try_run "$LINENO"; then :
  11777. ac_cv_func_memcmp_working=yes
  11778. else
  11779. ac_cv_func_memcmp_working=no
  11780. fi
  11781. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11782. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11783. fi
  11784. fi
  11785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  11786. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  11787. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  11788. *" memcmp.$ac_objext "* ) ;;
  11789. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  11790. ;;
  11791. esac
  11792. for ac_header in $ac_header_list
  11793. do :
  11794. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  11795. ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  11796. "
  11797. eval as_val=\$$as_ac_Header
  11798. if test "x$as_val" = x""yes; then :
  11799. cat >>confdefs.h <<_ACEOF
  11800. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  11801. _ACEOF
  11802. fi
  11803. done
  11804. for ac_func in $ac_func_list
  11805. do :
  11806. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11807. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  11808. eval as_val=\$$as_ac_var
  11809. if test "x$as_val" = x""yes; then :
  11810. cat >>confdefs.h <<_ACEOF
  11811. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11812. _ACEOF
  11813. fi
  11814. done
  11815. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
  11816. $as_echo_n "checking for working mktime... " >&6; }
  11817. if test "${ac_cv_func_working_mktime+set}" = set; then :
  11818. $as_echo_n "(cached) " >&6
  11819. else
  11820. if test "$cross_compiling" = yes; then :
  11821. ac_cv_func_working_mktime=no
  11822. else
  11823. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11824. /* end confdefs.h. */
  11825. /* Test program from Paul Eggert and Tony Leneis. */
  11826. #ifdef TIME_WITH_SYS_TIME
  11827. # include <sys/time.h>
  11828. # include <time.h>
  11829. #else
  11830. # ifdef HAVE_SYS_TIME_H
  11831. # include <sys/time.h>
  11832. # else
  11833. # include <time.h>
  11834. # endif
  11835. #endif
  11836. #include <limits.h>
  11837. #include <stdlib.h>
  11838. #ifdef HAVE_UNISTD_H
  11839. # include <unistd.h>
  11840. #endif
  11841. #ifndef HAVE_ALARM
  11842. # define alarm(X) /* empty */
  11843. #endif
  11844. /* Work around redefinition to rpl_putenv by other config tests. */
  11845. #undef putenv
  11846. static time_t time_t_max;
  11847. static time_t time_t_min;
  11848. /* Values we'll use to set the TZ environment variable. */
  11849. static char *tz_strings[] = {
  11850. (char *) 0, "TZ=GMT0", "TZ=JST-9",
  11851. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  11852. };
  11853. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  11854. /* Return 0 if mktime fails to convert a date in the spring-forward gap.
  11855. Based on a problem report from Andreas Jaeger. */
  11856. static int
  11857. spring_forward_gap ()
  11858. {
  11859. /* glibc (up to about 1998-10-07) failed this test. */
  11860. struct tm tm;
  11861. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  11862. instead of "TZ=America/Vancouver" in order to detect the bug even
  11863. on systems that don't support the Olson extension, or don't have the
  11864. full zoneinfo tables installed. */
  11865. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  11866. tm.tm_year = 98;
  11867. tm.tm_mon = 3;
  11868. tm.tm_mday = 5;
  11869. tm.tm_hour = 2;
  11870. tm.tm_min = 0;
  11871. tm.tm_sec = 0;
  11872. tm.tm_isdst = -1;
  11873. return mktime (&tm) != (time_t) -1;
  11874. }
  11875. static int
  11876. mktime_test1 (now)
  11877. time_t now;
  11878. {
  11879. struct tm *lt;
  11880. return ! (lt = localtime (&now)) || mktime (lt) == now;
  11881. }
  11882. static int
  11883. mktime_test (now)
  11884. time_t now;
  11885. {
  11886. return (mktime_test1 (now)
  11887. && mktime_test1 ((time_t) (time_t_max - now))
  11888. && mktime_test1 ((time_t) (time_t_min + now)));
  11889. }
  11890. static int
  11891. irix_6_4_bug ()
  11892. {
  11893. /* Based on code from Ariel Faigon. */
  11894. struct tm tm;
  11895. tm.tm_year = 96;
  11896. tm.tm_mon = 3;
  11897. tm.tm_mday = 0;
  11898. tm.tm_hour = 0;
  11899. tm.tm_min = 0;
  11900. tm.tm_sec = 0;
  11901. tm.tm_isdst = -1;
  11902. mktime (&tm);
  11903. return tm.tm_mon == 2 && tm.tm_mday == 31;
  11904. }
  11905. static int
  11906. bigtime_test (j)
  11907. int j;
  11908. {
  11909. struct tm tm;
  11910. time_t now;
  11911. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  11912. now = mktime (&tm);
  11913. if (now != (time_t) -1)
  11914. {
  11915. struct tm *lt = localtime (&now);
  11916. if (! (lt
  11917. && lt->tm_year == tm.tm_year
  11918. && lt->tm_mon == tm.tm_mon
  11919. && lt->tm_mday == tm.tm_mday
  11920. && lt->tm_hour == tm.tm_hour
  11921. && lt->tm_min == tm.tm_min
  11922. && lt->tm_sec == tm.tm_sec
  11923. && lt->tm_yday == tm.tm_yday
  11924. && lt->tm_wday == tm.tm_wday
  11925. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  11926. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  11927. return 0;
  11928. }
  11929. return 1;
  11930. }
  11931. static int
  11932. year_2050_test ()
  11933. {
  11934. /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
  11935. ignoring leap seconds. */
  11936. unsigned long int answer = 2527315200UL;
  11937. struct tm tm;
  11938. time_t t;
  11939. tm.tm_year = 2050 - 1900;
  11940. tm.tm_mon = 2 - 1;
  11941. tm.tm_mday = 1;
  11942. tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
  11943. tm.tm_isdst = -1;
  11944. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  11945. instead of "TZ=America/Vancouver" in order to detect the bug even
  11946. on systems that don't support the Olson extension, or don't have the
  11947. full zoneinfo tables installed. */
  11948. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  11949. t = mktime (&tm);
  11950. /* Check that the result is either a failure, or close enough
  11951. to the correct answer that we can assume the discrepancy is
  11952. due to leap seconds. */
  11953. return (t == (time_t) -1
  11954. || (0 < t && answer - 120 <= t && t <= answer + 120));
  11955. }
  11956. int
  11957. main ()
  11958. {
  11959. time_t t, delta;
  11960. int i, j;
  11961. /* This test makes some buggy mktime implementations loop.
  11962. Give up after 60 seconds; a mktime slower than that
  11963. isn't worth using anyway. */
  11964. alarm (60);
  11965. for (;;)
  11966. {
  11967. t = (time_t_max << 1) + 1;
  11968. if (t <= time_t_max)
  11969. break;
  11970. time_t_max = t;
  11971. }
  11972. time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
  11973. delta = time_t_max / 997; /* a suitable prime number */
  11974. for (i = 0; i < N_STRINGS; i++)
  11975. {
  11976. if (tz_strings[i])
  11977. putenv (tz_strings[i]);
  11978. for (t = 0; t <= time_t_max - delta; t += delta)
  11979. if (! mktime_test (t))
  11980. return 1;
  11981. if (! (mktime_test ((time_t) 1)
  11982. && mktime_test ((time_t) (60 * 60))
  11983. && mktime_test ((time_t) (60 * 60 * 24))))
  11984. return 1;
  11985. for (j = 1; ; j <<= 1)
  11986. if (! bigtime_test (j))
  11987. return 1;
  11988. else if (INT_MAX / 2 < j)
  11989. break;
  11990. if (! bigtime_test (INT_MAX))
  11991. return 1;
  11992. }
  11993. return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
  11994. }
  11995. _ACEOF
  11996. if ac_fn_cxx_try_run "$LINENO"; then :
  11997. ac_cv_func_working_mktime=yes
  11998. else
  11999. ac_cv_func_working_mktime=no
  12000. fi
  12001. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12002. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12003. fi
  12004. fi
  12005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
  12006. $as_echo "$ac_cv_func_working_mktime" >&6; }
  12007. if test $ac_cv_func_working_mktime = no; then
  12008. case " $LIBOBJS " in
  12009. *" mktime.$ac_objext "* ) ;;
  12010. *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
  12011. ;;
  12012. esac
  12013. fi
  12014. for ac_header in stdlib.h unistd.h
  12015. do :
  12016. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  12017. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  12018. eval as_val=\$$as_ac_Header
  12019. if test "x$as_val" = x""yes; then :
  12020. cat >>confdefs.h <<_ACEOF
  12021. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  12022. _ACEOF
  12023. fi
  12024. done
  12025. for ac_func in getpagesize
  12026. do :
  12027. ac_fn_cxx_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  12028. if test "x$ac_cv_func_getpagesize" = x""yes; then :
  12029. cat >>confdefs.h <<_ACEOF
  12030. #define HAVE_GETPAGESIZE 1
  12031. _ACEOF
  12032. fi
  12033. done
  12034. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  12035. $as_echo_n "checking for working mmap... " >&6; }
  12036. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
  12037. $as_echo_n "(cached) " >&6
  12038. else
  12039. if test "$cross_compiling" = yes; then :
  12040. ac_cv_func_mmap_fixed_mapped=no
  12041. else
  12042. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12043. /* end confdefs.h. */
  12044. $ac_includes_default
  12045. /* malloc might have been renamed as rpl_malloc. */
  12046. #undef malloc
  12047. /* Thanks to Mike Haertel and Jim Avera for this test.
  12048. Here is a matrix of mmap possibilities:
  12049. mmap private not fixed
  12050. mmap private fixed at somewhere currently unmapped
  12051. mmap private fixed at somewhere already mapped
  12052. mmap shared not fixed
  12053. mmap shared fixed at somewhere currently unmapped
  12054. mmap shared fixed at somewhere already mapped
  12055. For private mappings, we should verify that changes cannot be read()
  12056. back from the file, nor mmap's back from the file at a different
  12057. address. (There have been systems where private was not correctly
  12058. implemented like the infamous i386 svr4.0, and systems where the
  12059. VM page cache was not coherent with the file system buffer cache
  12060. like early versions of FreeBSD and possibly contemporary NetBSD.)
  12061. For shared mappings, we should conversely verify that changes get
  12062. propagated back to all the places they're supposed to be.
  12063. Grep wants private fixed already mapped.
  12064. The main things grep needs to know about mmap are:
  12065. * does it exist and is it safe to write into the mmap'd area
  12066. * how to use it (BSD variants) */
  12067. #include <fcntl.h>
  12068. #include <sys/mman.h>
  12069. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  12070. char *malloc ();
  12071. #endif
  12072. /* This mess was copied from the GNU getpagesize.h. */
  12073. #ifndef HAVE_GETPAGESIZE
  12074. /* Assume that all systems that can run configure have sys/param.h. */
  12075. # ifndef HAVE_SYS_PARAM_H
  12076. # define HAVE_SYS_PARAM_H 1
  12077. # endif
  12078. # ifdef _SC_PAGESIZE
  12079. # define getpagesize() sysconf(_SC_PAGESIZE)
  12080. # else /* no _SC_PAGESIZE */
  12081. # ifdef HAVE_SYS_PARAM_H
  12082. # include <sys/param.h>
  12083. # ifdef EXEC_PAGESIZE
  12084. # define getpagesize() EXEC_PAGESIZE
  12085. # else /* no EXEC_PAGESIZE */
  12086. # ifdef NBPG
  12087. # define getpagesize() NBPG * CLSIZE
  12088. # ifndef CLSIZE
  12089. # define CLSIZE 1
  12090. # endif /* no CLSIZE */
  12091. # else /* no NBPG */
  12092. # ifdef NBPC
  12093. # define getpagesize() NBPC
  12094. # else /* no NBPC */
  12095. # ifdef PAGESIZE
  12096. # define getpagesize() PAGESIZE
  12097. # endif /* PAGESIZE */
  12098. # endif /* no NBPC */
  12099. # endif /* no NBPG */
  12100. # endif /* no EXEC_PAGESIZE */
  12101. # else /* no HAVE_SYS_PARAM_H */
  12102. # define getpagesize() 8192 /* punt totally */
  12103. # endif /* no HAVE_SYS_PARAM_H */
  12104. # endif /* no _SC_PAGESIZE */
  12105. #endif /* no HAVE_GETPAGESIZE */
  12106. int
  12107. main ()
  12108. {
  12109. char *data, *data2, *data3;
  12110. int i, pagesize;
  12111. int fd;
  12112. pagesize = getpagesize ();
  12113. /* First, make a file with some known garbage in it. */
  12114. data = (char *) malloc (pagesize);
  12115. if (!data)
  12116. return 1;
  12117. for (i = 0; i < pagesize; ++i)
  12118. *(data + i) = rand ();
  12119. umask (0);
  12120. fd = creat ("conftest.mmap", 0600);
  12121. if (fd < 0)
  12122. return 1;
  12123. if (write (fd, data, pagesize) != pagesize)
  12124. return 1;
  12125. close (fd);
  12126. /* Next, try to mmap the file at a fixed address which already has
  12127. something else allocated at it. If we can, also make sure that
  12128. we see the same garbage. */
  12129. fd = open ("conftest.mmap", O_RDWR);
  12130. if (fd < 0)
  12131. return 1;
  12132. data2 = (char *) malloc (2 * pagesize);
  12133. if (!data2)
  12134. return 1;
  12135. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  12136. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  12137. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  12138. return 1;
  12139. for (i = 0; i < pagesize; ++i)
  12140. if (*(data + i) != *(data2 + i))
  12141. return 1;
  12142. /* Finally, make sure that changes to the mapped area do not
  12143. percolate back to the file as seen by read(). (This is a bug on
  12144. some variants of i386 svr4.0.) */
  12145. for (i = 0; i < pagesize; ++i)
  12146. *(data2 + i) = *(data2 + i) + 1;
  12147. data3 = (char *) malloc (pagesize);
  12148. if (!data3)
  12149. return 1;
  12150. if (read (fd, data3, pagesize) != pagesize)
  12151. return 1;
  12152. for (i = 0; i < pagesize; ++i)
  12153. if (*(data + i) != *(data3 + i))
  12154. return 1;
  12155. close (fd);
  12156. return 0;
  12157. }
  12158. _ACEOF
  12159. if ac_fn_cxx_try_run "$LINENO"; then :
  12160. ac_cv_func_mmap_fixed_mapped=yes
  12161. else
  12162. ac_cv_func_mmap_fixed_mapped=no
  12163. fi
  12164. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12165. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12166. fi
  12167. fi
  12168. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  12169. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  12170. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  12171. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  12172. fi
  12173. rm -f conftest.mmap
  12174. for ac_header in sys/select.h sys/socket.h
  12175. do :
  12176. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  12177. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  12178. eval as_val=\$$as_ac_Header
  12179. if test "x$as_val" = x""yes; then :
  12180. cat >>confdefs.h <<_ACEOF
  12181. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  12182. _ACEOF
  12183. fi
  12184. done
  12185. { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
  12186. $as_echo_n "checking types of arguments for select... " >&6; }
  12187. if test "${ac_cv_func_select_args+set}" = set; then :
  12188. $as_echo_n "(cached) " >&6
  12189. else
  12190. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  12191. for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
  12192. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  12193. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12194. /* end confdefs.h. */
  12195. $ac_includes_default
  12196. #ifdef HAVE_SYS_SELECT_H
  12197. # include <sys/select.h>
  12198. #endif
  12199. #ifdef HAVE_SYS_SOCKET_H
  12200. # include <sys/socket.h>
  12201. #endif
  12202. int
  12203. main ()
  12204. {
  12205. extern int select ($ac_arg1,
  12206. $ac_arg234, $ac_arg234, $ac_arg234,
  12207. $ac_arg5);
  12208. ;
  12209. return 0;
  12210. }
  12211. _ACEOF
  12212. if ac_fn_cxx_try_compile "$LINENO"; then :
  12213. ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  12214. fi
  12215. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12216. done
  12217. done
  12218. done
  12219. # Provide a safe default value.
  12220. : ${ac_cv_func_select_args='int,int *,struct timeval *'}
  12221. fi
  12222. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
  12223. $as_echo "$ac_cv_func_select_args" >&6; }
  12224. ac_save_IFS=$IFS; IFS=','
  12225. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  12226. IFS=$ac_save_IFS
  12227. shift
  12228. cat >>confdefs.h <<_ACEOF
  12229. #define SELECT_TYPE_ARG1 $1
  12230. _ACEOF
  12231. cat >>confdefs.h <<_ACEOF
  12232. #define SELECT_TYPE_ARG234 ($2)
  12233. _ACEOF
  12234. cat >>confdefs.h <<_ACEOF
  12235. #define SELECT_TYPE_ARG5 ($3)
  12236. _ACEOF
  12237. rm -f conftest*
  12238. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  12239. $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
  12240. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
  12241. $as_echo_n "(cached) " >&6
  12242. else
  12243. rm -f conftest.sym conftest.file
  12244. echo >conftest.file
  12245. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  12246. if test "$cross_compiling" = yes; then :
  12247. ac_cv_func_lstat_dereferences_slashed_symlink=no
  12248. else
  12249. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12250. /* end confdefs.h. */
  12251. $ac_includes_default
  12252. int
  12253. main ()
  12254. {
  12255. struct stat sbuf;
  12256. /* Linux will dereference the symlink and fail.
  12257. That is better in the sense that it means we will not
  12258. have to compile and use the lstat wrapper. */
  12259. return lstat ("conftest.sym/", &sbuf) == 0;
  12260. ;
  12261. return 0;
  12262. }
  12263. _ACEOF
  12264. if ac_fn_cxx_try_run "$LINENO"; then :
  12265. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  12266. else
  12267. ac_cv_func_lstat_dereferences_slashed_symlink=no
  12268. fi
  12269. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12270. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12271. fi
  12272. else
  12273. # If the `ln -s' command failed, then we probably don't even
  12274. # have an lstat function.
  12275. ac_cv_func_lstat_dereferences_slashed_symlink=no
  12276. fi
  12277. rm -f conftest.sym conftest.file
  12278. fi
  12279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  12280. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  12281. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  12282. cat >>confdefs.h <<_ACEOF
  12283. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  12284. _ACEOF
  12285. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  12286. case " $LIBOBJS " in
  12287. *" lstat.$ac_objext "* ) ;;
  12288. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  12289. ;;
  12290. esac
  12291. fi
  12292. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
  12293. $as_echo_n "checking whether stat accepts an empty string... " >&6; }
  12294. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
  12295. $as_echo_n "(cached) " >&6
  12296. else
  12297. if test "$cross_compiling" = yes; then :
  12298. ac_cv_func_stat_empty_string_bug=yes
  12299. else
  12300. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12301. /* end confdefs.h. */
  12302. $ac_includes_default
  12303. int
  12304. main ()
  12305. {
  12306. struct stat sbuf;
  12307. return stat ("", &sbuf) == 0;
  12308. ;
  12309. return 0;
  12310. }
  12311. _ACEOF
  12312. if ac_fn_cxx_try_run "$LINENO"; then :
  12313. ac_cv_func_stat_empty_string_bug=no
  12314. else
  12315. ac_cv_func_stat_empty_string_bug=yes
  12316. fi
  12317. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12318. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12319. fi
  12320. fi
  12321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
  12322. $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
  12323. if test $ac_cv_func_stat_empty_string_bug = yes; then
  12324. case " $LIBOBJS " in
  12325. *" stat.$ac_objext "* ) ;;
  12326. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  12327. ;;
  12328. esac
  12329. cat >>confdefs.h <<_ACEOF
  12330. #define HAVE_STAT_EMPTY_STRING_BUG 1
  12331. _ACEOF
  12332. fi
  12333. for ac_func in strftime
  12334. do :
  12335. ac_fn_cxx_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
  12336. if test "x$ac_cv_func_strftime" = x""yes; then :
  12337. cat >>confdefs.h <<_ACEOF
  12338. #define HAVE_STRFTIME 1
  12339. _ACEOF
  12340. else
  12341. # strftime is in -lintl on SCO UNIX.
  12342. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
  12343. $as_echo_n "checking for strftime in -lintl... " >&6; }
  12344. if test "${ac_cv_lib_intl_strftime+set}" = set; then :
  12345. $as_echo_n "(cached) " >&6
  12346. else
  12347. ac_check_lib_save_LIBS=$LIBS
  12348. LIBS="-lintl $LIBS"
  12349. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12350. /* end confdefs.h. */
  12351. /* Override any GCC internal prototype to avoid an error.
  12352. Use char because int might match the return type of a GCC
  12353. builtin and then its argument prototype would still apply. */
  12354. #ifdef __cplusplus
  12355. extern "C"
  12356. #endif
  12357. char strftime ();
  12358. int
  12359. main ()
  12360. {
  12361. return strftime ();
  12362. ;
  12363. return 0;
  12364. }
  12365. _ACEOF
  12366. if ac_fn_cxx_try_link "$LINENO"; then :
  12367. ac_cv_lib_intl_strftime=yes
  12368. else
  12369. ac_cv_lib_intl_strftime=no
  12370. fi
  12371. rm -f core conftest.err conftest.$ac_objext \
  12372. conftest$ac_exeext conftest.$ac_ext
  12373. LIBS=$ac_check_lib_save_LIBS
  12374. fi
  12375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
  12376. $as_echo "$ac_cv_lib_intl_strftime" >&6; }
  12377. if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
  12378. $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
  12379. LIBS="-lintl $LIBS"
  12380. fi
  12381. fi
  12382. done
  12383. for ac_func in vprintf
  12384. do :
  12385. ac_fn_cxx_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
  12386. if test "x$ac_cv_func_vprintf" = x""yes; then :
  12387. cat >>confdefs.h <<_ACEOF
  12388. #define HAVE_VPRINTF 1
  12389. _ACEOF
  12390. ac_fn_cxx_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
  12391. if test "x$ac_cv_func__doprnt" = x""yes; then :
  12392. $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
  12393. fi
  12394. fi
  12395. done
  12396. for ac_header in vfork.h
  12397. do :
  12398. ac_fn_cxx_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
  12399. if test "x$ac_cv_header_vfork_h" = x""yes; then :
  12400. cat >>confdefs.h <<_ACEOF
  12401. #define HAVE_VFORK_H 1
  12402. _ACEOF
  12403. fi
  12404. done
  12405. for ac_func in fork vfork
  12406. do :
  12407. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12408. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  12409. eval as_val=\$$as_ac_var
  12410. if test "x$as_val" = x""yes; then :
  12411. cat >>confdefs.h <<_ACEOF
  12412. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12413. _ACEOF
  12414. fi
  12415. done
  12416. if test "x$ac_cv_func_fork" = xyes; then
  12417. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  12418. $as_echo_n "checking for working fork... " >&6; }
  12419. if test "${ac_cv_func_fork_works+set}" = set; then :
  12420. $as_echo_n "(cached) " >&6
  12421. else
  12422. if test "$cross_compiling" = yes; then :
  12423. ac_cv_func_fork_works=cross
  12424. else
  12425. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12426. /* end confdefs.h. */
  12427. $ac_includes_default
  12428. int
  12429. main ()
  12430. {
  12431. /* By Ruediger Kuhlmann. */
  12432. return fork () < 0;
  12433. ;
  12434. return 0;
  12435. }
  12436. _ACEOF
  12437. if ac_fn_cxx_try_run "$LINENO"; then :
  12438. ac_cv_func_fork_works=yes
  12439. else
  12440. ac_cv_func_fork_works=no
  12441. fi
  12442. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12443. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12444. fi
  12445. fi
  12446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  12447. $as_echo "$ac_cv_func_fork_works" >&6; }
  12448. else
  12449. ac_cv_func_fork_works=$ac_cv_func_fork
  12450. fi
  12451. if test "x$ac_cv_func_fork_works" = xcross; then
  12452. case $host in
  12453. *-*-amigaos* | *-*-msdosdjgpp*)
  12454. # Override, as these systems have only a dummy fork() stub
  12455. ac_cv_func_fork_works=no
  12456. ;;
  12457. *)
  12458. ac_cv_func_fork_works=yes
  12459. ;;
  12460. esac
  12461. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  12462. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  12463. fi
  12464. ac_cv_func_vfork_works=$ac_cv_func_vfork
  12465. if test "x$ac_cv_func_vfork" = xyes; then
  12466. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  12467. $as_echo_n "checking for working vfork... " >&6; }
  12468. if test "${ac_cv_func_vfork_works+set}" = set; then :
  12469. $as_echo_n "(cached) " >&6
  12470. else
  12471. if test "$cross_compiling" = yes; then :
  12472. ac_cv_func_vfork_works=cross
  12473. else
  12474. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12475. /* end confdefs.h. */
  12476. /* Thanks to Paul Eggert for this test. */
  12477. $ac_includes_default
  12478. #include <sys/wait.h>
  12479. #ifdef HAVE_VFORK_H
  12480. # include <vfork.h>
  12481. #endif
  12482. /* On some sparc systems, changes by the child to local and incoming
  12483. argument registers are propagated back to the parent. The compiler
  12484. is told about this with #include <vfork.h>, but some compilers
  12485. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  12486. static variable whose address is put into a register that is
  12487. clobbered by the vfork. */
  12488. static void
  12489. #ifdef __cplusplus
  12490. sparc_address_test (int arg)
  12491. # else
  12492. sparc_address_test (arg) int arg;
  12493. #endif
  12494. {
  12495. static pid_t child;
  12496. if (!child) {
  12497. child = vfork ();
  12498. if (child < 0) {
  12499. perror ("vfork");
  12500. _exit(2);
  12501. }
  12502. if (!child) {
  12503. arg = getpid();
  12504. write(-1, "", 0);
  12505. _exit (arg);
  12506. }
  12507. }
  12508. }
  12509. int
  12510. main ()
  12511. {
  12512. pid_t parent = getpid ();
  12513. pid_t child;
  12514. sparc_address_test (0);
  12515. child = vfork ();
  12516. if (child == 0) {
  12517. /* Here is another test for sparc vfork register problems. This
  12518. test uses lots of local variables, at least as many local
  12519. variables as main has allocated so far including compiler
  12520. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  12521. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  12522. reuse the register of parent for one of the local variables,
  12523. since it will think that parent can't possibly be used any more
  12524. in this routine. Assigning to the local variable will thus
  12525. munge parent in the parent process. */
  12526. pid_t
  12527. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  12528. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  12529. /* Convince the compiler that p..p7 are live; otherwise, it might
  12530. use the same hardware register for all 8 local variables. */
  12531. if (p != p1 || p != p2 || p != p3 || p != p4
  12532. || p != p5 || p != p6 || p != p7)
  12533. _exit(1);
  12534. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  12535. from child file descriptors. If the child closes a descriptor
  12536. before it execs or exits, this munges the parent's descriptor
  12537. as well. Test for this by closing stdout in the child. */
  12538. _exit(close(fileno(stdout)) != 0);
  12539. } else {
  12540. int status;
  12541. struct stat st;
  12542. while (wait(&status) != child)
  12543. ;
  12544. return (
  12545. /* Was there some problem with vforking? */
  12546. child < 0
  12547. /* Did the child fail? (This shouldn't happen.) */
  12548. || status
  12549. /* Did the vfork/compiler bug occur? */
  12550. || parent != getpid()
  12551. /* Did the file descriptor bug occur? */
  12552. || fstat(fileno(stdout), &st) != 0
  12553. );
  12554. }
  12555. }
  12556. _ACEOF
  12557. if ac_fn_cxx_try_run "$LINENO"; then :
  12558. ac_cv_func_vfork_works=yes
  12559. else
  12560. ac_cv_func_vfork_works=no
  12561. fi
  12562. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12563. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12564. fi
  12565. fi
  12566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  12567. $as_echo "$ac_cv_func_vfork_works" >&6; }
  12568. fi;
  12569. if test "x$ac_cv_func_fork_works" = xcross; then
  12570. ac_cv_func_vfork_works=$ac_cv_func_vfork
  12571. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  12572. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  12573. fi
  12574. if test "x$ac_cv_func_vfork_works" = xyes; then
  12575. $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
  12576. else
  12577. $as_echo "#define vfork fork" >>confdefs.h
  12578. fi
  12579. if test "x$ac_cv_func_fork_works" = xyes; then
  12580. $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
  12581. fi
  12582. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  12583. $as_echo_n "checking for working strtod... " >&6; }
  12584. if test "${ac_cv_func_strtod+set}" = set; then :
  12585. $as_echo_n "(cached) " >&6
  12586. else
  12587. if test "$cross_compiling" = yes; then :
  12588. ac_cv_func_strtod=no
  12589. else
  12590. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12591. /* end confdefs.h. */
  12592. $ac_includes_default
  12593. #ifndef strtod
  12594. double strtod ();
  12595. #endif
  12596. int
  12597. main()
  12598. {
  12599. {
  12600. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  12601. char *string = " +69";
  12602. char *term;
  12603. double value;
  12604. value = strtod (string, &term);
  12605. if (value != 69 || term != (string + 4))
  12606. return 1;
  12607. }
  12608. {
  12609. /* Under Solaris 2.4, strtod returns the wrong value for the
  12610. terminating character under some conditions. */
  12611. char *string = "NaN";
  12612. char *term;
  12613. strtod (string, &term);
  12614. if (term != string && *(term - 1) == 0)
  12615. return 1;
  12616. }
  12617. return 0;
  12618. }
  12619. _ACEOF
  12620. if ac_fn_cxx_try_run "$LINENO"; then :
  12621. ac_cv_func_strtod=yes
  12622. else
  12623. ac_cv_func_strtod=no
  12624. fi
  12625. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12626. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12627. fi
  12628. fi
  12629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  12630. $as_echo "$ac_cv_func_strtod" >&6; }
  12631. if test $ac_cv_func_strtod = no; then
  12632. case " $LIBOBJS " in
  12633. *" strtod.$ac_objext "* ) ;;
  12634. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  12635. ;;
  12636. esac
  12637. ac_fn_cxx_check_func "$LINENO" "pow" "ac_cv_func_pow"
  12638. if test "x$ac_cv_func_pow" = x""yes; then :
  12639. fi
  12640. if test $ac_cv_func_pow = no; then
  12641. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  12642. $as_echo_n "checking for pow in -lm... " >&6; }
  12643. if test "${ac_cv_lib_m_pow+set}" = set; then :
  12644. $as_echo_n "(cached) " >&6
  12645. else
  12646. ac_check_lib_save_LIBS=$LIBS
  12647. LIBS="-lm $LIBS"
  12648. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12649. /* end confdefs.h. */
  12650. /* Override any GCC internal prototype to avoid an error.
  12651. Use char because int might match the return type of a GCC
  12652. builtin and then its argument prototype would still apply. */
  12653. #ifdef __cplusplus
  12654. extern "C"
  12655. #endif
  12656. char pow ();
  12657. int
  12658. main ()
  12659. {
  12660. return pow ();
  12661. ;
  12662. return 0;
  12663. }
  12664. _ACEOF
  12665. if ac_fn_cxx_try_link "$LINENO"; then :
  12666. ac_cv_lib_m_pow=yes
  12667. else
  12668. ac_cv_lib_m_pow=no
  12669. fi
  12670. rm -f core conftest.err conftest.$ac_objext \
  12671. conftest$ac_exeext conftest.$ac_ext
  12672. LIBS=$ac_check_lib_save_LIBS
  12673. fi
  12674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  12675. $as_echo "$ac_cv_lib_m_pow" >&6; }
  12676. if test "x$ac_cv_lib_m_pow" = x""yes; then :
  12677. POW_LIB=-lm
  12678. else
  12679. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  12680. $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  12681. fi
  12682. fi
  12683. fi
  12684. for ac_func in __argz_count \
  12685. __argz_next \
  12686. __argz_stringify \
  12687. atexit \
  12688. ftruncate \
  12689. getcwd \
  12690. gethostbyaddr \
  12691. gethostbyname \
  12692. getpagesize \
  12693. inet_ntoa \
  12694. memchr \
  12695. memmove \
  12696. mempcpy \
  12697. memset \
  12698. mkdir \
  12699. munmap \
  12700. nl_langinfo \
  12701. posix_memalign \
  12702. pow \
  12703. putenv \
  12704. rmdir \
  12705. select \
  12706. setlocale \
  12707. sleep \
  12708. socket \
  12709. stpcpy \
  12710. strcasecmp \
  12711. strchr \
  12712. strcspn \
  12713. strdup \
  12714. strerror \
  12715. strncasecmp \
  12716. strstr \
  12717. strtol \
  12718. strtoul \
  12719. strtoull \
  12720. tzset \
  12721. unsetenv \
  12722. usleep \
  12723. utime
  12724. do :
  12725. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12726. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  12727. eval as_val=\$$as_ac_var
  12728. if test "x$as_val" = x""yes; then :
  12729. cat >>confdefs.h <<_ACEOF
  12730. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12731. _ACEOF
  12732. fi
  12733. done
  12734. if test "x$enable_epoll" = "xyes"; then
  12735. for ac_func in epoll_create
  12736. do :
  12737. ac_fn_cxx_check_func "$LINENO" "epoll_create" "ac_cv_func_epoll_create"
  12738. if test "x$ac_cv_func_epoll_create" = x""yes; then :
  12739. cat >>confdefs.h <<_ACEOF
  12740. #define HAVE_EPOLL_CREATE 1
  12741. _ACEOF
  12742. have_epoll=yes
  12743. fi
  12744. done
  12745. if test "x$have_epoll" = "xyes"; then
  12746. $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
  12747. fi
  12748. fi
  12749. if test "x$have_epoll" = "xyes"; then
  12750. HAVE_EPOLL_TRUE=
  12751. HAVE_EPOLL_FALSE='#'
  12752. else
  12753. HAVE_EPOLL_TRUE='#'
  12754. HAVE_EPOLL_FALSE=
  12755. fi
  12756. for ac_func in posix_fallocate
  12757. do :
  12758. ac_fn_cxx_check_func "$LINENO" "posix_fallocate" "ac_cv_func_posix_fallocate"
  12759. if test "x$ac_cv_func_posix_fallocate" = x""yes; then :
  12760. cat >>confdefs.h <<_ACEOF
  12761. #define HAVE_POSIX_FALLOCATE 1
  12762. _ACEOF
  12763. have_posix_fallocate=yes
  12764. fi
  12765. done
  12766. if test "x$have_posix_fallocate" = "xyes"; then
  12767. HAVE_POSIX_FALLOCATE_TRUE=
  12768. HAVE_POSIX_FALLOCATE_FALSE='#'
  12769. else
  12770. HAVE_POSIX_FALLOCATE_TRUE='#'
  12771. HAVE_POSIX_FALLOCATE_FALSE=
  12772. fi
  12773. for ac_func in asctime_r
  12774. do :
  12775. ac_fn_cxx_check_func "$LINENO" "asctime_r" "ac_cv_func_asctime_r"
  12776. if test "x$ac_cv_func_asctime_r" = x""yes; then :
  12777. cat >>confdefs.h <<_ACEOF
  12778. #define HAVE_ASCTIME_R 1
  12779. _ACEOF
  12780. if true; then
  12781. HAVE_ASCTIME_R_TRUE=
  12782. HAVE_ASCTIME_R_FALSE='#'
  12783. else
  12784. HAVE_ASCTIME_R_TRUE='#'
  12785. HAVE_ASCTIME_R_FALSE=
  12786. fi
  12787. else
  12788. if false; then
  12789. HAVE_ASCTIME_R_TRUE=
  12790. HAVE_ASCTIME_R_FALSE='#'
  12791. else
  12792. HAVE_ASCTIME_R_TRUE='#'
  12793. HAVE_ASCTIME_R_FALSE=
  12794. fi
  12795. fi
  12796. done
  12797. for ac_func in basename
  12798. do :
  12799. ac_fn_cxx_check_func "$LINENO" "basename" "ac_cv_func_basename"
  12800. if test "x$ac_cv_func_basename" = x""yes; then :
  12801. cat >>confdefs.h <<_ACEOF
  12802. #define HAVE_BASENAME 1
  12803. _ACEOF
  12804. if true; then
  12805. HAVE_BASENAME_TRUE=
  12806. HAVE_BASENAME_FALSE='#'
  12807. else
  12808. HAVE_BASENAME_TRUE='#'
  12809. HAVE_BASENAME_FALSE=
  12810. fi
  12811. else
  12812. if false; then
  12813. HAVE_BASENAME_TRUE=
  12814. HAVE_BASENAME_FALSE='#'
  12815. else
  12816. HAVE_BASENAME_TRUE='#'
  12817. HAVE_BASENAME_FALSE=
  12818. fi
  12819. fi
  12820. done
  12821. for ac_func in gai_strerror
  12822. do :
  12823. ac_fn_cxx_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
  12824. if test "x$ac_cv_func_gai_strerror" = x""yes; then :
  12825. cat >>confdefs.h <<_ACEOF
  12826. #define HAVE_GAI_STRERROR 1
  12827. _ACEOF
  12828. if true; then
  12829. HAVE_GAI_STRERROR_TRUE=
  12830. HAVE_GAI_STRERROR_FALSE='#'
  12831. else
  12832. HAVE_GAI_STRERROR_TRUE='#'
  12833. HAVE_GAI_STRERROR_FALSE=
  12834. fi
  12835. else
  12836. if false; then
  12837. HAVE_GAI_STRERROR_TRUE=
  12838. HAVE_GAI_STRERROR_FALSE='#'
  12839. else
  12840. HAVE_GAI_STRERROR_TRUE='#'
  12841. HAVE_GAI_STRERROR_FALSE=
  12842. fi
  12843. fi
  12844. done
  12845. for ac_func in getaddrinfo
  12846. do :
  12847. ac_fn_cxx_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
  12848. if test "x$ac_cv_func_getaddrinfo" = x""yes; then :
  12849. cat >>confdefs.h <<_ACEOF
  12850. #define HAVE_GETADDRINFO 1
  12851. _ACEOF
  12852. if true; then
  12853. HAVE_GETADDRINFO_TRUE=
  12854. HAVE_GETADDRINFO_FALSE='#'
  12855. else
  12856. HAVE_GETADDRINFO_TRUE='#'
  12857. HAVE_GETADDRINFO_FALSE=
  12858. fi
  12859. else
  12860. if false; then
  12861. HAVE_GETADDRINFO_TRUE=
  12862. HAVE_GETADDRINFO_FALSE='#'
  12863. else
  12864. HAVE_GETADDRINFO_TRUE='#'
  12865. HAVE_GETADDRINFO_FALSE=
  12866. fi
  12867. fi
  12868. done
  12869. for ac_func in gettimeofday
  12870. do :
  12871. ac_fn_cxx_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
  12872. if test "x$ac_cv_func_gettimeofday" = x""yes; then :
  12873. cat >>confdefs.h <<_ACEOF
  12874. #define HAVE_GETTIMEOFDAY 1
  12875. _ACEOF
  12876. if true; then
  12877. HAVE_GETTIMEOFDAY_TRUE=
  12878. HAVE_GETTIMEOFDAY_FALSE='#'
  12879. else
  12880. HAVE_GETTIMEOFDAY_TRUE='#'
  12881. HAVE_GETTIMEOFDAY_FALSE=
  12882. fi
  12883. else
  12884. if false; then
  12885. HAVE_GETTIMEOFDAY_TRUE=
  12886. HAVE_GETTIMEOFDAY_FALSE='#'
  12887. else
  12888. HAVE_GETTIMEOFDAY_TRUE='#'
  12889. HAVE_GETTIMEOFDAY_FALSE=
  12890. fi
  12891. fi
  12892. done
  12893. for ac_func in inet_aton
  12894. do :
  12895. ac_fn_cxx_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
  12896. if test "x$ac_cv_func_inet_aton" = x""yes; then :
  12897. cat >>confdefs.h <<_ACEOF
  12898. #define HAVE_INET_ATON 1
  12899. _ACEOF
  12900. if true; then
  12901. HAVE_INET_ATON_TRUE=
  12902. HAVE_INET_ATON_FALSE='#'
  12903. else
  12904. HAVE_INET_ATON_TRUE='#'
  12905. HAVE_INET_ATON_FALSE=
  12906. fi
  12907. else
  12908. if false; then
  12909. HAVE_INET_ATON_TRUE=
  12910. HAVE_INET_ATON_FALSE='#'
  12911. else
  12912. HAVE_INET_ATON_TRUE='#'
  12913. HAVE_INET_ATON_FALSE=
  12914. fi
  12915. fi
  12916. done
  12917. for ac_func in localtime_r
  12918. do :
  12919. ac_fn_cxx_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r"
  12920. if test "x$ac_cv_func_localtime_r" = x""yes; then :
  12921. cat >>confdefs.h <<_ACEOF
  12922. #define HAVE_LOCALTIME_R 1
  12923. _ACEOF
  12924. if true; then
  12925. HAVE_LOCALTIME_R_TRUE=
  12926. HAVE_LOCALTIME_R_FALSE='#'
  12927. else
  12928. HAVE_LOCALTIME_R_TRUE='#'
  12929. HAVE_LOCALTIME_R_FALSE=
  12930. fi
  12931. else
  12932. if false; then
  12933. HAVE_LOCALTIME_R_TRUE=
  12934. HAVE_LOCALTIME_R_FALSE='#'
  12935. else
  12936. HAVE_LOCALTIME_R_TRUE='#'
  12937. HAVE_LOCALTIME_R_FALSE=
  12938. fi
  12939. fi
  12940. done
  12941. for ac_func in strptime
  12942. do :
  12943. ac_fn_cxx_check_func "$LINENO" "strptime" "ac_cv_func_strptime"
  12944. if test "x$ac_cv_func_strptime" = x""yes; then :
  12945. cat >>confdefs.h <<_ACEOF
  12946. #define HAVE_STRPTIME 1
  12947. _ACEOF
  12948. if true; then
  12949. HAVE_STRPTIME_TRUE=
  12950. HAVE_STRPTIME_FALSE='#'
  12951. else
  12952. HAVE_STRPTIME_TRUE='#'
  12953. HAVE_STRPTIME_FALSE=
  12954. fi
  12955. else
  12956. if false; then
  12957. HAVE_STRPTIME_TRUE=
  12958. HAVE_STRPTIME_FALSE='#'
  12959. else
  12960. HAVE_STRPTIME_TRUE='#'
  12961. HAVE_STRPTIME_FALSE=
  12962. fi
  12963. fi
  12964. done
  12965. for ac_func in timegm
  12966. do :
  12967. ac_fn_cxx_check_func "$LINENO" "timegm" "ac_cv_func_timegm"
  12968. if test "x$ac_cv_func_timegm" = x""yes; then :
  12969. cat >>confdefs.h <<_ACEOF
  12970. #define HAVE_TIMEGM 1
  12971. _ACEOF
  12972. if true; then
  12973. HAVE_TIMEGM_TRUE=
  12974. HAVE_TIMEGM_FALSE='#'
  12975. else
  12976. HAVE_TIMEGM_TRUE='#'
  12977. HAVE_TIMEGM_FALSE=
  12978. fi
  12979. else
  12980. if false; then
  12981. HAVE_TIMEGM_TRUE=
  12982. HAVE_TIMEGM_FALSE='#'
  12983. else
  12984. HAVE_TIMEGM_TRUE='#'
  12985. HAVE_TIMEGM_FALSE=
  12986. fi
  12987. fi
  12988. done
  12989. for ac_func in daemon
  12990. do :
  12991. ac_fn_cxx_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
  12992. if test "x$ac_cv_func_daemon" = x""yes; then :
  12993. cat >>confdefs.h <<_ACEOF
  12994. #define HAVE_DAEMON 1
  12995. _ACEOF
  12996. have_daemon=yes
  12997. fi
  12998. done
  12999. if test "x$have_daemon" = "xyes"; then
  13000. HAVE_DAEMON_TRUE=
  13001. HAVE_DAEMON_FALSE='#'
  13002. else
  13003. HAVE_DAEMON_TRUE='#'
  13004. HAVE_DAEMON_FALSE=
  13005. fi
  13006. case "$target" in
  13007. *mingw*)
  13008. if true; then
  13009. HAVE_GETADDRINFO_TRUE=
  13010. HAVE_GETADDRINFO_FALSE='#'
  13011. else
  13012. HAVE_GETADDRINFO_TRUE='#'
  13013. HAVE_GETADDRINFO_FALSE=
  13014. fi
  13015. if false; then
  13016. HAVE_GAI_STRERROR_TRUE=
  13017. HAVE_GAI_STRERROR_FALSE='#'
  13018. else
  13019. HAVE_GAI_STRERROR_TRUE='#'
  13020. HAVE_GAI_STRERROR_FALSE=
  13021. fi
  13022. ;;
  13023. esac
  13024. ac_fn_cxx_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <netinet/in.h>
  13025. "
  13026. if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = x""yes; then :
  13027. $as_echo "#define HAVE_SOCKADDR_IN_SIN_LEN 1" >>confdefs.h
  13028. fi
  13029. # Check struct option.name is assignable from const char*. struct
  13030. # option.name in opensolaris is of type char*. In Linux, it is const
  13031. # char*
  13032. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct option.name is assignable from const char*" >&5
  13033. $as_echo_n "checking whether struct option.name is assignable from const char*... " >&6; }
  13034. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13035. /* end confdefs.h. */
  13036. #include <unistd.h>
  13037. #include <getopt.h>
  13038. int
  13039. main ()
  13040. {
  13041. const char* s = "const char";
  13042. option op;
  13043. op.name = s;
  13044. ;
  13045. return 0;
  13046. }
  13047. _ACEOF
  13048. if ac_fn_cxx_try_compile "$LINENO"; then :
  13049. have_option_const_name=yes
  13050. else
  13051. have_option_const_name=no
  13052. fi
  13053. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_option_const_name" >&5
  13055. $as_echo "$have_option_const_name" >&6; }
  13056. if test "x$have_option_const_name" = "xyes"; then
  13057. $as_echo "#define HAVE_OPTION_CONST_NAME 1" >>confdefs.h
  13058. fi
  13059. ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile po/Makefile.in intl/Makefile lib/Makefile doc/Makefile"
  13060. cat >confcache <<\_ACEOF
  13061. # This file is a shell script that caches the results of configure
  13062. # tests run on this system so they can be shared between configure
  13063. # scripts and configure runs, see configure's option --config-cache.
  13064. # It is not useful on other systems. If it contains results you don't
  13065. # want to keep, you may remove or edit it.
  13066. #
  13067. # config.status only pays attention to the cache file if you give it
  13068. # the --recheck option to rerun configure.
  13069. #
  13070. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  13071. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  13072. # following values.
  13073. _ACEOF
  13074. # The following way of writing the cache mishandles newlines in values,
  13075. # but we know of no workaround that is simple, portable, and efficient.
  13076. # So, we kill variables containing newlines.
  13077. # Ultrix sh set writes to stderr and can't be redirected directly,
  13078. # and sets the high bit in the cache file unless we assign to the vars.
  13079. (
  13080. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  13081. eval ac_val=\$$ac_var
  13082. case $ac_val in #(
  13083. *${as_nl}*)
  13084. case $ac_var in #(
  13085. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  13086. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  13087. esac
  13088. case $ac_var in #(
  13089. _ | IFS | as_nl) ;; #(
  13090. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  13091. *) { eval $ac_var=; unset $ac_var;} ;;
  13092. esac ;;
  13093. esac
  13094. done
  13095. (set) 2>&1 |
  13096. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  13097. *${as_nl}ac_space=\ *)
  13098. # `set' does not quote correctly, so add quotes: double-quote
  13099. # substitution turns \\\\ into \\, and sed turns \\ into \.
  13100. sed -n \
  13101. "s/'/'\\\\''/g;
  13102. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  13103. ;; #(
  13104. *)
  13105. # `set' quotes correctly as required by POSIX, so do not add quotes.
  13106. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  13107. ;;
  13108. esac |
  13109. sort
  13110. ) |
  13111. sed '
  13112. /^ac_cv_env_/b end
  13113. t clear
  13114. :clear
  13115. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  13116. t end
  13117. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  13118. :end' >>confcache
  13119. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  13120. if test -w "$cache_file"; then
  13121. test "x$cache_file" != "x/dev/null" &&
  13122. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  13123. $as_echo "$as_me: updating cache $cache_file" >&6;}
  13124. cat confcache >$cache_file
  13125. else
  13126. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  13127. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  13128. fi
  13129. fi
  13130. rm -f confcache
  13131. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  13132. # Let make expand exec_prefix.
  13133. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  13134. DEFS=-DHAVE_CONFIG_H
  13135. ac_libobjs=
  13136. ac_ltlibobjs=
  13137. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  13138. # 1. Remove the extension, and $U if already installed.
  13139. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  13140. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  13141. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  13142. # will be set to the directory where LIBOBJS objects are built.
  13143. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  13144. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  13145. done
  13146. LIBOBJS=$ac_libobjs
  13147. LTLIBOBJS=$ac_ltlibobjs
  13148. if test -n "$EXEEXT"; then
  13149. am__EXEEXT_TRUE=
  13150. am__EXEEXT_FALSE='#'
  13151. else
  13152. am__EXEEXT_TRUE='#'
  13153. am__EXEEXT_FALSE=
  13154. fi
  13155. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  13156. as_fn_error "conditional \"AMDEP\" was never defined.
  13157. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13158. fi
  13159. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  13160. as_fn_error "conditional \"am__fastdepCXX\" was never defined.
  13161. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13162. fi
  13163. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  13164. as_fn_error "conditional \"am__fastdepCC\" was never defined.
  13165. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13166. fi
  13167. if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
  13168. as_fn_error "conditional \"ENABLE_SSL\" was never defined.
  13169. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13170. fi
  13171. if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
  13172. as_fn_error "conditional \"ENABLE_SSL\" was never defined.
  13173. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13174. fi
  13175. if test -z "${HAVE_LIBGNUTLS_TRUE}" && test -z "${HAVE_LIBGNUTLS_FALSE}"; then
  13176. as_fn_error "conditional \"HAVE_LIBGNUTLS\" was never defined.
  13177. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13178. fi
  13179. if test -z "${HAVE_LIBSSL_TRUE}" && test -z "${HAVE_LIBSSL_FALSE}"; then
  13180. as_fn_error "conditional \"HAVE_LIBSSL\" was never defined.
  13181. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13182. fi
  13183. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  13184. as_fn_error "conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  13185. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13186. fi
  13187. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  13188. as_fn_error "conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  13189. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13190. fi
  13191. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  13192. as_fn_error "conditional \"ENABLE_BITTORRENT\" was never defined.
  13193. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13194. fi
  13195. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  13196. as_fn_error "conditional \"ENABLE_BITTORRENT\" was never defined.
  13197. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13198. fi
  13199. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  13200. as_fn_error "conditional \"ENABLE_METALINK\" was never defined.
  13201. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13202. fi
  13203. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  13204. as_fn_error "conditional \"ENABLE_METALINK\" was never defined.
  13205. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13206. fi
  13207. if test -z "${ENABLE_METALINK_LIBXML2_TRUE}" && test -z "${ENABLE_METALINK_LIBXML2_FALSE}"; then
  13208. as_fn_error "conditional \"ENABLE_METALINK_LIBXML2\" was never defined.
  13209. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13210. fi
  13211. if test -z "${ENABLE_METALINK_LIBEXPAT_TRUE}" && test -z "${ENABLE_METALINK_LIBEXPAT_FALSE}"; then
  13212. as_fn_error "conditional \"ENABLE_METALINK_LIBEXPAT\" was never defined.
  13213. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13214. fi
  13215. if test -z "${ENABLE_XML_RPC_TRUE}" && test -z "${ENABLE_XML_RPC_FALSE}"; then
  13216. as_fn_error "conditional \"ENABLE_XML_RPC\" was never defined.
  13217. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13218. fi
  13219. if test -z "${HAVE_LIBXML2_TRUE}" && test -z "${HAVE_LIBXML2_FALSE}"; then
  13220. as_fn_error "conditional \"HAVE_LIBXML2\" was never defined.
  13221. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13222. fi
  13223. if test -z "${HAVE_LIBEXPAT_TRUE}" && test -z "${HAVE_LIBEXPAT_FALSE}"; then
  13224. as_fn_error "conditional \"HAVE_LIBEXPAT\" was never defined.
  13225. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13226. fi
  13227. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  13228. as_fn_error "conditional \"ENABLE_ASYNC_DNS\" was never defined.
  13229. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13230. fi
  13231. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  13232. as_fn_error "conditional \"ENABLE_ASYNC_DNS\" was never defined.
  13233. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13234. fi
  13235. if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
  13236. as_fn_error "conditional \"HAVE_LIBZ\" was never defined.
  13237. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13238. fi
  13239. if test -z "${HAVE_SQLITE3_TRUE}" && test -z "${HAVE_SQLITE3_FALSE}"; then
  13240. as_fn_error "conditional \"HAVE_SQLITE3\" was never defined.
  13241. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13242. fi
  13243. if test -z "${HAVE_EPOLL_TRUE}" && test -z "${HAVE_EPOLL_FALSE}"; then
  13244. as_fn_error "conditional \"HAVE_EPOLL\" was never defined.
  13245. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13246. fi
  13247. if test -z "${HAVE_POSIX_FALLOCATE_TRUE}" && test -z "${HAVE_POSIX_FALLOCATE_FALSE}"; then
  13248. as_fn_error "conditional \"HAVE_POSIX_FALLOCATE\" was never defined.
  13249. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13250. fi
  13251. if test -z "${HAVE_ASCTIME_R_TRUE}" && test -z "${HAVE_ASCTIME_R_FALSE}"; then
  13252. as_fn_error "conditional \"HAVE_ASCTIME_R\" was never defined.
  13253. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13254. fi
  13255. if test -z "${HAVE_ASCTIME_R_TRUE}" && test -z "${HAVE_ASCTIME_R_FALSE}"; then
  13256. as_fn_error "conditional \"HAVE_ASCTIME_R\" was never defined.
  13257. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13258. fi
  13259. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  13260. as_fn_error "conditional \"HAVE_BASENAME\" was never defined.
  13261. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13262. fi
  13263. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  13264. as_fn_error "conditional \"HAVE_BASENAME\" was never defined.
  13265. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13266. fi
  13267. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  13268. as_fn_error "conditional \"HAVE_GAI_STRERROR\" was never defined.
  13269. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13270. fi
  13271. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  13272. as_fn_error "conditional \"HAVE_GAI_STRERROR\" was never defined.
  13273. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13274. fi
  13275. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  13276. as_fn_error "conditional \"HAVE_GETADDRINFO\" was never defined.
  13277. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13278. fi
  13279. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  13280. as_fn_error "conditional \"HAVE_GETADDRINFO\" was never defined.
  13281. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13282. fi
  13283. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  13284. as_fn_error "conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  13285. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13286. fi
  13287. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  13288. as_fn_error "conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  13289. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13290. fi
  13291. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  13292. as_fn_error "conditional \"HAVE_INET_ATON\" was never defined.
  13293. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13294. fi
  13295. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  13296. as_fn_error "conditional \"HAVE_INET_ATON\" was never defined.
  13297. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13298. fi
  13299. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  13300. as_fn_error "conditional \"HAVE_LOCALTIME_R\" was never defined.
  13301. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13302. fi
  13303. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  13304. as_fn_error "conditional \"HAVE_LOCALTIME_R\" was never defined.
  13305. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13306. fi
  13307. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  13308. as_fn_error "conditional \"HAVE_STRPTIME\" was never defined.
  13309. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13310. fi
  13311. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  13312. as_fn_error "conditional \"HAVE_STRPTIME\" was never defined.
  13313. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13314. fi
  13315. if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
  13316. as_fn_error "conditional \"HAVE_TIMEGM\" was never defined.
  13317. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13318. fi
  13319. if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
  13320. as_fn_error "conditional \"HAVE_TIMEGM\" was never defined.
  13321. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13322. fi
  13323. if test -z "${HAVE_DAEMON_TRUE}" && test -z "${HAVE_DAEMON_FALSE}"; then
  13324. as_fn_error "conditional \"HAVE_DAEMON\" was never defined.
  13325. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13326. fi
  13327. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  13328. as_fn_error "conditional \"HAVE_GETADDRINFO\" was never defined.
  13329. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13330. fi
  13331. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  13332. as_fn_error "conditional \"HAVE_GAI_STRERROR\" was never defined.
  13333. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13334. fi
  13335. : ${CONFIG_STATUS=./config.status}
  13336. ac_write_fail=0
  13337. ac_clean_files_save=$ac_clean_files
  13338. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  13339. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  13340. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  13341. as_write_fail=0
  13342. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  13343. #! $SHELL
  13344. # Generated by $as_me.
  13345. # Run this file to recreate the current configuration.
  13346. # Compiler output produced by configure, useful for debugging
  13347. # configure, is in config.log if it exists.
  13348. debug=false
  13349. ac_cs_recheck=false
  13350. ac_cs_silent=false
  13351. SHELL=\${CONFIG_SHELL-$SHELL}
  13352. export SHELL
  13353. _ASEOF
  13354. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  13355. ## -------------------- ##
  13356. ## M4sh Initialization. ##
  13357. ## -------------------- ##
  13358. # Be more Bourne compatible
  13359. DUALCASE=1; export DUALCASE # for MKS sh
  13360. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  13361. emulate sh
  13362. NULLCMD=:
  13363. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  13364. # is contrary to our usage. Disable this feature.
  13365. alias -g '${1+"$@"}'='"$@"'
  13366. setopt NO_GLOB_SUBST
  13367. else
  13368. case `(set -o) 2>/dev/null` in #(
  13369. *posix*) :
  13370. set -o posix ;; #(
  13371. *) :
  13372. ;;
  13373. esac
  13374. fi
  13375. as_nl='
  13376. '
  13377. export as_nl
  13378. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  13379. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  13380. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  13381. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  13382. # Prefer a ksh shell builtin over an external printf program on Solaris,
  13383. # but without wasting forks for bash or zsh.
  13384. if test -z "$BASH_VERSION$ZSH_VERSION" \
  13385. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  13386. as_echo='print -r --'
  13387. as_echo_n='print -rn --'
  13388. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  13389. as_echo='printf %s\n'
  13390. as_echo_n='printf %s'
  13391. else
  13392. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  13393. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  13394. as_echo_n='/usr/ucb/echo -n'
  13395. else
  13396. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  13397. as_echo_n_body='eval
  13398. arg=$1;
  13399. case $arg in #(
  13400. *"$as_nl"*)
  13401. expr "X$arg" : "X\\(.*\\)$as_nl";
  13402. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  13403. esac;
  13404. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  13405. '
  13406. export as_echo_n_body
  13407. as_echo_n='sh -c $as_echo_n_body as_echo'
  13408. fi
  13409. export as_echo_body
  13410. as_echo='sh -c $as_echo_body as_echo'
  13411. fi
  13412. # The user is always right.
  13413. if test "${PATH_SEPARATOR+set}" != set; then
  13414. PATH_SEPARATOR=:
  13415. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  13416. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  13417. PATH_SEPARATOR=';'
  13418. }
  13419. fi
  13420. # IFS
  13421. # We need space, tab and new line, in precisely that order. Quoting is
  13422. # there to prevent editors from complaining about space-tab.
  13423. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  13424. # splitting by setting IFS to empty value.)
  13425. IFS=" "" $as_nl"
  13426. # Find who we are. Look in the path if we contain no directory separator.
  13427. case $0 in #((
  13428. *[\\/]* ) as_myself=$0 ;;
  13429. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13430. for as_dir in $PATH
  13431. do
  13432. IFS=$as_save_IFS
  13433. test -z "$as_dir" && as_dir=.
  13434. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  13435. done
  13436. IFS=$as_save_IFS
  13437. ;;
  13438. esac
  13439. # We did not find ourselves, most probably we were run as `sh COMMAND'
  13440. # in which case we are not to be found in the path.
  13441. if test "x$as_myself" = x; then
  13442. as_myself=$0
  13443. fi
  13444. if test ! -f "$as_myself"; then
  13445. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  13446. exit 1
  13447. fi
  13448. # Unset variables that we do not need and which cause bugs (e.g. in
  13449. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  13450. # suppresses any "Segmentation fault" message there. '((' could
  13451. # trigger a bug in pdksh 5.2.14.
  13452. for as_var in BASH_ENV ENV MAIL MAILPATH
  13453. do eval test x\${$as_var+set} = xset \
  13454. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  13455. done
  13456. PS1='$ '
  13457. PS2='> '
  13458. PS4='+ '
  13459. # NLS nuisances.
  13460. LC_ALL=C
  13461. export LC_ALL
  13462. LANGUAGE=C
  13463. export LANGUAGE
  13464. # CDPATH.
  13465. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13466. # as_fn_error ERROR [LINENO LOG_FD]
  13467. # ---------------------------------
  13468. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  13469. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  13470. # script with status $?, using 1 if that was 0.
  13471. as_fn_error ()
  13472. {
  13473. as_status=$?; test $as_status -eq 0 && as_status=1
  13474. if test "$3"; then
  13475. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  13476. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  13477. fi
  13478. $as_echo "$as_me: error: $1" >&2
  13479. as_fn_exit $as_status
  13480. } # as_fn_error
  13481. # as_fn_set_status STATUS
  13482. # -----------------------
  13483. # Set $? to STATUS, without forking.
  13484. as_fn_set_status ()
  13485. {
  13486. return $1
  13487. } # as_fn_set_status
  13488. # as_fn_exit STATUS
  13489. # -----------------
  13490. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  13491. as_fn_exit ()
  13492. {
  13493. set +e
  13494. as_fn_set_status $1
  13495. exit $1
  13496. } # as_fn_exit
  13497. # as_fn_unset VAR
  13498. # ---------------
  13499. # Portably unset VAR.
  13500. as_fn_unset ()
  13501. {
  13502. { eval $1=; unset $1;}
  13503. }
  13504. as_unset=as_fn_unset
  13505. # as_fn_append VAR VALUE
  13506. # ----------------------
  13507. # Append the text in VALUE to the end of the definition contained in VAR. Take
  13508. # advantage of any shell optimizations that allow amortized linear growth over
  13509. # repeated appends, instead of the typical quadratic growth present in naive
  13510. # implementations.
  13511. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  13512. eval 'as_fn_append ()
  13513. {
  13514. eval $1+=\$2
  13515. }'
  13516. else
  13517. as_fn_append ()
  13518. {
  13519. eval $1=\$$1\$2
  13520. }
  13521. fi # as_fn_append
  13522. # as_fn_arith ARG...
  13523. # ------------------
  13524. # Perform arithmetic evaluation on the ARGs, and store the result in the
  13525. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  13526. # must be portable across $(()) and expr.
  13527. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  13528. eval 'as_fn_arith ()
  13529. {
  13530. as_val=$(( $* ))
  13531. }'
  13532. else
  13533. as_fn_arith ()
  13534. {
  13535. as_val=`expr "$@" || test $? -eq 1`
  13536. }
  13537. fi # as_fn_arith
  13538. if expr a : '\(a\)' >/dev/null 2>&1 &&
  13539. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  13540. as_expr=expr
  13541. else
  13542. as_expr=false
  13543. fi
  13544. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  13545. as_basename=basename
  13546. else
  13547. as_basename=false
  13548. fi
  13549. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  13550. as_dirname=dirname
  13551. else
  13552. as_dirname=false
  13553. fi
  13554. as_me=`$as_basename -- "$0" ||
  13555. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  13556. X"$0" : 'X\(//\)$' \| \
  13557. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  13558. $as_echo X/"$0" |
  13559. sed '/^.*\/\([^/][^/]*\)\/*$/{
  13560. s//\1/
  13561. q
  13562. }
  13563. /^X\/\(\/\/\)$/{
  13564. s//\1/
  13565. q
  13566. }
  13567. /^X\/\(\/\).*/{
  13568. s//\1/
  13569. q
  13570. }
  13571. s/.*/./; q'`
  13572. # Avoid depending upon Character Ranges.
  13573. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  13574. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  13575. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  13576. as_cr_digits='0123456789'
  13577. as_cr_alnum=$as_cr_Letters$as_cr_digits
  13578. ECHO_C= ECHO_N= ECHO_T=
  13579. case `echo -n x` in #(((((
  13580. -n*)
  13581. case `echo 'xy\c'` in
  13582. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  13583. xy) ECHO_C='\c';;
  13584. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  13585. ECHO_T=' ';;
  13586. esac;;
  13587. *)
  13588. ECHO_N='-n';;
  13589. esac
  13590. rm -f conf$$ conf$$.exe conf$$.file
  13591. if test -d conf$$.dir; then
  13592. rm -f conf$$.dir/conf$$.file
  13593. else
  13594. rm -f conf$$.dir
  13595. mkdir conf$$.dir 2>/dev/null
  13596. fi
  13597. if (echo >conf$$.file) 2>/dev/null; then
  13598. if ln -s conf$$.file conf$$ 2>/dev/null; then
  13599. as_ln_s='ln -s'
  13600. # ... but there are two gotchas:
  13601. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  13602. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  13603. # In both cases, we have to default to `cp -p'.
  13604. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  13605. as_ln_s='cp -p'
  13606. elif ln conf$$.file conf$$ 2>/dev/null; then
  13607. as_ln_s=ln
  13608. else
  13609. as_ln_s='cp -p'
  13610. fi
  13611. else
  13612. as_ln_s='cp -p'
  13613. fi
  13614. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  13615. rmdir conf$$.dir 2>/dev/null
  13616. # as_fn_mkdir_p
  13617. # -------------
  13618. # Create "$as_dir" as a directory, including parents if necessary.
  13619. as_fn_mkdir_p ()
  13620. {
  13621. case $as_dir in #(
  13622. -*) as_dir=./$as_dir;;
  13623. esac
  13624. test -d "$as_dir" || eval $as_mkdir_p || {
  13625. as_dirs=
  13626. while :; do
  13627. case $as_dir in #(
  13628. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  13629. *) as_qdir=$as_dir;;
  13630. esac
  13631. as_dirs="'$as_qdir' $as_dirs"
  13632. as_dir=`$as_dirname -- "$as_dir" ||
  13633. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13634. X"$as_dir" : 'X\(//\)[^/]' \| \
  13635. X"$as_dir" : 'X\(//\)$' \| \
  13636. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  13637. $as_echo X"$as_dir" |
  13638. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13639. s//\1/
  13640. q
  13641. }
  13642. /^X\(\/\/\)[^/].*/{
  13643. s//\1/
  13644. q
  13645. }
  13646. /^X\(\/\/\)$/{
  13647. s//\1/
  13648. q
  13649. }
  13650. /^X\(\/\).*/{
  13651. s//\1/
  13652. q
  13653. }
  13654. s/.*/./; q'`
  13655. test -d "$as_dir" && break
  13656. done
  13657. test -z "$as_dirs" || eval "mkdir $as_dirs"
  13658. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  13659. } # as_fn_mkdir_p
  13660. if mkdir -p . 2>/dev/null; then
  13661. as_mkdir_p='mkdir -p "$as_dir"'
  13662. else
  13663. test -d ./-p && rmdir ./-p
  13664. as_mkdir_p=false
  13665. fi
  13666. if test -x / >/dev/null 2>&1; then
  13667. as_test_x='test -x'
  13668. else
  13669. if ls -dL / >/dev/null 2>&1; then
  13670. as_ls_L_option=L
  13671. else
  13672. as_ls_L_option=
  13673. fi
  13674. as_test_x='
  13675. eval sh -c '\''
  13676. if test -d "$1"; then
  13677. test -d "$1/.";
  13678. else
  13679. case $1 in #(
  13680. -*)set "./$1";;
  13681. esac;
  13682. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  13683. ???[sx]*):;;*)false;;esac;fi
  13684. '\'' sh
  13685. '
  13686. fi
  13687. as_executable_p=$as_test_x
  13688. # Sed expression to map a string onto a valid CPP name.
  13689. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  13690. # Sed expression to map a string onto a valid variable name.
  13691. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  13692. exec 6>&1
  13693. ## ----------------------------------- ##
  13694. ## Main body of $CONFIG_STATUS script. ##
  13695. ## ----------------------------------- ##
  13696. _ASEOF
  13697. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  13698. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13699. # Save the log message, to keep $0 and so on meaningful, and to
  13700. # report actual input values of CONFIG_FILES etc. instead of their
  13701. # values after options handling.
  13702. ac_log="
  13703. This file was extended by aria2 $as_me 1.6.3, which was
  13704. generated by GNU Autoconf 2.64. Invocation command line was
  13705. CONFIG_FILES = $CONFIG_FILES
  13706. CONFIG_HEADERS = $CONFIG_HEADERS
  13707. CONFIG_LINKS = $CONFIG_LINKS
  13708. CONFIG_COMMANDS = $CONFIG_COMMANDS
  13709. $ $0 $@
  13710. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  13711. "
  13712. _ACEOF
  13713. case $ac_config_files in *"
  13714. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  13715. esac
  13716. case $ac_config_headers in *"
  13717. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  13718. esac
  13719. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13720. # Files that config.status was made for.
  13721. config_files="$ac_config_files"
  13722. config_headers="$ac_config_headers"
  13723. config_commands="$ac_config_commands"
  13724. _ACEOF
  13725. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13726. ac_cs_usage="\
  13727. \`$as_me' instantiates files and other configuration actions
  13728. from templates according to the current configuration. Unless the files
  13729. and actions are specified as TAGs, all are instantiated by default.
  13730. Usage: $0 [OPTION]... [TAG]...
  13731. -h, --help print this help, then exit
  13732. -V, --version print version number and configuration settings, then exit
  13733. -q, --quiet, --silent
  13734. do not print progress messages
  13735. -d, --debug don't remove temporary files
  13736. --recheck update $as_me by reconfiguring in the same conditions
  13737. --file=FILE[:TEMPLATE]
  13738. instantiate the configuration file FILE
  13739. --header=FILE[:TEMPLATE]
  13740. instantiate the configuration header FILE
  13741. Configuration files:
  13742. $config_files
  13743. Configuration headers:
  13744. $config_headers
  13745. Configuration commands:
  13746. $config_commands
  13747. Report bugs to <t-tujikawa@users.sourceforge.net>.
  13748. aria2 home page: <http://aria2.sourceforge.net/>."
  13749. _ACEOF
  13750. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13751. ac_cs_version="\\
  13752. aria2 config.status 1.6.3
  13753. configured by $0, generated by GNU Autoconf 2.64,
  13754. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  13755. Copyright (C) 2009 Free Software Foundation, Inc.
  13756. This config.status script is free software; the Free Software Foundation
  13757. gives unlimited permission to copy, distribute and modify it."
  13758. ac_pwd='$ac_pwd'
  13759. srcdir='$srcdir'
  13760. INSTALL='$INSTALL'
  13761. MKDIR_P='$MKDIR_P'
  13762. AWK='$AWK'
  13763. test -n "\$AWK" || AWK=awk
  13764. _ACEOF
  13765. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13766. # The default lists apply if the user does not specify any file.
  13767. ac_need_defaults=:
  13768. while test $# != 0
  13769. do
  13770. case $1 in
  13771. --*=*)
  13772. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  13773. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  13774. ac_shift=:
  13775. ;;
  13776. *)
  13777. ac_option=$1
  13778. ac_optarg=$2
  13779. ac_shift=shift
  13780. ;;
  13781. esac
  13782. case $ac_option in
  13783. # Handling of the options.
  13784. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  13785. ac_cs_recheck=: ;;
  13786. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  13787. $as_echo "$ac_cs_version"; exit ;;
  13788. --debug | --debu | --deb | --de | --d | -d )
  13789. debug=: ;;
  13790. --file | --fil | --fi | --f )
  13791. $ac_shift
  13792. case $ac_optarg in
  13793. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13794. esac
  13795. as_fn_append CONFIG_FILES " '$ac_optarg'"
  13796. ac_need_defaults=false;;
  13797. --header | --heade | --head | --hea )
  13798. $ac_shift
  13799. case $ac_optarg in
  13800. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13801. esac
  13802. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  13803. ac_need_defaults=false;;
  13804. --he | --h)
  13805. # Conflict between --help and --header
  13806. as_fn_error "ambiguous option: \`$1'
  13807. Try \`$0 --help' for more information.";;
  13808. --help | --hel | -h )
  13809. $as_echo "$ac_cs_usage"; exit ;;
  13810. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  13811. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  13812. ac_cs_silent=: ;;
  13813. # This is an error.
  13814. -*) as_fn_error "unrecognized option: \`$1'
  13815. Try \`$0 --help' for more information." ;;
  13816. *) as_fn_append ac_config_targets " $1"
  13817. ac_need_defaults=false ;;
  13818. esac
  13819. shift
  13820. done
  13821. ac_configure_extra_args=
  13822. if $ac_cs_silent; then
  13823. exec 6>/dev/null
  13824. ac_configure_extra_args="$ac_configure_extra_args --silent"
  13825. fi
  13826. _ACEOF
  13827. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13828. if \$ac_cs_recheck; then
  13829. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  13830. shift
  13831. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  13832. CONFIG_SHELL='$SHELL'
  13833. export CONFIG_SHELL
  13834. exec "\$@"
  13835. fi
  13836. _ACEOF
  13837. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13838. exec 5>>config.log
  13839. {
  13840. echo
  13841. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  13842. ## Running $as_me. ##
  13843. _ASBOX
  13844. $as_echo "$ac_log"
  13845. } >&5
  13846. _ACEOF
  13847. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13848. #
  13849. # INIT-COMMANDS
  13850. #
  13851. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  13852. # Capture the value of obsolete ALL_LINGUAS because we need it to compute
  13853. # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
  13854. # from automake < 1.5.
  13855. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
  13856. # Capture the value of LINGUAS because we need it to compute CATALOGS.
  13857. LINGUAS="${LINGUAS-%UNSET%}"
  13858. _ACEOF
  13859. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13860. # Handling of arguments.
  13861. for ac_config_target in $ac_config_targets
  13862. do
  13863. case $ac_config_target in
  13864. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  13865. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  13866. "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
  13867. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  13868. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  13869. "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  13870. "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
  13871. "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
  13872. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  13873. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  13874. *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  13875. esac
  13876. done
  13877. # If the user did not use the arguments to specify the items to instantiate,
  13878. # then the envvar interface is used. Set only those that are not.
  13879. # We use the long form for the default assignment because of an extremely
  13880. # bizarre bug on SunOS 4.1.3.
  13881. if $ac_need_defaults; then
  13882. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  13883. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  13884. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  13885. fi
  13886. # Have a temporary directory for convenience. Make it in the build tree
  13887. # simply because there is no reason against having it here, and in addition,
  13888. # creating and moving files from /tmp can sometimes cause problems.
  13889. # Hook for its removal unless debugging.
  13890. # Note that there is a small window in which the directory will not be cleaned:
  13891. # after its creation but before its name has been assigned to `$tmp'.
  13892. $debug ||
  13893. {
  13894. tmp=
  13895. trap 'exit_status=$?
  13896. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  13897. ' 0
  13898. trap 'as_fn_exit 1' 1 2 13 15
  13899. }
  13900. # Create a (secure) tmp directory for tmp files.
  13901. {
  13902. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  13903. test -n "$tmp" && test -d "$tmp"
  13904. } ||
  13905. {
  13906. tmp=./conf$$-$RANDOM
  13907. (umask 077 && mkdir "$tmp")
  13908. } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  13909. # Set up the scripts for CONFIG_FILES section.
  13910. # No need to generate them if there are no CONFIG_FILES.
  13911. # This happens for instance with `./config.status config.h'.
  13912. if test -n "$CONFIG_FILES"; then
  13913. ac_cr=`echo X | tr X '\015'`
  13914. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  13915. # But we know of no other shell where ac_cr would be empty at this
  13916. # point, so we can use a bashism as a fallback.
  13917. if test "x$ac_cr" = x; then
  13918. eval ac_cr=\$\'\\r\'
  13919. fi
  13920. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  13921. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  13922. ac_cs_awk_cr='\r'
  13923. else
  13924. ac_cs_awk_cr=$ac_cr
  13925. fi
  13926. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  13927. _ACEOF
  13928. {
  13929. echo "cat >conf$$subs.awk <<_ACEOF" &&
  13930. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  13931. echo "_ACEOF"
  13932. } >conf$$subs.sh ||
  13933. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  13934. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  13935. ac_delim='%!_!# '
  13936. for ac_last_try in false false false false false :; do
  13937. . ./conf$$subs.sh ||
  13938. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  13939. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  13940. if test $ac_delim_n = $ac_delim_num; then
  13941. break
  13942. elif $ac_last_try; then
  13943. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  13944. else
  13945. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  13946. fi
  13947. done
  13948. rm -f conf$$subs.sh
  13949. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13950. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  13951. _ACEOF
  13952. sed -n '
  13953. h
  13954. s/^/S["/; s/!.*/"]=/
  13955. p
  13956. g
  13957. s/^[^!]*!//
  13958. :repl
  13959. t repl
  13960. s/'"$ac_delim"'$//
  13961. t delim
  13962. :nl
  13963. h
  13964. s/\(.\{148\}\).*/\1/
  13965. t more1
  13966. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  13967. p
  13968. n
  13969. b repl
  13970. :more1
  13971. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  13972. p
  13973. g
  13974. s/.\{148\}//
  13975. t nl
  13976. :delim
  13977. h
  13978. s/\(.\{148\}\).*/\1/
  13979. t more2
  13980. s/["\\]/\\&/g; s/^/"/; s/$/"/
  13981. p
  13982. b
  13983. :more2
  13984. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  13985. p
  13986. g
  13987. s/.\{148\}//
  13988. t delim
  13989. ' <conf$$subs.awk | sed '
  13990. /^[^""]/{
  13991. N
  13992. s/\n//
  13993. }
  13994. ' >>$CONFIG_STATUS || ac_write_fail=1
  13995. rm -f conf$$subs.awk
  13996. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13997. _ACAWK
  13998. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  13999. for (key in S) S_is_set[key] = 1
  14000. FS = ""
  14001. }
  14002. {
  14003. line = $ 0
  14004. nfields = split(line, field, "@")
  14005. substed = 0
  14006. len = length(field[1])
  14007. for (i = 2; i < nfields; i++) {
  14008. key = field[i]
  14009. keylen = length(key)
  14010. if (S_is_set[key]) {
  14011. value = S[key]
  14012. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  14013. len += length(value) + length(field[++i])
  14014. substed = 1
  14015. } else
  14016. len += 1 + keylen
  14017. }
  14018. print line
  14019. }
  14020. _ACAWK
  14021. _ACEOF
  14022. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14023. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  14024. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  14025. else
  14026. cat
  14027. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  14028. || as_fn_error "could not setup config files machinery" "$LINENO" 5
  14029. _ACEOF
  14030. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  14031. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  14032. # trailing colons and then remove the whole line if VPATH becomes empty
  14033. # (actually we leave an empty line to preserve line numbers).
  14034. if test "x$srcdir" = x.; then
  14035. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  14036. s/:*\$(srcdir):*/:/
  14037. s/:*\${srcdir}:*/:/
  14038. s/:*@srcdir@:*/:/
  14039. s/^\([^=]*=[ ]*\):*/\1/
  14040. s/:*$//
  14041. s/^[^=]*=[ ]*$//
  14042. }'
  14043. fi
  14044. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14045. fi # test -n "$CONFIG_FILES"
  14046. # Set up the scripts for CONFIG_HEADERS section.
  14047. # No need to generate them if there are no CONFIG_HEADERS.
  14048. # This happens for instance with `./config.status Makefile'.
  14049. if test -n "$CONFIG_HEADERS"; then
  14050. cat >"$tmp/defines.awk" <<\_ACAWK ||
  14051. BEGIN {
  14052. _ACEOF
  14053. # Transform confdefs.h into an awk script `defines.awk', embedded as
  14054. # here-document in config.status, that substitutes the proper values into
  14055. # config.h.in to produce config.h.
  14056. # Create a delimiter string that does not exist in confdefs.h, to ease
  14057. # handling of long lines.
  14058. ac_delim='%!_!# '
  14059. for ac_last_try in false false :; do
  14060. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  14061. if test -z "$ac_t"; then
  14062. break
  14063. elif $ac_last_try; then
  14064. as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  14065. else
  14066. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  14067. fi
  14068. done
  14069. # For the awk script, D is an array of macro values keyed by name,
  14070. # likewise P contains macro parameters if any. Preserve backslash
  14071. # newline sequences.
  14072. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  14073. sed -n '
  14074. s/.\{148\}/&'"$ac_delim"'/g
  14075. t rset
  14076. :rset
  14077. s/^[ ]*#[ ]*define[ ][ ]*/ /
  14078. t def
  14079. d
  14080. :def
  14081. s/\\$//
  14082. t bsnl
  14083. s/["\\]/\\&/g
  14084. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  14085. D["\1"]=" \3"/p
  14086. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  14087. d
  14088. :bsnl
  14089. s/["\\]/\\&/g
  14090. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  14091. D["\1"]=" \3\\\\\\n"\\/p
  14092. t cont
  14093. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  14094. t cont
  14095. d
  14096. :cont
  14097. n
  14098. s/.\{148\}/&'"$ac_delim"'/g
  14099. t clear
  14100. :clear
  14101. s/\\$//
  14102. t bsnlc
  14103. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  14104. d
  14105. :bsnlc
  14106. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  14107. b cont
  14108. ' <confdefs.h | sed '
  14109. s/'"$ac_delim"'/"\\\
  14110. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  14111. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14112. for (key in D) D_is_set[key] = 1
  14113. FS = ""
  14114. }
  14115. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  14116. line = \$ 0
  14117. split(line, arg, " ")
  14118. if (arg[1] == "#") {
  14119. defundef = arg[2]
  14120. mac1 = arg[3]
  14121. } else {
  14122. defundef = substr(arg[1], 2)
  14123. mac1 = arg[2]
  14124. }
  14125. split(mac1, mac2, "(") #)
  14126. macro = mac2[1]
  14127. prefix = substr(line, 1, index(line, defundef) - 1)
  14128. if (D_is_set[macro]) {
  14129. # Preserve the white space surrounding the "#".
  14130. print prefix "define", macro P[macro] D[macro]
  14131. next
  14132. } else {
  14133. # Replace #undef with comments. This is necessary, for example,
  14134. # in the case of _POSIX_SOURCE, which is predefined and required
  14135. # on some systems where configure will not decide to define it.
  14136. if (defundef == "undef") {
  14137. print "/*", prefix defundef, macro, "*/"
  14138. next
  14139. }
  14140. }
  14141. }
  14142. { print }
  14143. _ACAWK
  14144. _ACEOF
  14145. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14146. as_fn_error "could not setup config headers machinery" "$LINENO" 5
  14147. fi # test -n "$CONFIG_HEADERS"
  14148. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  14149. shift
  14150. for ac_tag
  14151. do
  14152. case $ac_tag in
  14153. :[FHLC]) ac_mode=$ac_tag; continue;;
  14154. esac
  14155. case $ac_mode$ac_tag in
  14156. :[FHL]*:*);;
  14157. :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  14158. :[FH]-) ac_tag=-:-;;
  14159. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  14160. esac
  14161. ac_save_IFS=$IFS
  14162. IFS=:
  14163. set x $ac_tag
  14164. IFS=$ac_save_IFS
  14165. shift
  14166. ac_file=$1
  14167. shift
  14168. case $ac_mode in
  14169. :L) ac_source=$1;;
  14170. :[FH])
  14171. ac_file_inputs=
  14172. for ac_f
  14173. do
  14174. case $ac_f in
  14175. -) ac_f="$tmp/stdin";;
  14176. *) # Look for the file first in the build tree, then in the source tree
  14177. # (if the path is not absolute). The absolute path cannot be DOS-style,
  14178. # because $ac_f cannot contain `:'.
  14179. test -f "$ac_f" ||
  14180. case $ac_f in
  14181. [\\/$]*) false;;
  14182. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  14183. esac ||
  14184. as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  14185. esac
  14186. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  14187. as_fn_append ac_file_inputs " '$ac_f'"
  14188. done
  14189. # Let's still pretend it is `configure' which instantiates (i.e., don't
  14190. # use $as_me), people would be surprised to read:
  14191. # /* config.h. Generated by config.status. */
  14192. configure_input='Generated from '`
  14193. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  14194. `' by configure.'
  14195. if test x"$ac_file" != x-; then
  14196. configure_input="$ac_file. $configure_input"
  14197. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  14198. $as_echo "$as_me: creating $ac_file" >&6;}
  14199. fi
  14200. # Neutralize special characters interpreted by sed in replacement strings.
  14201. case $configure_input in #(
  14202. *\&* | *\|* | *\\* )
  14203. ac_sed_conf_input=`$as_echo "$configure_input" |
  14204. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  14205. *) ac_sed_conf_input=$configure_input;;
  14206. esac
  14207. case $ac_tag in
  14208. *:-:* | *:-) cat >"$tmp/stdin" \
  14209. || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  14210. esac
  14211. ;;
  14212. esac
  14213. ac_dir=`$as_dirname -- "$ac_file" ||
  14214. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14215. X"$ac_file" : 'X\(//\)[^/]' \| \
  14216. X"$ac_file" : 'X\(//\)$' \| \
  14217. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  14218. $as_echo X"$ac_file" |
  14219. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14220. s//\1/
  14221. q
  14222. }
  14223. /^X\(\/\/\)[^/].*/{
  14224. s//\1/
  14225. q
  14226. }
  14227. /^X\(\/\/\)$/{
  14228. s//\1/
  14229. q
  14230. }
  14231. /^X\(\/\).*/{
  14232. s//\1/
  14233. q
  14234. }
  14235. s/.*/./; q'`
  14236. as_dir="$ac_dir"; as_fn_mkdir_p
  14237. ac_builddir=.
  14238. case "$ac_dir" in
  14239. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14240. *)
  14241. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  14242. # A ".." for each directory in $ac_dir_suffix.
  14243. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  14244. case $ac_top_builddir_sub in
  14245. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14246. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  14247. esac ;;
  14248. esac
  14249. ac_abs_top_builddir=$ac_pwd
  14250. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  14251. # for backward compatibility:
  14252. ac_top_builddir=$ac_top_build_prefix
  14253. case $srcdir in
  14254. .) # We are building in place.
  14255. ac_srcdir=.
  14256. ac_top_srcdir=$ac_top_builddir_sub
  14257. ac_abs_top_srcdir=$ac_pwd ;;
  14258. [\\/]* | ?:[\\/]* ) # Absolute name.
  14259. ac_srcdir=$srcdir$ac_dir_suffix;
  14260. ac_top_srcdir=$srcdir
  14261. ac_abs_top_srcdir=$srcdir ;;
  14262. *) # Relative name.
  14263. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  14264. ac_top_srcdir=$ac_top_build_prefix$srcdir
  14265. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  14266. esac
  14267. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  14268. case $ac_mode in
  14269. :F)
  14270. #
  14271. # CONFIG_FILE
  14272. #
  14273. case $INSTALL in
  14274. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  14275. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  14276. esac
  14277. ac_MKDIR_P=$MKDIR_P
  14278. case $MKDIR_P in
  14279. [\\/$]* | ?:[\\/]* ) ;;
  14280. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  14281. esac
  14282. _ACEOF
  14283. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14284. # If the template does not know about datarootdir, expand it.
  14285. # FIXME: This hack should be removed a few years after 2.60.
  14286. ac_datarootdir_hack=; ac_datarootdir_seen=
  14287. ac_sed_dataroot='
  14288. /datarootdir/ {
  14289. p
  14290. q
  14291. }
  14292. /@datadir@/p
  14293. /@docdir@/p
  14294. /@infodir@/p
  14295. /@localedir@/p
  14296. /@mandir@/p'
  14297. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  14298. *datarootdir*) ac_datarootdir_seen=yes;;
  14299. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  14300. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  14301. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  14302. _ACEOF
  14303. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14304. ac_datarootdir_hack='
  14305. s&@datadir@&$datadir&g
  14306. s&@docdir@&$docdir&g
  14307. s&@infodir@&$infodir&g
  14308. s&@localedir@&$localedir&g
  14309. s&@mandir@&$mandir&g
  14310. s&\\\${datarootdir}&$datarootdir&g' ;;
  14311. esac
  14312. _ACEOF
  14313. # Neutralize VPATH when `$srcdir' = `.'.
  14314. # Shell code in configure.ac might set extrasub.
  14315. # FIXME: do we really want to maintain this feature?
  14316. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14317. ac_sed_extra="$ac_vpsub
  14318. $extrasub
  14319. _ACEOF
  14320. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14321. :t
  14322. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  14323. s|@configure_input@|$ac_sed_conf_input|;t t
  14324. s&@top_builddir@&$ac_top_builddir_sub&;t t
  14325. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  14326. s&@srcdir@&$ac_srcdir&;t t
  14327. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  14328. s&@top_srcdir@&$ac_top_srcdir&;t t
  14329. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  14330. s&@builddir@&$ac_builddir&;t t
  14331. s&@abs_builddir@&$ac_abs_builddir&;t t
  14332. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  14333. s&@INSTALL@&$ac_INSTALL&;t t
  14334. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  14335. $ac_datarootdir_hack
  14336. "
  14337. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  14338. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14339. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  14340. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  14341. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  14342. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14343. which seems to be undefined. Please make sure it is defined." >&5
  14344. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14345. which seems to be undefined. Please make sure it is defined." >&2;}
  14346. rm -f "$tmp/stdin"
  14347. case $ac_file in
  14348. -) cat "$tmp/out" && rm -f "$tmp/out";;
  14349. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  14350. esac \
  14351. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14352. ;;
  14353. :H)
  14354. #
  14355. # CONFIG_HEADER
  14356. #
  14357. if test x"$ac_file" != x-; then
  14358. {
  14359. $as_echo "/* $configure_input */" \
  14360. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  14361. } >"$tmp/config.h" \
  14362. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14363. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  14364. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  14365. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  14366. else
  14367. rm -f "$ac_file"
  14368. mv "$tmp/config.h" "$ac_file" \
  14369. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14370. fi
  14371. else
  14372. $as_echo "/* $configure_input */" \
  14373. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  14374. || as_fn_error "could not create -" "$LINENO" 5
  14375. fi
  14376. # Compute "$ac_file"'s index in $config_headers.
  14377. _am_arg="$ac_file"
  14378. _am_stamp_count=1
  14379. for _am_header in $config_headers :; do
  14380. case $_am_header in
  14381. $_am_arg | $_am_arg:* )
  14382. break ;;
  14383. * )
  14384. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  14385. esac
  14386. done
  14387. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  14388. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14389. X"$_am_arg" : 'X\(//\)[^/]' \| \
  14390. X"$_am_arg" : 'X\(//\)$' \| \
  14391. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  14392. $as_echo X"$_am_arg" |
  14393. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14394. s//\1/
  14395. q
  14396. }
  14397. /^X\(\/\/\)[^/].*/{
  14398. s//\1/
  14399. q
  14400. }
  14401. /^X\(\/\/\)$/{
  14402. s//\1/
  14403. q
  14404. }
  14405. /^X\(\/\).*/{
  14406. s//\1/
  14407. q
  14408. }
  14409. s/.*/./; q'`/stamp-h$_am_stamp_count
  14410. ;;
  14411. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  14412. $as_echo "$as_me: executing $ac_file commands" >&6;}
  14413. ;;
  14414. esac
  14415. case $ac_file$ac_mode in
  14416. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  14417. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  14418. # are listed without --file. Let's play safe and only enable the eval
  14419. # if we detect the quoting.
  14420. case $CONFIG_FILES in
  14421. *\'*) eval set x "$CONFIG_FILES" ;;
  14422. *) set x $CONFIG_FILES ;;
  14423. esac
  14424. shift
  14425. for mf
  14426. do
  14427. # Strip MF so we end up with the name of the file.
  14428. mf=`echo "$mf" | sed -e 's/:.*$//'`
  14429. # Check whether this is an Automake generated Makefile or not.
  14430. # We used to match only the files named `Makefile.in', but
  14431. # some people rename them; so instead we look at the file content.
  14432. # Grep'ing the first line is not enough: some people post-process
  14433. # each Makefile.in and add a new line on top of each file to say so.
  14434. # Grep'ing the whole file is not good either: AIX grep has a line
  14435. # limit of 2048, but all sed's we know have understand at least 4000.
  14436. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  14437. dirpart=`$as_dirname -- "$mf" ||
  14438. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14439. X"$mf" : 'X\(//\)[^/]' \| \
  14440. X"$mf" : 'X\(//\)$' \| \
  14441. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  14442. $as_echo X"$mf" |
  14443. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14444. s//\1/
  14445. q
  14446. }
  14447. /^X\(\/\/\)[^/].*/{
  14448. s//\1/
  14449. q
  14450. }
  14451. /^X\(\/\/\)$/{
  14452. s//\1/
  14453. q
  14454. }
  14455. /^X\(\/\).*/{
  14456. s//\1/
  14457. q
  14458. }
  14459. s/.*/./; q'`
  14460. else
  14461. continue
  14462. fi
  14463. # Extract the definition of DEPDIR, am__include, and am__quote
  14464. # from the Makefile without running `make'.
  14465. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  14466. test -z "$DEPDIR" && continue
  14467. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  14468. test -z "am__include" && continue
  14469. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  14470. # When using ansi2knr, U may be empty or an underscore; expand it
  14471. U=`sed -n 's/^U = //p' < "$mf"`
  14472. # Find all dependency output files, they are included files with
  14473. # $(DEPDIR) in their names. We invoke sed twice because it is the
  14474. # simplest approach to changing $(DEPDIR) to its actual value in the
  14475. # expansion.
  14476. for file in `sed -n "
  14477. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  14478. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  14479. # Make sure the directory exists.
  14480. test -f "$dirpart/$file" && continue
  14481. fdir=`$as_dirname -- "$file" ||
  14482. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14483. X"$file" : 'X\(//\)[^/]' \| \
  14484. X"$file" : 'X\(//\)$' \| \
  14485. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  14486. $as_echo X"$file" |
  14487. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14488. s//\1/
  14489. q
  14490. }
  14491. /^X\(\/\/\)[^/].*/{
  14492. s//\1/
  14493. q
  14494. }
  14495. /^X\(\/\/\)$/{
  14496. s//\1/
  14497. q
  14498. }
  14499. /^X\(\/\).*/{
  14500. s//\1/
  14501. q
  14502. }
  14503. s/.*/./; q'`
  14504. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  14505. # echo "creating $dirpart/$file"
  14506. echo '# dummy' > "$dirpart/$file"
  14507. done
  14508. done
  14509. }
  14510. ;;
  14511. "po-directories":C)
  14512. for ac_file in $CONFIG_FILES; do
  14513. # Support "outfile[:infile[:infile...]]"
  14514. case "$ac_file" in
  14515. *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  14516. esac
  14517. # PO directories have a Makefile.in generated from Makefile.in.in.
  14518. case "$ac_file" in */Makefile.in)
  14519. # Adjust a relative srcdir.
  14520. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  14521. ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
  14522. ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  14523. # In autoconf-2.13 it is called $ac_given_srcdir.
  14524. # In autoconf-2.50 it is called $srcdir.
  14525. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  14526. case "$ac_given_srcdir" in
  14527. .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  14528. /*) top_srcdir="$ac_given_srcdir" ;;
  14529. *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
  14530. esac
  14531. # Treat a directory as a PO directory if and only if it has a
  14532. # POTFILES.in file. This allows packages to have multiple PO
  14533. # directories under different names or in different locations.
  14534. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
  14535. rm -f "$ac_dir/POTFILES"
  14536. test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
  14537. cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
  14538. POMAKEFILEDEPS="POTFILES.in"
  14539. # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
  14540. # on $ac_dir but don't depend on user-specified configuration
  14541. # parameters.
  14542. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  14543. # The LINGUAS file contains the set of available languages.
  14544. if test -n "$OBSOLETE_ALL_LINGUAS"; then
  14545. test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
  14546. fi
  14547. ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  14548. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  14549. eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  14550. POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  14551. else
  14552. # The set of available languages was given in configure.in.
  14553. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  14554. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
  14555. fi
  14556. # Compute POFILES
  14557. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
  14558. # Compute UPDATEPOFILES
  14559. # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
  14560. # Compute DUMMYPOFILES
  14561. # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
  14562. # Compute GMOFILES
  14563. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
  14564. case "$ac_given_srcdir" in
  14565. .) srcdirpre= ;;
  14566. *) srcdirpre='$(srcdir)/' ;;
  14567. esac
  14568. POFILES=
  14569. UPDATEPOFILES=
  14570. DUMMYPOFILES=
  14571. GMOFILES=
  14572. for lang in $ALL_LINGUAS; do
  14573. POFILES="$POFILES $srcdirpre$lang.po"
  14574. UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  14575. DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  14576. GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  14577. done
  14578. # CATALOGS depends on both $ac_dir and the user's LINGUAS
  14579. # environment variable.
  14580. INST_LINGUAS=
  14581. if test -n "$ALL_LINGUAS"; then
  14582. for presentlang in $ALL_LINGUAS; do
  14583. useit=no
  14584. if test "%UNSET%" != "$LINGUAS"; then
  14585. desiredlanguages="$LINGUAS"
  14586. else
  14587. desiredlanguages="$ALL_LINGUAS"
  14588. fi
  14589. for desiredlang in $desiredlanguages; do
  14590. # Use the presentlang catalog if desiredlang is
  14591. # a. equal to presentlang, or
  14592. # b. a variant of presentlang (because in this case,
  14593. # presentlang can be used as a fallback for messages
  14594. # which are not translated in the desiredlang catalog).
  14595. case "$desiredlang" in
  14596. "$presentlang"*) useit=yes;;
  14597. esac
  14598. done
  14599. if test $useit = yes; then
  14600. INST_LINGUAS="$INST_LINGUAS $presentlang"
  14601. fi
  14602. done
  14603. fi
  14604. CATALOGS=
  14605. if test -n "$INST_LINGUAS"; then
  14606. for lang in $INST_LINGUAS; do
  14607. CATALOGS="$CATALOGS $lang.gmo"
  14608. done
  14609. fi
  14610. test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
  14611. 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"
  14612. for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
  14613. if test -f "$f"; then
  14614. case "$f" in
  14615. *.orig | *.bak | *~) ;;
  14616. *) cat "$f" >> "$ac_dir/Makefile" ;;
  14617. esac
  14618. fi
  14619. done
  14620. fi
  14621. ;;
  14622. esac
  14623. done ;;
  14624. esac
  14625. done # for ac_tag
  14626. as_fn_exit 0
  14627. _ACEOF
  14628. ac_clean_files=$ac_clean_files_save
  14629. test $ac_write_fail = 0 ||
  14630. as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  14631. # configure is writing to config.log, and then calls config.status.
  14632. # config.status does its own redirection, appending to config.log.
  14633. # Unfortunately, on DOS this fails, as config.log is still kept open
  14634. # by configure, so config.status won't be able to write to it; its
  14635. # output is simply discarded. So we exec the FD to /dev/null,
  14636. # effectively closing config.log, so it can be properly (re)opened and
  14637. # appended to by config.status. When coming back to configure, we
  14638. # need to make the FD available again.
  14639. if test "$no_create" != yes; then
  14640. ac_cs_success=:
  14641. ac_config_status_args=
  14642. test "$silent" = yes &&
  14643. ac_config_status_args="$ac_config_status_args --quiet"
  14644. exec 5>/dev/null
  14645. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  14646. exec 5>>config.log
  14647. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  14648. # would make configure fail if this is the last instruction.
  14649. $ac_cs_success || as_fn_exit $?
  14650. fi
  14651. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  14652. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  14653. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  14654. fi
  14655. echo " "
  14656. echo "Build: $build"
  14657. echo "Target: $target"
  14658. echo "Install prefix: $prefix"
  14659. echo "CFLAGS: $CFLAGS"
  14660. echo "CPPFLAGS: $CPPFLAGS"
  14661. echo "LDFLAGS: $LDFLAGS"
  14662. echo "LIBS: $LIBS"
  14663. echo "SQLite3: $have_sqlite3"
  14664. echo "GnuTLS: $have_libgnutls"
  14665. echo "OpenSSL: $have_openssl"
  14666. echo "CA Bundle: $ca_bundle"
  14667. echo "LibXML2: $have_libxml2"
  14668. echo "LibExpat: $have_libexpat"
  14669. echo "LibCares: $have_libcares"
  14670. echo "Libz: $have_libz"
  14671. echo "Epoll: $have_epoll"
  14672. echo "Bittorrent: $enable_bittorrent"
  14673. echo "Metalink: $enable_metalink"
  14674. echo "XML-RPC: $enable_xml_rpc"