configure 1017 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680306813068230683306843068530686306873068830689306903069130692306933069430695306963069730698306993070030701307023070330704307053070630707307083070930710307113071230713307143071530716307173071830719307203072130722307233072430725307263072730728307293073030731307323073330734307353073630737307383073930740307413074230743307443074530746307473074830749307503075130752307533075430755307563075730758307593076030761307623076330764307653076630767307683076930770307713077230773307743077530776307773077830779307803078130782307833078430785307863078730788307893079030791307923079330794307953079630797307983079930800308013080230803308043080530806308073080830809308103081130812308133081430815308163081730818308193082030821308223082330824308253082630827308283082930830308313083230833308343083530836308373083830839308403084130842308433084430845308463084730848308493085030851308523085330854308553085630857308583085930860308613086230863308643086530866308673086830869308703087130872308733087430875308763087730878308793088030881308823088330884308853088630887308883088930890308913089230893308943089530896308973089830899309003090130902309033090430905309063090730908309093091030911309123091330914309153091630917309183091930920309213092230923309243092530926309273092830929309303093130932309333093430935309363093730938309393094030941309423094330944309453094630947309483094930950309513095230953309543095530956309573095830959309603096130962309633096430965309663096730968309693097030971309723097330974309753097630977309783097930980309813098230983309843098530986309873098830989309903099130992309933099430995309963099730998309993100031001310023100331004310053100631007310083100931010310113101231013310143101531016310173101831019310203102131022310233102431025310263102731028310293103031031310323103331034310353103631037310383103931040310413104231043310443104531046310473104831049310503105131052310533105431055310563105731058310593106031061310623106331064310653106631067310683106931070310713107231073310743107531076310773107831079310803108131082310833108431085310863108731088310893109031091310923109331094310953109631097310983109931100311013110231103311043110531106311073110831109311103111131112311133111431115311163111731118311193112031121311223112331124311253112631127311283112931130311313113231133311343113531136311373113831139311403114131142311433114431145311463114731148311493115031151311523115331154311553115631157311583115931160311613116231163311643116531166311673116831169311703117131172311733117431175311763117731178311793118031181311823118331184311853118631187311883118931190311913119231193311943119531196311973119831199312003120131202312033120431205312063120731208312093121031211312123121331214312153121631217312183121931220312213122231223312243122531226312273122831229312303123131232312333123431235312363123731238312393124031241312423124331244312453124631247312483124931250312513125231253312543125531256312573125831259312603126131262312633126431265312663126731268312693127031271312723127331274312753127631277312783127931280312813128231283312843128531286312873128831289312903129131292312933129431295312963129731298312993130031301313023130331304313053130631307313083130931310313113131231313313143131531316313173131831319313203132131322313233132431325313263132731328313293133031331313323133331334313353133631337313383133931340313413134231343313443134531346313473134831349313503135131352313533135431355313563135731358313593136031361313623136331364313653136631367313683136931370313713137231373313743137531376313773137831379313803138131382313833138431385313863138731388313893139031391313923139331394313953139631397313983139931400314013140231403314043140531406314073140831409314103141131412314133141431415314163141731418314193142031421314223142331424314253142631427314283142931430314313143231433314343143531436314373143831439314403144131442314433144431445314463144731448314493145031451314523145331454314553145631457314583145931460314613146231463314643146531466314673146831469314703147131472314733147431475314763147731478314793148031481314823148331484314853148631487314883148931490314913149231493314943149531496314973149831499315003150131502315033150431505315063150731508315093151031511315123151331514315153151631517315183151931520315213152231523315243152531526315273152831529315303153131532315333153431535315363153731538315393154031541315423154331544315453154631547315483154931550315513155231553315543155531556315573155831559315603156131562315633156431565315663156731568315693157031571315723157331574315753157631577315783157931580315813158231583315843158531586315873158831589315903159131592315933159431595315963159731598315993160031601316023160331604316053160631607316083160931610316113161231613316143161531616316173161831619316203162131622316233162431625316263162731628316293163031631316323163331634316353163631637316383163931640316413164231643316443164531646316473164831649316503165131652316533165431655316563165731658316593166031661316623166331664316653166631667316683166931670316713167231673316743167531676316773167831679316803168131682316833168431685316863168731688316893169031691316923169331694316953169631697316983169931700317013170231703317043170531706317073170831709317103171131712317133171431715317163171731718317193172031721317223172331724317253172631727317283172931730317313173231733317343173531736317373173831739317403174131742317433174431745317463174731748317493175031751317523175331754317553175631757317583175931760317613176231763317643176531766317673176831769317703177131772317733177431775317763177731778317793178031781317823178331784317853178631787317883178931790317913179231793317943179531796317973179831799318003180131802318033180431805318063180731808318093181031811318123181331814318153181631817318183181931820318213182231823318243182531826318273182831829318303183131832318333183431835318363183731838318393184031841318423184331844318453184631847318483184931850318513185231853318543185531856318573185831859318603186131862318633186431865318663186731868318693187031871318723187331874318753187631877318783187931880318813188231883318843188531886318873188831889318903189131892318933189431895318963189731898318993190031901319023190331904319053190631907319083190931910319113191231913319143191531916319173191831919319203192131922319233192431925319263192731928319293193031931319323193331934319353193631937319383193931940319413194231943319443194531946319473194831949319503195131952319533195431955319563195731958319593196031961319623196331964319653196631967319683196931970319713197231973319743197531976319773197831979319803198131982319833198431985319863198731988319893199031991319923199331994319953199631997319983199932000320013200232003320043200532006320073200832009320103201132012320133201432015320163201732018320193202032021320223202332024320253202632027320283202932030320313203232033320343203532036320373203832039320403204132042320433204432045320463204732048320493205032051320523205332054320553205632057320583205932060320613206232063320643206532066320673206832069320703207132072320733207432075320763207732078320793208032081320823208332084320853208632087320883208932090320913209232093320943209532096320973209832099321003210132102321033210432105321063210732108321093211032111321123211332114321153211632117321183211932120321213212232123321243212532126321273212832129321303213132132321333213432135321363213732138321393214032141321423214332144321453214632147321483214932150321513215232153321543215532156321573215832159321603216132162321633216432165321663216732168321693217032171321723217332174321753217632177321783217932180321813218232183321843218532186321873218832189321903219132192321933219432195321963219732198321993220032201322023220332204322053220632207322083220932210322113221232213322143221532216322173221832219322203222132222322233222432225322263222732228322293223032231322323223332234322353223632237322383223932240322413224232243322443224532246322473224832249322503225132252322533225432255322563225732258322593226032261322623226332264322653226632267322683226932270322713227232273322743227532276322773227832279322803228132282322833228432285322863228732288322893229032291322923229332294322953229632297322983229932300323013230232303323043230532306323073230832309323103231132312323133231432315323163231732318323193232032321323223232332324323253232632327323283232932330323313233232333323343233532336323373233832339323403234132342323433234432345323463234732348323493235032351323523235332354323553235632357323583235932360323613236232363323643236532366323673236832369323703237132372323733237432375323763237732378323793238032381323823238332384323853238632387323883238932390323913239232393323943239532396323973239832399324003240132402324033240432405324063240732408324093241032411324123241332414324153241632417324183241932420324213242232423324243242532426324273242832429324303243132432324333243432435324363243732438324393244032441324423244332444324453244632447324483244932450324513245232453324543245532456324573245832459324603246132462324633246432465324663246732468324693247032471324723247332474324753247632477324783247932480324813248232483324843248532486324873248832489324903249132492324933249432495324963249732498324993250032501325023250332504325053250632507325083250932510325113251232513325143251532516325173251832519325203252132522325233252432525325263252732528325293253032531325323253332534325353253632537325383253932540325413254232543325443254532546325473254832549325503255132552325533255432555325563255732558325593256032561325623256332564325653256632567325683256932570325713257232573325743257532576325773257832579325803258132582325833258432585325863258732588325893259032591325923259332594325953259632597325983259932600326013260232603326043260532606326073260832609326103261132612326133261432615326163261732618326193262032621326223262332624326253262632627326283262932630326313263232633326343263532636326373263832639326403264132642326433264432645326463264732648326493265032651326523265332654326553265632657326583265932660326613266232663326643266532666326673266832669326703267132672326733267432675326763267732678326793268032681326823268332684326853268632687326883268932690326913269232693326943269532696326973269832699327003270132702327033270432705327063270732708327093271032711327123271332714327153271632717327183271932720327213272232723327243272532726327273272832729327303273132732327333273432735327363273732738327393274032741327423274332744327453274632747327483274932750327513275232753327543275532756327573275832759327603276132762327633276432765327663276732768327693277032771327723277332774327753277632777327783277932780327813278232783327843278532786327873278832789327903279132792327933279432795327963279732798327993280032801328023280332804328053280632807328083280932810328113281232813328143281532816328173281832819328203282132822328233282432825328263282732828328293283032831328323283332834328353283632837328383283932840328413284232843328443284532846328473284832849328503285132852328533285432855328563285732858328593286032861328623286332864328653286632867328683286932870328713287232873328743287532876328773287832879328803288132882328833288432885328863288732888328893289032891328923289332894328953289632897328983289932900329013290232903329043290532906329073290832909329103291132912329133291432915329163291732918329193292032921329223292332924329253292632927329283292932930329313293232933329343293532936329373293832939329403294132942329433294432945329463294732948329493295032951329523295332954329553295632957329583295932960329613296232963329643296532966329673296832969329703297132972329733297432975329763297732978329793298032981329823298332984329853298632987329883298932990329913299232993329943299532996329973299832999330003300133002330033300433005330063300733008330093301033011330123301333014330153301633017330183301933020330213302233023330243302533026330273302833029330303303133032330333303433035330363303733038330393304033041330423304333044330453304633047330483304933050330513305233053330543305533056330573305833059330603306133062330633306433065330663306733068330693307033071330723307333074330753307633077330783307933080330813308233083330843308533086330873308833089330903309133092330933309433095330963309733098330993310033101331023310333104331053310633107331083310933110331113311233113331143311533116331173311833119331203312133122331233312433125331263312733128331293313033131331323313333134331353313633137331383313933140331413314233143331443314533146331473314833149331503315133152331533315433155331563315733158331593316033161331623316333164331653316633167331683316933170331713317233173331743317533176331773317833179331803318133182331833318433185331863318733188331893319033191331923319333194331953319633197331983319933200332013320233203332043320533206332073320833209332103321133212332133321433215332163321733218332193322033221332223322333224332253322633227332283322933230332313323233233332343323533236332373323833239332403324133242332433324433245332463324733248332493325033251332523325333254332553325633257332583325933260332613326233263332643326533266332673326833269332703327133272332733327433275332763327733278332793328033281332823328333284332853328633287332883328933290332913329233293332943329533296332973329833299333003330133302333033330433305333063330733308333093331033311333123331333314333153331633317333183331933320333213332233323333243332533326333273332833329333303333133332333333333433335333363333733338333393334033341333423334333344333453334633347333483334933350333513335233353333543335533356333573335833359333603336133362333633336433365333663336733368333693337033371333723337333374333753337633377333783337933380333813338233383333843338533386333873338833389333903339133392333933339433395333963339733398333993340033401334023340333404334053340633407334083340933410334113341233413334143341533416334173341833419334203342133422334233342433425334263342733428334293343033431334323343333434334353343633437334383343933440334413344233443334443344533446334473344833449334503345133452334533345433455334563345733458334593346033461334623346333464334653346633467334683346933470334713347233473334743347533476334773347833479334803348133482334833348433485334863348733488334893349033491334923349333494334953349633497334983349933500335013350233503335043350533506335073350833509335103351133512335133351433515335163351733518335193352033521335223352333524335253352633527335283352933530335313353233533335343353533536335373353833539335403354133542335433354433545335463354733548335493355033551335523355333554335553355633557335583355933560335613356233563335643356533566335673356833569335703357133572335733357433575335763357733578335793358033581335823358333584335853358633587335883358933590335913359233593335943359533596335973359833599336003360133602336033360433605336063360733608336093361033611336123361333614336153361633617336183361933620336213362233623336243362533626336273362833629336303363133632336333363433635336363363733638336393364033641336423364333644336453364633647336483364933650336513365233653336543365533656336573365833659336603366133662336633366433665336663366733668336693367033671336723367333674336753367633677336783367933680336813368233683336843368533686336873368833689336903369133692336933369433695336963369733698336993370033701337023370333704337053370633707337083370933710337113371233713337143371533716337173371833719337203372133722337233372433725337263372733728337293373033731337323373333734337353373633737337383373933740337413374233743337443374533746337473374833749337503375133752337533375433755337563375733758337593376033761337623376333764337653376633767337683376933770337713377233773337743377533776337773377833779337803378133782337833378433785337863378733788337893379033791337923379333794337953379633797337983379933800338013380233803338043380533806338073380833809338103381133812338133381433815338163381733818338193382033821338223382333824338253382633827338283382933830338313383233833338343383533836338373383833839338403384133842338433384433845338463384733848338493385033851338523385333854338553385633857338583385933860338613386233863338643386533866338673386833869338703387133872338733387433875338763387733878338793388033881338823388333884338853388633887338883388933890338913389233893338943389533896338973389833899339003390133902339033390433905339063390733908339093391033911339123391333914339153391633917339183391933920339213392233923339243392533926339273392833929339303393133932339333393433935339363393733938339393394033941339423394333944339453394633947339483394933950339513395233953339543395533956339573395833959339603396133962339633396433965339663396733968339693397033971339723397333974339753397633977339783397933980339813398233983339843398533986339873398833989339903399133992339933399433995339963399733998339993400034001340023400334004340053400634007340083400934010340113401234013340143401534016340173401834019340203402134022340233402434025340263402734028340293403034031340323403334034340353403634037340383403934040340413404234043340443404534046340473404834049340503405134052340533405434055340563405734058340593406034061340623406334064340653406634067340683406934070340713407234073340743407534076340773407834079340803408134082340833408434085340863408734088340893409034091340923409334094340953409634097340983409934100341013410234103341043410534106341073410834109341103411134112341133411434115341163411734118341193412034121341223412334124341253412634127341283412934130341313413234133341343413534136341373413834139341403414134142341433414434145341463414734148341493415034151341523415334154341553415634157341583415934160341613416234163341643416534166341673416834169341703417134172341733417434175341763417734178341793418034181341823418334184341853418634187341883418934190341913419234193341943419534196341973419834199342003420134202342033420434205342063420734208342093421034211342123421334214342153421634217342183421934220342213422234223342243422534226342273422834229342303423134232342333423434235342363423734238342393424034241342423424334244342453424634247342483424934250342513425234253342543425534256342573425834259342603426134262342633426434265342663426734268342693427034271342723427334274342753427634277342783427934280342813428234283342843428534286342873428834289342903429134292342933429434295342963429734298342993430034301343023430334304343053430634307343083430934310343113431234313343143431534316343173431834319343203432134322343233432434325343263432734328343293433034331343323433334334343353433634337343383433934340343413434234343343443434534346343473434834349343503435134352343533435434355343563435734358343593436034361343623436334364343653436634367343683436934370343713437234373343743437534376343773437834379343803438134382343833438434385343863438734388343893439034391343923439334394343953439634397343983439934400344013440234403344043440534406344073440834409344103441134412344133441434415344163441734418344193442034421344223442334424344253442634427344283442934430344313443234433344343443534436344373443834439344403444134442344433444434445344463444734448344493445034451344523445334454344553445634457344583445934460344613446234463344643446534466344673446834469344703447134472344733447434475344763447734478344793448034481344823448334484344853448634487344883448934490344913449234493344943449534496344973449834499345003450134502345033450434505345063450734508345093451034511345123451334514345153451634517345183451934520345213452234523345243452534526345273452834529345303453134532345333453434535345363453734538345393454034541345423454334544345453454634547345483454934550345513455234553345543455534556345573455834559345603456134562345633456434565345663456734568345693457034571345723457334574345753457634577345783457934580345813458234583345843458534586345873458834589345903459134592345933459434595345963459734598345993460034601346023460334604346053460634607346083460934610346113461234613346143461534616346173461834619346203462134622346233462434625346263462734628346293463034631346323463334634346353463634637346383463934640346413464234643346443464534646346473464834649346503465134652346533465434655346563465734658346593466034661346623466334664346653466634667346683466934670346713467234673346743467534676346773467834679346803468134682346833468434685346863468734688346893469034691346923469334694346953469634697346983469934700347013470234703347043470534706347073470834709347103471134712347133471434715347163471734718347193472034721347223472334724347253472634727347283472934730347313473234733347343473534736347373473834739347403474134742347433474434745347463474734748347493475034751347523475334754347553475634757347583475934760347613476234763347643476534766347673476834769347703477134772347733477434775347763477734778347793478034781347823478334784347853478634787347883478934790347913479234793347943479534796347973479834799348003480134802348033480434805348063480734808348093481034811348123481334814348153481634817348183481934820348213482234823348243482534826348273482834829348303483134832348333483434835348363483734838348393484034841348423484334844348453484634847348483484934850348513485234853348543485534856348573485834859348603486134862348633486434865348663486734868348693487034871348723487334874348753487634877348783487934880348813488234883348843488534886348873488834889348903489134892348933489434895348963489734898348993490034901349023490334904349053490634907349083490934910349113491234913349143491534916349173491834919349203492134922349233492434925349263492734928349293493034931349323493334934349353493634937349383493934940349413494234943349443494534946349473494834949349503495134952349533495434955349563495734958349593496034961349623496334964349653496634967349683496934970349713497234973349743497534976349773497834979349803498134982349833498434985349863498734988349893499034991349923499334994349953499634997349983499935000350013500235003350043500535006350073500835009350103501135012350133501435015350163501735018350193502035021350223502335024350253502635027350283502935030350313503235033350343503535036350373503835039350403504135042350433504435045350463504735048350493505035051350523505335054350553505635057350583505935060350613506235063350643506535066350673506835069350703507135072350733507435075350763507735078350793508035081350823508335084350853508635087350883508935090350913509235093350943509535096350973509835099351003510135102351033510435105351063510735108351093511035111351123511335114351153511635117351183511935120351213512235123351243512535126351273512835129351303513135132351333513435135351363513735138351393514035141351423514335144351453514635147351483514935150351513515235153351543515535156351573515835159351603516135162351633516435165351663516735168351693517035171351723517335174351753517635177351783517935180351813518235183351843518535186351873518835189351903519135192351933519435195351963519735198351993520035201352023520335204352053520635207352083520935210352113521235213352143521535216352173521835219352203522135222352233522435225352263522735228352293523035231352323523335234352353523635237352383523935240352413524235243352443524535246352473524835249352503525135252352533525435255352563525735258352593526035261352623526335264352653526635267352683526935270352713527235273352743527535276352773527835279352803528135282352833528435285352863528735288352893529035291352923529335294352953529635297352983529935300353013530235303353043530535306353073530835309353103531135312353133531435315353163531735318353193532035321353223532335324353253532635327353283532935330353313533235333353343533535336353373533835339353403534135342353433534435345353463534735348353493535035351353523535335354353553535635357353583535935360353613536235363353643536535366353673536835369353703537135372353733537435375353763537735378353793538035381353823538335384353853538635387353883538935390353913539235393353943539535396353973539835399354003540135402354033540435405354063540735408354093541035411354123541335414354153541635417354183541935420354213542235423354243542535426354273542835429354303543135432354333543435435354363543735438354393544035441354423544335444354453544635447354483544935450354513545235453354543545535456354573545835459354603546135462354633546435465354663546735468354693547035471354723547335474354753547635477354783547935480354813548235483354843548535486354873548835489354903549135492354933549435495354963549735498354993550035501355023550335504355053550635507355083550935510355113551235513355143551535516355173551835519355203552135522355233552435525355263552735528355293553035531355323553335534355353553635537355383553935540355413554235543355443554535546355473554835549355503555135552355533555435555355563555735558355593556035561355623556335564355653556635567355683556935570355713557235573355743557535576355773557835579355803558135582355833558435585355863558735588355893559035591355923559335594355953559635597355983559935600356013560235603356043560535606356073560835609356103561135612356133561435615356163561735618356193562035621356223562335624356253562635627356283562935630356313563235633356343563535636356373563835639356403564135642356433564435645356463564735648356493565035651356523565335654356553565635657356583565935660356613566235663356643566535666356673566835669356703567135672356733567435675356763567735678356793568035681356823568335684356853568635687356883568935690356913569235693356943569535696356973569835699357003570135702357033570435705357063570735708357093571035711357123571335714357153571635717357183571935720357213572235723357243572535726357273572835729357303573135732357333573435735357363573735738357393574035741357423574335744357453574635747357483574935750357513575235753357543575535756357573575835759357603576135762357633576435765357663576735768357693577035771357723577335774357753577635777357783577935780357813578235783357843578535786357873578835789357903579135792357933579435795357963579735798357993580035801358023580335804358053580635807358083580935810358113581235813358143581535816358173581835819358203582135822358233582435825358263582735828358293583035831358323583335834358353583635837358383583935840358413584235843358443584535846358473584835849358503585135852358533585435855358563585735858358593586035861358623586335864358653586635867358683586935870358713587235873358743587535876358773587835879358803588135882358833588435885358863588735888358893589035891358923589335894358953589635897358983589935900359013590235903359043590535906359073590835909359103591135912359133591435915359163591735918359193592035921359223592335924359253592635927359283592935930359313593235933359343593535936359373593835939359403594135942359433594435945359463594735948359493595035951359523595335954359553595635957359583595935960359613596235963359643596535966359673596835969359703597135972359733597435975359763597735978359793598035981359823598335984359853598635987359883598935990359913599235993359943599535996359973599835999360003600136002360033600436005360063600736008360093601036011360123601336014360153601636017360183601936020360213602236023360243602536026360273602836029360303603136032360333603436035360363603736038360393604036041360423604336044360453604636047360483604936050360513605236053360543605536056360573605836059360603606136062360633606436065360663606736068360693607036071360723607336074360753607636077360783607936080360813608236083360843608536086360873608836089360903609136092360933609436095360963609736098360993610036101361023610336104361053610636107361083610936110361113611236113361143611536116361173611836119361203612136122361233612436125361263612736128361293613036131361323613336134361353613636137361383613936140361413614236143361443614536146361473614836149361503615136152361533615436155361563615736158361593616036161361623616336164361653616636167361683616936170361713617236173361743617536176361773617836179361803618136182361833618436185361863618736188361893619036191361923619336194361953619636197361983619936200362013620236203362043620536206362073620836209362103621136212362133621436215362163621736218362193622036221362223622336224362253622636227362283622936230362313623236233362343623536236362373623836239362403624136242362433624436245362463624736248362493625036251362523625336254362553625636257362583625936260362613626236263362643626536266362673626836269362703627136272362733627436275362763627736278362793628036281362823628336284362853628636287362883628936290362913629236293362943629536296362973629836299363003630136302363033630436305363063630736308363093631036311363123631336314363153631636317363183631936320363213632236323363243632536326363273632836329363303633136332363333633436335363363633736338363393634036341363423634336344363453634636347363483634936350363513635236353363543635536356363573635836359363603636136362363633636436365363663636736368363693637036371363723637336374363753637636377363783637936380363813638236383363843638536386363873638836389363903639136392363933639436395363963639736398363993640036401364023640336404364053640636407364083640936410364113641236413364143641536416364173641836419364203642136422364233642436425364263642736428364293643036431364323643336434364353643636437364383643936440364413644236443364443644536446364473644836449364503645136452364533645436455364563645736458364593646036461364623646336464364653646636467364683646936470364713647236473364743647536476364773647836479364803648136482364833648436485364863648736488364893649036491364923649336494364953649636497364983649936500365013650236503365043650536506365073650836509365103651136512365133651436515365163651736518365193652036521365223652336524365253652636527365283652936530365313653236533365343653536536365373653836539365403654136542365433654436545365463654736548365493655036551365523655336554365553655636557365583655936560365613656236563365643656536566365673656836569365703657136572365733657436575365763657736578365793658036581365823658336584365853658636587365883658936590365913659236593365943659536596365973659836599366003660136602366033660436605366063660736608366093661036611366123661336614366153661636617366183661936620366213662236623366243662536626366273662836629366303663136632366333663436635366363663736638366393664036641366423664336644366453664636647366483664936650366513665236653366543665536656366573665836659366603666136662366633666436665366663666736668366693667036671366723667336674366753667636677366783667936680366813668236683366843668536686366873668836689366903669136692366933669436695366963669736698366993670036701367023670336704367053670636707367083670936710367113671236713367143671536716367173671836719367203672136722367233672436725367263672736728367293673036731367323673336734367353673636737367383673936740367413674236743367443674536746367473674836749367503675136752367533675436755367563675736758367593676036761367623676336764367653676636767367683676936770367713677236773367743677536776367773677836779367803678136782367833678436785367863678736788367893679036791367923679336794367953679636797367983679936800368013680236803368043680536806368073680836809368103681136812368133681436815368163681736818368193682036821368223682336824368253682636827368283682936830368313683236833368343683536836368373683836839368403684136842368433684436845368463684736848368493685036851368523685336854368553685636857368583685936860368613686236863368643686536866368673686836869368703687136872368733687436875368763687736878368793688036881368823688336884368853688636887368883688936890368913689236893368943689536896368973689836899369003690136902369033690436905369063690736908369093691036911369123691336914369153691636917369183691936920369213692236923369243692536926369273692836929369303693136932369333693436935
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.71 for c-ares 1.18.1.
  4. #
  5. # Report bugs to <c-ares mailing list: http://lists.haxx.se/listinfo/c-ares>.
  6. #
  7. #
  8. # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
  9. # Inc.
  10. #
  11. #
  12. # This configure script is free software; the Free Software Foundation
  13. # gives unlimited permission to copy, distribute and modify it.
  14. ## -------------------------------- ##
  15. ## XC_CONFIGURE_PREAMBLE ver: 1.0 ##
  16. ## -------------------------------- ##
  17. xc_configure_preamble_ver_major='1'
  18. xc_configure_preamble_ver_minor='0'
  19. #
  20. # Set IFS to space, tab and newline.
  21. #
  22. xc_space=' '
  23. xc_tab=' '
  24. xc_newline='
  25. '
  26. IFS="$xc_space$xc_tab$xc_newline"
  27. #
  28. # Set internationalization behavior variables.
  29. #
  30. LANG='C'
  31. LC_ALL='C'
  32. LANGUAGE='C'
  33. export LANG
  34. export LC_ALL
  35. export LANGUAGE
  36. #
  37. # Some useful variables.
  38. #
  39. xc_msg_warn='configure: WARNING:'
  40. xc_msg_abrt='Can not continue.'
  41. xc_msg_err='configure: error:'
  42. #
  43. # Verify that 'echo' command is available, otherwise abort.
  44. #
  45. xc_tst_str='unknown'
  46. (`echo "$xc_tst_str" >/dev/null 2>&1`) && xc_tst_str='success'
  47. case "x$xc_tst_str" in # ((
  48. xsuccess)
  49. :
  50. ;;
  51. *)
  52. # Try built-in echo, and fail.
  53. echo "$xc_msg_err 'echo' command not found. $xc_msg_abrt" >&2
  54. exit 1
  55. ;;
  56. esac
  57. #
  58. # Verify that 'test' command is available, otherwise abort.
  59. #
  60. xc_tst_str='unknown'
  61. (`test -n "$xc_tst_str" >/dev/null 2>&1`) && xc_tst_str='success'
  62. case "x$xc_tst_str" in # ((
  63. xsuccess)
  64. :
  65. ;;
  66. *)
  67. echo "$xc_msg_err 'test' command not found. $xc_msg_abrt" >&2
  68. exit 1
  69. ;;
  70. esac
  71. #
  72. # Verify that 'PATH' variable is set, otherwise abort.
  73. #
  74. xc_tst_str='unknown'
  75. (`test -n "$PATH" >/dev/null 2>&1`) && xc_tst_str='success'
  76. case "x$xc_tst_str" in # ((
  77. xsuccess)
  78. :
  79. ;;
  80. *)
  81. echo "$xc_msg_err 'PATH' variable not set. $xc_msg_abrt" >&2
  82. exit 1
  83. ;;
  84. esac
  85. #
  86. # Verify that 'expr' command is available, otherwise abort.
  87. #
  88. xc_tst_str='unknown'
  89. xc_tst_str=`expr "$xc_tst_str" : '.*' 2>/dev/null`
  90. case "x$xc_tst_str" in # ((
  91. x7)
  92. :
  93. ;;
  94. *)
  95. echo "$xc_msg_err 'expr' command not found. $xc_msg_abrt" >&2
  96. exit 1
  97. ;;
  98. esac
  99. #
  100. # Verify that 'sed' utility is found within 'PATH', otherwise abort.
  101. #
  102. xc_tst_str='unknown'
  103. xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
  104. | sed -e 's:unknown:success:' 2>/dev/null`
  105. case "x$xc_tst_str" in # ((
  106. xsuccess)
  107. :
  108. ;;
  109. *)
  110. echo "$xc_msg_err 'sed' utility not found in 'PATH'. $xc_msg_abrt" >&2
  111. exit 1
  112. ;;
  113. esac
  114. #
  115. # Verify that 'grep' utility is found within 'PATH', otherwise abort.
  116. #
  117. xc_tst_str='unknown'
  118. (`echo "$xc_tst_str" 2>/dev/null \
  119. | grep 'unknown' >/dev/null 2>&1`) && xc_tst_str='success'
  120. case "x$xc_tst_str" in # ((
  121. xsuccess)
  122. :
  123. ;;
  124. *)
  125. echo "$xc_msg_err 'grep' utility not found in 'PATH'. $xc_msg_abrt" >&2
  126. exit 1
  127. ;;
  128. esac
  129. #
  130. # Verify that 'tr' utility is found within 'PATH', otherwise abort.
  131. #
  132. xc_tst_str="${xc_tab}98s7u6c5c4e3s2s10"
  133. xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
  134. | tr -d "0123456789$xc_tab" 2>/dev/null`
  135. case "x$xc_tst_str" in # ((
  136. xsuccess)
  137. :
  138. ;;
  139. *)
  140. echo "$xc_msg_err 'tr' utility not found in 'PATH'. $xc_msg_abrt" >&2
  141. exit 1
  142. ;;
  143. esac
  144. #
  145. # Verify that 'wc' utility is found within 'PATH', otherwise abort.
  146. #
  147. xc_tst_str='unknown unknown unknown unknown'
  148. xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
  149. | wc -w 2>/dev/null | tr -d "$xc_space$xc_tab" 2>/dev/null`
  150. case "x$xc_tst_str" in # ((
  151. x4)
  152. :
  153. ;;
  154. *)
  155. echo "$xc_msg_err 'wc' utility not found in 'PATH'. $xc_msg_abrt" >&2
  156. exit 1
  157. ;;
  158. esac
  159. #
  160. # Verify that 'cat' utility is found within 'PATH', otherwise abort.
  161. #
  162. xc_tst_str='unknown'
  163. xc_tst_str=`cat <<_EOT 2>/dev/null \
  164. | wc -l 2>/dev/null | tr -d "$xc_space$xc_tab" 2>/dev/null
  165. unknown
  166. unknown
  167. unknown
  168. _EOT`
  169. case "x$xc_tst_str" in # ((
  170. x3)
  171. :
  172. ;;
  173. *)
  174. echo "$xc_msg_err 'cat' utility not found in 'PATH'. $xc_msg_abrt" >&2
  175. exit 1
  176. ;;
  177. esac
  178. #
  179. # Auto-detect and set 'PATH_SEPARATOR', unless it is already non-empty set.
  180. #
  181. # Directory count in 'PATH' when using a colon separator.
  182. xc_tst_dirs_col='x'
  183. xc_tst_prev_IFS=$IFS; IFS=':'
  184. for xc_tst_dir in $PATH; do
  185. IFS=$xc_tst_prev_IFS
  186. xc_tst_dirs_col="x$xc_tst_dirs_col"
  187. done
  188. IFS=$xc_tst_prev_IFS
  189. xc_tst_dirs_col=`expr "$xc_tst_dirs_col" : '.*'`
  190. # Directory count in 'PATH' when using a semicolon separator.
  191. xc_tst_dirs_sem='x'
  192. xc_tst_prev_IFS=$IFS; IFS=';'
  193. for xc_tst_dir in $PATH; do
  194. IFS=$xc_tst_prev_IFS
  195. xc_tst_dirs_sem="x$xc_tst_dirs_sem"
  196. done
  197. IFS=$xc_tst_prev_IFS
  198. xc_tst_dirs_sem=`expr "$xc_tst_dirs_sem" : '.*'`
  199. if test $xc_tst_dirs_sem -eq $xc_tst_dirs_col; then
  200. # When both counting methods give the same result we do not want to
  201. # chose one over the other, and consider auto-detection not possible.
  202. if test -z "$PATH_SEPARATOR"; then
  203. # Stop dead until user provides 'PATH_SEPARATOR' definition.
  204. echo "$xc_msg_err 'PATH_SEPARATOR' variable not set. $xc_msg_abrt" >&2
  205. exit 1
  206. fi
  207. else
  208. # Separator with the greater directory count is the auto-detected one.
  209. if test $xc_tst_dirs_sem -gt $xc_tst_dirs_col; then
  210. xc_tst_auto_separator=';'
  211. else
  212. xc_tst_auto_separator=':'
  213. fi
  214. if test -z "$PATH_SEPARATOR"; then
  215. # Simply use the auto-detected one when not already set.
  216. PATH_SEPARATOR=$xc_tst_auto_separator
  217. elif test "x$PATH_SEPARATOR" != "x$xc_tst_auto_separator"; then
  218. echo "$xc_msg_warn 'PATH_SEPARATOR' does not match auto-detected one." >&2
  219. fi
  220. fi
  221. xc_PATH_SEPARATOR=$PATH_SEPARATOR
  222. xc_configure_preamble_result='yes'
  223. ## -------------------- ##
  224. ## M4sh Initialization. ##
  225. ## -------------------- ##
  226. # Be more Bourne compatible
  227. DUALCASE=1; export DUALCASE # for MKS sh
  228. as_nop=:
  229. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  230. then :
  231. emulate sh
  232. NULLCMD=:
  233. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  234. # is contrary to our usage. Disable this feature.
  235. alias -g '${1+"$@"}'='"$@"'
  236. setopt NO_GLOB_SUBST
  237. else $as_nop
  238. case `(set -o) 2>/dev/null` in #(
  239. *posix*) :
  240. set -o posix ;; #(
  241. *) :
  242. ;;
  243. esac
  244. fi
  245. # Reset variables that may have inherited troublesome values from
  246. # the environment.
  247. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  248. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  249. # side effect of setting IFS to empty, thus disabling word splitting.)
  250. # Quoting is to prevent editors from complaining about space-tab.
  251. as_nl='
  252. '
  253. export as_nl
  254. IFS=" "" $as_nl"
  255. PS1='$ '
  256. PS2='> '
  257. PS4='+ '
  258. # Ensure predictable behavior from utilities with locale-dependent output.
  259. LC_ALL=C
  260. export LC_ALL
  261. LANGUAGE=C
  262. export LANGUAGE
  263. # We cannot yet rely on "unset" to work, but we need these variables
  264. # to be unset--not just set to an empty or harmless value--now, to
  265. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  266. # also avoids known problems related to "unset" and subshell syntax
  267. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  268. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  269. do eval test \${$as_var+y} \
  270. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  271. done
  272. # Ensure that fds 0, 1, and 2 are open.
  273. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  274. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  275. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  276. # Find who we are. Look in the path if we contain no directory separator.
  277. as_myself=
  278. case $0 in #((
  279. *[\\/]* ) as_myself=$0 ;;
  280. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  281. for as_dir in $PATH
  282. do
  283. IFS=$as_save_IFS
  284. case $as_dir in #(((
  285. '') as_dir=./ ;;
  286. */) ;;
  287. *) as_dir=$as_dir/ ;;
  288. esac
  289. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  290. done
  291. IFS=$as_save_IFS
  292. ;;
  293. esac
  294. # We did not find ourselves, most probably we were run as `sh COMMAND'
  295. # in which case we are not to be found in the path.
  296. if test "x$as_myself" = x; then
  297. as_myself=$0
  298. fi
  299. if test ! -f "$as_myself"; then
  300. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  301. exit 1
  302. fi
  303. # Use a proper internal environment variable to ensure we don't fall
  304. # into an infinite loop, continuously re-executing ourselves.
  305. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  306. _as_can_reexec=no; export _as_can_reexec;
  307. # We cannot yet assume a decent shell, so we have to provide a
  308. # neutralization value for shells without unset; and this also
  309. # works around shells that cannot unset nonexistent variables.
  310. # Preserve -v and -x to the replacement shell.
  311. BASH_ENV=/dev/null
  312. ENV=/dev/null
  313. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  314. case $- in # ((((
  315. *v*x* | *x*v* ) as_opts=-vx ;;
  316. *v* ) as_opts=-v ;;
  317. *x* ) as_opts=-x ;;
  318. * ) as_opts= ;;
  319. esac
  320. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  321. # Admittedly, this is quite paranoid, since all the known shells bail
  322. # out after a failed `exec'.
  323. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
  324. exit 255
  325. fi
  326. # We don't want this to propagate to other subprocesses.
  327. { _as_can_reexec=; unset _as_can_reexec;}
  328. if test "x$CONFIG_SHELL" = x; then
  329. as_bourne_compatible="as_nop=:
  330. if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  331. then :
  332. emulate sh
  333. NULLCMD=:
  334. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  335. # is contrary to our usage. Disable this feature.
  336. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  337. setopt NO_GLOB_SUBST
  338. else \$as_nop
  339. case \`(set -o) 2>/dev/null\` in #(
  340. *posix*) :
  341. set -o posix ;; #(
  342. *) :
  343. ;;
  344. esac
  345. fi
  346. "
  347. as_required="as_fn_return () { (exit \$1); }
  348. as_fn_success () { as_fn_return 0; }
  349. as_fn_failure () { as_fn_return 1; }
  350. as_fn_ret_success () { return 0; }
  351. as_fn_ret_failure () { return 1; }
  352. exitcode=0
  353. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  354. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  355. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  356. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  357. if ( set x; as_fn_ret_success y && test x = \"\$1\" )
  358. then :
  359. else \$as_nop
  360. exitcode=1; echo positional parameters were not saved.
  361. fi
  362. test x\$exitcode = x0 || exit 1
  363. blah=\$(echo \$(echo blah))
  364. test x\"\$blah\" = xblah || exit 1
  365. test -x / || exit 1"
  366. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  367. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  368. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  369. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  370. test \$(( 1 + 1 )) = 2 || exit 1
  371. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  372. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  373. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  374. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  375. PATH=/empty FPATH=/empty; export PATH FPATH
  376. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  377. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
  378. if (eval "$as_required") 2>/dev/null
  379. then :
  380. as_have_required=yes
  381. else $as_nop
  382. as_have_required=no
  383. fi
  384. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
  385. then :
  386. else $as_nop
  387. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  388. as_found=false
  389. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  390. do
  391. IFS=$as_save_IFS
  392. case $as_dir in #(((
  393. '') as_dir=./ ;;
  394. */) ;;
  395. *) as_dir=$as_dir/ ;;
  396. esac
  397. as_found=:
  398. case $as_dir in #(
  399. /*)
  400. for as_base in sh bash ksh sh5; do
  401. # Try only shells that exist, to save several forks.
  402. as_shell=$as_dir$as_base
  403. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  404. as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
  405. then :
  406. CONFIG_SHELL=$as_shell as_have_required=yes
  407. if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
  408. then :
  409. break 2
  410. fi
  411. fi
  412. done;;
  413. esac
  414. as_found=false
  415. done
  416. IFS=$as_save_IFS
  417. if $as_found
  418. then :
  419. else $as_nop
  420. if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  421. as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
  422. then :
  423. CONFIG_SHELL=$SHELL as_have_required=yes
  424. fi
  425. fi
  426. if test "x$CONFIG_SHELL" != x
  427. then :
  428. export CONFIG_SHELL
  429. # We cannot yet assume a decent shell, so we have to provide a
  430. # neutralization value for shells without unset; and this also
  431. # works around shells that cannot unset nonexistent variables.
  432. # Preserve -v and -x to the replacement shell.
  433. BASH_ENV=/dev/null
  434. ENV=/dev/null
  435. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  436. case $- in # ((((
  437. *v*x* | *x*v* ) as_opts=-vx ;;
  438. *v* ) as_opts=-v ;;
  439. *x* ) as_opts=-x ;;
  440. * ) as_opts= ;;
  441. esac
  442. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  443. # Admittedly, this is quite paranoid, since all the known shells bail
  444. # out after a failed `exec'.
  445. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
  446. exit 255
  447. fi
  448. if test x$as_have_required = xno
  449. then :
  450. printf "%s\n" "$0: This script requires a shell more modern than all"
  451. printf "%s\n" "$0: the shells that I found on your system."
  452. if test ${ZSH_VERSION+y} ; then
  453. printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  454. printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
  455. else
  456. printf "%s\n" "$0: Please tell [email protected] and c-ares mailing
  457. $0: list: http://lists.haxx.se/listinfo/c-ares about your
  458. $0: system, including any error possibly output before this
  459. $0: message. Then install a modern shell, or manually run
  460. $0: the script under such a shell if you do have one."
  461. fi
  462. exit 1
  463. fi
  464. fi
  465. fi
  466. SHELL=${CONFIG_SHELL-/bin/sh}
  467. export SHELL
  468. # Unset more variables known to interfere with behavior of common tools.
  469. CLICOLOR_FORCE= GREP_OPTIONS=
  470. unset CLICOLOR_FORCE GREP_OPTIONS
  471. ## --------------------- ##
  472. ## M4sh Shell Functions. ##
  473. ## --------------------- ##
  474. # as_fn_unset VAR
  475. # ---------------
  476. # Portably unset VAR.
  477. as_fn_unset ()
  478. {
  479. { eval $1=; unset $1;}
  480. }
  481. as_unset=as_fn_unset
  482. # as_fn_set_status STATUS
  483. # -----------------------
  484. # Set $? to STATUS, without forking.
  485. as_fn_set_status ()
  486. {
  487. return $1
  488. } # as_fn_set_status
  489. # as_fn_exit STATUS
  490. # -----------------
  491. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  492. as_fn_exit ()
  493. {
  494. set +e
  495. as_fn_set_status $1
  496. exit $1
  497. } # as_fn_exit
  498. # as_fn_nop
  499. # ---------
  500. # Do nothing but, unlike ":", preserve the value of $?.
  501. as_fn_nop ()
  502. {
  503. return $?
  504. }
  505. as_nop=as_fn_nop
  506. # as_fn_mkdir_p
  507. # -------------
  508. # Create "$as_dir" as a directory, including parents if necessary.
  509. as_fn_mkdir_p ()
  510. {
  511. case $as_dir in #(
  512. -*) as_dir=./$as_dir;;
  513. esac
  514. test -d "$as_dir" || eval $as_mkdir_p || {
  515. as_dirs=
  516. while :; do
  517. case $as_dir in #(
  518. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  519. *) as_qdir=$as_dir;;
  520. esac
  521. as_dirs="'$as_qdir' $as_dirs"
  522. as_dir=`$as_dirname -- "$as_dir" ||
  523. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  524. X"$as_dir" : 'X\(//\)[^/]' \| \
  525. X"$as_dir" : 'X\(//\)$' \| \
  526. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  527. printf "%s\n" X"$as_dir" |
  528. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  529. s//\1/
  530. q
  531. }
  532. /^X\(\/\/\)[^/].*/{
  533. s//\1/
  534. q
  535. }
  536. /^X\(\/\/\)$/{
  537. s//\1/
  538. q
  539. }
  540. /^X\(\/\).*/{
  541. s//\1/
  542. q
  543. }
  544. s/.*/./; q'`
  545. test -d "$as_dir" && break
  546. done
  547. test -z "$as_dirs" || eval "mkdir $as_dirs"
  548. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  549. } # as_fn_mkdir_p
  550. # as_fn_executable_p FILE
  551. # -----------------------
  552. # Test if FILE is an executable regular file.
  553. as_fn_executable_p ()
  554. {
  555. test -f "$1" && test -x "$1"
  556. } # as_fn_executable_p
  557. # as_fn_append VAR VALUE
  558. # ----------------------
  559. # Append the text in VALUE to the end of the definition contained in VAR. Take
  560. # advantage of any shell optimizations that allow amortized linear growth over
  561. # repeated appends, instead of the typical quadratic growth present in naive
  562. # implementations.
  563. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  564. then :
  565. eval 'as_fn_append ()
  566. {
  567. eval $1+=\$2
  568. }'
  569. else $as_nop
  570. as_fn_append ()
  571. {
  572. eval $1=\$$1\$2
  573. }
  574. fi # as_fn_append
  575. # as_fn_arith ARG...
  576. # ------------------
  577. # Perform arithmetic evaluation on the ARGs, and store the result in the
  578. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  579. # must be portable across $(()) and expr.
  580. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  581. then :
  582. eval 'as_fn_arith ()
  583. {
  584. as_val=$(( $* ))
  585. }'
  586. else $as_nop
  587. as_fn_arith ()
  588. {
  589. as_val=`expr "$@" || test $? -eq 1`
  590. }
  591. fi # as_fn_arith
  592. # as_fn_nop
  593. # ---------
  594. # Do nothing but, unlike ":", preserve the value of $?.
  595. as_fn_nop ()
  596. {
  597. return $?
  598. }
  599. as_nop=as_fn_nop
  600. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  601. # ----------------------------------------
  602. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  603. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  604. # script with STATUS, using 1 if that was 0.
  605. as_fn_error ()
  606. {
  607. as_status=$1; test $as_status -eq 0 && as_status=1
  608. if test "$4"; then
  609. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  610. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  611. fi
  612. printf "%s\n" "$as_me: error: $2" >&2
  613. as_fn_exit $as_status
  614. } # as_fn_error
  615. if expr a : '\(a\)' >/dev/null 2>&1 &&
  616. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  617. as_expr=expr
  618. else
  619. as_expr=false
  620. fi
  621. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  622. as_basename=basename
  623. else
  624. as_basename=false
  625. fi
  626. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  627. as_dirname=dirname
  628. else
  629. as_dirname=false
  630. fi
  631. as_me=`$as_basename -- "$0" ||
  632. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  633. X"$0" : 'X\(//\)$' \| \
  634. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  635. printf "%s\n" X/"$0" |
  636. sed '/^.*\/\([^/][^/]*\)\/*$/{
  637. s//\1/
  638. q
  639. }
  640. /^X\/\(\/\/\)$/{
  641. s//\1/
  642. q
  643. }
  644. /^X\/\(\/\).*/{
  645. s//\1/
  646. q
  647. }
  648. s/.*/./; q'`
  649. # Avoid depending upon Character Ranges.
  650. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  651. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  652. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  653. as_cr_digits='0123456789'
  654. as_cr_alnum=$as_cr_Letters$as_cr_digits
  655. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  656. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  657. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  658. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  659. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  660. sed -n '
  661. p
  662. /[$]LINENO/=
  663. ' <$as_myself |
  664. sed '
  665. s/[$]LINENO.*/&-/
  666. t lineno
  667. b
  668. :lineno
  669. N
  670. :loop
  671. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  672. t loop
  673. s/-\n.*//
  674. ' >$as_me.lineno &&
  675. chmod +x "$as_me.lineno" ||
  676. { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  677. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  678. # already done that, so ensure we don't try to do so again and fall
  679. # in an infinite loop. This has already happened in practice.
  680. _as_can_reexec=no; export _as_can_reexec
  681. # Don't try to exec as it changes $[0], causing all sort of problems
  682. # (the dirname of $[0] is not the place where we might find the
  683. # original and so on. Autoconf is especially sensitive to this).
  684. . "./$as_me.lineno"
  685. # Exit status is that of the last command.
  686. exit
  687. }
  688. # Determine whether it's possible to make 'echo' print without a newline.
  689. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  690. # for compatibility with existing Makefiles.
  691. ECHO_C= ECHO_N= ECHO_T=
  692. case `echo -n x` in #(((((
  693. -n*)
  694. case `echo 'xy\c'` in
  695. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  696. xy) ECHO_C='\c';;
  697. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  698. ECHO_T=' ';;
  699. esac;;
  700. *)
  701. ECHO_N='-n';;
  702. esac
  703. # For backward compatibility with old third-party macros, we provide
  704. # the shell variables $as_echo and $as_echo_n. New code should use
  705. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  706. as_echo='printf %s\n'
  707. as_echo_n='printf %s'
  708. rm -f conf$$ conf$$.exe conf$$.file
  709. if test -d conf$$.dir; then
  710. rm -f conf$$.dir/conf$$.file
  711. else
  712. rm -f conf$$.dir
  713. mkdir conf$$.dir 2>/dev/null
  714. fi
  715. if (echo >conf$$.file) 2>/dev/null; then
  716. if ln -s conf$$.file conf$$ 2>/dev/null; then
  717. as_ln_s='ln -s'
  718. # ... but there are two gotchas:
  719. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  720. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  721. # In both cases, we have to default to `cp -pR'.
  722. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  723. as_ln_s='cp -pR'
  724. elif ln conf$$.file conf$$ 2>/dev/null; then
  725. as_ln_s=ln
  726. else
  727. as_ln_s='cp -pR'
  728. fi
  729. else
  730. as_ln_s='cp -pR'
  731. fi
  732. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  733. rmdir conf$$.dir 2>/dev/null
  734. if mkdir -p . 2>/dev/null; then
  735. as_mkdir_p='mkdir -p "$as_dir"'
  736. else
  737. test -d ./-p && rmdir ./-p
  738. as_mkdir_p=false
  739. fi
  740. as_test_x='test -x'
  741. as_executable_p=as_fn_executable_p
  742. # Sed expression to map a string onto a valid CPP name.
  743. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  744. # Sed expression to map a string onto a valid variable name.
  745. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  746. SHELL=${CONFIG_SHELL-/bin/sh}
  747. test -n "$DJDIR" || exec 7<&0 </dev/null
  748. exec 6>&1
  749. # Name of the host.
  750. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  751. # so uname gets run too.
  752. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  753. #
  754. # Initializations.
  755. #
  756. ac_default_prefix=/usr/local
  757. ac_clean_files=
  758. ac_config_libobj_dir=.
  759. LIBOBJS=
  760. cross_compiling=no
  761. subdirs=
  762. MFLAGS=
  763. MAKEFLAGS=
  764. # Identity of this package.
  765. PACKAGE_NAME='c-ares'
  766. PACKAGE_TARNAME='c-ares'
  767. PACKAGE_VERSION='1.18.1'
  768. PACKAGE_STRING='c-ares 1.18.1'
  769. PACKAGE_BUGREPORT='c-ares mailing list: http://lists.haxx.se/listinfo/c-ares'
  770. PACKAGE_URL=''
  771. ac_unique_file="src/lib/ares_ipv6.h"
  772. # Factoring default headers for most tests.
  773. ac_includes_default="\
  774. #include <stddef.h>
  775. #ifdef HAVE_STDIO_H
  776. # include <stdio.h>
  777. #endif
  778. #ifdef HAVE_STDLIB_H
  779. # include <stdlib.h>
  780. #endif
  781. #ifdef HAVE_STRING_H
  782. # include <string.h>
  783. #endif
  784. #ifdef HAVE_INTTYPES_H
  785. # include <inttypes.h>
  786. #endif
  787. #ifdef HAVE_STDINT_H
  788. # include <stdint.h>
  789. #endif
  790. #ifdef HAVE_STRINGS_H
  791. # include <strings.h>
  792. #endif
  793. #ifdef HAVE_SYS_TYPES_H
  794. # include <sys/types.h>
  795. #endif
  796. #ifdef HAVE_SYS_STAT_H
  797. # include <sys/stat.h>
  798. #endif
  799. #ifdef HAVE_UNISTD_H
  800. # include <unistd.h>
  801. #endif"
  802. ac_header_c_list=
  803. enable_option_checking=no
  804. ac_subst_vars='am__EXEEXT_FALSE
  805. am__EXEEXT_TRUE
  806. LTLIBOBJS
  807. LIBOBJS
  808. BUILD_SUBDIRS
  809. subdirs
  810. CARES_CFLAG_EXTRAS
  811. CARES_PRIVATE_LIBS
  812. CFLAG_CARES_SYMBOL_HIDING
  813. DOING_CARES_SYMBOL_HIDING_FALSE
  814. DOING_CARES_SYMBOL_HIDING_TRUE
  815. CARES_RANDOM_FILE
  816. DOING_NATIVE_WINDOWS_FALSE
  817. DOING_NATIVE_WINDOWS_TRUE
  818. CPPFLAG_CARES_STATICLIB
  819. USE_CPPFLAG_CARES_STATICLIB_FALSE
  820. USE_CPPFLAG_CARES_STATICLIB_TRUE
  821. CARES_LT_SHLIB_USE_MIMPURE_TEXT_FALSE
  822. CARES_LT_SHLIB_USE_MIMPURE_TEXT_TRUE
  823. CARES_LT_SHLIB_USE_NO_UNDEFINED_FALSE
  824. CARES_LT_SHLIB_USE_NO_UNDEFINED_TRUE
  825. CARES_LT_SHLIB_USE_VERSION_INFO_FALSE
  826. CARES_LT_SHLIB_USE_VERSION_INFO_TRUE
  827. CXXCPP
  828. LT_SYS_LIBRARY_PATH
  829. OTOOL64
  830. OTOOL
  831. LIPO
  832. NMEDIT
  833. DSYMUTIL
  834. MANIFEST_TOOL
  835. RANLIB
  836. ac_ct_AR
  837. LN_S
  838. NM
  839. ac_ct_DUMPBIN
  840. DUMPBIN
  841. LD
  842. FGREP
  843. LIBTOOL
  844. OBJDUMP
  845. DLLTOOL
  846. AS
  847. CSCOPE
  848. ETAGS
  849. CTAGS
  850. am__fastdepCXX_FALSE
  851. am__fastdepCXX_TRUE
  852. CXXDEPMODE
  853. am__fastdepCC_FALSE
  854. am__fastdepCC_TRUE
  855. CCDEPMODE
  856. am__nodep
  857. AMDEPBACKSLASH
  858. AMDEP_FALSE
  859. AMDEP_TRUE
  860. am__include
  861. DEPDIR
  862. am__untar
  863. am__tar
  864. AMTAR
  865. am__leading_dot
  866. SET_MAKE
  867. mkdir_p
  868. MKDIR_P
  869. INSTALL_STRIP_PROGRAM
  870. STRIP
  871. install_sh
  872. MAKEINFO
  873. AUTOHEADER
  874. AUTOMAKE
  875. AUTOCONF
  876. ACLOCAL
  877. VERSION
  878. PACKAGE
  879. CYGPATH_W
  880. am__isrc
  881. HAVE_CXX11
  882. ac_ct_CXX
  883. CXXFLAGS
  884. CXX
  885. CPP
  886. OBJEXT
  887. EXEEXT
  888. ac_ct_CC
  889. CPPFLAGS
  890. LDFLAGS
  891. CFLAGS
  892. CC
  893. INSTALL_DATA
  894. INSTALL_SCRIPT
  895. INSTALL_PROGRAM
  896. host_os
  897. host_vendor
  898. host_cpu
  899. host
  900. build_os
  901. build_vendor
  902. build_cpu
  903. build
  904. CODE_COVERAGE_LIBS
  905. CODE_COVERAGE_CXXFLAGS
  906. CODE_COVERAGE_CFLAGS
  907. CODE_COVERAGE_CPPFLAGS
  908. GENHTML
  909. LCOV
  910. GCOV
  911. ifnGNUmake
  912. ifGNUmake
  913. AWK
  914. CODE_COVERAGE_ENABLED
  915. CODE_COVERAGE_ENABLED_FALSE
  916. CODE_COVERAGE_ENABLED_TRUE
  917. AR
  918. EGREP
  919. GREP
  920. SED
  921. AM_BACKSLASH
  922. AM_DEFAULT_VERBOSITY
  923. AM_DEFAULT_V
  924. AM_V
  925. MAINT
  926. MAINTAINER_MODE_FALSE
  927. MAINTAINER_MODE_TRUE
  928. CARES_VERSION_INFO
  929. target_alias
  930. host_alias
  931. build_alias
  932. LIBS
  933. ECHO_T
  934. ECHO_N
  935. ECHO_C
  936. DEFS
  937. mandir
  938. localedir
  939. libdir
  940. psdir
  941. pdfdir
  942. dvidir
  943. htmldir
  944. infodir
  945. docdir
  946. oldincludedir
  947. includedir
  948. runstatedir
  949. localstatedir
  950. sharedstatedir
  951. sysconfdir
  952. datadir
  953. datarootdir
  954. libexecdir
  955. sbindir
  956. bindir
  957. program_transform_name
  958. prefix
  959. exec_prefix
  960. PACKAGE_URL
  961. PACKAGE_BUGREPORT
  962. PACKAGE_STRING
  963. PACKAGE_VERSION
  964. PACKAGE_TARNAME
  965. PACKAGE_NAME
  966. SHELL
  967. PATH_SEPARATOR
  968. am__quote'
  969. ac_subst_files=''
  970. ac_user_opts='
  971. enable_option_checking
  972. enable_maintainer_mode
  973. enable_silent_rules
  974. enable_debug
  975. enable_optimize
  976. enable_warnings
  977. enable_werror
  978. enable_symbol_hiding
  979. enable_expose_statics
  980. with_gcov
  981. enable_code_coverage
  982. enable_dependency_tracking
  983. enable_largefile
  984. enable_shared
  985. enable_static
  986. with_pic
  987. enable_fast_install
  988. with_aix_soname
  989. with_gnu_ld
  990. with_sysroot
  991. enable_libtool_lock
  992. enable_libgcc
  993. with_random
  994. enable_nonblocking
  995. enable_tests
  996. '
  997. ac_precious_vars='build_alias
  998. host_alias
  999. target_alias
  1000. CC
  1001. CFLAGS
  1002. LDFLAGS
  1003. LIBS
  1004. CPPFLAGS
  1005. CPP
  1006. CXX
  1007. CXXFLAGS
  1008. CCC
  1009. LT_SYS_LIBRARY_PATH
  1010. CXXCPP'
  1011. ac_subdirs_all='test'
  1012. # Initialize some variables set by options.
  1013. ac_init_help=
  1014. ac_init_version=false
  1015. ac_unrecognized_opts=
  1016. ac_unrecognized_sep=
  1017. # The variables have the same names as the options, with
  1018. # dashes changed to underlines.
  1019. cache_file=/dev/null
  1020. exec_prefix=NONE
  1021. no_create=
  1022. no_recursion=
  1023. prefix=NONE
  1024. program_prefix=NONE
  1025. program_suffix=NONE
  1026. program_transform_name=s,x,x,
  1027. silent=
  1028. site=
  1029. srcdir=
  1030. verbose=
  1031. x_includes=NONE
  1032. x_libraries=NONE
  1033. # Installation directory options.
  1034. # These are left unexpanded so users can "make install exec_prefix=/foo"
  1035. # and all the variables that are supposed to be based on exec_prefix
  1036. # by default will actually change.
  1037. # Use braces instead of parens because sh, perl, etc. also accept them.
  1038. # (The list follows the same order as the GNU Coding Standards.)
  1039. bindir='${exec_prefix}/bin'
  1040. sbindir='${exec_prefix}/sbin'
  1041. libexecdir='${exec_prefix}/libexec'
  1042. datarootdir='${prefix}/share'
  1043. datadir='${datarootdir}'
  1044. sysconfdir='${prefix}/etc'
  1045. sharedstatedir='${prefix}/com'
  1046. localstatedir='${prefix}/var'
  1047. runstatedir='${localstatedir}/run'
  1048. includedir='${prefix}/include'
  1049. oldincludedir='/usr/include'
  1050. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  1051. infodir='${datarootdir}/info'
  1052. htmldir='${docdir}'
  1053. dvidir='${docdir}'
  1054. pdfdir='${docdir}'
  1055. psdir='${docdir}'
  1056. libdir='${exec_prefix}/lib'
  1057. localedir='${datarootdir}/locale'
  1058. mandir='${datarootdir}/man'
  1059. ac_prev=
  1060. ac_dashdash=
  1061. for ac_option
  1062. do
  1063. # If the previous option needs an argument, assign it.
  1064. if test -n "$ac_prev"; then
  1065. eval $ac_prev=\$ac_option
  1066. ac_prev=
  1067. continue
  1068. fi
  1069. case $ac_option in
  1070. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  1071. *=) ac_optarg= ;;
  1072. *) ac_optarg=yes ;;
  1073. esac
  1074. case $ac_dashdash$ac_option in
  1075. --)
  1076. ac_dashdash=yes ;;
  1077. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  1078. ac_prev=bindir ;;
  1079. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  1080. bindir=$ac_optarg ;;
  1081. -build | --build | --buil | --bui | --bu)
  1082. ac_prev=build_alias ;;
  1083. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  1084. build_alias=$ac_optarg ;;
  1085. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1086. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1087. ac_prev=cache_file ;;
  1088. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1089. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  1090. cache_file=$ac_optarg ;;
  1091. --config-cache | -C)
  1092. cache_file=config.cache ;;
  1093. -datadir | --datadir | --datadi | --datad)
  1094. ac_prev=datadir ;;
  1095. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  1096. datadir=$ac_optarg ;;
  1097. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  1098. | --dataroo | --dataro | --datar)
  1099. ac_prev=datarootdir ;;
  1100. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  1101. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1102. datarootdir=$ac_optarg ;;
  1103. -disable-* | --disable-*)
  1104. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1105. # Reject names that are not valid shell variable names.
  1106. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1107. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  1108. ac_useropt_orig=$ac_useropt
  1109. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1110. case $ac_user_opts in
  1111. *"
  1112. "enable_$ac_useropt"
  1113. "*) ;;
  1114. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1115. ac_unrecognized_sep=', ';;
  1116. esac
  1117. eval enable_$ac_useropt=no ;;
  1118. -docdir | --docdir | --docdi | --doc | --do)
  1119. ac_prev=docdir ;;
  1120. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1121. docdir=$ac_optarg ;;
  1122. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1123. ac_prev=dvidir ;;
  1124. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1125. dvidir=$ac_optarg ;;
  1126. -enable-* | --enable-*)
  1127. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1128. # Reject names that are not valid shell variable names.
  1129. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1130. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  1131. ac_useropt_orig=$ac_useropt
  1132. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1133. case $ac_user_opts in
  1134. *"
  1135. "enable_$ac_useropt"
  1136. "*) ;;
  1137. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1138. ac_unrecognized_sep=', ';;
  1139. esac
  1140. eval enable_$ac_useropt=\$ac_optarg ;;
  1141. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1142. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1143. | --exec | --exe | --ex)
  1144. ac_prev=exec_prefix ;;
  1145. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1146. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1147. | --exec=* | --exe=* | --ex=*)
  1148. exec_prefix=$ac_optarg ;;
  1149. -gas | --gas | --ga | --g)
  1150. # Obsolete; use --with-gas.
  1151. with_gas=yes ;;
  1152. -help | --help | --hel | --he | -h)
  1153. ac_init_help=long ;;
  1154. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1155. ac_init_help=recursive ;;
  1156. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1157. ac_init_help=short ;;
  1158. -host | --host | --hos | --ho)
  1159. ac_prev=host_alias ;;
  1160. -host=* | --host=* | --hos=* | --ho=*)
  1161. host_alias=$ac_optarg ;;
  1162. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1163. ac_prev=htmldir ;;
  1164. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1165. | --ht=*)
  1166. htmldir=$ac_optarg ;;
  1167. -includedir | --includedir | --includedi | --included | --include \
  1168. | --includ | --inclu | --incl | --inc)
  1169. ac_prev=includedir ;;
  1170. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1171. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1172. includedir=$ac_optarg ;;
  1173. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1174. ac_prev=infodir ;;
  1175. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1176. infodir=$ac_optarg ;;
  1177. -libdir | --libdir | --libdi | --libd)
  1178. ac_prev=libdir ;;
  1179. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1180. libdir=$ac_optarg ;;
  1181. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1182. | --libexe | --libex | --libe)
  1183. ac_prev=libexecdir ;;
  1184. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1185. | --libexe=* | --libex=* | --libe=*)
  1186. libexecdir=$ac_optarg ;;
  1187. -localedir | --localedir | --localedi | --localed | --locale)
  1188. ac_prev=localedir ;;
  1189. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1190. localedir=$ac_optarg ;;
  1191. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1192. | --localstate | --localstat | --localsta | --localst | --locals)
  1193. ac_prev=localstatedir ;;
  1194. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1195. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1196. localstatedir=$ac_optarg ;;
  1197. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1198. ac_prev=mandir ;;
  1199. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1200. mandir=$ac_optarg ;;
  1201. -nfp | --nfp | --nf)
  1202. # Obsolete; use --without-fp.
  1203. with_fp=no ;;
  1204. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1205. | --no-cr | --no-c | -n)
  1206. no_create=yes ;;
  1207. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1208. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1209. no_recursion=yes ;;
  1210. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1211. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1212. | --oldin | --oldi | --old | --ol | --o)
  1213. ac_prev=oldincludedir ;;
  1214. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1215. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1216. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1217. oldincludedir=$ac_optarg ;;
  1218. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1219. ac_prev=prefix ;;
  1220. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1221. prefix=$ac_optarg ;;
  1222. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1223. | --program-pre | --program-pr | --program-p)
  1224. ac_prev=program_prefix ;;
  1225. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1226. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1227. program_prefix=$ac_optarg ;;
  1228. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1229. | --program-suf | --program-su | --program-s)
  1230. ac_prev=program_suffix ;;
  1231. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1232. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1233. program_suffix=$ac_optarg ;;
  1234. -program-transform-name | --program-transform-name \
  1235. | --program-transform-nam | --program-transform-na \
  1236. | --program-transform-n | --program-transform- \
  1237. | --program-transform | --program-transfor \
  1238. | --program-transfo | --program-transf \
  1239. | --program-trans | --program-tran \
  1240. | --progr-tra | --program-tr | --program-t)
  1241. ac_prev=program_transform_name ;;
  1242. -program-transform-name=* | --program-transform-name=* \
  1243. | --program-transform-nam=* | --program-transform-na=* \
  1244. | --program-transform-n=* | --program-transform-=* \
  1245. | --program-transform=* | --program-transfor=* \
  1246. | --program-transfo=* | --program-transf=* \
  1247. | --program-trans=* | --program-tran=* \
  1248. | --progr-tra=* | --program-tr=* | --program-t=*)
  1249. program_transform_name=$ac_optarg ;;
  1250. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1251. ac_prev=pdfdir ;;
  1252. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1253. pdfdir=$ac_optarg ;;
  1254. -psdir | --psdir | --psdi | --psd | --ps)
  1255. ac_prev=psdir ;;
  1256. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1257. psdir=$ac_optarg ;;
  1258. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1259. | -silent | --silent | --silen | --sile | --sil)
  1260. silent=yes ;;
  1261. -runstatedir | --runstatedir | --runstatedi | --runstated \
  1262. | --runstate | --runstat | --runsta | --runst | --runs \
  1263. | --run | --ru | --r)
  1264. ac_prev=runstatedir ;;
  1265. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  1266. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  1267. | --run=* | --ru=* | --r=*)
  1268. runstatedir=$ac_optarg ;;
  1269. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1270. ac_prev=sbindir ;;
  1271. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1272. | --sbi=* | --sb=*)
  1273. sbindir=$ac_optarg ;;
  1274. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1275. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1276. | --sharedst | --shareds | --shared | --share | --shar \
  1277. | --sha | --sh)
  1278. ac_prev=sharedstatedir ;;
  1279. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1280. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1281. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1282. | --sha=* | --sh=*)
  1283. sharedstatedir=$ac_optarg ;;
  1284. -site | --site | --sit)
  1285. ac_prev=site ;;
  1286. -site=* | --site=* | --sit=*)
  1287. site=$ac_optarg ;;
  1288. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1289. ac_prev=srcdir ;;
  1290. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1291. srcdir=$ac_optarg ;;
  1292. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1293. | --syscon | --sysco | --sysc | --sys | --sy)
  1294. ac_prev=sysconfdir ;;
  1295. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1296. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1297. sysconfdir=$ac_optarg ;;
  1298. -target | --target | --targe | --targ | --tar | --ta | --t)
  1299. ac_prev=target_alias ;;
  1300. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1301. target_alias=$ac_optarg ;;
  1302. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1303. verbose=yes ;;
  1304. -version | --version | --versio | --versi | --vers | -V)
  1305. ac_init_version=: ;;
  1306. -with-* | --with-*)
  1307. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1308. # Reject names that are not valid shell variable names.
  1309. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1310. as_fn_error $? "invalid package name: \`$ac_useropt'"
  1311. ac_useropt_orig=$ac_useropt
  1312. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1313. case $ac_user_opts in
  1314. *"
  1315. "with_$ac_useropt"
  1316. "*) ;;
  1317. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1318. ac_unrecognized_sep=', ';;
  1319. esac
  1320. eval with_$ac_useropt=\$ac_optarg ;;
  1321. -without-* | --without-*)
  1322. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1323. # Reject names that are not valid shell variable names.
  1324. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1325. as_fn_error $? "invalid package name: \`$ac_useropt'"
  1326. ac_useropt_orig=$ac_useropt
  1327. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1328. case $ac_user_opts in
  1329. *"
  1330. "with_$ac_useropt"
  1331. "*) ;;
  1332. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1333. ac_unrecognized_sep=', ';;
  1334. esac
  1335. eval with_$ac_useropt=no ;;
  1336. --x)
  1337. # Obsolete; use --with-x.
  1338. with_x=yes ;;
  1339. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1340. | --x-incl | --x-inc | --x-in | --x-i)
  1341. ac_prev=x_includes ;;
  1342. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1343. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1344. x_includes=$ac_optarg ;;
  1345. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1346. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1347. ac_prev=x_libraries ;;
  1348. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1349. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1350. x_libraries=$ac_optarg ;;
  1351. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1352. Try \`$0 --help' for more information"
  1353. ;;
  1354. *=*)
  1355. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1356. # Reject names that are not valid shell variable names.
  1357. case $ac_envvar in #(
  1358. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1359. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1360. esac
  1361. eval $ac_envvar=\$ac_optarg
  1362. export $ac_envvar ;;
  1363. *)
  1364. # FIXME: should be removed in autoconf 3.0.
  1365. printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
  1366. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1367. printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
  1368. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1369. ;;
  1370. esac
  1371. done
  1372. if test -n "$ac_prev"; then
  1373. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1374. as_fn_error $? "missing argument to $ac_option"
  1375. fi
  1376. if test -n "$ac_unrecognized_opts"; then
  1377. case $enable_option_checking in
  1378. no) ;;
  1379. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1380. *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1381. esac
  1382. fi
  1383. # Check all directory arguments for consistency.
  1384. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1385. datadir sysconfdir sharedstatedir localstatedir includedir \
  1386. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1387. libdir localedir mandir runstatedir
  1388. do
  1389. eval ac_val=\$$ac_var
  1390. # Remove trailing slashes.
  1391. case $ac_val in
  1392. */ )
  1393. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1394. eval $ac_var=\$ac_val;;
  1395. esac
  1396. # Be sure to have absolute directory names.
  1397. case $ac_val in
  1398. [\\/$]* | ?:[\\/]* ) continue;;
  1399. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1400. esac
  1401. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1402. done
  1403. # There might be people who depend on the old broken behavior: `$host'
  1404. # used to hold the argument of --host etc.
  1405. # FIXME: To remove some day.
  1406. build=$build_alias
  1407. host=$host_alias
  1408. target=$target_alias
  1409. # FIXME: To remove some day.
  1410. if test "x$host_alias" != x; then
  1411. if test "x$build_alias" = x; then
  1412. cross_compiling=maybe
  1413. elif test "x$build_alias" != "x$host_alias"; then
  1414. cross_compiling=yes
  1415. fi
  1416. fi
  1417. ac_tool_prefix=
  1418. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1419. test "$silent" = yes && exec 6>/dev/null
  1420. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1421. ac_ls_di=`ls -di .` &&
  1422. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1423. as_fn_error $? "working directory cannot be determined"
  1424. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1425. as_fn_error $? "pwd does not report name of working directory"
  1426. # Find the source files, if location was not specified.
  1427. if test -z "$srcdir"; then
  1428. ac_srcdir_defaulted=yes
  1429. # Try the directory containing this script, then the parent directory.
  1430. ac_confdir=`$as_dirname -- "$as_myself" ||
  1431. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1432. X"$as_myself" : 'X\(//\)[^/]' \| \
  1433. X"$as_myself" : 'X\(//\)$' \| \
  1434. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1435. printf "%s\n" X"$as_myself" |
  1436. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1437. s//\1/
  1438. q
  1439. }
  1440. /^X\(\/\/\)[^/].*/{
  1441. s//\1/
  1442. q
  1443. }
  1444. /^X\(\/\/\)$/{
  1445. s//\1/
  1446. q
  1447. }
  1448. /^X\(\/\).*/{
  1449. s//\1/
  1450. q
  1451. }
  1452. s/.*/./; q'`
  1453. srcdir=$ac_confdir
  1454. if test ! -r "$srcdir/$ac_unique_file"; then
  1455. srcdir=..
  1456. fi
  1457. else
  1458. ac_srcdir_defaulted=no
  1459. fi
  1460. if test ! -r "$srcdir/$ac_unique_file"; then
  1461. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1462. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1463. fi
  1464. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1465. ac_abs_confdir=`(
  1466. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1467. pwd)`
  1468. # When building in place, set srcdir=.
  1469. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1470. srcdir=.
  1471. fi
  1472. # Remove unnecessary trailing slashes from srcdir.
  1473. # Double slashes in file names in object file debugging info
  1474. # mess up M-x gdb in Emacs.
  1475. case $srcdir in
  1476. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1477. esac
  1478. for ac_var in $ac_precious_vars; do
  1479. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1480. eval ac_env_${ac_var}_value=\$${ac_var}
  1481. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1482. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1483. done
  1484. #
  1485. # Report the --help message.
  1486. #
  1487. if test "$ac_init_help" = "long"; then
  1488. # Omit some internal or obsolete options to make the list less imposing.
  1489. # This message is too long to be a string in the A/UX 3.1 sh.
  1490. cat <<_ACEOF
  1491. \`configure' configures c-ares 1.18.1 to adapt to many kinds of systems.
  1492. Usage: $0 [OPTION]... [VAR=VALUE]...
  1493. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1494. VAR=VALUE. See below for descriptions of some of the useful variables.
  1495. Defaults for the options are specified in brackets.
  1496. Configuration:
  1497. -h, --help display this help and exit
  1498. --help=short display options specific to this package
  1499. --help=recursive display the short help of all the included packages
  1500. -V, --version display version information and exit
  1501. -q, --quiet, --silent do not print \`checking ...' messages
  1502. --cache-file=FILE cache test results in FILE [disabled]
  1503. -C, --config-cache alias for \`--cache-file=config.cache'
  1504. -n, --no-create do not create output files
  1505. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1506. Installation directories:
  1507. --prefix=PREFIX install architecture-independent files in PREFIX
  1508. [$ac_default_prefix]
  1509. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1510. [PREFIX]
  1511. By default, \`make install' will install all the files in
  1512. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1513. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1514. for instance \`--prefix=\$HOME'.
  1515. For better control, use the options below.
  1516. Fine tuning of the installation directories:
  1517. --bindir=DIR user executables [EPREFIX/bin]
  1518. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1519. --libexecdir=DIR program executables [EPREFIX/libexec]
  1520. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1521. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1522. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1523. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1524. --libdir=DIR object code libraries [EPREFIX/lib]
  1525. --includedir=DIR C header files [PREFIX/include]
  1526. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1527. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1528. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1529. --infodir=DIR info documentation [DATAROOTDIR/info]
  1530. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1531. --mandir=DIR man documentation [DATAROOTDIR/man]
  1532. --docdir=DIR documentation root [DATAROOTDIR/doc/c-ares]
  1533. --htmldir=DIR html documentation [DOCDIR]
  1534. --dvidir=DIR dvi documentation [DOCDIR]
  1535. --pdfdir=DIR pdf documentation [DOCDIR]
  1536. --psdir=DIR ps documentation [DOCDIR]
  1537. _ACEOF
  1538. cat <<\_ACEOF
  1539. Program names:
  1540. --program-prefix=PREFIX prepend PREFIX to installed program names
  1541. --program-suffix=SUFFIX append SUFFIX to installed program names
  1542. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1543. System types:
  1544. --build=BUILD configure for building on BUILD [guessed]
  1545. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1546. _ACEOF
  1547. fi
  1548. if test -n "$ac_init_help"; then
  1549. case $ac_init_help in
  1550. short | recursive ) echo "Configuration of c-ares 1.18.1:";;
  1551. esac
  1552. cat <<\_ACEOF
  1553. Optional Features:
  1554. --disable-option-checking ignore unrecognized --enable/--with options
  1555. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1556. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1557. --enable-maintainer-mode
  1558. enable make rules and dependencies not useful (and
  1559. sometimes confusing) to the casual installer
  1560. --enable-silent-rules less verbose build output (undo: "make V=1")
  1561. --disable-silent-rules verbose build output (undo: "make V=0")
  1562. --enable-debug Enable debug build options
  1563. --disable-debug Disable debug build options
  1564. --enable-optimize(=OPT) Enable compiler optimizations (default=-O2)
  1565. --disable-optimize Disable compiler optimizations
  1566. --enable-warnings Enable strict compiler warnings
  1567. --disable-warnings Disable strict compiler warnings
  1568. --enable-werror Enable compiler warnings as errors
  1569. --disable-werror Disable compiler warnings as errors
  1570. --enable-symbol-hiding Enable hiding of library internal symbols
  1571. --disable-symbol-hiding Disable hiding of library internal symbols
  1572. --enable-expose-statics Enable exposure of internal static functions for
  1573. testing
  1574. --disable-expose-statics
  1575. Disable exposure of internal static functions for
  1576. testing
  1577. --enable-code-coverage Whether to enable code coverage support
  1578. --enable-dependency-tracking
  1579. do not reject slow dependency extractors
  1580. --disable-dependency-tracking
  1581. speeds up one-time build
  1582. --disable-largefile omit support for large files
  1583. --enable-shared[=PKGS] build shared libraries [default=yes]
  1584. --enable-static[=PKGS] build static libraries [default=yes]
  1585. --enable-fast-install[=PKGS]
  1586. optimize for fast installation [default=yes]
  1587. --disable-libtool-lock avoid locking (might break parallel builds)
  1588. --enable-libgcc use libgcc when linking
  1589. --enable-nonblocking Enable non-blocking communications
  1590. --disable-nonblocking Disable non-blocking communications
  1591. --enable-tests build test suite
  1592. Optional Packages:
  1593. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1594. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1595. --with-gcov=GCOV use given GCOV for coverage (GCOV=gcov).
  1596. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1597. both]
  1598. --with-aix-soname=aix|svr4|both
  1599. shared library versioning (aka "SONAME") variant to
  1600. provide on AIX, [default=aix].
  1601. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1602. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1603. compiler's sysroot if not specified).
  1604. --with-random=FILE read randomness from FILE (default=/dev/urandom)
  1605. Some influential environment variables:
  1606. CC C compiler command
  1607. CFLAGS C compiler flags
  1608. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1609. nonstandard directory <lib dir>
  1610. LIBS libraries to pass to the linker, e.g. -l<library>
  1611. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1612. you have headers in a nonstandard directory <include dir>
  1613. CPP C preprocessor
  1614. CXX C++ compiler command
  1615. CXXFLAGS C++ compiler flags
  1616. LT_SYS_LIBRARY_PATH
  1617. User-defined run-time library search path.
  1618. CXXCPP C++ preprocessor
  1619. Use these variables to override the choices made by `configure' or to help
  1620. it to find libraries and programs with nonstandard names/locations.
  1621. Report bugs to <c-ares mailing list: http://lists.haxx.se/listinfo/c-ares>.
  1622. _ACEOF
  1623. ac_status=$?
  1624. fi
  1625. if test "$ac_init_help" = "recursive"; then
  1626. # If there are subdirs, report their specific --help.
  1627. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1628. test -d "$ac_dir" ||
  1629. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1630. continue
  1631. ac_builddir=.
  1632. case "$ac_dir" in
  1633. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1634. *)
  1635. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  1636. # A ".." for each directory in $ac_dir_suffix.
  1637. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1638. case $ac_top_builddir_sub in
  1639. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1640. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1641. esac ;;
  1642. esac
  1643. ac_abs_top_builddir=$ac_pwd
  1644. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1645. # for backward compatibility:
  1646. ac_top_builddir=$ac_top_build_prefix
  1647. case $srcdir in
  1648. .) # We are building in place.
  1649. ac_srcdir=.
  1650. ac_top_srcdir=$ac_top_builddir_sub
  1651. ac_abs_top_srcdir=$ac_pwd ;;
  1652. [\\/]* | ?:[\\/]* ) # Absolute name.
  1653. ac_srcdir=$srcdir$ac_dir_suffix;
  1654. ac_top_srcdir=$srcdir
  1655. ac_abs_top_srcdir=$srcdir ;;
  1656. *) # Relative name.
  1657. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1658. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1659. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1660. esac
  1661. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1662. cd "$ac_dir" || { ac_status=$?; continue; }
  1663. # Check for configure.gnu first; this name is used for a wrapper for
  1664. # Metaconfig's "Configure" on case-insensitive file systems.
  1665. if test -f "$ac_srcdir/configure.gnu"; then
  1666. echo &&
  1667. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1668. elif test -f "$ac_srcdir/configure"; then
  1669. echo &&
  1670. $SHELL "$ac_srcdir/configure" --help=recursive
  1671. else
  1672. printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1673. fi || ac_status=$?
  1674. cd "$ac_pwd" || { ac_status=$?; break; }
  1675. done
  1676. fi
  1677. test -n "$ac_init_help" && exit $ac_status
  1678. if $ac_init_version; then
  1679. cat <<\_ACEOF
  1680. c-ares configure 1.18.1
  1681. generated by GNU Autoconf 2.71
  1682. Copyright (C) 2021 Free Software Foundation, Inc.
  1683. This configure script is free software; the Free Software Foundation
  1684. gives unlimited permission to copy, distribute and modify it.
  1685. _ACEOF
  1686. exit
  1687. fi
  1688. ## ------------------------ ##
  1689. ## Autoconf initialization. ##
  1690. ## ------------------------ ##
  1691. # ac_fn_c_try_compile LINENO
  1692. # --------------------------
  1693. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1694. ac_fn_c_try_compile ()
  1695. {
  1696. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1697. rm -f conftest.$ac_objext conftest.beam
  1698. if { { ac_try="$ac_compile"
  1699. case "(($ac_try" in
  1700. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1701. *) ac_try_echo=$ac_try;;
  1702. esac
  1703. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1704. printf "%s\n" "$ac_try_echo"; } >&5
  1705. (eval "$ac_compile") 2>conftest.err
  1706. ac_status=$?
  1707. if test -s conftest.err; then
  1708. grep -v '^ *+' conftest.err >conftest.er1
  1709. cat conftest.er1 >&5
  1710. mv -f conftest.er1 conftest.err
  1711. fi
  1712. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1713. test $ac_status = 0; } && {
  1714. test -z "$ac_c_werror_flag" ||
  1715. test ! -s conftest.err
  1716. } && test -s conftest.$ac_objext
  1717. then :
  1718. ac_retval=0
  1719. else $as_nop
  1720. printf "%s\n" "$as_me: failed program was:" >&5
  1721. sed 's/^/| /' conftest.$ac_ext >&5
  1722. ac_retval=1
  1723. fi
  1724. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1725. as_fn_set_status $ac_retval
  1726. } # ac_fn_c_try_compile
  1727. # ac_fn_c_try_cpp LINENO
  1728. # ----------------------
  1729. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1730. ac_fn_c_try_cpp ()
  1731. {
  1732. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1733. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1734. case "(($ac_try" in
  1735. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1736. *) ac_try_echo=$ac_try;;
  1737. esac
  1738. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1739. printf "%s\n" "$ac_try_echo"; } >&5
  1740. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1741. ac_status=$?
  1742. if test -s conftest.err; then
  1743. grep -v '^ *+' conftest.err >conftest.er1
  1744. cat conftest.er1 >&5
  1745. mv -f conftest.er1 conftest.err
  1746. fi
  1747. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1748. test $ac_status = 0; } > conftest.i && {
  1749. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1750. test ! -s conftest.err
  1751. }
  1752. then :
  1753. ac_retval=0
  1754. else $as_nop
  1755. printf "%s\n" "$as_me: failed program was:" >&5
  1756. sed 's/^/| /' conftest.$ac_ext >&5
  1757. ac_retval=1
  1758. fi
  1759. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1760. as_fn_set_status $ac_retval
  1761. } # ac_fn_c_try_cpp
  1762. # ac_fn_cxx_try_compile LINENO
  1763. # ----------------------------
  1764. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1765. ac_fn_cxx_try_compile ()
  1766. {
  1767. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1768. rm -f conftest.$ac_objext conftest.beam
  1769. if { { ac_try="$ac_compile"
  1770. case "(($ac_try" in
  1771. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1772. *) ac_try_echo=$ac_try;;
  1773. esac
  1774. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1775. printf "%s\n" "$ac_try_echo"; } >&5
  1776. (eval "$ac_compile") 2>conftest.err
  1777. ac_status=$?
  1778. if test -s conftest.err; then
  1779. grep -v '^ *+' conftest.err >conftest.er1
  1780. cat conftest.er1 >&5
  1781. mv -f conftest.er1 conftest.err
  1782. fi
  1783. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1784. test $ac_status = 0; } && {
  1785. test -z "$ac_cxx_werror_flag" ||
  1786. test ! -s conftest.err
  1787. } && test -s conftest.$ac_objext
  1788. then :
  1789. ac_retval=0
  1790. else $as_nop
  1791. printf "%s\n" "$as_me: failed program was:" >&5
  1792. sed 's/^/| /' conftest.$ac_ext >&5
  1793. ac_retval=1
  1794. fi
  1795. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1796. as_fn_set_status $ac_retval
  1797. } # ac_fn_cxx_try_compile
  1798. # ac_fn_c_try_link LINENO
  1799. # -----------------------
  1800. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1801. ac_fn_c_try_link ()
  1802. {
  1803. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1804. rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  1805. if { { ac_try="$ac_link"
  1806. case "(($ac_try" in
  1807. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1808. *) ac_try_echo=$ac_try;;
  1809. esac
  1810. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1811. printf "%s\n" "$ac_try_echo"; } >&5
  1812. (eval "$ac_link") 2>conftest.err
  1813. ac_status=$?
  1814. if test -s conftest.err; then
  1815. grep -v '^ *+' conftest.err >conftest.er1
  1816. cat conftest.er1 >&5
  1817. mv -f conftest.er1 conftest.err
  1818. fi
  1819. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1820. test $ac_status = 0; } && {
  1821. test -z "$ac_c_werror_flag" ||
  1822. test ! -s conftest.err
  1823. } && test -s conftest$ac_exeext && {
  1824. test "$cross_compiling" = yes ||
  1825. test -x conftest$ac_exeext
  1826. }
  1827. then :
  1828. ac_retval=0
  1829. else $as_nop
  1830. printf "%s\n" "$as_me: failed program was:" >&5
  1831. sed 's/^/| /' conftest.$ac_ext >&5
  1832. ac_retval=1
  1833. fi
  1834. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1835. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1836. # interfere with the next link command; also delete a directory that is
  1837. # left behind by Apple's compiler. We do this before executing the actions.
  1838. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1839. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1840. as_fn_set_status $ac_retval
  1841. } # ac_fn_c_try_link
  1842. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1843. # -------------------------------------------------------
  1844. # Tests whether HEADER exists and can be compiled using the include files in
  1845. # INCLUDES, setting the cache variable VAR accordingly.
  1846. ac_fn_c_check_header_compile ()
  1847. {
  1848. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1849. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1850. printf %s "checking for $2... " >&6; }
  1851. if eval test \${$3+y}
  1852. then :
  1853. printf %s "(cached) " >&6
  1854. else $as_nop
  1855. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1856. /* end confdefs.h. */
  1857. $4
  1858. #include <$2>
  1859. _ACEOF
  1860. if ac_fn_c_try_compile "$LINENO"
  1861. then :
  1862. eval "$3=yes"
  1863. else $as_nop
  1864. eval "$3=no"
  1865. fi
  1866. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1867. fi
  1868. eval ac_res=\$$3
  1869. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1870. printf "%s\n" "$ac_res" >&6; }
  1871. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1872. } # ac_fn_c_check_header_compile
  1873. # ac_fn_c_check_func LINENO FUNC VAR
  1874. # ----------------------------------
  1875. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1876. ac_fn_c_check_func ()
  1877. {
  1878. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1879. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1880. printf %s "checking for $2... " >&6; }
  1881. if eval test \${$3+y}
  1882. then :
  1883. printf %s "(cached) " >&6
  1884. else $as_nop
  1885. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1886. /* end confdefs.h. */
  1887. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1888. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1889. #define $2 innocuous_$2
  1890. /* System header to define __stub macros and hopefully few prototypes,
  1891. which can conflict with char $2 (); below. */
  1892. #include <limits.h>
  1893. #undef $2
  1894. /* Override any GCC internal prototype to avoid an error.
  1895. Use char because int might match the return type of a GCC
  1896. builtin and then its argument prototype would still apply. */
  1897. #ifdef __cplusplus
  1898. extern "C"
  1899. #endif
  1900. char $2 ();
  1901. /* The GNU C library defines this for functions which it implements
  1902. to always fail with ENOSYS. Some functions are actually named
  1903. something starting with __ and the normal name is an alias. */
  1904. #if defined __stub_$2 || defined __stub___$2
  1905. choke me
  1906. #endif
  1907. int
  1908. main (void)
  1909. {
  1910. return $2 ();
  1911. ;
  1912. return 0;
  1913. }
  1914. _ACEOF
  1915. if ac_fn_c_try_link "$LINENO"
  1916. then :
  1917. eval "$3=yes"
  1918. else $as_nop
  1919. eval "$3=no"
  1920. fi
  1921. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  1922. conftest$ac_exeext conftest.$ac_ext
  1923. fi
  1924. eval ac_res=\$$3
  1925. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1926. printf "%s\n" "$ac_res" >&6; }
  1927. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1928. } # ac_fn_c_check_func
  1929. # ac_fn_cxx_try_cpp LINENO
  1930. # ------------------------
  1931. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1932. ac_fn_cxx_try_cpp ()
  1933. {
  1934. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1935. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1936. case "(($ac_try" in
  1937. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1938. *) ac_try_echo=$ac_try;;
  1939. esac
  1940. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1941. printf "%s\n" "$ac_try_echo"; } >&5
  1942. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1943. ac_status=$?
  1944. if test -s conftest.err; then
  1945. grep -v '^ *+' conftest.err >conftest.er1
  1946. cat conftest.er1 >&5
  1947. mv -f conftest.er1 conftest.err
  1948. fi
  1949. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1950. test $ac_status = 0; } > conftest.i && {
  1951. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1952. test ! -s conftest.err
  1953. }
  1954. then :
  1955. ac_retval=0
  1956. else $as_nop
  1957. printf "%s\n" "$as_me: failed program was:" >&5
  1958. sed 's/^/| /' conftest.$ac_ext >&5
  1959. ac_retval=1
  1960. fi
  1961. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1962. as_fn_set_status $ac_retval
  1963. } # ac_fn_cxx_try_cpp
  1964. # ac_fn_cxx_try_link LINENO
  1965. # -------------------------
  1966. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1967. ac_fn_cxx_try_link ()
  1968. {
  1969. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1970. rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  1971. if { { ac_try="$ac_link"
  1972. case "(($ac_try" in
  1973. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1974. *) ac_try_echo=$ac_try;;
  1975. esac
  1976. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1977. printf "%s\n" "$ac_try_echo"; } >&5
  1978. (eval "$ac_link") 2>conftest.err
  1979. ac_status=$?
  1980. if test -s conftest.err; then
  1981. grep -v '^ *+' conftest.err >conftest.er1
  1982. cat conftest.er1 >&5
  1983. mv -f conftest.er1 conftest.err
  1984. fi
  1985. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1986. test $ac_status = 0; } && {
  1987. test -z "$ac_cxx_werror_flag" ||
  1988. test ! -s conftest.err
  1989. } && test -s conftest$ac_exeext && {
  1990. test "$cross_compiling" = yes ||
  1991. test -x conftest$ac_exeext
  1992. }
  1993. then :
  1994. ac_retval=0
  1995. else $as_nop
  1996. printf "%s\n" "$as_me: failed program was:" >&5
  1997. sed 's/^/| /' conftest.$ac_ext >&5
  1998. ac_retval=1
  1999. fi
  2000. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2001. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2002. # interfere with the next link command; also delete a directory that is
  2003. # left behind by Apple's compiler. We do this before executing the actions.
  2004. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2005. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2006. as_fn_set_status $ac_retval
  2007. } # ac_fn_cxx_try_link
  2008. # ac_fn_c_try_run LINENO
  2009. # ----------------------
  2010. # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
  2011. # executables *can* be run.
  2012. ac_fn_c_try_run ()
  2013. {
  2014. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2015. if { { ac_try="$ac_link"
  2016. case "(($ac_try" in
  2017. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2018. *) ac_try_echo=$ac_try;;
  2019. esac
  2020. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2021. printf "%s\n" "$ac_try_echo"; } >&5
  2022. (eval "$ac_link") 2>&5
  2023. ac_status=$?
  2024. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2025. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  2026. { { case "(($ac_try" in
  2027. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2028. *) ac_try_echo=$ac_try;;
  2029. esac
  2030. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2031. printf "%s\n" "$ac_try_echo"; } >&5
  2032. (eval "$ac_try") 2>&5
  2033. ac_status=$?
  2034. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2035. test $ac_status = 0; }; }
  2036. then :
  2037. ac_retval=0
  2038. else $as_nop
  2039. printf "%s\n" "$as_me: program exited with status $ac_status" >&5
  2040. printf "%s\n" "$as_me: failed program was:" >&5
  2041. sed 's/^/| /' conftest.$ac_ext >&5
  2042. ac_retval=$ac_status
  2043. fi
  2044. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2045. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2046. as_fn_set_status $ac_retval
  2047. } # ac_fn_c_try_run
  2048. # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
  2049. # ------------------------------------------------------------------
  2050. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  2051. # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
  2052. ac_fn_check_decl ()
  2053. {
  2054. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2055. as_decl_name=`echo $2|sed 's/ *(.*//'`
  2056. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  2057. printf %s "checking whether $as_decl_name is declared... " >&6; }
  2058. if eval test \${$3+y}
  2059. then :
  2060. printf %s "(cached) " >&6
  2061. else $as_nop
  2062. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  2063. eval ac_save_FLAGS=\$$6
  2064. as_fn_append $6 " $5"
  2065. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2066. /* end confdefs.h. */
  2067. $4
  2068. int
  2069. main (void)
  2070. {
  2071. #ifndef $as_decl_name
  2072. #ifdef __cplusplus
  2073. (void) $as_decl_use;
  2074. #else
  2075. (void) $as_decl_name;
  2076. #endif
  2077. #endif
  2078. ;
  2079. return 0;
  2080. }
  2081. _ACEOF
  2082. if ac_fn_c_try_compile "$LINENO"
  2083. then :
  2084. eval "$3=yes"
  2085. else $as_nop
  2086. eval "$3=no"
  2087. fi
  2088. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2089. eval $6=\$ac_save_FLAGS
  2090. fi
  2091. eval ac_res=\$$3
  2092. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2093. printf "%s\n" "$ac_res" >&6; }
  2094. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2095. } # ac_fn_check_decl
  2096. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2097. # -------------------------------------------
  2098. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2099. # variable VAR accordingly.
  2100. ac_fn_c_check_type ()
  2101. {
  2102. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2103. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2104. printf %s "checking for $2... " >&6; }
  2105. if eval test \${$3+y}
  2106. then :
  2107. printf %s "(cached) " >&6
  2108. else $as_nop
  2109. eval "$3=no"
  2110. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2111. /* end confdefs.h. */
  2112. $4
  2113. int
  2114. main (void)
  2115. {
  2116. if (sizeof ($2))
  2117. return 0;
  2118. ;
  2119. return 0;
  2120. }
  2121. _ACEOF
  2122. if ac_fn_c_try_compile "$LINENO"
  2123. then :
  2124. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2125. /* end confdefs.h. */
  2126. $4
  2127. int
  2128. main (void)
  2129. {
  2130. if (sizeof (($2)))
  2131. return 0;
  2132. ;
  2133. return 0;
  2134. }
  2135. _ACEOF
  2136. if ac_fn_c_try_compile "$LINENO"
  2137. then :
  2138. else $as_nop
  2139. eval "$3=yes"
  2140. fi
  2141. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2142. fi
  2143. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2144. fi
  2145. eval ac_res=\$$3
  2146. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2147. printf "%s\n" "$ac_res" >&6; }
  2148. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2149. } # ac_fn_c_check_type
  2150. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2151. # ----------------------------------------------------
  2152. # Tries to find if the field MEMBER exists in type AGGR, after including
  2153. # INCLUDES, setting cache variable VAR accordingly.
  2154. ac_fn_c_check_member ()
  2155. {
  2156. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2157. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2158. printf %s "checking for $2.$3... " >&6; }
  2159. if eval test \${$4+y}
  2160. then :
  2161. printf %s "(cached) " >&6
  2162. else $as_nop
  2163. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2164. /* end confdefs.h. */
  2165. $5
  2166. int
  2167. main (void)
  2168. {
  2169. static $2 ac_aggr;
  2170. if (ac_aggr.$3)
  2171. return 0;
  2172. ;
  2173. return 0;
  2174. }
  2175. _ACEOF
  2176. if ac_fn_c_try_compile "$LINENO"
  2177. then :
  2178. eval "$4=yes"
  2179. else $as_nop
  2180. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2181. /* end confdefs.h. */
  2182. $5
  2183. int
  2184. main (void)
  2185. {
  2186. static $2 ac_aggr;
  2187. if (sizeof ac_aggr.$3)
  2188. return 0;
  2189. ;
  2190. return 0;
  2191. }
  2192. _ACEOF
  2193. if ac_fn_c_try_compile "$LINENO"
  2194. then :
  2195. eval "$4=yes"
  2196. else $as_nop
  2197. eval "$4=no"
  2198. fi
  2199. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2200. fi
  2201. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2202. fi
  2203. eval ac_res=\$$4
  2204. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2205. printf "%s\n" "$ac_res" >&6; }
  2206. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2207. } # ac_fn_c_check_member
  2208. ac_configure_args_raw=
  2209. for ac_arg
  2210. do
  2211. case $ac_arg in
  2212. *\'*)
  2213. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2214. esac
  2215. as_fn_append ac_configure_args_raw " '$ac_arg'"
  2216. done
  2217. case $ac_configure_args_raw in
  2218. *$as_nl*)
  2219. ac_safe_unquote= ;;
  2220. *)
  2221. ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
  2222. ac_unsafe_a="$ac_unsafe_z#~"
  2223. ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
  2224. ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
  2225. esac
  2226. cat >config.log <<_ACEOF
  2227. This file contains any messages produced by compilers while
  2228. running configure, to aid debugging if configure makes a mistake.
  2229. It was created by c-ares $as_me 1.18.1, which was
  2230. generated by GNU Autoconf 2.71. Invocation command line was
  2231. $ $0$ac_configure_args_raw
  2232. _ACEOF
  2233. exec 5>>config.log
  2234. {
  2235. cat <<_ASUNAME
  2236. ## --------- ##
  2237. ## Platform. ##
  2238. ## --------- ##
  2239. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2240. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2241. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2242. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2243. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2244. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2245. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2246. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2247. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2248. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2249. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2250. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2251. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2252. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2253. _ASUNAME
  2254. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2255. for as_dir in $PATH
  2256. do
  2257. IFS=$as_save_IFS
  2258. case $as_dir in #(((
  2259. '') as_dir=./ ;;
  2260. */) ;;
  2261. *) as_dir=$as_dir/ ;;
  2262. esac
  2263. printf "%s\n" "PATH: $as_dir"
  2264. done
  2265. IFS=$as_save_IFS
  2266. } >&5
  2267. cat >&5 <<_ACEOF
  2268. ## ----------- ##
  2269. ## Core tests. ##
  2270. ## ----------- ##
  2271. _ACEOF
  2272. # Keep a trace of the command line.
  2273. # Strip out --no-create and --no-recursion so they do not pile up.
  2274. # Strip out --silent because we don't want to record it for future runs.
  2275. # Also quote any args containing shell meta-characters.
  2276. # Make two passes to allow for proper duplicate-argument suppression.
  2277. ac_configure_args=
  2278. ac_configure_args0=
  2279. ac_configure_args1=
  2280. ac_must_keep_next=false
  2281. for ac_pass in 1 2
  2282. do
  2283. for ac_arg
  2284. do
  2285. case $ac_arg in
  2286. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2287. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2288. | -silent | --silent | --silen | --sile | --sil)
  2289. continue ;;
  2290. *\'*)
  2291. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2292. esac
  2293. case $ac_pass in
  2294. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2295. 2)
  2296. as_fn_append ac_configure_args1 " '$ac_arg'"
  2297. if test $ac_must_keep_next = true; then
  2298. ac_must_keep_next=false # Got value, back to normal.
  2299. else
  2300. case $ac_arg in
  2301. *=* | --config-cache | -C | -disable-* | --disable-* \
  2302. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2303. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2304. | -with-* | --with-* | -without-* | --without-* | --x)
  2305. case "$ac_configure_args0 " in
  2306. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2307. esac
  2308. ;;
  2309. -* ) ac_must_keep_next=true ;;
  2310. esac
  2311. fi
  2312. as_fn_append ac_configure_args " '$ac_arg'"
  2313. ;;
  2314. esac
  2315. done
  2316. done
  2317. { ac_configure_args0=; unset ac_configure_args0;}
  2318. { ac_configure_args1=; unset ac_configure_args1;}
  2319. # When interrupted or exit'd, cleanup temporary files, and complete
  2320. # config.log. We remove comments because anyway the quotes in there
  2321. # would cause problems or look ugly.
  2322. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2323. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2324. trap 'exit_status=$?
  2325. # Sanitize IFS.
  2326. IFS=" "" $as_nl"
  2327. # Save into config.log some information that might help in debugging.
  2328. {
  2329. echo
  2330. printf "%s\n" "## ---------------- ##
  2331. ## Cache variables. ##
  2332. ## ---------------- ##"
  2333. echo
  2334. # The following way of writing the cache mishandles newlines in values,
  2335. (
  2336. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2337. eval ac_val=\$$ac_var
  2338. case $ac_val in #(
  2339. *${as_nl}*)
  2340. case $ac_var in #(
  2341. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2342. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2343. esac
  2344. case $ac_var in #(
  2345. _ | IFS | as_nl) ;; #(
  2346. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2347. *) { eval $ac_var=; unset $ac_var;} ;;
  2348. esac ;;
  2349. esac
  2350. done
  2351. (set) 2>&1 |
  2352. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2353. *${as_nl}ac_space=\ *)
  2354. sed -n \
  2355. "s/'\''/'\''\\\\'\'''\''/g;
  2356. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2357. ;; #(
  2358. *)
  2359. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2360. ;;
  2361. esac |
  2362. sort
  2363. )
  2364. echo
  2365. printf "%s\n" "## ----------------- ##
  2366. ## Output variables. ##
  2367. ## ----------------- ##"
  2368. echo
  2369. for ac_var in $ac_subst_vars
  2370. do
  2371. eval ac_val=\$$ac_var
  2372. case $ac_val in
  2373. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2374. esac
  2375. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2376. done | sort
  2377. echo
  2378. if test -n "$ac_subst_files"; then
  2379. printf "%s\n" "## ------------------- ##
  2380. ## File substitutions. ##
  2381. ## ------------------- ##"
  2382. echo
  2383. for ac_var in $ac_subst_files
  2384. do
  2385. eval ac_val=\$$ac_var
  2386. case $ac_val in
  2387. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2388. esac
  2389. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2390. done | sort
  2391. echo
  2392. fi
  2393. if test -s confdefs.h; then
  2394. printf "%s\n" "## ----------- ##
  2395. ## confdefs.h. ##
  2396. ## ----------- ##"
  2397. echo
  2398. cat confdefs.h
  2399. echo
  2400. fi
  2401. test "$ac_signal" != 0 &&
  2402. printf "%s\n" "$as_me: caught signal $ac_signal"
  2403. printf "%s\n" "$as_me: exit $exit_status"
  2404. } >&5
  2405. rm -f core *.core core.conftest.* &&
  2406. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2407. exit $exit_status
  2408. ' 0
  2409. for ac_signal in 1 2 13 15; do
  2410. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2411. done
  2412. ac_signal=0
  2413. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2414. rm -f -r conftest* confdefs.h
  2415. printf "%s\n" "/* confdefs.h */" > confdefs.h
  2416. # Predefined preprocessor variables.
  2417. printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
  2418. printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
  2419. printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
  2420. printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
  2421. printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
  2422. printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
  2423. # Let the site file select an alternate cache file if it wants to.
  2424. # Prefer an explicitly selected file to automatically selected ones.
  2425. if test -n "$CONFIG_SITE"; then
  2426. ac_site_files="$CONFIG_SITE"
  2427. elif test "x$prefix" != xNONE; then
  2428. ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
  2429. else
  2430. ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  2431. fi
  2432. for ac_site_file in $ac_site_files
  2433. do
  2434. case $ac_site_file in #(
  2435. */*) :
  2436. ;; #(
  2437. *) :
  2438. ac_site_file=./$ac_site_file ;;
  2439. esac
  2440. if test -f "$ac_site_file" && test -r "$ac_site_file"; then
  2441. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2442. printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
  2443. sed 's/^/| /' "$ac_site_file" >&5
  2444. . "$ac_site_file" \
  2445. || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2446. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  2447. as_fn_error $? "failed to load site script $ac_site_file
  2448. See \`config.log' for more details" "$LINENO" 5; }
  2449. fi
  2450. done
  2451. if test -r "$cache_file"; then
  2452. # Some versions of bash will fail to source /dev/null (special files
  2453. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2454. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2455. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2456. printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
  2457. case $cache_file in
  2458. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2459. *) . "./$cache_file";;
  2460. esac
  2461. fi
  2462. else
  2463. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2464. printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
  2465. >$cache_file
  2466. fi
  2467. # Test code for whether the C compiler supports C89 (global declarations)
  2468. ac_c_conftest_c89_globals='
  2469. /* Does the compiler advertise C89 conformance?
  2470. Do not test the value of __STDC__, because some compilers set it to 0
  2471. while being otherwise adequately conformant. */
  2472. #if !defined __STDC__
  2473. # error "Compiler does not advertise C89 conformance"
  2474. #endif
  2475. #include <stddef.h>
  2476. #include <stdarg.h>
  2477. struct stat;
  2478. /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
  2479. struct buf { int x; };
  2480. struct buf * (*rcsopen) (struct buf *, struct stat *, int);
  2481. static char *e (p, i)
  2482. char **p;
  2483. int i;
  2484. {
  2485. return p[i];
  2486. }
  2487. static char *f (char * (*g) (char **, int), char **p, ...)
  2488. {
  2489. char *s;
  2490. va_list v;
  2491. va_start (v,p);
  2492. s = g (p, va_arg (v,int));
  2493. va_end (v);
  2494. return s;
  2495. }
  2496. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2497. function prototypes and stuff, but not \xHH hex character constants.
  2498. These do not provoke an error unfortunately, instead are silently treated
  2499. as an "x". The following induces an error, until -std is added to get
  2500. proper ANSI mode. Curiously \x00 != x always comes out true, for an
  2501. array size at least. It is necessary to write \x00 == 0 to get something
  2502. that is true only with -std. */
  2503. int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
  2504. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2505. inside strings and character constants. */
  2506. #define FOO(x) '\''x'\''
  2507. int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
  2508. int test (int i, double x);
  2509. struct s1 {int (*f) (int a);};
  2510. struct s2 {int (*f) (double a);};
  2511. int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
  2512. int, int);'
  2513. # Test code for whether the C compiler supports C89 (body of main).
  2514. ac_c_conftest_c89_main='
  2515. ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
  2516. '
  2517. # Test code for whether the C compiler supports C99 (global declarations)
  2518. ac_c_conftest_c99_globals='
  2519. // Does the compiler advertise C99 conformance?
  2520. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
  2521. # error "Compiler does not advertise C99 conformance"
  2522. #endif
  2523. #include <stdbool.h>
  2524. extern int puts (const char *);
  2525. extern int printf (const char *, ...);
  2526. extern int dprintf (int, const char *, ...);
  2527. extern void *malloc (size_t);
  2528. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  2529. // dprintf is used instead of fprintf to avoid needing to declare
  2530. // FILE and stderr.
  2531. #define debug(...) dprintf (2, __VA_ARGS__)
  2532. #define showlist(...) puts (#__VA_ARGS__)
  2533. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  2534. static void
  2535. test_varargs_macros (void)
  2536. {
  2537. int x = 1234;
  2538. int y = 5678;
  2539. debug ("Flag");
  2540. debug ("X = %d\n", x);
  2541. showlist (The first, second, and third items.);
  2542. report (x>y, "x is %d but y is %d", x, y);
  2543. }
  2544. // Check long long types.
  2545. #define BIG64 18446744073709551615ull
  2546. #define BIG32 4294967295ul
  2547. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  2548. #if !BIG_OK
  2549. #error "your preprocessor is broken"
  2550. #endif
  2551. #if BIG_OK
  2552. #else
  2553. #error "your preprocessor is broken"
  2554. #endif
  2555. static long long int bignum = -9223372036854775807LL;
  2556. static unsigned long long int ubignum = BIG64;
  2557. struct incomplete_array
  2558. {
  2559. int datasize;
  2560. double data[];
  2561. };
  2562. struct named_init {
  2563. int number;
  2564. const wchar_t *name;
  2565. double average;
  2566. };
  2567. typedef const char *ccp;
  2568. static inline int
  2569. test_restrict (ccp restrict text)
  2570. {
  2571. // See if C++-style comments work.
  2572. // Iterate through items via the restricted pointer.
  2573. // Also check for declarations in for loops.
  2574. for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
  2575. continue;
  2576. return 0;
  2577. }
  2578. // Check varargs and va_copy.
  2579. static bool
  2580. test_varargs (const char *format, ...)
  2581. {
  2582. va_list args;
  2583. va_start (args, format);
  2584. va_list args_copy;
  2585. va_copy (args_copy, args);
  2586. const char *str = "";
  2587. int number = 0;
  2588. float fnumber = 0;
  2589. while (*format)
  2590. {
  2591. switch (*format++)
  2592. {
  2593. case '\''s'\'': // string
  2594. str = va_arg (args_copy, const char *);
  2595. break;
  2596. case '\''d'\'': // int
  2597. number = va_arg (args_copy, int);
  2598. break;
  2599. case '\''f'\'': // float
  2600. fnumber = va_arg (args_copy, double);
  2601. break;
  2602. default:
  2603. break;
  2604. }
  2605. }
  2606. va_end (args_copy);
  2607. va_end (args);
  2608. return *str && number && fnumber;
  2609. }
  2610. '
  2611. # Test code for whether the C compiler supports C99 (body of main).
  2612. ac_c_conftest_c99_main='
  2613. // Check bool.
  2614. _Bool success = false;
  2615. success |= (argc != 0);
  2616. // Check restrict.
  2617. if (test_restrict ("String literal") == 0)
  2618. success = true;
  2619. char *restrict newvar = "Another string";
  2620. // Check varargs.
  2621. success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
  2622. test_varargs_macros ();
  2623. // Check flexible array members.
  2624. struct incomplete_array *ia =
  2625. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  2626. ia->datasize = 10;
  2627. for (int i = 0; i < ia->datasize; ++i)
  2628. ia->data[i] = i * 1.234;
  2629. // Check named initializers.
  2630. struct named_init ni = {
  2631. .number = 34,
  2632. .name = L"Test wide string",
  2633. .average = 543.34343,
  2634. };
  2635. ni.number = 58;
  2636. int dynamic_array[ni.number];
  2637. dynamic_array[0] = argv[0][0];
  2638. dynamic_array[ni.number - 1] = 543;
  2639. // work around unused variable warnings
  2640. ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
  2641. || dynamic_array[ni.number - 1] != 543);
  2642. '
  2643. # Test code for whether the C compiler supports C11 (global declarations)
  2644. ac_c_conftest_c11_globals='
  2645. // Does the compiler advertise C11 conformance?
  2646. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
  2647. # error "Compiler does not advertise C11 conformance"
  2648. #endif
  2649. // Check _Alignas.
  2650. char _Alignas (double) aligned_as_double;
  2651. char _Alignas (0) no_special_alignment;
  2652. extern char aligned_as_int;
  2653. char _Alignas (0) _Alignas (int) aligned_as_int;
  2654. // Check _Alignof.
  2655. enum
  2656. {
  2657. int_alignment = _Alignof (int),
  2658. int_array_alignment = _Alignof (int[100]),
  2659. char_alignment = _Alignof (char)
  2660. };
  2661. _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
  2662. // Check _Noreturn.
  2663. int _Noreturn does_not_return (void) { for (;;) continue; }
  2664. // Check _Static_assert.
  2665. struct test_static_assert
  2666. {
  2667. int x;
  2668. _Static_assert (sizeof (int) <= sizeof (long int),
  2669. "_Static_assert does not work in struct");
  2670. long int y;
  2671. };
  2672. // Check UTF-8 literals.
  2673. #define u8 syntax error!
  2674. char const utf8_literal[] = u8"happens to be ASCII" "another string";
  2675. // Check duplicate typedefs.
  2676. typedef long *long_ptr;
  2677. typedef long int *long_ptr;
  2678. typedef long_ptr long_ptr;
  2679. // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
  2680. struct anonymous
  2681. {
  2682. union {
  2683. struct { int i; int j; };
  2684. struct { int k; long int l; } w;
  2685. };
  2686. int m;
  2687. } v1;
  2688. '
  2689. # Test code for whether the C compiler supports C11 (body of main).
  2690. ac_c_conftest_c11_main='
  2691. _Static_assert ((offsetof (struct anonymous, i)
  2692. == offsetof (struct anonymous, w.k)),
  2693. "Anonymous union alignment botch");
  2694. v1.i = 2;
  2695. v1.w.k = 5;
  2696. ok |= v1.i != 5;
  2697. '
  2698. # Test code for whether the C compiler supports C11 (complete).
  2699. ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
  2700. ${ac_c_conftest_c99_globals}
  2701. ${ac_c_conftest_c11_globals}
  2702. int
  2703. main (int argc, char **argv)
  2704. {
  2705. int ok = 0;
  2706. ${ac_c_conftest_c89_main}
  2707. ${ac_c_conftest_c99_main}
  2708. ${ac_c_conftest_c11_main}
  2709. return ok;
  2710. }
  2711. "
  2712. # Test code for whether the C compiler supports C99 (complete).
  2713. ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
  2714. ${ac_c_conftest_c99_globals}
  2715. int
  2716. main (int argc, char **argv)
  2717. {
  2718. int ok = 0;
  2719. ${ac_c_conftest_c89_main}
  2720. ${ac_c_conftest_c99_main}
  2721. return ok;
  2722. }
  2723. "
  2724. # Test code for whether the C compiler supports C89 (complete).
  2725. ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
  2726. int
  2727. main (int argc, char **argv)
  2728. {
  2729. int ok = 0;
  2730. ${ac_c_conftest_c89_main}
  2731. return ok;
  2732. }
  2733. "
  2734. # Test code for whether the C++ compiler supports C++98 (global declarations)
  2735. ac_cxx_conftest_cxx98_globals='
  2736. // Does the compiler advertise C++98 conformance?
  2737. #if !defined __cplusplus || __cplusplus < 199711L
  2738. # error "Compiler does not advertise C++98 conformance"
  2739. #endif
  2740. // These inclusions are to reject old compilers that
  2741. // lack the unsuffixed header files.
  2742. #include <cstdlib>
  2743. #include <exception>
  2744. // <cassert> and <cstring> are *not* freestanding headers in C++98.
  2745. extern void assert (int);
  2746. namespace std {
  2747. extern int strcmp (const char *, const char *);
  2748. }
  2749. // Namespaces, exceptions, and templates were all added after "C++ 2.0".
  2750. using std::exception;
  2751. using std::strcmp;
  2752. namespace {
  2753. void test_exception_syntax()
  2754. {
  2755. try {
  2756. throw "test";
  2757. } catch (const char *s) {
  2758. // Extra parentheses suppress a warning when building autoconf itself,
  2759. // due to lint rules shared with more typical C programs.
  2760. assert (!(strcmp) (s, "test"));
  2761. }
  2762. }
  2763. template <typename T> struct test_template
  2764. {
  2765. T const val;
  2766. explicit test_template(T t) : val(t) {}
  2767. template <typename U> T add(U u) { return static_cast<T>(u) + val; }
  2768. };
  2769. } // anonymous namespace
  2770. '
  2771. # Test code for whether the C++ compiler supports C++98 (body of main)
  2772. ac_cxx_conftest_cxx98_main='
  2773. assert (argc);
  2774. assert (! argv[0]);
  2775. {
  2776. test_exception_syntax ();
  2777. test_template<double> tt (2.0);
  2778. assert (tt.add (4) == 6.0);
  2779. assert (true && !false);
  2780. }
  2781. '
  2782. # Test code for whether the C++ compiler supports C++11 (global declarations)
  2783. ac_cxx_conftest_cxx11_globals='
  2784. // Does the compiler advertise C++ 2011 conformance?
  2785. #if !defined __cplusplus || __cplusplus < 201103L
  2786. # error "Compiler does not advertise C++11 conformance"
  2787. #endif
  2788. namespace cxx11test
  2789. {
  2790. constexpr int get_val() { return 20; }
  2791. struct testinit
  2792. {
  2793. int i;
  2794. double d;
  2795. };
  2796. class delegate
  2797. {
  2798. public:
  2799. delegate(int n) : n(n) {}
  2800. delegate(): delegate(2354) {}
  2801. virtual int getval() { return this->n; };
  2802. protected:
  2803. int n;
  2804. };
  2805. class overridden : public delegate
  2806. {
  2807. public:
  2808. overridden(int n): delegate(n) {}
  2809. virtual int getval() override final { return this->n * 2; }
  2810. };
  2811. class nocopy
  2812. {
  2813. public:
  2814. nocopy(int i): i(i) {}
  2815. nocopy() = default;
  2816. nocopy(const nocopy&) = delete;
  2817. nocopy & operator=(const nocopy&) = delete;
  2818. private:
  2819. int i;
  2820. };
  2821. // for testing lambda expressions
  2822. template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
  2823. {
  2824. return f(v);
  2825. }
  2826. // for testing variadic templates and trailing return types
  2827. template <typename V> auto sum(V first) -> V
  2828. {
  2829. return first;
  2830. }
  2831. template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
  2832. {
  2833. return first + sum(rest...);
  2834. }
  2835. }
  2836. '
  2837. # Test code for whether the C++ compiler supports C++11 (body of main)
  2838. ac_cxx_conftest_cxx11_main='
  2839. {
  2840. // Test auto and decltype
  2841. auto a1 = 6538;
  2842. auto a2 = 48573953.4;
  2843. auto a3 = "String literal";
  2844. int total = 0;
  2845. for (auto i = a3; *i; ++i) { total += *i; }
  2846. decltype(a2) a4 = 34895.034;
  2847. }
  2848. {
  2849. // Test constexpr
  2850. short sa[cxx11test::get_val()] = { 0 };
  2851. }
  2852. {
  2853. // Test initializer lists
  2854. cxx11test::testinit il = { 4323, 435234.23544 };
  2855. }
  2856. {
  2857. // Test range-based for
  2858. int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
  2859. 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
  2860. for (auto &x : array) { x += 23; }
  2861. }
  2862. {
  2863. // Test lambda expressions
  2864. using cxx11test::eval;
  2865. assert (eval ([](int x) { return x*2; }, 21) == 42);
  2866. double d = 2.0;
  2867. assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
  2868. assert (d == 5.0);
  2869. assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
  2870. assert (d == 5.0);
  2871. }
  2872. {
  2873. // Test use of variadic templates
  2874. using cxx11test::sum;
  2875. auto a = sum(1);
  2876. auto b = sum(1, 2);
  2877. auto c = sum(1.0, 2.0, 3.0);
  2878. }
  2879. {
  2880. // Test constructor delegation
  2881. cxx11test::delegate d1;
  2882. cxx11test::delegate d2();
  2883. cxx11test::delegate d3(45);
  2884. }
  2885. {
  2886. // Test override and final
  2887. cxx11test::overridden o1(55464);
  2888. }
  2889. {
  2890. // Test nullptr
  2891. char *c = nullptr;
  2892. }
  2893. {
  2894. // Test template brackets
  2895. test_template<::test_template<int>> v(test_template<int>(12));
  2896. }
  2897. {
  2898. // Unicode literals
  2899. char const *utf8 = u8"UTF-8 string \u2500";
  2900. char16_t const *utf16 = u"UTF-8 string \u2500";
  2901. char32_t const *utf32 = U"UTF-32 string \u2500";
  2902. }
  2903. '
  2904. # Test code for whether the C compiler supports C++11 (complete).
  2905. ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
  2906. ${ac_cxx_conftest_cxx11_globals}
  2907. int
  2908. main (int argc, char **argv)
  2909. {
  2910. int ok = 0;
  2911. ${ac_cxx_conftest_cxx98_main}
  2912. ${ac_cxx_conftest_cxx11_main}
  2913. return ok;
  2914. }
  2915. "
  2916. # Test code for whether the C compiler supports C++98 (complete).
  2917. ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
  2918. int
  2919. main (int argc, char **argv)
  2920. {
  2921. int ok = 0;
  2922. ${ac_cxx_conftest_cxx98_main}
  2923. return ok;
  2924. }
  2925. "
  2926. as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
  2927. as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
  2928. as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
  2929. as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
  2930. as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
  2931. as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
  2932. as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
  2933. as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
  2934. as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
  2935. as_fn_append ac_header_c_list " sys/time.h sys_time_h HAVE_SYS_TIME_H"
  2936. # Auxiliary files required by this configure script.
  2937. ac_aux_files="ltmain.sh missing compile install-sh config.guess config.sub"
  2938. # Locations in which to look for auxiliary files.
  2939. ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
  2940. # Search for a directory containing all of the required auxiliary files,
  2941. # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
  2942. # If we don't find one directory that contains all the files we need,
  2943. # we report the set of missing files from the *first* directory in
  2944. # $ac_aux_dir_candidates and give up.
  2945. ac_missing_aux_files=""
  2946. ac_first_candidate=:
  2947. printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
  2948. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2949. as_found=false
  2950. for as_dir in $ac_aux_dir_candidates
  2951. do
  2952. IFS=$as_save_IFS
  2953. case $as_dir in #(((
  2954. '') as_dir=./ ;;
  2955. */) ;;
  2956. *) as_dir=$as_dir/ ;;
  2957. esac
  2958. as_found=:
  2959. printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
  2960. ac_aux_dir_found=yes
  2961. ac_install_sh=
  2962. for ac_aux in $ac_aux_files
  2963. do
  2964. # As a special case, if "install-sh" is required, that requirement
  2965. # can be satisfied by any of "install-sh", "install.sh", or "shtool",
  2966. # and $ac_install_sh is set appropriately for whichever one is found.
  2967. if test x"$ac_aux" = x"install-sh"
  2968. then
  2969. if test -f "${as_dir}install-sh"; then
  2970. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
  2971. ac_install_sh="${as_dir}install-sh -c"
  2972. elif test -f "${as_dir}install.sh"; then
  2973. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
  2974. ac_install_sh="${as_dir}install.sh -c"
  2975. elif test -f "${as_dir}shtool"; then
  2976. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
  2977. ac_install_sh="${as_dir}shtool install -c"
  2978. else
  2979. ac_aux_dir_found=no
  2980. if $ac_first_candidate; then
  2981. ac_missing_aux_files="${ac_missing_aux_files} install-sh"
  2982. else
  2983. break
  2984. fi
  2985. fi
  2986. else
  2987. if test -f "${as_dir}${ac_aux}"; then
  2988. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
  2989. else
  2990. ac_aux_dir_found=no
  2991. if $ac_first_candidate; then
  2992. ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
  2993. else
  2994. break
  2995. fi
  2996. fi
  2997. fi
  2998. done
  2999. if test "$ac_aux_dir_found" = yes; then
  3000. ac_aux_dir="$as_dir"
  3001. break
  3002. fi
  3003. ac_first_candidate=false
  3004. as_found=false
  3005. done
  3006. IFS=$as_save_IFS
  3007. if $as_found
  3008. then :
  3009. else $as_nop
  3010. as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
  3011. fi
  3012. # These three variables are undocumented and unsupported,
  3013. # and are intended to be withdrawn in a future Autoconf release.
  3014. # They can cause serious problems if a builder's source tree is in a directory
  3015. # whose full name contains unusual characters.
  3016. if test -f "${ac_aux_dir}config.guess"; then
  3017. ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
  3018. fi
  3019. if test -f "${ac_aux_dir}config.sub"; then
  3020. ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
  3021. fi
  3022. if test -f "$ac_aux_dir/configure"; then
  3023. ac_configure="$SHELL ${ac_aux_dir}configure"
  3024. fi
  3025. # Check that the precious variables saved in the cache have kept the same
  3026. # value.
  3027. ac_cache_corrupted=false
  3028. for ac_var in $ac_precious_vars; do
  3029. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  3030. eval ac_new_set=\$ac_env_${ac_var}_set
  3031. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  3032. eval ac_new_val=\$ac_env_${ac_var}_value
  3033. case $ac_old_set,$ac_new_set in
  3034. set,)
  3035. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  3036. printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  3037. ac_cache_corrupted=: ;;
  3038. ,set)
  3039. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  3040. printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  3041. ac_cache_corrupted=: ;;
  3042. ,);;
  3043. *)
  3044. if test "x$ac_old_val" != "x$ac_new_val"; then
  3045. # differences in whitespace do not lead to failure.
  3046. ac_old_val_w=`echo x $ac_old_val`
  3047. ac_new_val_w=`echo x $ac_new_val`
  3048. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  3049. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  3050. printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  3051. ac_cache_corrupted=:
  3052. else
  3053. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  3054. printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  3055. eval $ac_var=\$ac_old_val
  3056. fi
  3057. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  3058. printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
  3059. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  3060. printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
  3061. fi;;
  3062. esac
  3063. # Pass precious variables to config.status.
  3064. if test "$ac_new_set" = set; then
  3065. case $ac_new_val in
  3066. *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  3067. *) ac_arg=$ac_var=$ac_new_val ;;
  3068. esac
  3069. case " $ac_configure_args " in
  3070. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  3071. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  3072. esac
  3073. fi
  3074. done
  3075. if $ac_cache_corrupted; then
  3076. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3077. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3078. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  3079. printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
  3080. as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
  3081. and start over" "$LINENO" 5
  3082. fi
  3083. ## -------------------- ##
  3084. ## Main body of script. ##
  3085. ## -------------------- ##
  3086. ac_ext=c
  3087. ac_cpp='$CPP $CPPFLAGS'
  3088. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3089. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3090. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3091. CARES_VERSION_INFO="7:1:5"
  3092. ac_config_headers="$ac_config_headers src/lib/ares_config.h include/ares_build.h"
  3093. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  3094. printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  3095. # Check whether --enable-maintainer-mode was given.
  3096. if test ${enable_maintainer_mode+y}
  3097. then :
  3098. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  3099. else $as_nop
  3100. USE_MAINTAINER_MODE=no
  3101. fi
  3102. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  3103. printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
  3104. if test $USE_MAINTAINER_MODE = yes; then
  3105. MAINTAINER_MODE_TRUE=
  3106. MAINTAINER_MODE_FALSE='#'
  3107. else
  3108. MAINTAINER_MODE_TRUE='#'
  3109. MAINTAINER_MODE_FALSE=
  3110. fi
  3111. MAINT=$MAINTAINER_MODE_TRUE
  3112. # Check whether --enable-silent-rules was given.
  3113. if test ${enable_silent_rules+y}
  3114. then :
  3115. enableval=$enable_silent_rules;
  3116. fi
  3117. case $enable_silent_rules in # (((
  3118. yes) AM_DEFAULT_VERBOSITY=0;;
  3119. no) AM_DEFAULT_VERBOSITY=1;;
  3120. *) AM_DEFAULT_VERBOSITY=0;;
  3121. esac
  3122. am_make=${MAKE-make}
  3123. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  3124. printf %s "checking whether $am_make supports nested variables... " >&6; }
  3125. if test ${am_cv_make_support_nested_variables+y}
  3126. then :
  3127. printf %s "(cached) " >&6
  3128. else $as_nop
  3129. if printf "%s\n" 'TRUE=$(BAR$(V))
  3130. BAR0=false
  3131. BAR1=true
  3132. V=1
  3133. am__doit:
  3134. @$(TRUE)
  3135. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  3136. am_cv_make_support_nested_variables=yes
  3137. else
  3138. am_cv_make_support_nested_variables=no
  3139. fi
  3140. fi
  3141. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  3142. printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
  3143. if test $am_cv_make_support_nested_variables = yes; then
  3144. AM_V='$(V)'
  3145. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  3146. else
  3147. AM_V=$AM_DEFAULT_VERBOSITY
  3148. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  3149. fi
  3150. AM_BACKSLASH='\'
  3151. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable debug build options" >&5
  3152. printf %s "checking whether to enable debug build options... " >&6; }
  3153. OPT_DEBUG_BUILD="default"
  3154. # Check whether --enable-debug was given.
  3155. if test ${enable_debug+y}
  3156. then :
  3157. enableval=$enable_debug; OPT_DEBUG_BUILD=$enableval
  3158. fi
  3159. case "$OPT_DEBUG_BUILD" in
  3160. no)
  3161. want_debug="no"
  3162. ;;
  3163. default)
  3164. want_debug="no"
  3165. ;;
  3166. *)
  3167. want_debug="yes"
  3168. ;;
  3169. esac
  3170. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_debug" >&5
  3171. printf "%s\n" "$want_debug" >&6; }
  3172. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler optimizer" >&5
  3173. printf %s "checking whether to enable compiler optimizer... " >&6; }
  3174. OPT_COMPILER_OPTIMIZE="default"
  3175. # Check whether --enable-optimize was given.
  3176. if test ${enable_optimize+y}
  3177. then :
  3178. enableval=$enable_optimize; OPT_COMPILER_OPTIMIZE=$enableval
  3179. fi
  3180. case "$OPT_COMPILER_OPTIMIZE" in
  3181. no)
  3182. want_optimize="no"
  3183. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3184. printf "%s\n" "no" >&6; }
  3185. ;;
  3186. default)
  3187. if test "$want_debug" = "yes"; then
  3188. want_optimize="assume_no"
  3189. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not specified (assuming no)" >&5
  3190. printf "%s\n" "not specified (assuming no)" >&6; }
  3191. else
  3192. want_optimize="assume_yes"
  3193. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not specified (assuming yes)" >&5
  3194. printf "%s\n" "not specified (assuming yes)" >&6; }
  3195. fi
  3196. ;;
  3197. *)
  3198. want_optimize="yes"
  3199. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3200. printf "%s\n" "yes" >&6; }
  3201. ;;
  3202. esac
  3203. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable strict compiler warnings" >&5
  3204. printf %s "checking whether to enable strict compiler warnings... " >&6; }
  3205. OPT_COMPILER_WARNINGS="default"
  3206. # Check whether --enable-warnings was given.
  3207. if test ${enable_warnings+y}
  3208. then :
  3209. enableval=$enable_warnings; OPT_COMPILER_WARNINGS=$enableval
  3210. fi
  3211. case "$OPT_COMPILER_WARNINGS" in
  3212. no)
  3213. want_warnings="no"
  3214. ;;
  3215. default)
  3216. want_warnings="$want_debug"
  3217. ;;
  3218. *)
  3219. want_warnings="yes"
  3220. ;;
  3221. esac
  3222. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_warnings" >&5
  3223. printf "%s\n" "$want_warnings" >&6; }
  3224. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler warnings as errors" >&5
  3225. printf %s "checking whether to enable compiler warnings as errors... " >&6; }
  3226. OPT_COMPILER_WERROR="default"
  3227. # Check whether --enable-werror was given.
  3228. if test ${enable_werror+y}
  3229. then :
  3230. enableval=$enable_werror; OPT_COMPILER_WERROR=$enableval
  3231. fi
  3232. case "$OPT_COMPILER_WERROR" in
  3233. no)
  3234. want_werror="no"
  3235. ;;
  3236. default)
  3237. want_werror="no"
  3238. ;;
  3239. *)
  3240. want_werror="yes"
  3241. ;;
  3242. esac
  3243. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_werror" >&5
  3244. printf "%s\n" "$want_werror" >&6; }
  3245. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable hiding of library internal symbols" >&5
  3246. printf %s "checking whether to enable hiding of library internal symbols... " >&6; }
  3247. OPT_SYMBOL_HIDING="default"
  3248. # Check whether --enable-symbol-hiding was given.
  3249. if test ${enable_symbol_hiding+y}
  3250. then :
  3251. enableval=$enable_symbol_hiding; OPT_SYMBOL_HIDING=$enableval
  3252. fi
  3253. case "$OPT_SYMBOL_HIDING" in
  3254. no)
  3255. want_symbol_hiding="no"
  3256. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3257. printf "%s\n" "no" >&6; }
  3258. ;;
  3259. default)
  3260. want_symbol_hiding="yes"
  3261. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3262. printf "%s\n" "yes" >&6; }
  3263. ;;
  3264. *)
  3265. want_symbol_hiding="yes"
  3266. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3267. printf "%s\n" "yes" >&6; }
  3268. ;;
  3269. esac
  3270. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to expose internal static functions for testing" >&5
  3271. printf %s "checking whether to expose internal static functions for testing... " >&6; }
  3272. OPT_EXPOSE_STATICS="default"
  3273. # Check whether --enable-expose-statics was given.
  3274. if test ${enable_expose_statics+y}
  3275. then :
  3276. enableval=$enable_expose_statics; OPT_EXPOSE_STATICS=$enableval
  3277. fi
  3278. case "$OPT_EXPOSE_STATICS" in
  3279. no)
  3280. want_expose_statics="no"
  3281. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3282. printf "%s\n" "no" >&6; }
  3283. ;;
  3284. default)
  3285. want_expose_statics="no"
  3286. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3287. printf "%s\n" "no" >&6; }
  3288. ;;
  3289. *)
  3290. want_expose_statics="yes"
  3291. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3292. printf "%s\n" "yes" >&6; }
  3293. ;;
  3294. esac
  3295. if test "$want_expose_statics" = "yes"; then
  3296. printf "%s\n" "#define CARES_EXPOSE_STATICS 1" >>confdefs.h
  3297. fi
  3298. #
  3299. # Check that 'XC_CONFIGURE_PREAMBLE' has already run.
  3300. #
  3301. if test -z "$xc_configure_preamble_result"; then
  3302. as_fn_error $? "xc_configure_preamble_result not set (internal problem)" "$LINENO" 5
  3303. fi
  3304. #
  3305. # Check that 'PATH_SEPARATOR' has already been set.
  3306. #
  3307. if test -z "$xc_PATH_SEPARATOR"; then
  3308. as_fn_error $? "xc_PATH_SEPARATOR not set (internal problem)" "$LINENO" 5
  3309. fi
  3310. if test -z "$PATH_SEPARATOR"; then
  3311. as_fn_error $? "PATH_SEPARATOR not set (internal or config.site problem)" "$LINENO" 5
  3312. fi
  3313. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for path separator" >&5
  3314. printf %s "checking for path separator... " >&6; }
  3315. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PATH_SEPARATOR" >&5
  3316. printf "%s\n" "$PATH_SEPARATOR" >&6; }
  3317. if test "x$PATH_SEPARATOR" != "x$xc_PATH_SEPARATOR"; then
  3318. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for initial path separator" >&5
  3319. printf %s "checking for initial path separator... " >&6; }
  3320. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_PATH_SEPARATOR" >&5
  3321. printf "%s\n" "$xc_PATH_SEPARATOR" >&6; }
  3322. as_fn_error $? "path separator mismatch (internal or config.site problem)" "$LINENO" 5
  3323. fi
  3324. # Extract the first word of "sed", so it can be a program name with args.
  3325. set dummy sed; ac_word=$2
  3326. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3327. printf %s "checking for $ac_word... " >&6; }
  3328. if test ${ac_cv_path_SED+y}
  3329. then :
  3330. printf %s "(cached) " >&6
  3331. else $as_nop
  3332. case $SED in
  3333. [\\/]* | ?:[\\/]*)
  3334. ac_cv_path_SED="$SED" # Let the user override the test with a path.
  3335. ;;
  3336. *)
  3337. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3338. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  3339. for as_dir in $as_dummy
  3340. do
  3341. IFS=$as_save_IFS
  3342. case $as_dir in #(((
  3343. '') as_dir=./ ;;
  3344. */) ;;
  3345. *) as_dir=$as_dir/ ;;
  3346. esac
  3347. for ac_exec_ext in '' $ac_executable_extensions; do
  3348. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3349. ac_cv_path_SED="$as_dir$ac_word$ac_exec_ext"
  3350. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3351. break 2
  3352. fi
  3353. done
  3354. done
  3355. IFS=$as_save_IFS
  3356. test -z "$ac_cv_path_SED" && ac_cv_path_SED="not_found"
  3357. ;;
  3358. esac
  3359. fi
  3360. SED=$ac_cv_path_SED
  3361. if test -n "$SED"; then
  3362. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
  3363. printf "%s\n" "$SED" >&6; }
  3364. else
  3365. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3366. printf "%s\n" "no" >&6; }
  3367. fi
  3368. if test -z "$SED" || test "$SED" = "not_found"; then
  3369. as_fn_error $? "sed not found in PATH. Cannot continue without sed." "$LINENO" 5
  3370. fi
  3371. # Extract the first word of "grep", so it can be a program name with args.
  3372. set dummy grep; ac_word=$2
  3373. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3374. printf %s "checking for $ac_word... " >&6; }
  3375. if test ${ac_cv_path_GREP+y}
  3376. then :
  3377. printf %s "(cached) " >&6
  3378. else $as_nop
  3379. case $GREP in
  3380. [\\/]* | ?:[\\/]*)
  3381. ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
  3382. ;;
  3383. *)
  3384. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3385. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  3386. for as_dir in $as_dummy
  3387. do
  3388. IFS=$as_save_IFS
  3389. case $as_dir in #(((
  3390. '') as_dir=./ ;;
  3391. */) ;;
  3392. *) as_dir=$as_dir/ ;;
  3393. esac
  3394. for ac_exec_ext in '' $ac_executable_extensions; do
  3395. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3396. ac_cv_path_GREP="$as_dir$ac_word$ac_exec_ext"
  3397. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3398. break 2
  3399. fi
  3400. done
  3401. done
  3402. IFS=$as_save_IFS
  3403. test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="not_found"
  3404. ;;
  3405. esac
  3406. fi
  3407. GREP=$ac_cv_path_GREP
  3408. if test -n "$GREP"; then
  3409. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
  3410. printf "%s\n" "$GREP" >&6; }
  3411. else
  3412. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3413. printf "%s\n" "no" >&6; }
  3414. fi
  3415. if test -z "$GREP" || test "$GREP" = "not_found"; then
  3416. as_fn_error $? "grep not found in PATH. Cannot continue without grep." "$LINENO" 5
  3417. fi
  3418. if echo a | ($GREP -E '(a|b)') >/dev/null 2>&1; then
  3419. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3420. printf %s "checking for egrep... " >&6; }
  3421. EGREP="$GREP -E"
  3422. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
  3423. printf "%s\n" "$EGREP" >&6; }
  3424. else
  3425. # Extract the first word of "egrep", so it can be a program name with args.
  3426. set dummy egrep; ac_word=$2
  3427. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3428. printf %s "checking for $ac_word... " >&6; }
  3429. if test ${ac_cv_path_EGREP+y}
  3430. then :
  3431. printf %s "(cached) " >&6
  3432. else $as_nop
  3433. case $EGREP in
  3434. [\\/]* | ?:[\\/]*)
  3435. ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
  3436. ;;
  3437. *)
  3438. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3439. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  3440. for as_dir in $as_dummy
  3441. do
  3442. IFS=$as_save_IFS
  3443. case $as_dir in #(((
  3444. '') as_dir=./ ;;
  3445. */) ;;
  3446. *) as_dir=$as_dir/ ;;
  3447. esac
  3448. for ac_exec_ext in '' $ac_executable_extensions; do
  3449. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3450. ac_cv_path_EGREP="$as_dir$ac_word$ac_exec_ext"
  3451. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3452. break 2
  3453. fi
  3454. done
  3455. done
  3456. IFS=$as_save_IFS
  3457. test -z "$ac_cv_path_EGREP" && ac_cv_path_EGREP="not_found"
  3458. ;;
  3459. esac
  3460. fi
  3461. EGREP=$ac_cv_path_EGREP
  3462. if test -n "$EGREP"; then
  3463. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
  3464. printf "%s\n" "$EGREP" >&6; }
  3465. else
  3466. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3467. printf "%s\n" "no" >&6; }
  3468. fi
  3469. fi
  3470. if test -z "$EGREP" || test "$EGREP" = "not_found"; then
  3471. as_fn_error $? "egrep not found in PATH. Cannot continue without egrep." "$LINENO" 5
  3472. fi
  3473. if test -z "$AR"; then
  3474. if test -n "$ac_tool_prefix"; then
  3475. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  3476. set dummy ${ac_tool_prefix}ar; ac_word=$2
  3477. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3478. printf %s "checking for $ac_word... " >&6; }
  3479. if test ${ac_cv_path_AR+y}
  3480. then :
  3481. printf %s "(cached) " >&6
  3482. else $as_nop
  3483. case $AR in
  3484. [\\/]* | ?:[\\/]*)
  3485. ac_cv_path_AR="$AR" # Let the user override the test with a path.
  3486. ;;
  3487. *)
  3488. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3489. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  3490. for as_dir in $as_dummy
  3491. do
  3492. IFS=$as_save_IFS
  3493. case $as_dir in #(((
  3494. '') as_dir=./ ;;
  3495. */) ;;
  3496. *) as_dir=$as_dir/ ;;
  3497. esac
  3498. for ac_exec_ext in '' $ac_executable_extensions; do
  3499. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3500. ac_cv_path_AR="$as_dir$ac_word$ac_exec_ext"
  3501. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3502. break 2
  3503. fi
  3504. done
  3505. done
  3506. IFS=$as_save_IFS
  3507. ;;
  3508. esac
  3509. fi
  3510. AR=$ac_cv_path_AR
  3511. if test -n "$AR"; then
  3512. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  3513. printf "%s\n" "$AR" >&6; }
  3514. else
  3515. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3516. printf "%s\n" "no" >&6; }
  3517. fi
  3518. fi
  3519. if test -z "$ac_cv_path_AR"; then
  3520. ac_pt_AR=$AR
  3521. # Extract the first word of "ar", so it can be a program name with args.
  3522. set dummy ar; ac_word=$2
  3523. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3524. printf %s "checking for $ac_word... " >&6; }
  3525. if test ${ac_cv_path_ac_pt_AR+y}
  3526. then :
  3527. printf %s "(cached) " >&6
  3528. else $as_nop
  3529. case $ac_pt_AR in
  3530. [\\/]* | ?:[\\/]*)
  3531. ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
  3532. ;;
  3533. *)
  3534. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3535. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  3536. for as_dir in $as_dummy
  3537. do
  3538. IFS=$as_save_IFS
  3539. case $as_dir in #(((
  3540. '') as_dir=./ ;;
  3541. */) ;;
  3542. *) as_dir=$as_dir/ ;;
  3543. esac
  3544. for ac_exec_ext in '' $ac_executable_extensions; do
  3545. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3546. ac_cv_path_ac_pt_AR="$as_dir$ac_word$ac_exec_ext"
  3547. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3548. break 2
  3549. fi
  3550. done
  3551. done
  3552. IFS=$as_save_IFS
  3553. ;;
  3554. esac
  3555. fi
  3556. ac_pt_AR=$ac_cv_path_ac_pt_AR
  3557. if test -n "$ac_pt_AR"; then
  3558. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
  3559. printf "%s\n" "$ac_pt_AR" >&6; }
  3560. else
  3561. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3562. printf "%s\n" "no" >&6; }
  3563. fi
  3564. if test "x$ac_pt_AR" = x; then
  3565. AR="not_found"
  3566. else
  3567. case $cross_compiling:$ac_tool_warned in
  3568. yes:)
  3569. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3570. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3571. ac_tool_warned=yes ;;
  3572. esac
  3573. AR=$ac_pt_AR
  3574. fi
  3575. else
  3576. AR="$ac_cv_path_AR"
  3577. fi
  3578. if test -z "$AR" || test "$AR" = "not_found"; then
  3579. as_fn_error $? "ar not found in PATH. Cannot continue without ar." "$LINENO" 5
  3580. fi
  3581. fi
  3582. # allow to override gcov location
  3583. # Check whether --with-gcov was given.
  3584. if test ${with_gcov+y}
  3585. then :
  3586. withval=$with_gcov; _AX_CODE_COVERAGE_GCOV_PROG_WITH=$with_gcov
  3587. else $as_nop
  3588. _AX_CODE_COVERAGE_GCOV_PROG_WITH=gcov
  3589. fi
  3590. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build with code coverage support" >&5
  3591. printf %s "checking whether to build with code coverage support... " >&6; }
  3592. # Check whether --enable-code-coverage was given.
  3593. if test ${enable_code_coverage+y}
  3594. then :
  3595. enableval=$enable_code_coverage;
  3596. else $as_nop
  3597. enable_code_coverage=no
  3598. fi
  3599. if test "x$enable_code_coverage" = xyes; then
  3600. CODE_COVERAGE_ENABLED_TRUE=
  3601. CODE_COVERAGE_ENABLED_FALSE='#'
  3602. else
  3603. CODE_COVERAGE_ENABLED_TRUE='#'
  3604. CODE_COVERAGE_ENABLED_FALSE=
  3605. fi
  3606. CODE_COVERAGE_ENABLED=$enable_code_coverage
  3607. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_code_coverage" >&5
  3608. printf "%s\n" "$enable_code_coverage" >&6; }
  3609. if test "x$enable_code_coverage" = xyes
  3610. then :
  3611. for ac_prog in gawk mawk nawk awk
  3612. do
  3613. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3614. set dummy $ac_prog; ac_word=$2
  3615. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3616. printf %s "checking for $ac_word... " >&6; }
  3617. if test ${ac_cv_prog_AWK+y}
  3618. then :
  3619. printf %s "(cached) " >&6
  3620. else $as_nop
  3621. if test -n "$AWK"; then
  3622. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3623. else
  3624. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3625. for as_dir in $PATH
  3626. do
  3627. IFS=$as_save_IFS
  3628. case $as_dir in #(((
  3629. '') as_dir=./ ;;
  3630. */) ;;
  3631. *) as_dir=$as_dir/ ;;
  3632. esac
  3633. for ac_exec_ext in '' $ac_executable_extensions; do
  3634. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3635. ac_cv_prog_AWK="$ac_prog"
  3636. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3637. break 2
  3638. fi
  3639. done
  3640. done
  3641. IFS=$as_save_IFS
  3642. fi
  3643. fi
  3644. AWK=$ac_cv_prog_AWK
  3645. if test -n "$AWK"; then
  3646. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  3647. printf "%s\n" "$AWK" >&6; }
  3648. else
  3649. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3650. printf "%s\n" "no" >&6; }
  3651. fi
  3652. test -n "$AWK" && break
  3653. done
  3654. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
  3655. printf %s "checking for GNU make... " >&6; }
  3656. if test ${_cv_gnu_make_command+y}
  3657. then :
  3658. printf %s "(cached) " >&6
  3659. else $as_nop
  3660. _cv_gnu_make_command="" ;
  3661. for a in "$MAKE" make gmake gnumake ; do
  3662. if test -z "$a" ; then continue ; fi ;
  3663. if "$a" --version 2> /dev/null | grep GNU 2>&1 > /dev/null ; then
  3664. _cv_gnu_make_command=$a ;
  3665. AX_CHECK_GNU_MAKE_HEADLINE=$("$a" --version 2> /dev/null | grep "GNU Make")
  3666. ax_check_gnu_make_version=$(echo ${AX_CHECK_GNU_MAKE_HEADLINE} | ${AWK} -F " " '{ print $(NF); }')
  3667. break ;
  3668. fi
  3669. done ;
  3670. fi
  3671. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
  3672. printf "%s\n" "$_cv_gnu_make_command" >&6; }
  3673. if test "x$_cv_gnu_make_command" = x""
  3674. then :
  3675. ifGNUmake="#"
  3676. else $as_nop
  3677. ifGNUmake=""
  3678. fi
  3679. if test "x$_cv_gnu_make_command" = x""
  3680. then :
  3681. ifnGNUmake=""
  3682. else $as_nop
  3683. ifnGNUmake="#"
  3684. fi
  3685. if test "x$_cv_gnu_make_command" = x""
  3686. then :
  3687. { ax_cv_gnu_make_command=; unset ax_cv_gnu_make_command;}
  3688. else $as_nop
  3689. ax_cv_gnu_make_command=${_cv_gnu_make_command}
  3690. fi
  3691. if test "x$_cv_gnu_make_command" = x""
  3692. then :
  3693. as_fn_error $? "not using GNU make that is needed for coverage" "$LINENO" 5
  3694. fi
  3695. # check for gcov
  3696. if test -n "$ac_tool_prefix"; then
  3697. # Extract the first word of "${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
  3698. set dummy ${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
  3699. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3700. printf %s "checking for $ac_word... " >&6; }
  3701. if test ${ac_cv_prog_GCOV+y}
  3702. then :
  3703. printf %s "(cached) " >&6
  3704. else $as_nop
  3705. if test -n "$GCOV"; then
  3706. ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
  3707. else
  3708. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3709. for as_dir in $PATH
  3710. do
  3711. IFS=$as_save_IFS
  3712. case $as_dir in #(((
  3713. '') as_dir=./ ;;
  3714. */) ;;
  3715. *) as_dir=$as_dir/ ;;
  3716. esac
  3717. for ac_exec_ext in '' $ac_executable_extensions; do
  3718. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3719. ac_cv_prog_GCOV="${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
  3720. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3721. break 2
  3722. fi
  3723. done
  3724. done
  3725. IFS=$as_save_IFS
  3726. fi
  3727. fi
  3728. GCOV=$ac_cv_prog_GCOV
  3729. if test -n "$GCOV"; then
  3730. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
  3731. printf "%s\n" "$GCOV" >&6; }
  3732. else
  3733. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3734. printf "%s\n" "no" >&6; }
  3735. fi
  3736. fi
  3737. if test -z "$ac_cv_prog_GCOV"; then
  3738. ac_ct_GCOV=$GCOV
  3739. # Extract the first word of "$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
  3740. set dummy $_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
  3741. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3742. printf %s "checking for $ac_word... " >&6; }
  3743. if test ${ac_cv_prog_ac_ct_GCOV+y}
  3744. then :
  3745. printf %s "(cached) " >&6
  3746. else $as_nop
  3747. if test -n "$ac_ct_GCOV"; then
  3748. ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test.
  3749. else
  3750. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3751. for as_dir in $PATH
  3752. do
  3753. IFS=$as_save_IFS
  3754. case $as_dir in #(((
  3755. '') as_dir=./ ;;
  3756. */) ;;
  3757. *) as_dir=$as_dir/ ;;
  3758. esac
  3759. for ac_exec_ext in '' $ac_executable_extensions; do
  3760. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3761. ac_cv_prog_ac_ct_GCOV="$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
  3762. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3763. break 2
  3764. fi
  3765. done
  3766. done
  3767. IFS=$as_save_IFS
  3768. fi
  3769. fi
  3770. ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV
  3771. if test -n "$ac_ct_GCOV"; then
  3772. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCOV" >&5
  3773. printf "%s\n" "$ac_ct_GCOV" >&6; }
  3774. else
  3775. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3776. printf "%s\n" "no" >&6; }
  3777. fi
  3778. if test "x$ac_ct_GCOV" = x; then
  3779. GCOV=":"
  3780. else
  3781. case $cross_compiling:$ac_tool_warned in
  3782. yes:)
  3783. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3784. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3785. ac_tool_warned=yes ;;
  3786. esac
  3787. GCOV=$ac_ct_GCOV
  3788. fi
  3789. else
  3790. GCOV="$ac_cv_prog_GCOV"
  3791. fi
  3792. if test "X$GCOV" = "X:"
  3793. then :
  3794. as_fn_error $? "gcov is needed to do coverage" "$LINENO" 5
  3795. fi
  3796. if test "$GCC" = "no"
  3797. then :
  3798. as_fn_error $? "not compiling with gcc, which is required for gcov code coverage" "$LINENO" 5
  3799. fi
  3800. # Extract the first word of "lcov", so it can be a program name with args.
  3801. set dummy lcov; ac_word=$2
  3802. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3803. printf %s "checking for $ac_word... " >&6; }
  3804. if test ${ac_cv_prog_LCOV+y}
  3805. then :
  3806. printf %s "(cached) " >&6
  3807. else $as_nop
  3808. if test -n "$LCOV"; then
  3809. ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
  3810. else
  3811. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3812. for as_dir in $PATH
  3813. do
  3814. IFS=$as_save_IFS
  3815. case $as_dir in #(((
  3816. '') as_dir=./ ;;
  3817. */) ;;
  3818. *) as_dir=$as_dir/ ;;
  3819. esac
  3820. for ac_exec_ext in '' $ac_executable_extensions; do
  3821. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3822. ac_cv_prog_LCOV="lcov"
  3823. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3824. break 2
  3825. fi
  3826. done
  3827. done
  3828. IFS=$as_save_IFS
  3829. fi
  3830. fi
  3831. LCOV=$ac_cv_prog_LCOV
  3832. if test -n "$LCOV"; then
  3833. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
  3834. printf "%s\n" "$LCOV" >&6; }
  3835. else
  3836. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3837. printf "%s\n" "no" >&6; }
  3838. fi
  3839. # Extract the first word of "genhtml", so it can be a program name with args.
  3840. set dummy genhtml; ac_word=$2
  3841. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3842. printf %s "checking for $ac_word... " >&6; }
  3843. if test ${ac_cv_prog_GENHTML+y}
  3844. then :
  3845. printf %s "(cached) " >&6
  3846. else $as_nop
  3847. if test -n "$GENHTML"; then
  3848. ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
  3849. else
  3850. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3851. for as_dir in $PATH
  3852. do
  3853. IFS=$as_save_IFS
  3854. case $as_dir in #(((
  3855. '') as_dir=./ ;;
  3856. */) ;;
  3857. *) as_dir=$as_dir/ ;;
  3858. esac
  3859. for ac_exec_ext in '' $ac_executable_extensions; do
  3860. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3861. ac_cv_prog_GENHTML="genhtml"
  3862. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3863. break 2
  3864. fi
  3865. done
  3866. done
  3867. IFS=$as_save_IFS
  3868. fi
  3869. fi
  3870. GENHTML=$ac_cv_prog_GENHTML
  3871. if test -n "$GENHTML"; then
  3872. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
  3873. printf "%s\n" "$GENHTML" >&6; }
  3874. else
  3875. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3876. printf "%s\n" "no" >&6; }
  3877. fi
  3878. if test x"$LCOV" = x
  3879. then :
  3880. as_fn_error $? "To enable code coverage reporting you must have lcov installed" "$LINENO" 5
  3881. fi
  3882. if test x"$GENHTML" = x
  3883. then :
  3884. as_fn_error $? "Could not find genhtml from the lcov package" "$LINENO" 5
  3885. fi
  3886. CODE_COVERAGE_CPPFLAGS="-DNDEBUG"
  3887. CODE_COVERAGE_CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
  3888. CODE_COVERAGE_CXXFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
  3889. CODE_COVERAGE_LIBS="-lgcov"
  3890. fi
  3891. # Make sure we can run config.sub.
  3892. $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
  3893. as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
  3894. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3895. printf %s "checking build system type... " >&6; }
  3896. if test ${ac_cv_build+y}
  3897. then :
  3898. printf %s "(cached) " >&6
  3899. else $as_nop
  3900. ac_build_alias=$build_alias
  3901. test "x$ac_build_alias" = x &&
  3902. ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
  3903. test "x$ac_build_alias" = x &&
  3904. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3905. ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
  3906. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
  3907. fi
  3908. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3909. printf "%s\n" "$ac_cv_build" >&6; }
  3910. case $ac_cv_build in
  3911. *-*-*) ;;
  3912. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3913. esac
  3914. build=$ac_cv_build
  3915. ac_save_IFS=$IFS; IFS='-'
  3916. set x $ac_cv_build
  3917. shift
  3918. build_cpu=$1
  3919. build_vendor=$2
  3920. shift; shift
  3921. # Remember, the first character of IFS is used to create $*,
  3922. # except with old shells:
  3923. build_os=$*
  3924. IFS=$ac_save_IFS
  3925. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3926. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3927. printf %s "checking host system type... " >&6; }
  3928. if test ${ac_cv_host+y}
  3929. then :
  3930. printf %s "(cached) " >&6
  3931. else $as_nop
  3932. if test "x$host_alias" = x; then
  3933. ac_cv_host=$ac_cv_build
  3934. else
  3935. ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
  3936. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
  3937. fi
  3938. fi
  3939. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3940. printf "%s\n" "$ac_cv_host" >&6; }
  3941. case $ac_cv_host in
  3942. *-*-*) ;;
  3943. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3944. esac
  3945. host=$ac_cv_host
  3946. ac_save_IFS=$IFS; IFS='-'
  3947. set x $ac_cv_host
  3948. shift
  3949. host_cpu=$1
  3950. host_vendor=$2
  3951. shift; shift
  3952. # Remember, the first character of IFS is used to create $*,
  3953. # except with old shells:
  3954. host_os=$*
  3955. IFS=$ac_save_IFS
  3956. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3957. printf "%s\n" "#define OS \"${host}\"" >>confdefs.h
  3958. xc_prog_cc_prev_IFS=$IFS
  3959. xc_prog_cc_prev_LIBS=$LIBS
  3960. xc_prog_cc_prev_CFLAGS=$CFLAGS
  3961. xc_prog_cc_prev_LDFLAGS=$LDFLAGS
  3962. xc_prog_cc_prev_CPPFLAGS=$CPPFLAGS
  3963. xc_bad_var_libs=no
  3964. for xc_word in $LIBS; do
  3965. case "$xc_word" in
  3966. -l* | --library=*)
  3967. :
  3968. ;;
  3969. *)
  3970. xc_bad_var_libs=yes
  3971. ;;
  3972. esac
  3973. done
  3974. if test $xc_bad_var_libs = yes; then
  3975. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
  3976. printf "%s\n" "$as_me: using LIBS: $LIBS" >&6;}
  3977. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: LIBS error: LIBS may only be used to specify libraries (-lname)." >&5
  3978. printf "%s\n" "$as_me: LIBS error: LIBS may only be used to specify libraries (-lname)." >&6;}
  3979. fi
  3980. xc_bad_var_ldflags=no
  3981. for xc_word in $LDFLAGS; do
  3982. case "$xc_word" in
  3983. -D*)
  3984. xc_bad_var_ldflags=yes
  3985. ;;
  3986. -U*)
  3987. xc_bad_var_ldflags=yes
  3988. ;;
  3989. -I*)
  3990. xc_bad_var_ldflags=yes
  3991. ;;
  3992. -l* | --library=*)
  3993. xc_bad_var_ldflags=yes
  3994. ;;
  3995. esac
  3996. done
  3997. if test $xc_bad_var_ldflags = yes; then
  3998. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
  3999. printf "%s\n" "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
  4000. xc_bad_var_msg="LDFLAGS error: LDFLAGS may only be used to specify linker flags, not"
  4001. for xc_word in $LDFLAGS; do
  4002. case "$xc_word" in
  4003. -D*)
  4004. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
  4005. printf "%s\n" "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
  4006. ;;
  4007. -U*)
  4008. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
  4009. printf "%s\n" "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
  4010. ;;
  4011. -I*)
  4012. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
  4013. printf "%s\n" "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
  4014. ;;
  4015. -l* | --library=*)
  4016. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
  4017. printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
  4018. ;;
  4019. esac
  4020. done
  4021. fi
  4022. xc_bad_var_cppflags=no
  4023. for xc_word in $CPPFLAGS; do
  4024. case "$xc_word" in
  4025. -rpath*)
  4026. xc_bad_var_cppflags=yes
  4027. ;;
  4028. -L* | --library-path=*)
  4029. xc_bad_var_cppflags=yes
  4030. ;;
  4031. -l* | --library=*)
  4032. xc_bad_var_cppflags=yes
  4033. ;;
  4034. esac
  4035. done
  4036. if test $xc_bad_var_cppflags = yes; then
  4037. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
  4038. printf "%s\n" "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
  4039. xc_bad_var_msg="CPPFLAGS error: CPPFLAGS may only be used to specify C preprocessor flags, not"
  4040. for xc_word in $CPPFLAGS; do
  4041. case "$xc_word" in
  4042. -rpath*)
  4043. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
  4044. printf "%s\n" "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
  4045. ;;
  4046. -L* | --library-path=*)
  4047. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
  4048. printf "%s\n" "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
  4049. ;;
  4050. -l* | --library=*)
  4051. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
  4052. printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
  4053. ;;
  4054. esac
  4055. done
  4056. fi
  4057. xc_bad_var_cflags=no
  4058. for xc_word in $CFLAGS; do
  4059. case "$xc_word" in
  4060. -D*)
  4061. xc_bad_var_cflags=yes
  4062. ;;
  4063. -U*)
  4064. xc_bad_var_cflags=yes
  4065. ;;
  4066. -I*)
  4067. xc_bad_var_cflags=yes
  4068. ;;
  4069. -rpath*)
  4070. xc_bad_var_cflags=yes
  4071. ;;
  4072. -L* | --library-path=*)
  4073. xc_bad_var_cflags=yes
  4074. ;;
  4075. -l* | --library=*)
  4076. xc_bad_var_cflags=yes
  4077. ;;
  4078. esac
  4079. done
  4080. if test $xc_bad_var_cflags = yes; then
  4081. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
  4082. printf "%s\n" "$as_me: using CFLAGS: $CFLAGS" >&6;}
  4083. xc_bad_var_msg="CFLAGS error: CFLAGS may only be used to specify C compiler flags, not"
  4084. for xc_word in $CFLAGS; do
  4085. case "$xc_word" in
  4086. -D*)
  4087. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
  4088. printf "%s\n" "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
  4089. ;;
  4090. -U*)
  4091. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
  4092. printf "%s\n" "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
  4093. ;;
  4094. -I*)
  4095. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
  4096. printf "%s\n" "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
  4097. ;;
  4098. -rpath*)
  4099. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
  4100. printf "%s\n" "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
  4101. ;;
  4102. -L* | --library-path=*)
  4103. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
  4104. printf "%s\n" "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
  4105. ;;
  4106. -l* | --library=*)
  4107. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
  4108. printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
  4109. ;;
  4110. esac
  4111. done
  4112. fi
  4113. if test $xc_bad_var_libs = yes ||
  4114. test $xc_bad_var_cflags = yes ||
  4115. test $xc_bad_var_ldflags = yes ||
  4116. test $xc_bad_var_cppflags = yes; then
  4117. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
  4118. printf "%s\n" "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
  4119. fi
  4120. # Find a good install program. We prefer a C program (faster),
  4121. # so one script is as good as another. But avoid the broken or
  4122. # incompatible versions:
  4123. # SysV /etc/install, /usr/sbin/install
  4124. # SunOS /usr/etc/install
  4125. # IRIX /sbin/install
  4126. # AIX /bin/install
  4127. # AmigaOS /C/install, which installs bootblocks on floppy discs
  4128. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  4129. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  4130. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  4131. # OS/2's system install, which has a completely different semantic
  4132. # ./install, which can be erroneously created by make from ./install.sh.
  4133. # Reject install programs that cannot install multiple files.
  4134. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  4135. printf %s "checking for a BSD-compatible install... " >&6; }
  4136. if test -z "$INSTALL"; then
  4137. if test ${ac_cv_path_install+y}
  4138. then :
  4139. printf %s "(cached) " >&6
  4140. else $as_nop
  4141. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4142. for as_dir in $PATH
  4143. do
  4144. IFS=$as_save_IFS
  4145. case $as_dir in #(((
  4146. '') as_dir=./ ;;
  4147. */) ;;
  4148. *) as_dir=$as_dir/ ;;
  4149. esac
  4150. # Account for fact that we put trailing slashes in our PATH walk.
  4151. case $as_dir in #((
  4152. ./ | /[cC]/* | \
  4153. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  4154. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  4155. /usr/ucb/* ) ;;
  4156. *)
  4157. # OSF1 and SCO ODT 3.0 have their own names for install.
  4158. # Don't use installbsd from OSF since it installs stuff as root
  4159. # by default.
  4160. for ac_prog in ginstall scoinst install; do
  4161. for ac_exec_ext in '' $ac_executable_extensions; do
  4162. if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
  4163. if test $ac_prog = install &&
  4164. grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  4165. # AIX install. It has an incompatible calling convention.
  4166. :
  4167. elif test $ac_prog = install &&
  4168. grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  4169. # program-specific install script used by HP pwplus--don't use.
  4170. :
  4171. else
  4172. rm -rf conftest.one conftest.two conftest.dir
  4173. echo one > conftest.one
  4174. echo two > conftest.two
  4175. mkdir conftest.dir
  4176. if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
  4177. test -s conftest.one && test -s conftest.two &&
  4178. test -s conftest.dir/conftest.one &&
  4179. test -s conftest.dir/conftest.two
  4180. then
  4181. ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
  4182. break 3
  4183. fi
  4184. fi
  4185. fi
  4186. done
  4187. done
  4188. ;;
  4189. esac
  4190. done
  4191. IFS=$as_save_IFS
  4192. rm -rf conftest.one conftest.two conftest.dir
  4193. fi
  4194. if test ${ac_cv_path_install+y}; then
  4195. INSTALL=$ac_cv_path_install
  4196. else
  4197. # As a last resort, use the slow shell script. Don't cache a
  4198. # value for INSTALL within a source directory, because that will
  4199. # break other packages using the cache if that directory is
  4200. # removed, or if the value is a relative name.
  4201. INSTALL=$ac_install_sh
  4202. fi
  4203. fi
  4204. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  4205. printf "%s\n" "$INSTALL" >&6; }
  4206. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  4207. # It thinks the first close brace ends the variable substitution.
  4208. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  4209. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  4210. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  4211. # Expand $ac_aux_dir to an absolute path.
  4212. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  4213. ac_ext=c
  4214. ac_cpp='$CPP $CPPFLAGS'
  4215. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4216. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4217. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4218. if test -n "$ac_tool_prefix"; then
  4219. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  4220. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  4221. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4222. printf %s "checking for $ac_word... " >&6; }
  4223. if test ${ac_cv_prog_CC+y}
  4224. then :
  4225. printf %s "(cached) " >&6
  4226. else $as_nop
  4227. if test -n "$CC"; then
  4228. ac_cv_prog_CC="$CC" # Let the user override the test.
  4229. else
  4230. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4231. for as_dir in $PATH
  4232. do
  4233. IFS=$as_save_IFS
  4234. case $as_dir in #(((
  4235. '') as_dir=./ ;;
  4236. */) ;;
  4237. *) as_dir=$as_dir/ ;;
  4238. esac
  4239. for ac_exec_ext in '' $ac_executable_extensions; do
  4240. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4241. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  4242. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4243. break 2
  4244. fi
  4245. done
  4246. done
  4247. IFS=$as_save_IFS
  4248. fi
  4249. fi
  4250. CC=$ac_cv_prog_CC
  4251. if test -n "$CC"; then
  4252. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4253. printf "%s\n" "$CC" >&6; }
  4254. else
  4255. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4256. printf "%s\n" "no" >&6; }
  4257. fi
  4258. fi
  4259. if test -z "$ac_cv_prog_CC"; then
  4260. ac_ct_CC=$CC
  4261. # Extract the first word of "gcc", so it can be a program name with args.
  4262. set dummy gcc; ac_word=$2
  4263. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4264. printf %s "checking for $ac_word... " >&6; }
  4265. if test ${ac_cv_prog_ac_ct_CC+y}
  4266. then :
  4267. printf %s "(cached) " >&6
  4268. else $as_nop
  4269. if test -n "$ac_ct_CC"; then
  4270. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4271. else
  4272. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4273. for as_dir in $PATH
  4274. do
  4275. IFS=$as_save_IFS
  4276. case $as_dir in #(((
  4277. '') as_dir=./ ;;
  4278. */) ;;
  4279. *) as_dir=$as_dir/ ;;
  4280. esac
  4281. for ac_exec_ext in '' $ac_executable_extensions; do
  4282. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4283. ac_cv_prog_ac_ct_CC="gcc"
  4284. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4285. break 2
  4286. fi
  4287. done
  4288. done
  4289. IFS=$as_save_IFS
  4290. fi
  4291. fi
  4292. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4293. if test -n "$ac_ct_CC"; then
  4294. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4295. printf "%s\n" "$ac_ct_CC" >&6; }
  4296. else
  4297. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4298. printf "%s\n" "no" >&6; }
  4299. fi
  4300. if test "x$ac_ct_CC" = x; then
  4301. CC=""
  4302. else
  4303. case $cross_compiling:$ac_tool_warned in
  4304. yes:)
  4305. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4306. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4307. ac_tool_warned=yes ;;
  4308. esac
  4309. CC=$ac_ct_CC
  4310. fi
  4311. else
  4312. CC="$ac_cv_prog_CC"
  4313. fi
  4314. if test -z "$CC"; then
  4315. if test -n "$ac_tool_prefix"; then
  4316. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  4317. set dummy ${ac_tool_prefix}cc; ac_word=$2
  4318. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4319. printf %s "checking for $ac_word... " >&6; }
  4320. if test ${ac_cv_prog_CC+y}
  4321. then :
  4322. printf %s "(cached) " >&6
  4323. else $as_nop
  4324. if test -n "$CC"; then
  4325. ac_cv_prog_CC="$CC" # Let the user override the test.
  4326. else
  4327. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4328. for as_dir in $PATH
  4329. do
  4330. IFS=$as_save_IFS
  4331. case $as_dir in #(((
  4332. '') as_dir=./ ;;
  4333. */) ;;
  4334. *) as_dir=$as_dir/ ;;
  4335. esac
  4336. for ac_exec_ext in '' $ac_executable_extensions; do
  4337. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4338. ac_cv_prog_CC="${ac_tool_prefix}cc"
  4339. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4340. break 2
  4341. fi
  4342. done
  4343. done
  4344. IFS=$as_save_IFS
  4345. fi
  4346. fi
  4347. CC=$ac_cv_prog_CC
  4348. if test -n "$CC"; then
  4349. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4350. printf "%s\n" "$CC" >&6; }
  4351. else
  4352. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4353. printf "%s\n" "no" >&6; }
  4354. fi
  4355. fi
  4356. fi
  4357. if test -z "$CC"; then
  4358. # Extract the first word of "cc", so it can be a program name with args.
  4359. set dummy cc; ac_word=$2
  4360. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4361. printf %s "checking for $ac_word... " >&6; }
  4362. if test ${ac_cv_prog_CC+y}
  4363. then :
  4364. printf %s "(cached) " >&6
  4365. else $as_nop
  4366. if test -n "$CC"; then
  4367. ac_cv_prog_CC="$CC" # Let the user override the test.
  4368. else
  4369. ac_prog_rejected=no
  4370. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4371. for as_dir in $PATH
  4372. do
  4373. IFS=$as_save_IFS
  4374. case $as_dir in #(((
  4375. '') as_dir=./ ;;
  4376. */) ;;
  4377. *) as_dir=$as_dir/ ;;
  4378. esac
  4379. for ac_exec_ext in '' $ac_executable_extensions; do
  4380. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4381. if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  4382. ac_prog_rejected=yes
  4383. continue
  4384. fi
  4385. ac_cv_prog_CC="cc"
  4386. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4387. break 2
  4388. fi
  4389. done
  4390. done
  4391. IFS=$as_save_IFS
  4392. if test $ac_prog_rejected = yes; then
  4393. # We found a bogon in the path, so make sure we never use it.
  4394. set dummy $ac_cv_prog_CC
  4395. shift
  4396. if test $# != 0; then
  4397. # We chose a different compiler from the bogus one.
  4398. # However, it has the same basename, so the bogon will be chosen
  4399. # first if we set CC to just the basename; use the full file name.
  4400. shift
  4401. ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
  4402. fi
  4403. fi
  4404. fi
  4405. fi
  4406. CC=$ac_cv_prog_CC
  4407. if test -n "$CC"; then
  4408. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4409. printf "%s\n" "$CC" >&6; }
  4410. else
  4411. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4412. printf "%s\n" "no" >&6; }
  4413. fi
  4414. fi
  4415. if test -z "$CC"; then
  4416. if test -n "$ac_tool_prefix"; then
  4417. for ac_prog in cl.exe
  4418. do
  4419. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4420. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4421. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4422. printf %s "checking for $ac_word... " >&6; }
  4423. if test ${ac_cv_prog_CC+y}
  4424. then :
  4425. printf %s "(cached) " >&6
  4426. else $as_nop
  4427. if test -n "$CC"; then
  4428. ac_cv_prog_CC="$CC" # Let the user override the test.
  4429. else
  4430. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4431. for as_dir in $PATH
  4432. do
  4433. IFS=$as_save_IFS
  4434. case $as_dir in #(((
  4435. '') as_dir=./ ;;
  4436. */) ;;
  4437. *) as_dir=$as_dir/ ;;
  4438. esac
  4439. for ac_exec_ext in '' $ac_executable_extensions; do
  4440. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4441. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  4442. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4443. break 2
  4444. fi
  4445. done
  4446. done
  4447. IFS=$as_save_IFS
  4448. fi
  4449. fi
  4450. CC=$ac_cv_prog_CC
  4451. if test -n "$CC"; then
  4452. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4453. printf "%s\n" "$CC" >&6; }
  4454. else
  4455. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4456. printf "%s\n" "no" >&6; }
  4457. fi
  4458. test -n "$CC" && break
  4459. done
  4460. fi
  4461. if test -z "$CC"; then
  4462. ac_ct_CC=$CC
  4463. for ac_prog in cl.exe
  4464. do
  4465. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4466. set dummy $ac_prog; ac_word=$2
  4467. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4468. printf %s "checking for $ac_word... " >&6; }
  4469. if test ${ac_cv_prog_ac_ct_CC+y}
  4470. then :
  4471. printf %s "(cached) " >&6
  4472. else $as_nop
  4473. if test -n "$ac_ct_CC"; then
  4474. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4475. else
  4476. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4477. for as_dir in $PATH
  4478. do
  4479. IFS=$as_save_IFS
  4480. case $as_dir in #(((
  4481. '') as_dir=./ ;;
  4482. */) ;;
  4483. *) as_dir=$as_dir/ ;;
  4484. esac
  4485. for ac_exec_ext in '' $ac_executable_extensions; do
  4486. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4487. ac_cv_prog_ac_ct_CC="$ac_prog"
  4488. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4489. break 2
  4490. fi
  4491. done
  4492. done
  4493. IFS=$as_save_IFS
  4494. fi
  4495. fi
  4496. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4497. if test -n "$ac_ct_CC"; then
  4498. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4499. printf "%s\n" "$ac_ct_CC" >&6; }
  4500. else
  4501. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4502. printf "%s\n" "no" >&6; }
  4503. fi
  4504. test -n "$ac_ct_CC" && break
  4505. done
  4506. if test "x$ac_ct_CC" = x; then
  4507. CC=""
  4508. else
  4509. case $cross_compiling:$ac_tool_warned in
  4510. yes:)
  4511. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4512. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4513. ac_tool_warned=yes ;;
  4514. esac
  4515. CC=$ac_ct_CC
  4516. fi
  4517. fi
  4518. fi
  4519. if test -z "$CC"; then
  4520. if test -n "$ac_tool_prefix"; then
  4521. # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
  4522. set dummy ${ac_tool_prefix}clang; ac_word=$2
  4523. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4524. printf %s "checking for $ac_word... " >&6; }
  4525. if test ${ac_cv_prog_CC+y}
  4526. then :
  4527. printf %s "(cached) " >&6
  4528. else $as_nop
  4529. if test -n "$CC"; then
  4530. ac_cv_prog_CC="$CC" # Let the user override the test.
  4531. else
  4532. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4533. for as_dir in $PATH
  4534. do
  4535. IFS=$as_save_IFS
  4536. case $as_dir in #(((
  4537. '') as_dir=./ ;;
  4538. */) ;;
  4539. *) as_dir=$as_dir/ ;;
  4540. esac
  4541. for ac_exec_ext in '' $ac_executable_extensions; do
  4542. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4543. ac_cv_prog_CC="${ac_tool_prefix}clang"
  4544. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4545. break 2
  4546. fi
  4547. done
  4548. done
  4549. IFS=$as_save_IFS
  4550. fi
  4551. fi
  4552. CC=$ac_cv_prog_CC
  4553. if test -n "$CC"; then
  4554. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4555. printf "%s\n" "$CC" >&6; }
  4556. else
  4557. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4558. printf "%s\n" "no" >&6; }
  4559. fi
  4560. fi
  4561. if test -z "$ac_cv_prog_CC"; then
  4562. ac_ct_CC=$CC
  4563. # Extract the first word of "clang", so it can be a program name with args.
  4564. set dummy clang; ac_word=$2
  4565. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4566. printf %s "checking for $ac_word... " >&6; }
  4567. if test ${ac_cv_prog_ac_ct_CC+y}
  4568. then :
  4569. printf %s "(cached) " >&6
  4570. else $as_nop
  4571. if test -n "$ac_ct_CC"; then
  4572. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4573. else
  4574. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4575. for as_dir in $PATH
  4576. do
  4577. IFS=$as_save_IFS
  4578. case $as_dir in #(((
  4579. '') as_dir=./ ;;
  4580. */) ;;
  4581. *) as_dir=$as_dir/ ;;
  4582. esac
  4583. for ac_exec_ext in '' $ac_executable_extensions; do
  4584. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4585. ac_cv_prog_ac_ct_CC="clang"
  4586. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4587. break 2
  4588. fi
  4589. done
  4590. done
  4591. IFS=$as_save_IFS
  4592. fi
  4593. fi
  4594. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4595. if test -n "$ac_ct_CC"; then
  4596. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4597. printf "%s\n" "$ac_ct_CC" >&6; }
  4598. else
  4599. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4600. printf "%s\n" "no" >&6; }
  4601. fi
  4602. if test "x$ac_ct_CC" = x; then
  4603. CC=""
  4604. else
  4605. case $cross_compiling:$ac_tool_warned in
  4606. yes:)
  4607. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4608. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4609. ac_tool_warned=yes ;;
  4610. esac
  4611. CC=$ac_ct_CC
  4612. fi
  4613. else
  4614. CC="$ac_cv_prog_CC"
  4615. fi
  4616. fi
  4617. test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4618. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  4619. as_fn_error $? "no acceptable C compiler found in \$PATH
  4620. See \`config.log' for more details" "$LINENO" 5; }
  4621. # Provide some information about the compiler.
  4622. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  4623. set X $ac_compile
  4624. ac_compiler=$2
  4625. for ac_option in --version -v -V -qversion -version; do
  4626. { { ac_try="$ac_compiler $ac_option >&5"
  4627. case "(($ac_try" in
  4628. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4629. *) ac_try_echo=$ac_try;;
  4630. esac
  4631. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4632. printf "%s\n" "$ac_try_echo"; } >&5
  4633. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4634. ac_status=$?
  4635. if test -s conftest.err; then
  4636. sed '10a\
  4637. ... rest of stderr output deleted ...
  4638. 10q' conftest.err >conftest.er1
  4639. cat conftest.er1 >&5
  4640. fi
  4641. rm -f conftest.er1 conftest.err
  4642. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4643. test $ac_status = 0; }
  4644. done
  4645. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4646. /* end confdefs.h. */
  4647. int
  4648. main (void)
  4649. {
  4650. ;
  4651. return 0;
  4652. }
  4653. _ACEOF
  4654. ac_clean_files_save=$ac_clean_files
  4655. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  4656. # Try to create an executable without -o first, disregard a.out.
  4657. # It will help us diagnose broken compilers, and finding out an intuition
  4658. # of exeext.
  4659. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  4660. printf %s "checking whether the C compiler works... " >&6; }
  4661. ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  4662. # The possible output files:
  4663. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  4664. ac_rmfiles=
  4665. for ac_file in $ac_files
  4666. do
  4667. case $ac_file in
  4668. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  4669. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  4670. esac
  4671. done
  4672. rm -f $ac_rmfiles
  4673. if { { ac_try="$ac_link_default"
  4674. case "(($ac_try" in
  4675. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4676. *) ac_try_echo=$ac_try;;
  4677. esac
  4678. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4679. printf "%s\n" "$ac_try_echo"; } >&5
  4680. (eval "$ac_link_default") 2>&5
  4681. ac_status=$?
  4682. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4683. test $ac_status = 0; }
  4684. then :
  4685. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  4686. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  4687. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  4688. # so that the user can short-circuit this test for compilers unknown to
  4689. # Autoconf.
  4690. for ac_file in $ac_files ''
  4691. do
  4692. test -f "$ac_file" || continue
  4693. case $ac_file in
  4694. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  4695. ;;
  4696. [ab].out )
  4697. # We found the default executable, but exeext='' is most
  4698. # certainly right.
  4699. break;;
  4700. *.* )
  4701. if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
  4702. then :; else
  4703. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  4704. fi
  4705. # We set ac_cv_exeext here because the later test for it is not
  4706. # safe: cross compilers may not add the suffix if given an `-o'
  4707. # argument, so we may need to know it at that point already.
  4708. # Even if this section looks crufty: it has the advantage of
  4709. # actually working.
  4710. break;;
  4711. * )
  4712. break;;
  4713. esac
  4714. done
  4715. test "$ac_cv_exeext" = no && ac_cv_exeext=
  4716. else $as_nop
  4717. ac_file=''
  4718. fi
  4719. if test -z "$ac_file"
  4720. then :
  4721. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4722. printf "%s\n" "no" >&6; }
  4723. printf "%s\n" "$as_me: failed program was:" >&5
  4724. sed 's/^/| /' conftest.$ac_ext >&5
  4725. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4726. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  4727. as_fn_error 77 "C compiler cannot create executables
  4728. See \`config.log' for more details" "$LINENO" 5; }
  4729. else $as_nop
  4730. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4731. printf "%s\n" "yes" >&6; }
  4732. fi
  4733. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  4734. printf %s "checking for C compiler default output file name... " >&6; }
  4735. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  4736. printf "%s\n" "$ac_file" >&6; }
  4737. ac_exeext=$ac_cv_exeext
  4738. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  4739. ac_clean_files=$ac_clean_files_save
  4740. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  4741. printf %s "checking for suffix of executables... " >&6; }
  4742. if { { ac_try="$ac_link"
  4743. case "(($ac_try" in
  4744. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4745. *) ac_try_echo=$ac_try;;
  4746. esac
  4747. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4748. printf "%s\n" "$ac_try_echo"; } >&5
  4749. (eval "$ac_link") 2>&5
  4750. ac_status=$?
  4751. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4752. test $ac_status = 0; }
  4753. then :
  4754. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  4755. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  4756. # work properly (i.e., refer to `conftest.exe'), while it won't with
  4757. # `rm'.
  4758. for ac_file in conftest.exe conftest conftest.*; do
  4759. test -f "$ac_file" || continue
  4760. case $ac_file in
  4761. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  4762. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  4763. break;;
  4764. * ) break;;
  4765. esac
  4766. done
  4767. else $as_nop
  4768. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4769. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  4770. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  4771. See \`config.log' for more details" "$LINENO" 5; }
  4772. fi
  4773. rm -f conftest conftest$ac_cv_exeext
  4774. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  4775. printf "%s\n" "$ac_cv_exeext" >&6; }
  4776. rm -f conftest.$ac_ext
  4777. EXEEXT=$ac_cv_exeext
  4778. ac_exeext=$EXEEXT
  4779. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4780. /* end confdefs.h. */
  4781. #include <stdio.h>
  4782. int
  4783. main (void)
  4784. {
  4785. FILE *f = fopen ("conftest.out", "w");
  4786. return ferror (f) || fclose (f) != 0;
  4787. ;
  4788. return 0;
  4789. }
  4790. _ACEOF
  4791. ac_clean_files="$ac_clean_files conftest.out"
  4792. # Check that the compiler produces executables we can run. If not, either
  4793. # the compiler is broken, or we cross compile.
  4794. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  4795. printf %s "checking whether we are cross compiling... " >&6; }
  4796. if test "$cross_compiling" != yes; then
  4797. { { ac_try="$ac_link"
  4798. case "(($ac_try" in
  4799. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4800. *) ac_try_echo=$ac_try;;
  4801. esac
  4802. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4803. printf "%s\n" "$ac_try_echo"; } >&5
  4804. (eval "$ac_link") 2>&5
  4805. ac_status=$?
  4806. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4807. test $ac_status = 0; }
  4808. if { ac_try='./conftest$ac_cv_exeext'
  4809. { { case "(($ac_try" in
  4810. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4811. *) ac_try_echo=$ac_try;;
  4812. esac
  4813. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4814. printf "%s\n" "$ac_try_echo"; } >&5
  4815. (eval "$ac_try") 2>&5
  4816. ac_status=$?
  4817. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4818. test $ac_status = 0; }; }; then
  4819. cross_compiling=no
  4820. else
  4821. if test "$cross_compiling" = maybe; then
  4822. cross_compiling=yes
  4823. else
  4824. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4825. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  4826. as_fn_error 77 "cannot run C compiled programs.
  4827. If you meant to cross compile, use \`--host'.
  4828. See \`config.log' for more details" "$LINENO" 5; }
  4829. fi
  4830. fi
  4831. fi
  4832. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  4833. printf "%s\n" "$cross_compiling" >&6; }
  4834. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  4835. ac_clean_files=$ac_clean_files_save
  4836. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  4837. printf %s "checking for suffix of object files... " >&6; }
  4838. if test ${ac_cv_objext+y}
  4839. then :
  4840. printf %s "(cached) " >&6
  4841. else $as_nop
  4842. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4843. /* end confdefs.h. */
  4844. int
  4845. main (void)
  4846. {
  4847. ;
  4848. return 0;
  4849. }
  4850. _ACEOF
  4851. rm -f conftest.o conftest.obj
  4852. if { { ac_try="$ac_compile"
  4853. case "(($ac_try" in
  4854. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4855. *) ac_try_echo=$ac_try;;
  4856. esac
  4857. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4858. printf "%s\n" "$ac_try_echo"; } >&5
  4859. (eval "$ac_compile") 2>&5
  4860. ac_status=$?
  4861. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4862. test $ac_status = 0; }
  4863. then :
  4864. for ac_file in conftest.o conftest.obj conftest.*; do
  4865. test -f "$ac_file" || continue;
  4866. case $ac_file in
  4867. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  4868. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  4869. break;;
  4870. esac
  4871. done
  4872. else $as_nop
  4873. printf "%s\n" "$as_me: failed program was:" >&5
  4874. sed 's/^/| /' conftest.$ac_ext >&5
  4875. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4876. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  4877. as_fn_error $? "cannot compute suffix of object files: cannot compile
  4878. See \`config.log' for more details" "$LINENO" 5; }
  4879. fi
  4880. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  4881. fi
  4882. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  4883. printf "%s\n" "$ac_cv_objext" >&6; }
  4884. OBJEXT=$ac_cv_objext
  4885. ac_objext=$OBJEXT
  4886. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
  4887. printf %s "checking whether the compiler supports GNU C... " >&6; }
  4888. if test ${ac_cv_c_compiler_gnu+y}
  4889. then :
  4890. printf %s "(cached) " >&6
  4891. else $as_nop
  4892. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4893. /* end confdefs.h. */
  4894. int
  4895. main (void)
  4896. {
  4897. #ifndef __GNUC__
  4898. choke me
  4899. #endif
  4900. ;
  4901. return 0;
  4902. }
  4903. _ACEOF
  4904. if ac_fn_c_try_compile "$LINENO"
  4905. then :
  4906. ac_compiler_gnu=yes
  4907. else $as_nop
  4908. ac_compiler_gnu=no
  4909. fi
  4910. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4911. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4912. fi
  4913. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4914. printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
  4915. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4916. if test $ac_compiler_gnu = yes; then
  4917. GCC=yes
  4918. else
  4919. GCC=
  4920. fi
  4921. ac_test_CFLAGS=${CFLAGS+y}
  4922. ac_save_CFLAGS=$CFLAGS
  4923. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4924. printf %s "checking whether $CC accepts -g... " >&6; }
  4925. if test ${ac_cv_prog_cc_g+y}
  4926. then :
  4927. printf %s "(cached) " >&6
  4928. else $as_nop
  4929. ac_save_c_werror_flag=$ac_c_werror_flag
  4930. ac_c_werror_flag=yes
  4931. ac_cv_prog_cc_g=no
  4932. CFLAGS="-g"
  4933. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4934. /* end confdefs.h. */
  4935. int
  4936. main (void)
  4937. {
  4938. ;
  4939. return 0;
  4940. }
  4941. _ACEOF
  4942. if ac_fn_c_try_compile "$LINENO"
  4943. then :
  4944. ac_cv_prog_cc_g=yes
  4945. else $as_nop
  4946. CFLAGS=""
  4947. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4948. /* end confdefs.h. */
  4949. int
  4950. main (void)
  4951. {
  4952. ;
  4953. return 0;
  4954. }
  4955. _ACEOF
  4956. if ac_fn_c_try_compile "$LINENO"
  4957. then :
  4958. else $as_nop
  4959. ac_c_werror_flag=$ac_save_c_werror_flag
  4960. CFLAGS="-g"
  4961. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4962. /* end confdefs.h. */
  4963. int
  4964. main (void)
  4965. {
  4966. ;
  4967. return 0;
  4968. }
  4969. _ACEOF
  4970. if ac_fn_c_try_compile "$LINENO"
  4971. then :
  4972. ac_cv_prog_cc_g=yes
  4973. fi
  4974. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4975. fi
  4976. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4977. fi
  4978. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4979. ac_c_werror_flag=$ac_save_c_werror_flag
  4980. fi
  4981. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4982. printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
  4983. if test $ac_test_CFLAGS; then
  4984. CFLAGS=$ac_save_CFLAGS
  4985. elif test $ac_cv_prog_cc_g = yes; then
  4986. if test "$GCC" = yes; then
  4987. CFLAGS="-g -O2"
  4988. else
  4989. CFLAGS="-g"
  4990. fi
  4991. else
  4992. if test "$GCC" = yes; then
  4993. CFLAGS="-O2"
  4994. else
  4995. CFLAGS=
  4996. fi
  4997. fi
  4998. ac_prog_cc_stdc=no
  4999. if test x$ac_prog_cc_stdc = xno
  5000. then :
  5001. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
  5002. printf %s "checking for $CC option to enable C11 features... " >&6; }
  5003. if test ${ac_cv_prog_cc_c11+y}
  5004. then :
  5005. printf %s "(cached) " >&6
  5006. else $as_nop
  5007. ac_cv_prog_cc_c11=no
  5008. ac_save_CC=$CC
  5009. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5010. /* end confdefs.h. */
  5011. $ac_c_conftest_c11_program
  5012. _ACEOF
  5013. for ac_arg in '' -std=gnu11
  5014. do
  5015. CC="$ac_save_CC $ac_arg"
  5016. if ac_fn_c_try_compile "$LINENO"
  5017. then :
  5018. ac_cv_prog_cc_c11=$ac_arg
  5019. fi
  5020. rm -f core conftest.err conftest.$ac_objext conftest.beam
  5021. test "x$ac_cv_prog_cc_c11" != "xno" && break
  5022. done
  5023. rm -f conftest.$ac_ext
  5024. CC=$ac_save_CC
  5025. fi
  5026. if test "x$ac_cv_prog_cc_c11" = xno
  5027. then :
  5028. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  5029. printf "%s\n" "unsupported" >&6; }
  5030. else $as_nop
  5031. if test "x$ac_cv_prog_cc_c11" = x
  5032. then :
  5033. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  5034. printf "%s\n" "none needed" >&6; }
  5035. else $as_nop
  5036. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
  5037. printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
  5038. CC="$CC $ac_cv_prog_cc_c11"
  5039. fi
  5040. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  5041. ac_prog_cc_stdc=c11
  5042. fi
  5043. fi
  5044. if test x$ac_prog_cc_stdc = xno
  5045. then :
  5046. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
  5047. printf %s "checking for $CC option to enable C99 features... " >&6; }
  5048. if test ${ac_cv_prog_cc_c99+y}
  5049. then :
  5050. printf %s "(cached) " >&6
  5051. else $as_nop
  5052. ac_cv_prog_cc_c99=no
  5053. ac_save_CC=$CC
  5054. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5055. /* end confdefs.h. */
  5056. $ac_c_conftest_c99_program
  5057. _ACEOF
  5058. for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
  5059. do
  5060. CC="$ac_save_CC $ac_arg"
  5061. if ac_fn_c_try_compile "$LINENO"
  5062. then :
  5063. ac_cv_prog_cc_c99=$ac_arg
  5064. fi
  5065. rm -f core conftest.err conftest.$ac_objext conftest.beam
  5066. test "x$ac_cv_prog_cc_c99" != "xno" && break
  5067. done
  5068. rm -f conftest.$ac_ext
  5069. CC=$ac_save_CC
  5070. fi
  5071. if test "x$ac_cv_prog_cc_c99" = xno
  5072. then :
  5073. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  5074. printf "%s\n" "unsupported" >&6; }
  5075. else $as_nop
  5076. if test "x$ac_cv_prog_cc_c99" = x
  5077. then :
  5078. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  5079. printf "%s\n" "none needed" >&6; }
  5080. else $as_nop
  5081. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  5082. printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
  5083. CC="$CC $ac_cv_prog_cc_c99"
  5084. fi
  5085. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  5086. ac_prog_cc_stdc=c99
  5087. fi
  5088. fi
  5089. if test x$ac_prog_cc_stdc = xno
  5090. then :
  5091. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
  5092. printf %s "checking for $CC option to enable C89 features... " >&6; }
  5093. if test ${ac_cv_prog_cc_c89+y}
  5094. then :
  5095. printf %s "(cached) " >&6
  5096. else $as_nop
  5097. ac_cv_prog_cc_c89=no
  5098. ac_save_CC=$CC
  5099. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5100. /* end confdefs.h. */
  5101. $ac_c_conftest_c89_program
  5102. _ACEOF
  5103. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  5104. do
  5105. CC="$ac_save_CC $ac_arg"
  5106. if ac_fn_c_try_compile "$LINENO"
  5107. then :
  5108. ac_cv_prog_cc_c89=$ac_arg
  5109. fi
  5110. rm -f core conftest.err conftest.$ac_objext conftest.beam
  5111. test "x$ac_cv_prog_cc_c89" != "xno" && break
  5112. done
  5113. rm -f conftest.$ac_ext
  5114. CC=$ac_save_CC
  5115. fi
  5116. if test "x$ac_cv_prog_cc_c89" = xno
  5117. then :
  5118. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  5119. printf "%s\n" "unsupported" >&6; }
  5120. else $as_nop
  5121. if test "x$ac_cv_prog_cc_c89" = x
  5122. then :
  5123. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  5124. printf "%s\n" "none needed" >&6; }
  5125. else $as_nop
  5126. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  5127. printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
  5128. CC="$CC $ac_cv_prog_cc_c89"
  5129. fi
  5130. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  5131. ac_prog_cc_stdc=c89
  5132. fi
  5133. fi
  5134. ac_ext=c
  5135. ac_cpp='$CPP $CPPFLAGS'
  5136. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5137. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5138. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5139. ac_ext=c
  5140. ac_cpp='$CPP $CPPFLAGS'
  5141. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5142. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5143. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5144. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  5145. printf %s "checking whether $CC understands -c and -o together... " >&6; }
  5146. if test ${am_cv_prog_cc_c_o+y}
  5147. then :
  5148. printf %s "(cached) " >&6
  5149. else $as_nop
  5150. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5151. /* end confdefs.h. */
  5152. int
  5153. main (void)
  5154. {
  5155. ;
  5156. return 0;
  5157. }
  5158. _ACEOF
  5159. # Make sure it works both with $CC and with simple cc.
  5160. # Following AC_PROG_CC_C_O, we do the test twice because some
  5161. # compilers refuse to overwrite an existing .o file with -o,
  5162. # though they will create one.
  5163. am_cv_prog_cc_c_o=yes
  5164. for am_i in 1 2; do
  5165. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  5166. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  5167. ac_status=$?
  5168. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5169. (exit $ac_status); } \
  5170. && test -f conftest2.$ac_objext; then
  5171. : OK
  5172. else
  5173. am_cv_prog_cc_c_o=no
  5174. break
  5175. fi
  5176. done
  5177. rm -f core conftest*
  5178. unset am_i
  5179. fi
  5180. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  5181. printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
  5182. if test "$am_cv_prog_cc_c_o" != yes; then
  5183. # Losing compiler, so override with the script.
  5184. # FIXME: It is wrong to rewrite CC.
  5185. # But if we don't then we get into trouble of one sort or another.
  5186. # A longer-term fix would be to have automake use am__CC in this case,
  5187. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  5188. CC="$am_aux_dir/compile $CC"
  5189. fi
  5190. ac_ext=c
  5191. ac_cpp='$CPP $CPPFLAGS'
  5192. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5193. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5194. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5195. ac_ext=c
  5196. ac_cpp='$CPP $CPPFLAGS'
  5197. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5198. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5199. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5200. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  5201. printf %s "checking how to run the C preprocessor... " >&6; }
  5202. # On Suns, sometimes $CPP names a directory.
  5203. if test -n "$CPP" && test -d "$CPP"; then
  5204. CPP=
  5205. fi
  5206. if test -z "$CPP"; then
  5207. if test ${ac_cv_prog_CPP+y}
  5208. then :
  5209. printf %s "(cached) " >&6
  5210. else $as_nop
  5211. # Double quotes because $CC needs to be expanded
  5212. for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
  5213. do
  5214. ac_preproc_ok=false
  5215. for ac_c_preproc_warn_flag in '' yes
  5216. do
  5217. # Use a header file that comes with gcc, so configuring glibc
  5218. # with a fresh cross-compiler works.
  5219. # On the NeXT, cc -E runs the code through the compiler's parser,
  5220. # not just through cpp. "Syntax error" is here to catch this case.
  5221. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5222. /* end confdefs.h. */
  5223. #include <limits.h>
  5224. Syntax error
  5225. _ACEOF
  5226. if ac_fn_c_try_cpp "$LINENO"
  5227. then :
  5228. else $as_nop
  5229. # Broken: fails on valid input.
  5230. continue
  5231. fi
  5232. rm -f conftest.err conftest.i conftest.$ac_ext
  5233. # OK, works on sane cases. Now check whether nonexistent headers
  5234. # can be detected and how.
  5235. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5236. /* end confdefs.h. */
  5237. #include <ac_nonexistent.h>
  5238. _ACEOF
  5239. if ac_fn_c_try_cpp "$LINENO"
  5240. then :
  5241. # Broken: success on invalid input.
  5242. continue
  5243. else $as_nop
  5244. # Passes both tests.
  5245. ac_preproc_ok=:
  5246. break
  5247. fi
  5248. rm -f conftest.err conftest.i conftest.$ac_ext
  5249. done
  5250. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5251. rm -f conftest.i conftest.err conftest.$ac_ext
  5252. if $ac_preproc_ok
  5253. then :
  5254. break
  5255. fi
  5256. done
  5257. ac_cv_prog_CPP=$CPP
  5258. fi
  5259. CPP=$ac_cv_prog_CPP
  5260. else
  5261. ac_cv_prog_CPP=$CPP
  5262. fi
  5263. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  5264. printf "%s\n" "$CPP" >&6; }
  5265. ac_preproc_ok=false
  5266. for ac_c_preproc_warn_flag in '' yes
  5267. do
  5268. # Use a header file that comes with gcc, so configuring glibc
  5269. # with a fresh cross-compiler works.
  5270. # On the NeXT, cc -E runs the code through the compiler's parser,
  5271. # not just through cpp. "Syntax error" is here to catch this case.
  5272. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5273. /* end confdefs.h. */
  5274. #include <limits.h>
  5275. Syntax error
  5276. _ACEOF
  5277. if ac_fn_c_try_cpp "$LINENO"
  5278. then :
  5279. else $as_nop
  5280. # Broken: fails on valid input.
  5281. continue
  5282. fi
  5283. rm -f conftest.err conftest.i conftest.$ac_ext
  5284. # OK, works on sane cases. Now check whether nonexistent headers
  5285. # can be detected and how.
  5286. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5287. /* end confdefs.h. */
  5288. #include <ac_nonexistent.h>
  5289. _ACEOF
  5290. if ac_fn_c_try_cpp "$LINENO"
  5291. then :
  5292. # Broken: success on invalid input.
  5293. continue
  5294. else $as_nop
  5295. # Passes both tests.
  5296. ac_preproc_ok=:
  5297. break
  5298. fi
  5299. rm -f conftest.err conftest.i conftest.$ac_ext
  5300. done
  5301. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5302. rm -f conftest.i conftest.err conftest.$ac_ext
  5303. if $ac_preproc_ok
  5304. then :
  5305. else $as_nop
  5306. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5307. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  5308. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  5309. See \`config.log' for more details" "$LINENO" 5; }
  5310. fi
  5311. ac_ext=c
  5312. ac_cpp='$CPP $CPPFLAGS'
  5313. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5314. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5315. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5316. IFS=$xc_prog_cc_prev_IFS
  5317. LIBS=$xc_prog_cc_prev_LIBS
  5318. CFLAGS=$xc_prog_cc_prev_CFLAGS
  5319. LDFLAGS=$xc_prog_cc_prev_LDFLAGS
  5320. CPPFLAGS=$xc_prog_cc_prev_CPPFLAGS
  5321. ac_ext=cpp
  5322. ac_cpp='$CXXCPP $CPPFLAGS'
  5323. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5324. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5325. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5326. if test -z "$CXX"; then
  5327. if test -n "$CCC"; then
  5328. CXX=$CCC
  5329. else
  5330. if test -n "$ac_tool_prefix"; then
  5331. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
  5332. do
  5333. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5334. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5335. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5336. printf %s "checking for $ac_word... " >&6; }
  5337. if test ${ac_cv_prog_CXX+y}
  5338. then :
  5339. printf %s "(cached) " >&6
  5340. else $as_nop
  5341. if test -n "$CXX"; then
  5342. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  5343. else
  5344. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5345. for as_dir in $PATH
  5346. do
  5347. IFS=$as_save_IFS
  5348. case $as_dir in #(((
  5349. '') as_dir=./ ;;
  5350. */) ;;
  5351. *) as_dir=$as_dir/ ;;
  5352. esac
  5353. for ac_exec_ext in '' $ac_executable_extensions; do
  5354. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5355. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  5356. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5357. break 2
  5358. fi
  5359. done
  5360. done
  5361. IFS=$as_save_IFS
  5362. fi
  5363. fi
  5364. CXX=$ac_cv_prog_CXX
  5365. if test -n "$CXX"; then
  5366. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  5367. printf "%s\n" "$CXX" >&6; }
  5368. else
  5369. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5370. printf "%s\n" "no" >&6; }
  5371. fi
  5372. test -n "$CXX" && break
  5373. done
  5374. fi
  5375. if test -z "$CXX"; then
  5376. ac_ct_CXX=$CXX
  5377. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
  5378. do
  5379. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5380. set dummy $ac_prog; ac_word=$2
  5381. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5382. printf %s "checking for $ac_word... " >&6; }
  5383. if test ${ac_cv_prog_ac_ct_CXX+y}
  5384. then :
  5385. printf %s "(cached) " >&6
  5386. else $as_nop
  5387. if test -n "$ac_ct_CXX"; then
  5388. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  5389. else
  5390. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5391. for as_dir in $PATH
  5392. do
  5393. IFS=$as_save_IFS
  5394. case $as_dir in #(((
  5395. '') as_dir=./ ;;
  5396. */) ;;
  5397. *) as_dir=$as_dir/ ;;
  5398. esac
  5399. for ac_exec_ext in '' $ac_executable_extensions; do
  5400. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5401. ac_cv_prog_ac_ct_CXX="$ac_prog"
  5402. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5403. break 2
  5404. fi
  5405. done
  5406. done
  5407. IFS=$as_save_IFS
  5408. fi
  5409. fi
  5410. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  5411. if test -n "$ac_ct_CXX"; then
  5412. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  5413. printf "%s\n" "$ac_ct_CXX" >&6; }
  5414. else
  5415. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5416. printf "%s\n" "no" >&6; }
  5417. fi
  5418. test -n "$ac_ct_CXX" && break
  5419. done
  5420. if test "x$ac_ct_CXX" = x; then
  5421. CXX="g++"
  5422. else
  5423. case $cross_compiling:$ac_tool_warned in
  5424. yes:)
  5425. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5426. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5427. ac_tool_warned=yes ;;
  5428. esac
  5429. CXX=$ac_ct_CXX
  5430. fi
  5431. fi
  5432. fi
  5433. fi
  5434. # Provide some information about the compiler.
  5435. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  5436. set X $ac_compile
  5437. ac_compiler=$2
  5438. for ac_option in --version -v -V -qversion; do
  5439. { { ac_try="$ac_compiler $ac_option >&5"
  5440. case "(($ac_try" in
  5441. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5442. *) ac_try_echo=$ac_try;;
  5443. esac
  5444. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  5445. printf "%s\n" "$ac_try_echo"; } >&5
  5446. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  5447. ac_status=$?
  5448. if test -s conftest.err; then
  5449. sed '10a\
  5450. ... rest of stderr output deleted ...
  5451. 10q' conftest.err >conftest.er1
  5452. cat conftest.er1 >&5
  5453. fi
  5454. rm -f conftest.er1 conftest.err
  5455. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5456. test $ac_status = 0; }
  5457. done
  5458. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
  5459. printf %s "checking whether the compiler supports GNU C++... " >&6; }
  5460. if test ${ac_cv_cxx_compiler_gnu+y}
  5461. then :
  5462. printf %s "(cached) " >&6
  5463. else $as_nop
  5464. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5465. /* end confdefs.h. */
  5466. int
  5467. main (void)
  5468. {
  5469. #ifndef __GNUC__
  5470. choke me
  5471. #endif
  5472. ;
  5473. return 0;
  5474. }
  5475. _ACEOF
  5476. if ac_fn_cxx_try_compile "$LINENO"
  5477. then :
  5478. ac_compiler_gnu=yes
  5479. else $as_nop
  5480. ac_compiler_gnu=no
  5481. fi
  5482. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  5483. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  5484. fi
  5485. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  5486. printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
  5487. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5488. if test $ac_compiler_gnu = yes; then
  5489. GXX=yes
  5490. else
  5491. GXX=
  5492. fi
  5493. ac_test_CXXFLAGS=${CXXFLAGS+y}
  5494. ac_save_CXXFLAGS=$CXXFLAGS
  5495. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  5496. printf %s "checking whether $CXX accepts -g... " >&6; }
  5497. if test ${ac_cv_prog_cxx_g+y}
  5498. then :
  5499. printf %s "(cached) " >&6
  5500. else $as_nop
  5501. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  5502. ac_cxx_werror_flag=yes
  5503. ac_cv_prog_cxx_g=no
  5504. CXXFLAGS="-g"
  5505. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5506. /* end confdefs.h. */
  5507. int
  5508. main (void)
  5509. {
  5510. ;
  5511. return 0;
  5512. }
  5513. _ACEOF
  5514. if ac_fn_cxx_try_compile "$LINENO"
  5515. then :
  5516. ac_cv_prog_cxx_g=yes
  5517. else $as_nop
  5518. CXXFLAGS=""
  5519. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5520. /* end confdefs.h. */
  5521. int
  5522. main (void)
  5523. {
  5524. ;
  5525. return 0;
  5526. }
  5527. _ACEOF
  5528. if ac_fn_cxx_try_compile "$LINENO"
  5529. then :
  5530. else $as_nop
  5531. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  5532. CXXFLAGS="-g"
  5533. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5534. /* end confdefs.h. */
  5535. int
  5536. main (void)
  5537. {
  5538. ;
  5539. return 0;
  5540. }
  5541. _ACEOF
  5542. if ac_fn_cxx_try_compile "$LINENO"
  5543. then :
  5544. ac_cv_prog_cxx_g=yes
  5545. fi
  5546. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  5547. fi
  5548. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  5549. fi
  5550. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  5551. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  5552. fi
  5553. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  5554. printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
  5555. if test $ac_test_CXXFLAGS; then
  5556. CXXFLAGS=$ac_save_CXXFLAGS
  5557. elif test $ac_cv_prog_cxx_g = yes; then
  5558. if test "$GXX" = yes; then
  5559. CXXFLAGS="-g -O2"
  5560. else
  5561. CXXFLAGS="-g"
  5562. fi
  5563. else
  5564. if test "$GXX" = yes; then
  5565. CXXFLAGS="-O2"
  5566. else
  5567. CXXFLAGS=
  5568. fi
  5569. fi
  5570. ac_prog_cxx_stdcxx=no
  5571. if test x$ac_prog_cxx_stdcxx = xno
  5572. then :
  5573. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
  5574. printf %s "checking for $CXX option to enable C++11 features... " >&6; }
  5575. if test ${ac_cv_prog_cxx_11+y}
  5576. then :
  5577. printf %s "(cached) " >&6
  5578. else $as_nop
  5579. ac_cv_prog_cxx_11=no
  5580. ac_save_CXX=$CXX
  5581. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5582. /* end confdefs.h. */
  5583. $ac_cxx_conftest_cxx11_program
  5584. _ACEOF
  5585. for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
  5586. do
  5587. CXX="$ac_save_CXX $ac_arg"
  5588. if ac_fn_cxx_try_compile "$LINENO"
  5589. then :
  5590. ac_cv_prog_cxx_cxx11=$ac_arg
  5591. fi
  5592. rm -f core conftest.err conftest.$ac_objext conftest.beam
  5593. test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
  5594. done
  5595. rm -f conftest.$ac_ext
  5596. CXX=$ac_save_CXX
  5597. fi
  5598. if test "x$ac_cv_prog_cxx_cxx11" = xno
  5599. then :
  5600. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  5601. printf "%s\n" "unsupported" >&6; }
  5602. else $as_nop
  5603. if test "x$ac_cv_prog_cxx_cxx11" = x
  5604. then :
  5605. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  5606. printf "%s\n" "none needed" >&6; }
  5607. else $as_nop
  5608. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
  5609. printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
  5610. CXX="$CXX $ac_cv_prog_cxx_cxx11"
  5611. fi
  5612. ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
  5613. ac_prog_cxx_stdcxx=cxx11
  5614. fi
  5615. fi
  5616. if test x$ac_prog_cxx_stdcxx = xno
  5617. then :
  5618. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
  5619. printf %s "checking for $CXX option to enable C++98 features... " >&6; }
  5620. if test ${ac_cv_prog_cxx_98+y}
  5621. then :
  5622. printf %s "(cached) " >&6
  5623. else $as_nop
  5624. ac_cv_prog_cxx_98=no
  5625. ac_save_CXX=$CXX
  5626. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5627. /* end confdefs.h. */
  5628. $ac_cxx_conftest_cxx98_program
  5629. _ACEOF
  5630. for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
  5631. do
  5632. CXX="$ac_save_CXX $ac_arg"
  5633. if ac_fn_cxx_try_compile "$LINENO"
  5634. then :
  5635. ac_cv_prog_cxx_cxx98=$ac_arg
  5636. fi
  5637. rm -f core conftest.err conftest.$ac_objext conftest.beam
  5638. test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
  5639. done
  5640. rm -f conftest.$ac_ext
  5641. CXX=$ac_save_CXX
  5642. fi
  5643. if test "x$ac_cv_prog_cxx_cxx98" = xno
  5644. then :
  5645. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  5646. printf "%s\n" "unsupported" >&6; }
  5647. else $as_nop
  5648. if test "x$ac_cv_prog_cxx_cxx98" = x
  5649. then :
  5650. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  5651. printf "%s\n" "none needed" >&6; }
  5652. else $as_nop
  5653. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
  5654. printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
  5655. CXX="$CXX $ac_cv_prog_cxx_cxx98"
  5656. fi
  5657. ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
  5658. ac_prog_cxx_stdcxx=cxx98
  5659. fi
  5660. fi
  5661. ac_ext=cpp
  5662. ac_cpp='$CXXCPP $CPPFLAGS'
  5663. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5664. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5665. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5666. ax_cxx_compile_cxx11_required=false
  5667. ac_ext=cpp
  5668. ac_cpp='$CXXCPP $CPPFLAGS'
  5669. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5670. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5671. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5672. ac_success=no
  5673. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
  5674. printf %s "checking whether $CXX supports C++11 features by default... " >&6; }
  5675. if test ${ax_cv_cxx_compile_cxx11+y}
  5676. then :
  5677. printf %s "(cached) " >&6
  5678. else $as_nop
  5679. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5680. /* end confdefs.h. */
  5681. template <typename T>
  5682. struct check
  5683. {
  5684. static_assert(sizeof(int) <= sizeof(T), "not big enough");
  5685. };
  5686. struct Base {
  5687. virtual void f() {}
  5688. };
  5689. struct Child : public Base {
  5690. virtual void f() override {}
  5691. };
  5692. typedef check<check<bool>> right_angle_brackets;
  5693. int a;
  5694. decltype(a) b;
  5695. typedef check<int> check_type;
  5696. check_type c;
  5697. check_type&& cr = static_cast<check_type&&>(c);
  5698. auto d = a;
  5699. auto l = [](){};
  5700. // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
  5701. // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function because of this
  5702. namespace test_template_alias_sfinae {
  5703. struct foo {};
  5704. template<typename T>
  5705. using member = typename T::member_type;
  5706. template<typename T>
  5707. void func(...) {}
  5708. template<typename T>
  5709. void func(member<T>*) {}
  5710. void test();
  5711. void test() {
  5712. func<foo>(0);
  5713. }
  5714. }
  5715. _ACEOF
  5716. if ac_fn_cxx_try_compile "$LINENO"
  5717. then :
  5718. ax_cv_cxx_compile_cxx11=yes
  5719. else $as_nop
  5720. ax_cv_cxx_compile_cxx11=no
  5721. fi
  5722. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  5723. fi
  5724. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
  5725. printf "%s\n" "$ax_cv_cxx_compile_cxx11" >&6; }
  5726. if test x$ax_cv_cxx_compile_cxx11 = xyes; then
  5727. ac_success=yes
  5728. fi
  5729. if test x$ac_success = xno; then
  5730. for switch in -std=c++11 -std=c++0x; do
  5731. cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
  5732. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
  5733. printf %s "checking whether $CXX supports C++11 features with $switch... " >&6; }
  5734. if eval test \${$cachevar+y}
  5735. then :
  5736. printf %s "(cached) " >&6
  5737. else $as_nop
  5738. ac_save_CXXFLAGS="$CXXFLAGS"
  5739. CXXFLAGS="$CXXFLAGS $switch"
  5740. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5741. /* end confdefs.h. */
  5742. template <typename T>
  5743. struct check
  5744. {
  5745. static_assert(sizeof(int) <= sizeof(T), "not big enough");
  5746. };
  5747. struct Base {
  5748. virtual void f() {}
  5749. };
  5750. struct Child : public Base {
  5751. virtual void f() override {}
  5752. };
  5753. typedef check<check<bool>> right_angle_brackets;
  5754. int a;
  5755. decltype(a) b;
  5756. typedef check<int> check_type;
  5757. check_type c;
  5758. check_type&& cr = static_cast<check_type&&>(c);
  5759. auto d = a;
  5760. auto l = [](){};
  5761. // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
  5762. // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function because of this
  5763. namespace test_template_alias_sfinae {
  5764. struct foo {};
  5765. template<typename T>
  5766. using member = typename T::member_type;
  5767. template<typename T>
  5768. void func(...) {}
  5769. template<typename T>
  5770. void func(member<T>*) {}
  5771. void test();
  5772. void test() {
  5773. func<foo>(0);
  5774. }
  5775. }
  5776. _ACEOF
  5777. if ac_fn_cxx_try_compile "$LINENO"
  5778. then :
  5779. eval $cachevar=yes
  5780. else $as_nop
  5781. eval $cachevar=no
  5782. fi
  5783. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  5784. CXXFLAGS="$ac_save_CXXFLAGS"
  5785. fi
  5786. eval ac_res=\$$cachevar
  5787. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  5788. printf "%s\n" "$ac_res" >&6; }
  5789. if eval test x\$$cachevar = xyes; then
  5790. CXXFLAGS="$CXXFLAGS $switch"
  5791. ac_success=yes
  5792. break
  5793. fi
  5794. done
  5795. fi
  5796. ac_ext=c
  5797. ac_cpp='$CPP $CPPFLAGS'
  5798. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5799. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5800. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5801. if test x$ax_cxx_compile_cxx11_required = xtrue; then
  5802. if test x$ac_success = xno; then
  5803. as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
  5804. fi
  5805. else
  5806. if test x$ac_success = xno; then
  5807. HAVE_CXX11=0
  5808. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
  5809. printf "%s\n" "$as_me: No compiler with C++11 support was found" >&6;}
  5810. else
  5811. HAVE_CXX11=1
  5812. printf "%s\n" "#define HAVE_CXX11 1" >>confdefs.h
  5813. fi
  5814. fi
  5815. am__api_version='1.16'
  5816. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  5817. printf %s "checking whether build environment is sane... " >&6; }
  5818. # Reject unsafe characters in $srcdir or the absolute working directory
  5819. # name. Accept space and tab only in the latter.
  5820. am_lf='
  5821. '
  5822. case `pwd` in
  5823. *[\\\"\#\$\&\'\`$am_lf]*)
  5824. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  5825. esac
  5826. case $srcdir in
  5827. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  5828. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  5829. esac
  5830. # Do 'set' in a subshell so we don't clobber the current shell's
  5831. # arguments. Must try -L first in case configure is actually a
  5832. # symlink; some systems play weird games with the mod time of symlinks
  5833. # (eg FreeBSD returns the mod time of the symlink's containing
  5834. # directory).
  5835. if (
  5836. am_has_slept=no
  5837. for am_try in 1 2; do
  5838. echo "timestamp, slept: $am_has_slept" > conftest.file
  5839. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  5840. if test "$*" = "X"; then
  5841. # -L didn't work.
  5842. set X `ls -t "$srcdir/configure" conftest.file`
  5843. fi
  5844. if test "$*" != "X $srcdir/configure conftest.file" \
  5845. && test "$*" != "X conftest.file $srcdir/configure"; then
  5846. # If neither matched, then we have a broken ls. This can happen
  5847. # if, for instance, CONFIG_SHELL is bash and it inherits a
  5848. # broken ls alias from the environment. This has actually
  5849. # happened. Such a system could not be considered "sane".
  5850. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  5851. alias in your environment" "$LINENO" 5
  5852. fi
  5853. if test "$2" = conftest.file || test $am_try -eq 2; then
  5854. break
  5855. fi
  5856. # Just in case.
  5857. sleep 1
  5858. am_has_slept=yes
  5859. done
  5860. test "$2" = conftest.file
  5861. )
  5862. then
  5863. # Ok.
  5864. :
  5865. else
  5866. as_fn_error $? "newly created file is older than distributed files!
  5867. Check your system clock" "$LINENO" 5
  5868. fi
  5869. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5870. printf "%s\n" "yes" >&6; }
  5871. # If we didn't sleep, we still need to ensure time stamps of config.status and
  5872. # generated files are strictly newer.
  5873. am_sleep_pid=
  5874. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  5875. ( sleep 1 ) &
  5876. am_sleep_pid=$!
  5877. fi
  5878. rm -f conftest.file
  5879. test "$program_prefix" != NONE &&
  5880. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  5881. # Use a double $ so make ignores it.
  5882. test "$program_suffix" != NONE &&
  5883. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  5884. # Double any \ or $.
  5885. # By default was `s,x,x', remove it if useless.
  5886. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  5887. program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
  5888. if test x"${MISSING+set}" != xset; then
  5889. MISSING="\${SHELL} '$am_aux_dir/missing'"
  5890. fi
  5891. # Use eval to expand $SHELL
  5892. if eval "$MISSING --is-lightweight"; then
  5893. am_missing_run="$MISSING "
  5894. else
  5895. am_missing_run=
  5896. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  5897. printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  5898. fi
  5899. if test x"${install_sh+set}" != xset; then
  5900. case $am_aux_dir in
  5901. *\ * | *\ *)
  5902. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  5903. *)
  5904. install_sh="\${SHELL} $am_aux_dir/install-sh"
  5905. esac
  5906. fi
  5907. # Installed binaries are usually stripped using 'strip' when the user
  5908. # run "make install-strip". However 'strip' might not be the right
  5909. # tool to use in cross-compilation environments, therefore Automake
  5910. # will honor the 'STRIP' environment variable to overrule this program.
  5911. if test "$cross_compiling" != no; then
  5912. if test -n "$ac_tool_prefix"; then
  5913. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5914. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5915. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5916. printf %s "checking for $ac_word... " >&6; }
  5917. if test ${ac_cv_prog_STRIP+y}
  5918. then :
  5919. printf %s "(cached) " >&6
  5920. else $as_nop
  5921. if test -n "$STRIP"; then
  5922. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5923. else
  5924. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5925. for as_dir in $PATH
  5926. do
  5927. IFS=$as_save_IFS
  5928. case $as_dir in #(((
  5929. '') as_dir=./ ;;
  5930. */) ;;
  5931. *) as_dir=$as_dir/ ;;
  5932. esac
  5933. for ac_exec_ext in '' $ac_executable_extensions; do
  5934. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5935. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5936. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5937. break 2
  5938. fi
  5939. done
  5940. done
  5941. IFS=$as_save_IFS
  5942. fi
  5943. fi
  5944. STRIP=$ac_cv_prog_STRIP
  5945. if test -n "$STRIP"; then
  5946. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5947. printf "%s\n" "$STRIP" >&6; }
  5948. else
  5949. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5950. printf "%s\n" "no" >&6; }
  5951. fi
  5952. fi
  5953. if test -z "$ac_cv_prog_STRIP"; then
  5954. ac_ct_STRIP=$STRIP
  5955. # Extract the first word of "strip", so it can be a program name with args.
  5956. set dummy strip; ac_word=$2
  5957. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5958. printf %s "checking for $ac_word... " >&6; }
  5959. if test ${ac_cv_prog_ac_ct_STRIP+y}
  5960. then :
  5961. printf %s "(cached) " >&6
  5962. else $as_nop
  5963. if test -n "$ac_ct_STRIP"; then
  5964. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5965. else
  5966. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5967. for as_dir in $PATH
  5968. do
  5969. IFS=$as_save_IFS
  5970. case $as_dir in #(((
  5971. '') as_dir=./ ;;
  5972. */) ;;
  5973. *) as_dir=$as_dir/ ;;
  5974. esac
  5975. for ac_exec_ext in '' $ac_executable_extensions; do
  5976. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5977. ac_cv_prog_ac_ct_STRIP="strip"
  5978. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5979. break 2
  5980. fi
  5981. done
  5982. done
  5983. IFS=$as_save_IFS
  5984. fi
  5985. fi
  5986. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5987. if test -n "$ac_ct_STRIP"; then
  5988. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5989. printf "%s\n" "$ac_ct_STRIP" >&6; }
  5990. else
  5991. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5992. printf "%s\n" "no" >&6; }
  5993. fi
  5994. if test "x$ac_ct_STRIP" = x; then
  5995. STRIP=":"
  5996. else
  5997. case $cross_compiling:$ac_tool_warned in
  5998. yes:)
  5999. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6000. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6001. ac_tool_warned=yes ;;
  6002. esac
  6003. STRIP=$ac_ct_STRIP
  6004. fi
  6005. else
  6006. STRIP="$ac_cv_prog_STRIP"
  6007. fi
  6008. fi
  6009. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  6010. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
  6011. printf %s "checking for a race-free mkdir -p... " >&6; }
  6012. if test -z "$MKDIR_P"; then
  6013. if test ${ac_cv_path_mkdir+y}
  6014. then :
  6015. printf %s "(cached) " >&6
  6016. else $as_nop
  6017. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6018. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  6019. do
  6020. IFS=$as_save_IFS
  6021. case $as_dir in #(((
  6022. '') as_dir=./ ;;
  6023. */) ;;
  6024. *) as_dir=$as_dir/ ;;
  6025. esac
  6026. for ac_prog in mkdir gmkdir; do
  6027. for ac_exec_ext in '' $ac_executable_extensions; do
  6028. as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
  6029. case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
  6030. 'mkdir ('*'coreutils) '* | \
  6031. 'BusyBox '* | \
  6032. 'mkdir (fileutils) '4.1*)
  6033. ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
  6034. break 3;;
  6035. esac
  6036. done
  6037. done
  6038. done
  6039. IFS=$as_save_IFS
  6040. fi
  6041. test -d ./--version && rmdir ./--version
  6042. if test ${ac_cv_path_mkdir+y}; then
  6043. MKDIR_P="$ac_cv_path_mkdir -p"
  6044. else
  6045. # As a last resort, use the slow shell script. Don't cache a
  6046. # value for MKDIR_P within a source directory, because that will
  6047. # break other packages using the cache if that directory is
  6048. # removed, or if the value is a relative name.
  6049. MKDIR_P="$ac_install_sh -d"
  6050. fi
  6051. fi
  6052. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  6053. printf "%s\n" "$MKDIR_P" >&6; }
  6054. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  6055. printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  6056. set x ${MAKE-make}
  6057. ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  6058. if eval test \${ac_cv_prog_make_${ac_make}_set+y}
  6059. then :
  6060. printf %s "(cached) " >&6
  6061. else $as_nop
  6062. cat >conftest.make <<\_ACEOF
  6063. SHELL = /bin/sh
  6064. all:
  6065. @echo '@@@%%%=$(MAKE)=@@@%%%'
  6066. _ACEOF
  6067. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  6068. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  6069. *@@@%%%=?*=@@@%%%*)
  6070. eval ac_cv_prog_make_${ac_make}_set=yes;;
  6071. *)
  6072. eval ac_cv_prog_make_${ac_make}_set=no;;
  6073. esac
  6074. rm -f conftest.make
  6075. fi
  6076. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  6077. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6078. printf "%s\n" "yes" >&6; }
  6079. SET_MAKE=
  6080. else
  6081. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6082. printf "%s\n" "no" >&6; }
  6083. SET_MAKE="MAKE=${MAKE-make}"
  6084. fi
  6085. rm -rf .tst 2>/dev/null
  6086. mkdir .tst 2>/dev/null
  6087. if test -d .tst; then
  6088. am__leading_dot=.
  6089. else
  6090. am__leading_dot=_
  6091. fi
  6092. rmdir .tst 2>/dev/null
  6093. DEPDIR="${am__leading_dot}deps"
  6094. ac_config_commands="$ac_config_commands depfiles"
  6095. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
  6096. printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
  6097. cat > confinc.mk << 'END'
  6098. am__doit:
  6099. @echo this is the am__doit target >confinc.out
  6100. .PHONY: am__doit
  6101. END
  6102. am__include="#"
  6103. am__quote=
  6104. # BSD make does it like this.
  6105. echo '.include "confinc.mk" # ignored' > confmf.BSD
  6106. # Other make implementations (GNU, Solaris 10, AIX) do it like this.
  6107. echo 'include confinc.mk # ignored' > confmf.GNU
  6108. _am_result=no
  6109. for s in GNU BSD; do
  6110. { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
  6111. (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
  6112. ac_status=$?
  6113. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6114. (exit $ac_status); }
  6115. case $?:`cat confinc.out 2>/dev/null` in #(
  6116. '0:this is the am__doit target') :
  6117. case $s in #(
  6118. BSD) :
  6119. am__include='.include' am__quote='"' ;; #(
  6120. *) :
  6121. am__include='include' am__quote='' ;;
  6122. esac ;; #(
  6123. *) :
  6124. ;;
  6125. esac
  6126. if test "$am__include" != "#"; then
  6127. _am_result="yes ($s style)"
  6128. break
  6129. fi
  6130. done
  6131. rm -f confinc.* confmf.*
  6132. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
  6133. printf "%s\n" "${_am_result}" >&6; }
  6134. # Check whether --enable-dependency-tracking was given.
  6135. if test ${enable_dependency_tracking+y}
  6136. then :
  6137. enableval=$enable_dependency_tracking;
  6138. fi
  6139. if test "x$enable_dependency_tracking" != xno; then
  6140. am_depcomp="$ac_aux_dir/depcomp"
  6141. AMDEPBACKSLASH='\'
  6142. am__nodep='_no'
  6143. fi
  6144. if test "x$enable_dependency_tracking" != xno; then
  6145. AMDEP_TRUE=
  6146. AMDEP_FALSE='#'
  6147. else
  6148. AMDEP_TRUE='#'
  6149. AMDEP_FALSE=
  6150. fi
  6151. ## --------------------------------------- ##
  6152. ## Start of automake initialization code ##
  6153. ## --------------------------------------- ##
  6154. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  6155. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  6156. # is not polluted with repeated "-I."
  6157. am__isrc=' -I$(srcdir)'
  6158. # test to see if srcdir already configured
  6159. if test -f $srcdir/config.status; then
  6160. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  6161. fi
  6162. fi
  6163. # test whether we have cygpath
  6164. if test -z "$CYGPATH_W"; then
  6165. if (cygpath --version) >/dev/null 2>/dev/null; then
  6166. CYGPATH_W='cygpath -w'
  6167. else
  6168. CYGPATH_W=echo
  6169. fi
  6170. fi
  6171. # Define the identity of the package.
  6172. PACKAGE='c-ares'
  6173. VERSION='1.18.1'
  6174. printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
  6175. printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
  6176. # Some tools Automake needs.
  6177. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  6178. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  6179. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  6180. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  6181. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  6182. # For better backward compatibility. To be removed once Automake 1.9.x
  6183. # dies out for good. For more background, see:
  6184. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  6185. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  6186. mkdir_p='$(MKDIR_P)'
  6187. # We need awk for the "check" target (and possibly the TAP driver). The
  6188. # system "awk" is bad on some platforms.
  6189. # Always define AMTAR for backward compatibility. Yes, it's still used
  6190. # in the wild :-( We should find a proper way to deprecate it ...
  6191. AMTAR='$${TAR-tar}'
  6192. # We'll loop over all known methods to create a tar archive until one works.
  6193. _am_tools='gnutar pax cpio none'
  6194. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  6195. depcc="$CC" am_compiler_list=
  6196. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  6197. printf %s "checking dependency style of $depcc... " >&6; }
  6198. if test ${am_cv_CC_dependencies_compiler_type+y}
  6199. then :
  6200. printf %s "(cached) " >&6
  6201. else $as_nop
  6202. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  6203. # We make a subdir and do the tests there. Otherwise we can end up
  6204. # making bogus files that we don't know about and never remove. For
  6205. # instance it was reported that on HP-UX the gcc test will end up
  6206. # making a dummy file named 'D' -- because '-MD' means "put the output
  6207. # in D".
  6208. rm -rf conftest.dir
  6209. mkdir conftest.dir
  6210. # Copy depcomp to subdir because otherwise we won't find it if we're
  6211. # using a relative directory.
  6212. cp "$am_depcomp" conftest.dir
  6213. cd conftest.dir
  6214. # We will build objects and dependencies in a subdirectory because
  6215. # it helps to detect inapplicable dependency modes. For instance
  6216. # both Tru64's cc and ICC support -MD to output dependencies as a
  6217. # side effect of compilation, but ICC will put the dependencies in
  6218. # the current directory while Tru64 will put them in the object
  6219. # directory.
  6220. mkdir sub
  6221. am_cv_CC_dependencies_compiler_type=none
  6222. if test "$am_compiler_list" = ""; then
  6223. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  6224. fi
  6225. am__universal=false
  6226. case " $depcc " in #(
  6227. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  6228. esac
  6229. for depmode in $am_compiler_list; do
  6230. # Setup a source with many dependencies, because some compilers
  6231. # like to wrap large dependency lists on column 80 (with \), and
  6232. # we should not choose a depcomp mode which is confused by this.
  6233. #
  6234. # We need to recreate these files for each test, as the compiler may
  6235. # overwrite some of them when testing with obscure command lines.
  6236. # This happens at least with the AIX C compiler.
  6237. : > sub/conftest.c
  6238. for i in 1 2 3 4 5 6; do
  6239. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  6240. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  6241. # Solaris 10 /bin/sh.
  6242. echo '/* dummy */' > sub/conftst$i.h
  6243. done
  6244. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  6245. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  6246. # mode. It turns out that the SunPro C++ compiler does not properly
  6247. # handle '-M -o', and we need to detect this. Also, some Intel
  6248. # versions had trouble with output in subdirs.
  6249. am__obj=sub/conftest.${OBJEXT-o}
  6250. am__minus_obj="-o $am__obj"
  6251. case $depmode in
  6252. gcc)
  6253. # This depmode causes a compiler race in universal mode.
  6254. test "$am__universal" = false || continue
  6255. ;;
  6256. nosideeffect)
  6257. # After this tag, mechanisms are not by side-effect, so they'll
  6258. # only be used when explicitly requested.
  6259. if test "x$enable_dependency_tracking" = xyes; then
  6260. continue
  6261. else
  6262. break
  6263. fi
  6264. ;;
  6265. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  6266. # This compiler won't grok '-c -o', but also, the minuso test has
  6267. # not run yet. These depmodes are late enough in the game, and
  6268. # so weak that their functioning should not be impacted.
  6269. am__obj=conftest.${OBJEXT-o}
  6270. am__minus_obj=
  6271. ;;
  6272. none) break ;;
  6273. esac
  6274. if depmode=$depmode \
  6275. source=sub/conftest.c object=$am__obj \
  6276. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  6277. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  6278. >/dev/null 2>conftest.err &&
  6279. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  6280. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  6281. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  6282. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  6283. # icc doesn't choke on unknown options, it will just issue warnings
  6284. # or remarks (even with -Werror). So we grep stderr for any message
  6285. # that says an option was ignored or not supported.
  6286. # When given -MP, icc 7.0 and 7.1 complain thusly:
  6287. # icc: Command line warning: ignoring option '-M'; no argument required
  6288. # The diagnosis changed in icc 8.0:
  6289. # icc: Command line remark: option '-MP' not supported
  6290. if (grep 'ignoring option' conftest.err ||
  6291. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  6292. am_cv_CC_dependencies_compiler_type=$depmode
  6293. break
  6294. fi
  6295. fi
  6296. done
  6297. cd ..
  6298. rm -rf conftest.dir
  6299. else
  6300. am_cv_CC_dependencies_compiler_type=none
  6301. fi
  6302. fi
  6303. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  6304. printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
  6305. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  6306. if
  6307. test "x$enable_dependency_tracking" != xno \
  6308. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  6309. am__fastdepCC_TRUE=
  6310. am__fastdepCC_FALSE='#'
  6311. else
  6312. am__fastdepCC_TRUE='#'
  6313. am__fastdepCC_FALSE=
  6314. fi
  6315. depcc="$CXX" am_compiler_list=
  6316. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  6317. printf %s "checking dependency style of $depcc... " >&6; }
  6318. if test ${am_cv_CXX_dependencies_compiler_type+y}
  6319. then :
  6320. printf %s "(cached) " >&6
  6321. else $as_nop
  6322. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  6323. # We make a subdir and do the tests there. Otherwise we can end up
  6324. # making bogus files that we don't know about and never remove. For
  6325. # instance it was reported that on HP-UX the gcc test will end up
  6326. # making a dummy file named 'D' -- because '-MD' means "put the output
  6327. # in D".
  6328. rm -rf conftest.dir
  6329. mkdir conftest.dir
  6330. # Copy depcomp to subdir because otherwise we won't find it if we're
  6331. # using a relative directory.
  6332. cp "$am_depcomp" conftest.dir
  6333. cd conftest.dir
  6334. # We will build objects and dependencies in a subdirectory because
  6335. # it helps to detect inapplicable dependency modes. For instance
  6336. # both Tru64's cc and ICC support -MD to output dependencies as a
  6337. # side effect of compilation, but ICC will put the dependencies in
  6338. # the current directory while Tru64 will put them in the object
  6339. # directory.
  6340. mkdir sub
  6341. am_cv_CXX_dependencies_compiler_type=none
  6342. if test "$am_compiler_list" = ""; then
  6343. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  6344. fi
  6345. am__universal=false
  6346. case " $depcc " in #(
  6347. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  6348. esac
  6349. for depmode in $am_compiler_list; do
  6350. # Setup a source with many dependencies, because some compilers
  6351. # like to wrap large dependency lists on column 80 (with \), and
  6352. # we should not choose a depcomp mode which is confused by this.
  6353. #
  6354. # We need to recreate these files for each test, as the compiler may
  6355. # overwrite some of them when testing with obscure command lines.
  6356. # This happens at least with the AIX C compiler.
  6357. : > sub/conftest.c
  6358. for i in 1 2 3 4 5 6; do
  6359. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  6360. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  6361. # Solaris 10 /bin/sh.
  6362. echo '/* dummy */' > sub/conftst$i.h
  6363. done
  6364. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  6365. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  6366. # mode. It turns out that the SunPro C++ compiler does not properly
  6367. # handle '-M -o', and we need to detect this. Also, some Intel
  6368. # versions had trouble with output in subdirs.
  6369. am__obj=sub/conftest.${OBJEXT-o}
  6370. am__minus_obj="-o $am__obj"
  6371. case $depmode in
  6372. gcc)
  6373. # This depmode causes a compiler race in universal mode.
  6374. test "$am__universal" = false || continue
  6375. ;;
  6376. nosideeffect)
  6377. # After this tag, mechanisms are not by side-effect, so they'll
  6378. # only be used when explicitly requested.
  6379. if test "x$enable_dependency_tracking" = xyes; then
  6380. continue
  6381. else
  6382. break
  6383. fi
  6384. ;;
  6385. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  6386. # This compiler won't grok '-c -o', but also, the minuso test has
  6387. # not run yet. These depmodes are late enough in the game, and
  6388. # so weak that their functioning should not be impacted.
  6389. am__obj=conftest.${OBJEXT-o}
  6390. am__minus_obj=
  6391. ;;
  6392. none) break ;;
  6393. esac
  6394. if depmode=$depmode \
  6395. source=sub/conftest.c object=$am__obj \
  6396. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  6397. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  6398. >/dev/null 2>conftest.err &&
  6399. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  6400. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  6401. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  6402. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  6403. # icc doesn't choke on unknown options, it will just issue warnings
  6404. # or remarks (even with -Werror). So we grep stderr for any message
  6405. # that says an option was ignored or not supported.
  6406. # When given -MP, icc 7.0 and 7.1 complain thusly:
  6407. # icc: Command line warning: ignoring option '-M'; no argument required
  6408. # The diagnosis changed in icc 8.0:
  6409. # icc: Command line remark: option '-MP' not supported
  6410. if (grep 'ignoring option' conftest.err ||
  6411. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  6412. am_cv_CXX_dependencies_compiler_type=$depmode
  6413. break
  6414. fi
  6415. fi
  6416. done
  6417. cd ..
  6418. rm -rf conftest.dir
  6419. else
  6420. am_cv_CXX_dependencies_compiler_type=none
  6421. fi
  6422. fi
  6423. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  6424. printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
  6425. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  6426. if
  6427. test "x$enable_dependency_tracking" != xno \
  6428. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  6429. am__fastdepCXX_TRUE=
  6430. am__fastdepCXX_FALSE='#'
  6431. else
  6432. am__fastdepCXX_TRUE='#'
  6433. am__fastdepCXX_FALSE=
  6434. fi
  6435. # Variables for tags utilities; see am/tags.am
  6436. if test -z "$CTAGS"; then
  6437. CTAGS=ctags
  6438. fi
  6439. if test -z "$ETAGS"; then
  6440. ETAGS=etags
  6441. fi
  6442. if test -z "$CSCOPE"; then
  6443. CSCOPE=cscope
  6444. fi
  6445. # POSIX will say in a future version that running "rm -f" with no argument
  6446. # is OK; and we want to be able to make that assumption in our Makefile
  6447. # recipes. So use an aggressive probe to check that the usage we want is
  6448. # actually supported "in the wild" to an acceptable degree.
  6449. # See automake bug#10828.
  6450. # To make any issue more visible, cause the running configure to be aborted
  6451. # by default if the 'rm' program in use doesn't match our expectations; the
  6452. # user can still override this though.
  6453. if rm -f && rm -fr && rm -rf; then : OK; else
  6454. cat >&2 <<'END'
  6455. Oops!
  6456. Your 'rm' program seems unable to run without file operands specified
  6457. on the command line, even when the '-f' option is present. This is contrary
  6458. to the behaviour of most rm programs out there, and not conforming with
  6459. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  6460. Please tell [email protected] about your system, including the value
  6461. of your $PATH and any error possibly output before this message. This
  6462. can help us improve future automake versions.
  6463. END
  6464. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  6465. echo 'Configuration will proceed anyway, since you have set the' >&2
  6466. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  6467. echo >&2
  6468. else
  6469. cat >&2 <<'END'
  6470. Aborting the configuration process, to ensure you take notice of the issue.
  6471. You can download and install GNU coreutils to get an 'rm' implementation
  6472. that behaves properly: <https://www.gnu.org/software/coreutils/>.
  6473. If you want to complete the configuration process using your problematic
  6474. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  6475. to "yes", and re-run configure.
  6476. END
  6477. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  6478. fi
  6479. fi
  6480. ## ------------------------------------- ##
  6481. ## End of automake initialization code ##
  6482. ## ------------------------------------- ##
  6483. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  6484. printf %s "checking for grep that handles long lines and -e... " >&6; }
  6485. if test ${ac_cv_path_GREP+y}
  6486. then :
  6487. printf %s "(cached) " >&6
  6488. else $as_nop
  6489. if test -z "$GREP"; then
  6490. ac_path_GREP_found=false
  6491. # Loop through the user's path and test for each of PROGNAME-LIST
  6492. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6493. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  6494. do
  6495. IFS=$as_save_IFS
  6496. case $as_dir in #(((
  6497. '') as_dir=./ ;;
  6498. */) ;;
  6499. *) as_dir=$as_dir/ ;;
  6500. esac
  6501. for ac_prog in grep ggrep
  6502. do
  6503. for ac_exec_ext in '' $ac_executable_extensions; do
  6504. ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
  6505. as_fn_executable_p "$ac_path_GREP" || continue
  6506. # Check for GNU ac_path_GREP and select it if it is found.
  6507. # Check for GNU $ac_path_GREP
  6508. case `"$ac_path_GREP" --version 2>&1` in
  6509. *GNU*)
  6510. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  6511. *)
  6512. ac_count=0
  6513. printf %s 0123456789 >"conftest.in"
  6514. while :
  6515. do
  6516. cat "conftest.in" "conftest.in" >"conftest.tmp"
  6517. mv "conftest.tmp" "conftest.in"
  6518. cp "conftest.in" "conftest.nl"
  6519. printf "%s\n" 'GREP' >> "conftest.nl"
  6520. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  6521. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  6522. as_fn_arith $ac_count + 1 && ac_count=$as_val
  6523. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  6524. # Best one so far, save it but keep looking for a better one
  6525. ac_cv_path_GREP="$ac_path_GREP"
  6526. ac_path_GREP_max=$ac_count
  6527. fi
  6528. # 10*(2^10) chars as input seems more than enough
  6529. test $ac_count -gt 10 && break
  6530. done
  6531. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  6532. esac
  6533. $ac_path_GREP_found && break 3
  6534. done
  6535. done
  6536. done
  6537. IFS=$as_save_IFS
  6538. if test -z "$ac_cv_path_GREP"; then
  6539. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  6540. fi
  6541. else
  6542. ac_cv_path_GREP=$GREP
  6543. fi
  6544. fi
  6545. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  6546. printf "%s\n" "$ac_cv_path_GREP" >&6; }
  6547. GREP="$ac_cv_path_GREP"
  6548. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  6549. printf %s "checking for egrep... " >&6; }
  6550. if test ${ac_cv_path_EGREP+y}
  6551. then :
  6552. printf %s "(cached) " >&6
  6553. else $as_nop
  6554. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  6555. then ac_cv_path_EGREP="$GREP -E"
  6556. else
  6557. if test -z "$EGREP"; then
  6558. ac_path_EGREP_found=false
  6559. # Loop through the user's path and test for each of PROGNAME-LIST
  6560. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6561. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  6562. do
  6563. IFS=$as_save_IFS
  6564. case $as_dir in #(((
  6565. '') as_dir=./ ;;
  6566. */) ;;
  6567. *) as_dir=$as_dir/ ;;
  6568. esac
  6569. for ac_prog in egrep
  6570. do
  6571. for ac_exec_ext in '' $ac_executable_extensions; do
  6572. ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
  6573. as_fn_executable_p "$ac_path_EGREP" || continue
  6574. # Check for GNU ac_path_EGREP and select it if it is found.
  6575. # Check for GNU $ac_path_EGREP
  6576. case `"$ac_path_EGREP" --version 2>&1` in
  6577. *GNU*)
  6578. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  6579. *)
  6580. ac_count=0
  6581. printf %s 0123456789 >"conftest.in"
  6582. while :
  6583. do
  6584. cat "conftest.in" "conftest.in" >"conftest.tmp"
  6585. mv "conftest.tmp" "conftest.in"
  6586. cp "conftest.in" "conftest.nl"
  6587. printf "%s\n" 'EGREP' >> "conftest.nl"
  6588. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  6589. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  6590. as_fn_arith $ac_count + 1 && ac_count=$as_val
  6591. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  6592. # Best one so far, save it but keep looking for a better one
  6593. ac_cv_path_EGREP="$ac_path_EGREP"
  6594. ac_path_EGREP_max=$ac_count
  6595. fi
  6596. # 10*(2^10) chars as input seems more than enough
  6597. test $ac_count -gt 10 && break
  6598. done
  6599. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  6600. esac
  6601. $ac_path_EGREP_found && break 3
  6602. done
  6603. done
  6604. done
  6605. IFS=$as_save_IFS
  6606. if test -z "$ac_cv_path_EGREP"; then
  6607. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  6608. fi
  6609. else
  6610. ac_cv_path_EGREP=$EGREP
  6611. fi
  6612. fi
  6613. fi
  6614. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  6615. printf "%s\n" "$ac_cv_path_EGREP" >&6; }
  6616. EGREP="$ac_cv_path_EGREP"
  6617. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if OS is AIX (to define _ALL_SOURCE)" >&5
  6618. printf %s "checking if OS is AIX (to define _ALL_SOURCE)... " >&6; }
  6619. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6620. /* end confdefs.h. */
  6621. #ifdef _AIX
  6622. yes_this_is_aix
  6623. #endif
  6624. _ACEOF
  6625. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6626. $EGREP "yes_this_is_aix" >/dev/null 2>&1
  6627. then :
  6628. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6629. printf "%s\n" "yes" >&6; }
  6630. printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
  6631. else $as_nop
  6632. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6633. printf "%s\n" "no" >&6; }
  6634. fi
  6635. rm -rf conftest*
  6636. #
  6637. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is already defined" >&5
  6638. printf %s "checking if _THREAD_SAFE is already defined... " >&6; }
  6639. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6640. /* end confdefs.h. */
  6641. int
  6642. main (void)
  6643. {
  6644. #ifdef _THREAD_SAFE
  6645. int dummy=1;
  6646. #else
  6647. force compilation error
  6648. #endif
  6649. ;
  6650. return 0;
  6651. }
  6652. _ACEOF
  6653. if ac_fn_c_try_compile "$LINENO"
  6654. then :
  6655. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6656. printf "%s\n" "yes" >&6; }
  6657. tmp_thread_safe_initially_defined="yes"
  6658. else $as_nop
  6659. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6660. printf "%s\n" "no" >&6; }
  6661. tmp_thread_safe_initially_defined="no"
  6662. fi
  6663. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  6664. #
  6665. if test "$tmp_thread_safe_initially_defined" = "no"; then
  6666. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is actually needed" >&5
  6667. printf %s "checking if _THREAD_SAFE is actually needed... " >&6; }
  6668. case $host_os in
  6669. aix[123].* | aix4.[012].*)
  6670. tmp_need_thread_safe="no"
  6671. ;;
  6672. aix*)
  6673. tmp_need_thread_safe="yes"
  6674. ;;
  6675. *)
  6676. tmp_need_thread_safe="no"
  6677. ;;
  6678. esac
  6679. if test "$tmp_need_thread_safe" = "yes"; then
  6680. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6681. printf "%s\n" "yes" >&6; }
  6682. else
  6683. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6684. printf "%s\n" "no" >&6; }
  6685. fi
  6686. fi
  6687. #
  6688. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is onwards defined" >&5
  6689. printf %s "checking if _THREAD_SAFE is onwards defined... " >&6; }
  6690. if test "$tmp_thread_safe_initially_defined" = "yes" ||
  6691. test "$tmp_need_thread_safe" = "yes"; then
  6692. printf "%s\n" "#define NEED_THREAD_SAFE 1" >>confdefs.h
  6693. cat >>confdefs.h <<_EOF
  6694. #ifndef _THREAD_SAFE
  6695. # define _THREAD_SAFE
  6696. #endif
  6697. _EOF
  6698. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6699. printf "%s\n" "yes" >&6; }
  6700. else
  6701. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6702. printf "%s\n" "no" >&6; }
  6703. fi
  6704. #
  6705. #
  6706. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is already defined" >&5
  6707. printf %s "checking if _REENTRANT is already defined... " >&6; }
  6708. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6709. /* end confdefs.h. */
  6710. int
  6711. main (void)
  6712. {
  6713. #ifdef _REENTRANT
  6714. int dummy=1;
  6715. #else
  6716. force compilation error
  6717. #endif
  6718. ;
  6719. return 0;
  6720. }
  6721. _ACEOF
  6722. if ac_fn_c_try_compile "$LINENO"
  6723. then :
  6724. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6725. printf "%s\n" "yes" >&6; }
  6726. tmp_reentrant_initially_defined="yes"
  6727. else $as_nop
  6728. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6729. printf "%s\n" "no" >&6; }
  6730. tmp_reentrant_initially_defined="no"
  6731. fi
  6732. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  6733. #
  6734. if test "$tmp_reentrant_initially_defined" = "no"; then
  6735. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is actually needed" >&5
  6736. printf %s "checking if _REENTRANT is actually needed... " >&6; }
  6737. case $host_os in
  6738. solaris*)
  6739. tmp_need_reentrant="yes"
  6740. ;;
  6741. *)
  6742. tmp_need_reentrant="no"
  6743. ;;
  6744. esac
  6745. if test "$tmp_need_reentrant" = "no"; then
  6746. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6747. /* end confdefs.h. */
  6748. #include <errno.h>
  6749. int
  6750. main (void)
  6751. {
  6752. if(0 != errno)
  6753. return 1;
  6754. ;
  6755. return 0;
  6756. }
  6757. _ACEOF
  6758. if ac_fn_c_try_compile "$LINENO"
  6759. then :
  6760. tmp_errno="yes"
  6761. else $as_nop
  6762. tmp_errno="no"
  6763. fi
  6764. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  6765. if test "$tmp_errno" = "yes"; then
  6766. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6767. /* end confdefs.h. */
  6768. #include <errno.h>
  6769. int
  6770. main (void)
  6771. {
  6772. #ifdef errno
  6773. int dummy=1;
  6774. #else
  6775. force compilation error
  6776. #endif
  6777. ;
  6778. return 0;
  6779. }
  6780. _ACEOF
  6781. if ac_fn_c_try_compile "$LINENO"
  6782. then :
  6783. tmp_errno="errno_macro_defined"
  6784. else $as_nop
  6785. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6786. /* end confdefs.h. */
  6787. #define _REENTRANT
  6788. #include <errno.h>
  6789. int
  6790. main (void)
  6791. {
  6792. #ifdef errno
  6793. int dummy=1;
  6794. #else
  6795. force compilation error
  6796. #endif
  6797. ;
  6798. return 0;
  6799. }
  6800. _ACEOF
  6801. if ac_fn_c_try_compile "$LINENO"
  6802. then :
  6803. tmp_errno="errno_macro_needs_reentrant"
  6804. tmp_need_reentrant="yes"
  6805. fi
  6806. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  6807. fi
  6808. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  6809. fi
  6810. fi
  6811. if test "$tmp_need_reentrant" = "no"; then
  6812. if test "$tmp_need_reentrant" = "no"; then
  6813. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6814. /* end confdefs.h. */
  6815. /* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
  6816. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6817. #define gmtime_r innocuous_gmtime_r
  6818. /* System header to define __stub macros and hopefully few prototypes,
  6819. which can conflict with char gmtime_r (); below. */
  6820. #include <limits.h>
  6821. #undef gmtime_r
  6822. /* Override any GCC internal prototype to avoid an error.
  6823. Use char because int might match the return type of a GCC
  6824. builtin and then its argument prototype would still apply. */
  6825. #ifdef __cplusplus
  6826. extern "C"
  6827. #endif
  6828. char gmtime_r ();
  6829. /* The GNU C library defines this for functions which it implements
  6830. to always fail with ENOSYS. Some functions are actually named
  6831. something starting with __ and the normal name is an alias. */
  6832. #if defined __stub_gmtime_r || defined __stub___gmtime_r
  6833. choke me
  6834. #endif
  6835. int
  6836. main (void)
  6837. {
  6838. return gmtime_r ();
  6839. ;
  6840. return 0;
  6841. }
  6842. _ACEOF
  6843. if ac_fn_c_try_link "$LINENO"
  6844. then :
  6845. tmp_gmtime_r="yes"
  6846. else $as_nop
  6847. tmp_gmtime_r="no"
  6848. fi
  6849. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  6850. conftest$ac_exeext conftest.$ac_ext
  6851. if test "$tmp_gmtime_r" = "yes"; then
  6852. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6853. /* end confdefs.h. */
  6854. #include <sys/types.h>
  6855. #include <time.h>
  6856. _ACEOF
  6857. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6858. $EGREP "gmtime_r" >/dev/null 2>&1
  6859. then :
  6860. tmp_gmtime_r="proto_declared"
  6861. else $as_nop
  6862. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6863. /* end confdefs.h. */
  6864. #define _REENTRANT
  6865. #include <sys/types.h>
  6866. #include <time.h>
  6867. _ACEOF
  6868. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6869. $EGREP "gmtime_r" >/dev/null 2>&1
  6870. then :
  6871. tmp_gmtime_r="proto_needs_reentrant"
  6872. tmp_need_reentrant="yes"
  6873. fi
  6874. rm -rf conftest*
  6875. fi
  6876. rm -rf conftest*
  6877. fi
  6878. fi
  6879. if test "$tmp_need_reentrant" = "no"; then
  6880. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6881. /* end confdefs.h. */
  6882. /* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
  6883. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6884. #define localtime_r innocuous_localtime_r
  6885. /* System header to define __stub macros and hopefully few prototypes,
  6886. which can conflict with char localtime_r (); below. */
  6887. #include <limits.h>
  6888. #undef localtime_r
  6889. /* Override any GCC internal prototype to avoid an error.
  6890. Use char because int might match the return type of a GCC
  6891. builtin and then its argument prototype would still apply. */
  6892. #ifdef __cplusplus
  6893. extern "C"
  6894. #endif
  6895. char localtime_r ();
  6896. /* The GNU C library defines this for functions which it implements
  6897. to always fail with ENOSYS. Some functions are actually named
  6898. something starting with __ and the normal name is an alias. */
  6899. #if defined __stub_localtime_r || defined __stub___localtime_r
  6900. choke me
  6901. #endif
  6902. int
  6903. main (void)
  6904. {
  6905. return localtime_r ();
  6906. ;
  6907. return 0;
  6908. }
  6909. _ACEOF
  6910. if ac_fn_c_try_link "$LINENO"
  6911. then :
  6912. tmp_localtime_r="yes"
  6913. else $as_nop
  6914. tmp_localtime_r="no"
  6915. fi
  6916. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  6917. conftest$ac_exeext conftest.$ac_ext
  6918. if test "$tmp_localtime_r" = "yes"; then
  6919. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6920. /* end confdefs.h. */
  6921. #include <sys/types.h>
  6922. #include <time.h>
  6923. _ACEOF
  6924. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6925. $EGREP "localtime_r" >/dev/null 2>&1
  6926. then :
  6927. tmp_localtime_r="proto_declared"
  6928. else $as_nop
  6929. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6930. /* end confdefs.h. */
  6931. #define _REENTRANT
  6932. #include <sys/types.h>
  6933. #include <time.h>
  6934. _ACEOF
  6935. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6936. $EGREP "localtime_r" >/dev/null 2>&1
  6937. then :
  6938. tmp_localtime_r="proto_needs_reentrant"
  6939. tmp_need_reentrant="yes"
  6940. fi
  6941. rm -rf conftest*
  6942. fi
  6943. rm -rf conftest*
  6944. fi
  6945. fi
  6946. if test "$tmp_need_reentrant" = "no"; then
  6947. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6948. /* end confdefs.h. */
  6949. /* Define strerror_r to an innocuous variant, in case <limits.h> declares strerror_r.
  6950. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6951. #define strerror_r innocuous_strerror_r
  6952. /* System header to define __stub macros and hopefully few prototypes,
  6953. which can conflict with char strerror_r (); below. */
  6954. #include <limits.h>
  6955. #undef strerror_r
  6956. /* Override any GCC internal prototype to avoid an error.
  6957. Use char because int might match the return type of a GCC
  6958. builtin and then its argument prototype would still apply. */
  6959. #ifdef __cplusplus
  6960. extern "C"
  6961. #endif
  6962. char strerror_r ();
  6963. /* The GNU C library defines this for functions which it implements
  6964. to always fail with ENOSYS. Some functions are actually named
  6965. something starting with __ and the normal name is an alias. */
  6966. #if defined __stub_strerror_r || defined __stub___strerror_r
  6967. choke me
  6968. #endif
  6969. int
  6970. main (void)
  6971. {
  6972. return strerror_r ();
  6973. ;
  6974. return 0;
  6975. }
  6976. _ACEOF
  6977. if ac_fn_c_try_link "$LINENO"
  6978. then :
  6979. tmp_strerror_r="yes"
  6980. else $as_nop
  6981. tmp_strerror_r="no"
  6982. fi
  6983. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  6984. conftest$ac_exeext conftest.$ac_ext
  6985. if test "$tmp_strerror_r" = "yes"; then
  6986. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6987. /* end confdefs.h. */
  6988. #include <sys/types.h>
  6989. #include <string.h>
  6990. _ACEOF
  6991. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6992. $EGREP "strerror_r" >/dev/null 2>&1
  6993. then :
  6994. tmp_strerror_r="proto_declared"
  6995. else $as_nop
  6996. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6997. /* end confdefs.h. */
  6998. #define _REENTRANT
  6999. #include <sys/types.h>
  7000. #include <string.h>
  7001. _ACEOF
  7002. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7003. $EGREP "strerror_r" >/dev/null 2>&1
  7004. then :
  7005. tmp_strerror_r="proto_needs_reentrant"
  7006. tmp_need_reentrant="yes"
  7007. fi
  7008. rm -rf conftest*
  7009. fi
  7010. rm -rf conftest*
  7011. fi
  7012. fi
  7013. if test "$tmp_need_reentrant" = "no"; then
  7014. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7015. /* end confdefs.h. */
  7016. /* Define strtok_r to an innocuous variant, in case <limits.h> declares strtok_r.
  7017. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7018. #define strtok_r innocuous_strtok_r
  7019. /* System header to define __stub macros and hopefully few prototypes,
  7020. which can conflict with char strtok_r (); below. */
  7021. #include <limits.h>
  7022. #undef strtok_r
  7023. /* Override any GCC internal prototype to avoid an error.
  7024. Use char because int might match the return type of a GCC
  7025. builtin and then its argument prototype would still apply. */
  7026. #ifdef __cplusplus
  7027. extern "C"
  7028. #endif
  7029. char strtok_r ();
  7030. /* The GNU C library defines this for functions which it implements
  7031. to always fail with ENOSYS. Some functions are actually named
  7032. something starting with __ and the normal name is an alias. */
  7033. #if defined __stub_strtok_r || defined __stub___strtok_r
  7034. choke me
  7035. #endif
  7036. int
  7037. main (void)
  7038. {
  7039. return strtok_r ();
  7040. ;
  7041. return 0;
  7042. }
  7043. _ACEOF
  7044. if ac_fn_c_try_link "$LINENO"
  7045. then :
  7046. tmp_strtok_r="yes"
  7047. else $as_nop
  7048. tmp_strtok_r="no"
  7049. fi
  7050. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7051. conftest$ac_exeext conftest.$ac_ext
  7052. if test "$tmp_strtok_r" = "yes"; then
  7053. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7054. /* end confdefs.h. */
  7055. #include <sys/types.h>
  7056. #include <string.h>
  7057. _ACEOF
  7058. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7059. $EGREP "strtok_r" >/dev/null 2>&1
  7060. then :
  7061. tmp_strtok_r="proto_declared"
  7062. else $as_nop
  7063. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7064. /* end confdefs.h. */
  7065. #define _REENTRANT
  7066. #include <sys/types.h>
  7067. #include <string.h>
  7068. _ACEOF
  7069. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7070. $EGREP "strtok_r" >/dev/null 2>&1
  7071. then :
  7072. tmp_strtok_r="proto_needs_reentrant"
  7073. tmp_need_reentrant="yes"
  7074. fi
  7075. rm -rf conftest*
  7076. fi
  7077. rm -rf conftest*
  7078. fi
  7079. fi
  7080. if test "$tmp_need_reentrant" = "no"; then
  7081. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7082. /* end confdefs.h. */
  7083. /* Define inet_ntoa_r to an innocuous variant, in case <limits.h> declares inet_ntoa_r.
  7084. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7085. #define inet_ntoa_r innocuous_inet_ntoa_r
  7086. /* System header to define __stub macros and hopefully few prototypes,
  7087. which can conflict with char inet_ntoa_r (); below. */
  7088. #include <limits.h>
  7089. #undef inet_ntoa_r
  7090. /* Override any GCC internal prototype to avoid an error.
  7091. Use char because int might match the return type of a GCC
  7092. builtin and then its argument prototype would still apply. */
  7093. #ifdef __cplusplus
  7094. extern "C"
  7095. #endif
  7096. char inet_ntoa_r ();
  7097. /* The GNU C library defines this for functions which it implements
  7098. to always fail with ENOSYS. Some functions are actually named
  7099. something starting with __ and the normal name is an alias. */
  7100. #if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r
  7101. choke me
  7102. #endif
  7103. int
  7104. main (void)
  7105. {
  7106. return inet_ntoa_r ();
  7107. ;
  7108. return 0;
  7109. }
  7110. _ACEOF
  7111. if ac_fn_c_try_link "$LINENO"
  7112. then :
  7113. tmp_inet_ntoa_r="yes"
  7114. else $as_nop
  7115. tmp_inet_ntoa_r="no"
  7116. fi
  7117. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7118. conftest$ac_exeext conftest.$ac_ext
  7119. if test "$tmp_inet_ntoa_r" = "yes"; then
  7120. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7121. /* end confdefs.h. */
  7122. #include <sys/types.h>
  7123. #include <sys/socket.h>
  7124. #include <netinet/in.h>
  7125. #include <arpa/inet.h>
  7126. _ACEOF
  7127. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7128. $EGREP "inet_ntoa_r" >/dev/null 2>&1
  7129. then :
  7130. tmp_inet_ntoa_r="proto_declared"
  7131. else $as_nop
  7132. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7133. /* end confdefs.h. */
  7134. #define _REENTRANT
  7135. #include <sys/types.h>
  7136. #include <sys/socket.h>
  7137. #include <netinet/in.h>
  7138. #include <arpa/inet.h>
  7139. _ACEOF
  7140. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7141. $EGREP "inet_ntoa_r" >/dev/null 2>&1
  7142. then :
  7143. tmp_inet_ntoa_r="proto_needs_reentrant"
  7144. tmp_need_reentrant="yes"
  7145. fi
  7146. rm -rf conftest*
  7147. fi
  7148. rm -rf conftest*
  7149. fi
  7150. fi
  7151. if test "$tmp_need_reentrant" = "no"; then
  7152. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7153. /* end confdefs.h. */
  7154. /* Define gethostbyaddr_r to an innocuous variant, in case <limits.h> declares gethostbyaddr_r.
  7155. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7156. #define gethostbyaddr_r innocuous_gethostbyaddr_r
  7157. /* System header to define __stub macros and hopefully few prototypes,
  7158. which can conflict with char gethostbyaddr_r (); below. */
  7159. #include <limits.h>
  7160. #undef gethostbyaddr_r
  7161. /* Override any GCC internal prototype to avoid an error.
  7162. Use char because int might match the return type of a GCC
  7163. builtin and then its argument prototype would still apply. */
  7164. #ifdef __cplusplus
  7165. extern "C"
  7166. #endif
  7167. char gethostbyaddr_r ();
  7168. /* The GNU C library defines this for functions which it implements
  7169. to always fail with ENOSYS. Some functions are actually named
  7170. something starting with __ and the normal name is an alias. */
  7171. #if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r
  7172. choke me
  7173. #endif
  7174. int
  7175. main (void)
  7176. {
  7177. return gethostbyaddr_r ();
  7178. ;
  7179. return 0;
  7180. }
  7181. _ACEOF
  7182. if ac_fn_c_try_link "$LINENO"
  7183. then :
  7184. tmp_gethostbyaddr_r="yes"
  7185. else $as_nop
  7186. tmp_gethostbyaddr_r="no"
  7187. fi
  7188. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7189. conftest$ac_exeext conftest.$ac_ext
  7190. if test "$tmp_gethostbyaddr_r" = "yes"; then
  7191. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7192. /* end confdefs.h. */
  7193. #include <sys/types.h>
  7194. #include <netdb.h>
  7195. _ACEOF
  7196. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7197. $EGREP "gethostbyaddr_r" >/dev/null 2>&1
  7198. then :
  7199. tmp_gethostbyaddr_r="proto_declared"
  7200. else $as_nop
  7201. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7202. /* end confdefs.h. */
  7203. #define _REENTRANT
  7204. #include <sys/types.h>
  7205. #include <netdb.h>
  7206. _ACEOF
  7207. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7208. $EGREP "gethostbyaddr_r" >/dev/null 2>&1
  7209. then :
  7210. tmp_gethostbyaddr_r="proto_needs_reentrant"
  7211. tmp_need_reentrant="yes"
  7212. fi
  7213. rm -rf conftest*
  7214. fi
  7215. rm -rf conftest*
  7216. fi
  7217. fi
  7218. if test "$tmp_need_reentrant" = "no"; then
  7219. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7220. /* end confdefs.h. */
  7221. /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
  7222. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7223. #define gethostbyname_r innocuous_gethostbyname_r
  7224. /* System header to define __stub macros and hopefully few prototypes,
  7225. which can conflict with char gethostbyname_r (); below. */
  7226. #include <limits.h>
  7227. #undef gethostbyname_r
  7228. /* Override any GCC internal prototype to avoid an error.
  7229. Use char because int might match the return type of a GCC
  7230. builtin and then its argument prototype would still apply. */
  7231. #ifdef __cplusplus
  7232. extern "C"
  7233. #endif
  7234. char gethostbyname_r ();
  7235. /* The GNU C library defines this for functions which it implements
  7236. to always fail with ENOSYS. Some functions are actually named
  7237. something starting with __ and the normal name is an alias. */
  7238. #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
  7239. choke me
  7240. #endif
  7241. int
  7242. main (void)
  7243. {
  7244. return gethostbyname_r ();
  7245. ;
  7246. return 0;
  7247. }
  7248. _ACEOF
  7249. if ac_fn_c_try_link "$LINENO"
  7250. then :
  7251. tmp_gethostbyname_r="yes"
  7252. else $as_nop
  7253. tmp_gethostbyname_r="no"
  7254. fi
  7255. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7256. conftest$ac_exeext conftest.$ac_ext
  7257. if test "$tmp_gethostbyname_r" = "yes"; then
  7258. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7259. /* end confdefs.h. */
  7260. #include <sys/types.h>
  7261. #include <netdb.h>
  7262. _ACEOF
  7263. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7264. $EGREP "gethostbyname_r" >/dev/null 2>&1
  7265. then :
  7266. tmp_gethostbyname_r="proto_declared"
  7267. else $as_nop
  7268. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7269. /* end confdefs.h. */
  7270. #define _REENTRANT
  7271. #include <sys/types.h>
  7272. #include <netdb.h>
  7273. _ACEOF
  7274. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7275. $EGREP "gethostbyname_r" >/dev/null 2>&1
  7276. then :
  7277. tmp_gethostbyname_r="proto_needs_reentrant"
  7278. tmp_need_reentrant="yes"
  7279. fi
  7280. rm -rf conftest*
  7281. fi
  7282. rm -rf conftest*
  7283. fi
  7284. fi
  7285. if test "$tmp_need_reentrant" = "no"; then
  7286. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7287. /* end confdefs.h. */
  7288. /* Define getprotobyname_r to an innocuous variant, in case <limits.h> declares getprotobyname_r.
  7289. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7290. #define getprotobyname_r innocuous_getprotobyname_r
  7291. /* System header to define __stub macros and hopefully few prototypes,
  7292. which can conflict with char getprotobyname_r (); below. */
  7293. #include <limits.h>
  7294. #undef getprotobyname_r
  7295. /* Override any GCC internal prototype to avoid an error.
  7296. Use char because int might match the return type of a GCC
  7297. builtin and then its argument prototype would still apply. */
  7298. #ifdef __cplusplus
  7299. extern "C"
  7300. #endif
  7301. char getprotobyname_r ();
  7302. /* The GNU C library defines this for functions which it implements
  7303. to always fail with ENOSYS. Some functions are actually named
  7304. something starting with __ and the normal name is an alias. */
  7305. #if defined __stub_getprotobyname_r || defined __stub___getprotobyname_r
  7306. choke me
  7307. #endif
  7308. int
  7309. main (void)
  7310. {
  7311. return getprotobyname_r ();
  7312. ;
  7313. return 0;
  7314. }
  7315. _ACEOF
  7316. if ac_fn_c_try_link "$LINENO"
  7317. then :
  7318. tmp_getprotobyname_r="yes"
  7319. else $as_nop
  7320. tmp_getprotobyname_r="no"
  7321. fi
  7322. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7323. conftest$ac_exeext conftest.$ac_ext
  7324. if test "$tmp_getprotobyname_r" = "yes"; then
  7325. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7326. /* end confdefs.h. */
  7327. #include <sys/types.h>
  7328. #include <netdb.h>
  7329. _ACEOF
  7330. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7331. $EGREP "getprotobyname_r" >/dev/null 2>&1
  7332. then :
  7333. tmp_getprotobyname_r="proto_declared"
  7334. else $as_nop
  7335. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7336. /* end confdefs.h. */
  7337. #define _REENTRANT
  7338. #include <sys/types.h>
  7339. #include <netdb.h>
  7340. _ACEOF
  7341. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7342. $EGREP "getprotobyname_r" >/dev/null 2>&1
  7343. then :
  7344. tmp_getprotobyname_r="proto_needs_reentrant"
  7345. tmp_need_reentrant="yes"
  7346. fi
  7347. rm -rf conftest*
  7348. fi
  7349. rm -rf conftest*
  7350. fi
  7351. fi
  7352. if test "$tmp_need_reentrant" = "no"; then
  7353. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7354. /* end confdefs.h. */
  7355. /* Define getservbyport_r to an innocuous variant, in case <limits.h> declares getservbyport_r.
  7356. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7357. #define getservbyport_r innocuous_getservbyport_r
  7358. /* System header to define __stub macros and hopefully few prototypes,
  7359. which can conflict with char getservbyport_r (); below. */
  7360. #include <limits.h>
  7361. #undef getservbyport_r
  7362. /* Override any GCC internal prototype to avoid an error.
  7363. Use char because int might match the return type of a GCC
  7364. builtin and then its argument prototype would still apply. */
  7365. #ifdef __cplusplus
  7366. extern "C"
  7367. #endif
  7368. char getservbyport_r ();
  7369. /* The GNU C library defines this for functions which it implements
  7370. to always fail with ENOSYS. Some functions are actually named
  7371. something starting with __ and the normal name is an alias. */
  7372. #if defined __stub_getservbyport_r || defined __stub___getservbyport_r
  7373. choke me
  7374. #endif
  7375. int
  7376. main (void)
  7377. {
  7378. return getservbyport_r ();
  7379. ;
  7380. return 0;
  7381. }
  7382. _ACEOF
  7383. if ac_fn_c_try_link "$LINENO"
  7384. then :
  7385. tmp_getservbyport_r="yes"
  7386. else $as_nop
  7387. tmp_getservbyport_r="no"
  7388. fi
  7389. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7390. conftest$ac_exeext conftest.$ac_ext
  7391. if test "$tmp_getservbyport_r" = "yes"; then
  7392. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7393. /* end confdefs.h. */
  7394. #include <sys/types.h>
  7395. #include <netdb.h>
  7396. _ACEOF
  7397. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7398. $EGREP "getservbyport_r" >/dev/null 2>&1
  7399. then :
  7400. tmp_getservbyport_r="proto_declared"
  7401. else $as_nop
  7402. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7403. /* end confdefs.h. */
  7404. #define _REENTRANT
  7405. #include <sys/types.h>
  7406. #include <netdb.h>
  7407. _ACEOF
  7408. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7409. $EGREP "getservbyport_r" >/dev/null 2>&1
  7410. then :
  7411. tmp_getservbyport_r="proto_needs_reentrant"
  7412. tmp_need_reentrant="yes"
  7413. fi
  7414. rm -rf conftest*
  7415. fi
  7416. rm -rf conftest*
  7417. fi
  7418. fi
  7419. fi
  7420. if test "$tmp_need_reentrant" = "yes"; then
  7421. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7422. printf "%s\n" "yes" >&6; }
  7423. else
  7424. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7425. printf "%s\n" "no" >&6; }
  7426. fi
  7427. fi
  7428. #
  7429. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is onwards defined" >&5
  7430. printf %s "checking if _REENTRANT is onwards defined... " >&6; }
  7431. if test "$tmp_reentrant_initially_defined" = "yes" ||
  7432. test "$tmp_need_reentrant" = "yes"; then
  7433. printf "%s\n" "#define NEED_REENTRANT 1" >>confdefs.h
  7434. cat >>confdefs.h <<_EOF
  7435. #ifndef _REENTRANT
  7436. # define _REENTRANT
  7437. #endif
  7438. _EOF
  7439. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7440. printf "%s\n" "yes" >&6; }
  7441. else
  7442. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7443. printf "%s\n" "no" >&6; }
  7444. fi
  7445. #
  7446. # Check whether --enable-largefile was given.
  7447. if test ${enable_largefile+y}
  7448. then :
  7449. enableval=$enable_largefile;
  7450. fi
  7451. if test "$enable_largefile" != no; then
  7452. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  7453. printf %s "checking for special C compiler options needed for large files... " >&6; }
  7454. if test ${ac_cv_sys_largefile_CC+y}
  7455. then :
  7456. printf %s "(cached) " >&6
  7457. else $as_nop
  7458. ac_cv_sys_largefile_CC=no
  7459. if test "$GCC" != yes; then
  7460. ac_save_CC=$CC
  7461. while :; do
  7462. # IRIX 6.2 and later do not support large files by default,
  7463. # so use the C compiler's -n32 option if that helps.
  7464. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7465. /* end confdefs.h. */
  7466. #include <sys/types.h>
  7467. /* Check that off_t can represent 2**63 - 1 correctly.
  7468. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7469. since some C++ compilers masquerading as C compilers
  7470. incorrectly reject 9223372036854775807. */
  7471. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  7472. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7473. && LARGE_OFF_T % 2147483647 == 1)
  7474. ? 1 : -1];
  7475. int
  7476. main (void)
  7477. {
  7478. ;
  7479. return 0;
  7480. }
  7481. _ACEOF
  7482. if ac_fn_c_try_compile "$LINENO"
  7483. then :
  7484. break
  7485. fi
  7486. rm -f core conftest.err conftest.$ac_objext conftest.beam
  7487. CC="$CC -n32"
  7488. if ac_fn_c_try_compile "$LINENO"
  7489. then :
  7490. ac_cv_sys_largefile_CC=' -n32'; break
  7491. fi
  7492. rm -f core conftest.err conftest.$ac_objext conftest.beam
  7493. break
  7494. done
  7495. CC=$ac_save_CC
  7496. rm -f conftest.$ac_ext
  7497. fi
  7498. fi
  7499. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  7500. printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
  7501. if test "$ac_cv_sys_largefile_CC" != no; then
  7502. CC=$CC$ac_cv_sys_largefile_CC
  7503. fi
  7504. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  7505. printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  7506. if test ${ac_cv_sys_file_offset_bits+y}
  7507. then :
  7508. printf %s "(cached) " >&6
  7509. else $as_nop
  7510. while :; do
  7511. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7512. /* end confdefs.h. */
  7513. #include <sys/types.h>
  7514. /* Check that off_t can represent 2**63 - 1 correctly.
  7515. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7516. since some C++ compilers masquerading as C compilers
  7517. incorrectly reject 9223372036854775807. */
  7518. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  7519. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7520. && LARGE_OFF_T % 2147483647 == 1)
  7521. ? 1 : -1];
  7522. int
  7523. main (void)
  7524. {
  7525. ;
  7526. return 0;
  7527. }
  7528. _ACEOF
  7529. if ac_fn_c_try_compile "$LINENO"
  7530. then :
  7531. ac_cv_sys_file_offset_bits=no; break
  7532. fi
  7533. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  7534. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7535. /* end confdefs.h. */
  7536. #define _FILE_OFFSET_BITS 64
  7537. #include <sys/types.h>
  7538. /* Check that off_t can represent 2**63 - 1 correctly.
  7539. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7540. since some C++ compilers masquerading as C compilers
  7541. incorrectly reject 9223372036854775807. */
  7542. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  7543. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7544. && LARGE_OFF_T % 2147483647 == 1)
  7545. ? 1 : -1];
  7546. int
  7547. main (void)
  7548. {
  7549. ;
  7550. return 0;
  7551. }
  7552. _ACEOF
  7553. if ac_fn_c_try_compile "$LINENO"
  7554. then :
  7555. ac_cv_sys_file_offset_bits=64; break
  7556. fi
  7557. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  7558. ac_cv_sys_file_offset_bits=unknown
  7559. break
  7560. done
  7561. fi
  7562. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  7563. printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
  7564. case $ac_cv_sys_file_offset_bits in #(
  7565. no | unknown) ;;
  7566. *)
  7567. printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
  7568. ;;
  7569. esac
  7570. rm -rf conftest*
  7571. if test $ac_cv_sys_file_offset_bits = unknown; then
  7572. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  7573. printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
  7574. if test ${ac_cv_sys_large_files+y}
  7575. then :
  7576. printf %s "(cached) " >&6
  7577. else $as_nop
  7578. while :; do
  7579. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7580. /* end confdefs.h. */
  7581. #include <sys/types.h>
  7582. /* Check that off_t can represent 2**63 - 1 correctly.
  7583. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7584. since some C++ compilers masquerading as C compilers
  7585. incorrectly reject 9223372036854775807. */
  7586. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  7587. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7588. && LARGE_OFF_T % 2147483647 == 1)
  7589. ? 1 : -1];
  7590. int
  7591. main (void)
  7592. {
  7593. ;
  7594. return 0;
  7595. }
  7596. _ACEOF
  7597. if ac_fn_c_try_compile "$LINENO"
  7598. then :
  7599. ac_cv_sys_large_files=no; break
  7600. fi
  7601. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  7602. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7603. /* end confdefs.h. */
  7604. #define _LARGE_FILES 1
  7605. #include <sys/types.h>
  7606. /* Check that off_t can represent 2**63 - 1 correctly.
  7607. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7608. since some C++ compilers masquerading as C compilers
  7609. incorrectly reject 9223372036854775807. */
  7610. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  7611. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7612. && LARGE_OFF_T % 2147483647 == 1)
  7613. ? 1 : -1];
  7614. int
  7615. main (void)
  7616. {
  7617. ;
  7618. return 0;
  7619. }
  7620. _ACEOF
  7621. if ac_fn_c_try_compile "$LINENO"
  7622. then :
  7623. ac_cv_sys_large_files=1; break
  7624. fi
  7625. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  7626. ac_cv_sys_large_files=unknown
  7627. break
  7628. done
  7629. fi
  7630. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  7631. printf "%s\n" "$ac_cv_sys_large_files" >&6; }
  7632. case $ac_cv_sys_large_files in #(
  7633. no | unknown) ;;
  7634. *)
  7635. printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
  7636. ;;
  7637. esac
  7638. rm -rf conftest*
  7639. fi
  7640. fi
  7641. case $host_os in
  7642. solaris*)
  7643. printf "%s\n" "#define ETC_INET 1" >>confdefs.h
  7644. ;;
  7645. esac
  7646. case `pwd` in
  7647. *\ * | *\ *)
  7648. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  7649. printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  7650. esac
  7651. macro_version='2.4.6'
  7652. macro_revision='2.4.6'
  7653. ltmain=$ac_aux_dir/ltmain.sh
  7654. # Backslashify metacharacters that are still active within
  7655. # double-quoted strings.
  7656. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  7657. # Same as above, but do not quote variable references.
  7658. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  7659. # Sed substitution to delay expansion of an escaped shell variable in a
  7660. # double_quote_subst'ed string.
  7661. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  7662. # Sed substitution to delay expansion of an escaped single quote.
  7663. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  7664. # Sed substitution to avoid accidental globbing in evaled expressions
  7665. no_glob_subst='s/\*/\\\*/g'
  7666. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  7667. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  7668. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  7669. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  7670. printf %s "checking how to print strings... " >&6; }
  7671. # Test print first, because it will be a builtin if present.
  7672. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  7673. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  7674. ECHO='print -r --'
  7675. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  7676. ECHO='printf %s\n'
  7677. else
  7678. # Use this function as a fallback that always works.
  7679. func_fallback_echo ()
  7680. {
  7681. eval 'cat <<_LTECHO_EOF
  7682. $1
  7683. _LTECHO_EOF'
  7684. }
  7685. ECHO='func_fallback_echo'
  7686. fi
  7687. # func_echo_all arg...
  7688. # Invoke $ECHO with all args, space-separated.
  7689. func_echo_all ()
  7690. {
  7691. $ECHO ""
  7692. }
  7693. case $ECHO in
  7694. printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  7695. printf "%s\n" "printf" >&6; } ;;
  7696. print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  7697. printf "%s\n" "print -r" >&6; } ;;
  7698. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  7699. printf "%s\n" "cat" >&6; } ;;
  7700. esac
  7701. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  7702. printf %s "checking for a sed that does not truncate output... " >&6; }
  7703. if test ${ac_cv_path_SED+y}
  7704. then :
  7705. printf %s "(cached) " >&6
  7706. else $as_nop
  7707. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  7708. for ac_i in 1 2 3 4 5 6 7; do
  7709. ac_script="$ac_script$as_nl$ac_script"
  7710. done
  7711. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  7712. { ac_script=; unset ac_script;}
  7713. if test -z "$SED"; then
  7714. ac_path_SED_found=false
  7715. # Loop through the user's path and test for each of PROGNAME-LIST
  7716. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7717. for as_dir in $PATH
  7718. do
  7719. IFS=$as_save_IFS
  7720. case $as_dir in #(((
  7721. '') as_dir=./ ;;
  7722. */) ;;
  7723. *) as_dir=$as_dir/ ;;
  7724. esac
  7725. for ac_prog in sed gsed
  7726. do
  7727. for ac_exec_ext in '' $ac_executable_extensions; do
  7728. ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
  7729. as_fn_executable_p "$ac_path_SED" || continue
  7730. # Check for GNU ac_path_SED and select it if it is found.
  7731. # Check for GNU $ac_path_SED
  7732. case `"$ac_path_SED" --version 2>&1` in
  7733. *GNU*)
  7734. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  7735. *)
  7736. ac_count=0
  7737. printf %s 0123456789 >"conftest.in"
  7738. while :
  7739. do
  7740. cat "conftest.in" "conftest.in" >"conftest.tmp"
  7741. mv "conftest.tmp" "conftest.in"
  7742. cp "conftest.in" "conftest.nl"
  7743. printf "%s\n" '' >> "conftest.nl"
  7744. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  7745. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  7746. as_fn_arith $ac_count + 1 && ac_count=$as_val
  7747. if test $ac_count -gt ${ac_path_SED_max-0}; then
  7748. # Best one so far, save it but keep looking for a better one
  7749. ac_cv_path_SED="$ac_path_SED"
  7750. ac_path_SED_max=$ac_count
  7751. fi
  7752. # 10*(2^10) chars as input seems more than enough
  7753. test $ac_count -gt 10 && break
  7754. done
  7755. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  7756. esac
  7757. $ac_path_SED_found && break 3
  7758. done
  7759. done
  7760. done
  7761. IFS=$as_save_IFS
  7762. if test -z "$ac_cv_path_SED"; then
  7763. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  7764. fi
  7765. else
  7766. ac_cv_path_SED=$SED
  7767. fi
  7768. fi
  7769. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  7770. printf "%s\n" "$ac_cv_path_SED" >&6; }
  7771. SED="$ac_cv_path_SED"
  7772. rm -f conftest.sed
  7773. test -z "$SED" && SED=sed
  7774. Xsed="$SED -e 1s/^X//"
  7775. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  7776. printf %s "checking for fgrep... " >&6; }
  7777. if test ${ac_cv_path_FGREP+y}
  7778. then :
  7779. printf %s "(cached) " >&6
  7780. else $as_nop
  7781. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  7782. then ac_cv_path_FGREP="$GREP -F"
  7783. else
  7784. if test -z "$FGREP"; then
  7785. ac_path_FGREP_found=false
  7786. # Loop through the user's path and test for each of PROGNAME-LIST
  7787. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7788. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  7789. do
  7790. IFS=$as_save_IFS
  7791. case $as_dir in #(((
  7792. '') as_dir=./ ;;
  7793. */) ;;
  7794. *) as_dir=$as_dir/ ;;
  7795. esac
  7796. for ac_prog in fgrep
  7797. do
  7798. for ac_exec_ext in '' $ac_executable_extensions; do
  7799. ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
  7800. as_fn_executable_p "$ac_path_FGREP" || continue
  7801. # Check for GNU ac_path_FGREP and select it if it is found.
  7802. # Check for GNU $ac_path_FGREP
  7803. case `"$ac_path_FGREP" --version 2>&1` in
  7804. *GNU*)
  7805. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  7806. *)
  7807. ac_count=0
  7808. printf %s 0123456789 >"conftest.in"
  7809. while :
  7810. do
  7811. cat "conftest.in" "conftest.in" >"conftest.tmp"
  7812. mv "conftest.tmp" "conftest.in"
  7813. cp "conftest.in" "conftest.nl"
  7814. printf "%s\n" 'FGREP' >> "conftest.nl"
  7815. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  7816. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  7817. as_fn_arith $ac_count + 1 && ac_count=$as_val
  7818. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  7819. # Best one so far, save it but keep looking for a better one
  7820. ac_cv_path_FGREP="$ac_path_FGREP"
  7821. ac_path_FGREP_max=$ac_count
  7822. fi
  7823. # 10*(2^10) chars as input seems more than enough
  7824. test $ac_count -gt 10 && break
  7825. done
  7826. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  7827. esac
  7828. $ac_path_FGREP_found && break 3
  7829. done
  7830. done
  7831. done
  7832. IFS=$as_save_IFS
  7833. if test -z "$ac_cv_path_FGREP"; then
  7834. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  7835. fi
  7836. else
  7837. ac_cv_path_FGREP=$FGREP
  7838. fi
  7839. fi
  7840. fi
  7841. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  7842. printf "%s\n" "$ac_cv_path_FGREP" >&6; }
  7843. FGREP="$ac_cv_path_FGREP"
  7844. test -z "$GREP" && GREP=grep
  7845. # Check whether --with-gnu-ld was given.
  7846. if test ${with_gnu_ld+y}
  7847. then :
  7848. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  7849. else $as_nop
  7850. with_gnu_ld=no
  7851. fi
  7852. ac_prog=ld
  7853. if test yes = "$GCC"; then
  7854. # Check if gcc -print-prog-name=ld gives a path.
  7855. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  7856. printf %s "checking for ld used by $CC... " >&6; }
  7857. case $host in
  7858. *-*-mingw*)
  7859. # gcc leaves a trailing carriage return, which upsets mingw
  7860. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  7861. *)
  7862. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  7863. esac
  7864. case $ac_prog in
  7865. # Accept absolute paths.
  7866. [\\/]* | ?:[\\/]*)
  7867. re_direlt='/[^/][^/]*/\.\./'
  7868. # Canonicalize the pathname of ld
  7869. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  7870. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  7871. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  7872. done
  7873. test -z "$LD" && LD=$ac_prog
  7874. ;;
  7875. "")
  7876. # If it fails, then pretend we aren't using GCC.
  7877. ac_prog=ld
  7878. ;;
  7879. *)
  7880. # If it is relative, then search for the first ld in PATH.
  7881. with_gnu_ld=unknown
  7882. ;;
  7883. esac
  7884. elif test yes = "$with_gnu_ld"; then
  7885. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  7886. printf %s "checking for GNU ld... " >&6; }
  7887. else
  7888. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  7889. printf %s "checking for non-GNU ld... " >&6; }
  7890. fi
  7891. if test ${lt_cv_path_LD+y}
  7892. then :
  7893. printf %s "(cached) " >&6
  7894. else $as_nop
  7895. if test -z "$LD"; then
  7896. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7897. for ac_dir in $PATH; do
  7898. IFS=$lt_save_ifs
  7899. test -z "$ac_dir" && ac_dir=.
  7900. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  7901. lt_cv_path_LD=$ac_dir/$ac_prog
  7902. # Check to see if the program is GNU ld. I'd rather use --version,
  7903. # but apparently some variants of GNU ld only accept -v.
  7904. # Break only if it was the GNU/non-GNU ld that we prefer.
  7905. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  7906. *GNU* | *'with BFD'*)
  7907. test no != "$with_gnu_ld" && break
  7908. ;;
  7909. *)
  7910. test yes != "$with_gnu_ld" && break
  7911. ;;
  7912. esac
  7913. fi
  7914. done
  7915. IFS=$lt_save_ifs
  7916. else
  7917. lt_cv_path_LD=$LD # Let the user override the test with a path.
  7918. fi
  7919. fi
  7920. LD=$lt_cv_path_LD
  7921. if test -n "$LD"; then
  7922. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  7923. printf "%s\n" "$LD" >&6; }
  7924. else
  7925. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7926. printf "%s\n" "no" >&6; }
  7927. fi
  7928. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  7929. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  7930. printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
  7931. if test ${lt_cv_prog_gnu_ld+y}
  7932. then :
  7933. printf %s "(cached) " >&6
  7934. else $as_nop
  7935. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  7936. case `$LD -v 2>&1 </dev/null` in
  7937. *GNU* | *'with BFD'*)
  7938. lt_cv_prog_gnu_ld=yes
  7939. ;;
  7940. *)
  7941. lt_cv_prog_gnu_ld=no
  7942. ;;
  7943. esac
  7944. fi
  7945. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  7946. printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
  7947. with_gnu_ld=$lt_cv_prog_gnu_ld
  7948. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  7949. printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  7950. if test ${lt_cv_path_NM+y}
  7951. then :
  7952. printf %s "(cached) " >&6
  7953. else $as_nop
  7954. if test -n "$NM"; then
  7955. # Let the user override the test.
  7956. lt_cv_path_NM=$NM
  7957. else
  7958. lt_nm_to_check=${ac_tool_prefix}nm
  7959. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  7960. lt_nm_to_check="$lt_nm_to_check nm"
  7961. fi
  7962. for lt_tmp_nm in $lt_nm_to_check; do
  7963. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7964. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  7965. IFS=$lt_save_ifs
  7966. test -z "$ac_dir" && ac_dir=.
  7967. tmp_nm=$ac_dir/$lt_tmp_nm
  7968. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  7969. # Check to see if the nm accepts a BSD-compat flag.
  7970. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  7971. # nm: unknown option "B" ignored
  7972. # Tru64's nm complains that /dev/null is an invalid object file
  7973. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  7974. case $build_os in
  7975. mingw*) lt_bad_file=conftest.nm/nofile ;;
  7976. *) lt_bad_file=/dev/null ;;
  7977. esac
  7978. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  7979. *$lt_bad_file* | *'Invalid file or object type'*)
  7980. lt_cv_path_NM="$tmp_nm -B"
  7981. break 2
  7982. ;;
  7983. *)
  7984. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  7985. */dev/null*)
  7986. lt_cv_path_NM="$tmp_nm -p"
  7987. break 2
  7988. ;;
  7989. *)
  7990. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  7991. continue # so that we can try to find one that supports BSD flags
  7992. ;;
  7993. esac
  7994. ;;
  7995. esac
  7996. fi
  7997. done
  7998. IFS=$lt_save_ifs
  7999. done
  8000. : ${lt_cv_path_NM=no}
  8001. fi
  8002. fi
  8003. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  8004. printf "%s\n" "$lt_cv_path_NM" >&6; }
  8005. if test no != "$lt_cv_path_NM"; then
  8006. NM=$lt_cv_path_NM
  8007. else
  8008. # Didn't find any BSD compatible name lister, look for dumpbin.
  8009. if test -n "$DUMPBIN"; then :
  8010. # Let the user override the test.
  8011. else
  8012. if test -n "$ac_tool_prefix"; then
  8013. for ac_prog in dumpbin "link -dump"
  8014. do
  8015. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  8016. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  8017. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8018. printf %s "checking for $ac_word... " >&6; }
  8019. if test ${ac_cv_prog_DUMPBIN+y}
  8020. then :
  8021. printf %s "(cached) " >&6
  8022. else $as_nop
  8023. if test -n "$DUMPBIN"; then
  8024. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  8025. else
  8026. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8027. for as_dir in $PATH
  8028. do
  8029. IFS=$as_save_IFS
  8030. case $as_dir in #(((
  8031. '') as_dir=./ ;;
  8032. */) ;;
  8033. *) as_dir=$as_dir/ ;;
  8034. esac
  8035. for ac_exec_ext in '' $ac_executable_extensions; do
  8036. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8037. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  8038. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8039. break 2
  8040. fi
  8041. done
  8042. done
  8043. IFS=$as_save_IFS
  8044. fi
  8045. fi
  8046. DUMPBIN=$ac_cv_prog_DUMPBIN
  8047. if test -n "$DUMPBIN"; then
  8048. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  8049. printf "%s\n" "$DUMPBIN" >&6; }
  8050. else
  8051. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8052. printf "%s\n" "no" >&6; }
  8053. fi
  8054. test -n "$DUMPBIN" && break
  8055. done
  8056. fi
  8057. if test -z "$DUMPBIN"; then
  8058. ac_ct_DUMPBIN=$DUMPBIN
  8059. for ac_prog in dumpbin "link -dump"
  8060. do
  8061. # Extract the first word of "$ac_prog", so it can be a program name with args.
  8062. set dummy $ac_prog; ac_word=$2
  8063. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8064. printf %s "checking for $ac_word... " >&6; }
  8065. if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
  8066. then :
  8067. printf %s "(cached) " >&6
  8068. else $as_nop
  8069. if test -n "$ac_ct_DUMPBIN"; then
  8070. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  8071. else
  8072. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8073. for as_dir in $PATH
  8074. do
  8075. IFS=$as_save_IFS
  8076. case $as_dir in #(((
  8077. '') as_dir=./ ;;
  8078. */) ;;
  8079. *) as_dir=$as_dir/ ;;
  8080. esac
  8081. for ac_exec_ext in '' $ac_executable_extensions; do
  8082. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8083. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  8084. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8085. break 2
  8086. fi
  8087. done
  8088. done
  8089. IFS=$as_save_IFS
  8090. fi
  8091. fi
  8092. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  8093. if test -n "$ac_ct_DUMPBIN"; then
  8094. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  8095. printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
  8096. else
  8097. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8098. printf "%s\n" "no" >&6; }
  8099. fi
  8100. test -n "$ac_ct_DUMPBIN" && break
  8101. done
  8102. if test "x$ac_ct_DUMPBIN" = x; then
  8103. DUMPBIN=":"
  8104. else
  8105. case $cross_compiling:$ac_tool_warned in
  8106. yes:)
  8107. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8108. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8109. ac_tool_warned=yes ;;
  8110. esac
  8111. DUMPBIN=$ac_ct_DUMPBIN
  8112. fi
  8113. fi
  8114. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  8115. *COFF*)
  8116. DUMPBIN="$DUMPBIN -symbols -headers"
  8117. ;;
  8118. *)
  8119. DUMPBIN=:
  8120. ;;
  8121. esac
  8122. fi
  8123. if test : != "$DUMPBIN"; then
  8124. NM=$DUMPBIN
  8125. fi
  8126. fi
  8127. test -z "$NM" && NM=nm
  8128. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  8129. printf %s "checking the name lister ($NM) interface... " >&6; }
  8130. if test ${lt_cv_nm_interface+y}
  8131. then :
  8132. printf %s "(cached) " >&6
  8133. else $as_nop
  8134. lt_cv_nm_interface="BSD nm"
  8135. echo "int some_variable = 0;" > conftest.$ac_ext
  8136. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  8137. (eval "$ac_compile" 2>conftest.err)
  8138. cat conftest.err >&5
  8139. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  8140. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  8141. cat conftest.err >&5
  8142. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  8143. cat conftest.out >&5
  8144. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  8145. lt_cv_nm_interface="MS dumpbin"
  8146. fi
  8147. rm -f conftest*
  8148. fi
  8149. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  8150. printf "%s\n" "$lt_cv_nm_interface" >&6; }
  8151. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  8152. printf %s "checking whether ln -s works... " >&6; }
  8153. LN_S=$as_ln_s
  8154. if test "$LN_S" = "ln -s"; then
  8155. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8156. printf "%s\n" "yes" >&6; }
  8157. else
  8158. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  8159. printf "%s\n" "no, using $LN_S" >&6; }
  8160. fi
  8161. # find the maximum length of command line arguments
  8162. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  8163. printf %s "checking the maximum length of command line arguments... " >&6; }
  8164. if test ${lt_cv_sys_max_cmd_len+y}
  8165. then :
  8166. printf %s "(cached) " >&6
  8167. else $as_nop
  8168. i=0
  8169. teststring=ABCD
  8170. case $build_os in
  8171. msdosdjgpp*)
  8172. # On DJGPP, this test can blow up pretty badly due to problems in libc
  8173. # (any single argument exceeding 2000 bytes causes a buffer overrun
  8174. # during glob expansion). Even if it were fixed, the result of this
  8175. # check would be larger than it should be.
  8176. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  8177. ;;
  8178. gnu*)
  8179. # Under GNU Hurd, this test is not required because there is
  8180. # no limit to the length of command line arguments.
  8181. # Libtool will interpret -1 as no limit whatsoever
  8182. lt_cv_sys_max_cmd_len=-1;
  8183. ;;
  8184. cygwin* | mingw* | cegcc*)
  8185. # On Win9x/ME, this test blows up -- it succeeds, but takes
  8186. # about 5 minutes as the teststring grows exponentially.
  8187. # Worse, since 9x/ME are not pre-emptively multitasking,
  8188. # you end up with a "frozen" computer, even though with patience
  8189. # the test eventually succeeds (with a max line length of 256k).
  8190. # Instead, let's just punt: use the minimum linelength reported by
  8191. # all of the supported platforms: 8192 (on NT/2K/XP).
  8192. lt_cv_sys_max_cmd_len=8192;
  8193. ;;
  8194. mint*)
  8195. # On MiNT this can take a long time and run out of memory.
  8196. lt_cv_sys_max_cmd_len=8192;
  8197. ;;
  8198. amigaos*)
  8199. # On AmigaOS with pdksh, this test takes hours, literally.
  8200. # So we just punt and use a minimum line length of 8192.
  8201. lt_cv_sys_max_cmd_len=8192;
  8202. ;;
  8203. bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
  8204. # This has been around since 386BSD, at least. Likely further.
  8205. if test -x /sbin/sysctl; then
  8206. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  8207. elif test -x /usr/sbin/sysctl; then
  8208. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  8209. else
  8210. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  8211. fi
  8212. # And add a safety zone
  8213. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  8214. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  8215. ;;
  8216. interix*)
  8217. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  8218. lt_cv_sys_max_cmd_len=196608
  8219. ;;
  8220. os2*)
  8221. # The test takes a long time on OS/2.
  8222. lt_cv_sys_max_cmd_len=8192
  8223. ;;
  8224. osf*)
  8225. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  8226. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  8227. # nice to cause kernel panics so lets avoid the loop below.
  8228. # First set a reasonable default.
  8229. lt_cv_sys_max_cmd_len=16384
  8230. #
  8231. if test -x /sbin/sysconfig; then
  8232. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  8233. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  8234. esac
  8235. fi
  8236. ;;
  8237. sco3.2v5*)
  8238. lt_cv_sys_max_cmd_len=102400
  8239. ;;
  8240. sysv5* | sco5v6* | sysv4.2uw2*)
  8241. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  8242. if test -n "$kargmax"; then
  8243. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  8244. else
  8245. lt_cv_sys_max_cmd_len=32768
  8246. fi
  8247. ;;
  8248. *)
  8249. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  8250. if test -n "$lt_cv_sys_max_cmd_len" && \
  8251. test undefined != "$lt_cv_sys_max_cmd_len"; then
  8252. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  8253. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  8254. else
  8255. # Make teststring a little bigger before we do anything with it.
  8256. # a 1K string should be a reasonable start.
  8257. for i in 1 2 3 4 5 6 7 8; do
  8258. teststring=$teststring$teststring
  8259. done
  8260. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  8261. # If test is not a shell built-in, we'll probably end up computing a
  8262. # maximum length that is only half of the actual maximum length, but
  8263. # we can't tell.
  8264. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  8265. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  8266. test 17 != "$i" # 1/2 MB should be enough
  8267. do
  8268. i=`expr $i + 1`
  8269. teststring=$teststring$teststring
  8270. done
  8271. # Only check the string length outside the loop.
  8272. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  8273. teststring=
  8274. # Add a significant safety factor because C++ compilers can tack on
  8275. # massive amounts of additional arguments before passing them to the
  8276. # linker. It appears as though 1/2 is a usable value.
  8277. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  8278. fi
  8279. ;;
  8280. esac
  8281. fi
  8282. if test -n "$lt_cv_sys_max_cmd_len"; then
  8283. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  8284. printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
  8285. else
  8286. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
  8287. printf "%s\n" "none" >&6; }
  8288. fi
  8289. max_cmd_len=$lt_cv_sys_max_cmd_len
  8290. : ${CP="cp -f"}
  8291. : ${MV="mv -f"}
  8292. : ${RM="rm -f"}
  8293. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  8294. lt_unset=unset
  8295. else
  8296. lt_unset=false
  8297. fi
  8298. # test EBCDIC or ASCII
  8299. case `echo X|tr X '\101'` in
  8300. A) # ASCII based system
  8301. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  8302. lt_SP2NL='tr \040 \012'
  8303. lt_NL2SP='tr \015\012 \040\040'
  8304. ;;
  8305. *) # EBCDIC based system
  8306. lt_SP2NL='tr \100 \n'
  8307. lt_NL2SP='tr \r\n \100\100'
  8308. ;;
  8309. esac
  8310. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  8311. printf %s "checking how to convert $build file names to $host format... " >&6; }
  8312. if test ${lt_cv_to_host_file_cmd+y}
  8313. then :
  8314. printf %s "(cached) " >&6
  8315. else $as_nop
  8316. case $host in
  8317. *-*-mingw* )
  8318. case $build in
  8319. *-*-mingw* ) # actually msys
  8320. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  8321. ;;
  8322. *-*-cygwin* )
  8323. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  8324. ;;
  8325. * ) # otherwise, assume *nix
  8326. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  8327. ;;
  8328. esac
  8329. ;;
  8330. *-*-cygwin* )
  8331. case $build in
  8332. *-*-mingw* ) # actually msys
  8333. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  8334. ;;
  8335. *-*-cygwin* )
  8336. lt_cv_to_host_file_cmd=func_convert_file_noop
  8337. ;;
  8338. * ) # otherwise, assume *nix
  8339. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  8340. ;;
  8341. esac
  8342. ;;
  8343. * ) # unhandled hosts (and "normal" native builds)
  8344. lt_cv_to_host_file_cmd=func_convert_file_noop
  8345. ;;
  8346. esac
  8347. fi
  8348. to_host_file_cmd=$lt_cv_to_host_file_cmd
  8349. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  8350. printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
  8351. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  8352. printf %s "checking how to convert $build file names to toolchain format... " >&6; }
  8353. if test ${lt_cv_to_tool_file_cmd+y}
  8354. then :
  8355. printf %s "(cached) " >&6
  8356. else $as_nop
  8357. #assume ordinary cross tools, or native build.
  8358. lt_cv_to_tool_file_cmd=func_convert_file_noop
  8359. case $host in
  8360. *-*-mingw* )
  8361. case $build in
  8362. *-*-mingw* ) # actually msys
  8363. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  8364. ;;
  8365. esac
  8366. ;;
  8367. esac
  8368. fi
  8369. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  8370. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  8371. printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
  8372. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  8373. printf %s "checking for $LD option to reload object files... " >&6; }
  8374. if test ${lt_cv_ld_reload_flag+y}
  8375. then :
  8376. printf %s "(cached) " >&6
  8377. else $as_nop
  8378. lt_cv_ld_reload_flag='-r'
  8379. fi
  8380. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  8381. printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
  8382. reload_flag=$lt_cv_ld_reload_flag
  8383. case $reload_flag in
  8384. "" | " "*) ;;
  8385. *) reload_flag=" $reload_flag" ;;
  8386. esac
  8387. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  8388. case $host_os in
  8389. cygwin* | mingw* | pw32* | cegcc*)
  8390. if test yes != "$GCC"; then
  8391. reload_cmds=false
  8392. fi
  8393. ;;
  8394. darwin*)
  8395. if test yes = "$GCC"; then
  8396. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  8397. else
  8398. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  8399. fi
  8400. ;;
  8401. esac
  8402. if test -n "$ac_tool_prefix"; then
  8403. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  8404. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  8405. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8406. printf %s "checking for $ac_word... " >&6; }
  8407. if test ${ac_cv_prog_OBJDUMP+y}
  8408. then :
  8409. printf %s "(cached) " >&6
  8410. else $as_nop
  8411. if test -n "$OBJDUMP"; then
  8412. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  8413. else
  8414. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8415. for as_dir in $PATH
  8416. do
  8417. IFS=$as_save_IFS
  8418. case $as_dir in #(((
  8419. '') as_dir=./ ;;
  8420. */) ;;
  8421. *) as_dir=$as_dir/ ;;
  8422. esac
  8423. for ac_exec_ext in '' $ac_executable_extensions; do
  8424. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8425. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  8426. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8427. break 2
  8428. fi
  8429. done
  8430. done
  8431. IFS=$as_save_IFS
  8432. fi
  8433. fi
  8434. OBJDUMP=$ac_cv_prog_OBJDUMP
  8435. if test -n "$OBJDUMP"; then
  8436. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  8437. printf "%s\n" "$OBJDUMP" >&6; }
  8438. else
  8439. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8440. printf "%s\n" "no" >&6; }
  8441. fi
  8442. fi
  8443. if test -z "$ac_cv_prog_OBJDUMP"; then
  8444. ac_ct_OBJDUMP=$OBJDUMP
  8445. # Extract the first word of "objdump", so it can be a program name with args.
  8446. set dummy objdump; ac_word=$2
  8447. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8448. printf %s "checking for $ac_word... " >&6; }
  8449. if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
  8450. then :
  8451. printf %s "(cached) " >&6
  8452. else $as_nop
  8453. if test -n "$ac_ct_OBJDUMP"; then
  8454. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  8455. else
  8456. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8457. for as_dir in $PATH
  8458. do
  8459. IFS=$as_save_IFS
  8460. case $as_dir in #(((
  8461. '') as_dir=./ ;;
  8462. */) ;;
  8463. *) as_dir=$as_dir/ ;;
  8464. esac
  8465. for ac_exec_ext in '' $ac_executable_extensions; do
  8466. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8467. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  8468. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8469. break 2
  8470. fi
  8471. done
  8472. done
  8473. IFS=$as_save_IFS
  8474. fi
  8475. fi
  8476. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  8477. if test -n "$ac_ct_OBJDUMP"; then
  8478. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  8479. printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
  8480. else
  8481. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8482. printf "%s\n" "no" >&6; }
  8483. fi
  8484. if test "x$ac_ct_OBJDUMP" = x; then
  8485. OBJDUMP="false"
  8486. else
  8487. case $cross_compiling:$ac_tool_warned in
  8488. yes:)
  8489. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8490. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8491. ac_tool_warned=yes ;;
  8492. esac
  8493. OBJDUMP=$ac_ct_OBJDUMP
  8494. fi
  8495. else
  8496. OBJDUMP="$ac_cv_prog_OBJDUMP"
  8497. fi
  8498. test -z "$OBJDUMP" && OBJDUMP=objdump
  8499. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  8500. printf %s "checking how to recognize dependent libraries... " >&6; }
  8501. if test ${lt_cv_deplibs_check_method+y}
  8502. then :
  8503. printf %s "(cached) " >&6
  8504. else $as_nop
  8505. lt_cv_file_magic_cmd='$MAGIC_CMD'
  8506. lt_cv_file_magic_test_file=
  8507. lt_cv_deplibs_check_method='unknown'
  8508. # Need to set the preceding variable on all platforms that support
  8509. # interlibrary dependencies.
  8510. # 'none' -- dependencies not supported.
  8511. # 'unknown' -- same as none, but documents that we really don't know.
  8512. # 'pass_all' -- all dependencies passed with no checks.
  8513. # 'test_compile' -- check by making test program.
  8514. # 'file_magic [[regex]]' -- check by looking for files in library path
  8515. # that responds to the $file_magic_cmd with a given extended regex.
  8516. # If you have 'file' or equivalent on your system and you're not sure
  8517. # whether 'pass_all' will *always* work, you probably want this one.
  8518. case $host_os in
  8519. aix[4-9]*)
  8520. lt_cv_deplibs_check_method=pass_all
  8521. ;;
  8522. beos*)
  8523. lt_cv_deplibs_check_method=pass_all
  8524. ;;
  8525. bsdi[45]*)
  8526. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  8527. lt_cv_file_magic_cmd='/usr/bin/file -L'
  8528. lt_cv_file_magic_test_file=/shlib/libc.so
  8529. ;;
  8530. cygwin*)
  8531. # func_win32_libid is a shell function defined in ltmain.sh
  8532. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  8533. lt_cv_file_magic_cmd='func_win32_libid'
  8534. ;;
  8535. mingw* | pw32*)
  8536. # Base MSYS/MinGW do not provide the 'file' command needed by
  8537. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  8538. # unless we find 'file', for example because we are cross-compiling.
  8539. if ( file / ) >/dev/null 2>&1; then
  8540. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  8541. lt_cv_file_magic_cmd='func_win32_libid'
  8542. else
  8543. # Keep this pattern in sync with the one in func_win32_libid.
  8544. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  8545. lt_cv_file_magic_cmd='$OBJDUMP -f'
  8546. fi
  8547. ;;
  8548. cegcc*)
  8549. # use the weaker test based on 'objdump'. See mingw*.
  8550. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  8551. lt_cv_file_magic_cmd='$OBJDUMP -f'
  8552. ;;
  8553. darwin* | rhapsody*)
  8554. lt_cv_deplibs_check_method=pass_all
  8555. ;;
  8556. freebsd* | dragonfly*)
  8557. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  8558. case $host_cpu in
  8559. i*86 )
  8560. # Not sure whether the presence of OpenBSD here was a mistake.
  8561. # Let's accept both of them until this is cleared up.
  8562. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  8563. lt_cv_file_magic_cmd=/usr/bin/file
  8564. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  8565. ;;
  8566. esac
  8567. else
  8568. lt_cv_deplibs_check_method=pass_all
  8569. fi
  8570. ;;
  8571. haiku*)
  8572. lt_cv_deplibs_check_method=pass_all
  8573. ;;
  8574. hpux10.20* | hpux11*)
  8575. lt_cv_file_magic_cmd=/usr/bin/file
  8576. case $host_cpu in
  8577. ia64*)
  8578. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  8579. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  8580. ;;
  8581. hppa*64*)
  8582. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
  8583. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  8584. ;;
  8585. *)
  8586. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  8587. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  8588. ;;
  8589. esac
  8590. ;;
  8591. interix[3-9]*)
  8592. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  8593. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  8594. ;;
  8595. irix5* | irix6* | nonstopux*)
  8596. case $LD in
  8597. *-32|*"-32 ") libmagic=32-bit;;
  8598. *-n32|*"-n32 ") libmagic=N32;;
  8599. *-64|*"-64 ") libmagic=64-bit;;
  8600. *) libmagic=never-match;;
  8601. esac
  8602. lt_cv_deplibs_check_method=pass_all
  8603. ;;
  8604. # This must be glibc/ELF.
  8605. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  8606. lt_cv_deplibs_check_method=pass_all
  8607. ;;
  8608. netbsd* | netbsdelf*-gnu)
  8609. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  8610. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  8611. else
  8612. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  8613. fi
  8614. ;;
  8615. newos6*)
  8616. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  8617. lt_cv_file_magic_cmd=/usr/bin/file
  8618. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  8619. ;;
  8620. *nto* | *qnx*)
  8621. lt_cv_deplibs_check_method=pass_all
  8622. ;;
  8623. openbsd* | bitrig*)
  8624. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  8625. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  8626. else
  8627. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  8628. fi
  8629. ;;
  8630. osf3* | osf4* | osf5*)
  8631. lt_cv_deplibs_check_method=pass_all
  8632. ;;
  8633. rdos*)
  8634. lt_cv_deplibs_check_method=pass_all
  8635. ;;
  8636. solaris*)
  8637. lt_cv_deplibs_check_method=pass_all
  8638. ;;
  8639. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  8640. lt_cv_deplibs_check_method=pass_all
  8641. ;;
  8642. sysv4 | sysv4.3*)
  8643. case $host_vendor in
  8644. motorola)
  8645. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
  8646. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  8647. ;;
  8648. ncr)
  8649. lt_cv_deplibs_check_method=pass_all
  8650. ;;
  8651. sequent)
  8652. lt_cv_file_magic_cmd='/bin/file'
  8653. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  8654. ;;
  8655. sni)
  8656. lt_cv_file_magic_cmd='/bin/file'
  8657. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  8658. lt_cv_file_magic_test_file=/lib/libc.so
  8659. ;;
  8660. siemens)
  8661. lt_cv_deplibs_check_method=pass_all
  8662. ;;
  8663. pc)
  8664. lt_cv_deplibs_check_method=pass_all
  8665. ;;
  8666. esac
  8667. ;;
  8668. tpf*)
  8669. lt_cv_deplibs_check_method=pass_all
  8670. ;;
  8671. os2*)
  8672. lt_cv_deplibs_check_method=pass_all
  8673. ;;
  8674. esac
  8675. fi
  8676. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  8677. printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
  8678. file_magic_glob=
  8679. want_nocaseglob=no
  8680. if test "$build" = "$host"; then
  8681. case $host_os in
  8682. mingw* | pw32*)
  8683. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  8684. want_nocaseglob=yes
  8685. else
  8686. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  8687. fi
  8688. ;;
  8689. esac
  8690. fi
  8691. file_magic_cmd=$lt_cv_file_magic_cmd
  8692. deplibs_check_method=$lt_cv_deplibs_check_method
  8693. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  8694. if test -n "$ac_tool_prefix"; then
  8695. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  8696. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  8697. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8698. printf %s "checking for $ac_word... " >&6; }
  8699. if test ${ac_cv_prog_DLLTOOL+y}
  8700. then :
  8701. printf %s "(cached) " >&6
  8702. else $as_nop
  8703. if test -n "$DLLTOOL"; then
  8704. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  8705. else
  8706. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8707. for as_dir in $PATH
  8708. do
  8709. IFS=$as_save_IFS
  8710. case $as_dir in #(((
  8711. '') as_dir=./ ;;
  8712. */) ;;
  8713. *) as_dir=$as_dir/ ;;
  8714. esac
  8715. for ac_exec_ext in '' $ac_executable_extensions; do
  8716. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8717. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  8718. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8719. break 2
  8720. fi
  8721. done
  8722. done
  8723. IFS=$as_save_IFS
  8724. fi
  8725. fi
  8726. DLLTOOL=$ac_cv_prog_DLLTOOL
  8727. if test -n "$DLLTOOL"; then
  8728. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  8729. printf "%s\n" "$DLLTOOL" >&6; }
  8730. else
  8731. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8732. printf "%s\n" "no" >&6; }
  8733. fi
  8734. fi
  8735. if test -z "$ac_cv_prog_DLLTOOL"; then
  8736. ac_ct_DLLTOOL=$DLLTOOL
  8737. # Extract the first word of "dlltool", so it can be a program name with args.
  8738. set dummy dlltool; ac_word=$2
  8739. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8740. printf %s "checking for $ac_word... " >&6; }
  8741. if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
  8742. then :
  8743. printf %s "(cached) " >&6
  8744. else $as_nop
  8745. if test -n "$ac_ct_DLLTOOL"; then
  8746. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  8747. else
  8748. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8749. for as_dir in $PATH
  8750. do
  8751. IFS=$as_save_IFS
  8752. case $as_dir in #(((
  8753. '') as_dir=./ ;;
  8754. */) ;;
  8755. *) as_dir=$as_dir/ ;;
  8756. esac
  8757. for ac_exec_ext in '' $ac_executable_extensions; do
  8758. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8759. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  8760. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8761. break 2
  8762. fi
  8763. done
  8764. done
  8765. IFS=$as_save_IFS
  8766. fi
  8767. fi
  8768. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  8769. if test -n "$ac_ct_DLLTOOL"; then
  8770. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  8771. printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
  8772. else
  8773. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8774. printf "%s\n" "no" >&6; }
  8775. fi
  8776. if test "x$ac_ct_DLLTOOL" = x; then
  8777. DLLTOOL="false"
  8778. else
  8779. case $cross_compiling:$ac_tool_warned in
  8780. yes:)
  8781. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8782. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8783. ac_tool_warned=yes ;;
  8784. esac
  8785. DLLTOOL=$ac_ct_DLLTOOL
  8786. fi
  8787. else
  8788. DLLTOOL="$ac_cv_prog_DLLTOOL"
  8789. fi
  8790. test -z "$DLLTOOL" && DLLTOOL=dlltool
  8791. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  8792. printf %s "checking how to associate runtime and link libraries... " >&6; }
  8793. if test ${lt_cv_sharedlib_from_linklib_cmd+y}
  8794. then :
  8795. printf %s "(cached) " >&6
  8796. else $as_nop
  8797. lt_cv_sharedlib_from_linklib_cmd='unknown'
  8798. case $host_os in
  8799. cygwin* | mingw* | pw32* | cegcc*)
  8800. # two different shell functions defined in ltmain.sh;
  8801. # decide which one to use based on capabilities of $DLLTOOL
  8802. case `$DLLTOOL --help 2>&1` in
  8803. *--identify-strict*)
  8804. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  8805. ;;
  8806. *)
  8807. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  8808. ;;
  8809. esac
  8810. ;;
  8811. *)
  8812. # fallback: assume linklib IS sharedlib
  8813. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  8814. ;;
  8815. esac
  8816. fi
  8817. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  8818. printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  8819. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  8820. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  8821. if test -n "$ac_tool_prefix"; then
  8822. for ac_prog in ar
  8823. do
  8824. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  8825. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  8826. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8827. printf %s "checking for $ac_word... " >&6; }
  8828. if test ${ac_cv_prog_AR+y}
  8829. then :
  8830. printf %s "(cached) " >&6
  8831. else $as_nop
  8832. if test -n "$AR"; then
  8833. ac_cv_prog_AR="$AR" # Let the user override the test.
  8834. else
  8835. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8836. for as_dir in $PATH
  8837. do
  8838. IFS=$as_save_IFS
  8839. case $as_dir in #(((
  8840. '') as_dir=./ ;;
  8841. */) ;;
  8842. *) as_dir=$as_dir/ ;;
  8843. esac
  8844. for ac_exec_ext in '' $ac_executable_extensions; do
  8845. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8846. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  8847. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8848. break 2
  8849. fi
  8850. done
  8851. done
  8852. IFS=$as_save_IFS
  8853. fi
  8854. fi
  8855. AR=$ac_cv_prog_AR
  8856. if test -n "$AR"; then
  8857. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  8858. printf "%s\n" "$AR" >&6; }
  8859. else
  8860. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8861. printf "%s\n" "no" >&6; }
  8862. fi
  8863. test -n "$AR" && break
  8864. done
  8865. fi
  8866. if test -z "$AR"; then
  8867. ac_ct_AR=$AR
  8868. for ac_prog in ar
  8869. do
  8870. # Extract the first word of "$ac_prog", so it can be a program name with args.
  8871. set dummy $ac_prog; ac_word=$2
  8872. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8873. printf %s "checking for $ac_word... " >&6; }
  8874. if test ${ac_cv_prog_ac_ct_AR+y}
  8875. then :
  8876. printf %s "(cached) " >&6
  8877. else $as_nop
  8878. if test -n "$ac_ct_AR"; then
  8879. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  8880. else
  8881. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8882. for as_dir in $PATH
  8883. do
  8884. IFS=$as_save_IFS
  8885. case $as_dir in #(((
  8886. '') as_dir=./ ;;
  8887. */) ;;
  8888. *) as_dir=$as_dir/ ;;
  8889. esac
  8890. for ac_exec_ext in '' $ac_executable_extensions; do
  8891. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8892. ac_cv_prog_ac_ct_AR="$ac_prog"
  8893. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8894. break 2
  8895. fi
  8896. done
  8897. done
  8898. IFS=$as_save_IFS
  8899. fi
  8900. fi
  8901. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  8902. if test -n "$ac_ct_AR"; then
  8903. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  8904. printf "%s\n" "$ac_ct_AR" >&6; }
  8905. else
  8906. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8907. printf "%s\n" "no" >&6; }
  8908. fi
  8909. test -n "$ac_ct_AR" && break
  8910. done
  8911. if test "x$ac_ct_AR" = x; then
  8912. AR="false"
  8913. else
  8914. case $cross_compiling:$ac_tool_warned in
  8915. yes:)
  8916. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8917. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8918. ac_tool_warned=yes ;;
  8919. esac
  8920. AR=$ac_ct_AR
  8921. fi
  8922. fi
  8923. : ${AR=ar}
  8924. : ${AR_FLAGS=cr}
  8925. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  8926. printf %s "checking for archiver @FILE support... " >&6; }
  8927. if test ${lt_cv_ar_at_file+y}
  8928. then :
  8929. printf %s "(cached) " >&6
  8930. else $as_nop
  8931. lt_cv_ar_at_file=no
  8932. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8933. /* end confdefs.h. */
  8934. int
  8935. main (void)
  8936. {
  8937. ;
  8938. return 0;
  8939. }
  8940. _ACEOF
  8941. if ac_fn_c_try_compile "$LINENO"
  8942. then :
  8943. echo conftest.$ac_objext > conftest.lst
  8944. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  8945. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  8946. (eval $lt_ar_try) 2>&5
  8947. ac_status=$?
  8948. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8949. test $ac_status = 0; }
  8950. if test 0 -eq "$ac_status"; then
  8951. # Ensure the archiver fails upon bogus file names.
  8952. rm -f conftest.$ac_objext libconftest.a
  8953. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  8954. (eval $lt_ar_try) 2>&5
  8955. ac_status=$?
  8956. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8957. test $ac_status = 0; }
  8958. if test 0 -ne "$ac_status"; then
  8959. lt_cv_ar_at_file=@
  8960. fi
  8961. fi
  8962. rm -f conftest.* libconftest.a
  8963. fi
  8964. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  8965. fi
  8966. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  8967. printf "%s\n" "$lt_cv_ar_at_file" >&6; }
  8968. if test no = "$lt_cv_ar_at_file"; then
  8969. archiver_list_spec=
  8970. else
  8971. archiver_list_spec=$lt_cv_ar_at_file
  8972. fi
  8973. if test -n "$ac_tool_prefix"; then
  8974. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  8975. set dummy ${ac_tool_prefix}strip; ac_word=$2
  8976. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8977. printf %s "checking for $ac_word... " >&6; }
  8978. if test ${ac_cv_prog_STRIP+y}
  8979. then :
  8980. printf %s "(cached) " >&6
  8981. else $as_nop
  8982. if test -n "$STRIP"; then
  8983. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  8984. else
  8985. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8986. for as_dir in $PATH
  8987. do
  8988. IFS=$as_save_IFS
  8989. case $as_dir in #(((
  8990. '') as_dir=./ ;;
  8991. */) ;;
  8992. *) as_dir=$as_dir/ ;;
  8993. esac
  8994. for ac_exec_ext in '' $ac_executable_extensions; do
  8995. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8996. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  8997. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8998. break 2
  8999. fi
  9000. done
  9001. done
  9002. IFS=$as_save_IFS
  9003. fi
  9004. fi
  9005. STRIP=$ac_cv_prog_STRIP
  9006. if test -n "$STRIP"; then
  9007. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  9008. printf "%s\n" "$STRIP" >&6; }
  9009. else
  9010. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9011. printf "%s\n" "no" >&6; }
  9012. fi
  9013. fi
  9014. if test -z "$ac_cv_prog_STRIP"; then
  9015. ac_ct_STRIP=$STRIP
  9016. # Extract the first word of "strip", so it can be a program name with args.
  9017. set dummy strip; ac_word=$2
  9018. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9019. printf %s "checking for $ac_word... " >&6; }
  9020. if test ${ac_cv_prog_ac_ct_STRIP+y}
  9021. then :
  9022. printf %s "(cached) " >&6
  9023. else $as_nop
  9024. if test -n "$ac_ct_STRIP"; then
  9025. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  9026. else
  9027. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9028. for as_dir in $PATH
  9029. do
  9030. IFS=$as_save_IFS
  9031. case $as_dir in #(((
  9032. '') as_dir=./ ;;
  9033. */) ;;
  9034. *) as_dir=$as_dir/ ;;
  9035. esac
  9036. for ac_exec_ext in '' $ac_executable_extensions; do
  9037. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  9038. ac_cv_prog_ac_ct_STRIP="strip"
  9039. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  9040. break 2
  9041. fi
  9042. done
  9043. done
  9044. IFS=$as_save_IFS
  9045. fi
  9046. fi
  9047. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  9048. if test -n "$ac_ct_STRIP"; then
  9049. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  9050. printf "%s\n" "$ac_ct_STRIP" >&6; }
  9051. else
  9052. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9053. printf "%s\n" "no" >&6; }
  9054. fi
  9055. if test "x$ac_ct_STRIP" = x; then
  9056. STRIP=":"
  9057. else
  9058. case $cross_compiling:$ac_tool_warned in
  9059. yes:)
  9060. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9061. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9062. ac_tool_warned=yes ;;
  9063. esac
  9064. STRIP=$ac_ct_STRIP
  9065. fi
  9066. else
  9067. STRIP="$ac_cv_prog_STRIP"
  9068. fi
  9069. test -z "$STRIP" && STRIP=:
  9070. if test -n "$ac_tool_prefix"; then
  9071. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  9072. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  9073. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9074. printf %s "checking for $ac_word... " >&6; }
  9075. if test ${ac_cv_prog_RANLIB+y}
  9076. then :
  9077. printf %s "(cached) " >&6
  9078. else $as_nop
  9079. if test -n "$RANLIB"; then
  9080. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  9081. else
  9082. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9083. for as_dir in $PATH
  9084. do
  9085. IFS=$as_save_IFS
  9086. case $as_dir in #(((
  9087. '') as_dir=./ ;;
  9088. */) ;;
  9089. *) as_dir=$as_dir/ ;;
  9090. esac
  9091. for ac_exec_ext in '' $ac_executable_extensions; do
  9092. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  9093. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  9094. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  9095. break 2
  9096. fi
  9097. done
  9098. done
  9099. IFS=$as_save_IFS
  9100. fi
  9101. fi
  9102. RANLIB=$ac_cv_prog_RANLIB
  9103. if test -n "$RANLIB"; then
  9104. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  9105. printf "%s\n" "$RANLIB" >&6; }
  9106. else
  9107. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9108. printf "%s\n" "no" >&6; }
  9109. fi
  9110. fi
  9111. if test -z "$ac_cv_prog_RANLIB"; then
  9112. ac_ct_RANLIB=$RANLIB
  9113. # Extract the first word of "ranlib", so it can be a program name with args.
  9114. set dummy ranlib; ac_word=$2
  9115. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9116. printf %s "checking for $ac_word... " >&6; }
  9117. if test ${ac_cv_prog_ac_ct_RANLIB+y}
  9118. then :
  9119. printf %s "(cached) " >&6
  9120. else $as_nop
  9121. if test -n "$ac_ct_RANLIB"; then
  9122. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  9123. else
  9124. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9125. for as_dir in $PATH
  9126. do
  9127. IFS=$as_save_IFS
  9128. case $as_dir in #(((
  9129. '') as_dir=./ ;;
  9130. */) ;;
  9131. *) as_dir=$as_dir/ ;;
  9132. esac
  9133. for ac_exec_ext in '' $ac_executable_extensions; do
  9134. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  9135. ac_cv_prog_ac_ct_RANLIB="ranlib"
  9136. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  9137. break 2
  9138. fi
  9139. done
  9140. done
  9141. IFS=$as_save_IFS
  9142. fi
  9143. fi
  9144. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  9145. if test -n "$ac_ct_RANLIB"; then
  9146. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  9147. printf "%s\n" "$ac_ct_RANLIB" >&6; }
  9148. else
  9149. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9150. printf "%s\n" "no" >&6; }
  9151. fi
  9152. if test "x$ac_ct_RANLIB" = x; then
  9153. RANLIB=":"
  9154. else
  9155. case $cross_compiling:$ac_tool_warned in
  9156. yes:)
  9157. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9158. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9159. ac_tool_warned=yes ;;
  9160. esac
  9161. RANLIB=$ac_ct_RANLIB
  9162. fi
  9163. else
  9164. RANLIB="$ac_cv_prog_RANLIB"
  9165. fi
  9166. test -z "$RANLIB" && RANLIB=:
  9167. # Determine commands to create old-style static archives.
  9168. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  9169. old_postinstall_cmds='chmod 644 $oldlib'
  9170. old_postuninstall_cmds=
  9171. if test -n "$RANLIB"; then
  9172. case $host_os in
  9173. bitrig* | openbsd*)
  9174. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  9175. ;;
  9176. *)
  9177. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  9178. ;;
  9179. esac
  9180. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  9181. fi
  9182. case $host_os in
  9183. darwin*)
  9184. lock_old_archive_extraction=yes ;;
  9185. *)
  9186. lock_old_archive_extraction=no ;;
  9187. esac
  9188. # If no C compiler was specified, use CC.
  9189. LTCC=${LTCC-"$CC"}
  9190. # If no C compiler flags were specified, use CFLAGS.
  9191. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  9192. # Allow CC to be a program name with arguments.
  9193. compiler=$CC
  9194. # Check for command to grab the raw symbol name followed by C symbol from nm.
  9195. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  9196. printf %s "checking command to parse $NM output from $compiler object... " >&6; }
  9197. if test ${lt_cv_sys_global_symbol_pipe+y}
  9198. then :
  9199. printf %s "(cached) " >&6
  9200. else $as_nop
  9201. # These are sane defaults that work on at least a few old systems.
  9202. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  9203. # Character class describing NM global symbol codes.
  9204. symcode='[BCDEGRST]'
  9205. # Regexp to match symbols that can be accessed directly from C.
  9206. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  9207. # Define system-specific variables.
  9208. case $host_os in
  9209. aix*)
  9210. symcode='[BCDT]'
  9211. ;;
  9212. cygwin* | mingw* | pw32* | cegcc*)
  9213. symcode='[ABCDGISTW]'
  9214. ;;
  9215. hpux*)
  9216. if test ia64 = "$host_cpu"; then
  9217. symcode='[ABCDEGRST]'
  9218. fi
  9219. ;;
  9220. irix* | nonstopux*)
  9221. symcode='[BCDEGRST]'
  9222. ;;
  9223. osf*)
  9224. symcode='[BCDEGQRST]'
  9225. ;;
  9226. solaris*)
  9227. symcode='[BDRT]'
  9228. ;;
  9229. sco3.2v5*)
  9230. symcode='[DT]'
  9231. ;;
  9232. sysv4.2uw2*)
  9233. symcode='[DT]'
  9234. ;;
  9235. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  9236. symcode='[ABDT]'
  9237. ;;
  9238. sysv4)
  9239. symcode='[DFNSTU]'
  9240. ;;
  9241. esac
  9242. # If we're using GNU nm, then use its standard symbol codes.
  9243. case `$NM -V 2>&1` in
  9244. *GNU* | *'with BFD'*)
  9245. symcode='[ABCDGIRSTW]' ;;
  9246. esac
  9247. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  9248. # Gets list of data symbols to import.
  9249. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  9250. # Adjust the below global symbol transforms to fixup imported variables.
  9251. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  9252. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  9253. lt_c_name_lib_hook="\
  9254. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  9255. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  9256. else
  9257. # Disable hooks by default.
  9258. lt_cv_sys_global_symbol_to_import=
  9259. lt_cdecl_hook=
  9260. lt_c_name_hook=
  9261. lt_c_name_lib_hook=
  9262. fi
  9263. # Transform an extracted symbol line into a proper C declaration.
  9264. # Some systems (esp. on ia64) link data and code symbols differently,
  9265. # so use this general approach.
  9266. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  9267. $lt_cdecl_hook\
  9268. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  9269. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  9270. # Transform an extracted symbol line into symbol name and symbol address
  9271. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  9272. $lt_c_name_hook\
  9273. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  9274. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  9275. # Transform an extracted symbol line into symbol name with lib prefix and
  9276. # symbol address.
  9277. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  9278. $lt_c_name_lib_hook\
  9279. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  9280. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  9281. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  9282. # Handle CRLF in mingw tool chain
  9283. opt_cr=
  9284. case $build_os in
  9285. mingw*)
  9286. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  9287. ;;
  9288. esac
  9289. # Try without a prefix underscore, then with it.
  9290. for ac_symprfx in "" "_"; do
  9291. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  9292. symxfrm="\\1 $ac_symprfx\\2 \\2"
  9293. # Write the raw and C identifiers.
  9294. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  9295. # Fake it for dumpbin and say T for any non-static function,
  9296. # D for any global variable and I for any imported variable.
  9297. # Also find C++ and __fastcall symbols from MSVC++,
  9298. # which start with @ or ?.
  9299. lt_cv_sys_global_symbol_pipe="$AWK '"\
  9300. " {last_section=section; section=\$ 3};"\
  9301. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  9302. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  9303. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  9304. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  9305. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  9306. " \$ 0!~/External *\|/{next};"\
  9307. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  9308. " {if(hide[section]) next};"\
  9309. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  9310. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  9311. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  9312. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  9313. " ' prfx=^$ac_symprfx"
  9314. else
  9315. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  9316. fi
  9317. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  9318. # Check to see that the pipe works correctly.
  9319. pipe_works=no
  9320. rm -f conftest*
  9321. cat > conftest.$ac_ext <<_LT_EOF
  9322. #ifdef __cplusplus
  9323. extern "C" {
  9324. #endif
  9325. char nm_test_var;
  9326. void nm_test_func(void);
  9327. void nm_test_func(void){}
  9328. #ifdef __cplusplus
  9329. }
  9330. #endif
  9331. int main(){nm_test_var='a';nm_test_func();return(0);}
  9332. _LT_EOF
  9333. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9334. (eval $ac_compile) 2>&5
  9335. ac_status=$?
  9336. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9337. test $ac_status = 0; }; then
  9338. # Now try to grab the symbols.
  9339. nlist=conftest.nm
  9340. $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
  9341. if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
  9342. # Try sorting and uniquifying the output.
  9343. if sort "$nlist" | uniq > "$nlist"T; then
  9344. mv -f "$nlist"T "$nlist"
  9345. else
  9346. rm -f "$nlist"T
  9347. fi
  9348. # Make sure that we snagged all the symbols we need.
  9349. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  9350. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  9351. cat <<_LT_EOF > conftest.$ac_ext
  9352. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  9353. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  9354. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  9355. relocations are performed -- see ld's documentation on pseudo-relocs. */
  9356. # define LT_DLSYM_CONST
  9357. #elif defined __osf__
  9358. /* This system does not cope well with relocations in const data. */
  9359. # define LT_DLSYM_CONST
  9360. #else
  9361. # define LT_DLSYM_CONST const
  9362. #endif
  9363. #ifdef __cplusplus
  9364. extern "C" {
  9365. #endif
  9366. _LT_EOF
  9367. # Now generate the symbol file.
  9368. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  9369. cat <<_LT_EOF >> conftest.$ac_ext
  9370. /* The mapping between symbol names and symbols. */
  9371. LT_DLSYM_CONST struct {
  9372. const char *name;
  9373. void *address;
  9374. }
  9375. lt__PROGRAM__LTX_preloaded_symbols[] =
  9376. {
  9377. { "@PROGRAM@", (void *) 0 },
  9378. _LT_EOF
  9379. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  9380. cat <<\_LT_EOF >> conftest.$ac_ext
  9381. {0, (void *) 0}
  9382. };
  9383. /* This works around a problem in FreeBSD linker */
  9384. #ifdef FREEBSD_WORKAROUND
  9385. static const void *lt_preloaded_setup() {
  9386. return lt__PROGRAM__LTX_preloaded_symbols;
  9387. }
  9388. #endif
  9389. #ifdef __cplusplus
  9390. }
  9391. #endif
  9392. _LT_EOF
  9393. # Now try linking the two files.
  9394. mv conftest.$ac_objext conftstm.$ac_objext
  9395. lt_globsym_save_LIBS=$LIBS
  9396. lt_globsym_save_CFLAGS=$CFLAGS
  9397. LIBS=conftstm.$ac_objext
  9398. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  9399. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9400. (eval $ac_link) 2>&5
  9401. ac_status=$?
  9402. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9403. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  9404. pipe_works=yes
  9405. fi
  9406. LIBS=$lt_globsym_save_LIBS
  9407. CFLAGS=$lt_globsym_save_CFLAGS
  9408. else
  9409. echo "cannot find nm_test_func in $nlist" >&5
  9410. fi
  9411. else
  9412. echo "cannot find nm_test_var in $nlist" >&5
  9413. fi
  9414. else
  9415. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  9416. fi
  9417. else
  9418. echo "$progname: failed program was:" >&5
  9419. cat conftest.$ac_ext >&5
  9420. fi
  9421. rm -rf conftest* conftst*
  9422. # Do not use the global_symbol_pipe unless it works.
  9423. if test yes = "$pipe_works"; then
  9424. break
  9425. else
  9426. lt_cv_sys_global_symbol_pipe=
  9427. fi
  9428. done
  9429. fi
  9430. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  9431. lt_cv_sys_global_symbol_to_cdecl=
  9432. fi
  9433. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  9434. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  9435. printf "%s\n" "failed" >&6; }
  9436. else
  9437. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  9438. printf "%s\n" "ok" >&6; }
  9439. fi
  9440. # Response file support.
  9441. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  9442. nm_file_list_spec='@'
  9443. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  9444. nm_file_list_spec='@'
  9445. fi
  9446. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  9447. printf %s "checking for sysroot... " >&6; }
  9448. # Check whether --with-sysroot was given.
  9449. if test ${with_sysroot+y}
  9450. then :
  9451. withval=$with_sysroot;
  9452. else $as_nop
  9453. with_sysroot=no
  9454. fi
  9455. lt_sysroot=
  9456. case $with_sysroot in #(
  9457. yes)
  9458. if test yes = "$GCC"; then
  9459. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  9460. fi
  9461. ;; #(
  9462. /*)
  9463. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  9464. ;; #(
  9465. no|'')
  9466. ;; #(
  9467. *)
  9468. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  9469. printf "%s\n" "$with_sysroot" >&6; }
  9470. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  9471. ;;
  9472. esac
  9473. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  9474. printf "%s\n" "${lt_sysroot:-no}" >&6; }
  9475. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  9476. printf %s "checking for a working dd... " >&6; }
  9477. if test ${ac_cv_path_lt_DD+y}
  9478. then :
  9479. printf %s "(cached) " >&6
  9480. else $as_nop
  9481. printf 0123456789abcdef0123456789abcdef >conftest.i
  9482. cat conftest.i conftest.i >conftest2.i
  9483. : ${lt_DD:=$DD}
  9484. if test -z "$lt_DD"; then
  9485. ac_path_lt_DD_found=false
  9486. # Loop through the user's path and test for each of PROGNAME-LIST
  9487. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9488. for as_dir in $PATH
  9489. do
  9490. IFS=$as_save_IFS
  9491. case $as_dir in #(((
  9492. '') as_dir=./ ;;
  9493. */) ;;
  9494. *) as_dir=$as_dir/ ;;
  9495. esac
  9496. for ac_prog in dd
  9497. do
  9498. for ac_exec_ext in '' $ac_executable_extensions; do
  9499. ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
  9500. as_fn_executable_p "$ac_path_lt_DD" || continue
  9501. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  9502. cmp -s conftest.i conftest.out \
  9503. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  9504. fi
  9505. $ac_path_lt_DD_found && break 3
  9506. done
  9507. done
  9508. done
  9509. IFS=$as_save_IFS
  9510. if test -z "$ac_cv_path_lt_DD"; then
  9511. :
  9512. fi
  9513. else
  9514. ac_cv_path_lt_DD=$lt_DD
  9515. fi
  9516. rm -f conftest.i conftest2.i conftest.out
  9517. fi
  9518. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  9519. printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
  9520. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  9521. printf %s "checking how to truncate binary pipes... " >&6; }
  9522. if test ${lt_cv_truncate_bin+y}
  9523. then :
  9524. printf %s "(cached) " >&6
  9525. else $as_nop
  9526. printf 0123456789abcdef0123456789abcdef >conftest.i
  9527. cat conftest.i conftest.i >conftest2.i
  9528. lt_cv_truncate_bin=
  9529. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  9530. cmp -s conftest.i conftest.out \
  9531. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  9532. fi
  9533. rm -f conftest.i conftest2.i conftest.out
  9534. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  9535. fi
  9536. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  9537. printf "%s\n" "$lt_cv_truncate_bin" >&6; }
  9538. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  9539. func_cc_basename ()
  9540. {
  9541. for cc_temp in $*""; do
  9542. case $cc_temp in
  9543. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  9544. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  9545. \-*) ;;
  9546. *) break;;
  9547. esac
  9548. done
  9549. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  9550. }
  9551. # Check whether --enable-libtool-lock was given.
  9552. if test ${enable_libtool_lock+y}
  9553. then :
  9554. enableval=$enable_libtool_lock;
  9555. fi
  9556. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  9557. # Some flags need to be propagated to the compiler or linker for good
  9558. # libtool support.
  9559. case $host in
  9560. ia64-*-hpux*)
  9561. # Find out what ABI is being produced by ac_compile, and set mode
  9562. # options accordingly.
  9563. echo 'int i;' > conftest.$ac_ext
  9564. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9565. (eval $ac_compile) 2>&5
  9566. ac_status=$?
  9567. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9568. test $ac_status = 0; }; then
  9569. case `/usr/bin/file conftest.$ac_objext` in
  9570. *ELF-32*)
  9571. HPUX_IA64_MODE=32
  9572. ;;
  9573. *ELF-64*)
  9574. HPUX_IA64_MODE=64
  9575. ;;
  9576. esac
  9577. fi
  9578. rm -rf conftest*
  9579. ;;
  9580. *-*-irix6*)
  9581. # Find out what ABI is being produced by ac_compile, and set linker
  9582. # options accordingly.
  9583. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  9584. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9585. (eval $ac_compile) 2>&5
  9586. ac_status=$?
  9587. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9588. test $ac_status = 0; }; then
  9589. if test yes = "$lt_cv_prog_gnu_ld"; then
  9590. case `/usr/bin/file conftest.$ac_objext` in
  9591. *32-bit*)
  9592. LD="${LD-ld} -melf32bsmip"
  9593. ;;
  9594. *N32*)
  9595. LD="${LD-ld} -melf32bmipn32"
  9596. ;;
  9597. *64-bit*)
  9598. LD="${LD-ld} -melf64bmip"
  9599. ;;
  9600. esac
  9601. else
  9602. case `/usr/bin/file conftest.$ac_objext` in
  9603. *32-bit*)
  9604. LD="${LD-ld} -32"
  9605. ;;
  9606. *N32*)
  9607. LD="${LD-ld} -n32"
  9608. ;;
  9609. *64-bit*)
  9610. LD="${LD-ld} -64"
  9611. ;;
  9612. esac
  9613. fi
  9614. fi
  9615. rm -rf conftest*
  9616. ;;
  9617. mips64*-*linux*)
  9618. # Find out what ABI is being produced by ac_compile, and set linker
  9619. # options accordingly.
  9620. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  9621. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9622. (eval $ac_compile) 2>&5
  9623. ac_status=$?
  9624. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9625. test $ac_status = 0; }; then
  9626. emul=elf
  9627. case `/usr/bin/file conftest.$ac_objext` in
  9628. *32-bit*)
  9629. emul="${emul}32"
  9630. ;;
  9631. *64-bit*)
  9632. emul="${emul}64"
  9633. ;;
  9634. esac
  9635. case `/usr/bin/file conftest.$ac_objext` in
  9636. *MSB*)
  9637. emul="${emul}btsmip"
  9638. ;;
  9639. *LSB*)
  9640. emul="${emul}ltsmip"
  9641. ;;
  9642. esac
  9643. case `/usr/bin/file conftest.$ac_objext` in
  9644. *N32*)
  9645. emul="${emul}n32"
  9646. ;;
  9647. esac
  9648. LD="${LD-ld} -m $emul"
  9649. fi
  9650. rm -rf conftest*
  9651. ;;
  9652. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  9653. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  9654. # Find out what ABI is being produced by ac_compile, and set linker
  9655. # options accordingly. Note that the listed cases only cover the
  9656. # situations where additional linker options are needed (such as when
  9657. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  9658. # vice versa); the common cases where no linker options are needed do
  9659. # not appear in the list.
  9660. echo 'int i;' > conftest.$ac_ext
  9661. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9662. (eval $ac_compile) 2>&5
  9663. ac_status=$?
  9664. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9665. test $ac_status = 0; }; then
  9666. case `/usr/bin/file conftest.o` in
  9667. *32-bit*)
  9668. case $host in
  9669. x86_64-*kfreebsd*-gnu)
  9670. LD="${LD-ld} -m elf_i386_fbsd"
  9671. ;;
  9672. x86_64-*linux*)
  9673. case `/usr/bin/file conftest.o` in
  9674. *x86-64*)
  9675. LD="${LD-ld} -m elf32_x86_64"
  9676. ;;
  9677. *)
  9678. LD="${LD-ld} -m elf_i386"
  9679. ;;
  9680. esac
  9681. ;;
  9682. powerpc64le-*linux*)
  9683. LD="${LD-ld} -m elf32lppclinux"
  9684. ;;
  9685. powerpc64-*linux*)
  9686. LD="${LD-ld} -m elf32ppclinux"
  9687. ;;
  9688. s390x-*linux*)
  9689. LD="${LD-ld} -m elf_s390"
  9690. ;;
  9691. sparc64-*linux*)
  9692. LD="${LD-ld} -m elf32_sparc"
  9693. ;;
  9694. esac
  9695. ;;
  9696. *64-bit*)
  9697. case $host in
  9698. x86_64-*kfreebsd*-gnu)
  9699. LD="${LD-ld} -m elf_x86_64_fbsd"
  9700. ;;
  9701. x86_64-*linux*)
  9702. LD="${LD-ld} -m elf_x86_64"
  9703. ;;
  9704. powerpcle-*linux*)
  9705. LD="${LD-ld} -m elf64lppc"
  9706. ;;
  9707. powerpc-*linux*)
  9708. LD="${LD-ld} -m elf64ppc"
  9709. ;;
  9710. s390*-*linux*|s390*-*tpf*)
  9711. LD="${LD-ld} -m elf64_s390"
  9712. ;;
  9713. sparc*-*linux*)
  9714. LD="${LD-ld} -m elf64_sparc"
  9715. ;;
  9716. esac
  9717. ;;
  9718. esac
  9719. fi
  9720. rm -rf conftest*
  9721. ;;
  9722. *-*-sco3.2v5*)
  9723. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  9724. SAVE_CFLAGS=$CFLAGS
  9725. CFLAGS="$CFLAGS -belf"
  9726. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  9727. printf %s "checking whether the C compiler needs -belf... " >&6; }
  9728. if test ${lt_cv_cc_needs_belf+y}
  9729. then :
  9730. printf %s "(cached) " >&6
  9731. else $as_nop
  9732. ac_ext=c
  9733. ac_cpp='$CPP $CPPFLAGS'
  9734. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9735. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9736. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9737. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9738. /* end confdefs.h. */
  9739. int
  9740. main (void)
  9741. {
  9742. ;
  9743. return 0;
  9744. }
  9745. _ACEOF
  9746. if ac_fn_c_try_link "$LINENO"
  9747. then :
  9748. lt_cv_cc_needs_belf=yes
  9749. else $as_nop
  9750. lt_cv_cc_needs_belf=no
  9751. fi
  9752. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9753. conftest$ac_exeext conftest.$ac_ext
  9754. ac_ext=c
  9755. ac_cpp='$CPP $CPPFLAGS'
  9756. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9757. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9758. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9759. fi
  9760. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  9761. printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
  9762. if test yes != "$lt_cv_cc_needs_belf"; then
  9763. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  9764. CFLAGS=$SAVE_CFLAGS
  9765. fi
  9766. ;;
  9767. *-*solaris*)
  9768. # Find out what ABI is being produced by ac_compile, and set linker
  9769. # options accordingly.
  9770. echo 'int i;' > conftest.$ac_ext
  9771. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9772. (eval $ac_compile) 2>&5
  9773. ac_status=$?
  9774. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9775. test $ac_status = 0; }; then
  9776. case `/usr/bin/file conftest.o` in
  9777. *64-bit*)
  9778. case $lt_cv_prog_gnu_ld in
  9779. yes*)
  9780. case $host in
  9781. i?86-*-solaris*|x86_64-*-solaris*)
  9782. LD="${LD-ld} -m elf_x86_64"
  9783. ;;
  9784. sparc*-*-solaris*)
  9785. LD="${LD-ld} -m elf64_sparc"
  9786. ;;
  9787. esac
  9788. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  9789. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  9790. LD=${LD-ld}_sol2
  9791. fi
  9792. ;;
  9793. *)
  9794. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  9795. LD="${LD-ld} -64"
  9796. fi
  9797. ;;
  9798. esac
  9799. ;;
  9800. esac
  9801. fi
  9802. rm -rf conftest*
  9803. ;;
  9804. esac
  9805. need_locks=$enable_libtool_lock
  9806. if test -n "$ac_tool_prefix"; then
  9807. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  9808. set dummy ${ac_tool_prefix}mt; ac_word=$2
  9809. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9810. printf %s "checking for $ac_word... " >&6; }
  9811. if test ${ac_cv_prog_MANIFEST_TOOL+y}
  9812. then :
  9813. printf %s "(cached) " >&6
  9814. else $as_nop
  9815. if test -n "$MANIFEST_TOOL"; then
  9816. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  9817. else
  9818. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9819. for as_dir in $PATH
  9820. do
  9821. IFS=$as_save_IFS
  9822. case $as_dir in #(((
  9823. '') as_dir=./ ;;
  9824. */) ;;
  9825. *) as_dir=$as_dir/ ;;
  9826. esac
  9827. for ac_exec_ext in '' $ac_executable_extensions; do
  9828. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  9829. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  9830. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  9831. break 2
  9832. fi
  9833. done
  9834. done
  9835. IFS=$as_save_IFS
  9836. fi
  9837. fi
  9838. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  9839. if test -n "$MANIFEST_TOOL"; then
  9840. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  9841. printf "%s\n" "$MANIFEST_TOOL" >&6; }
  9842. else
  9843. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9844. printf "%s\n" "no" >&6; }
  9845. fi
  9846. fi
  9847. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  9848. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  9849. # Extract the first word of "mt", so it can be a program name with args.
  9850. set dummy mt; ac_word=$2
  9851. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9852. printf %s "checking for $ac_word... " >&6; }
  9853. if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
  9854. then :
  9855. printf %s "(cached) " >&6
  9856. else $as_nop
  9857. if test -n "$ac_ct_MANIFEST_TOOL"; then
  9858. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  9859. else
  9860. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9861. for as_dir in $PATH
  9862. do
  9863. IFS=$as_save_IFS
  9864. case $as_dir in #(((
  9865. '') as_dir=./ ;;
  9866. */) ;;
  9867. *) as_dir=$as_dir/ ;;
  9868. esac
  9869. for ac_exec_ext in '' $ac_executable_extensions; do
  9870. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  9871. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  9872. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  9873. break 2
  9874. fi
  9875. done
  9876. done
  9877. IFS=$as_save_IFS
  9878. fi
  9879. fi
  9880. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  9881. if test -n "$ac_ct_MANIFEST_TOOL"; then
  9882. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  9883. printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
  9884. else
  9885. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9886. printf "%s\n" "no" >&6; }
  9887. fi
  9888. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  9889. MANIFEST_TOOL=":"
  9890. else
  9891. case $cross_compiling:$ac_tool_warned in
  9892. yes:)
  9893. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9894. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9895. ac_tool_warned=yes ;;
  9896. esac
  9897. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  9898. fi
  9899. else
  9900. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  9901. fi
  9902. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  9903. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  9904. printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  9905. if test ${lt_cv_path_mainfest_tool+y}
  9906. then :
  9907. printf %s "(cached) " >&6
  9908. else $as_nop
  9909. lt_cv_path_mainfest_tool=no
  9910. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  9911. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  9912. cat conftest.err >&5
  9913. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  9914. lt_cv_path_mainfest_tool=yes
  9915. fi
  9916. rm -f conftest*
  9917. fi
  9918. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  9919. printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
  9920. if test yes != "$lt_cv_path_mainfest_tool"; then
  9921. MANIFEST_TOOL=:
  9922. fi
  9923. case $host_os in
  9924. rhapsody* | darwin*)
  9925. if test -n "$ac_tool_prefix"; then
  9926. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  9927. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  9928. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9929. printf %s "checking for $ac_word... " >&6; }
  9930. if test ${ac_cv_prog_DSYMUTIL+y}
  9931. then :
  9932. printf %s "(cached) " >&6
  9933. else $as_nop
  9934. if test -n "$DSYMUTIL"; then
  9935. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  9936. else
  9937. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9938. for as_dir in $PATH
  9939. do
  9940. IFS=$as_save_IFS
  9941. case $as_dir in #(((
  9942. '') as_dir=./ ;;
  9943. */) ;;
  9944. *) as_dir=$as_dir/ ;;
  9945. esac
  9946. for ac_exec_ext in '' $ac_executable_extensions; do
  9947. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  9948. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  9949. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  9950. break 2
  9951. fi
  9952. done
  9953. done
  9954. IFS=$as_save_IFS
  9955. fi
  9956. fi
  9957. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  9958. if test -n "$DSYMUTIL"; then
  9959. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  9960. printf "%s\n" "$DSYMUTIL" >&6; }
  9961. else
  9962. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9963. printf "%s\n" "no" >&6; }
  9964. fi
  9965. fi
  9966. if test -z "$ac_cv_prog_DSYMUTIL"; then
  9967. ac_ct_DSYMUTIL=$DSYMUTIL
  9968. # Extract the first word of "dsymutil", so it can be a program name with args.
  9969. set dummy dsymutil; ac_word=$2
  9970. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9971. printf %s "checking for $ac_word... " >&6; }
  9972. if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
  9973. then :
  9974. printf %s "(cached) " >&6
  9975. else $as_nop
  9976. if test -n "$ac_ct_DSYMUTIL"; then
  9977. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  9978. else
  9979. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9980. for as_dir in $PATH
  9981. do
  9982. IFS=$as_save_IFS
  9983. case $as_dir in #(((
  9984. '') as_dir=./ ;;
  9985. */) ;;
  9986. *) as_dir=$as_dir/ ;;
  9987. esac
  9988. for ac_exec_ext in '' $ac_executable_extensions; do
  9989. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  9990. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  9991. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  9992. break 2
  9993. fi
  9994. done
  9995. done
  9996. IFS=$as_save_IFS
  9997. fi
  9998. fi
  9999. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  10000. if test -n "$ac_ct_DSYMUTIL"; then
  10001. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  10002. printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
  10003. else
  10004. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10005. printf "%s\n" "no" >&6; }
  10006. fi
  10007. if test "x$ac_ct_DSYMUTIL" = x; then
  10008. DSYMUTIL=":"
  10009. else
  10010. case $cross_compiling:$ac_tool_warned in
  10011. yes:)
  10012. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10013. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10014. ac_tool_warned=yes ;;
  10015. esac
  10016. DSYMUTIL=$ac_ct_DSYMUTIL
  10017. fi
  10018. else
  10019. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  10020. fi
  10021. if test -n "$ac_tool_prefix"; then
  10022. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  10023. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  10024. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10025. printf %s "checking for $ac_word... " >&6; }
  10026. if test ${ac_cv_prog_NMEDIT+y}
  10027. then :
  10028. printf %s "(cached) " >&6
  10029. else $as_nop
  10030. if test -n "$NMEDIT"; then
  10031. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  10032. else
  10033. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10034. for as_dir in $PATH
  10035. do
  10036. IFS=$as_save_IFS
  10037. case $as_dir in #(((
  10038. '') as_dir=./ ;;
  10039. */) ;;
  10040. *) as_dir=$as_dir/ ;;
  10041. esac
  10042. for ac_exec_ext in '' $ac_executable_extensions; do
  10043. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  10044. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  10045. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  10046. break 2
  10047. fi
  10048. done
  10049. done
  10050. IFS=$as_save_IFS
  10051. fi
  10052. fi
  10053. NMEDIT=$ac_cv_prog_NMEDIT
  10054. if test -n "$NMEDIT"; then
  10055. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  10056. printf "%s\n" "$NMEDIT" >&6; }
  10057. else
  10058. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10059. printf "%s\n" "no" >&6; }
  10060. fi
  10061. fi
  10062. if test -z "$ac_cv_prog_NMEDIT"; then
  10063. ac_ct_NMEDIT=$NMEDIT
  10064. # Extract the first word of "nmedit", so it can be a program name with args.
  10065. set dummy nmedit; ac_word=$2
  10066. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10067. printf %s "checking for $ac_word... " >&6; }
  10068. if test ${ac_cv_prog_ac_ct_NMEDIT+y}
  10069. then :
  10070. printf %s "(cached) " >&6
  10071. else $as_nop
  10072. if test -n "$ac_ct_NMEDIT"; then
  10073. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  10074. else
  10075. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10076. for as_dir in $PATH
  10077. do
  10078. IFS=$as_save_IFS
  10079. case $as_dir in #(((
  10080. '') as_dir=./ ;;
  10081. */) ;;
  10082. *) as_dir=$as_dir/ ;;
  10083. esac
  10084. for ac_exec_ext in '' $ac_executable_extensions; do
  10085. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  10086. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  10087. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  10088. break 2
  10089. fi
  10090. done
  10091. done
  10092. IFS=$as_save_IFS
  10093. fi
  10094. fi
  10095. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  10096. if test -n "$ac_ct_NMEDIT"; then
  10097. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  10098. printf "%s\n" "$ac_ct_NMEDIT" >&6; }
  10099. else
  10100. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10101. printf "%s\n" "no" >&6; }
  10102. fi
  10103. if test "x$ac_ct_NMEDIT" = x; then
  10104. NMEDIT=":"
  10105. else
  10106. case $cross_compiling:$ac_tool_warned in
  10107. yes:)
  10108. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10109. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10110. ac_tool_warned=yes ;;
  10111. esac
  10112. NMEDIT=$ac_ct_NMEDIT
  10113. fi
  10114. else
  10115. NMEDIT="$ac_cv_prog_NMEDIT"
  10116. fi
  10117. if test -n "$ac_tool_prefix"; then
  10118. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  10119. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  10120. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10121. printf %s "checking for $ac_word... " >&6; }
  10122. if test ${ac_cv_prog_LIPO+y}
  10123. then :
  10124. printf %s "(cached) " >&6
  10125. else $as_nop
  10126. if test -n "$LIPO"; then
  10127. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  10128. else
  10129. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10130. for as_dir in $PATH
  10131. do
  10132. IFS=$as_save_IFS
  10133. case $as_dir in #(((
  10134. '') as_dir=./ ;;
  10135. */) ;;
  10136. *) as_dir=$as_dir/ ;;
  10137. esac
  10138. for ac_exec_ext in '' $ac_executable_extensions; do
  10139. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  10140. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  10141. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  10142. break 2
  10143. fi
  10144. done
  10145. done
  10146. IFS=$as_save_IFS
  10147. fi
  10148. fi
  10149. LIPO=$ac_cv_prog_LIPO
  10150. if test -n "$LIPO"; then
  10151. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  10152. printf "%s\n" "$LIPO" >&6; }
  10153. else
  10154. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10155. printf "%s\n" "no" >&6; }
  10156. fi
  10157. fi
  10158. if test -z "$ac_cv_prog_LIPO"; then
  10159. ac_ct_LIPO=$LIPO
  10160. # Extract the first word of "lipo", so it can be a program name with args.
  10161. set dummy lipo; ac_word=$2
  10162. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10163. printf %s "checking for $ac_word... " >&6; }
  10164. if test ${ac_cv_prog_ac_ct_LIPO+y}
  10165. then :
  10166. printf %s "(cached) " >&6
  10167. else $as_nop
  10168. if test -n "$ac_ct_LIPO"; then
  10169. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  10170. else
  10171. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10172. for as_dir in $PATH
  10173. do
  10174. IFS=$as_save_IFS
  10175. case $as_dir in #(((
  10176. '') as_dir=./ ;;
  10177. */) ;;
  10178. *) as_dir=$as_dir/ ;;
  10179. esac
  10180. for ac_exec_ext in '' $ac_executable_extensions; do
  10181. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  10182. ac_cv_prog_ac_ct_LIPO="lipo"
  10183. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  10184. break 2
  10185. fi
  10186. done
  10187. done
  10188. IFS=$as_save_IFS
  10189. fi
  10190. fi
  10191. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  10192. if test -n "$ac_ct_LIPO"; then
  10193. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  10194. printf "%s\n" "$ac_ct_LIPO" >&6; }
  10195. else
  10196. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10197. printf "%s\n" "no" >&6; }
  10198. fi
  10199. if test "x$ac_ct_LIPO" = x; then
  10200. LIPO=":"
  10201. else
  10202. case $cross_compiling:$ac_tool_warned in
  10203. yes:)
  10204. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10205. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10206. ac_tool_warned=yes ;;
  10207. esac
  10208. LIPO=$ac_ct_LIPO
  10209. fi
  10210. else
  10211. LIPO="$ac_cv_prog_LIPO"
  10212. fi
  10213. if test -n "$ac_tool_prefix"; then
  10214. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  10215. set dummy ${ac_tool_prefix}otool; ac_word=$2
  10216. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10217. printf %s "checking for $ac_word... " >&6; }
  10218. if test ${ac_cv_prog_OTOOL+y}
  10219. then :
  10220. printf %s "(cached) " >&6
  10221. else $as_nop
  10222. if test -n "$OTOOL"; then
  10223. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  10224. else
  10225. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10226. for as_dir in $PATH
  10227. do
  10228. IFS=$as_save_IFS
  10229. case $as_dir in #(((
  10230. '') as_dir=./ ;;
  10231. */) ;;
  10232. *) as_dir=$as_dir/ ;;
  10233. esac
  10234. for ac_exec_ext in '' $ac_executable_extensions; do
  10235. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  10236. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  10237. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  10238. break 2
  10239. fi
  10240. done
  10241. done
  10242. IFS=$as_save_IFS
  10243. fi
  10244. fi
  10245. OTOOL=$ac_cv_prog_OTOOL
  10246. if test -n "$OTOOL"; then
  10247. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  10248. printf "%s\n" "$OTOOL" >&6; }
  10249. else
  10250. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10251. printf "%s\n" "no" >&6; }
  10252. fi
  10253. fi
  10254. if test -z "$ac_cv_prog_OTOOL"; then
  10255. ac_ct_OTOOL=$OTOOL
  10256. # Extract the first word of "otool", so it can be a program name with args.
  10257. set dummy otool; ac_word=$2
  10258. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10259. printf %s "checking for $ac_word... " >&6; }
  10260. if test ${ac_cv_prog_ac_ct_OTOOL+y}
  10261. then :
  10262. printf %s "(cached) " >&6
  10263. else $as_nop
  10264. if test -n "$ac_ct_OTOOL"; then
  10265. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  10266. else
  10267. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10268. for as_dir in $PATH
  10269. do
  10270. IFS=$as_save_IFS
  10271. case $as_dir in #(((
  10272. '') as_dir=./ ;;
  10273. */) ;;
  10274. *) as_dir=$as_dir/ ;;
  10275. esac
  10276. for ac_exec_ext in '' $ac_executable_extensions; do
  10277. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  10278. ac_cv_prog_ac_ct_OTOOL="otool"
  10279. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  10280. break 2
  10281. fi
  10282. done
  10283. done
  10284. IFS=$as_save_IFS
  10285. fi
  10286. fi
  10287. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  10288. if test -n "$ac_ct_OTOOL"; then
  10289. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  10290. printf "%s\n" "$ac_ct_OTOOL" >&6; }
  10291. else
  10292. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10293. printf "%s\n" "no" >&6; }
  10294. fi
  10295. if test "x$ac_ct_OTOOL" = x; then
  10296. OTOOL=":"
  10297. else
  10298. case $cross_compiling:$ac_tool_warned in
  10299. yes:)
  10300. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10301. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10302. ac_tool_warned=yes ;;
  10303. esac
  10304. OTOOL=$ac_ct_OTOOL
  10305. fi
  10306. else
  10307. OTOOL="$ac_cv_prog_OTOOL"
  10308. fi
  10309. if test -n "$ac_tool_prefix"; then
  10310. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  10311. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  10312. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10313. printf %s "checking for $ac_word... " >&6; }
  10314. if test ${ac_cv_prog_OTOOL64+y}
  10315. then :
  10316. printf %s "(cached) " >&6
  10317. else $as_nop
  10318. if test -n "$OTOOL64"; then
  10319. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  10320. else
  10321. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10322. for as_dir in $PATH
  10323. do
  10324. IFS=$as_save_IFS
  10325. case $as_dir in #(((
  10326. '') as_dir=./ ;;
  10327. */) ;;
  10328. *) as_dir=$as_dir/ ;;
  10329. esac
  10330. for ac_exec_ext in '' $ac_executable_extensions; do
  10331. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  10332. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  10333. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  10334. break 2
  10335. fi
  10336. done
  10337. done
  10338. IFS=$as_save_IFS
  10339. fi
  10340. fi
  10341. OTOOL64=$ac_cv_prog_OTOOL64
  10342. if test -n "$OTOOL64"; then
  10343. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  10344. printf "%s\n" "$OTOOL64" >&6; }
  10345. else
  10346. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10347. printf "%s\n" "no" >&6; }
  10348. fi
  10349. fi
  10350. if test -z "$ac_cv_prog_OTOOL64"; then
  10351. ac_ct_OTOOL64=$OTOOL64
  10352. # Extract the first word of "otool64", so it can be a program name with args.
  10353. set dummy otool64; ac_word=$2
  10354. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10355. printf %s "checking for $ac_word... " >&6; }
  10356. if test ${ac_cv_prog_ac_ct_OTOOL64+y}
  10357. then :
  10358. printf %s "(cached) " >&6
  10359. else $as_nop
  10360. if test -n "$ac_ct_OTOOL64"; then
  10361. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  10362. else
  10363. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10364. for as_dir in $PATH
  10365. do
  10366. IFS=$as_save_IFS
  10367. case $as_dir in #(((
  10368. '') as_dir=./ ;;
  10369. */) ;;
  10370. *) as_dir=$as_dir/ ;;
  10371. esac
  10372. for ac_exec_ext in '' $ac_executable_extensions; do
  10373. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  10374. ac_cv_prog_ac_ct_OTOOL64="otool64"
  10375. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  10376. break 2
  10377. fi
  10378. done
  10379. done
  10380. IFS=$as_save_IFS
  10381. fi
  10382. fi
  10383. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  10384. if test -n "$ac_ct_OTOOL64"; then
  10385. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  10386. printf "%s\n" "$ac_ct_OTOOL64" >&6; }
  10387. else
  10388. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10389. printf "%s\n" "no" >&6; }
  10390. fi
  10391. if test "x$ac_ct_OTOOL64" = x; then
  10392. OTOOL64=":"
  10393. else
  10394. case $cross_compiling:$ac_tool_warned in
  10395. yes:)
  10396. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10397. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10398. ac_tool_warned=yes ;;
  10399. esac
  10400. OTOOL64=$ac_ct_OTOOL64
  10401. fi
  10402. else
  10403. OTOOL64="$ac_cv_prog_OTOOL64"
  10404. fi
  10405. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  10406. printf %s "checking for -single_module linker flag... " >&6; }
  10407. if test ${lt_cv_apple_cc_single_mod+y}
  10408. then :
  10409. printf %s "(cached) " >&6
  10410. else $as_nop
  10411. lt_cv_apple_cc_single_mod=no
  10412. if test -z "$LT_MULTI_MODULE"; then
  10413. # By default we will add the -single_module flag. You can override
  10414. # by either setting the environment variable LT_MULTI_MODULE
  10415. # non-empty at configure time, or by adding -multi_module to the
  10416. # link flags.
  10417. rm -rf libconftest.dylib*
  10418. echo "int foo(void){return 1;}" > conftest.c
  10419. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  10420. -dynamiclib -Wl,-single_module conftest.c" >&5
  10421. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  10422. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  10423. _lt_result=$?
  10424. # If there is a non-empty error log, and "single_module"
  10425. # appears in it, assume the flag caused a linker warning
  10426. if test -s conftest.err && $GREP single_module conftest.err; then
  10427. cat conftest.err >&5
  10428. # Otherwise, if the output was created with a 0 exit code from
  10429. # the compiler, it worked.
  10430. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  10431. lt_cv_apple_cc_single_mod=yes
  10432. else
  10433. cat conftest.err >&5
  10434. fi
  10435. rm -rf libconftest.dylib*
  10436. rm -f conftest.*
  10437. fi
  10438. fi
  10439. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  10440. printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
  10441. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  10442. printf %s "checking for -exported_symbols_list linker flag... " >&6; }
  10443. if test ${lt_cv_ld_exported_symbols_list+y}
  10444. then :
  10445. printf %s "(cached) " >&6
  10446. else $as_nop
  10447. lt_cv_ld_exported_symbols_list=no
  10448. save_LDFLAGS=$LDFLAGS
  10449. echo "_main" > conftest.sym
  10450. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  10451. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10452. /* end confdefs.h. */
  10453. int
  10454. main (void)
  10455. {
  10456. ;
  10457. return 0;
  10458. }
  10459. _ACEOF
  10460. if ac_fn_c_try_link "$LINENO"
  10461. then :
  10462. lt_cv_ld_exported_symbols_list=yes
  10463. else $as_nop
  10464. lt_cv_ld_exported_symbols_list=no
  10465. fi
  10466. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10467. conftest$ac_exeext conftest.$ac_ext
  10468. LDFLAGS=$save_LDFLAGS
  10469. fi
  10470. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  10471. printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
  10472. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  10473. printf %s "checking for -force_load linker flag... " >&6; }
  10474. if test ${lt_cv_ld_force_load+y}
  10475. then :
  10476. printf %s "(cached) " >&6
  10477. else $as_nop
  10478. lt_cv_ld_force_load=no
  10479. cat > conftest.c << _LT_EOF
  10480. int forced_loaded() { return 2;}
  10481. _LT_EOF
  10482. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  10483. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  10484. echo "$AR cr libconftest.a conftest.o" >&5
  10485. $AR cr libconftest.a conftest.o 2>&5
  10486. echo "$RANLIB libconftest.a" >&5
  10487. $RANLIB libconftest.a 2>&5
  10488. cat > conftest.c << _LT_EOF
  10489. int main() { return 0;}
  10490. _LT_EOF
  10491. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  10492. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  10493. _lt_result=$?
  10494. if test -s conftest.err && $GREP force_load conftest.err; then
  10495. cat conftest.err >&5
  10496. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  10497. lt_cv_ld_force_load=yes
  10498. else
  10499. cat conftest.err >&5
  10500. fi
  10501. rm -f conftest.err libconftest.a conftest conftest.c
  10502. rm -rf conftest.dSYM
  10503. fi
  10504. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  10505. printf "%s\n" "$lt_cv_ld_force_load" >&6; }
  10506. case $host_os in
  10507. rhapsody* | darwin1.[012])
  10508. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  10509. darwin1.*)
  10510. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  10511. darwin*) # darwin 5.x on
  10512. # if running on 10.5 or later, the deployment target defaults
  10513. # to the OS version, if on x86, and 10.4, the deployment
  10514. # target defaults to 10.4. Don't you love it?
  10515. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  10516. 10.0,*86*-darwin8*|10.0,*-darwin[912]*)
  10517. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  10518. 10.[012][,.]*)
  10519. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  10520. 10.*|11.*)
  10521. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  10522. esac
  10523. ;;
  10524. esac
  10525. if test yes = "$lt_cv_apple_cc_single_mod"; then
  10526. _lt_dar_single_mod='$single_module'
  10527. fi
  10528. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  10529. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  10530. else
  10531. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  10532. fi
  10533. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  10534. _lt_dsymutil='~$DSYMUTIL $lib || :'
  10535. else
  10536. _lt_dsymutil=
  10537. fi
  10538. ;;
  10539. esac
  10540. # func_munge_path_list VARIABLE PATH
  10541. # -----------------------------------
  10542. # VARIABLE is name of variable containing _space_ separated list of
  10543. # directories to be munged by the contents of PATH, which is string
  10544. # having a format:
  10545. # "DIR[:DIR]:"
  10546. # string "DIR[ DIR]" will be prepended to VARIABLE
  10547. # ":DIR[:DIR]"
  10548. # string "DIR[ DIR]" will be appended to VARIABLE
  10549. # "DIRP[:DIRP]::[DIRA:]DIRA"
  10550. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  10551. # "DIRA[ DIRA]" will be appended to VARIABLE
  10552. # "DIR[:DIR]"
  10553. # VARIABLE will be replaced by "DIR[ DIR]"
  10554. func_munge_path_list ()
  10555. {
  10556. case x$2 in
  10557. x)
  10558. ;;
  10559. *:)
  10560. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  10561. ;;
  10562. x:*)
  10563. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  10564. ;;
  10565. *::*)
  10566. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  10567. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  10568. ;;
  10569. *)
  10570. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  10571. ;;
  10572. esac
  10573. }
  10574. ac_header= ac_cache=
  10575. for ac_item in $ac_header_c_list
  10576. do
  10577. if test $ac_cache; then
  10578. ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
  10579. if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
  10580. printf "%s\n" "#define $ac_item 1" >> confdefs.h
  10581. fi
  10582. ac_header= ac_cache=
  10583. elif test $ac_header; then
  10584. ac_cache=$ac_item
  10585. else
  10586. ac_header=$ac_item
  10587. fi
  10588. done
  10589. if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
  10590. then :
  10591. printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
  10592. fi
  10593. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  10594. "
  10595. if test "x$ac_cv_header_dlfcn_h" = xyes
  10596. then :
  10597. printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
  10598. fi
  10599. func_stripname_cnf ()
  10600. {
  10601. case $2 in
  10602. .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
  10603. *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
  10604. esac
  10605. } # func_stripname_cnf
  10606. # ------------------------------------ #
  10607. # Determine libtool default behavior #
  10608. # ------------------------------------ #
  10609. #
  10610. # Default behavior is to enable shared and static libraries on systems
  10611. # where libtool knows how to build both library versions, and does not
  10612. # require separate configuration and build runs for each flavor.
  10613. #
  10614. xc_lt_want_enable_shared='yes'
  10615. xc_lt_want_enable_static='yes'
  10616. #
  10617. # User may have disabled shared or static libraries.
  10618. #
  10619. case "x$enable_shared" in # (
  10620. xno)
  10621. xc_lt_want_enable_shared='no'
  10622. ;;
  10623. esac
  10624. case "x$enable_static" in # (
  10625. xno)
  10626. xc_lt_want_enable_static='no'
  10627. ;;
  10628. esac
  10629. if test "x$xc_lt_want_enable_shared" = 'xno' &&
  10630. test "x$xc_lt_want_enable_static" = 'xno'; then
  10631. as_fn_error $? "can not disable shared and static libraries simultaneously" "$LINENO" 5
  10632. fi
  10633. #
  10634. # Default behavior on systems that require independent configuration
  10635. # and build runs for shared and static is to enable shared libraries
  10636. # and disable static ones. On these systems option '--disable-shared'
  10637. # must be used in order to build a proper static library.
  10638. #
  10639. if test "x$xc_lt_want_enable_shared" = 'xyes' &&
  10640. test "x$xc_lt_want_enable_static" = 'xyes'; then
  10641. case $host_os in # (
  10642. mingw* | pw32* | cegcc* | os2* | aix*)
  10643. xc_lt_want_enable_static='no'
  10644. ;;
  10645. esac
  10646. fi
  10647. #
  10648. # Make libtool aware of current shared and static library preferences
  10649. # taking in account that, depending on host characteristics, libtool
  10650. # may modify these option preferences later in this configure script.
  10651. #
  10652. enable_shared=$xc_lt_want_enable_shared
  10653. enable_static=$xc_lt_want_enable_static
  10654. #
  10655. # Default behavior is to build PIC objects for shared libraries and
  10656. # non-PIC objects for static libraries.
  10657. #
  10658. xc_lt_want_with_pic='default'
  10659. #
  10660. # User may have specified PIC preference.
  10661. #
  10662. case "x$with_pic" in # ((
  10663. xno)
  10664. xc_lt_want_with_pic='no'
  10665. ;;
  10666. xyes)
  10667. xc_lt_want_with_pic='yes'
  10668. ;;
  10669. esac
  10670. #
  10671. # Default behavior on some systems where building a shared library out
  10672. # of non-PIC compiled objects will fail with following linker error
  10673. # "relocation R_X86_64_32 can not be used when making a shared object"
  10674. # is to build PIC objects even for static libraries. This behavior may
  10675. # be overriden using 'configure --disable-shared --without-pic'.
  10676. #
  10677. if test "x$xc_lt_want_with_pic" = 'xdefault'; then
  10678. case $host_cpu in # (
  10679. x86_64 | amd64 | ia64)
  10680. case $host_os in # (
  10681. linux* | freebsd*)
  10682. xc_lt_want_with_pic='yes'
  10683. ;;
  10684. esac
  10685. ;;
  10686. esac
  10687. fi
  10688. #
  10689. # Make libtool aware of current PIC preference taking in account that,
  10690. # depending on host characteristics, libtool may modify PIC default
  10691. # behavior to fit host system idiosyncrasies later in this script.
  10692. #
  10693. with_pic=$xc_lt_want_with_pic
  10694. ## ----------------------- ##
  10695. ## Start of libtool code ##
  10696. ## ----------------------- ##
  10697. # Set options
  10698. enable_win32_dll=yes
  10699. case $host in
  10700. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  10701. if test -n "$ac_tool_prefix"; then
  10702. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  10703. set dummy ${ac_tool_prefix}as; ac_word=$2
  10704. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10705. printf %s "checking for $ac_word... " >&6; }
  10706. if test ${ac_cv_prog_AS+y}
  10707. then :
  10708. printf %s "(cached) " >&6
  10709. else $as_nop
  10710. if test -n "$AS"; then
  10711. ac_cv_prog_AS="$AS" # Let the user override the test.
  10712. else
  10713. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10714. for as_dir in $PATH
  10715. do
  10716. IFS=$as_save_IFS
  10717. case $as_dir in #(((
  10718. '') as_dir=./ ;;
  10719. */) ;;
  10720. *) as_dir=$as_dir/ ;;
  10721. esac
  10722. for ac_exec_ext in '' $ac_executable_extensions; do
  10723. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  10724. ac_cv_prog_AS="${ac_tool_prefix}as"
  10725. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  10726. break 2
  10727. fi
  10728. done
  10729. done
  10730. IFS=$as_save_IFS
  10731. fi
  10732. fi
  10733. AS=$ac_cv_prog_AS
  10734. if test -n "$AS"; then
  10735. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  10736. printf "%s\n" "$AS" >&6; }
  10737. else
  10738. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10739. printf "%s\n" "no" >&6; }
  10740. fi
  10741. fi
  10742. if test -z "$ac_cv_prog_AS"; then
  10743. ac_ct_AS=$AS
  10744. # Extract the first word of "as", so it can be a program name with args.
  10745. set dummy as; ac_word=$2
  10746. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10747. printf %s "checking for $ac_word... " >&6; }
  10748. if test ${ac_cv_prog_ac_ct_AS+y}
  10749. then :
  10750. printf %s "(cached) " >&6
  10751. else $as_nop
  10752. if test -n "$ac_ct_AS"; then
  10753. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  10754. else
  10755. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10756. for as_dir in $PATH
  10757. do
  10758. IFS=$as_save_IFS
  10759. case $as_dir in #(((
  10760. '') as_dir=./ ;;
  10761. */) ;;
  10762. *) as_dir=$as_dir/ ;;
  10763. esac
  10764. for ac_exec_ext in '' $ac_executable_extensions; do
  10765. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  10766. ac_cv_prog_ac_ct_AS="as"
  10767. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  10768. break 2
  10769. fi
  10770. done
  10771. done
  10772. IFS=$as_save_IFS
  10773. fi
  10774. fi
  10775. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  10776. if test -n "$ac_ct_AS"; then
  10777. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  10778. printf "%s\n" "$ac_ct_AS" >&6; }
  10779. else
  10780. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10781. printf "%s\n" "no" >&6; }
  10782. fi
  10783. if test "x$ac_ct_AS" = x; then
  10784. AS="false"
  10785. else
  10786. case $cross_compiling:$ac_tool_warned in
  10787. yes:)
  10788. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10789. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10790. ac_tool_warned=yes ;;
  10791. esac
  10792. AS=$ac_ct_AS
  10793. fi
  10794. else
  10795. AS="$ac_cv_prog_AS"
  10796. fi
  10797. if test -n "$ac_tool_prefix"; then
  10798. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  10799. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  10800. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10801. printf %s "checking for $ac_word... " >&6; }
  10802. if test ${ac_cv_prog_DLLTOOL+y}
  10803. then :
  10804. printf %s "(cached) " >&6
  10805. else $as_nop
  10806. if test -n "$DLLTOOL"; then
  10807. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  10808. else
  10809. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10810. for as_dir in $PATH
  10811. do
  10812. IFS=$as_save_IFS
  10813. case $as_dir in #(((
  10814. '') as_dir=./ ;;
  10815. */) ;;
  10816. *) as_dir=$as_dir/ ;;
  10817. esac
  10818. for ac_exec_ext in '' $ac_executable_extensions; do
  10819. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  10820. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  10821. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  10822. break 2
  10823. fi
  10824. done
  10825. done
  10826. IFS=$as_save_IFS
  10827. fi
  10828. fi
  10829. DLLTOOL=$ac_cv_prog_DLLTOOL
  10830. if test -n "$DLLTOOL"; then
  10831. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  10832. printf "%s\n" "$DLLTOOL" >&6; }
  10833. else
  10834. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10835. printf "%s\n" "no" >&6; }
  10836. fi
  10837. fi
  10838. if test -z "$ac_cv_prog_DLLTOOL"; then
  10839. ac_ct_DLLTOOL=$DLLTOOL
  10840. # Extract the first word of "dlltool", so it can be a program name with args.
  10841. set dummy dlltool; ac_word=$2
  10842. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10843. printf %s "checking for $ac_word... " >&6; }
  10844. if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
  10845. then :
  10846. printf %s "(cached) " >&6
  10847. else $as_nop
  10848. if test -n "$ac_ct_DLLTOOL"; then
  10849. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  10850. else
  10851. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10852. for as_dir in $PATH
  10853. do
  10854. IFS=$as_save_IFS
  10855. case $as_dir in #(((
  10856. '') as_dir=./ ;;
  10857. */) ;;
  10858. *) as_dir=$as_dir/ ;;
  10859. esac
  10860. for ac_exec_ext in '' $ac_executable_extensions; do
  10861. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  10862. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  10863. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  10864. break 2
  10865. fi
  10866. done
  10867. done
  10868. IFS=$as_save_IFS
  10869. fi
  10870. fi
  10871. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  10872. if test -n "$ac_ct_DLLTOOL"; then
  10873. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  10874. printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
  10875. else
  10876. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10877. printf "%s\n" "no" >&6; }
  10878. fi
  10879. if test "x$ac_ct_DLLTOOL" = x; then
  10880. DLLTOOL="false"
  10881. else
  10882. case $cross_compiling:$ac_tool_warned in
  10883. yes:)
  10884. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10885. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10886. ac_tool_warned=yes ;;
  10887. esac
  10888. DLLTOOL=$ac_ct_DLLTOOL
  10889. fi
  10890. else
  10891. DLLTOOL="$ac_cv_prog_DLLTOOL"
  10892. fi
  10893. if test -n "$ac_tool_prefix"; then
  10894. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  10895. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  10896. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10897. printf %s "checking for $ac_word... " >&6; }
  10898. if test ${ac_cv_prog_OBJDUMP+y}
  10899. then :
  10900. printf %s "(cached) " >&6
  10901. else $as_nop
  10902. if test -n "$OBJDUMP"; then
  10903. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  10904. else
  10905. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10906. for as_dir in $PATH
  10907. do
  10908. IFS=$as_save_IFS
  10909. case $as_dir in #(((
  10910. '') as_dir=./ ;;
  10911. */) ;;
  10912. *) as_dir=$as_dir/ ;;
  10913. esac
  10914. for ac_exec_ext in '' $ac_executable_extensions; do
  10915. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  10916. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  10917. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  10918. break 2
  10919. fi
  10920. done
  10921. done
  10922. IFS=$as_save_IFS
  10923. fi
  10924. fi
  10925. OBJDUMP=$ac_cv_prog_OBJDUMP
  10926. if test -n "$OBJDUMP"; then
  10927. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  10928. printf "%s\n" "$OBJDUMP" >&6; }
  10929. else
  10930. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10931. printf "%s\n" "no" >&6; }
  10932. fi
  10933. fi
  10934. if test -z "$ac_cv_prog_OBJDUMP"; then
  10935. ac_ct_OBJDUMP=$OBJDUMP
  10936. # Extract the first word of "objdump", so it can be a program name with args.
  10937. set dummy objdump; ac_word=$2
  10938. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10939. printf %s "checking for $ac_word... " >&6; }
  10940. if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
  10941. then :
  10942. printf %s "(cached) " >&6
  10943. else $as_nop
  10944. if test -n "$ac_ct_OBJDUMP"; then
  10945. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  10946. else
  10947. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10948. for as_dir in $PATH
  10949. do
  10950. IFS=$as_save_IFS
  10951. case $as_dir in #(((
  10952. '') as_dir=./ ;;
  10953. */) ;;
  10954. *) as_dir=$as_dir/ ;;
  10955. esac
  10956. for ac_exec_ext in '' $ac_executable_extensions; do
  10957. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  10958. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  10959. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  10960. break 2
  10961. fi
  10962. done
  10963. done
  10964. IFS=$as_save_IFS
  10965. fi
  10966. fi
  10967. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  10968. if test -n "$ac_ct_OBJDUMP"; then
  10969. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  10970. printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
  10971. else
  10972. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10973. printf "%s\n" "no" >&6; }
  10974. fi
  10975. if test "x$ac_ct_OBJDUMP" = x; then
  10976. OBJDUMP="false"
  10977. else
  10978. case $cross_compiling:$ac_tool_warned in
  10979. yes:)
  10980. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10981. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10982. ac_tool_warned=yes ;;
  10983. esac
  10984. OBJDUMP=$ac_ct_OBJDUMP
  10985. fi
  10986. else
  10987. OBJDUMP="$ac_cv_prog_OBJDUMP"
  10988. fi
  10989. ;;
  10990. esac
  10991. test -z "$AS" && AS=as
  10992. test -z "$DLLTOOL" && DLLTOOL=dlltool
  10993. test -z "$OBJDUMP" && OBJDUMP=objdump
  10994. enable_dlopen=no
  10995. # Check whether --enable-shared was given.
  10996. if test ${enable_shared+y}
  10997. then :
  10998. enableval=$enable_shared; p=${PACKAGE-default}
  10999. case $enableval in
  11000. yes) enable_shared=yes ;;
  11001. no) enable_shared=no ;;
  11002. *)
  11003. enable_shared=no
  11004. # Look at the argument we got. We use all the common list separators.
  11005. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  11006. for pkg in $enableval; do
  11007. IFS=$lt_save_ifs
  11008. if test "X$pkg" = "X$p"; then
  11009. enable_shared=yes
  11010. fi
  11011. done
  11012. IFS=$lt_save_ifs
  11013. ;;
  11014. esac
  11015. else $as_nop
  11016. enable_shared=yes
  11017. fi
  11018. # Check whether --enable-static was given.
  11019. if test ${enable_static+y}
  11020. then :
  11021. enableval=$enable_static; p=${PACKAGE-default}
  11022. case $enableval in
  11023. yes) enable_static=yes ;;
  11024. no) enable_static=no ;;
  11025. *)
  11026. enable_static=no
  11027. # Look at the argument we got. We use all the common list separators.
  11028. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  11029. for pkg in $enableval; do
  11030. IFS=$lt_save_ifs
  11031. if test "X$pkg" = "X$p"; then
  11032. enable_static=yes
  11033. fi
  11034. done
  11035. IFS=$lt_save_ifs
  11036. ;;
  11037. esac
  11038. else $as_nop
  11039. enable_static=yes
  11040. fi
  11041. # Check whether --with-pic was given.
  11042. if test ${with_pic+y}
  11043. then :
  11044. withval=$with_pic; lt_p=${PACKAGE-default}
  11045. case $withval in
  11046. yes|no) pic_mode=$withval ;;
  11047. *)
  11048. pic_mode=default
  11049. # Look at the argument we got. We use all the common list separators.
  11050. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  11051. for lt_pkg in $withval; do
  11052. IFS=$lt_save_ifs
  11053. if test "X$lt_pkg" = "X$lt_p"; then
  11054. pic_mode=yes
  11055. fi
  11056. done
  11057. IFS=$lt_save_ifs
  11058. ;;
  11059. esac
  11060. else $as_nop
  11061. pic_mode=default
  11062. fi
  11063. # Check whether --enable-fast-install was given.
  11064. if test ${enable_fast_install+y}
  11065. then :
  11066. enableval=$enable_fast_install; p=${PACKAGE-default}
  11067. case $enableval in
  11068. yes) enable_fast_install=yes ;;
  11069. no) enable_fast_install=no ;;
  11070. *)
  11071. enable_fast_install=no
  11072. # Look at the argument we got. We use all the common list separators.
  11073. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  11074. for pkg in $enableval; do
  11075. IFS=$lt_save_ifs
  11076. if test "X$pkg" = "X$p"; then
  11077. enable_fast_install=yes
  11078. fi
  11079. done
  11080. IFS=$lt_save_ifs
  11081. ;;
  11082. esac
  11083. else $as_nop
  11084. enable_fast_install=yes
  11085. fi
  11086. shared_archive_member_spec=
  11087. case $host,$enable_shared in
  11088. power*-*-aix[5-9]*,yes)
  11089. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  11090. printf %s "checking which variant of shared library versioning to provide... " >&6; }
  11091. # Check whether --with-aix-soname was given.
  11092. if test ${with_aix_soname+y}
  11093. then :
  11094. withval=$with_aix_soname; case $withval in
  11095. aix|svr4|both)
  11096. ;;
  11097. *)
  11098. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  11099. ;;
  11100. esac
  11101. lt_cv_with_aix_soname=$with_aix_soname
  11102. else $as_nop
  11103. if test ${lt_cv_with_aix_soname+y}
  11104. then :
  11105. printf %s "(cached) " >&6
  11106. else $as_nop
  11107. lt_cv_with_aix_soname=aix
  11108. fi
  11109. with_aix_soname=$lt_cv_with_aix_soname
  11110. fi
  11111. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  11112. printf "%s\n" "$with_aix_soname" >&6; }
  11113. if test aix != "$with_aix_soname"; then
  11114. # For the AIX way of multilib, we name the shared archive member
  11115. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  11116. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  11117. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  11118. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  11119. if test 64 = "${OBJECT_MODE-32}"; then
  11120. shared_archive_member_spec=shr_64
  11121. else
  11122. shared_archive_member_spec=shr
  11123. fi
  11124. fi
  11125. ;;
  11126. *)
  11127. with_aix_soname=aix
  11128. ;;
  11129. esac
  11130. # This can be used to rebuild libtool when needed
  11131. LIBTOOL_DEPS=$ltmain
  11132. # Always use our own libtool.
  11133. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  11134. test -z "$LN_S" && LN_S="ln -s"
  11135. if test -n "${ZSH_VERSION+set}"; then
  11136. setopt NO_GLOB_SUBST
  11137. fi
  11138. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  11139. printf %s "checking for objdir... " >&6; }
  11140. if test ${lt_cv_objdir+y}
  11141. then :
  11142. printf %s "(cached) " >&6
  11143. else $as_nop
  11144. rm -f .libs 2>/dev/null
  11145. mkdir .libs 2>/dev/null
  11146. if test -d .libs; then
  11147. lt_cv_objdir=.libs
  11148. else
  11149. # MS-DOS does not allow filenames that begin with a dot.
  11150. lt_cv_objdir=_libs
  11151. fi
  11152. rmdir .libs 2>/dev/null
  11153. fi
  11154. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  11155. printf "%s\n" "$lt_cv_objdir" >&6; }
  11156. objdir=$lt_cv_objdir
  11157. printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
  11158. case $host_os in
  11159. aix3*)
  11160. # AIX sometimes has problems with the GCC collect2 program. For some
  11161. # reason, if we set the COLLECT_NAMES environment variable, the problems
  11162. # vanish in a puff of smoke.
  11163. if test set != "${COLLECT_NAMES+set}"; then
  11164. COLLECT_NAMES=
  11165. export COLLECT_NAMES
  11166. fi
  11167. ;;
  11168. esac
  11169. # Global variables:
  11170. ofile=libtool
  11171. can_build_shared=yes
  11172. # All known linkers require a '.a' archive for static linking (except MSVC,
  11173. # which needs '.lib').
  11174. libext=a
  11175. with_gnu_ld=$lt_cv_prog_gnu_ld
  11176. old_CC=$CC
  11177. old_CFLAGS=$CFLAGS
  11178. # Set sane defaults for various variables
  11179. test -z "$CC" && CC=cc
  11180. test -z "$LTCC" && LTCC=$CC
  11181. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  11182. test -z "$LD" && LD=ld
  11183. test -z "$ac_objext" && ac_objext=o
  11184. func_cc_basename $compiler
  11185. cc_basename=$func_cc_basename_result
  11186. # Only perform the check for file, if the check method requires it
  11187. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  11188. case $deplibs_check_method in
  11189. file_magic*)
  11190. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  11191. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  11192. printf %s "checking for ${ac_tool_prefix}file... " >&6; }
  11193. if test ${lt_cv_path_MAGIC_CMD+y}
  11194. then :
  11195. printf %s "(cached) " >&6
  11196. else $as_nop
  11197. case $MAGIC_CMD in
  11198. [\\/*] | ?:[\\/]*)
  11199. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  11200. ;;
  11201. *)
  11202. lt_save_MAGIC_CMD=$MAGIC_CMD
  11203. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  11204. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  11205. for ac_dir in $ac_dummy; do
  11206. IFS=$lt_save_ifs
  11207. test -z "$ac_dir" && ac_dir=.
  11208. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  11209. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  11210. if test -n "$file_magic_test_file"; then
  11211. case $deplibs_check_method in
  11212. "file_magic "*)
  11213. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  11214. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  11215. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  11216. $EGREP "$file_magic_regex" > /dev/null; then
  11217. :
  11218. else
  11219. cat <<_LT_EOF 1>&2
  11220. *** Warning: the command libtool uses to detect shared libraries,
  11221. *** $file_magic_cmd, produces output that libtool cannot recognize.
  11222. *** The result is that libtool may fail to recognize shared libraries
  11223. *** as such. This will affect the creation of libtool libraries that
  11224. *** depend on shared libraries, but programs linked with such libtool
  11225. *** libraries will work regardless of this problem. Nevertheless, you
  11226. *** may want to report the problem to your system manager and/or to
  11227. *** [email protected]
  11228. _LT_EOF
  11229. fi ;;
  11230. esac
  11231. fi
  11232. break
  11233. fi
  11234. done
  11235. IFS=$lt_save_ifs
  11236. MAGIC_CMD=$lt_save_MAGIC_CMD
  11237. ;;
  11238. esac
  11239. fi
  11240. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  11241. if test -n "$MAGIC_CMD"; then
  11242. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  11243. printf "%s\n" "$MAGIC_CMD" >&6; }
  11244. else
  11245. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11246. printf "%s\n" "no" >&6; }
  11247. fi
  11248. if test -z "$lt_cv_path_MAGIC_CMD"; then
  11249. if test -n "$ac_tool_prefix"; then
  11250. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  11251. printf %s "checking for file... " >&6; }
  11252. if test ${lt_cv_path_MAGIC_CMD+y}
  11253. then :
  11254. printf %s "(cached) " >&6
  11255. else $as_nop
  11256. case $MAGIC_CMD in
  11257. [\\/*] | ?:[\\/]*)
  11258. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  11259. ;;
  11260. *)
  11261. lt_save_MAGIC_CMD=$MAGIC_CMD
  11262. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  11263. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  11264. for ac_dir in $ac_dummy; do
  11265. IFS=$lt_save_ifs
  11266. test -z "$ac_dir" && ac_dir=.
  11267. if test -f "$ac_dir/file"; then
  11268. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  11269. if test -n "$file_magic_test_file"; then
  11270. case $deplibs_check_method in
  11271. "file_magic "*)
  11272. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  11273. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  11274. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  11275. $EGREP "$file_magic_regex" > /dev/null; then
  11276. :
  11277. else
  11278. cat <<_LT_EOF 1>&2
  11279. *** Warning: the command libtool uses to detect shared libraries,
  11280. *** $file_magic_cmd, produces output that libtool cannot recognize.
  11281. *** The result is that libtool may fail to recognize shared libraries
  11282. *** as such. This will affect the creation of libtool libraries that
  11283. *** depend on shared libraries, but programs linked with such libtool
  11284. *** libraries will work regardless of this problem. Nevertheless, you
  11285. *** may want to report the problem to your system manager and/or to
  11286. *** [email protected]
  11287. _LT_EOF
  11288. fi ;;
  11289. esac
  11290. fi
  11291. break
  11292. fi
  11293. done
  11294. IFS=$lt_save_ifs
  11295. MAGIC_CMD=$lt_save_MAGIC_CMD
  11296. ;;
  11297. esac
  11298. fi
  11299. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  11300. if test -n "$MAGIC_CMD"; then
  11301. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  11302. printf "%s\n" "$MAGIC_CMD" >&6; }
  11303. else
  11304. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11305. printf "%s\n" "no" >&6; }
  11306. fi
  11307. else
  11308. MAGIC_CMD=:
  11309. fi
  11310. fi
  11311. fi
  11312. ;;
  11313. esac
  11314. # Use C for the default configuration in the libtool script
  11315. lt_save_CC=$CC
  11316. ac_ext=c
  11317. ac_cpp='$CPP $CPPFLAGS'
  11318. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11319. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11320. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11321. # Source file extension for C test sources.
  11322. ac_ext=c
  11323. # Object file extension for compiled C test sources.
  11324. objext=o
  11325. objext=$objext
  11326. # Code to be used in simple compile tests
  11327. lt_simple_compile_test_code="int some_variable = 0;"
  11328. # Code to be used in simple link tests
  11329. lt_simple_link_test_code='int main(){return(0);}'
  11330. # If no C compiler was specified, use CC.
  11331. LTCC=${LTCC-"$CC"}
  11332. # If no C compiler flags were specified, use CFLAGS.
  11333. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11334. # Allow CC to be a program name with arguments.
  11335. compiler=$CC
  11336. # Save the default compiler, since it gets overwritten when the other
  11337. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  11338. compiler_DEFAULT=$CC
  11339. # save warnings/boilerplate of simple test code
  11340. ac_outfile=conftest.$ac_objext
  11341. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  11342. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11343. _lt_compiler_boilerplate=`cat conftest.err`
  11344. $RM conftest*
  11345. ac_outfile=conftest.$ac_objext
  11346. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  11347. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11348. _lt_linker_boilerplate=`cat conftest.err`
  11349. $RM -r conftest*
  11350. ## CAVEAT EMPTOR:
  11351. ## There is no encapsulation within the following macros, do not change
  11352. ## the running order or otherwise move them around unless you know exactly
  11353. ## what you are doing...
  11354. if test -n "$compiler"; then
  11355. lt_prog_compiler_no_builtin_flag=
  11356. if test yes = "$GCC"; then
  11357. case $cc_basename in
  11358. nvcc*)
  11359. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  11360. *)
  11361. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  11362. esac
  11363. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  11364. printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  11365. if test ${lt_cv_prog_compiler_rtti_exceptions+y}
  11366. then :
  11367. printf %s "(cached) " >&6
  11368. else $as_nop
  11369. lt_cv_prog_compiler_rtti_exceptions=no
  11370. ac_outfile=conftest.$ac_objext
  11371. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11372. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  11373. # Insert the option either (1) after the last *FLAGS variable, or
  11374. # (2) before a word containing "conftest.", or (3) at the end.
  11375. # Note that $ac_compile itself does not contain backslashes and begins
  11376. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11377. # The option is referenced via a variable to avoid confusing sed.
  11378. lt_compile=`echo "$ac_compile" | $SED \
  11379. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11380. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11381. -e 's:$: $lt_compiler_flag:'`
  11382. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  11383. (eval "$lt_compile" 2>conftest.err)
  11384. ac_status=$?
  11385. cat conftest.err >&5
  11386. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11387. if (exit $ac_status) && test -s "$ac_outfile"; then
  11388. # The compiler can only warn and ignore the option if not recognized
  11389. # So say no if there are warnings other than the usual output.
  11390. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  11391. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11392. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  11393. lt_cv_prog_compiler_rtti_exceptions=yes
  11394. fi
  11395. fi
  11396. $RM conftest*
  11397. fi
  11398. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  11399. printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  11400. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  11401. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  11402. else
  11403. :
  11404. fi
  11405. fi
  11406. lt_prog_compiler_wl=
  11407. lt_prog_compiler_pic=
  11408. lt_prog_compiler_static=
  11409. if test yes = "$GCC"; then
  11410. lt_prog_compiler_wl='-Wl,'
  11411. lt_prog_compiler_static='-static'
  11412. case $host_os in
  11413. aix*)
  11414. # All AIX code is PIC.
  11415. if test ia64 = "$host_cpu"; then
  11416. # AIX 5 now supports IA64 processor
  11417. lt_prog_compiler_static='-Bstatic'
  11418. fi
  11419. lt_prog_compiler_pic='-fPIC'
  11420. ;;
  11421. amigaos*)
  11422. case $host_cpu in
  11423. powerpc)
  11424. # see comment about AmigaOS4 .so support
  11425. lt_prog_compiler_pic='-fPIC'
  11426. ;;
  11427. m68k)
  11428. # FIXME: we need at least 68020 code to build shared libraries, but
  11429. # adding the '-m68020' flag to GCC prevents building anything better,
  11430. # like '-m68040'.
  11431. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  11432. ;;
  11433. esac
  11434. ;;
  11435. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11436. # PIC is the default for these OSes.
  11437. ;;
  11438. mingw* | cygwin* | pw32* | os2* | cegcc*)
  11439. # This hack is so that the source file can tell whether it is being
  11440. # built for inclusion in a dll (and should export symbols for example).
  11441. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  11442. # (--disable-auto-import) libraries
  11443. lt_prog_compiler_pic='-DDLL_EXPORT'
  11444. case $host_os in
  11445. os2*)
  11446. lt_prog_compiler_static='$wl-static'
  11447. ;;
  11448. esac
  11449. ;;
  11450. darwin* | rhapsody*)
  11451. # PIC is the default on this platform
  11452. # Common symbols not allowed in MH_DYLIB files
  11453. lt_prog_compiler_pic='-fno-common'
  11454. ;;
  11455. haiku*)
  11456. # PIC is the default for Haiku.
  11457. # The "-static" flag exists, but is broken.
  11458. lt_prog_compiler_static=
  11459. ;;
  11460. hpux*)
  11461. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  11462. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  11463. # sets the default TLS model and affects inlining.
  11464. case $host_cpu in
  11465. hppa*64*)
  11466. # +Z the default
  11467. ;;
  11468. *)
  11469. lt_prog_compiler_pic='-fPIC'
  11470. ;;
  11471. esac
  11472. ;;
  11473. interix[3-9]*)
  11474. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  11475. # Instead, we relocate shared libraries at runtime.
  11476. ;;
  11477. msdosdjgpp*)
  11478. # Just because we use GCC doesn't mean we suddenly get shared libraries
  11479. # on systems that don't support them.
  11480. lt_prog_compiler_can_build_shared=no
  11481. enable_shared=no
  11482. ;;
  11483. *nto* | *qnx*)
  11484. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11485. # it will coredump.
  11486. lt_prog_compiler_pic='-fPIC -shared'
  11487. ;;
  11488. sysv4*MP*)
  11489. if test -d /usr/nec; then
  11490. lt_prog_compiler_pic=-Kconform_pic
  11491. fi
  11492. ;;
  11493. *)
  11494. lt_prog_compiler_pic='-fPIC'
  11495. ;;
  11496. esac
  11497. case $cc_basename in
  11498. nvcc*) # Cuda Compiler Driver 2.2
  11499. lt_prog_compiler_wl='-Xlinker '
  11500. if test -n "$lt_prog_compiler_pic"; then
  11501. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  11502. fi
  11503. ;;
  11504. esac
  11505. else
  11506. # PORTME Check for flag to pass linker flags through the system compiler.
  11507. case $host_os in
  11508. aix*)
  11509. lt_prog_compiler_wl='-Wl,'
  11510. if test ia64 = "$host_cpu"; then
  11511. # AIX 5 now supports IA64 processor
  11512. lt_prog_compiler_static='-Bstatic'
  11513. else
  11514. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  11515. fi
  11516. ;;
  11517. darwin* | rhapsody*)
  11518. # PIC is the default on this platform
  11519. # Common symbols not allowed in MH_DYLIB files
  11520. lt_prog_compiler_pic='-fno-common'
  11521. case $cc_basename in
  11522. nagfor*)
  11523. # NAG Fortran compiler
  11524. lt_prog_compiler_wl='-Wl,-Wl,,'
  11525. lt_prog_compiler_pic='-PIC'
  11526. lt_prog_compiler_static='-Bstatic'
  11527. ;;
  11528. esac
  11529. ;;
  11530. mingw* | cygwin* | pw32* | os2* | cegcc*)
  11531. # This hack is so that the source file can tell whether it is being
  11532. # built for inclusion in a dll (and should export symbols for example).
  11533. lt_prog_compiler_pic='-DDLL_EXPORT'
  11534. case $host_os in
  11535. os2*)
  11536. lt_prog_compiler_static='$wl-static'
  11537. ;;
  11538. esac
  11539. ;;
  11540. hpux9* | hpux10* | hpux11*)
  11541. lt_prog_compiler_wl='-Wl,'
  11542. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  11543. # not for PA HP-UX.
  11544. case $host_cpu in
  11545. hppa*64*|ia64*)
  11546. # +Z the default
  11547. ;;
  11548. *)
  11549. lt_prog_compiler_pic='+Z'
  11550. ;;
  11551. esac
  11552. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  11553. lt_prog_compiler_static='$wl-a ${wl}archive'
  11554. ;;
  11555. irix5* | irix6* | nonstopux*)
  11556. lt_prog_compiler_wl='-Wl,'
  11557. # PIC (with -KPIC) is the default.
  11558. lt_prog_compiler_static='-non_shared'
  11559. ;;
  11560. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  11561. case $cc_basename in
  11562. # old Intel for x86_64, which still supported -KPIC.
  11563. ecc*)
  11564. lt_prog_compiler_wl='-Wl,'
  11565. lt_prog_compiler_pic='-KPIC'
  11566. lt_prog_compiler_static='-static'
  11567. ;;
  11568. # flang / f18. f95 an alias for gfortran or flang on Debian
  11569. flang* | f18* | f95*)
  11570. lt_prog_compiler_wl='-Wl,'
  11571. lt_prog_compiler_pic='-fPIC'
  11572. lt_prog_compiler_static='-static'
  11573. ;;
  11574. # icc used to be incompatible with GCC.
  11575. # ICC 10 doesn't accept -KPIC any more.
  11576. icc* | ifort*)
  11577. lt_prog_compiler_wl='-Wl,'
  11578. lt_prog_compiler_pic='-fPIC'
  11579. lt_prog_compiler_static='-static'
  11580. ;;
  11581. # Lahey Fortran 8.1.
  11582. lf95*)
  11583. lt_prog_compiler_wl='-Wl,'
  11584. lt_prog_compiler_pic='--shared'
  11585. lt_prog_compiler_static='--static'
  11586. ;;
  11587. nagfor*)
  11588. # NAG Fortran compiler
  11589. lt_prog_compiler_wl='-Wl,-Wl,,'
  11590. lt_prog_compiler_pic='-PIC'
  11591. lt_prog_compiler_static='-Bstatic'
  11592. ;;
  11593. tcc*)
  11594. # Fabrice Bellard et al's Tiny C Compiler
  11595. lt_prog_compiler_wl='-Wl,'
  11596. lt_prog_compiler_pic='-fPIC'
  11597. lt_prog_compiler_static='-static'
  11598. ;;
  11599. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  11600. # Portland Group compilers (*not* the Pentium gcc compiler,
  11601. # which looks to be a dead project)
  11602. lt_prog_compiler_wl='-Wl,'
  11603. lt_prog_compiler_pic='-fpic'
  11604. lt_prog_compiler_static='-Bstatic'
  11605. ;;
  11606. ccc*)
  11607. lt_prog_compiler_wl='-Wl,'
  11608. # All Alpha code is PIC.
  11609. lt_prog_compiler_static='-non_shared'
  11610. ;;
  11611. xl* | bgxl* | bgf* | mpixl*)
  11612. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  11613. lt_prog_compiler_wl='-Wl,'
  11614. lt_prog_compiler_pic='-qpic'
  11615. lt_prog_compiler_static='-qstaticlink'
  11616. ;;
  11617. *)
  11618. case `$CC -V 2>&1 | sed 5q` in
  11619. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  11620. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  11621. lt_prog_compiler_pic='-KPIC'
  11622. lt_prog_compiler_static='-Bstatic'
  11623. lt_prog_compiler_wl=''
  11624. ;;
  11625. *Sun\ F* | *Sun*Fortran*)
  11626. lt_prog_compiler_pic='-KPIC'
  11627. lt_prog_compiler_static='-Bstatic'
  11628. lt_prog_compiler_wl='-Qoption ld '
  11629. ;;
  11630. *Sun\ C*)
  11631. # Sun C 5.9
  11632. lt_prog_compiler_pic='-KPIC'
  11633. lt_prog_compiler_static='-Bstatic'
  11634. lt_prog_compiler_wl='-Wl,'
  11635. ;;
  11636. *Intel*\ [CF]*Compiler*)
  11637. lt_prog_compiler_wl='-Wl,'
  11638. lt_prog_compiler_pic='-fPIC'
  11639. lt_prog_compiler_static='-static'
  11640. ;;
  11641. *Portland\ Group*)
  11642. lt_prog_compiler_wl='-Wl,'
  11643. lt_prog_compiler_pic='-fpic'
  11644. lt_prog_compiler_static='-Bstatic'
  11645. ;;
  11646. esac
  11647. ;;
  11648. esac
  11649. ;;
  11650. newsos6)
  11651. lt_prog_compiler_pic='-KPIC'
  11652. lt_prog_compiler_static='-Bstatic'
  11653. ;;
  11654. *nto* | *qnx*)
  11655. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11656. # it will coredump.
  11657. lt_prog_compiler_pic='-fPIC -shared'
  11658. ;;
  11659. osf3* | osf4* | osf5*)
  11660. lt_prog_compiler_wl='-Wl,'
  11661. # All OSF/1 code is PIC.
  11662. lt_prog_compiler_static='-non_shared'
  11663. ;;
  11664. rdos*)
  11665. lt_prog_compiler_static='-non_shared'
  11666. ;;
  11667. solaris*)
  11668. lt_prog_compiler_pic='-KPIC'
  11669. lt_prog_compiler_static='-Bstatic'
  11670. case $cc_basename in
  11671. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  11672. lt_prog_compiler_wl='-Qoption ld ';;
  11673. *)
  11674. lt_prog_compiler_wl='-Wl,';;
  11675. esac
  11676. ;;
  11677. sunos4*)
  11678. lt_prog_compiler_wl='-Qoption ld '
  11679. lt_prog_compiler_pic='-PIC'
  11680. lt_prog_compiler_static='-Bstatic'
  11681. ;;
  11682. sysv4 | sysv4.2uw2* | sysv4.3*)
  11683. lt_prog_compiler_wl='-Wl,'
  11684. lt_prog_compiler_pic='-KPIC'
  11685. lt_prog_compiler_static='-Bstatic'
  11686. ;;
  11687. sysv4*MP*)
  11688. if test -d /usr/nec; then
  11689. lt_prog_compiler_pic='-Kconform_pic'
  11690. lt_prog_compiler_static='-Bstatic'
  11691. fi
  11692. ;;
  11693. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  11694. lt_prog_compiler_wl='-Wl,'
  11695. lt_prog_compiler_pic='-KPIC'
  11696. lt_prog_compiler_static='-Bstatic'
  11697. ;;
  11698. unicos*)
  11699. lt_prog_compiler_wl='-Wl,'
  11700. lt_prog_compiler_can_build_shared=no
  11701. ;;
  11702. uts4*)
  11703. lt_prog_compiler_pic='-pic'
  11704. lt_prog_compiler_static='-Bstatic'
  11705. ;;
  11706. *)
  11707. lt_prog_compiler_can_build_shared=no
  11708. ;;
  11709. esac
  11710. fi
  11711. case $host_os in
  11712. # For platforms that do not support PIC, -DPIC is meaningless:
  11713. *djgpp*)
  11714. lt_prog_compiler_pic=
  11715. ;;
  11716. *)
  11717. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  11718. ;;
  11719. esac
  11720. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  11721. printf %s "checking for $compiler option to produce PIC... " >&6; }
  11722. if test ${lt_cv_prog_compiler_pic+y}
  11723. then :
  11724. printf %s "(cached) " >&6
  11725. else $as_nop
  11726. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  11727. fi
  11728. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  11729. printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
  11730. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  11731. #
  11732. # Check to make sure the PIC flag actually works.
  11733. #
  11734. if test -n "$lt_prog_compiler_pic"; then
  11735. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  11736. printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  11737. if test ${lt_cv_prog_compiler_pic_works+y}
  11738. then :
  11739. printf %s "(cached) " >&6
  11740. else $as_nop
  11741. lt_cv_prog_compiler_pic_works=no
  11742. ac_outfile=conftest.$ac_objext
  11743. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11744. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  11745. # Insert the option either (1) after the last *FLAGS variable, or
  11746. # (2) before a word containing "conftest.", or (3) at the end.
  11747. # Note that $ac_compile itself does not contain backslashes and begins
  11748. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11749. # The option is referenced via a variable to avoid confusing sed.
  11750. lt_compile=`echo "$ac_compile" | $SED \
  11751. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11752. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11753. -e 's:$: $lt_compiler_flag:'`
  11754. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  11755. (eval "$lt_compile" 2>conftest.err)
  11756. ac_status=$?
  11757. cat conftest.err >&5
  11758. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11759. if (exit $ac_status) && test -s "$ac_outfile"; then
  11760. # The compiler can only warn and ignore the option if not recognized
  11761. # So say no if there are warnings other than the usual output.
  11762. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  11763. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11764. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  11765. lt_cv_prog_compiler_pic_works=yes
  11766. fi
  11767. fi
  11768. $RM conftest*
  11769. fi
  11770. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  11771. printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
  11772. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  11773. case $lt_prog_compiler_pic in
  11774. "" | " "*) ;;
  11775. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  11776. esac
  11777. else
  11778. lt_prog_compiler_pic=
  11779. lt_prog_compiler_can_build_shared=no
  11780. fi
  11781. fi
  11782. #
  11783. # Check to make sure the static flag actually works.
  11784. #
  11785. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  11786. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  11787. printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  11788. if test ${lt_cv_prog_compiler_static_works+y}
  11789. then :
  11790. printf %s "(cached) " >&6
  11791. else $as_nop
  11792. lt_cv_prog_compiler_static_works=no
  11793. save_LDFLAGS=$LDFLAGS
  11794. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  11795. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  11796. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  11797. # The linker can only warn and ignore the option if not recognized
  11798. # So say no if there are warnings
  11799. if test -s conftest.err; then
  11800. # Append any errors to the config.log.
  11801. cat conftest.err 1>&5
  11802. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  11803. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11804. if diff conftest.exp conftest.er2 >/dev/null; then
  11805. lt_cv_prog_compiler_static_works=yes
  11806. fi
  11807. else
  11808. lt_cv_prog_compiler_static_works=yes
  11809. fi
  11810. fi
  11811. $RM -r conftest*
  11812. LDFLAGS=$save_LDFLAGS
  11813. fi
  11814. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  11815. printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
  11816. if test yes = "$lt_cv_prog_compiler_static_works"; then
  11817. :
  11818. else
  11819. lt_prog_compiler_static=
  11820. fi
  11821. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  11822. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  11823. if test ${lt_cv_prog_compiler_c_o+y}
  11824. then :
  11825. printf %s "(cached) " >&6
  11826. else $as_nop
  11827. lt_cv_prog_compiler_c_o=no
  11828. $RM -r conftest 2>/dev/null
  11829. mkdir conftest
  11830. cd conftest
  11831. mkdir out
  11832. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11833. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11834. # Insert the option either (1) after the last *FLAGS variable, or
  11835. # (2) before a word containing "conftest.", or (3) at the end.
  11836. # Note that $ac_compile itself does not contain backslashes and begins
  11837. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11838. lt_compile=`echo "$ac_compile" | $SED \
  11839. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11840. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11841. -e 's:$: $lt_compiler_flag:'`
  11842. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  11843. (eval "$lt_compile" 2>out/conftest.err)
  11844. ac_status=$?
  11845. cat out/conftest.err >&5
  11846. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11847. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11848. then
  11849. # The compiler can only warn and ignore the option if not recognized
  11850. # So say no if there are warnings
  11851. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  11852. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11853. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11854. lt_cv_prog_compiler_c_o=yes
  11855. fi
  11856. fi
  11857. chmod u+w . 2>&5
  11858. $RM conftest*
  11859. # SGI C++ compiler will create directory out/ii_files/ for
  11860. # template instantiation
  11861. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  11862. $RM out/* && rmdir out
  11863. cd ..
  11864. $RM -r conftest
  11865. $RM conftest*
  11866. fi
  11867. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  11868. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  11869. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  11870. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  11871. if test ${lt_cv_prog_compiler_c_o+y}
  11872. then :
  11873. printf %s "(cached) " >&6
  11874. else $as_nop
  11875. lt_cv_prog_compiler_c_o=no
  11876. $RM -r conftest 2>/dev/null
  11877. mkdir conftest
  11878. cd conftest
  11879. mkdir out
  11880. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11881. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11882. # Insert the option either (1) after the last *FLAGS variable, or
  11883. # (2) before a word containing "conftest.", or (3) at the end.
  11884. # Note that $ac_compile itself does not contain backslashes and begins
  11885. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11886. lt_compile=`echo "$ac_compile" | $SED \
  11887. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11888. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11889. -e 's:$: $lt_compiler_flag:'`
  11890. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  11891. (eval "$lt_compile" 2>out/conftest.err)
  11892. ac_status=$?
  11893. cat out/conftest.err >&5
  11894. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11895. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11896. then
  11897. # The compiler can only warn and ignore the option if not recognized
  11898. # So say no if there are warnings
  11899. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  11900. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11901. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11902. lt_cv_prog_compiler_c_o=yes
  11903. fi
  11904. fi
  11905. chmod u+w . 2>&5
  11906. $RM conftest*
  11907. # SGI C++ compiler will create directory out/ii_files/ for
  11908. # template instantiation
  11909. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  11910. $RM out/* && rmdir out
  11911. cd ..
  11912. $RM -r conftest
  11913. $RM conftest*
  11914. fi
  11915. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  11916. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  11917. hard_links=nottested
  11918. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  11919. # do not overwrite the value of need_locks provided by the user
  11920. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  11921. printf %s "checking if we can lock with hard links... " >&6; }
  11922. hard_links=yes
  11923. $RM conftest*
  11924. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11925. touch conftest.a
  11926. ln conftest.a conftest.b 2>&5 || hard_links=no
  11927. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11928. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  11929. printf "%s\n" "$hard_links" >&6; }
  11930. if test no = "$hard_links"; then
  11931. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  11932. printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  11933. need_locks=warn
  11934. fi
  11935. else
  11936. need_locks=no
  11937. fi
  11938. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11939. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11940. runpath_var=
  11941. allow_undefined_flag=
  11942. always_export_symbols=no
  11943. archive_cmds=
  11944. archive_expsym_cmds=
  11945. compiler_needs_object=no
  11946. enable_shared_with_static_runtimes=no
  11947. export_dynamic_flag_spec=
  11948. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11949. hardcode_automatic=no
  11950. hardcode_direct=no
  11951. hardcode_direct_absolute=no
  11952. hardcode_libdir_flag_spec=
  11953. hardcode_libdir_separator=
  11954. hardcode_minus_L=no
  11955. hardcode_shlibpath_var=unsupported
  11956. inherit_rpath=no
  11957. link_all_deplibs=unknown
  11958. module_cmds=
  11959. module_expsym_cmds=
  11960. old_archive_from_new_cmds=
  11961. old_archive_from_expsyms_cmds=
  11962. thread_safe_flag_spec=
  11963. whole_archive_flag_spec=
  11964. # include_expsyms should be a list of space-separated symbols to be *always*
  11965. # included in the symbol list
  11966. include_expsyms=
  11967. # exclude_expsyms can be an extended regexp of symbols to exclude
  11968. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  11969. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  11970. # as well as any symbol that contains 'd'.
  11971. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  11972. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  11973. # platforms (ab)use it in PIC code, but their linkers get confused if
  11974. # the symbol is explicitly referenced. Since portable code cannot
  11975. # rely on this symbol name, it's probably fine to never include it in
  11976. # preloaded symbol tables.
  11977. # Exclude shared library initialization/finalization symbols.
  11978. extract_expsyms_cmds=
  11979. case $host_os in
  11980. cygwin* | mingw* | pw32* | cegcc*)
  11981. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  11982. # When not using gcc, we currently assume that we are using
  11983. # Microsoft Visual C++.
  11984. if test yes != "$GCC"; then
  11985. with_gnu_ld=no
  11986. fi
  11987. ;;
  11988. interix*)
  11989. # we just hope/assume this is gcc and not c89 (= MSVC++)
  11990. with_gnu_ld=yes
  11991. ;;
  11992. openbsd* | bitrig*)
  11993. with_gnu_ld=no
  11994. ;;
  11995. linux* | k*bsd*-gnu | gnu*)
  11996. link_all_deplibs=no
  11997. ;;
  11998. esac
  11999. ld_shlibs=yes
  12000. # On some targets, GNU ld is compatible enough with the native linker
  12001. # that we're better off using the native interface for both.
  12002. lt_use_gnu_ld_interface=no
  12003. if test yes = "$with_gnu_ld"; then
  12004. case $host_os in
  12005. aix*)
  12006. # The AIX port of GNU ld has always aspired to compatibility
  12007. # with the native linker. However, as the warning in the GNU ld
  12008. # block says, versions before 2.19.5* couldn't really create working
  12009. # shared libraries, regardless of the interface used.
  12010. case `$LD -v 2>&1` in
  12011. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  12012. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  12013. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  12014. *)
  12015. lt_use_gnu_ld_interface=yes
  12016. ;;
  12017. esac
  12018. ;;
  12019. *)
  12020. lt_use_gnu_ld_interface=yes
  12021. ;;
  12022. esac
  12023. fi
  12024. if test yes = "$lt_use_gnu_ld_interface"; then
  12025. # If archive_cmds runs LD, not CC, wlarc should be empty
  12026. wlarc='$wl'
  12027. # Set some defaults for GNU ld with shared library support. These
  12028. # are reset later if shared libraries are not supported. Putting them
  12029. # here allows them to be overridden if necessary.
  12030. runpath_var=LD_RUN_PATH
  12031. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  12032. export_dynamic_flag_spec='$wl--export-dynamic'
  12033. # ancient GNU ld didn't support --whole-archive et. al.
  12034. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  12035. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  12036. else
  12037. whole_archive_flag_spec=
  12038. fi
  12039. supports_anon_versioning=no
  12040. case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
  12041. *GNU\ gold*) supports_anon_versioning=yes ;;
  12042. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  12043. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  12044. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  12045. *\ 2.11.*) ;; # other 2.11 versions
  12046. *) supports_anon_versioning=yes ;;
  12047. esac
  12048. # See if GNU ld supports shared libraries.
  12049. case $host_os in
  12050. aix[3-9]*)
  12051. # On AIX/PPC, the GNU linker is very broken
  12052. if test ia64 != "$host_cpu"; then
  12053. ld_shlibs=no
  12054. cat <<_LT_EOF 1>&2
  12055. *** Warning: the GNU linker, at least up to release 2.19, is reported
  12056. *** to be unable to reliably create shared libraries on AIX.
  12057. *** Therefore, libtool is disabling shared libraries support. If you
  12058. *** really care for shared libraries, you may want to install binutils
  12059. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  12060. *** You will then need to restart the configuration process.
  12061. _LT_EOF
  12062. fi
  12063. ;;
  12064. amigaos*)
  12065. case $host_cpu in
  12066. powerpc)
  12067. # see comment about AmigaOS4 .so support
  12068. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12069. archive_expsym_cmds=''
  12070. ;;
  12071. m68k)
  12072. archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  12073. hardcode_libdir_flag_spec='-L$libdir'
  12074. hardcode_minus_L=yes
  12075. ;;
  12076. esac
  12077. ;;
  12078. beos*)
  12079. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  12080. allow_undefined_flag=unsupported
  12081. # Joseph Beckenbach <[email protected]> says some releases of gcc
  12082. # support --undefined. This deserves some investigation. FIXME
  12083. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12084. else
  12085. ld_shlibs=no
  12086. fi
  12087. ;;
  12088. cygwin* | mingw* | pw32* | cegcc*)
  12089. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  12090. # as there is no search path for DLLs.
  12091. hardcode_libdir_flag_spec='-L$libdir'
  12092. export_dynamic_flag_spec='$wl--export-all-symbols'
  12093. allow_undefined_flag=unsupported
  12094. always_export_symbols=no
  12095. enable_shared_with_static_runtimes=yes
  12096. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  12097. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12098. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  12099. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  12100. # If the export-symbols file already is a .def file, use it as
  12101. # is; otherwise, prepend EXPORTS...
  12102. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  12103. cp $export_symbols $output_objdir/$soname.def;
  12104. else
  12105. echo EXPORTS > $output_objdir/$soname.def;
  12106. cat $export_symbols >> $output_objdir/$soname.def;
  12107. fi~
  12108. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  12109. else
  12110. ld_shlibs=no
  12111. fi
  12112. ;;
  12113. haiku*)
  12114. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12115. link_all_deplibs=yes
  12116. ;;
  12117. os2*)
  12118. hardcode_libdir_flag_spec='-L$libdir'
  12119. hardcode_minus_L=yes
  12120. allow_undefined_flag=unsupported
  12121. shrext_cmds=.dll
  12122. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  12123. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  12124. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  12125. $ECHO EXPORTS >> $output_objdir/$libname.def~
  12126. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  12127. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  12128. emximp -o $lib $output_objdir/$libname.def'
  12129. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  12130. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  12131. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  12132. $ECHO EXPORTS >> $output_objdir/$libname.def~
  12133. prefix_cmds="$SED"~
  12134. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  12135. prefix_cmds="$prefix_cmds -e 1d";
  12136. fi~
  12137. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  12138. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  12139. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  12140. emximp -o $lib $output_objdir/$libname.def'
  12141. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  12142. enable_shared_with_static_runtimes=yes
  12143. ;;
  12144. interix[3-9]*)
  12145. hardcode_direct=no
  12146. hardcode_shlibpath_var=no
  12147. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  12148. export_dynamic_flag_spec='$wl-E'
  12149. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  12150. # Instead, shared libraries are loaded at an image base (0x10000000 by
  12151. # default) and relocated if they conflict, which is a slow very memory
  12152. # consuming and fragmenting process. To avoid this, we pick a random,
  12153. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  12154. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  12155. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  12156. archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  12157. ;;
  12158. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  12159. tmp_diet=no
  12160. if test linux-dietlibc = "$host_os"; then
  12161. case $cc_basename in
  12162. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  12163. esac
  12164. fi
  12165. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  12166. && test no = "$tmp_diet"
  12167. then
  12168. tmp_addflag=' $pic_flag'
  12169. tmp_sharedflag='-shared'
  12170. case $cc_basename,$host_cpu in
  12171. pgcc*) # Portland Group C compiler
  12172. whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  12173. tmp_addflag=' $pic_flag'
  12174. ;;
  12175. pgf77* | pgf90* | pgf95* | pgfortran*)
  12176. # Portland Group f77 and f90 compilers
  12177. whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  12178. tmp_addflag=' $pic_flag -Mnomain' ;;
  12179. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  12180. tmp_addflag=' -i_dynamic' ;;
  12181. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  12182. tmp_addflag=' -i_dynamic -nofor_main' ;;
  12183. ifc* | ifort*) # Intel Fortran compiler
  12184. tmp_addflag=' -nofor_main' ;;
  12185. lf95*) # Lahey Fortran 8.1
  12186. whole_archive_flag_spec=
  12187. tmp_sharedflag='--shared' ;;
  12188. nagfor*) # NAGFOR 5.3
  12189. tmp_sharedflag='-Wl,-shared' ;;
  12190. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  12191. tmp_sharedflag='-qmkshrobj'
  12192. tmp_addflag= ;;
  12193. nvcc*) # Cuda Compiler Driver 2.2
  12194. whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  12195. compiler_needs_object=yes
  12196. ;;
  12197. esac
  12198. case `$CC -V 2>&1 | sed 5q` in
  12199. *Sun\ C*) # Sun C 5.9
  12200. whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  12201. compiler_needs_object=yes
  12202. tmp_sharedflag='-G' ;;
  12203. *Sun\ F*) # Sun Fortran 8.3
  12204. tmp_sharedflag='-G' ;;
  12205. esac
  12206. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12207. if test yes = "$supports_anon_versioning"; then
  12208. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  12209. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  12210. echo "local: *; };" >> $output_objdir/$libname.ver~
  12211. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  12212. fi
  12213. case $cc_basename in
  12214. tcc*)
  12215. export_dynamic_flag_spec='-rdynamic'
  12216. ;;
  12217. xlf* | bgf* | bgxlf* | mpixlf*)
  12218. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  12219. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  12220. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  12221. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  12222. if test yes = "$supports_anon_versioning"; then
  12223. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  12224. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  12225. echo "local: *; };" >> $output_objdir/$libname.ver~
  12226. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  12227. fi
  12228. ;;
  12229. esac
  12230. else
  12231. ld_shlibs=no
  12232. fi
  12233. ;;
  12234. netbsd* | netbsdelf*-gnu)
  12235. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12236. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  12237. wlarc=
  12238. else
  12239. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12240. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  12241. fi
  12242. ;;
  12243. solaris*)
  12244. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  12245. ld_shlibs=no
  12246. cat <<_LT_EOF 1>&2
  12247. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  12248. *** create shared libraries on Solaris systems. Therefore, libtool
  12249. *** is disabling shared libraries support. We urge you to upgrade GNU
  12250. *** binutils to release 2.9.1 or newer. Another option is to modify
  12251. *** your PATH or compiler configuration so that the native linker is
  12252. *** used, and then restart.
  12253. _LT_EOF
  12254. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  12255. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12256. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  12257. else
  12258. ld_shlibs=no
  12259. fi
  12260. ;;
  12261. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  12262. case `$LD -v 2>&1` in
  12263. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  12264. ld_shlibs=no
  12265. cat <<_LT_EOF 1>&2
  12266. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  12267. *** reliably create shared libraries on SCO systems. Therefore, libtool
  12268. *** is disabling shared libraries support. We urge you to upgrade GNU
  12269. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  12270. *** your PATH or compiler configuration so that the native linker is
  12271. *** used, and then restart.
  12272. _LT_EOF
  12273. ;;
  12274. *)
  12275. # For security reasons, it is highly recommended that you always
  12276. # use absolute paths for naming shared libraries, and exclude the
  12277. # DT_RUNPATH tag from executables and libraries. But doing so
  12278. # requires that you compile everything twice, which is a pain.
  12279. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  12280. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  12281. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12282. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  12283. else
  12284. ld_shlibs=no
  12285. fi
  12286. ;;
  12287. esac
  12288. ;;
  12289. sunos4*)
  12290. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  12291. wlarc=
  12292. hardcode_direct=yes
  12293. hardcode_shlibpath_var=no
  12294. ;;
  12295. *)
  12296. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  12297. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12298. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  12299. else
  12300. ld_shlibs=no
  12301. fi
  12302. ;;
  12303. esac
  12304. if test no = "$ld_shlibs"; then
  12305. runpath_var=
  12306. hardcode_libdir_flag_spec=
  12307. export_dynamic_flag_spec=
  12308. whole_archive_flag_spec=
  12309. fi
  12310. else
  12311. # PORTME fill in a description of your system's linker (not GNU ld)
  12312. case $host_os in
  12313. aix3*)
  12314. allow_undefined_flag=unsupported
  12315. always_export_symbols=yes
  12316. archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  12317. # Note: this linker hardcodes the directories in LIBPATH if there
  12318. # are no directories specified by -L.
  12319. hardcode_minus_L=yes
  12320. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  12321. # Neither direct hardcoding nor static linking is supported with a
  12322. # broken collect2.
  12323. hardcode_direct=unsupported
  12324. fi
  12325. ;;
  12326. aix[4-9]*)
  12327. if test ia64 = "$host_cpu"; then
  12328. # On IA64, the linker does run time linking by default, so we don't
  12329. # have to do anything special.
  12330. aix_use_runtimelinking=no
  12331. exp_sym_flag='-Bexport'
  12332. no_entry_flag=
  12333. else
  12334. # If we're using GNU nm, then we don't want the "-C" option.
  12335. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  12336. # Without the "-l" option, or with the "-B" option, AIX nm treats
  12337. # weak defined symbols like other global defined symbols, whereas
  12338. # GNU nm marks them as "W".
  12339. # While the 'weak' keyword is ignored in the Export File, we need
  12340. # it in the Import File for the 'aix-soname' feature, so we have
  12341. # to replace the "-B" option with "-P" for AIX nm.
  12342. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12343. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
  12344. else
  12345. export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
  12346. fi
  12347. aix_use_runtimelinking=no
  12348. # Test if we are trying to use run time linking or normal
  12349. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  12350. # have runtime linking enabled, and use it for executables.
  12351. # For shared libraries, we enable/disable runtime linking
  12352. # depending on the kind of the shared library created -
  12353. # when "with_aix_soname,aix_use_runtimelinking" is:
  12354. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  12355. # "aix,yes" lib.so shared, rtl:yes, for executables
  12356. # lib.a static archive
  12357. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  12358. # lib.a(lib.so.V) shared, rtl:no, for executables
  12359. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  12360. # lib.a(lib.so.V) shared, rtl:no
  12361. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  12362. # lib.a static archive
  12363. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  12364. for ld_flag in $LDFLAGS; do
  12365. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  12366. aix_use_runtimelinking=yes
  12367. break
  12368. fi
  12369. done
  12370. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  12371. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  12372. # so we don't have lib.a shared libs to link our executables.
  12373. # We have to force runtime linking in this case.
  12374. aix_use_runtimelinking=yes
  12375. LDFLAGS="$LDFLAGS -Wl,-brtl"
  12376. fi
  12377. ;;
  12378. esac
  12379. exp_sym_flag='-bexport'
  12380. no_entry_flag='-bnoentry'
  12381. fi
  12382. # When large executables or shared objects are built, AIX ld can
  12383. # have problems creating the table of contents. If linking a library
  12384. # or program results in "error TOC overflow" add -mminimal-toc to
  12385. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  12386. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  12387. archive_cmds=''
  12388. hardcode_direct=yes
  12389. hardcode_direct_absolute=yes
  12390. hardcode_libdir_separator=':'
  12391. link_all_deplibs=yes
  12392. file_list_spec='$wl-f,'
  12393. case $with_aix_soname,$aix_use_runtimelinking in
  12394. aix,*) ;; # traditional, no import file
  12395. svr4,* | *,yes) # use import file
  12396. # The Import File defines what to hardcode.
  12397. hardcode_direct=no
  12398. hardcode_direct_absolute=no
  12399. ;;
  12400. esac
  12401. if test yes = "$GCC"; then
  12402. case $host_os in aix4.[012]|aix4.[012].*)
  12403. # We only want to do this on AIX 4.2 and lower, the check
  12404. # below for broken collect2 doesn't work under 4.3+
  12405. collect2name=`$CC -print-prog-name=collect2`
  12406. if test -f "$collect2name" &&
  12407. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  12408. then
  12409. # We have reworked collect2
  12410. :
  12411. else
  12412. # We have old collect2
  12413. hardcode_direct=unsupported
  12414. # It fails to find uninstalled libraries when the uninstalled
  12415. # path is not listed in the libpath. Setting hardcode_minus_L
  12416. # to unsupported forces relinking
  12417. hardcode_minus_L=yes
  12418. hardcode_libdir_flag_spec='-L$libdir'
  12419. hardcode_libdir_separator=
  12420. fi
  12421. ;;
  12422. esac
  12423. shared_flag='-shared'
  12424. if test yes = "$aix_use_runtimelinking"; then
  12425. shared_flag="$shared_flag "'$wl-G'
  12426. fi
  12427. # Need to ensure runtime linking is disabled for the traditional
  12428. # shared library, or the linker may eventually find shared libraries
  12429. # /with/ Import File - we do not want to mix them.
  12430. shared_flag_aix='-shared'
  12431. shared_flag_svr4='-shared $wl-G'
  12432. else
  12433. # not using gcc
  12434. if test ia64 = "$host_cpu"; then
  12435. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  12436. # chokes on -Wl,-G. The following line is correct:
  12437. shared_flag='-G'
  12438. else
  12439. if test yes = "$aix_use_runtimelinking"; then
  12440. shared_flag='$wl-G'
  12441. else
  12442. shared_flag='$wl-bM:SRE'
  12443. fi
  12444. shared_flag_aix='$wl-bM:SRE'
  12445. shared_flag_svr4='$wl-G'
  12446. fi
  12447. fi
  12448. export_dynamic_flag_spec='$wl-bexpall'
  12449. # It seems that -bexpall does not export symbols beginning with
  12450. # underscore (_), so it is better to generate a list of symbols to export.
  12451. always_export_symbols=yes
  12452. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  12453. # Warning - without using the other runtime loading flags (-brtl),
  12454. # -berok will link without error, but may produce a broken library.
  12455. allow_undefined_flag='-berok'
  12456. # Determine the default libpath from the value encoded in an
  12457. # empty executable.
  12458. if test set = "${lt_cv_aix_libpath+set}"; then
  12459. aix_libpath=$lt_cv_aix_libpath
  12460. else
  12461. if test ${lt_cv_aix_libpath_+y}
  12462. then :
  12463. printf %s "(cached) " >&6
  12464. else $as_nop
  12465. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12466. /* end confdefs.h. */
  12467. int
  12468. main (void)
  12469. {
  12470. ;
  12471. return 0;
  12472. }
  12473. _ACEOF
  12474. if ac_fn_c_try_link "$LINENO"
  12475. then :
  12476. lt_aix_libpath_sed='
  12477. /Import File Strings/,/^$/ {
  12478. /^0/ {
  12479. s/^0 *\([^ ]*\) *$/\1/
  12480. p
  12481. }
  12482. }'
  12483. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12484. # Check for a 64-bit object if we didn't find anything.
  12485. if test -z "$lt_cv_aix_libpath_"; then
  12486. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12487. fi
  12488. fi
  12489. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12490. conftest$ac_exeext conftest.$ac_ext
  12491. if test -z "$lt_cv_aix_libpath_"; then
  12492. lt_cv_aix_libpath_=/usr/lib:/lib
  12493. fi
  12494. fi
  12495. aix_libpath=$lt_cv_aix_libpath_
  12496. fi
  12497. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  12498. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
  12499. else
  12500. if test ia64 = "$host_cpu"; then
  12501. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  12502. allow_undefined_flag="-z nodefs"
  12503. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
  12504. else
  12505. # Determine the default libpath from the value encoded in an
  12506. # empty executable.
  12507. if test set = "${lt_cv_aix_libpath+set}"; then
  12508. aix_libpath=$lt_cv_aix_libpath
  12509. else
  12510. if test ${lt_cv_aix_libpath_+y}
  12511. then :
  12512. printf %s "(cached) " >&6
  12513. else $as_nop
  12514. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12515. /* end confdefs.h. */
  12516. int
  12517. main (void)
  12518. {
  12519. ;
  12520. return 0;
  12521. }
  12522. _ACEOF
  12523. if ac_fn_c_try_link "$LINENO"
  12524. then :
  12525. lt_aix_libpath_sed='
  12526. /Import File Strings/,/^$/ {
  12527. /^0/ {
  12528. s/^0 *\([^ ]*\) *$/\1/
  12529. p
  12530. }
  12531. }'
  12532. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12533. # Check for a 64-bit object if we didn't find anything.
  12534. if test -z "$lt_cv_aix_libpath_"; then
  12535. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12536. fi
  12537. fi
  12538. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12539. conftest$ac_exeext conftest.$ac_ext
  12540. if test -z "$lt_cv_aix_libpath_"; then
  12541. lt_cv_aix_libpath_=/usr/lib:/lib
  12542. fi
  12543. fi
  12544. aix_libpath=$lt_cv_aix_libpath_
  12545. fi
  12546. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  12547. # Warning - without using the other run time loading flags,
  12548. # -berok will link without error, but may produce a broken library.
  12549. no_undefined_flag=' $wl-bernotok'
  12550. allow_undefined_flag=' $wl-berok'
  12551. if test yes = "$with_gnu_ld"; then
  12552. # We only use this code for GNU lds that support --whole-archive.
  12553. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  12554. else
  12555. # Exported symbols can be pulled into shared objects from archives
  12556. whole_archive_flag_spec='$convenience'
  12557. fi
  12558. archive_cmds_need_lc=yes
  12559. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  12560. # -brtl affects multiple linker settings, -berok does not and is overridden later
  12561. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  12562. if test svr4 != "$with_aix_soname"; then
  12563. # This is similar to how AIX traditionally builds its shared libraries.
  12564. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
  12565. fi
  12566. if test aix != "$with_aix_soname"; then
  12567. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
  12568. else
  12569. # used by -dlpreopen to get the symbols
  12570. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  12571. fi
  12572. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  12573. fi
  12574. fi
  12575. ;;
  12576. amigaos*)
  12577. case $host_cpu in
  12578. powerpc)
  12579. # see comment about AmigaOS4 .so support
  12580. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12581. archive_expsym_cmds=''
  12582. ;;
  12583. m68k)
  12584. archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  12585. hardcode_libdir_flag_spec='-L$libdir'
  12586. hardcode_minus_L=yes
  12587. ;;
  12588. esac
  12589. ;;
  12590. bsdi[45]*)
  12591. export_dynamic_flag_spec=-rdynamic
  12592. ;;
  12593. cygwin* | mingw* | pw32* | cegcc*)
  12594. # When not using gcc, we currently assume that we are using
  12595. # Microsoft Visual C++.
  12596. # hardcode_libdir_flag_spec is actually meaningless, as there is
  12597. # no search path for DLLs.
  12598. case $cc_basename in
  12599. cl*)
  12600. # Native MSVC
  12601. hardcode_libdir_flag_spec=' '
  12602. allow_undefined_flag=unsupported
  12603. always_export_symbols=yes
  12604. file_list_spec='@'
  12605. # Tell ltmain to make .lib files, not .a files.
  12606. libext=lib
  12607. # Tell ltmain to make .dll files, not .so files.
  12608. shrext_cmds=.dll
  12609. # FIXME: Setting linknames here is a bad hack.
  12610. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  12611. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  12612. cp "$export_symbols" "$output_objdir/$soname.def";
  12613. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  12614. else
  12615. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  12616. fi~
  12617. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  12618. linknames='
  12619. # The linker will not automatically build a static lib if we build a DLL.
  12620. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  12621. enable_shared_with_static_runtimes=yes
  12622. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  12623. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  12624. # Don't use ranlib
  12625. old_postinstall_cmds='chmod 644 $oldlib'
  12626. postlink_cmds='lt_outputfile="@OUTPUT@"~
  12627. lt_tool_outputfile="@TOOL_OUTPUT@"~
  12628. case $lt_outputfile in
  12629. *.exe|*.EXE) ;;
  12630. *)
  12631. lt_outputfile=$lt_outputfile.exe
  12632. lt_tool_outputfile=$lt_tool_outputfile.exe
  12633. ;;
  12634. esac~
  12635. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  12636. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  12637. $RM "$lt_outputfile.manifest";
  12638. fi'
  12639. ;;
  12640. *)
  12641. # Assume MSVC wrapper
  12642. hardcode_libdir_flag_spec=' '
  12643. allow_undefined_flag=unsupported
  12644. # Tell ltmain to make .lib files, not .a files.
  12645. libext=lib
  12646. # Tell ltmain to make .dll files, not .so files.
  12647. shrext_cmds=.dll
  12648. # FIXME: Setting linknames here is a bad hack.
  12649. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  12650. # The linker will automatically build a .lib file if we build a DLL.
  12651. old_archive_from_new_cmds='true'
  12652. # FIXME: Should let the user specify the lib program.
  12653. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  12654. enable_shared_with_static_runtimes=yes
  12655. ;;
  12656. esac
  12657. ;;
  12658. darwin* | rhapsody*)
  12659. archive_cmds_need_lc=no
  12660. hardcode_direct=no
  12661. hardcode_automatic=yes
  12662. hardcode_shlibpath_var=unsupported
  12663. if test yes = "$lt_cv_ld_force_load"; then
  12664. whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  12665. else
  12666. whole_archive_flag_spec=''
  12667. fi
  12668. link_all_deplibs=yes
  12669. allow_undefined_flag=$_lt_dar_allow_undefined
  12670. case $cc_basename in
  12671. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  12672. *) _lt_dar_can_shared=$GCC ;;
  12673. esac
  12674. if test yes = "$_lt_dar_can_shared"; then
  12675. output_verbose_link_cmd=func_echo_all
  12676. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  12677. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  12678. archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
  12679. module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
  12680. else
  12681. ld_shlibs=no
  12682. fi
  12683. ;;
  12684. dgux*)
  12685. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12686. hardcode_libdir_flag_spec='-L$libdir'
  12687. hardcode_shlibpath_var=no
  12688. ;;
  12689. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  12690. # support. Future versions do this automatically, but an explicit c++rt0.o
  12691. # does not break anything, and helps significantly (at the cost of a little
  12692. # extra space).
  12693. freebsd2.2*)
  12694. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  12695. hardcode_libdir_flag_spec='-R$libdir'
  12696. hardcode_direct=yes
  12697. hardcode_shlibpath_var=no
  12698. ;;
  12699. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  12700. freebsd2.*)
  12701. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  12702. hardcode_direct=yes
  12703. hardcode_minus_L=yes
  12704. hardcode_shlibpath_var=no
  12705. ;;
  12706. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  12707. freebsd* | dragonfly*)
  12708. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  12709. hardcode_libdir_flag_spec='-R$libdir'
  12710. hardcode_direct=yes
  12711. hardcode_shlibpath_var=no
  12712. ;;
  12713. hpux9*)
  12714. if test yes = "$GCC"; then
  12715. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  12716. else
  12717. archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  12718. fi
  12719. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  12720. hardcode_libdir_separator=:
  12721. hardcode_direct=yes
  12722. # hardcode_minus_L: Not really in the search PATH,
  12723. # but as the default location of the library.
  12724. hardcode_minus_L=yes
  12725. export_dynamic_flag_spec='$wl-E'
  12726. ;;
  12727. hpux10*)
  12728. if test yes,no = "$GCC,$with_gnu_ld"; then
  12729. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  12730. else
  12731. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  12732. fi
  12733. if test no = "$with_gnu_ld"; then
  12734. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  12735. hardcode_libdir_separator=:
  12736. hardcode_direct=yes
  12737. hardcode_direct_absolute=yes
  12738. export_dynamic_flag_spec='$wl-E'
  12739. # hardcode_minus_L: Not really in the search PATH,
  12740. # but as the default location of the library.
  12741. hardcode_minus_L=yes
  12742. fi
  12743. ;;
  12744. hpux11*)
  12745. if test yes,no = "$GCC,$with_gnu_ld"; then
  12746. case $host_cpu in
  12747. hppa*64*)
  12748. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  12749. ;;
  12750. ia64*)
  12751. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  12752. ;;
  12753. *)
  12754. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  12755. ;;
  12756. esac
  12757. else
  12758. case $host_cpu in
  12759. hppa*64*)
  12760. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  12761. ;;
  12762. ia64*)
  12763. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  12764. ;;
  12765. *)
  12766. # Older versions of the 11.00 compiler do not understand -b yet
  12767. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  12768. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  12769. printf %s "checking if $CC understands -b... " >&6; }
  12770. if test ${lt_cv_prog_compiler__b+y}
  12771. then :
  12772. printf %s "(cached) " >&6
  12773. else $as_nop
  12774. lt_cv_prog_compiler__b=no
  12775. save_LDFLAGS=$LDFLAGS
  12776. LDFLAGS="$LDFLAGS -b"
  12777. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12778. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12779. # The linker can only warn and ignore the option if not recognized
  12780. # So say no if there are warnings
  12781. if test -s conftest.err; then
  12782. # Append any errors to the config.log.
  12783. cat conftest.err 1>&5
  12784. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12785. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12786. if diff conftest.exp conftest.er2 >/dev/null; then
  12787. lt_cv_prog_compiler__b=yes
  12788. fi
  12789. else
  12790. lt_cv_prog_compiler__b=yes
  12791. fi
  12792. fi
  12793. $RM -r conftest*
  12794. LDFLAGS=$save_LDFLAGS
  12795. fi
  12796. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  12797. printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
  12798. if test yes = "$lt_cv_prog_compiler__b"; then
  12799. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  12800. else
  12801. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  12802. fi
  12803. ;;
  12804. esac
  12805. fi
  12806. if test no = "$with_gnu_ld"; then
  12807. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  12808. hardcode_libdir_separator=:
  12809. case $host_cpu in
  12810. hppa*64*|ia64*)
  12811. hardcode_direct=no
  12812. hardcode_shlibpath_var=no
  12813. ;;
  12814. *)
  12815. hardcode_direct=yes
  12816. hardcode_direct_absolute=yes
  12817. export_dynamic_flag_spec='$wl-E'
  12818. # hardcode_minus_L: Not really in the search PATH,
  12819. # but as the default location of the library.
  12820. hardcode_minus_L=yes
  12821. ;;
  12822. esac
  12823. fi
  12824. ;;
  12825. irix5* | irix6* | nonstopux*)
  12826. if test yes = "$GCC"; then
  12827. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  12828. # Try to use the -exported_symbol ld option, if it does not
  12829. # work, assume that -exports_file does not work either and
  12830. # implicitly export all symbols.
  12831. # This should be the same for all languages, so no per-tag cache variable.
  12832. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  12833. printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  12834. if test ${lt_cv_irix_exported_symbol+y}
  12835. then :
  12836. printf %s "(cached) " >&6
  12837. else $as_nop
  12838. save_LDFLAGS=$LDFLAGS
  12839. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  12840. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12841. /* end confdefs.h. */
  12842. int foo (void) { return 0; }
  12843. _ACEOF
  12844. if ac_fn_c_try_link "$LINENO"
  12845. then :
  12846. lt_cv_irix_exported_symbol=yes
  12847. else $as_nop
  12848. lt_cv_irix_exported_symbol=no
  12849. fi
  12850. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12851. conftest$ac_exeext conftest.$ac_ext
  12852. LDFLAGS=$save_LDFLAGS
  12853. fi
  12854. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  12855. printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
  12856. if test yes = "$lt_cv_irix_exported_symbol"; then
  12857. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
  12858. fi
  12859. link_all_deplibs=no
  12860. else
  12861. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  12862. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
  12863. fi
  12864. archive_cmds_need_lc='no'
  12865. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  12866. hardcode_libdir_separator=:
  12867. inherit_rpath=yes
  12868. link_all_deplibs=yes
  12869. ;;
  12870. linux*)
  12871. case $cc_basename in
  12872. tcc*)
  12873. # Fabrice Bellard et al's Tiny C Compiler
  12874. ld_shlibs=yes
  12875. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  12876. ;;
  12877. esac
  12878. ;;
  12879. netbsd* | netbsdelf*-gnu)
  12880. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12881. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  12882. else
  12883. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  12884. fi
  12885. hardcode_libdir_flag_spec='-R$libdir'
  12886. hardcode_direct=yes
  12887. hardcode_shlibpath_var=no
  12888. ;;
  12889. newsos6)
  12890. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12891. hardcode_direct=yes
  12892. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  12893. hardcode_libdir_separator=:
  12894. hardcode_shlibpath_var=no
  12895. ;;
  12896. *nto* | *qnx*)
  12897. ;;
  12898. openbsd* | bitrig*)
  12899. if test -f /usr/libexec/ld.so; then
  12900. hardcode_direct=yes
  12901. hardcode_shlibpath_var=no
  12902. hardcode_direct_absolute=yes
  12903. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  12904. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  12905. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  12906. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  12907. export_dynamic_flag_spec='$wl-E'
  12908. else
  12909. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  12910. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  12911. fi
  12912. else
  12913. ld_shlibs=no
  12914. fi
  12915. ;;
  12916. os2*)
  12917. hardcode_libdir_flag_spec='-L$libdir'
  12918. hardcode_minus_L=yes
  12919. allow_undefined_flag=unsupported
  12920. shrext_cmds=.dll
  12921. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  12922. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  12923. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  12924. $ECHO EXPORTS >> $output_objdir/$libname.def~
  12925. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  12926. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  12927. emximp -o $lib $output_objdir/$libname.def'
  12928. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  12929. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  12930. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  12931. $ECHO EXPORTS >> $output_objdir/$libname.def~
  12932. prefix_cmds="$SED"~
  12933. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  12934. prefix_cmds="$prefix_cmds -e 1d";
  12935. fi~
  12936. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  12937. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  12938. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  12939. emximp -o $lib $output_objdir/$libname.def'
  12940. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  12941. enable_shared_with_static_runtimes=yes
  12942. ;;
  12943. osf3*)
  12944. if test yes = "$GCC"; then
  12945. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  12946. archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  12947. else
  12948. allow_undefined_flag=' -expect_unresolved \*'
  12949. archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  12950. fi
  12951. archive_cmds_need_lc='no'
  12952. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  12953. hardcode_libdir_separator=:
  12954. ;;
  12955. osf4* | osf5*) # as osf3* with the addition of -msym flag
  12956. if test yes = "$GCC"; then
  12957. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  12958. archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  12959. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  12960. else
  12961. allow_undefined_flag=' -expect_unresolved \*'
  12962. archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  12963. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
  12964. $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
  12965. # Both c and cxx compiler support -rpath directly
  12966. hardcode_libdir_flag_spec='-rpath $libdir'
  12967. fi
  12968. archive_cmds_need_lc='no'
  12969. hardcode_libdir_separator=:
  12970. ;;
  12971. solaris*)
  12972. no_undefined_flag=' -z defs'
  12973. if test yes = "$GCC"; then
  12974. wlarc='$wl'
  12975. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  12976. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12977. $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  12978. else
  12979. case `$CC -V 2>&1` in
  12980. *"Compilers 5.0"*)
  12981. wlarc=''
  12982. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12983. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12984. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  12985. ;;
  12986. *)
  12987. wlarc='$wl'
  12988. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  12989. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12990. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  12991. ;;
  12992. esac
  12993. fi
  12994. hardcode_libdir_flag_spec='-R$libdir'
  12995. hardcode_shlibpath_var=no
  12996. case $host_os in
  12997. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12998. *)
  12999. # The compiler driver will combine and reorder linker options,
  13000. # but understands '-z linker_flag'. GCC discards it without '$wl',
  13001. # but is careful enough not to reorder.
  13002. # Supported since Solaris 2.6 (maybe 2.5.1?)
  13003. if test yes = "$GCC"; then
  13004. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  13005. else
  13006. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  13007. fi
  13008. ;;
  13009. esac
  13010. link_all_deplibs=yes
  13011. ;;
  13012. sunos4*)
  13013. if test sequent = "$host_vendor"; then
  13014. # Use $CC to link under sequent, because it throws in some extra .o
  13015. # files that make .init and .fini sections work.
  13016. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  13017. else
  13018. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  13019. fi
  13020. hardcode_libdir_flag_spec='-L$libdir'
  13021. hardcode_direct=yes
  13022. hardcode_minus_L=yes
  13023. hardcode_shlibpath_var=no
  13024. ;;
  13025. sysv4)
  13026. case $host_vendor in
  13027. sni)
  13028. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13029. hardcode_direct=yes # is this really true???
  13030. ;;
  13031. siemens)
  13032. ## LD is ld it makes a PLAMLIB
  13033. ## CC just makes a GrossModule.
  13034. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  13035. reload_cmds='$CC -r -o $output$reload_objs'
  13036. hardcode_direct=no
  13037. ;;
  13038. motorola)
  13039. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13040. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  13041. ;;
  13042. esac
  13043. runpath_var='LD_RUN_PATH'
  13044. hardcode_shlibpath_var=no
  13045. ;;
  13046. sysv4.3*)
  13047. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13048. hardcode_shlibpath_var=no
  13049. export_dynamic_flag_spec='-Bexport'
  13050. ;;
  13051. sysv4*MP*)
  13052. if test -d /usr/nec; then
  13053. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13054. hardcode_shlibpath_var=no
  13055. runpath_var=LD_RUN_PATH
  13056. hardcode_runpath_var=yes
  13057. ld_shlibs=yes
  13058. fi
  13059. ;;
  13060. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  13061. no_undefined_flag='$wl-z,text'
  13062. archive_cmds_need_lc=no
  13063. hardcode_shlibpath_var=no
  13064. runpath_var='LD_RUN_PATH'
  13065. if test yes = "$GCC"; then
  13066. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13067. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13068. else
  13069. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13070. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13071. fi
  13072. ;;
  13073. sysv5* | sco3.2v5* | sco5v6*)
  13074. # Note: We CANNOT use -z defs as we might desire, because we do not
  13075. # link with -lc, and that would cause any symbols used from libc to
  13076. # always be unresolved, which means just about no library would
  13077. # ever link correctly. If we're not using GNU ld we use -z text
  13078. # though, which does catch some bad symbols but isn't as heavy-handed
  13079. # as -z defs.
  13080. no_undefined_flag='$wl-z,text'
  13081. allow_undefined_flag='$wl-z,nodefs'
  13082. archive_cmds_need_lc=no
  13083. hardcode_shlibpath_var=no
  13084. hardcode_libdir_flag_spec='$wl-R,$libdir'
  13085. hardcode_libdir_separator=':'
  13086. link_all_deplibs=yes
  13087. export_dynamic_flag_spec='$wl-Bexport'
  13088. runpath_var='LD_RUN_PATH'
  13089. if test yes = "$GCC"; then
  13090. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13091. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13092. else
  13093. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13094. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13095. fi
  13096. ;;
  13097. uts4*)
  13098. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13099. hardcode_libdir_flag_spec='-L$libdir'
  13100. hardcode_shlibpath_var=no
  13101. ;;
  13102. *)
  13103. ld_shlibs=no
  13104. ;;
  13105. esac
  13106. if test sni = "$host_vendor"; then
  13107. case $host in
  13108. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  13109. export_dynamic_flag_spec='$wl-Blargedynsym'
  13110. ;;
  13111. esac
  13112. fi
  13113. fi
  13114. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  13115. printf "%s\n" "$ld_shlibs" >&6; }
  13116. test no = "$ld_shlibs" && can_build_shared=no
  13117. with_gnu_ld=$with_gnu_ld
  13118. #
  13119. # Do we need to explicitly link libc?
  13120. #
  13121. case "x$archive_cmds_need_lc" in
  13122. x|xyes)
  13123. # Assume -lc should be added
  13124. archive_cmds_need_lc=yes
  13125. if test yes,yes = "$GCC,$enable_shared"; then
  13126. case $archive_cmds in
  13127. *'~'*)
  13128. # FIXME: we may have to deal with multi-command sequences.
  13129. ;;
  13130. '$CC '*)
  13131. # Test whether the compiler implicitly links with -lc since on some
  13132. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  13133. # to ld, don't add -lc before -lgcc.
  13134. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  13135. printf %s "checking whether -lc should be explicitly linked in... " >&6; }
  13136. if test ${lt_cv_archive_cmds_need_lc+y}
  13137. then :
  13138. printf %s "(cached) " >&6
  13139. else $as_nop
  13140. $RM conftest*
  13141. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13142. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  13143. (eval $ac_compile) 2>&5
  13144. ac_status=$?
  13145. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13146. test $ac_status = 0; } 2>conftest.err; then
  13147. soname=conftest
  13148. lib=conftest
  13149. libobjs=conftest.$ac_objext
  13150. deplibs=
  13151. wl=$lt_prog_compiler_wl
  13152. pic_flag=$lt_prog_compiler_pic
  13153. compiler_flags=-v
  13154. linker_flags=-v
  13155. verstring=
  13156. output_objdir=.
  13157. libname=conftest
  13158. lt_save_allow_undefined_flag=$allow_undefined_flag
  13159. allow_undefined_flag=
  13160. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  13161. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  13162. ac_status=$?
  13163. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13164. test $ac_status = 0; }
  13165. then
  13166. lt_cv_archive_cmds_need_lc=no
  13167. else
  13168. lt_cv_archive_cmds_need_lc=yes
  13169. fi
  13170. allow_undefined_flag=$lt_save_allow_undefined_flag
  13171. else
  13172. cat conftest.err 1>&5
  13173. fi
  13174. $RM conftest*
  13175. fi
  13176. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  13177. printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
  13178. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  13179. ;;
  13180. esac
  13181. fi
  13182. ;;
  13183. esac
  13184. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  13185. printf %s "checking dynamic linker characteristics... " >&6; }
  13186. if test yes = "$GCC"; then
  13187. case $host_os in
  13188. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  13189. *) lt_awk_arg='/^libraries:/' ;;
  13190. esac
  13191. case $host_os in
  13192. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  13193. *) lt_sed_strip_eq='s|=/|/|g' ;;
  13194. esac
  13195. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  13196. case $lt_search_path_spec in
  13197. *\;*)
  13198. # if the path contains ";" then we assume it to be the separator
  13199. # otherwise default to the standard path separator (i.e. ":") - it is
  13200. # assumed that no part of a normal pathname contains ";" but that should
  13201. # okay in the real world where ";" in dirpaths is itself problematic.
  13202. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  13203. ;;
  13204. *)
  13205. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  13206. ;;
  13207. esac
  13208. # Ok, now we have the path, separated by spaces, we can step through it
  13209. # and add multilib dir if necessary...
  13210. lt_tmp_lt_search_path_spec=
  13211. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  13212. # ...but if some path component already ends with the multilib dir we assume
  13213. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  13214. case "$lt_multi_os_dir; $lt_search_path_spec " in
  13215. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  13216. lt_multi_os_dir=
  13217. ;;
  13218. esac
  13219. for lt_sys_path in $lt_search_path_spec; do
  13220. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  13221. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  13222. elif test -n "$lt_multi_os_dir"; then
  13223. test -d "$lt_sys_path" && \
  13224. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  13225. fi
  13226. done
  13227. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  13228. BEGIN {RS = " "; FS = "/|\n";} {
  13229. lt_foo = "";
  13230. lt_count = 0;
  13231. for (lt_i = NF; lt_i > 0; lt_i--) {
  13232. if ($lt_i != "" && $lt_i != ".") {
  13233. if ($lt_i == "..") {
  13234. lt_count++;
  13235. } else {
  13236. if (lt_count == 0) {
  13237. lt_foo = "/" $lt_i lt_foo;
  13238. } else {
  13239. lt_count--;
  13240. }
  13241. }
  13242. }
  13243. }
  13244. if (lt_foo != "") { lt_freq[lt_foo]++; }
  13245. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  13246. }'`
  13247. # AWK program above erroneously prepends '/' to C:/dos/paths
  13248. # for these hosts.
  13249. case $host_os in
  13250. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  13251. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  13252. esac
  13253. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  13254. else
  13255. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  13256. fi
  13257. library_names_spec=
  13258. libname_spec='lib$name'
  13259. soname_spec=
  13260. shrext_cmds=.so
  13261. postinstall_cmds=
  13262. postuninstall_cmds=
  13263. finish_cmds=
  13264. finish_eval=
  13265. shlibpath_var=
  13266. shlibpath_overrides_runpath=unknown
  13267. version_type=none
  13268. dynamic_linker="$host_os ld.so"
  13269. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  13270. need_lib_prefix=unknown
  13271. hardcode_into_libs=no
  13272. # when you set need_version to no, make sure it does not cause -set_version
  13273. # flags to be left without arguments
  13274. need_version=unknown
  13275. case $host_os in
  13276. aix3*)
  13277. version_type=linux # correct to gnu/linux during the next big refactor
  13278. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  13279. shlibpath_var=LIBPATH
  13280. # AIX 3 has no versioning support, so we append a major version to the name.
  13281. soname_spec='$libname$release$shared_ext$major'
  13282. ;;
  13283. aix[4-9]*)
  13284. version_type=linux # correct to gnu/linux during the next big refactor
  13285. need_lib_prefix=no
  13286. need_version=no
  13287. hardcode_into_libs=yes
  13288. if test ia64 = "$host_cpu"; then
  13289. # AIX 5 supports IA64
  13290. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  13291. shlibpath_var=LD_LIBRARY_PATH
  13292. else
  13293. # With GCC up to 2.95.x, collect2 would create an import file
  13294. # for dependence libraries. The import file would start with
  13295. # the line '#! .'. This would cause the generated library to
  13296. # depend on '.', always an invalid library. This was fixed in
  13297. # development snapshots of GCC prior to 3.0.
  13298. case $host_os in
  13299. aix4 | aix4.[01] | aix4.[01].*)
  13300. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  13301. echo ' yes '
  13302. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  13303. :
  13304. else
  13305. can_build_shared=no
  13306. fi
  13307. ;;
  13308. esac
  13309. # Using Import Files as archive members, it is possible to support
  13310. # filename-based versioning of shared library archives on AIX. While
  13311. # this would work for both with and without runtime linking, it will
  13312. # prevent static linking of such archives. So we do filename-based
  13313. # shared library versioning with .so extension only, which is used
  13314. # when both runtime linking and shared linking is enabled.
  13315. # Unfortunately, runtime linking may impact performance, so we do
  13316. # not want this to be the default eventually. Also, we use the
  13317. # versioned .so libs for executables only if there is the -brtl
  13318. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  13319. # To allow for filename-based versioning support, we need to create
  13320. # libNAME.so.V as an archive file, containing:
  13321. # *) an Import File, referring to the versioned filename of the
  13322. # archive as well as the shared archive member, telling the
  13323. # bitwidth (32 or 64) of that shared object, and providing the
  13324. # list of exported symbols of that shared object, eventually
  13325. # decorated with the 'weak' keyword
  13326. # *) the shared object with the F_LOADONLY flag set, to really avoid
  13327. # it being seen by the linker.
  13328. # At run time we better use the real file rather than another symlink,
  13329. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  13330. case $with_aix_soname,$aix_use_runtimelinking in
  13331. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  13332. # soname into executable. Probably we can add versioning support to
  13333. # collect2, so additional links can be useful in future.
  13334. aix,yes) # traditional libtool
  13335. dynamic_linker='AIX unversionable lib.so'
  13336. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  13337. # instead of lib<name>.a to let people know that these are not
  13338. # typical AIX shared libraries.
  13339. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13340. ;;
  13341. aix,no) # traditional AIX only
  13342. dynamic_linker='AIX lib.a(lib.so.V)'
  13343. # We preserve .a as extension for shared libraries through AIX4.2
  13344. # and later when we are not doing run time linking.
  13345. library_names_spec='$libname$release.a $libname.a'
  13346. soname_spec='$libname$release$shared_ext$major'
  13347. ;;
  13348. svr4,*) # full svr4 only
  13349. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  13350. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  13351. # We do not specify a path in Import Files, so LIBPATH fires.
  13352. shlibpath_overrides_runpath=yes
  13353. ;;
  13354. *,yes) # both, prefer svr4
  13355. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  13356. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  13357. # unpreferred sharedlib libNAME.a needs extra handling
  13358. postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
  13359. postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
  13360. # We do not specify a path in Import Files, so LIBPATH fires.
  13361. shlibpath_overrides_runpath=yes
  13362. ;;
  13363. *,no) # both, prefer aix
  13364. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  13365. library_names_spec='$libname$release.a $libname.a'
  13366. soname_spec='$libname$release$shared_ext$major'
  13367. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  13368. postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
  13369. postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
  13370. ;;
  13371. esac
  13372. shlibpath_var=LIBPATH
  13373. fi
  13374. ;;
  13375. amigaos*)
  13376. case $host_cpu in
  13377. powerpc)
  13378. # Since July 2007 AmigaOS4 officially supports .so libraries.
  13379. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  13380. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13381. ;;
  13382. m68k)
  13383. library_names_spec='$libname.ixlibrary $libname.a'
  13384. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  13385. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  13386. ;;
  13387. esac
  13388. ;;
  13389. beos*)
  13390. library_names_spec='$libname$shared_ext'
  13391. dynamic_linker="$host_os ld.so"
  13392. shlibpath_var=LIBRARY_PATH
  13393. ;;
  13394. bsdi[45]*)
  13395. version_type=linux # correct to gnu/linux during the next big refactor
  13396. need_version=no
  13397. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13398. soname_spec='$libname$release$shared_ext$major'
  13399. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  13400. shlibpath_var=LD_LIBRARY_PATH
  13401. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  13402. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  13403. # the default ld.so.conf also contains /usr/contrib/lib and
  13404. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  13405. # libtool to hard-code these into programs
  13406. ;;
  13407. cygwin* | mingw* | pw32* | cegcc*)
  13408. version_type=windows
  13409. shrext_cmds=.dll
  13410. need_version=no
  13411. need_lib_prefix=no
  13412. case $GCC,$cc_basename in
  13413. yes,*)
  13414. # gcc
  13415. library_names_spec='$libname.dll.a'
  13416. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13417. postinstall_cmds='base_file=`basename \$file`~
  13418. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  13419. dldir=$destdir/`dirname \$dlpath`~
  13420. test -d \$dldir || mkdir -p \$dldir~
  13421. $install_prog $dir/$dlname \$dldir/$dlname~
  13422. chmod a+x \$dldir/$dlname~
  13423. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  13424. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  13425. fi'
  13426. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13427. dlpath=$dir/\$dldll~
  13428. $RM \$dlpath'
  13429. shlibpath_overrides_runpath=yes
  13430. case $host_os in
  13431. cygwin*)
  13432. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  13433. soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  13434. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  13435. ;;
  13436. mingw* | cegcc*)
  13437. # MinGW DLLs use traditional 'lib' prefix
  13438. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  13439. ;;
  13440. pw32*)
  13441. # pw32 DLLs use 'pw' prefix rather than 'lib'
  13442. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  13443. ;;
  13444. esac
  13445. dynamic_linker='Win32 ld.exe'
  13446. ;;
  13447. *,cl*)
  13448. # Native MSVC
  13449. libname_spec='$name'
  13450. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  13451. library_names_spec='$libname.dll.lib'
  13452. case $build_os in
  13453. mingw*)
  13454. sys_lib_search_path_spec=
  13455. lt_save_ifs=$IFS
  13456. IFS=';'
  13457. for lt_path in $LIB
  13458. do
  13459. IFS=$lt_save_ifs
  13460. # Let DOS variable expansion print the short 8.3 style file name.
  13461. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  13462. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  13463. done
  13464. IFS=$lt_save_ifs
  13465. # Convert to MSYS style.
  13466. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  13467. ;;
  13468. cygwin*)
  13469. # Convert to unix form, then to dos form, then back to unix form
  13470. # but this time dos style (no spaces!) so that the unix form looks
  13471. # like /cygdrive/c/PROGRA~1:/cygdr...
  13472. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  13473. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  13474. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13475. ;;
  13476. *)
  13477. sys_lib_search_path_spec=$LIB
  13478. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  13479. # It is most probably a Windows format PATH.
  13480. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13481. else
  13482. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13483. fi
  13484. # FIXME: find the short name or the path components, as spaces are
  13485. # common. (e.g. "Program Files" -> "PROGRA~1")
  13486. ;;
  13487. esac
  13488. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13489. postinstall_cmds='base_file=`basename \$file`~
  13490. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  13491. dldir=$destdir/`dirname \$dlpath`~
  13492. test -d \$dldir || mkdir -p \$dldir~
  13493. $install_prog $dir/$dlname \$dldir/$dlname'
  13494. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13495. dlpath=$dir/\$dldll~
  13496. $RM \$dlpath'
  13497. shlibpath_overrides_runpath=yes
  13498. dynamic_linker='Win32 link.exe'
  13499. ;;
  13500. *)
  13501. # Assume MSVC wrapper
  13502. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  13503. dynamic_linker='Win32 ld.exe'
  13504. ;;
  13505. esac
  13506. # FIXME: first we should search . and the directory the executable is in
  13507. shlibpath_var=PATH
  13508. ;;
  13509. darwin* | rhapsody*)
  13510. dynamic_linker="$host_os dyld"
  13511. version_type=darwin
  13512. need_lib_prefix=no
  13513. need_version=no
  13514. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  13515. soname_spec='$libname$release$major$shared_ext'
  13516. shlibpath_overrides_runpath=yes
  13517. shlibpath_var=DYLD_LIBRARY_PATH
  13518. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  13519. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  13520. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  13521. ;;
  13522. dgux*)
  13523. version_type=linux # correct to gnu/linux during the next big refactor
  13524. need_lib_prefix=no
  13525. need_version=no
  13526. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13527. soname_spec='$libname$release$shared_ext$major'
  13528. shlibpath_var=LD_LIBRARY_PATH
  13529. ;;
  13530. freebsd* | dragonfly*)
  13531. # DragonFly does not have aout. When/if they implement a new
  13532. # versioning mechanism, adjust this.
  13533. if test -x /usr/bin/objformat; then
  13534. objformat=`/usr/bin/objformat`
  13535. else
  13536. case $host_os in
  13537. freebsd[23].*) objformat=aout ;;
  13538. *) objformat=elf ;;
  13539. esac
  13540. fi
  13541. version_type=freebsd-$objformat
  13542. case $version_type in
  13543. freebsd-elf*)
  13544. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13545. soname_spec='$libname$release$shared_ext$major'
  13546. need_version=no
  13547. need_lib_prefix=no
  13548. ;;
  13549. freebsd-*)
  13550. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  13551. need_version=yes
  13552. ;;
  13553. esac
  13554. shlibpath_var=LD_LIBRARY_PATH
  13555. case $host_os in
  13556. freebsd2.*)
  13557. shlibpath_overrides_runpath=yes
  13558. ;;
  13559. freebsd3.[01]* | freebsdelf3.[01]*)
  13560. shlibpath_overrides_runpath=yes
  13561. hardcode_into_libs=yes
  13562. ;;
  13563. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  13564. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  13565. shlibpath_overrides_runpath=no
  13566. hardcode_into_libs=yes
  13567. ;;
  13568. *) # from 4.6 on, and DragonFly
  13569. shlibpath_overrides_runpath=yes
  13570. hardcode_into_libs=yes
  13571. ;;
  13572. esac
  13573. ;;
  13574. haiku*)
  13575. version_type=linux # correct to gnu/linux during the next big refactor
  13576. need_lib_prefix=no
  13577. need_version=no
  13578. dynamic_linker="$host_os runtime_loader"
  13579. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13580. soname_spec='$libname$release$shared_ext$major'
  13581. shlibpath_var=LIBRARY_PATH
  13582. shlibpath_overrides_runpath=no
  13583. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  13584. hardcode_into_libs=yes
  13585. ;;
  13586. hpux9* | hpux10* | hpux11*)
  13587. # Give a soname corresponding to the major version so that dld.sl refuses to
  13588. # link against other versions.
  13589. version_type=sunos
  13590. need_lib_prefix=no
  13591. need_version=no
  13592. case $host_cpu in
  13593. ia64*)
  13594. shrext_cmds='.so'
  13595. hardcode_into_libs=yes
  13596. dynamic_linker="$host_os dld.so"
  13597. shlibpath_var=LD_LIBRARY_PATH
  13598. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13599. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13600. soname_spec='$libname$release$shared_ext$major'
  13601. if test 32 = "$HPUX_IA64_MODE"; then
  13602. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13603. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  13604. else
  13605. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13606. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  13607. fi
  13608. ;;
  13609. hppa*64*)
  13610. shrext_cmds='.sl'
  13611. hardcode_into_libs=yes
  13612. dynamic_linker="$host_os dld.sl"
  13613. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13614. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13615. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13616. soname_spec='$libname$release$shared_ext$major'
  13617. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13618. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13619. ;;
  13620. *)
  13621. shrext_cmds='.sl'
  13622. dynamic_linker="$host_os dld.sl"
  13623. shlibpath_var=SHLIB_PATH
  13624. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13625. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13626. soname_spec='$libname$release$shared_ext$major'
  13627. ;;
  13628. esac
  13629. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  13630. postinstall_cmds='chmod 555 $lib'
  13631. # or fails outright, so override atomically:
  13632. install_override_mode=555
  13633. ;;
  13634. interix[3-9]*)
  13635. version_type=linux # correct to gnu/linux during the next big refactor
  13636. need_lib_prefix=no
  13637. need_version=no
  13638. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13639. soname_spec='$libname$release$shared_ext$major'
  13640. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13641. shlibpath_var=LD_LIBRARY_PATH
  13642. shlibpath_overrides_runpath=no
  13643. hardcode_into_libs=yes
  13644. ;;
  13645. irix5* | irix6* | nonstopux*)
  13646. case $host_os in
  13647. nonstopux*) version_type=nonstopux ;;
  13648. *)
  13649. if test yes = "$lt_cv_prog_gnu_ld"; then
  13650. version_type=linux # correct to gnu/linux during the next big refactor
  13651. else
  13652. version_type=irix
  13653. fi ;;
  13654. esac
  13655. need_lib_prefix=no
  13656. need_version=no
  13657. soname_spec='$libname$release$shared_ext$major'
  13658. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  13659. case $host_os in
  13660. irix5* | nonstopux*)
  13661. libsuff= shlibsuff=
  13662. ;;
  13663. *)
  13664. case $LD in # libtool.m4 will add one of these switches to LD
  13665. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13666. libsuff= shlibsuff= libmagic=32-bit;;
  13667. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13668. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13669. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13670. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13671. *) libsuff= shlibsuff= libmagic=never-match;;
  13672. esac
  13673. ;;
  13674. esac
  13675. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13676. shlibpath_overrides_runpath=no
  13677. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  13678. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  13679. hardcode_into_libs=yes
  13680. ;;
  13681. # No shared lib support for Linux oldld, aout, or coff.
  13682. linux*oldld* | linux*aout* | linux*coff*)
  13683. dynamic_linker=no
  13684. ;;
  13685. linux*android*)
  13686. version_type=none # Android doesn't support versioned libraries.
  13687. need_lib_prefix=no
  13688. need_version=no
  13689. library_names_spec='$libname$release$shared_ext'
  13690. soname_spec='$libname$release$shared_ext'
  13691. finish_cmds=
  13692. shlibpath_var=LD_LIBRARY_PATH
  13693. shlibpath_overrides_runpath=yes
  13694. # This implies no fast_install, which is unacceptable.
  13695. # Some rework will be needed to allow for fast_install
  13696. # before this can be enabled.
  13697. hardcode_into_libs=yes
  13698. dynamic_linker='Android linker'
  13699. # Don't embed -rpath directories since the linker doesn't support them.
  13700. hardcode_libdir_flag_spec='-L$libdir'
  13701. ;;
  13702. # This must be glibc/ELF.
  13703. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  13704. version_type=linux # correct to gnu/linux during the next big refactor
  13705. need_lib_prefix=no
  13706. need_version=no
  13707. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13708. soname_spec='$libname$release$shared_ext$major'
  13709. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13710. shlibpath_var=LD_LIBRARY_PATH
  13711. shlibpath_overrides_runpath=no
  13712. # Some binutils ld are patched to set DT_RUNPATH
  13713. if test ${lt_cv_shlibpath_overrides_runpath+y}
  13714. then :
  13715. printf %s "(cached) " >&6
  13716. else $as_nop
  13717. lt_cv_shlibpath_overrides_runpath=no
  13718. save_LDFLAGS=$LDFLAGS
  13719. save_libdir=$libdir
  13720. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  13721. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  13722. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13723. /* end confdefs.h. */
  13724. int
  13725. main (void)
  13726. {
  13727. ;
  13728. return 0;
  13729. }
  13730. _ACEOF
  13731. if ac_fn_c_try_link "$LINENO"
  13732. then :
  13733. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
  13734. then :
  13735. lt_cv_shlibpath_overrides_runpath=yes
  13736. fi
  13737. fi
  13738. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  13739. conftest$ac_exeext conftest.$ac_ext
  13740. LDFLAGS=$save_LDFLAGS
  13741. libdir=$save_libdir
  13742. fi
  13743. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13744. # This implies no fast_install, which is unacceptable.
  13745. # Some rework will be needed to allow for fast_install
  13746. # before this can be enabled.
  13747. hardcode_into_libs=yes
  13748. # Ideally, we could use ldconfig to report *all* directores which are
  13749. # searched for libraries, however this is still not possible. Aside from not
  13750. # being certain /sbin/ldconfig is available, command
  13751. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  13752. # even though it is searched at run-time. Try to do the best guess by
  13753. # appending ld.so.conf contents (and includes) to the search path.
  13754. if test -f /etc/ld.so.conf; then
  13755. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  13756. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13757. fi
  13758. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13759. # powerpc, because MkLinux only supported shared libraries with the
  13760. # GNU dynamic linker. Since this was broken with cross compilers,
  13761. # most powerpc-linux boxes support dynamic linking these days and
  13762. # people can always --disable-shared, the test was removed, and we
  13763. # assume the GNU/Linux dynamic linker is in use.
  13764. dynamic_linker='GNU/Linux ld.so'
  13765. ;;
  13766. netbsdelf*-gnu)
  13767. version_type=linux
  13768. need_lib_prefix=no
  13769. need_version=no
  13770. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13771. soname_spec='${libname}${release}${shared_ext}$major'
  13772. shlibpath_var=LD_LIBRARY_PATH
  13773. shlibpath_overrides_runpath=no
  13774. hardcode_into_libs=yes
  13775. dynamic_linker='NetBSD ld.elf_so'
  13776. ;;
  13777. netbsd*)
  13778. version_type=sunos
  13779. need_lib_prefix=no
  13780. need_version=no
  13781. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13782. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  13783. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13784. dynamic_linker='NetBSD (a.out) ld.so'
  13785. else
  13786. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13787. soname_spec='$libname$release$shared_ext$major'
  13788. dynamic_linker='NetBSD ld.elf_so'
  13789. fi
  13790. shlibpath_var=LD_LIBRARY_PATH
  13791. shlibpath_overrides_runpath=yes
  13792. hardcode_into_libs=yes
  13793. ;;
  13794. newsos6)
  13795. version_type=linux # correct to gnu/linux during the next big refactor
  13796. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13797. shlibpath_var=LD_LIBRARY_PATH
  13798. shlibpath_overrides_runpath=yes
  13799. ;;
  13800. *nto* | *qnx*)
  13801. version_type=qnx
  13802. need_lib_prefix=no
  13803. need_version=no
  13804. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13805. soname_spec='$libname$release$shared_ext$major'
  13806. shlibpath_var=LD_LIBRARY_PATH
  13807. shlibpath_overrides_runpath=no
  13808. hardcode_into_libs=yes
  13809. dynamic_linker='ldqnx.so'
  13810. ;;
  13811. openbsd* | bitrig*)
  13812. version_type=sunos
  13813. sys_lib_dlsearch_path_spec=/usr/lib
  13814. need_lib_prefix=no
  13815. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  13816. need_version=no
  13817. else
  13818. need_version=yes
  13819. fi
  13820. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  13821. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13822. shlibpath_var=LD_LIBRARY_PATH
  13823. shlibpath_overrides_runpath=yes
  13824. ;;
  13825. os2*)
  13826. libname_spec='$name'
  13827. version_type=windows
  13828. shrext_cmds=.dll
  13829. need_version=no
  13830. need_lib_prefix=no
  13831. # OS/2 can only load a DLL with a base name of 8 characters or less.
  13832. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  13833. v=$($ECHO $release$versuffix | tr -d .-);
  13834. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  13835. $ECHO $n$v`$shared_ext'
  13836. library_names_spec='${libname}_dll.$libext'
  13837. dynamic_linker='OS/2 ld.exe'
  13838. shlibpath_var=BEGINLIBPATH
  13839. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  13840. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13841. postinstall_cmds='base_file=`basename \$file`~
  13842. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  13843. dldir=$destdir/`dirname \$dlpath`~
  13844. test -d \$dldir || mkdir -p \$dldir~
  13845. $install_prog $dir/$dlname \$dldir/$dlname~
  13846. chmod a+x \$dldir/$dlname~
  13847. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  13848. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  13849. fi'
  13850. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  13851. dlpath=$dir/\$dldll~
  13852. $RM \$dlpath'
  13853. ;;
  13854. osf3* | osf4* | osf5*)
  13855. version_type=osf
  13856. need_lib_prefix=no
  13857. need_version=no
  13858. soname_spec='$libname$release$shared_ext$major'
  13859. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13860. shlibpath_var=LD_LIBRARY_PATH
  13861. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13862. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13863. ;;
  13864. rdos*)
  13865. dynamic_linker=no
  13866. ;;
  13867. solaris*)
  13868. version_type=linux # correct to gnu/linux during the next big refactor
  13869. need_lib_prefix=no
  13870. need_version=no
  13871. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13872. soname_spec='$libname$release$shared_ext$major'
  13873. shlibpath_var=LD_LIBRARY_PATH
  13874. shlibpath_overrides_runpath=yes
  13875. hardcode_into_libs=yes
  13876. # ldd complains unless libraries are executable
  13877. postinstall_cmds='chmod +x $lib'
  13878. ;;
  13879. sunos4*)
  13880. version_type=sunos
  13881. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  13882. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13883. shlibpath_var=LD_LIBRARY_PATH
  13884. shlibpath_overrides_runpath=yes
  13885. if test yes = "$with_gnu_ld"; then
  13886. need_lib_prefix=no
  13887. fi
  13888. need_version=yes
  13889. ;;
  13890. sysv4 | sysv4.3*)
  13891. version_type=linux # correct to gnu/linux during the next big refactor
  13892. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13893. soname_spec='$libname$release$shared_ext$major'
  13894. shlibpath_var=LD_LIBRARY_PATH
  13895. case $host_vendor in
  13896. sni)
  13897. shlibpath_overrides_runpath=no
  13898. need_lib_prefix=no
  13899. runpath_var=LD_RUN_PATH
  13900. ;;
  13901. siemens)
  13902. need_lib_prefix=no
  13903. ;;
  13904. motorola)
  13905. need_lib_prefix=no
  13906. need_version=no
  13907. shlibpath_overrides_runpath=no
  13908. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13909. ;;
  13910. esac
  13911. ;;
  13912. sysv4*MP*)
  13913. if test -d /usr/nec; then
  13914. version_type=linux # correct to gnu/linux during the next big refactor
  13915. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  13916. soname_spec='$libname$shared_ext.$major'
  13917. shlibpath_var=LD_LIBRARY_PATH
  13918. fi
  13919. ;;
  13920. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13921. version_type=sco
  13922. need_lib_prefix=no
  13923. need_version=no
  13924. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  13925. soname_spec='$libname$release$shared_ext$major'
  13926. shlibpath_var=LD_LIBRARY_PATH
  13927. shlibpath_overrides_runpath=yes
  13928. hardcode_into_libs=yes
  13929. if test yes = "$with_gnu_ld"; then
  13930. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13931. else
  13932. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13933. case $host_os in
  13934. sco3.2v5*)
  13935. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13936. ;;
  13937. esac
  13938. fi
  13939. sys_lib_dlsearch_path_spec='/usr/lib'
  13940. ;;
  13941. tpf*)
  13942. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13943. version_type=linux # correct to gnu/linux during the next big refactor
  13944. need_lib_prefix=no
  13945. need_version=no
  13946. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13947. shlibpath_var=LD_LIBRARY_PATH
  13948. shlibpath_overrides_runpath=no
  13949. hardcode_into_libs=yes
  13950. ;;
  13951. uts4*)
  13952. version_type=linux # correct to gnu/linux during the next big refactor
  13953. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13954. soname_spec='$libname$release$shared_ext$major'
  13955. shlibpath_var=LD_LIBRARY_PATH
  13956. ;;
  13957. *)
  13958. dynamic_linker=no
  13959. ;;
  13960. esac
  13961. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13962. printf "%s\n" "$dynamic_linker" >&6; }
  13963. test no = "$dynamic_linker" && can_build_shared=no
  13964. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13965. if test yes = "$GCC"; then
  13966. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13967. fi
  13968. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  13969. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  13970. fi
  13971. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  13972. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  13973. fi
  13974. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  13975. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  13976. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  13977. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  13978. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  13979. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  13980. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13981. printf %s "checking how to hardcode library paths into programs... " >&6; }
  13982. hardcode_action=
  13983. if test -n "$hardcode_libdir_flag_spec" ||
  13984. test -n "$runpath_var" ||
  13985. test yes = "$hardcode_automatic"; then
  13986. # We can hardcode non-existent directories.
  13987. if test no != "$hardcode_direct" &&
  13988. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13989. # have to relink, otherwise we might link with an installed library
  13990. # when we should be linking with a yet-to-be-installed one
  13991. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  13992. test no != "$hardcode_minus_L"; then
  13993. # Linking always hardcodes the temporary library directory.
  13994. hardcode_action=relink
  13995. else
  13996. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13997. hardcode_action=immediate
  13998. fi
  13999. else
  14000. # We cannot hardcode anything, or else we can only hardcode existing
  14001. # directories.
  14002. hardcode_action=unsupported
  14003. fi
  14004. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  14005. printf "%s\n" "$hardcode_action" >&6; }
  14006. if test relink = "$hardcode_action" ||
  14007. test yes = "$inherit_rpath"; then
  14008. # Fast installation is not supported
  14009. enable_fast_install=no
  14010. elif test yes = "$shlibpath_overrides_runpath" ||
  14011. test no = "$enable_shared"; then
  14012. # Fast installation is not necessary
  14013. enable_fast_install=needless
  14014. fi
  14015. if test yes != "$enable_dlopen"; then
  14016. enable_dlopen=unknown
  14017. enable_dlopen_self=unknown
  14018. enable_dlopen_self_static=unknown
  14019. else
  14020. lt_cv_dlopen=no
  14021. lt_cv_dlopen_libs=
  14022. case $host_os in
  14023. beos*)
  14024. lt_cv_dlopen=load_add_on
  14025. lt_cv_dlopen_libs=
  14026. lt_cv_dlopen_self=yes
  14027. ;;
  14028. mingw* | pw32* | cegcc*)
  14029. lt_cv_dlopen=LoadLibrary
  14030. lt_cv_dlopen_libs=
  14031. ;;
  14032. cygwin*)
  14033. lt_cv_dlopen=dlopen
  14034. lt_cv_dlopen_libs=
  14035. ;;
  14036. darwin*)
  14037. # if libdl is installed we need to link against it
  14038. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  14039. printf %s "checking for dlopen in -ldl... " >&6; }
  14040. if test ${ac_cv_lib_dl_dlopen+y}
  14041. then :
  14042. printf %s "(cached) " >&6
  14043. else $as_nop
  14044. ac_check_lib_save_LIBS=$LIBS
  14045. LIBS="-ldl $LIBS"
  14046. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14047. /* end confdefs.h. */
  14048. /* Override any GCC internal prototype to avoid an error.
  14049. Use char because int might match the return type of a GCC
  14050. builtin and then its argument prototype would still apply. */
  14051. char dlopen ();
  14052. int
  14053. main (void)
  14054. {
  14055. return dlopen ();
  14056. ;
  14057. return 0;
  14058. }
  14059. _ACEOF
  14060. if ac_fn_c_try_link "$LINENO"
  14061. then :
  14062. ac_cv_lib_dl_dlopen=yes
  14063. else $as_nop
  14064. ac_cv_lib_dl_dlopen=no
  14065. fi
  14066. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  14067. conftest$ac_exeext conftest.$ac_ext
  14068. LIBS=$ac_check_lib_save_LIBS
  14069. fi
  14070. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  14071. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  14072. if test "x$ac_cv_lib_dl_dlopen" = xyes
  14073. then :
  14074. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  14075. else $as_nop
  14076. lt_cv_dlopen=dyld
  14077. lt_cv_dlopen_libs=
  14078. lt_cv_dlopen_self=yes
  14079. fi
  14080. ;;
  14081. tpf*)
  14082. # Don't try to run any link tests for TPF. We know it's impossible
  14083. # because TPF is a cross-compiler, and we know how we open DSOs.
  14084. lt_cv_dlopen=dlopen
  14085. lt_cv_dlopen_libs=
  14086. lt_cv_dlopen_self=no
  14087. ;;
  14088. *)
  14089. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  14090. if test "x$ac_cv_func_shl_load" = xyes
  14091. then :
  14092. lt_cv_dlopen=shl_load
  14093. else $as_nop
  14094. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  14095. printf %s "checking for shl_load in -ldld... " >&6; }
  14096. if test ${ac_cv_lib_dld_shl_load+y}
  14097. then :
  14098. printf %s "(cached) " >&6
  14099. else $as_nop
  14100. ac_check_lib_save_LIBS=$LIBS
  14101. LIBS="-ldld $LIBS"
  14102. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14103. /* end confdefs.h. */
  14104. /* Override any GCC internal prototype to avoid an error.
  14105. Use char because int might match the return type of a GCC
  14106. builtin and then its argument prototype would still apply. */
  14107. char shl_load ();
  14108. int
  14109. main (void)
  14110. {
  14111. return shl_load ();
  14112. ;
  14113. return 0;
  14114. }
  14115. _ACEOF
  14116. if ac_fn_c_try_link "$LINENO"
  14117. then :
  14118. ac_cv_lib_dld_shl_load=yes
  14119. else $as_nop
  14120. ac_cv_lib_dld_shl_load=no
  14121. fi
  14122. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  14123. conftest$ac_exeext conftest.$ac_ext
  14124. LIBS=$ac_check_lib_save_LIBS
  14125. fi
  14126. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  14127. printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
  14128. if test "x$ac_cv_lib_dld_shl_load" = xyes
  14129. then :
  14130. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  14131. else $as_nop
  14132. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  14133. if test "x$ac_cv_func_dlopen" = xyes
  14134. then :
  14135. lt_cv_dlopen=dlopen
  14136. else $as_nop
  14137. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  14138. printf %s "checking for dlopen in -ldl... " >&6; }
  14139. if test ${ac_cv_lib_dl_dlopen+y}
  14140. then :
  14141. printf %s "(cached) " >&6
  14142. else $as_nop
  14143. ac_check_lib_save_LIBS=$LIBS
  14144. LIBS="-ldl $LIBS"
  14145. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14146. /* end confdefs.h. */
  14147. /* Override any GCC internal prototype to avoid an error.
  14148. Use char because int might match the return type of a GCC
  14149. builtin and then its argument prototype would still apply. */
  14150. char dlopen ();
  14151. int
  14152. main (void)
  14153. {
  14154. return dlopen ();
  14155. ;
  14156. return 0;
  14157. }
  14158. _ACEOF
  14159. if ac_fn_c_try_link "$LINENO"
  14160. then :
  14161. ac_cv_lib_dl_dlopen=yes
  14162. else $as_nop
  14163. ac_cv_lib_dl_dlopen=no
  14164. fi
  14165. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  14166. conftest$ac_exeext conftest.$ac_ext
  14167. LIBS=$ac_check_lib_save_LIBS
  14168. fi
  14169. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  14170. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  14171. if test "x$ac_cv_lib_dl_dlopen" = xyes
  14172. then :
  14173. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  14174. else $as_nop
  14175. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  14176. printf %s "checking for dlopen in -lsvld... " >&6; }
  14177. if test ${ac_cv_lib_svld_dlopen+y}
  14178. then :
  14179. printf %s "(cached) " >&6
  14180. else $as_nop
  14181. ac_check_lib_save_LIBS=$LIBS
  14182. LIBS="-lsvld $LIBS"
  14183. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14184. /* end confdefs.h. */
  14185. /* Override any GCC internal prototype to avoid an error.
  14186. Use char because int might match the return type of a GCC
  14187. builtin and then its argument prototype would still apply. */
  14188. char dlopen ();
  14189. int
  14190. main (void)
  14191. {
  14192. return dlopen ();
  14193. ;
  14194. return 0;
  14195. }
  14196. _ACEOF
  14197. if ac_fn_c_try_link "$LINENO"
  14198. then :
  14199. ac_cv_lib_svld_dlopen=yes
  14200. else $as_nop
  14201. ac_cv_lib_svld_dlopen=no
  14202. fi
  14203. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  14204. conftest$ac_exeext conftest.$ac_ext
  14205. LIBS=$ac_check_lib_save_LIBS
  14206. fi
  14207. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  14208. printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
  14209. if test "x$ac_cv_lib_svld_dlopen" = xyes
  14210. then :
  14211. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  14212. else $as_nop
  14213. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  14214. printf %s "checking for dld_link in -ldld... " >&6; }
  14215. if test ${ac_cv_lib_dld_dld_link+y}
  14216. then :
  14217. printf %s "(cached) " >&6
  14218. else $as_nop
  14219. ac_check_lib_save_LIBS=$LIBS
  14220. LIBS="-ldld $LIBS"
  14221. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14222. /* end confdefs.h. */
  14223. /* Override any GCC internal prototype to avoid an error.
  14224. Use char because int might match the return type of a GCC
  14225. builtin and then its argument prototype would still apply. */
  14226. char dld_link ();
  14227. int
  14228. main (void)
  14229. {
  14230. return dld_link ();
  14231. ;
  14232. return 0;
  14233. }
  14234. _ACEOF
  14235. if ac_fn_c_try_link "$LINENO"
  14236. then :
  14237. ac_cv_lib_dld_dld_link=yes
  14238. else $as_nop
  14239. ac_cv_lib_dld_dld_link=no
  14240. fi
  14241. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  14242. conftest$ac_exeext conftest.$ac_ext
  14243. LIBS=$ac_check_lib_save_LIBS
  14244. fi
  14245. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  14246. printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
  14247. if test "x$ac_cv_lib_dld_dld_link" = xyes
  14248. then :
  14249. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  14250. fi
  14251. fi
  14252. fi
  14253. fi
  14254. fi
  14255. fi
  14256. ;;
  14257. esac
  14258. if test no = "$lt_cv_dlopen"; then
  14259. enable_dlopen=no
  14260. else
  14261. enable_dlopen=yes
  14262. fi
  14263. case $lt_cv_dlopen in
  14264. dlopen)
  14265. save_CPPFLAGS=$CPPFLAGS
  14266. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  14267. save_LDFLAGS=$LDFLAGS
  14268. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  14269. save_LIBS=$LIBS
  14270. LIBS="$lt_cv_dlopen_libs $LIBS"
  14271. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  14272. printf %s "checking whether a program can dlopen itself... " >&6; }
  14273. if test ${lt_cv_dlopen_self+y}
  14274. then :
  14275. printf %s "(cached) " >&6
  14276. else $as_nop
  14277. if test yes = "$cross_compiling"; then :
  14278. lt_cv_dlopen_self=cross
  14279. else
  14280. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  14281. lt_status=$lt_dlunknown
  14282. cat > conftest.$ac_ext <<_LT_EOF
  14283. #line $LINENO "configure"
  14284. #include "confdefs.h"
  14285. #if HAVE_DLFCN_H
  14286. #include <dlfcn.h>
  14287. #endif
  14288. #include <stdio.h>
  14289. #ifdef RTLD_GLOBAL
  14290. # define LT_DLGLOBAL RTLD_GLOBAL
  14291. #else
  14292. # ifdef DL_GLOBAL
  14293. # define LT_DLGLOBAL DL_GLOBAL
  14294. # else
  14295. # define LT_DLGLOBAL 0
  14296. # endif
  14297. #endif
  14298. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  14299. find out it does not work in some platform. */
  14300. #ifndef LT_DLLAZY_OR_NOW
  14301. # ifdef RTLD_LAZY
  14302. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  14303. # else
  14304. # ifdef DL_LAZY
  14305. # define LT_DLLAZY_OR_NOW DL_LAZY
  14306. # else
  14307. # ifdef RTLD_NOW
  14308. # define LT_DLLAZY_OR_NOW RTLD_NOW
  14309. # else
  14310. # ifdef DL_NOW
  14311. # define LT_DLLAZY_OR_NOW DL_NOW
  14312. # else
  14313. # define LT_DLLAZY_OR_NOW 0
  14314. # endif
  14315. # endif
  14316. # endif
  14317. # endif
  14318. #endif
  14319. /* When -fvisibility=hidden is used, assume the code has been annotated
  14320. correspondingly for the symbols needed. */
  14321. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  14322. int fnord () __attribute__((visibility("default")));
  14323. #endif
  14324. int fnord () { return 42; }
  14325. int main ()
  14326. {
  14327. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  14328. int status = $lt_dlunknown;
  14329. if (self)
  14330. {
  14331. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  14332. else
  14333. {
  14334. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  14335. else puts (dlerror ());
  14336. }
  14337. /* dlclose (self); */
  14338. }
  14339. else
  14340. puts (dlerror ());
  14341. return status;
  14342. }
  14343. _LT_EOF
  14344. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  14345. (eval $ac_link) 2>&5
  14346. ac_status=$?
  14347. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14348. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  14349. (./conftest; exit; ) >&5 2>/dev/null
  14350. lt_status=$?
  14351. case x$lt_status in
  14352. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  14353. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  14354. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  14355. esac
  14356. else :
  14357. # compilation failed
  14358. lt_cv_dlopen_self=no
  14359. fi
  14360. fi
  14361. rm -fr conftest*
  14362. fi
  14363. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  14364. printf "%s\n" "$lt_cv_dlopen_self" >&6; }
  14365. if test yes = "$lt_cv_dlopen_self"; then
  14366. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  14367. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  14368. printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
  14369. if test ${lt_cv_dlopen_self_static+y}
  14370. then :
  14371. printf %s "(cached) " >&6
  14372. else $as_nop
  14373. if test yes = "$cross_compiling"; then :
  14374. lt_cv_dlopen_self_static=cross
  14375. else
  14376. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  14377. lt_status=$lt_dlunknown
  14378. cat > conftest.$ac_ext <<_LT_EOF
  14379. #line $LINENO "configure"
  14380. #include "confdefs.h"
  14381. #if HAVE_DLFCN_H
  14382. #include <dlfcn.h>
  14383. #endif
  14384. #include <stdio.h>
  14385. #ifdef RTLD_GLOBAL
  14386. # define LT_DLGLOBAL RTLD_GLOBAL
  14387. #else
  14388. # ifdef DL_GLOBAL
  14389. # define LT_DLGLOBAL DL_GLOBAL
  14390. # else
  14391. # define LT_DLGLOBAL 0
  14392. # endif
  14393. #endif
  14394. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  14395. find out it does not work in some platform. */
  14396. #ifndef LT_DLLAZY_OR_NOW
  14397. # ifdef RTLD_LAZY
  14398. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  14399. # else
  14400. # ifdef DL_LAZY
  14401. # define LT_DLLAZY_OR_NOW DL_LAZY
  14402. # else
  14403. # ifdef RTLD_NOW
  14404. # define LT_DLLAZY_OR_NOW RTLD_NOW
  14405. # else
  14406. # ifdef DL_NOW
  14407. # define LT_DLLAZY_OR_NOW DL_NOW
  14408. # else
  14409. # define LT_DLLAZY_OR_NOW 0
  14410. # endif
  14411. # endif
  14412. # endif
  14413. # endif
  14414. #endif
  14415. /* When -fvisibility=hidden is used, assume the code has been annotated
  14416. correspondingly for the symbols needed. */
  14417. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  14418. int fnord () __attribute__((visibility("default")));
  14419. #endif
  14420. int fnord () { return 42; }
  14421. int main ()
  14422. {
  14423. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  14424. int status = $lt_dlunknown;
  14425. if (self)
  14426. {
  14427. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  14428. else
  14429. {
  14430. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  14431. else puts (dlerror ());
  14432. }
  14433. /* dlclose (self); */
  14434. }
  14435. else
  14436. puts (dlerror ());
  14437. return status;
  14438. }
  14439. _LT_EOF
  14440. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  14441. (eval $ac_link) 2>&5
  14442. ac_status=$?
  14443. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14444. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  14445. (./conftest; exit; ) >&5 2>/dev/null
  14446. lt_status=$?
  14447. case x$lt_status in
  14448. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  14449. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  14450. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  14451. esac
  14452. else :
  14453. # compilation failed
  14454. lt_cv_dlopen_self_static=no
  14455. fi
  14456. fi
  14457. rm -fr conftest*
  14458. fi
  14459. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  14460. printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
  14461. fi
  14462. CPPFLAGS=$save_CPPFLAGS
  14463. LDFLAGS=$save_LDFLAGS
  14464. LIBS=$save_LIBS
  14465. ;;
  14466. esac
  14467. case $lt_cv_dlopen_self in
  14468. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  14469. *) enable_dlopen_self=unknown ;;
  14470. esac
  14471. case $lt_cv_dlopen_self_static in
  14472. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  14473. *) enable_dlopen_self_static=unknown ;;
  14474. esac
  14475. fi
  14476. striplib=
  14477. old_striplib=
  14478. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  14479. printf %s "checking whether stripping libraries is possible... " >&6; }
  14480. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  14481. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  14482. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  14483. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14484. printf "%s\n" "yes" >&6; }
  14485. else
  14486. # FIXME - insert some real tests, host_os isn't really good enough
  14487. case $host_os in
  14488. darwin*)
  14489. if test -n "$STRIP"; then
  14490. striplib="$STRIP -x"
  14491. old_striplib="$STRIP -S"
  14492. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14493. printf "%s\n" "yes" >&6; }
  14494. else
  14495. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14496. printf "%s\n" "no" >&6; }
  14497. fi
  14498. ;;
  14499. *)
  14500. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14501. printf "%s\n" "no" >&6; }
  14502. ;;
  14503. esac
  14504. fi
  14505. # Report what library types will actually be built
  14506. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  14507. printf %s "checking if libtool supports shared libraries... " >&6; }
  14508. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  14509. printf "%s\n" "$can_build_shared" >&6; }
  14510. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  14511. printf %s "checking whether to build shared libraries... " >&6; }
  14512. test no = "$can_build_shared" && enable_shared=no
  14513. # On AIX, shared libraries and static libraries use the same namespace, and
  14514. # are all built from PIC.
  14515. case $host_os in
  14516. aix3*)
  14517. test yes = "$enable_shared" && enable_static=no
  14518. if test -n "$RANLIB"; then
  14519. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  14520. postinstall_cmds='$RANLIB $lib'
  14521. fi
  14522. ;;
  14523. aix[4-9]*)
  14524. if test ia64 != "$host_cpu"; then
  14525. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  14526. yes,aix,yes) ;; # shared object as lib.so file only
  14527. yes,svr4,*) ;; # shared object as lib.so archive member only
  14528. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  14529. esac
  14530. fi
  14531. ;;
  14532. esac
  14533. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  14534. printf "%s\n" "$enable_shared" >&6; }
  14535. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  14536. printf %s "checking whether to build static libraries... " >&6; }
  14537. # Make sure either enable_shared or enable_static is yes.
  14538. test yes = "$enable_shared" || enable_static=yes
  14539. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  14540. printf "%s\n" "$enable_static" >&6; }
  14541. fi
  14542. ac_ext=c
  14543. ac_cpp='$CPP $CPPFLAGS'
  14544. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14545. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14546. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14547. CC=$lt_save_CC
  14548. if test -n "$CXX" && ( test no != "$CXX" &&
  14549. ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
  14550. (test g++ != "$CXX"))); then
  14551. ac_ext=cpp
  14552. ac_cpp='$CXXCPP $CPPFLAGS'
  14553. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14554. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14555. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  14556. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  14557. printf %s "checking how to run the C++ preprocessor... " >&6; }
  14558. if test -z "$CXXCPP"; then
  14559. if test ${ac_cv_prog_CXXCPP+y}
  14560. then :
  14561. printf %s "(cached) " >&6
  14562. else $as_nop
  14563. # Double quotes because $CXX needs to be expanded
  14564. for CXXCPP in "$CXX -E" cpp /lib/cpp
  14565. do
  14566. ac_preproc_ok=false
  14567. for ac_cxx_preproc_warn_flag in '' yes
  14568. do
  14569. # Use a header file that comes with gcc, so configuring glibc
  14570. # with a fresh cross-compiler works.
  14571. # On the NeXT, cc -E runs the code through the compiler's parser,
  14572. # not just through cpp. "Syntax error" is here to catch this case.
  14573. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14574. /* end confdefs.h. */
  14575. #include <limits.h>
  14576. Syntax error
  14577. _ACEOF
  14578. if ac_fn_cxx_try_cpp "$LINENO"
  14579. then :
  14580. else $as_nop
  14581. # Broken: fails on valid input.
  14582. continue
  14583. fi
  14584. rm -f conftest.err conftest.i conftest.$ac_ext
  14585. # OK, works on sane cases. Now check whether nonexistent headers
  14586. # can be detected and how.
  14587. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14588. /* end confdefs.h. */
  14589. #include <ac_nonexistent.h>
  14590. _ACEOF
  14591. if ac_fn_cxx_try_cpp "$LINENO"
  14592. then :
  14593. # Broken: success on invalid input.
  14594. continue
  14595. else $as_nop
  14596. # Passes both tests.
  14597. ac_preproc_ok=:
  14598. break
  14599. fi
  14600. rm -f conftest.err conftest.i conftest.$ac_ext
  14601. done
  14602. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  14603. rm -f conftest.i conftest.err conftest.$ac_ext
  14604. if $ac_preproc_ok
  14605. then :
  14606. break
  14607. fi
  14608. done
  14609. ac_cv_prog_CXXCPP=$CXXCPP
  14610. fi
  14611. CXXCPP=$ac_cv_prog_CXXCPP
  14612. else
  14613. ac_cv_prog_CXXCPP=$CXXCPP
  14614. fi
  14615. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  14616. printf "%s\n" "$CXXCPP" >&6; }
  14617. ac_preproc_ok=false
  14618. for ac_cxx_preproc_warn_flag in '' yes
  14619. do
  14620. # Use a header file that comes with gcc, so configuring glibc
  14621. # with a fresh cross-compiler works.
  14622. # On the NeXT, cc -E runs the code through the compiler's parser,
  14623. # not just through cpp. "Syntax error" is here to catch this case.
  14624. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14625. /* end confdefs.h. */
  14626. #include <limits.h>
  14627. Syntax error
  14628. _ACEOF
  14629. if ac_fn_cxx_try_cpp "$LINENO"
  14630. then :
  14631. else $as_nop
  14632. # Broken: fails on valid input.
  14633. continue
  14634. fi
  14635. rm -f conftest.err conftest.i conftest.$ac_ext
  14636. # OK, works on sane cases. Now check whether nonexistent headers
  14637. # can be detected and how.
  14638. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14639. /* end confdefs.h. */
  14640. #include <ac_nonexistent.h>
  14641. _ACEOF
  14642. if ac_fn_cxx_try_cpp "$LINENO"
  14643. then :
  14644. # Broken: success on invalid input.
  14645. continue
  14646. else $as_nop
  14647. # Passes both tests.
  14648. ac_preproc_ok=:
  14649. break
  14650. fi
  14651. rm -f conftest.err conftest.i conftest.$ac_ext
  14652. done
  14653. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  14654. rm -f conftest.i conftest.err conftest.$ac_ext
  14655. if $ac_preproc_ok
  14656. then :
  14657. else $as_nop
  14658. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14659. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  14660. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  14661. See \`config.log' for more details" "$LINENO" 5; }
  14662. fi
  14663. ac_ext=c
  14664. ac_cpp='$CPP $CPPFLAGS'
  14665. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14666. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14667. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14668. else
  14669. _lt_caught_CXX_error=yes
  14670. fi
  14671. ac_ext=cpp
  14672. ac_cpp='$CXXCPP $CPPFLAGS'
  14673. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14674. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14675. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  14676. archive_cmds_need_lc_CXX=no
  14677. allow_undefined_flag_CXX=
  14678. always_export_symbols_CXX=no
  14679. archive_expsym_cmds_CXX=
  14680. compiler_needs_object_CXX=no
  14681. export_dynamic_flag_spec_CXX=
  14682. hardcode_direct_CXX=no
  14683. hardcode_direct_absolute_CXX=no
  14684. hardcode_libdir_flag_spec_CXX=
  14685. hardcode_libdir_separator_CXX=
  14686. hardcode_minus_L_CXX=no
  14687. hardcode_shlibpath_var_CXX=unsupported
  14688. hardcode_automatic_CXX=no
  14689. inherit_rpath_CXX=no
  14690. module_cmds_CXX=
  14691. module_expsym_cmds_CXX=
  14692. link_all_deplibs_CXX=unknown
  14693. old_archive_cmds_CXX=$old_archive_cmds
  14694. reload_flag_CXX=$reload_flag
  14695. reload_cmds_CXX=$reload_cmds
  14696. no_undefined_flag_CXX=
  14697. whole_archive_flag_spec_CXX=
  14698. enable_shared_with_static_runtimes_CXX=no
  14699. # Source file extension for C++ test sources.
  14700. ac_ext=cpp
  14701. # Object file extension for compiled C++ test sources.
  14702. objext=o
  14703. objext_CXX=$objext
  14704. # No sense in running all these tests if we already determined that
  14705. # the CXX compiler isn't working. Some variables (like enable_shared)
  14706. # are currently assumed to apply to all compilers on this platform,
  14707. # and will be corrupted by setting them based on a non-working compiler.
  14708. if test yes != "$_lt_caught_CXX_error"; then
  14709. # Code to be used in simple compile tests
  14710. lt_simple_compile_test_code="int some_variable = 0;"
  14711. # Code to be used in simple link tests
  14712. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  14713. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  14714. # If no C compiler was specified, use CC.
  14715. LTCC=${LTCC-"$CC"}
  14716. # If no C compiler flags were specified, use CFLAGS.
  14717. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  14718. # Allow CC to be a program name with arguments.
  14719. compiler=$CC
  14720. # save warnings/boilerplate of simple test code
  14721. ac_outfile=conftest.$ac_objext
  14722. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  14723. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  14724. _lt_compiler_boilerplate=`cat conftest.err`
  14725. $RM conftest*
  14726. ac_outfile=conftest.$ac_objext
  14727. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  14728. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  14729. _lt_linker_boilerplate=`cat conftest.err`
  14730. $RM -r conftest*
  14731. # Allow CC to be a program name with arguments.
  14732. lt_save_CC=$CC
  14733. lt_save_CFLAGS=$CFLAGS
  14734. lt_save_LD=$LD
  14735. lt_save_GCC=$GCC
  14736. GCC=$GXX
  14737. lt_save_with_gnu_ld=$with_gnu_ld
  14738. lt_save_path_LD=$lt_cv_path_LD
  14739. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  14740. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  14741. else
  14742. $as_unset lt_cv_prog_gnu_ld
  14743. fi
  14744. if test -n "${lt_cv_path_LDCXX+set}"; then
  14745. lt_cv_path_LD=$lt_cv_path_LDCXX
  14746. else
  14747. $as_unset lt_cv_path_LD
  14748. fi
  14749. test -z "${LDCXX+set}" || LD=$LDCXX
  14750. CC=${CXX-"c++"}
  14751. CFLAGS=$CXXFLAGS
  14752. compiler=$CC
  14753. compiler_CXX=$CC
  14754. func_cc_basename $compiler
  14755. cc_basename=$func_cc_basename_result
  14756. if test -n "$compiler"; then
  14757. # We don't want -fno-exception when compiling C++ code, so set the
  14758. # no_builtin_flag separately
  14759. if test yes = "$GXX"; then
  14760. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  14761. else
  14762. lt_prog_compiler_no_builtin_flag_CXX=
  14763. fi
  14764. if test yes = "$GXX"; then
  14765. # Set up default GNU C++ configuration
  14766. # Check whether --with-gnu-ld was given.
  14767. if test ${with_gnu_ld+y}
  14768. then :
  14769. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  14770. else $as_nop
  14771. with_gnu_ld=no
  14772. fi
  14773. ac_prog=ld
  14774. if test yes = "$GCC"; then
  14775. # Check if gcc -print-prog-name=ld gives a path.
  14776. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  14777. printf %s "checking for ld used by $CC... " >&6; }
  14778. case $host in
  14779. *-*-mingw*)
  14780. # gcc leaves a trailing carriage return, which upsets mingw
  14781. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  14782. *)
  14783. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  14784. esac
  14785. case $ac_prog in
  14786. # Accept absolute paths.
  14787. [\\/]* | ?:[\\/]*)
  14788. re_direlt='/[^/][^/]*/\.\./'
  14789. # Canonicalize the pathname of ld
  14790. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  14791. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  14792. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  14793. done
  14794. test -z "$LD" && LD=$ac_prog
  14795. ;;
  14796. "")
  14797. # If it fails, then pretend we aren't using GCC.
  14798. ac_prog=ld
  14799. ;;
  14800. *)
  14801. # If it is relative, then search for the first ld in PATH.
  14802. with_gnu_ld=unknown
  14803. ;;
  14804. esac
  14805. elif test yes = "$with_gnu_ld"; then
  14806. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  14807. printf %s "checking for GNU ld... " >&6; }
  14808. else
  14809. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  14810. printf %s "checking for non-GNU ld... " >&6; }
  14811. fi
  14812. if test ${lt_cv_path_LD+y}
  14813. then :
  14814. printf %s "(cached) " >&6
  14815. else $as_nop
  14816. if test -z "$LD"; then
  14817. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  14818. for ac_dir in $PATH; do
  14819. IFS=$lt_save_ifs
  14820. test -z "$ac_dir" && ac_dir=.
  14821. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  14822. lt_cv_path_LD=$ac_dir/$ac_prog
  14823. # Check to see if the program is GNU ld. I'd rather use --version,
  14824. # but apparently some variants of GNU ld only accept -v.
  14825. # Break only if it was the GNU/non-GNU ld that we prefer.
  14826. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  14827. *GNU* | *'with BFD'*)
  14828. test no != "$with_gnu_ld" && break
  14829. ;;
  14830. *)
  14831. test yes != "$with_gnu_ld" && break
  14832. ;;
  14833. esac
  14834. fi
  14835. done
  14836. IFS=$lt_save_ifs
  14837. else
  14838. lt_cv_path_LD=$LD # Let the user override the test with a path.
  14839. fi
  14840. fi
  14841. LD=$lt_cv_path_LD
  14842. if test -n "$LD"; then
  14843. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  14844. printf "%s\n" "$LD" >&6; }
  14845. else
  14846. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14847. printf "%s\n" "no" >&6; }
  14848. fi
  14849. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  14850. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  14851. printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
  14852. if test ${lt_cv_prog_gnu_ld+y}
  14853. then :
  14854. printf %s "(cached) " >&6
  14855. else $as_nop
  14856. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  14857. case `$LD -v 2>&1 </dev/null` in
  14858. *GNU* | *'with BFD'*)
  14859. lt_cv_prog_gnu_ld=yes
  14860. ;;
  14861. *)
  14862. lt_cv_prog_gnu_ld=no
  14863. ;;
  14864. esac
  14865. fi
  14866. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  14867. printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
  14868. with_gnu_ld=$lt_cv_prog_gnu_ld
  14869. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  14870. # archiving commands below assume that GNU ld is being used.
  14871. if test yes = "$with_gnu_ld"; then
  14872. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  14873. archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  14874. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  14875. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  14876. # If archive_cmds runs LD, not CC, wlarc should be empty
  14877. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  14878. # investigate it a little bit more. (MM)
  14879. wlarc='$wl'
  14880. # ancient GNU ld didn't support --whole-archive et. al.
  14881. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  14882. $GREP 'no-whole-archive' > /dev/null; then
  14883. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  14884. else
  14885. whole_archive_flag_spec_CXX=
  14886. fi
  14887. else
  14888. with_gnu_ld=no
  14889. wlarc=
  14890. # A generic and very simple default shared library creation
  14891. # command for GNU C++ for the case where it uses the native
  14892. # linker, instead of GNU ld. If possible, this setting should
  14893. # overridden to take advantage of the native linker features on
  14894. # the platform it is being used on.
  14895. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  14896. fi
  14897. # Commands to make compiler produce verbose output that lists
  14898. # what "hidden" libraries, object files and flags are used when
  14899. # linking a shared library.
  14900. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
  14901. else
  14902. GXX=no
  14903. with_gnu_ld=no
  14904. wlarc=
  14905. fi
  14906. # PORTME: fill in a description of your system's C++ link characteristics
  14907. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  14908. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  14909. ld_shlibs_CXX=yes
  14910. case $host_os in
  14911. aix3*)
  14912. # FIXME: insert proper C++ library support
  14913. ld_shlibs_CXX=no
  14914. ;;
  14915. aix[4-9]*)
  14916. if test ia64 = "$host_cpu"; then
  14917. # On IA64, the linker does run time linking by default, so we don't
  14918. # have to do anything special.
  14919. aix_use_runtimelinking=no
  14920. exp_sym_flag='-Bexport'
  14921. no_entry_flag=
  14922. else
  14923. aix_use_runtimelinking=no
  14924. # Test if we are trying to use run time linking or normal
  14925. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  14926. # have runtime linking enabled, and use it for executables.
  14927. # For shared libraries, we enable/disable runtime linking
  14928. # depending on the kind of the shared library created -
  14929. # when "with_aix_soname,aix_use_runtimelinking" is:
  14930. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  14931. # "aix,yes" lib.so shared, rtl:yes, for executables
  14932. # lib.a static archive
  14933. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  14934. # lib.a(lib.so.V) shared, rtl:no, for executables
  14935. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  14936. # lib.a(lib.so.V) shared, rtl:no
  14937. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  14938. # lib.a static archive
  14939. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  14940. for ld_flag in $LDFLAGS; do
  14941. case $ld_flag in
  14942. *-brtl*)
  14943. aix_use_runtimelinking=yes
  14944. break
  14945. ;;
  14946. esac
  14947. done
  14948. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  14949. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  14950. # so we don't have lib.a shared libs to link our executables.
  14951. # We have to force runtime linking in this case.
  14952. aix_use_runtimelinking=yes
  14953. LDFLAGS="$LDFLAGS -Wl,-brtl"
  14954. fi
  14955. ;;
  14956. esac
  14957. exp_sym_flag='-bexport'
  14958. no_entry_flag='-bnoentry'
  14959. fi
  14960. # When large executables or shared objects are built, AIX ld can
  14961. # have problems creating the table of contents. If linking a library
  14962. # or program results in "error TOC overflow" add -mminimal-toc to
  14963. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  14964. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  14965. archive_cmds_CXX=''
  14966. hardcode_direct_CXX=yes
  14967. hardcode_direct_absolute_CXX=yes
  14968. hardcode_libdir_separator_CXX=':'
  14969. link_all_deplibs_CXX=yes
  14970. file_list_spec_CXX='$wl-f,'
  14971. case $with_aix_soname,$aix_use_runtimelinking in
  14972. aix,*) ;; # no import file
  14973. svr4,* | *,yes) # use import file
  14974. # The Import File defines what to hardcode.
  14975. hardcode_direct_CXX=no
  14976. hardcode_direct_absolute_CXX=no
  14977. ;;
  14978. esac
  14979. if test yes = "$GXX"; then
  14980. case $host_os in aix4.[012]|aix4.[012].*)
  14981. # We only want to do this on AIX 4.2 and lower, the check
  14982. # below for broken collect2 doesn't work under 4.3+
  14983. collect2name=`$CC -print-prog-name=collect2`
  14984. if test -f "$collect2name" &&
  14985. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  14986. then
  14987. # We have reworked collect2
  14988. :
  14989. else
  14990. # We have old collect2
  14991. hardcode_direct_CXX=unsupported
  14992. # It fails to find uninstalled libraries when the uninstalled
  14993. # path is not listed in the libpath. Setting hardcode_minus_L
  14994. # to unsupported forces relinking
  14995. hardcode_minus_L_CXX=yes
  14996. hardcode_libdir_flag_spec_CXX='-L$libdir'
  14997. hardcode_libdir_separator_CXX=
  14998. fi
  14999. esac
  15000. shared_flag='-shared'
  15001. if test yes = "$aix_use_runtimelinking"; then
  15002. shared_flag=$shared_flag' $wl-G'
  15003. fi
  15004. # Need to ensure runtime linking is disabled for the traditional
  15005. # shared library, or the linker may eventually find shared libraries
  15006. # /with/ Import File - we do not want to mix them.
  15007. shared_flag_aix='-shared'
  15008. shared_flag_svr4='-shared $wl-G'
  15009. else
  15010. # not using gcc
  15011. if test ia64 = "$host_cpu"; then
  15012. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  15013. # chokes on -Wl,-G. The following line is correct:
  15014. shared_flag='-G'
  15015. else
  15016. if test yes = "$aix_use_runtimelinking"; then
  15017. shared_flag='$wl-G'
  15018. else
  15019. shared_flag='$wl-bM:SRE'
  15020. fi
  15021. shared_flag_aix='$wl-bM:SRE'
  15022. shared_flag_svr4='$wl-G'
  15023. fi
  15024. fi
  15025. export_dynamic_flag_spec_CXX='$wl-bexpall'
  15026. # It seems that -bexpall does not export symbols beginning with
  15027. # underscore (_), so it is better to generate a list of symbols to
  15028. # export.
  15029. always_export_symbols_CXX=yes
  15030. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  15031. # Warning - without using the other runtime loading flags (-brtl),
  15032. # -berok will link without error, but may produce a broken library.
  15033. # The "-G" linker flag allows undefined symbols.
  15034. no_undefined_flag_CXX='-bernotok'
  15035. # Determine the default libpath from the value encoded in an empty
  15036. # executable.
  15037. if test set = "${lt_cv_aix_libpath+set}"; then
  15038. aix_libpath=$lt_cv_aix_libpath
  15039. else
  15040. if test ${lt_cv_aix_libpath__CXX+y}
  15041. then :
  15042. printf %s "(cached) " >&6
  15043. else $as_nop
  15044. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15045. /* end confdefs.h. */
  15046. int
  15047. main (void)
  15048. {
  15049. ;
  15050. return 0;
  15051. }
  15052. _ACEOF
  15053. if ac_fn_cxx_try_link "$LINENO"
  15054. then :
  15055. lt_aix_libpath_sed='
  15056. /Import File Strings/,/^$/ {
  15057. /^0/ {
  15058. s/^0 *\([^ ]*\) *$/\1/
  15059. p
  15060. }
  15061. }'
  15062. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  15063. # Check for a 64-bit object if we didn't find anything.
  15064. if test -z "$lt_cv_aix_libpath__CXX"; then
  15065. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  15066. fi
  15067. fi
  15068. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  15069. conftest$ac_exeext conftest.$ac_ext
  15070. if test -z "$lt_cv_aix_libpath__CXX"; then
  15071. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  15072. fi
  15073. fi
  15074. aix_libpath=$lt_cv_aix_libpath__CXX
  15075. fi
  15076. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  15077. archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
  15078. else
  15079. if test ia64 = "$host_cpu"; then
  15080. hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
  15081. allow_undefined_flag_CXX="-z nodefs"
  15082. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
  15083. else
  15084. # Determine the default libpath from the value encoded in an
  15085. # empty executable.
  15086. if test set = "${lt_cv_aix_libpath+set}"; then
  15087. aix_libpath=$lt_cv_aix_libpath
  15088. else
  15089. if test ${lt_cv_aix_libpath__CXX+y}
  15090. then :
  15091. printf %s "(cached) " >&6
  15092. else $as_nop
  15093. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15094. /* end confdefs.h. */
  15095. int
  15096. main (void)
  15097. {
  15098. ;
  15099. return 0;
  15100. }
  15101. _ACEOF
  15102. if ac_fn_cxx_try_link "$LINENO"
  15103. then :
  15104. lt_aix_libpath_sed='
  15105. /Import File Strings/,/^$/ {
  15106. /^0/ {
  15107. s/^0 *\([^ ]*\) *$/\1/
  15108. p
  15109. }
  15110. }'
  15111. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  15112. # Check for a 64-bit object if we didn't find anything.
  15113. if test -z "$lt_cv_aix_libpath__CXX"; then
  15114. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  15115. fi
  15116. fi
  15117. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  15118. conftest$ac_exeext conftest.$ac_ext
  15119. if test -z "$lt_cv_aix_libpath__CXX"; then
  15120. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  15121. fi
  15122. fi
  15123. aix_libpath=$lt_cv_aix_libpath__CXX
  15124. fi
  15125. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  15126. # Warning - without using the other run time loading flags,
  15127. # -berok will link without error, but may produce a broken library.
  15128. no_undefined_flag_CXX=' $wl-bernotok'
  15129. allow_undefined_flag_CXX=' $wl-berok'
  15130. if test yes = "$with_gnu_ld"; then
  15131. # We only use this code for GNU lds that support --whole-archive.
  15132. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  15133. else
  15134. # Exported symbols can be pulled into shared objects from archives
  15135. whole_archive_flag_spec_CXX='$convenience'
  15136. fi
  15137. archive_cmds_need_lc_CXX=yes
  15138. archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  15139. # -brtl affects multiple linker settings, -berok does not and is overridden later
  15140. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  15141. if test svr4 != "$with_aix_soname"; then
  15142. # This is similar to how AIX traditionally builds its shared
  15143. # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
  15144. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
  15145. fi
  15146. if test aix != "$with_aix_soname"; then
  15147. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
  15148. else
  15149. # used by -dlpreopen to get the symbols
  15150. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  15151. fi
  15152. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
  15153. fi
  15154. fi
  15155. ;;
  15156. beos*)
  15157. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  15158. allow_undefined_flag_CXX=unsupported
  15159. # Joseph Beckenbach <[email protected]> says some releases of gcc
  15160. # support --undefined. This deserves some investigation. FIXME
  15161. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  15162. else
  15163. ld_shlibs_CXX=no
  15164. fi
  15165. ;;
  15166. chorus*)
  15167. case $cc_basename in
  15168. *)
  15169. # FIXME: insert proper C++ library support
  15170. ld_shlibs_CXX=no
  15171. ;;
  15172. esac
  15173. ;;
  15174. cygwin* | mingw* | pw32* | cegcc*)
  15175. case $GXX,$cc_basename in
  15176. ,cl* | no,cl*)
  15177. # Native MSVC
  15178. # hardcode_libdir_flag_spec is actually meaningless, as there is
  15179. # no search path for DLLs.
  15180. hardcode_libdir_flag_spec_CXX=' '
  15181. allow_undefined_flag_CXX=unsupported
  15182. always_export_symbols_CXX=yes
  15183. file_list_spec_CXX='@'
  15184. # Tell ltmain to make .lib files, not .a files.
  15185. libext=lib
  15186. # Tell ltmain to make .dll files, not .so files.
  15187. shrext_cmds=.dll
  15188. # FIXME: Setting linknames here is a bad hack.
  15189. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  15190. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  15191. cp "$export_symbols" "$output_objdir/$soname.def";
  15192. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  15193. else
  15194. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  15195. fi~
  15196. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  15197. linknames='
  15198. # The linker will not automatically build a static lib if we build a DLL.
  15199. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  15200. enable_shared_with_static_runtimes_CXX=yes
  15201. # Don't use ranlib
  15202. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  15203. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  15204. lt_tool_outputfile="@TOOL_OUTPUT@"~
  15205. case $lt_outputfile in
  15206. *.exe|*.EXE) ;;
  15207. *)
  15208. lt_outputfile=$lt_outputfile.exe
  15209. lt_tool_outputfile=$lt_tool_outputfile.exe
  15210. ;;
  15211. esac~
  15212. func_to_tool_file "$lt_outputfile"~
  15213. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  15214. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  15215. $RM "$lt_outputfile.manifest";
  15216. fi'
  15217. ;;
  15218. *)
  15219. # g++
  15220. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  15221. # as there is no search path for DLLs.
  15222. hardcode_libdir_flag_spec_CXX='-L$libdir'
  15223. export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
  15224. allow_undefined_flag_CXX=unsupported
  15225. always_export_symbols_CXX=no
  15226. enable_shared_with_static_runtimes_CXX=yes
  15227. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  15228. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  15229. # If the export-symbols file already is a .def file, use it as
  15230. # is; otherwise, prepend EXPORTS...
  15231. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  15232. cp $export_symbols $output_objdir/$soname.def;
  15233. else
  15234. echo EXPORTS > $output_objdir/$soname.def;
  15235. cat $export_symbols >> $output_objdir/$soname.def;
  15236. fi~
  15237. $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  15238. else
  15239. ld_shlibs_CXX=no
  15240. fi
  15241. ;;
  15242. esac
  15243. ;;
  15244. darwin* | rhapsody*)
  15245. archive_cmds_need_lc_CXX=no
  15246. hardcode_direct_CXX=no
  15247. hardcode_automatic_CXX=yes
  15248. hardcode_shlibpath_var_CXX=unsupported
  15249. if test yes = "$lt_cv_ld_force_load"; then
  15250. whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  15251. else
  15252. whole_archive_flag_spec_CXX=''
  15253. fi
  15254. link_all_deplibs_CXX=yes
  15255. allow_undefined_flag_CXX=$_lt_dar_allow_undefined
  15256. case $cc_basename in
  15257. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  15258. *) _lt_dar_can_shared=$GCC ;;
  15259. esac
  15260. if test yes = "$_lt_dar_can_shared"; then
  15261. output_verbose_link_cmd=func_echo_all
  15262. archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  15263. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  15264. archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
  15265. module_expsym_cmds_CXX="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
  15266. if test yes != "$lt_cv_apple_cc_single_mod"; then
  15267. archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil"
  15268. archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil"
  15269. fi
  15270. else
  15271. ld_shlibs_CXX=no
  15272. fi
  15273. ;;
  15274. os2*)
  15275. hardcode_libdir_flag_spec_CXX='-L$libdir'
  15276. hardcode_minus_L_CXX=yes
  15277. allow_undefined_flag_CXX=unsupported
  15278. shrext_cmds=.dll
  15279. archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  15280. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  15281. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  15282. $ECHO EXPORTS >> $output_objdir/$libname.def~
  15283. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  15284. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  15285. emximp -o $lib $output_objdir/$libname.def'
  15286. archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  15287. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  15288. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  15289. $ECHO EXPORTS >> $output_objdir/$libname.def~
  15290. prefix_cmds="$SED"~
  15291. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  15292. prefix_cmds="$prefix_cmds -e 1d";
  15293. fi~
  15294. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  15295. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  15296. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  15297. emximp -o $lib $output_objdir/$libname.def'
  15298. old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  15299. enable_shared_with_static_runtimes_CXX=yes
  15300. ;;
  15301. dgux*)
  15302. case $cc_basename in
  15303. ec++*)
  15304. # FIXME: insert proper C++ library support
  15305. ld_shlibs_CXX=no
  15306. ;;
  15307. ghcx*)
  15308. # Green Hills C++ Compiler
  15309. # FIXME: insert proper C++ library support
  15310. ld_shlibs_CXX=no
  15311. ;;
  15312. *)
  15313. # FIXME: insert proper C++ library support
  15314. ld_shlibs_CXX=no
  15315. ;;
  15316. esac
  15317. ;;
  15318. freebsd2.*)
  15319. # C++ shared libraries reported to be fairly broken before
  15320. # switch to ELF
  15321. ld_shlibs_CXX=no
  15322. ;;
  15323. freebsd-elf*)
  15324. archive_cmds_need_lc_CXX=no
  15325. ;;
  15326. freebsd* | dragonfly*)
  15327. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  15328. # conventions
  15329. ld_shlibs_CXX=yes
  15330. ;;
  15331. haiku*)
  15332. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  15333. link_all_deplibs_CXX=yes
  15334. ;;
  15335. hpux9*)
  15336. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  15337. hardcode_libdir_separator_CXX=:
  15338. export_dynamic_flag_spec_CXX='$wl-E'
  15339. hardcode_direct_CXX=yes
  15340. hardcode_minus_L_CXX=yes # Not in the search PATH,
  15341. # but as the default
  15342. # location of the library.
  15343. case $cc_basename in
  15344. CC*)
  15345. # FIXME: insert proper C++ library support
  15346. ld_shlibs_CXX=no
  15347. ;;
  15348. aCC*)
  15349. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  15350. # Commands to make compiler produce verbose output that lists
  15351. # what "hidden" libraries, object files and flags are used when
  15352. # linking a shared library.
  15353. #
  15354. # There doesn't appear to be a way to prevent this compiler from
  15355. # explicitly linking system object files so we need to strip them
  15356. # from the output so that they don't get included in the library
  15357. # dependencies.
  15358. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP " \-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  15359. ;;
  15360. *)
  15361. if test yes = "$GXX"; then
  15362. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  15363. else
  15364. # FIXME: insert proper C++ library support
  15365. ld_shlibs_CXX=no
  15366. fi
  15367. ;;
  15368. esac
  15369. ;;
  15370. hpux10*|hpux11*)
  15371. if test no = "$with_gnu_ld"; then
  15372. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  15373. hardcode_libdir_separator_CXX=:
  15374. case $host_cpu in
  15375. hppa*64*|ia64*)
  15376. ;;
  15377. *)
  15378. export_dynamic_flag_spec_CXX='$wl-E'
  15379. ;;
  15380. esac
  15381. fi
  15382. case $host_cpu in
  15383. hppa*64*|ia64*)
  15384. hardcode_direct_CXX=no
  15385. hardcode_shlibpath_var_CXX=no
  15386. ;;
  15387. *)
  15388. hardcode_direct_CXX=yes
  15389. hardcode_direct_absolute_CXX=yes
  15390. hardcode_minus_L_CXX=yes # Not in the search PATH,
  15391. # but as the default
  15392. # location of the library.
  15393. ;;
  15394. esac
  15395. case $cc_basename in
  15396. CC*)
  15397. # FIXME: insert proper C++ library support
  15398. ld_shlibs_CXX=no
  15399. ;;
  15400. aCC*)
  15401. case $host_cpu in
  15402. hppa*64*)
  15403. archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  15404. ;;
  15405. ia64*)
  15406. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  15407. ;;
  15408. *)
  15409. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  15410. ;;
  15411. esac
  15412. # Commands to make compiler produce verbose output that lists
  15413. # what "hidden" libraries, object files and flags are used when
  15414. # linking a shared library.
  15415. #
  15416. # There doesn't appear to be a way to prevent this compiler from
  15417. # explicitly linking system object files so we need to strip them
  15418. # from the output so that they don't get included in the library
  15419. # dependencies.
  15420. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP " \-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  15421. ;;
  15422. *)
  15423. if test yes = "$GXX"; then
  15424. if test no = "$with_gnu_ld"; then
  15425. case $host_cpu in
  15426. hppa*64*)
  15427. archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  15428. ;;
  15429. ia64*)
  15430. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  15431. ;;
  15432. *)
  15433. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  15434. ;;
  15435. esac
  15436. fi
  15437. else
  15438. # FIXME: insert proper C++ library support
  15439. ld_shlibs_CXX=no
  15440. fi
  15441. ;;
  15442. esac
  15443. ;;
  15444. interix[3-9]*)
  15445. hardcode_direct_CXX=no
  15446. hardcode_shlibpath_var_CXX=no
  15447. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  15448. export_dynamic_flag_spec_CXX='$wl-E'
  15449. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  15450. # Instead, shared libraries are loaded at an image base (0x10000000 by
  15451. # default) and relocated if they conflict, which is a slow very memory
  15452. # consuming and fragmenting process. To avoid this, we pick a random,
  15453. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  15454. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  15455. archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  15456. archive_expsym_cmds_CXX='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  15457. ;;
  15458. irix5* | irix6*)
  15459. case $cc_basename in
  15460. CC*)
  15461. # SGI C++
  15462. archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  15463. # Archives containing C++ object files must be created using
  15464. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  15465. # necessary to make sure instantiated templates are included
  15466. # in the archive.
  15467. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  15468. ;;
  15469. *)
  15470. if test yes = "$GXX"; then
  15471. if test no = "$with_gnu_ld"; then
  15472. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  15473. else
  15474. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
  15475. fi
  15476. fi
  15477. link_all_deplibs_CXX=yes
  15478. ;;
  15479. esac
  15480. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  15481. hardcode_libdir_separator_CXX=:
  15482. inherit_rpath_CXX=yes
  15483. ;;
  15484. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  15485. case $cc_basename in
  15486. KCC*)
  15487. # Kuck and Associates, Inc. (KAI) C++ Compiler
  15488. # KCC will only create a shared library if the output file
  15489. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  15490. # to its proper name (with version) after linking.
  15491. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  15492. archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib'
  15493. # Commands to make compiler produce verbose output that lists
  15494. # what "hidden" libraries, object files and flags are used when
  15495. # linking a shared library.
  15496. #
  15497. # There doesn't appear to be a way to prevent this compiler from
  15498. # explicitly linking system object files so we need to strip them
  15499. # from the output so that they don't get included in the library
  15500. # dependencies.
  15501. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  15502. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  15503. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  15504. # Archives containing C++ object files must be created using
  15505. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  15506. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  15507. ;;
  15508. icpc* | ecpc* )
  15509. # Intel C++
  15510. with_gnu_ld=yes
  15511. # version 8.0 and above of icpc choke on multiply defined symbols
  15512. # if we add $predep_objects and $postdep_objects, however 7.1 and
  15513. # earlier do not add the objects themselves.
  15514. case `$CC -V 2>&1` in
  15515. *"Version 7."*)
  15516. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  15517. archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  15518. ;;
  15519. *) # Version 8.0 or newer
  15520. tmp_idyn=
  15521. case $host_cpu in
  15522. ia64*) tmp_idyn=' -i_dynamic';;
  15523. esac
  15524. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  15525. archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  15526. ;;
  15527. esac
  15528. archive_cmds_need_lc_CXX=no
  15529. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  15530. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  15531. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  15532. ;;
  15533. pgCC* | pgcpp*)
  15534. # Portland Group C++ compiler
  15535. case `$CC -V` in
  15536. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  15537. prelink_cmds_CXX='tpldir=Template.dir~
  15538. rm -rf $tpldir~
  15539. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  15540. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  15541. old_archive_cmds_CXX='tpldir=Template.dir~
  15542. rm -rf $tpldir~
  15543. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  15544. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  15545. $RANLIB $oldlib'
  15546. archive_cmds_CXX='tpldir=Template.dir~
  15547. rm -rf $tpldir~
  15548. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  15549. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  15550. archive_expsym_cmds_CXX='tpldir=Template.dir~
  15551. rm -rf $tpldir~
  15552. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  15553. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  15554. ;;
  15555. *) # Version 6 and above use weak symbols
  15556. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  15557. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  15558. ;;
  15559. esac
  15560. hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
  15561. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  15562. whole_archive_flag_spec_CXX='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  15563. ;;
  15564. cxx*)
  15565. # Compaq C++
  15566. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  15567. archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols'
  15568. runpath_var=LD_RUN_PATH
  15569. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  15570. hardcode_libdir_separator_CXX=:
  15571. # Commands to make compiler produce verbose output that lists
  15572. # what "hidden" libraries, object files and flags are used when
  15573. # linking a shared library.
  15574. #
  15575. # There doesn't appear to be a way to prevent this compiler from
  15576. # explicitly linking system object files so we need to strip them
  15577. # from the output so that they don't get included in the library
  15578. # dependencies.
  15579. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
  15580. ;;
  15581. xl* | mpixl* | bgxl*)
  15582. # IBM XL 8.0 on PPC, with GNU ld
  15583. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  15584. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  15585. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  15586. if test yes = "$supports_anon_versioning"; then
  15587. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  15588. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  15589. echo "local: *; };" >> $output_objdir/$libname.ver~
  15590. $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  15591. fi
  15592. ;;
  15593. *)
  15594. case `$CC -V 2>&1 | sed 5q` in
  15595. *Sun\ C*)
  15596. # Sun C++ 5.9
  15597. no_undefined_flag_CXX=' -zdefs'
  15598. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  15599. archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols'
  15600. hardcode_libdir_flag_spec_CXX='-R$libdir'
  15601. whole_archive_flag_spec_CXX='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  15602. compiler_needs_object_CXX=yes
  15603. # Not sure whether something based on
  15604. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  15605. # would be better.
  15606. output_verbose_link_cmd='func_echo_all'
  15607. # Archives containing C++ object files must be created using
  15608. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  15609. # necessary to make sure instantiated templates are included
  15610. # in the archive.
  15611. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  15612. ;;
  15613. esac
  15614. ;;
  15615. esac
  15616. ;;
  15617. lynxos*)
  15618. # FIXME: insert proper C++ library support
  15619. ld_shlibs_CXX=no
  15620. ;;
  15621. m88k*)
  15622. # FIXME: insert proper C++ library support
  15623. ld_shlibs_CXX=no
  15624. ;;
  15625. mvs*)
  15626. case $cc_basename in
  15627. cxx*)
  15628. # FIXME: insert proper C++ library support
  15629. ld_shlibs_CXX=no
  15630. ;;
  15631. *)
  15632. # FIXME: insert proper C++ library support
  15633. ld_shlibs_CXX=no
  15634. ;;
  15635. esac
  15636. ;;
  15637. netbsd*)
  15638. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  15639. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  15640. wlarc=
  15641. hardcode_libdir_flag_spec_CXX='-R$libdir'
  15642. hardcode_direct_CXX=yes
  15643. hardcode_shlibpath_var_CXX=no
  15644. fi
  15645. # Workaround some broken pre-1.5 toolchains
  15646. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  15647. ;;
  15648. *nto* | *qnx*)
  15649. ld_shlibs_CXX=yes
  15650. ;;
  15651. openbsd* | bitrig*)
  15652. if test -f /usr/libexec/ld.so; then
  15653. hardcode_direct_CXX=yes
  15654. hardcode_shlibpath_var_CXX=no
  15655. hardcode_direct_absolute_CXX=yes
  15656. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  15657. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  15658. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
  15659. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
  15660. export_dynamic_flag_spec_CXX='$wl-E'
  15661. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  15662. fi
  15663. output_verbose_link_cmd=func_echo_all
  15664. else
  15665. ld_shlibs_CXX=no
  15666. fi
  15667. ;;
  15668. osf3* | osf4* | osf5*)
  15669. case $cc_basename in
  15670. KCC*)
  15671. # Kuck and Associates, Inc. (KAI) C++ Compiler
  15672. # KCC will only create a shared library if the output file
  15673. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  15674. # to its proper name (with version) after linking.
  15675. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  15676. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  15677. hardcode_libdir_separator_CXX=:
  15678. # Archives containing C++ object files must be created using
  15679. # the KAI C++ compiler.
  15680. case $host in
  15681. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  15682. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  15683. esac
  15684. ;;
  15685. RCC*)
  15686. # Rational C++ 2.4.1
  15687. # FIXME: insert proper C++ library support
  15688. ld_shlibs_CXX=no
  15689. ;;
  15690. cxx*)
  15691. case $host in
  15692. osf3*)
  15693. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  15694. archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  15695. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  15696. ;;
  15697. *)
  15698. allow_undefined_flag_CXX=' -expect_unresolved \*'
  15699. archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  15700. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  15701. echo "-hidden">> $lib.exp~
  15702. $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~
  15703. $RM $lib.exp'
  15704. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  15705. ;;
  15706. esac
  15707. hardcode_libdir_separator_CXX=:
  15708. # Commands to make compiler produce verbose output that lists
  15709. # what "hidden" libraries, object files and flags are used when
  15710. # linking a shared library.
  15711. #
  15712. # There doesn't appear to be a way to prevent this compiler from
  15713. # explicitly linking system object files so we need to strip them
  15714. # from the output so that they don't get included in the library
  15715. # dependencies.
  15716. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  15717. ;;
  15718. *)
  15719. if test yes,no = "$GXX,$with_gnu_ld"; then
  15720. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  15721. case $host in
  15722. osf3*)
  15723. archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  15724. ;;
  15725. *)
  15726. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  15727. ;;
  15728. esac
  15729. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  15730. hardcode_libdir_separator_CXX=:
  15731. # Commands to make compiler produce verbose output that lists
  15732. # what "hidden" libraries, object files and flags are used when
  15733. # linking a shared library.
  15734. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
  15735. else
  15736. # FIXME: insert proper C++ library support
  15737. ld_shlibs_CXX=no
  15738. fi
  15739. ;;
  15740. esac
  15741. ;;
  15742. psos*)
  15743. # FIXME: insert proper C++ library support
  15744. ld_shlibs_CXX=no
  15745. ;;
  15746. sunos4*)
  15747. case $cc_basename in
  15748. CC*)
  15749. # Sun C++ 4.x
  15750. # FIXME: insert proper C++ library support
  15751. ld_shlibs_CXX=no
  15752. ;;
  15753. lcc*)
  15754. # Lucid
  15755. # FIXME: insert proper C++ library support
  15756. ld_shlibs_CXX=no
  15757. ;;
  15758. *)
  15759. # FIXME: insert proper C++ library support
  15760. ld_shlibs_CXX=no
  15761. ;;
  15762. esac
  15763. ;;
  15764. solaris*)
  15765. case $cc_basename in
  15766. CC* | sunCC*)
  15767. # Sun C++ 4.2, 5.x and Centerline C++
  15768. archive_cmds_need_lc_CXX=yes
  15769. no_undefined_flag_CXX=' -zdefs'
  15770. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  15771. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  15772. $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  15773. hardcode_libdir_flag_spec_CXX='-R$libdir'
  15774. hardcode_shlibpath_var_CXX=no
  15775. case $host_os in
  15776. solaris2.[0-5] | solaris2.[0-5].*) ;;
  15777. *)
  15778. # The compiler driver will combine and reorder linker options,
  15779. # but understands '-z linker_flag'.
  15780. # Supported since Solaris 2.6 (maybe 2.5.1?)
  15781. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  15782. ;;
  15783. esac
  15784. link_all_deplibs_CXX=yes
  15785. output_verbose_link_cmd='func_echo_all'
  15786. # Archives containing C++ object files must be created using
  15787. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  15788. # necessary to make sure instantiated templates are included
  15789. # in the archive.
  15790. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  15791. ;;
  15792. gcx*)
  15793. # Green Hills C++ Compiler
  15794. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  15795. # The C++ compiler must be used to create the archive.
  15796. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  15797. ;;
  15798. *)
  15799. # GNU C++ compiler with Solaris linker
  15800. if test yes,no = "$GXX,$with_gnu_ld"; then
  15801. no_undefined_flag_CXX=' $wl-z ${wl}defs'
  15802. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  15803. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  15804. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  15805. $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  15806. # Commands to make compiler produce verbose output that lists
  15807. # what "hidden" libraries, object files and flags are used when
  15808. # linking a shared library.
  15809. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
  15810. else
  15811. # g++ 2.7 appears to require '-G' NOT '-shared' on this
  15812. # platform.
  15813. archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  15814. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  15815. $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  15816. # Commands to make compiler produce verbose output that lists
  15817. # what "hidden" libraries, object files and flags are used when
  15818. # linking a shared library.
  15819. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
  15820. fi
  15821. hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
  15822. case $host_os in
  15823. solaris2.[0-5] | solaris2.[0-5].*) ;;
  15824. *)
  15825. whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  15826. ;;
  15827. esac
  15828. fi
  15829. ;;
  15830. esac
  15831. ;;
  15832. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  15833. no_undefined_flag_CXX='$wl-z,text'
  15834. archive_cmds_need_lc_CXX=no
  15835. hardcode_shlibpath_var_CXX=no
  15836. runpath_var='LD_RUN_PATH'
  15837. case $cc_basename in
  15838. CC*)
  15839. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15840. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15841. ;;
  15842. *)
  15843. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15844. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15845. ;;
  15846. esac
  15847. ;;
  15848. sysv5* | sco3.2v5* | sco5v6*)
  15849. # Note: We CANNOT use -z defs as we might desire, because we do not
  15850. # link with -lc, and that would cause any symbols used from libc to
  15851. # always be unresolved, which means just about no library would
  15852. # ever link correctly. If we're not using GNU ld we use -z text
  15853. # though, which does catch some bad symbols but isn't as heavy-handed
  15854. # as -z defs.
  15855. no_undefined_flag_CXX='$wl-z,text'
  15856. allow_undefined_flag_CXX='$wl-z,nodefs'
  15857. archive_cmds_need_lc_CXX=no
  15858. hardcode_shlibpath_var_CXX=no
  15859. hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
  15860. hardcode_libdir_separator_CXX=':'
  15861. link_all_deplibs_CXX=yes
  15862. export_dynamic_flag_spec_CXX='$wl-Bexport'
  15863. runpath_var='LD_RUN_PATH'
  15864. case $cc_basename in
  15865. CC*)
  15866. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15867. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15868. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  15869. '"$old_archive_cmds_CXX"
  15870. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  15871. '"$reload_cmds_CXX"
  15872. ;;
  15873. *)
  15874. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15875. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15876. ;;
  15877. esac
  15878. ;;
  15879. tandem*)
  15880. case $cc_basename in
  15881. NCC*)
  15882. # NonStop-UX NCC 3.20
  15883. # FIXME: insert proper C++ library support
  15884. ld_shlibs_CXX=no
  15885. ;;
  15886. *)
  15887. # FIXME: insert proper C++ library support
  15888. ld_shlibs_CXX=no
  15889. ;;
  15890. esac
  15891. ;;
  15892. vxworks*)
  15893. # FIXME: insert proper C++ library support
  15894. ld_shlibs_CXX=no
  15895. ;;
  15896. *)
  15897. # FIXME: insert proper C++ library support
  15898. ld_shlibs_CXX=no
  15899. ;;
  15900. esac
  15901. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  15902. printf "%s\n" "$ld_shlibs_CXX" >&6; }
  15903. test no = "$ld_shlibs_CXX" && can_build_shared=no
  15904. GCC_CXX=$GXX
  15905. LD_CXX=$LD
  15906. ## CAVEAT EMPTOR:
  15907. ## There is no encapsulation within the following macros, do not change
  15908. ## the running order or otherwise move them around unless you know exactly
  15909. ## what you are doing...
  15910. # Dependencies to place before and after the object being linked:
  15911. predep_objects_CXX=
  15912. postdep_objects_CXX=
  15913. predeps_CXX=
  15914. postdeps_CXX=
  15915. compiler_lib_search_path_CXX=
  15916. cat > conftest.$ac_ext <<_LT_EOF
  15917. class Foo
  15918. {
  15919. public:
  15920. Foo (void) { a = 0; }
  15921. private:
  15922. int a;
  15923. };
  15924. _LT_EOF
  15925. _lt_libdeps_save_CFLAGS=$CFLAGS
  15926. case "$CC $CFLAGS " in #(
  15927. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  15928. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  15929. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  15930. esac
  15931. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  15932. (eval $ac_compile) 2>&5
  15933. ac_status=$?
  15934. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15935. test $ac_status = 0; }; then
  15936. # Parse the compiler output and extract the necessary
  15937. # objects, libraries and library flags.
  15938. # Sentinel used to keep track of whether or not we are before
  15939. # the conftest object file.
  15940. pre_test_object_deps_done=no
  15941. for p in `eval "$output_verbose_link_cmd"`; do
  15942. case $prev$p in
  15943. -L* | -R* | -l*)
  15944. # Some compilers place space between "-{L,R}" and the path.
  15945. # Remove the space.
  15946. if test x-L = "$p" ||
  15947. test x-R = "$p"; then
  15948. prev=$p
  15949. continue
  15950. fi
  15951. # Expand the sysroot to ease extracting the directories later.
  15952. if test -z "$prev"; then
  15953. case $p in
  15954. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  15955. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  15956. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  15957. esac
  15958. fi
  15959. case $p in
  15960. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  15961. esac
  15962. if test no = "$pre_test_object_deps_done"; then
  15963. case $prev in
  15964. -L | -R)
  15965. # Internal compiler library paths should come after those
  15966. # provided the user. The postdeps already come after the
  15967. # user supplied libs so there is no need to process them.
  15968. if test -z "$compiler_lib_search_path_CXX"; then
  15969. compiler_lib_search_path_CXX=$prev$p
  15970. else
  15971. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
  15972. fi
  15973. ;;
  15974. # The "-l" case would never come before the object being
  15975. # linked, so don't bother handling this case.
  15976. esac
  15977. else
  15978. if test -z "$postdeps_CXX"; then
  15979. postdeps_CXX=$prev$p
  15980. else
  15981. postdeps_CXX="${postdeps_CXX} $prev$p"
  15982. fi
  15983. fi
  15984. prev=
  15985. ;;
  15986. *.lto.$objext) ;; # Ignore GCC LTO objects
  15987. *.$objext)
  15988. # This assumes that the test object file only shows up
  15989. # once in the compiler output.
  15990. if test "$p" = "conftest.$objext"; then
  15991. pre_test_object_deps_done=yes
  15992. continue
  15993. fi
  15994. if test no = "$pre_test_object_deps_done"; then
  15995. if test -z "$predep_objects_CXX"; then
  15996. predep_objects_CXX=$p
  15997. else
  15998. predep_objects_CXX="$predep_objects_CXX $p"
  15999. fi
  16000. else
  16001. if test -z "$postdep_objects_CXX"; then
  16002. postdep_objects_CXX=$p
  16003. else
  16004. postdep_objects_CXX="$postdep_objects_CXX $p"
  16005. fi
  16006. fi
  16007. ;;
  16008. *) ;; # Ignore the rest.
  16009. esac
  16010. done
  16011. # Clean up.
  16012. rm -f a.out a.exe
  16013. else
  16014. echo "libtool.m4: error: problem compiling CXX test program"
  16015. fi
  16016. $RM -f confest.$objext
  16017. CFLAGS=$_lt_libdeps_save_CFLAGS
  16018. # PORTME: override above test on systems where it is broken
  16019. case $host_os in
  16020. interix[3-9]*)
  16021. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  16022. # hack all around it, let's just trust "g++" to DTRT.
  16023. predep_objects_CXX=
  16024. postdep_objects_CXX=
  16025. postdeps_CXX=
  16026. ;;
  16027. esac
  16028. case " $postdeps_CXX " in
  16029. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  16030. esac
  16031. compiler_lib_search_dirs_CXX=
  16032. if test -n "${compiler_lib_search_path_CXX}"; then
  16033. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
  16034. fi
  16035. lt_prog_compiler_wl_CXX=
  16036. lt_prog_compiler_pic_CXX=
  16037. lt_prog_compiler_static_CXX=
  16038. # C++ specific cases for pic, static, wl, etc.
  16039. if test yes = "$GXX"; then
  16040. lt_prog_compiler_wl_CXX='-Wl,'
  16041. lt_prog_compiler_static_CXX='-static'
  16042. case $host_os in
  16043. aix*)
  16044. # All AIX code is PIC.
  16045. if test ia64 = "$host_cpu"; then
  16046. # AIX 5 now supports IA64 processor
  16047. lt_prog_compiler_static_CXX='-Bstatic'
  16048. fi
  16049. lt_prog_compiler_pic_CXX='-fPIC'
  16050. ;;
  16051. amigaos*)
  16052. case $host_cpu in
  16053. powerpc)
  16054. # see comment about AmigaOS4 .so support
  16055. lt_prog_compiler_pic_CXX='-fPIC'
  16056. ;;
  16057. m68k)
  16058. # FIXME: we need at least 68020 code to build shared libraries, but
  16059. # adding the '-m68020' flag to GCC prevents building anything better,
  16060. # like '-m68040'.
  16061. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  16062. ;;
  16063. esac
  16064. ;;
  16065. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  16066. # PIC is the default for these OSes.
  16067. ;;
  16068. mingw* | cygwin* | os2* | pw32* | cegcc*)
  16069. # This hack is so that the source file can tell whether it is being
  16070. # built for inclusion in a dll (and should export symbols for example).
  16071. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  16072. # (--disable-auto-import) libraries
  16073. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  16074. case $host_os in
  16075. os2*)
  16076. lt_prog_compiler_static_CXX='$wl-static'
  16077. ;;
  16078. esac
  16079. ;;
  16080. darwin* | rhapsody*)
  16081. # PIC is the default on this platform
  16082. # Common symbols not allowed in MH_DYLIB files
  16083. lt_prog_compiler_pic_CXX='-fno-common'
  16084. ;;
  16085. *djgpp*)
  16086. # DJGPP does not support shared libraries at all
  16087. lt_prog_compiler_pic_CXX=
  16088. ;;
  16089. haiku*)
  16090. # PIC is the default for Haiku.
  16091. # The "-static" flag exists, but is broken.
  16092. lt_prog_compiler_static_CXX=
  16093. ;;
  16094. interix[3-9]*)
  16095. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  16096. # Instead, we relocate shared libraries at runtime.
  16097. ;;
  16098. sysv4*MP*)
  16099. if test -d /usr/nec; then
  16100. lt_prog_compiler_pic_CXX=-Kconform_pic
  16101. fi
  16102. ;;
  16103. hpux*)
  16104. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  16105. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  16106. # sets the default TLS model and affects inlining.
  16107. case $host_cpu in
  16108. hppa*64*)
  16109. ;;
  16110. *)
  16111. lt_prog_compiler_pic_CXX='-fPIC'
  16112. ;;
  16113. esac
  16114. ;;
  16115. *qnx* | *nto*)
  16116. # QNX uses GNU C++, but need to define -shared option too, otherwise
  16117. # it will coredump.
  16118. lt_prog_compiler_pic_CXX='-fPIC -shared'
  16119. ;;
  16120. *)
  16121. lt_prog_compiler_pic_CXX='-fPIC'
  16122. ;;
  16123. esac
  16124. else
  16125. case $host_os in
  16126. aix[4-9]*)
  16127. # All AIX code is PIC.
  16128. if test ia64 = "$host_cpu"; then
  16129. # AIX 5 now supports IA64 processor
  16130. lt_prog_compiler_static_CXX='-Bstatic'
  16131. else
  16132. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  16133. fi
  16134. ;;
  16135. chorus*)
  16136. case $cc_basename in
  16137. cxch68*)
  16138. # Green Hills C++ Compiler
  16139. # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
  16140. ;;
  16141. esac
  16142. ;;
  16143. mingw* | cygwin* | os2* | pw32* | cegcc*)
  16144. # This hack is so that the source file can tell whether it is being
  16145. # built for inclusion in a dll (and should export symbols for example).
  16146. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  16147. ;;
  16148. dgux*)
  16149. case $cc_basename in
  16150. ec++*)
  16151. lt_prog_compiler_pic_CXX='-KPIC'
  16152. ;;
  16153. ghcx*)
  16154. # Green Hills C++ Compiler
  16155. lt_prog_compiler_pic_CXX='-pic'
  16156. ;;
  16157. *)
  16158. ;;
  16159. esac
  16160. ;;
  16161. freebsd* | dragonfly*)
  16162. # FreeBSD uses GNU C++
  16163. ;;
  16164. hpux9* | hpux10* | hpux11*)
  16165. case $cc_basename in
  16166. CC*)
  16167. lt_prog_compiler_wl_CXX='-Wl,'
  16168. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  16169. if test ia64 != "$host_cpu"; then
  16170. lt_prog_compiler_pic_CXX='+Z'
  16171. fi
  16172. ;;
  16173. aCC*)
  16174. lt_prog_compiler_wl_CXX='-Wl,'
  16175. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  16176. case $host_cpu in
  16177. hppa*64*|ia64*)
  16178. # +Z the default
  16179. ;;
  16180. *)
  16181. lt_prog_compiler_pic_CXX='+Z'
  16182. ;;
  16183. esac
  16184. ;;
  16185. *)
  16186. ;;
  16187. esac
  16188. ;;
  16189. interix*)
  16190. # This is c89, which is MS Visual C++ (no shared libs)
  16191. # Anyone wants to do a port?
  16192. ;;
  16193. irix5* | irix6* | nonstopux*)
  16194. case $cc_basename in
  16195. CC*)
  16196. lt_prog_compiler_wl_CXX='-Wl,'
  16197. lt_prog_compiler_static_CXX='-non_shared'
  16198. # CC pic flag -KPIC is the default.
  16199. ;;
  16200. *)
  16201. ;;
  16202. esac
  16203. ;;
  16204. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  16205. case $cc_basename in
  16206. KCC*)
  16207. # KAI C++ Compiler
  16208. lt_prog_compiler_wl_CXX='--backend -Wl,'
  16209. lt_prog_compiler_pic_CXX='-fPIC'
  16210. ;;
  16211. ecpc* )
  16212. # old Intel C++ for x86_64, which still supported -KPIC.
  16213. lt_prog_compiler_wl_CXX='-Wl,'
  16214. lt_prog_compiler_pic_CXX='-KPIC'
  16215. lt_prog_compiler_static_CXX='-static'
  16216. ;;
  16217. icpc* )
  16218. # Intel C++, used to be incompatible with GCC.
  16219. # ICC 10 doesn't accept -KPIC any more.
  16220. lt_prog_compiler_wl_CXX='-Wl,'
  16221. lt_prog_compiler_pic_CXX='-fPIC'
  16222. lt_prog_compiler_static_CXX='-static'
  16223. ;;
  16224. pgCC* | pgcpp*)
  16225. # Portland Group C++ compiler
  16226. lt_prog_compiler_wl_CXX='-Wl,'
  16227. lt_prog_compiler_pic_CXX='-fpic'
  16228. lt_prog_compiler_static_CXX='-Bstatic'
  16229. ;;
  16230. cxx*)
  16231. # Compaq C++
  16232. # Make sure the PIC flag is empty. It appears that all Alpha
  16233. # Linux and Compaq Tru64 Unix objects are PIC.
  16234. lt_prog_compiler_pic_CXX=
  16235. lt_prog_compiler_static_CXX='-non_shared'
  16236. ;;
  16237. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  16238. # IBM XL 8.0, 9.0 on PPC and BlueGene
  16239. lt_prog_compiler_wl_CXX='-Wl,'
  16240. lt_prog_compiler_pic_CXX='-qpic'
  16241. lt_prog_compiler_static_CXX='-qstaticlink'
  16242. ;;
  16243. *)
  16244. case `$CC -V 2>&1 | sed 5q` in
  16245. *Sun\ C*)
  16246. # Sun C++ 5.9
  16247. lt_prog_compiler_pic_CXX='-KPIC'
  16248. lt_prog_compiler_static_CXX='-Bstatic'
  16249. lt_prog_compiler_wl_CXX='-Qoption ld '
  16250. ;;
  16251. esac
  16252. ;;
  16253. esac
  16254. ;;
  16255. lynxos*)
  16256. ;;
  16257. m88k*)
  16258. ;;
  16259. mvs*)
  16260. case $cc_basename in
  16261. cxx*)
  16262. lt_prog_compiler_pic_CXX='-W c,exportall'
  16263. ;;
  16264. *)
  16265. ;;
  16266. esac
  16267. ;;
  16268. netbsd* | netbsdelf*-gnu)
  16269. ;;
  16270. *qnx* | *nto*)
  16271. # QNX uses GNU C++, but need to define -shared option too, otherwise
  16272. # it will coredump.
  16273. lt_prog_compiler_pic_CXX='-fPIC -shared'
  16274. ;;
  16275. osf3* | osf4* | osf5*)
  16276. case $cc_basename in
  16277. KCC*)
  16278. lt_prog_compiler_wl_CXX='--backend -Wl,'
  16279. ;;
  16280. RCC*)
  16281. # Rational C++ 2.4.1
  16282. lt_prog_compiler_pic_CXX='-pic'
  16283. ;;
  16284. cxx*)
  16285. # Digital/Compaq C++
  16286. lt_prog_compiler_wl_CXX='-Wl,'
  16287. # Make sure the PIC flag is empty. It appears that all Alpha
  16288. # Linux and Compaq Tru64 Unix objects are PIC.
  16289. lt_prog_compiler_pic_CXX=
  16290. lt_prog_compiler_static_CXX='-non_shared'
  16291. ;;
  16292. *)
  16293. ;;
  16294. esac
  16295. ;;
  16296. psos*)
  16297. ;;
  16298. solaris*)
  16299. case $cc_basename in
  16300. CC* | sunCC*)
  16301. # Sun C++ 4.2, 5.x and Centerline C++
  16302. lt_prog_compiler_pic_CXX='-KPIC'
  16303. lt_prog_compiler_static_CXX='-Bstatic'
  16304. lt_prog_compiler_wl_CXX='-Qoption ld '
  16305. ;;
  16306. gcx*)
  16307. # Green Hills C++ Compiler
  16308. lt_prog_compiler_pic_CXX='-PIC'
  16309. ;;
  16310. *)
  16311. ;;
  16312. esac
  16313. ;;
  16314. sunos4*)
  16315. case $cc_basename in
  16316. CC*)
  16317. # Sun C++ 4.x
  16318. lt_prog_compiler_pic_CXX='-pic'
  16319. lt_prog_compiler_static_CXX='-Bstatic'
  16320. ;;
  16321. lcc*)
  16322. # Lucid
  16323. lt_prog_compiler_pic_CXX='-pic'
  16324. ;;
  16325. *)
  16326. ;;
  16327. esac
  16328. ;;
  16329. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  16330. case $cc_basename in
  16331. CC*)
  16332. lt_prog_compiler_wl_CXX='-Wl,'
  16333. lt_prog_compiler_pic_CXX='-KPIC'
  16334. lt_prog_compiler_static_CXX='-Bstatic'
  16335. ;;
  16336. esac
  16337. ;;
  16338. tandem*)
  16339. case $cc_basename in
  16340. NCC*)
  16341. # NonStop-UX NCC 3.20
  16342. lt_prog_compiler_pic_CXX='-KPIC'
  16343. ;;
  16344. *)
  16345. ;;
  16346. esac
  16347. ;;
  16348. vxworks*)
  16349. ;;
  16350. *)
  16351. lt_prog_compiler_can_build_shared_CXX=no
  16352. ;;
  16353. esac
  16354. fi
  16355. case $host_os in
  16356. # For platforms that do not support PIC, -DPIC is meaningless:
  16357. *djgpp*)
  16358. lt_prog_compiler_pic_CXX=
  16359. ;;
  16360. *)
  16361. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  16362. ;;
  16363. esac
  16364. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  16365. printf %s "checking for $compiler option to produce PIC... " >&6; }
  16366. if test ${lt_cv_prog_compiler_pic_CXX+y}
  16367. then :
  16368. printf %s "(cached) " >&6
  16369. else $as_nop
  16370. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  16371. fi
  16372. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  16373. printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
  16374. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  16375. #
  16376. # Check to make sure the PIC flag actually works.
  16377. #
  16378. if test -n "$lt_prog_compiler_pic_CXX"; then
  16379. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  16380. printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  16381. if test ${lt_cv_prog_compiler_pic_works_CXX+y}
  16382. then :
  16383. printf %s "(cached) " >&6
  16384. else $as_nop
  16385. lt_cv_prog_compiler_pic_works_CXX=no
  16386. ac_outfile=conftest.$ac_objext
  16387. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  16388. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
  16389. # Insert the option either (1) after the last *FLAGS variable, or
  16390. # (2) before a word containing "conftest.", or (3) at the end.
  16391. # Note that $ac_compile itself does not contain backslashes and begins
  16392. # with a dollar sign (not a hyphen), so the echo should work correctly.
  16393. # The option is referenced via a variable to avoid confusing sed.
  16394. lt_compile=`echo "$ac_compile" | $SED \
  16395. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  16396. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  16397. -e 's:$: $lt_compiler_flag:'`
  16398. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  16399. (eval "$lt_compile" 2>conftest.err)
  16400. ac_status=$?
  16401. cat conftest.err >&5
  16402. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16403. if (exit $ac_status) && test -s "$ac_outfile"; then
  16404. # The compiler can only warn and ignore the option if not recognized
  16405. # So say no if there are warnings other than the usual output.
  16406. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  16407. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  16408. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  16409. lt_cv_prog_compiler_pic_works_CXX=yes
  16410. fi
  16411. fi
  16412. $RM conftest*
  16413. fi
  16414. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  16415. printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  16416. if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
  16417. case $lt_prog_compiler_pic_CXX in
  16418. "" | " "*) ;;
  16419. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  16420. esac
  16421. else
  16422. lt_prog_compiler_pic_CXX=
  16423. lt_prog_compiler_can_build_shared_CXX=no
  16424. fi
  16425. fi
  16426. #
  16427. # Check to make sure the static flag actually works.
  16428. #
  16429. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  16430. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  16431. printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  16432. if test ${lt_cv_prog_compiler_static_works_CXX+y}
  16433. then :
  16434. printf %s "(cached) " >&6
  16435. else $as_nop
  16436. lt_cv_prog_compiler_static_works_CXX=no
  16437. save_LDFLAGS=$LDFLAGS
  16438. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  16439. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  16440. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  16441. # The linker can only warn and ignore the option if not recognized
  16442. # So say no if there are warnings
  16443. if test -s conftest.err; then
  16444. # Append any errors to the config.log.
  16445. cat conftest.err 1>&5
  16446. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  16447. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  16448. if diff conftest.exp conftest.er2 >/dev/null; then
  16449. lt_cv_prog_compiler_static_works_CXX=yes
  16450. fi
  16451. else
  16452. lt_cv_prog_compiler_static_works_CXX=yes
  16453. fi
  16454. fi
  16455. $RM -r conftest*
  16456. LDFLAGS=$save_LDFLAGS
  16457. fi
  16458. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  16459. printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  16460. if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
  16461. :
  16462. else
  16463. lt_prog_compiler_static_CXX=
  16464. fi
  16465. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  16466. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  16467. if test ${lt_cv_prog_compiler_c_o_CXX+y}
  16468. then :
  16469. printf %s "(cached) " >&6
  16470. else $as_nop
  16471. lt_cv_prog_compiler_c_o_CXX=no
  16472. $RM -r conftest 2>/dev/null
  16473. mkdir conftest
  16474. cd conftest
  16475. mkdir out
  16476. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  16477. lt_compiler_flag="-o out/conftest2.$ac_objext"
  16478. # Insert the option either (1) after the last *FLAGS variable, or
  16479. # (2) before a word containing "conftest.", or (3) at the end.
  16480. # Note that $ac_compile itself does not contain backslashes and begins
  16481. # with a dollar sign (not a hyphen), so the echo should work correctly.
  16482. lt_compile=`echo "$ac_compile" | $SED \
  16483. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  16484. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  16485. -e 's:$: $lt_compiler_flag:'`
  16486. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  16487. (eval "$lt_compile" 2>out/conftest.err)
  16488. ac_status=$?
  16489. cat out/conftest.err >&5
  16490. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16491. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  16492. then
  16493. # The compiler can only warn and ignore the option if not recognized
  16494. # So say no if there are warnings
  16495. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  16496. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  16497. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  16498. lt_cv_prog_compiler_c_o_CXX=yes
  16499. fi
  16500. fi
  16501. chmod u+w . 2>&5
  16502. $RM conftest*
  16503. # SGI C++ compiler will create directory out/ii_files/ for
  16504. # template instantiation
  16505. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  16506. $RM out/* && rmdir out
  16507. cd ..
  16508. $RM -r conftest
  16509. $RM conftest*
  16510. fi
  16511. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  16512. printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  16513. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  16514. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  16515. if test ${lt_cv_prog_compiler_c_o_CXX+y}
  16516. then :
  16517. printf %s "(cached) " >&6
  16518. else $as_nop
  16519. lt_cv_prog_compiler_c_o_CXX=no
  16520. $RM -r conftest 2>/dev/null
  16521. mkdir conftest
  16522. cd conftest
  16523. mkdir out
  16524. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  16525. lt_compiler_flag="-o out/conftest2.$ac_objext"
  16526. # Insert the option either (1) after the last *FLAGS variable, or
  16527. # (2) before a word containing "conftest.", or (3) at the end.
  16528. # Note that $ac_compile itself does not contain backslashes and begins
  16529. # with a dollar sign (not a hyphen), so the echo should work correctly.
  16530. lt_compile=`echo "$ac_compile" | $SED \
  16531. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  16532. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  16533. -e 's:$: $lt_compiler_flag:'`
  16534. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  16535. (eval "$lt_compile" 2>out/conftest.err)
  16536. ac_status=$?
  16537. cat out/conftest.err >&5
  16538. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16539. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  16540. then
  16541. # The compiler can only warn and ignore the option if not recognized
  16542. # So say no if there are warnings
  16543. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  16544. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  16545. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  16546. lt_cv_prog_compiler_c_o_CXX=yes
  16547. fi
  16548. fi
  16549. chmod u+w . 2>&5
  16550. $RM conftest*
  16551. # SGI C++ compiler will create directory out/ii_files/ for
  16552. # template instantiation
  16553. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  16554. $RM out/* && rmdir out
  16555. cd ..
  16556. $RM -r conftest
  16557. $RM conftest*
  16558. fi
  16559. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  16560. printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  16561. hard_links=nottested
  16562. if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
  16563. # do not overwrite the value of need_locks provided by the user
  16564. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  16565. printf %s "checking if we can lock with hard links... " >&6; }
  16566. hard_links=yes
  16567. $RM conftest*
  16568. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  16569. touch conftest.a
  16570. ln conftest.a conftest.b 2>&5 || hard_links=no
  16571. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  16572. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  16573. printf "%s\n" "$hard_links" >&6; }
  16574. if test no = "$hard_links"; then
  16575. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  16576. printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  16577. need_locks=warn
  16578. fi
  16579. else
  16580. need_locks=no
  16581. fi
  16582. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  16583. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  16584. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  16585. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  16586. case $host_os in
  16587. aix[4-9]*)
  16588. # If we're using GNU nm, then we don't want the "-C" option.
  16589. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  16590. # Without the "-l" option, or with the "-B" option, AIX nm treats
  16591. # weak defined symbols like other global defined symbols, whereas
  16592. # GNU nm marks them as "W".
  16593. # While the 'weak' keyword is ignored in the Export File, we need
  16594. # it in the Import File for the 'aix-soname' feature, so we have
  16595. # to replace the "-B" option with "-P" for AIX nm.
  16596. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  16597. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
  16598. else
  16599. export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
  16600. fi
  16601. ;;
  16602. pw32*)
  16603. export_symbols_cmds_CXX=$ltdll_cmds
  16604. ;;
  16605. cygwin* | mingw* | cegcc*)
  16606. case $cc_basename in
  16607. cl*)
  16608. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  16609. ;;
  16610. *)
  16611. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  16612. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  16613. ;;
  16614. esac
  16615. ;;
  16616. linux* | k*bsd*-gnu | gnu*)
  16617. link_all_deplibs_CXX=no
  16618. ;;
  16619. *)
  16620. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  16621. ;;
  16622. esac
  16623. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  16624. printf "%s\n" "$ld_shlibs_CXX" >&6; }
  16625. test no = "$ld_shlibs_CXX" && can_build_shared=no
  16626. with_gnu_ld_CXX=$with_gnu_ld
  16627. #
  16628. # Do we need to explicitly link libc?
  16629. #
  16630. case "x$archive_cmds_need_lc_CXX" in
  16631. x|xyes)
  16632. # Assume -lc should be added
  16633. archive_cmds_need_lc_CXX=yes
  16634. if test yes,yes = "$GCC,$enable_shared"; then
  16635. case $archive_cmds_CXX in
  16636. *'~'*)
  16637. # FIXME: we may have to deal with multi-command sequences.
  16638. ;;
  16639. '$CC '*)
  16640. # Test whether the compiler implicitly links with -lc since on some
  16641. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  16642. # to ld, don't add -lc before -lgcc.
  16643. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  16644. printf %s "checking whether -lc should be explicitly linked in... " >&6; }
  16645. if test ${lt_cv_archive_cmds_need_lc_CXX+y}
  16646. then :
  16647. printf %s "(cached) " >&6
  16648. else $as_nop
  16649. $RM conftest*
  16650. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  16651. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  16652. (eval $ac_compile) 2>&5
  16653. ac_status=$?
  16654. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16655. test $ac_status = 0; } 2>conftest.err; then
  16656. soname=conftest
  16657. lib=conftest
  16658. libobjs=conftest.$ac_objext
  16659. deplibs=
  16660. wl=$lt_prog_compiler_wl_CXX
  16661. pic_flag=$lt_prog_compiler_pic_CXX
  16662. compiler_flags=-v
  16663. linker_flags=-v
  16664. verstring=
  16665. output_objdir=.
  16666. libname=conftest
  16667. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  16668. allow_undefined_flag_CXX=
  16669. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  16670. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  16671. ac_status=$?
  16672. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16673. test $ac_status = 0; }
  16674. then
  16675. lt_cv_archive_cmds_need_lc_CXX=no
  16676. else
  16677. lt_cv_archive_cmds_need_lc_CXX=yes
  16678. fi
  16679. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  16680. else
  16681. cat conftest.err 1>&5
  16682. fi
  16683. $RM conftest*
  16684. fi
  16685. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  16686. printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  16687. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  16688. ;;
  16689. esac
  16690. fi
  16691. ;;
  16692. esac
  16693. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  16694. printf %s "checking dynamic linker characteristics... " >&6; }
  16695. library_names_spec=
  16696. libname_spec='lib$name'
  16697. soname_spec=
  16698. shrext_cmds=.so
  16699. postinstall_cmds=
  16700. postuninstall_cmds=
  16701. finish_cmds=
  16702. finish_eval=
  16703. shlibpath_var=
  16704. shlibpath_overrides_runpath=unknown
  16705. version_type=none
  16706. dynamic_linker="$host_os ld.so"
  16707. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  16708. need_lib_prefix=unknown
  16709. hardcode_into_libs=no
  16710. # when you set need_version to no, make sure it does not cause -set_version
  16711. # flags to be left without arguments
  16712. need_version=unknown
  16713. case $host_os in
  16714. aix3*)
  16715. version_type=linux # correct to gnu/linux during the next big refactor
  16716. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  16717. shlibpath_var=LIBPATH
  16718. # AIX 3 has no versioning support, so we append a major version to the name.
  16719. soname_spec='$libname$release$shared_ext$major'
  16720. ;;
  16721. aix[4-9]*)
  16722. version_type=linux # correct to gnu/linux during the next big refactor
  16723. need_lib_prefix=no
  16724. need_version=no
  16725. hardcode_into_libs=yes
  16726. if test ia64 = "$host_cpu"; then
  16727. # AIX 5 supports IA64
  16728. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  16729. shlibpath_var=LD_LIBRARY_PATH
  16730. else
  16731. # With GCC up to 2.95.x, collect2 would create an import file
  16732. # for dependence libraries. The import file would start with
  16733. # the line '#! .'. This would cause the generated library to
  16734. # depend on '.', always an invalid library. This was fixed in
  16735. # development snapshots of GCC prior to 3.0.
  16736. case $host_os in
  16737. aix4 | aix4.[01] | aix4.[01].*)
  16738. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  16739. echo ' yes '
  16740. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  16741. :
  16742. else
  16743. can_build_shared=no
  16744. fi
  16745. ;;
  16746. esac
  16747. # Using Import Files as archive members, it is possible to support
  16748. # filename-based versioning of shared library archives on AIX. While
  16749. # this would work for both with and without runtime linking, it will
  16750. # prevent static linking of such archives. So we do filename-based
  16751. # shared library versioning with .so extension only, which is used
  16752. # when both runtime linking and shared linking is enabled.
  16753. # Unfortunately, runtime linking may impact performance, so we do
  16754. # not want this to be the default eventually. Also, we use the
  16755. # versioned .so libs for executables only if there is the -brtl
  16756. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  16757. # To allow for filename-based versioning support, we need to create
  16758. # libNAME.so.V as an archive file, containing:
  16759. # *) an Import File, referring to the versioned filename of the
  16760. # archive as well as the shared archive member, telling the
  16761. # bitwidth (32 or 64) of that shared object, and providing the
  16762. # list of exported symbols of that shared object, eventually
  16763. # decorated with the 'weak' keyword
  16764. # *) the shared object with the F_LOADONLY flag set, to really avoid
  16765. # it being seen by the linker.
  16766. # At run time we better use the real file rather than another symlink,
  16767. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  16768. case $with_aix_soname,$aix_use_runtimelinking in
  16769. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  16770. # soname into executable. Probably we can add versioning support to
  16771. # collect2, so additional links can be useful in future.
  16772. aix,yes) # traditional libtool
  16773. dynamic_linker='AIX unversionable lib.so'
  16774. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  16775. # instead of lib<name>.a to let people know that these are not
  16776. # typical AIX shared libraries.
  16777. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  16778. ;;
  16779. aix,no) # traditional AIX only
  16780. dynamic_linker='AIX lib.a(lib.so.V)'
  16781. # We preserve .a as extension for shared libraries through AIX4.2
  16782. # and later when we are not doing run time linking.
  16783. library_names_spec='$libname$release.a $libname.a'
  16784. soname_spec='$libname$release$shared_ext$major'
  16785. ;;
  16786. svr4,*) # full svr4 only
  16787. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  16788. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  16789. # We do not specify a path in Import Files, so LIBPATH fires.
  16790. shlibpath_overrides_runpath=yes
  16791. ;;
  16792. *,yes) # both, prefer svr4
  16793. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  16794. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  16795. # unpreferred sharedlib libNAME.a needs extra handling
  16796. postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
  16797. postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
  16798. # We do not specify a path in Import Files, so LIBPATH fires.
  16799. shlibpath_overrides_runpath=yes
  16800. ;;
  16801. *,no) # both, prefer aix
  16802. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  16803. library_names_spec='$libname$release.a $libname.a'
  16804. soname_spec='$libname$release$shared_ext$major'
  16805. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  16806. postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
  16807. postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
  16808. ;;
  16809. esac
  16810. shlibpath_var=LIBPATH
  16811. fi
  16812. ;;
  16813. amigaos*)
  16814. case $host_cpu in
  16815. powerpc)
  16816. # Since July 2007 AmigaOS4 officially supports .so libraries.
  16817. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  16818. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  16819. ;;
  16820. m68k)
  16821. library_names_spec='$libname.ixlibrary $libname.a'
  16822. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  16823. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  16824. ;;
  16825. esac
  16826. ;;
  16827. beos*)
  16828. library_names_spec='$libname$shared_ext'
  16829. dynamic_linker="$host_os ld.so"
  16830. shlibpath_var=LIBRARY_PATH
  16831. ;;
  16832. bsdi[45]*)
  16833. version_type=linux # correct to gnu/linux during the next big refactor
  16834. need_version=no
  16835. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  16836. soname_spec='$libname$release$shared_ext$major'
  16837. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  16838. shlibpath_var=LD_LIBRARY_PATH
  16839. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  16840. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  16841. # the default ld.so.conf also contains /usr/contrib/lib and
  16842. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  16843. # libtool to hard-code these into programs
  16844. ;;
  16845. cygwin* | mingw* | pw32* | cegcc*)
  16846. version_type=windows
  16847. shrext_cmds=.dll
  16848. need_version=no
  16849. need_lib_prefix=no
  16850. case $GCC,$cc_basename in
  16851. yes,*)
  16852. # gcc
  16853. library_names_spec='$libname.dll.a'
  16854. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  16855. postinstall_cmds='base_file=`basename \$file`~
  16856. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  16857. dldir=$destdir/`dirname \$dlpath`~
  16858. test -d \$dldir || mkdir -p \$dldir~
  16859. $install_prog $dir/$dlname \$dldir/$dlname~
  16860. chmod a+x \$dldir/$dlname~
  16861. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  16862. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  16863. fi'
  16864. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  16865. dlpath=$dir/\$dldll~
  16866. $RM \$dlpath'
  16867. shlibpath_overrides_runpath=yes
  16868. case $host_os in
  16869. cygwin*)
  16870. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  16871. soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  16872. ;;
  16873. mingw* | cegcc*)
  16874. # MinGW DLLs use traditional 'lib' prefix
  16875. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  16876. ;;
  16877. pw32*)
  16878. # pw32 DLLs use 'pw' prefix rather than 'lib'
  16879. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  16880. ;;
  16881. esac
  16882. dynamic_linker='Win32 ld.exe'
  16883. ;;
  16884. *,cl*)
  16885. # Native MSVC
  16886. libname_spec='$name'
  16887. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  16888. library_names_spec='$libname.dll.lib'
  16889. case $build_os in
  16890. mingw*)
  16891. sys_lib_search_path_spec=
  16892. lt_save_ifs=$IFS
  16893. IFS=';'
  16894. for lt_path in $LIB
  16895. do
  16896. IFS=$lt_save_ifs
  16897. # Let DOS variable expansion print the short 8.3 style file name.
  16898. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  16899. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  16900. done
  16901. IFS=$lt_save_ifs
  16902. # Convert to MSYS style.
  16903. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  16904. ;;
  16905. cygwin*)
  16906. # Convert to unix form, then to dos form, then back to unix form
  16907. # but this time dos style (no spaces!) so that the unix form looks
  16908. # like /cygdrive/c/PROGRA~1:/cygdr...
  16909. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  16910. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  16911. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  16912. ;;
  16913. *)
  16914. sys_lib_search_path_spec=$LIB
  16915. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  16916. # It is most probably a Windows format PATH.
  16917. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  16918. else
  16919. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  16920. fi
  16921. # FIXME: find the short name or the path components, as spaces are
  16922. # common. (e.g. "Program Files" -> "PROGRA~1")
  16923. ;;
  16924. esac
  16925. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  16926. postinstall_cmds='base_file=`basename \$file`~
  16927. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  16928. dldir=$destdir/`dirname \$dlpath`~
  16929. test -d \$dldir || mkdir -p \$dldir~
  16930. $install_prog $dir/$dlname \$dldir/$dlname'
  16931. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  16932. dlpath=$dir/\$dldll~
  16933. $RM \$dlpath'
  16934. shlibpath_overrides_runpath=yes
  16935. dynamic_linker='Win32 link.exe'
  16936. ;;
  16937. *)
  16938. # Assume MSVC wrapper
  16939. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  16940. dynamic_linker='Win32 ld.exe'
  16941. ;;
  16942. esac
  16943. # FIXME: first we should search . and the directory the executable is in
  16944. shlibpath_var=PATH
  16945. ;;
  16946. darwin* | rhapsody*)
  16947. dynamic_linker="$host_os dyld"
  16948. version_type=darwin
  16949. need_lib_prefix=no
  16950. need_version=no
  16951. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  16952. soname_spec='$libname$release$major$shared_ext'
  16953. shlibpath_overrides_runpath=yes
  16954. shlibpath_var=DYLD_LIBRARY_PATH
  16955. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  16956. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  16957. ;;
  16958. dgux*)
  16959. version_type=linux # correct to gnu/linux during the next big refactor
  16960. need_lib_prefix=no
  16961. need_version=no
  16962. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  16963. soname_spec='$libname$release$shared_ext$major'
  16964. shlibpath_var=LD_LIBRARY_PATH
  16965. ;;
  16966. freebsd* | dragonfly*)
  16967. # DragonFly does not have aout. When/if they implement a new
  16968. # versioning mechanism, adjust this.
  16969. if test -x /usr/bin/objformat; then
  16970. objformat=`/usr/bin/objformat`
  16971. else
  16972. case $host_os in
  16973. freebsd[23].*) objformat=aout ;;
  16974. *) objformat=elf ;;
  16975. esac
  16976. fi
  16977. version_type=freebsd-$objformat
  16978. case $version_type in
  16979. freebsd-elf*)
  16980. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  16981. soname_spec='$libname$release$shared_ext$major'
  16982. need_version=no
  16983. need_lib_prefix=no
  16984. ;;
  16985. freebsd-*)
  16986. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  16987. need_version=yes
  16988. ;;
  16989. esac
  16990. shlibpath_var=LD_LIBRARY_PATH
  16991. case $host_os in
  16992. freebsd2.*)
  16993. shlibpath_overrides_runpath=yes
  16994. ;;
  16995. freebsd3.[01]* | freebsdelf3.[01]*)
  16996. shlibpath_overrides_runpath=yes
  16997. hardcode_into_libs=yes
  16998. ;;
  16999. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  17000. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  17001. shlibpath_overrides_runpath=no
  17002. hardcode_into_libs=yes
  17003. ;;
  17004. *) # from 4.6 on, and DragonFly
  17005. shlibpath_overrides_runpath=yes
  17006. hardcode_into_libs=yes
  17007. ;;
  17008. esac
  17009. ;;
  17010. haiku*)
  17011. version_type=linux # correct to gnu/linux during the next big refactor
  17012. need_lib_prefix=no
  17013. need_version=no
  17014. dynamic_linker="$host_os runtime_loader"
  17015. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  17016. soname_spec='$libname$release$shared_ext$major'
  17017. shlibpath_var=LIBRARY_PATH
  17018. shlibpath_overrides_runpath=no
  17019. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  17020. hardcode_into_libs=yes
  17021. ;;
  17022. hpux9* | hpux10* | hpux11*)
  17023. # Give a soname corresponding to the major version so that dld.sl refuses to
  17024. # link against other versions.
  17025. version_type=sunos
  17026. need_lib_prefix=no
  17027. need_version=no
  17028. case $host_cpu in
  17029. ia64*)
  17030. shrext_cmds='.so'
  17031. hardcode_into_libs=yes
  17032. dynamic_linker="$host_os dld.so"
  17033. shlibpath_var=LD_LIBRARY_PATH
  17034. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  17035. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  17036. soname_spec='$libname$release$shared_ext$major'
  17037. if test 32 = "$HPUX_IA64_MODE"; then
  17038. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  17039. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  17040. else
  17041. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  17042. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  17043. fi
  17044. ;;
  17045. hppa*64*)
  17046. shrext_cmds='.sl'
  17047. hardcode_into_libs=yes
  17048. dynamic_linker="$host_os dld.sl"
  17049. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  17050. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  17051. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  17052. soname_spec='$libname$release$shared_ext$major'
  17053. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  17054. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  17055. ;;
  17056. *)
  17057. shrext_cmds='.sl'
  17058. dynamic_linker="$host_os dld.sl"
  17059. shlibpath_var=SHLIB_PATH
  17060. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  17061. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  17062. soname_spec='$libname$release$shared_ext$major'
  17063. ;;
  17064. esac
  17065. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  17066. postinstall_cmds='chmod 555 $lib'
  17067. # or fails outright, so override atomically:
  17068. install_override_mode=555
  17069. ;;
  17070. interix[3-9]*)
  17071. version_type=linux # correct to gnu/linux during the next big refactor
  17072. need_lib_prefix=no
  17073. need_version=no
  17074. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  17075. soname_spec='$libname$release$shared_ext$major'
  17076. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  17077. shlibpath_var=LD_LIBRARY_PATH
  17078. shlibpath_overrides_runpath=no
  17079. hardcode_into_libs=yes
  17080. ;;
  17081. irix5* | irix6* | nonstopux*)
  17082. case $host_os in
  17083. nonstopux*) version_type=nonstopux ;;
  17084. *)
  17085. if test yes = "$lt_cv_prog_gnu_ld"; then
  17086. version_type=linux # correct to gnu/linux during the next big refactor
  17087. else
  17088. version_type=irix
  17089. fi ;;
  17090. esac
  17091. need_lib_prefix=no
  17092. need_version=no
  17093. soname_spec='$libname$release$shared_ext$major'
  17094. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  17095. case $host_os in
  17096. irix5* | nonstopux*)
  17097. libsuff= shlibsuff=
  17098. ;;
  17099. *)
  17100. case $LD in # libtool.m4 will add one of these switches to LD
  17101. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  17102. libsuff= shlibsuff= libmagic=32-bit;;
  17103. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  17104. libsuff=32 shlibsuff=N32 libmagic=N32;;
  17105. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  17106. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  17107. *) libsuff= shlibsuff= libmagic=never-match;;
  17108. esac
  17109. ;;
  17110. esac
  17111. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  17112. shlibpath_overrides_runpath=no
  17113. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  17114. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  17115. hardcode_into_libs=yes
  17116. ;;
  17117. # No shared lib support for Linux oldld, aout, or coff.
  17118. linux*oldld* | linux*aout* | linux*coff*)
  17119. dynamic_linker=no
  17120. ;;
  17121. linux*android*)
  17122. version_type=none # Android doesn't support versioned libraries.
  17123. need_lib_prefix=no
  17124. need_version=no
  17125. library_names_spec='$libname$release$shared_ext'
  17126. soname_spec='$libname$release$shared_ext'
  17127. finish_cmds=
  17128. shlibpath_var=LD_LIBRARY_PATH
  17129. shlibpath_overrides_runpath=yes
  17130. # This implies no fast_install, which is unacceptable.
  17131. # Some rework will be needed to allow for fast_install
  17132. # before this can be enabled.
  17133. hardcode_into_libs=yes
  17134. dynamic_linker='Android linker'
  17135. # Don't embed -rpath directories since the linker doesn't support them.
  17136. hardcode_libdir_flag_spec_CXX='-L$libdir'
  17137. ;;
  17138. # This must be glibc/ELF.
  17139. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  17140. version_type=linux # correct to gnu/linux during the next big refactor
  17141. need_lib_prefix=no
  17142. need_version=no
  17143. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  17144. soname_spec='$libname$release$shared_ext$major'
  17145. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  17146. shlibpath_var=LD_LIBRARY_PATH
  17147. shlibpath_overrides_runpath=no
  17148. # Some binutils ld are patched to set DT_RUNPATH
  17149. if test ${lt_cv_shlibpath_overrides_runpath+y}
  17150. then :
  17151. printf %s "(cached) " >&6
  17152. else $as_nop
  17153. lt_cv_shlibpath_overrides_runpath=no
  17154. save_LDFLAGS=$LDFLAGS
  17155. save_libdir=$libdir
  17156. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  17157. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  17158. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17159. /* end confdefs.h. */
  17160. int
  17161. main (void)
  17162. {
  17163. ;
  17164. return 0;
  17165. }
  17166. _ACEOF
  17167. if ac_fn_cxx_try_link "$LINENO"
  17168. then :
  17169. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
  17170. then :
  17171. lt_cv_shlibpath_overrides_runpath=yes
  17172. fi
  17173. fi
  17174. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17175. conftest$ac_exeext conftest.$ac_ext
  17176. LDFLAGS=$save_LDFLAGS
  17177. libdir=$save_libdir
  17178. fi
  17179. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  17180. # This implies no fast_install, which is unacceptable.
  17181. # Some rework will be needed to allow for fast_install
  17182. # before this can be enabled.
  17183. hardcode_into_libs=yes
  17184. # Ideally, we could use ldconfig to report *all* directores which are
  17185. # searched for libraries, however this is still not possible. Aside from not
  17186. # being certain /sbin/ldconfig is available, command
  17187. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  17188. # even though it is searched at run-time. Try to do the best guess by
  17189. # appending ld.so.conf contents (and includes) to the search path.
  17190. if test -f /etc/ld.so.conf; then
  17191. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  17192. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  17193. fi
  17194. # We used to test for /lib/ld.so.1 and disable shared libraries on
  17195. # powerpc, because MkLinux only supported shared libraries with the
  17196. # GNU dynamic linker. Since this was broken with cross compilers,
  17197. # most powerpc-linux boxes support dynamic linking these days and
  17198. # people can always --disable-shared, the test was removed, and we
  17199. # assume the GNU/Linux dynamic linker is in use.
  17200. dynamic_linker='GNU/Linux ld.so'
  17201. ;;
  17202. netbsdelf*-gnu)
  17203. version_type=linux
  17204. need_lib_prefix=no
  17205. need_version=no
  17206. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  17207. soname_spec='${libname}${release}${shared_ext}$major'
  17208. shlibpath_var=LD_LIBRARY_PATH
  17209. shlibpath_overrides_runpath=no
  17210. hardcode_into_libs=yes
  17211. dynamic_linker='NetBSD ld.elf_so'
  17212. ;;
  17213. netbsd*)
  17214. version_type=sunos
  17215. need_lib_prefix=no
  17216. need_version=no
  17217. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  17218. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  17219. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  17220. dynamic_linker='NetBSD (a.out) ld.so'
  17221. else
  17222. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  17223. soname_spec='$libname$release$shared_ext$major'
  17224. dynamic_linker='NetBSD ld.elf_so'
  17225. fi
  17226. shlibpath_var=LD_LIBRARY_PATH
  17227. shlibpath_overrides_runpath=yes
  17228. hardcode_into_libs=yes
  17229. ;;
  17230. newsos6)
  17231. version_type=linux # correct to gnu/linux during the next big refactor
  17232. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  17233. shlibpath_var=LD_LIBRARY_PATH
  17234. shlibpath_overrides_runpath=yes
  17235. ;;
  17236. *nto* | *qnx*)
  17237. version_type=qnx
  17238. need_lib_prefix=no
  17239. need_version=no
  17240. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  17241. soname_spec='$libname$release$shared_ext$major'
  17242. shlibpath_var=LD_LIBRARY_PATH
  17243. shlibpath_overrides_runpath=no
  17244. hardcode_into_libs=yes
  17245. dynamic_linker='ldqnx.so'
  17246. ;;
  17247. openbsd* | bitrig*)
  17248. version_type=sunos
  17249. sys_lib_dlsearch_path_spec=/usr/lib
  17250. need_lib_prefix=no
  17251. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  17252. need_version=no
  17253. else
  17254. need_version=yes
  17255. fi
  17256. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  17257. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  17258. shlibpath_var=LD_LIBRARY_PATH
  17259. shlibpath_overrides_runpath=yes
  17260. ;;
  17261. os2*)
  17262. libname_spec='$name'
  17263. version_type=windows
  17264. shrext_cmds=.dll
  17265. need_version=no
  17266. need_lib_prefix=no
  17267. # OS/2 can only load a DLL with a base name of 8 characters or less.
  17268. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  17269. v=$($ECHO $release$versuffix | tr -d .-);
  17270. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  17271. $ECHO $n$v`$shared_ext'
  17272. library_names_spec='${libname}_dll.$libext'
  17273. dynamic_linker='OS/2 ld.exe'
  17274. shlibpath_var=BEGINLIBPATH
  17275. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  17276. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  17277. postinstall_cmds='base_file=`basename \$file`~
  17278. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  17279. dldir=$destdir/`dirname \$dlpath`~
  17280. test -d \$dldir || mkdir -p \$dldir~
  17281. $install_prog $dir/$dlname \$dldir/$dlname~
  17282. chmod a+x \$dldir/$dlname~
  17283. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  17284. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  17285. fi'
  17286. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  17287. dlpath=$dir/\$dldll~
  17288. $RM \$dlpath'
  17289. ;;
  17290. osf3* | osf4* | osf5*)
  17291. version_type=osf
  17292. need_lib_prefix=no
  17293. need_version=no
  17294. soname_spec='$libname$release$shared_ext$major'
  17295. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  17296. shlibpath_var=LD_LIBRARY_PATH
  17297. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  17298. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  17299. ;;
  17300. rdos*)
  17301. dynamic_linker=no
  17302. ;;
  17303. solaris*)
  17304. version_type=linux # correct to gnu/linux during the next big refactor
  17305. need_lib_prefix=no
  17306. need_version=no
  17307. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  17308. soname_spec='$libname$release$shared_ext$major'
  17309. shlibpath_var=LD_LIBRARY_PATH
  17310. shlibpath_overrides_runpath=yes
  17311. hardcode_into_libs=yes
  17312. # ldd complains unless libraries are executable
  17313. postinstall_cmds='chmod +x $lib'
  17314. ;;
  17315. sunos4*)
  17316. version_type=sunos
  17317. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  17318. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  17319. shlibpath_var=LD_LIBRARY_PATH
  17320. shlibpath_overrides_runpath=yes
  17321. if test yes = "$with_gnu_ld"; then
  17322. need_lib_prefix=no
  17323. fi
  17324. need_version=yes
  17325. ;;
  17326. sysv4 | sysv4.3*)
  17327. version_type=linux # correct to gnu/linux during the next big refactor
  17328. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  17329. soname_spec='$libname$release$shared_ext$major'
  17330. shlibpath_var=LD_LIBRARY_PATH
  17331. case $host_vendor in
  17332. sni)
  17333. shlibpath_overrides_runpath=no
  17334. need_lib_prefix=no
  17335. runpath_var=LD_RUN_PATH
  17336. ;;
  17337. siemens)
  17338. need_lib_prefix=no
  17339. ;;
  17340. motorola)
  17341. need_lib_prefix=no
  17342. need_version=no
  17343. shlibpath_overrides_runpath=no
  17344. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  17345. ;;
  17346. esac
  17347. ;;
  17348. sysv4*MP*)
  17349. if test -d /usr/nec; then
  17350. version_type=linux # correct to gnu/linux during the next big refactor
  17351. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  17352. soname_spec='$libname$shared_ext.$major'
  17353. shlibpath_var=LD_LIBRARY_PATH
  17354. fi
  17355. ;;
  17356. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  17357. version_type=sco
  17358. need_lib_prefix=no
  17359. need_version=no
  17360. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  17361. soname_spec='$libname$release$shared_ext$major'
  17362. shlibpath_var=LD_LIBRARY_PATH
  17363. shlibpath_overrides_runpath=yes
  17364. hardcode_into_libs=yes
  17365. if test yes = "$with_gnu_ld"; then
  17366. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  17367. else
  17368. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  17369. case $host_os in
  17370. sco3.2v5*)
  17371. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  17372. ;;
  17373. esac
  17374. fi
  17375. sys_lib_dlsearch_path_spec='/usr/lib'
  17376. ;;
  17377. tpf*)
  17378. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  17379. version_type=linux # correct to gnu/linux during the next big refactor
  17380. need_lib_prefix=no
  17381. need_version=no
  17382. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  17383. shlibpath_var=LD_LIBRARY_PATH
  17384. shlibpath_overrides_runpath=no
  17385. hardcode_into_libs=yes
  17386. ;;
  17387. uts4*)
  17388. version_type=linux # correct to gnu/linux during the next big refactor
  17389. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  17390. soname_spec='$libname$release$shared_ext$major'
  17391. shlibpath_var=LD_LIBRARY_PATH
  17392. ;;
  17393. *)
  17394. dynamic_linker=no
  17395. ;;
  17396. esac
  17397. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  17398. printf "%s\n" "$dynamic_linker" >&6; }
  17399. test no = "$dynamic_linker" && can_build_shared=no
  17400. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  17401. if test yes = "$GCC"; then
  17402. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  17403. fi
  17404. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  17405. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  17406. fi
  17407. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  17408. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  17409. fi
  17410. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  17411. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  17412. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  17413. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  17414. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  17415. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  17416. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  17417. printf %s "checking how to hardcode library paths into programs... " >&6; }
  17418. hardcode_action_CXX=
  17419. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  17420. test -n "$runpath_var_CXX" ||
  17421. test yes = "$hardcode_automatic_CXX"; then
  17422. # We can hardcode non-existent directories.
  17423. if test no != "$hardcode_direct_CXX" &&
  17424. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  17425. # have to relink, otherwise we might link with an installed library
  17426. # when we should be linking with a yet-to-be-installed one
  17427. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
  17428. test no != "$hardcode_minus_L_CXX"; then
  17429. # Linking always hardcodes the temporary library directory.
  17430. hardcode_action_CXX=relink
  17431. else
  17432. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  17433. hardcode_action_CXX=immediate
  17434. fi
  17435. else
  17436. # We cannot hardcode anything, or else we can only hardcode existing
  17437. # directories.
  17438. hardcode_action_CXX=unsupported
  17439. fi
  17440. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  17441. printf "%s\n" "$hardcode_action_CXX" >&6; }
  17442. if test relink = "$hardcode_action_CXX" ||
  17443. test yes = "$inherit_rpath_CXX"; then
  17444. # Fast installation is not supported
  17445. enable_fast_install=no
  17446. elif test yes = "$shlibpath_overrides_runpath" ||
  17447. test no = "$enable_shared"; then
  17448. # Fast installation is not necessary
  17449. enable_fast_install=needless
  17450. fi
  17451. fi # test -n "$compiler"
  17452. CC=$lt_save_CC
  17453. CFLAGS=$lt_save_CFLAGS
  17454. LDCXX=$LD
  17455. LD=$lt_save_LD
  17456. GCC=$lt_save_GCC
  17457. with_gnu_ld=$lt_save_with_gnu_ld
  17458. lt_cv_path_LDCXX=$lt_cv_path_LD
  17459. lt_cv_path_LD=$lt_save_path_LD
  17460. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  17461. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  17462. fi # test yes != "$_lt_caught_CXX_error"
  17463. ac_ext=c
  17464. ac_cpp='$CPP $CPPFLAGS'
  17465. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17466. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17467. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17468. ac_config_commands="$ac_config_commands libtool"
  17469. # Only expand once:
  17470. ## --------------------- ##
  17471. ## End of libtool code ##
  17472. ## --------------------- ##
  17473. #
  17474. # Verify if finally libtool shared libraries will be built
  17475. #
  17476. case "x$enable_shared" in # ((
  17477. xyes | xno)
  17478. xc_lt_build_shared=$enable_shared
  17479. ;;
  17480. *)
  17481. as_fn_error $? "unexpected libtool enable_shared value: $enable_shared" "$LINENO" 5
  17482. ;;
  17483. esac
  17484. #
  17485. # Verify if finally libtool static libraries will be built
  17486. #
  17487. case "x$enable_static" in # ((
  17488. xyes | xno)
  17489. xc_lt_build_static=$enable_static
  17490. ;;
  17491. *)
  17492. as_fn_error $? "unexpected libtool enable_static value: $enable_static" "$LINENO" 5
  17493. ;;
  17494. esac
  17495. #
  17496. # Verify if libtool shared libraries should be linked using flag -version-info
  17497. #
  17498. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -version-info" >&5
  17499. printf %s "checking whether to build shared libraries with -version-info... " >&6; }
  17500. xc_lt_shlib_use_version_info='yes'
  17501. if test "x$version_type" = 'xnone'; then
  17502. xc_lt_shlib_use_version_info='no'
  17503. fi
  17504. case $host_os in # (
  17505. amigaos*)
  17506. xc_lt_shlib_use_version_info='yes'
  17507. ;;
  17508. esac
  17509. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_version_info" >&5
  17510. printf "%s\n" "$xc_lt_shlib_use_version_info" >&6; }
  17511. #
  17512. # Verify if libtool shared libraries should be linked using flag -no-undefined
  17513. #
  17514. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -no-undefined" >&5
  17515. printf %s "checking whether to build shared libraries with -no-undefined... " >&6; }
  17516. xc_lt_shlib_use_no_undefined='no'
  17517. if test "x$allow_undefined" = 'xno'; then
  17518. xc_lt_shlib_use_no_undefined='yes'
  17519. elif test "x$allow_undefined_flag" = 'xunsupported'; then
  17520. xc_lt_shlib_use_no_undefined='yes'
  17521. fi
  17522. case $host_os in # (
  17523. cygwin* | mingw* | pw32* | cegcc* | os2* | aix*)
  17524. xc_lt_shlib_use_no_undefined='yes'
  17525. ;;
  17526. esac
  17527. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_no_undefined" >&5
  17528. printf "%s\n" "$xc_lt_shlib_use_no_undefined" >&6; }
  17529. #
  17530. # Verify if libtool shared libraries should be linked using flag -mimpure-text
  17531. #
  17532. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -mimpure-text" >&5
  17533. printf %s "checking whether to build shared libraries with -mimpure-text... " >&6; }
  17534. xc_lt_shlib_use_mimpure_text='no'
  17535. case $host_os in # (
  17536. solaris2*)
  17537. if test "x$GCC" = 'xyes'; then
  17538. xc_lt_shlib_use_mimpure_text='yes'
  17539. fi
  17540. ;;
  17541. esac
  17542. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_mimpure_text" >&5
  17543. printf "%s\n" "$xc_lt_shlib_use_mimpure_text" >&6; }
  17544. #
  17545. # Find out wether libtool libraries would be built wit PIC
  17546. #
  17547. case "x$pic_mode" in # ((((
  17548. xdefault)
  17549. xc_lt_build_shared_with_pic='yes'
  17550. xc_lt_build_static_with_pic='no'
  17551. ;;
  17552. xyes)
  17553. xc_lt_build_shared_with_pic='yes'
  17554. xc_lt_build_static_with_pic='yes'
  17555. ;;
  17556. xno)
  17557. xc_lt_build_shared_with_pic='no'
  17558. xc_lt_build_static_with_pic='no'
  17559. ;;
  17560. *)
  17561. xc_lt_build_shared_with_pic='unknown'
  17562. xc_lt_build_static_with_pic='unknown'
  17563. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unexpected libtool pic_mode value: $pic_mode" >&5
  17564. printf "%s\n" "$as_me: WARNING: unexpected libtool pic_mode value: $pic_mode" >&2;}
  17565. ;;
  17566. esac
  17567. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with PIC" >&5
  17568. printf %s "checking whether to build shared libraries with PIC... " >&6; }
  17569. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_with_pic" >&5
  17570. printf "%s\n" "$xc_lt_build_shared_with_pic" >&6; }
  17571. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries with PIC" >&5
  17572. printf %s "checking whether to build static libraries with PIC... " >&6; }
  17573. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_with_pic" >&5
  17574. printf "%s\n" "$xc_lt_build_static_with_pic" >&6; }
  17575. #
  17576. # Verify if libtool shared libraries will be built while static not built
  17577. #
  17578. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries only" >&5
  17579. printf %s "checking whether to build shared libraries only... " >&6; }
  17580. if test "$xc_lt_build_shared" = 'yes' &&
  17581. test "$xc_lt_build_static" = 'no'; then
  17582. xc_lt_build_shared_only='yes'
  17583. else
  17584. xc_lt_build_shared_only='no'
  17585. fi
  17586. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_only" >&5
  17587. printf "%s\n" "$xc_lt_build_shared_only" >&6; }
  17588. #
  17589. # Verify if libtool static libraries will be built while shared not built
  17590. #
  17591. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries only" >&5
  17592. printf %s "checking whether to build static libraries only... " >&6; }
  17593. if test "$xc_lt_build_static" = 'yes' &&
  17594. test "$xc_lt_build_shared" = 'no'; then
  17595. xc_lt_build_static_only='yes'
  17596. else
  17597. xc_lt_build_static_only='no'
  17598. fi
  17599. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_only" >&5
  17600. printf "%s\n" "$xc_lt_build_static_only" >&6; }
  17601. #
  17602. # Automake conditionals based on libtool related checks
  17603. #
  17604. if test "x$xc_lt_shlib_use_version_info" = 'xyes'; then
  17605. CARES_LT_SHLIB_USE_VERSION_INFO_TRUE=
  17606. CARES_LT_SHLIB_USE_VERSION_INFO_FALSE='#'
  17607. else
  17608. CARES_LT_SHLIB_USE_VERSION_INFO_TRUE='#'
  17609. CARES_LT_SHLIB_USE_VERSION_INFO_FALSE=
  17610. fi
  17611. if test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
  17612. CARES_LT_SHLIB_USE_NO_UNDEFINED_TRUE=
  17613. CARES_LT_SHLIB_USE_NO_UNDEFINED_FALSE='#'
  17614. else
  17615. CARES_LT_SHLIB_USE_NO_UNDEFINED_TRUE='#'
  17616. CARES_LT_SHLIB_USE_NO_UNDEFINED_FALSE=
  17617. fi
  17618. if test "x$xc_lt_shlib_use_mimpure_text" = 'xyes'; then
  17619. CARES_LT_SHLIB_USE_MIMPURE_TEXT_TRUE=
  17620. CARES_LT_SHLIB_USE_MIMPURE_TEXT_FALSE='#'
  17621. else
  17622. CARES_LT_SHLIB_USE_MIMPURE_TEXT_TRUE='#'
  17623. CARES_LT_SHLIB_USE_MIMPURE_TEXT_FALSE=
  17624. fi
  17625. #
  17626. # Due to libtool and automake machinery limitations of not allowing
  17627. # specifying separate CPPFLAGS or CFLAGS when compiling objects for
  17628. # inclusion of these in shared or static libraries, we are forced to
  17629. # build using separate configure runs for shared and static libraries
  17630. # on systems where different CPPFLAGS or CFLAGS are mandatory in order
  17631. # to compile objects for each kind of library. Notice that relying on
  17632. # the '-DPIC' CFLAG that libtool provides is not valid given that the
  17633. # user might for example choose to build static libraries with PIC.
  17634. #
  17635. #
  17636. # Make our Makefile.am files use the staticlib CPPFLAG only when strictly
  17637. # targeting a static library and not building its shared counterpart.
  17638. #
  17639. if test "x$xc_lt_build_static_only" = 'xyes'; then
  17640. USE_CPPFLAG_CARES_STATICLIB_TRUE=
  17641. USE_CPPFLAG_CARES_STATICLIB_FALSE='#'
  17642. else
  17643. USE_CPPFLAG_CARES_STATICLIB_TRUE='#'
  17644. USE_CPPFLAG_CARES_STATICLIB_FALSE=
  17645. fi
  17646. #
  17647. # Make staticlib CPPFLAG variable and its definition visible in output
  17648. # files unconditionally, providing an empty definition unless strictly
  17649. # targeting a static library and not building its shared counterpart.
  17650. #
  17651. CPPFLAG_CARES_STATICLIB=
  17652. if test "x$xc_lt_build_static_only" = 'xyes'; then
  17653. CPPFLAG_CARES_STATICLIB='-DCARES_STATICLIB'
  17654. fi
  17655. #
  17656. compiler_id="unknown"
  17657. compiler_num="0"
  17658. #
  17659. flags_dbg_all="unknown"
  17660. flags_dbg_yes="unknown"
  17661. flags_dbg_off="unknown"
  17662. flags_opt_all="unknown"
  17663. flags_opt_yes="unknown"
  17664. flags_opt_off="unknown"
  17665. #
  17666. flags_prefer_cppflags="no"
  17667. #
  17668. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is DEC/Compaq/HP C" >&5
  17669. printf %s "checking if compiler is DEC/Compaq/HP C... " >&6; }
  17670. if test -z "$SED"; then
  17671. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  17672. fi
  17673. if test -z "$GREP"; then
  17674. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  17675. fi
  17676. tmp_exp=""
  17677. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17678. /* end confdefs.h. */
  17679. #ifdef __DECC
  17680. CURL_DEF_TOKEN __DECC
  17681. #endif
  17682. _ACEOF
  17683. if ac_fn_c_try_cpp "$LINENO"
  17684. then :
  17685. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  17686. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  17687. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  17688. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  17689. if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC"; then
  17690. tmp_exp=""
  17691. fi
  17692. fi
  17693. rm -f conftest.err conftest.i conftest.$ac_ext
  17694. if test -z "$tmp_exp"; then
  17695. curl_cv_have_def___DECC=no
  17696. else
  17697. curl_cv_have_def___DECC=yes
  17698. curl_cv_def___DECC=$tmp_exp
  17699. fi
  17700. if test -z "$SED"; then
  17701. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  17702. fi
  17703. if test -z "$GREP"; then
  17704. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  17705. fi
  17706. tmp_exp=""
  17707. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17708. /* end confdefs.h. */
  17709. #ifdef __DECC_VER
  17710. CURL_DEF_TOKEN __DECC_VER
  17711. #endif
  17712. _ACEOF
  17713. if ac_fn_c_try_cpp "$LINENO"
  17714. then :
  17715. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  17716. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  17717. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  17718. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  17719. if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC_VER"; then
  17720. tmp_exp=""
  17721. fi
  17722. fi
  17723. rm -f conftest.err conftest.i conftest.$ac_ext
  17724. if test -z "$tmp_exp"; then
  17725. curl_cv_have_def___DECC_VER=no
  17726. else
  17727. curl_cv_have_def___DECC_VER=yes
  17728. curl_cv_def___DECC_VER=$tmp_exp
  17729. fi
  17730. if test "$curl_cv_have_def___DECC" = "yes" &&
  17731. test "$curl_cv_have_def___DECC_VER" = "yes"; then
  17732. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17733. printf "%s\n" "yes" >&6; }
  17734. compiler_id="DEC_C"
  17735. flags_dbg_all="-g -g0 -g1 -g2 -g3"
  17736. flags_dbg_yes="-g2"
  17737. flags_dbg_off="-g0"
  17738. flags_opt_all="-O -O0 -O1 -O2 -O3 -O4"
  17739. flags_opt_yes="-O1"
  17740. flags_opt_off="-O0"
  17741. else
  17742. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17743. printf "%s\n" "no" >&6; }
  17744. fi
  17745. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is HP-UX C" >&5
  17746. printf %s "checking if compiler is HP-UX C... " >&6; }
  17747. if test -z "$SED"; then
  17748. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  17749. fi
  17750. if test -z "$GREP"; then
  17751. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  17752. fi
  17753. tmp_exp=""
  17754. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17755. /* end confdefs.h. */
  17756. #ifdef __HP_cc
  17757. CURL_DEF_TOKEN __HP_cc
  17758. #endif
  17759. _ACEOF
  17760. if ac_fn_c_try_cpp "$LINENO"
  17761. then :
  17762. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  17763. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  17764. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  17765. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  17766. if test -z "$tmp_exp" || test "$tmp_exp" = "__HP_cc"; then
  17767. tmp_exp=""
  17768. fi
  17769. fi
  17770. rm -f conftest.err conftest.i conftest.$ac_ext
  17771. if test -z "$tmp_exp"; then
  17772. curl_cv_have_def___HP_cc=no
  17773. else
  17774. curl_cv_have_def___HP_cc=yes
  17775. curl_cv_def___HP_cc=$tmp_exp
  17776. fi
  17777. if test "$curl_cv_have_def___HP_cc" = "yes"; then
  17778. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17779. printf "%s\n" "yes" >&6; }
  17780. compiler_id="HP_UX_C"
  17781. flags_dbg_all="-g -s"
  17782. flags_dbg_yes="-g"
  17783. flags_dbg_off="-s"
  17784. flags_opt_all="-O +O0 +O1 +O2 +O3 +O4"
  17785. flags_opt_yes="+O2"
  17786. flags_opt_off="+O0"
  17787. else
  17788. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17789. printf "%s\n" "no" >&6; }
  17790. fi
  17791. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is IBM C" >&5
  17792. printf %s "checking if compiler is IBM C... " >&6; }
  17793. if test -z "$SED"; then
  17794. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  17795. fi
  17796. if test -z "$GREP"; then
  17797. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  17798. fi
  17799. tmp_exp=""
  17800. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17801. /* end confdefs.h. */
  17802. #ifdef __IBMC__
  17803. CURL_DEF_TOKEN __IBMC__
  17804. #endif
  17805. _ACEOF
  17806. if ac_fn_c_try_cpp "$LINENO"
  17807. then :
  17808. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  17809. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  17810. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  17811. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  17812. if test -z "$tmp_exp" || test "$tmp_exp" = "__IBMC__"; then
  17813. tmp_exp=""
  17814. fi
  17815. fi
  17816. rm -f conftest.err conftest.i conftest.$ac_ext
  17817. if test -z "$tmp_exp"; then
  17818. curl_cv_have_def___IBMC__=no
  17819. else
  17820. curl_cv_have_def___IBMC__=yes
  17821. curl_cv_def___IBMC__=$tmp_exp
  17822. fi
  17823. if test "$curl_cv_have_def___IBMC__" = "yes"; then
  17824. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17825. printf "%s\n" "yes" >&6; }
  17826. compiler_id="IBM_C"
  17827. flags_dbg_all="-g -g0 -g1 -g2 -g3"
  17828. flags_dbg_yes="-g"
  17829. flags_dbg_off=""
  17830. flags_opt_all="-O -O0 -O1 -O2 -O3 -O4 -O5"
  17831. flags_opt_all="$flags_opt_all -qnooptimize"
  17832. flags_opt_all="$flags_opt_all -qoptimize=0"
  17833. flags_opt_all="$flags_opt_all -qoptimize=1"
  17834. flags_opt_all="$flags_opt_all -qoptimize=2"
  17835. flags_opt_all="$flags_opt_all -qoptimize=3"
  17836. flags_opt_all="$flags_opt_all -qoptimize=4"
  17837. flags_opt_all="$flags_opt_all -qoptimize=5"
  17838. flags_opt_yes="-O2"
  17839. flags_opt_off="-qnooptimize"
  17840. flags_prefer_cppflags="yes"
  17841. else
  17842. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17843. printf "%s\n" "no" >&6; }
  17844. fi
  17845. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is Intel C" >&5
  17846. printf %s "checking if compiler is Intel C... " >&6; }
  17847. if test -z "$SED"; then
  17848. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  17849. fi
  17850. if test -z "$GREP"; then
  17851. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  17852. fi
  17853. tmp_exp=""
  17854. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17855. /* end confdefs.h. */
  17856. #ifdef __INTEL_COMPILER
  17857. CURL_DEF_TOKEN __INTEL_COMPILER
  17858. #endif
  17859. _ACEOF
  17860. if ac_fn_c_try_cpp "$LINENO"
  17861. then :
  17862. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  17863. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  17864. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  17865. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  17866. if test -z "$tmp_exp" || test "$tmp_exp" = "__INTEL_COMPILER"; then
  17867. tmp_exp=""
  17868. fi
  17869. fi
  17870. rm -f conftest.err conftest.i conftest.$ac_ext
  17871. if test -z "$tmp_exp"; then
  17872. curl_cv_have_def___INTEL_COMPILER=no
  17873. else
  17874. curl_cv_have_def___INTEL_COMPILER=yes
  17875. curl_cv_def___INTEL_COMPILER=$tmp_exp
  17876. fi
  17877. if test "$curl_cv_have_def___INTEL_COMPILER" = "yes"; then
  17878. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17879. printf "%s\n" "yes" >&6; }
  17880. compiler_num="$curl_cv_def___INTEL_COMPILER"
  17881. if test -z "$SED"; then
  17882. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  17883. fi
  17884. if test -z "$GREP"; then
  17885. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  17886. fi
  17887. tmp_exp=""
  17888. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17889. /* end confdefs.h. */
  17890. #ifdef __unix__
  17891. CURL_DEF_TOKEN __unix__
  17892. #endif
  17893. _ACEOF
  17894. if ac_fn_c_try_cpp "$LINENO"
  17895. then :
  17896. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  17897. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  17898. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  17899. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  17900. if test -z "$tmp_exp" || test "$tmp_exp" = ""; then
  17901. tmp_exp=""
  17902. fi
  17903. fi
  17904. rm -f conftest.err conftest.i conftest.$ac_ext
  17905. if test -z "$tmp_exp"; then
  17906. curl_cv_have_def___unix__=no
  17907. else
  17908. curl_cv_have_def___unix__=yes
  17909. curl_cv_def___unix__=$tmp_exp
  17910. fi
  17911. if test "$curl_cv_have_def___unix__" = "yes"; then
  17912. compiler_id="INTEL_UNIX_C"
  17913. flags_dbg_all="-g -g0"
  17914. flags_dbg_yes="-g"
  17915. flags_dbg_off="-g0"
  17916. flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
  17917. flags_opt_yes="-O2"
  17918. flags_opt_off="-O0"
  17919. else
  17920. compiler_id="INTEL_WINDOWS_C"
  17921. flags_dbg_all="/ZI /Zi /zI /zi /ZD /Zd /zD /zd /Z7 /z7 /Oy /Oy-"
  17922. flags_dbg_all="$flags_dbg_all /debug"
  17923. flags_dbg_all="$flags_dbg_all /debug:none"
  17924. flags_dbg_all="$flags_dbg_all /debug:minimal"
  17925. flags_dbg_all="$flags_dbg_all /debug:partial"
  17926. flags_dbg_all="$flags_dbg_all /debug:full"
  17927. flags_dbg_all="$flags_dbg_all /debug:semantic_stepping"
  17928. flags_dbg_all="$flags_dbg_all /debug:extended"
  17929. flags_dbg_yes="/Zi /Oy-"
  17930. flags_dbg_off="/debug:none /Oy-"
  17931. flags_opt_all="/O /O0 /O1 /O2 /O3 /Od /Og /Og- /Oi /Oi-"
  17932. flags_opt_yes="/O2"
  17933. flags_opt_off="/Od"
  17934. fi
  17935. else
  17936. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17937. printf "%s\n" "no" >&6; }
  17938. fi
  17939. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is clang" >&5
  17940. printf %s "checking if compiler is clang... " >&6; }
  17941. if test -z "$SED"; then
  17942. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  17943. fi
  17944. if test -z "$GREP"; then
  17945. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  17946. fi
  17947. tmp_exp=""
  17948. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17949. /* end confdefs.h. */
  17950. #ifdef __clang__
  17951. CURL_DEF_TOKEN __clang__
  17952. #endif
  17953. _ACEOF
  17954. if ac_fn_c_try_cpp "$LINENO"
  17955. then :
  17956. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  17957. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  17958. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  17959. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  17960. if test -z "$tmp_exp" || test "$tmp_exp" = "__clang__"; then
  17961. tmp_exp=""
  17962. fi
  17963. fi
  17964. rm -f conftest.err conftest.i conftest.$ac_ext
  17965. if test -z "$tmp_exp"; then
  17966. curl_cv_have_def___clang__=no
  17967. else
  17968. curl_cv_have_def___clang__=yes
  17969. curl_cv_def___clang__=$tmp_exp
  17970. fi
  17971. if test "$curl_cv_have_def___clang__" = "yes"; then
  17972. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17973. printf "%s\n" "yes" >&6; }
  17974. compiler_id="CLANG"
  17975. clangver=`$CC -dumpversion`
  17976. clangvhi=`echo $clangver | cut -d . -f1`
  17977. clangvlo=`echo $clangver | cut -d . -f2`
  17978. compiler_num=`(expr $clangvhi "*" 100 + $clangvlo) 2>/dev/null`
  17979. flags_dbg_all="-g -g0 -g1 -g2 -g3"
  17980. flags_dbg_all="$flags_dbg_all -ggdb"
  17981. flags_dbg_all="$flags_dbg_all -gstabs"
  17982. flags_dbg_all="$flags_dbg_all -gstabs+"
  17983. flags_dbg_all="$flags_dbg_all -gcoff"
  17984. flags_dbg_all="$flags_dbg_all -gxcoff"
  17985. flags_dbg_all="$flags_dbg_all -gdwarf-2"
  17986. flags_dbg_all="$flags_dbg_all -gvms"
  17987. flags_dbg_yes="-g"
  17988. flags_dbg_off="-g0"
  17989. flags_opt_all="-O -O0 -O1 -O2 -Os -O3 -O4"
  17990. flags_opt_yes="-Os"
  17991. flags_opt_off="-O0"
  17992. else
  17993. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17994. printf "%s\n" "no" >&6; }
  17995. fi
  17996. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is GNU C" >&5
  17997. printf %s "checking if compiler is GNU C... " >&6; }
  17998. if test -z "$SED"; then
  17999. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  18000. fi
  18001. if test -z "$GREP"; then
  18002. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  18003. fi
  18004. tmp_exp=""
  18005. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18006. /* end confdefs.h. */
  18007. #ifdef __GNUC__
  18008. CURL_DEF_TOKEN __GNUC__
  18009. #endif
  18010. _ACEOF
  18011. if ac_fn_c_try_cpp "$LINENO"
  18012. then :
  18013. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  18014. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  18015. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  18016. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  18017. if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
  18018. tmp_exp=""
  18019. fi
  18020. fi
  18021. rm -f conftest.err conftest.i conftest.$ac_ext
  18022. if test -z "$tmp_exp"; then
  18023. curl_cv_have_def___GNUC__=no
  18024. else
  18025. curl_cv_have_def___GNUC__=yes
  18026. curl_cv_def___GNUC__=$tmp_exp
  18027. fi
  18028. if test "$curl_cv_have_def___GNUC__" = "yes" &&
  18029. test "$compiler_id" = "unknown"; then
  18030. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18031. printf "%s\n" "yes" >&6; }
  18032. compiler_id="GNU_C"
  18033. gccver=`$CC -dumpversion`
  18034. gccvhi=`echo $gccver | cut -d . -f1`
  18035. gccvlo=`echo $gccver | cut -d . -f2`
  18036. compiler_num=`(expr $gccvhi "*" 100 + $gccvlo) 2>/dev/null`
  18037. flags_dbg_all="-g -g0 -g1 -g2 -g3"
  18038. flags_dbg_all="$flags_dbg_all -ggdb"
  18039. flags_dbg_all="$flags_dbg_all -gstabs"
  18040. flags_dbg_all="$flags_dbg_all -gstabs+"
  18041. flags_dbg_all="$flags_dbg_all -gcoff"
  18042. flags_dbg_all="$flags_dbg_all -gxcoff"
  18043. flags_dbg_all="$flags_dbg_all -gdwarf-2"
  18044. flags_dbg_all="$flags_dbg_all -gvms"
  18045. flags_dbg_yes="-g"
  18046. flags_dbg_off="-g0"
  18047. flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
  18048. flags_opt_yes="-O2"
  18049. flags_opt_off="-O0"
  18050. if test -z "$SED"; then
  18051. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  18052. fi
  18053. if test -z "$GREP"; then
  18054. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  18055. fi
  18056. tmp_exp=""
  18057. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18058. /* end confdefs.h. */
  18059. #ifdef _WIN32
  18060. CURL_DEF_TOKEN _WIN32
  18061. #endif
  18062. _ACEOF
  18063. if ac_fn_c_try_cpp "$LINENO"
  18064. then :
  18065. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  18066. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  18067. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  18068. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  18069. if test -z "$tmp_exp" || test "$tmp_exp" = "_WIN32"; then
  18070. tmp_exp=""
  18071. fi
  18072. fi
  18073. rm -f conftest.err conftest.i conftest.$ac_ext
  18074. if test -z "$tmp_exp"; then
  18075. curl_cv_have_def__WIN32=no
  18076. else
  18077. curl_cv_have_def__WIN32=yes
  18078. curl_cv_def__WIN32=$tmp_exp
  18079. fi
  18080. else
  18081. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18082. printf "%s\n" "no" >&6; }
  18083. fi
  18084. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is LCC" >&5
  18085. printf %s "checking if compiler is LCC... " >&6; }
  18086. if test -z "$SED"; then
  18087. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  18088. fi
  18089. if test -z "$GREP"; then
  18090. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  18091. fi
  18092. tmp_exp=""
  18093. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18094. /* end confdefs.h. */
  18095. #ifdef __LCC__
  18096. CURL_DEF_TOKEN __LCC__
  18097. #endif
  18098. _ACEOF
  18099. if ac_fn_c_try_cpp "$LINENO"
  18100. then :
  18101. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  18102. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  18103. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  18104. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  18105. if test -z "$tmp_exp" || test "$tmp_exp" = "__LCC__"; then
  18106. tmp_exp=""
  18107. fi
  18108. fi
  18109. rm -f conftest.err conftest.i conftest.$ac_ext
  18110. if test -z "$tmp_exp"; then
  18111. curl_cv_have_def___LCC__=no
  18112. else
  18113. curl_cv_have_def___LCC__=yes
  18114. curl_cv_def___LCC__=$tmp_exp
  18115. fi
  18116. if test "$curl_cv_have_def___LCC__" = "yes"; then
  18117. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18118. printf "%s\n" "yes" >&6; }
  18119. compiler_id="LCC"
  18120. flags_dbg_all="-g"
  18121. flags_dbg_yes="-g"
  18122. flags_dbg_off=""
  18123. flags_opt_all=""
  18124. flags_opt_yes=""
  18125. flags_opt_off=""
  18126. else
  18127. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18128. printf "%s\n" "no" >&6; }
  18129. fi
  18130. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPSpro C" >&5
  18131. printf %s "checking if compiler is SGI MIPSpro C... " >&6; }
  18132. if test -z "$SED"; then
  18133. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  18134. fi
  18135. if test -z "$GREP"; then
  18136. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  18137. fi
  18138. tmp_exp=""
  18139. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18140. /* end confdefs.h. */
  18141. #ifdef __GNUC__
  18142. CURL_DEF_TOKEN __GNUC__
  18143. #endif
  18144. _ACEOF
  18145. if ac_fn_c_try_cpp "$LINENO"
  18146. then :
  18147. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  18148. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  18149. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  18150. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  18151. if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
  18152. tmp_exp=""
  18153. fi
  18154. fi
  18155. rm -f conftest.err conftest.i conftest.$ac_ext
  18156. if test -z "$tmp_exp"; then
  18157. curl_cv_have_def___GNUC__=no
  18158. else
  18159. curl_cv_have_def___GNUC__=yes
  18160. curl_cv_def___GNUC__=$tmp_exp
  18161. fi
  18162. if test -z "$SED"; then
  18163. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  18164. fi
  18165. if test -z "$GREP"; then
  18166. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  18167. fi
  18168. tmp_exp=""
  18169. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18170. /* end confdefs.h. */
  18171. #ifdef _COMPILER_VERSION
  18172. CURL_DEF_TOKEN _COMPILER_VERSION
  18173. #endif
  18174. _ACEOF
  18175. if ac_fn_c_try_cpp "$LINENO"
  18176. then :
  18177. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  18178. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  18179. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  18180. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  18181. if test -z "$tmp_exp" || test "$tmp_exp" = "_COMPILER_VERSION"; then
  18182. tmp_exp=""
  18183. fi
  18184. fi
  18185. rm -f conftest.err conftest.i conftest.$ac_ext
  18186. if test -z "$tmp_exp"; then
  18187. curl_cv_have_def__COMPILER_VERSION=no
  18188. else
  18189. curl_cv_have_def__COMPILER_VERSION=yes
  18190. curl_cv_def__COMPILER_VERSION=$tmp_exp
  18191. fi
  18192. if test -z "$SED"; then
  18193. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  18194. fi
  18195. if test -z "$GREP"; then
  18196. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  18197. fi
  18198. tmp_exp=""
  18199. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18200. /* end confdefs.h. */
  18201. #ifdef _SGI_COMPILER_VERSION
  18202. CURL_DEF_TOKEN _SGI_COMPILER_VERSION
  18203. #endif
  18204. _ACEOF
  18205. if ac_fn_c_try_cpp "$LINENO"
  18206. then :
  18207. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  18208. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  18209. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  18210. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  18211. if test -z "$tmp_exp" || test "$tmp_exp" = "_SGI_COMPILER_VERSION"; then
  18212. tmp_exp=""
  18213. fi
  18214. fi
  18215. rm -f conftest.err conftest.i conftest.$ac_ext
  18216. if test -z "$tmp_exp"; then
  18217. curl_cv_have_def__SGI_COMPILER_VERSION=no
  18218. else
  18219. curl_cv_have_def__SGI_COMPILER_VERSION=yes
  18220. curl_cv_def__SGI_COMPILER_VERSION=$tmp_exp
  18221. fi
  18222. if test "$curl_cv_have_def___GNUC__" = "no" &&
  18223. (test "$curl_cv_have_def__SGI_COMPILER_VERSION" = "yes" ||
  18224. test "$curl_cv_have_def__COMPILER_VERSION" = "yes"); then
  18225. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18226. printf "%s\n" "yes" >&6; }
  18227. compiler_id="SGI_MIPSPRO_C"
  18228. flags_dbg_all="-g -g0 -g1 -g2 -g3"
  18229. flags_dbg_yes="-g"
  18230. flags_dbg_off="-g0"
  18231. flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
  18232. flags_opt_yes="-O2"
  18233. flags_opt_off="-O0"
  18234. else
  18235. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18236. printf "%s\n" "no" >&6; }
  18237. fi
  18238. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPS C" >&5
  18239. printf %s "checking if compiler is SGI MIPS C... " >&6; }
  18240. if test -z "$SED"; then
  18241. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  18242. fi
  18243. if test -z "$GREP"; then
  18244. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  18245. fi
  18246. tmp_exp=""
  18247. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18248. /* end confdefs.h. */
  18249. #ifdef __GNUC__
  18250. CURL_DEF_TOKEN __GNUC__
  18251. #endif
  18252. _ACEOF
  18253. if ac_fn_c_try_cpp "$LINENO"
  18254. then :
  18255. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  18256. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  18257. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  18258. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  18259. if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
  18260. tmp_exp=""
  18261. fi
  18262. fi
  18263. rm -f conftest.err conftest.i conftest.$ac_ext
  18264. if test -z "$tmp_exp"; then
  18265. curl_cv_have_def___GNUC__=no
  18266. else
  18267. curl_cv_have_def___GNUC__=yes
  18268. curl_cv_def___GNUC__=$tmp_exp
  18269. fi
  18270. if test -z "$SED"; then
  18271. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  18272. fi
  18273. if test -z "$GREP"; then
  18274. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  18275. fi
  18276. tmp_exp=""
  18277. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18278. /* end confdefs.h. */
  18279. #ifdef __sgi
  18280. CURL_DEF_TOKEN __sgi
  18281. #endif
  18282. _ACEOF
  18283. if ac_fn_c_try_cpp "$LINENO"
  18284. then :
  18285. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  18286. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  18287. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  18288. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  18289. if test -z "$tmp_exp" || test "$tmp_exp" = "__sgi"; then
  18290. tmp_exp=""
  18291. fi
  18292. fi
  18293. rm -f conftest.err conftest.i conftest.$ac_ext
  18294. if test -z "$tmp_exp"; then
  18295. curl_cv_have_def___sgi=no
  18296. else
  18297. curl_cv_have_def___sgi=yes
  18298. curl_cv_def___sgi=$tmp_exp
  18299. fi
  18300. if test "$curl_cv_have_def___GNUC__" = "no" &&
  18301. test "$curl_cv_have_def___sgi" = "yes" &&
  18302. test "$compiler_id" = "unknown"; then
  18303. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18304. printf "%s\n" "yes" >&6; }
  18305. compiler_id="SGI_MIPS_C"
  18306. flags_dbg_all="-g -g0 -g1 -g2 -g3"
  18307. flags_dbg_yes="-g"
  18308. flags_dbg_off="-g0"
  18309. flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
  18310. flags_opt_yes="-O2"
  18311. flags_opt_off="-O0"
  18312. else
  18313. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18314. printf "%s\n" "no" >&6; }
  18315. fi
  18316. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is SunPro C" >&5
  18317. printf %s "checking if compiler is SunPro C... " >&6; }
  18318. if test -z "$SED"; then
  18319. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  18320. fi
  18321. if test -z "$GREP"; then
  18322. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  18323. fi
  18324. tmp_exp=""
  18325. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18326. /* end confdefs.h. */
  18327. #ifdef __SUNPRO_C
  18328. CURL_DEF_TOKEN __SUNPRO_C
  18329. #endif
  18330. _ACEOF
  18331. if ac_fn_c_try_cpp "$LINENO"
  18332. then :
  18333. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  18334. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  18335. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  18336. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  18337. if test -z "$tmp_exp" || test "$tmp_exp" = "__SUNPRO_C"; then
  18338. tmp_exp=""
  18339. fi
  18340. fi
  18341. rm -f conftest.err conftest.i conftest.$ac_ext
  18342. if test -z "$tmp_exp"; then
  18343. curl_cv_have_def___SUNPRO_C=no
  18344. else
  18345. curl_cv_have_def___SUNPRO_C=yes
  18346. curl_cv_def___SUNPRO_C=$tmp_exp
  18347. fi
  18348. if test "$curl_cv_have_def___SUNPRO_C" = "yes"; then
  18349. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18350. printf "%s\n" "yes" >&6; }
  18351. compiler_id="SUNPRO_C"
  18352. flags_dbg_all="-g -s"
  18353. flags_dbg_yes="-g"
  18354. flags_dbg_off="-s"
  18355. flags_opt_all="-O -xO -xO1 -xO2 -xO3 -xO4 -xO5"
  18356. flags_opt_yes="-xO2"
  18357. flags_opt_off=""
  18358. else
  18359. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18360. printf "%s\n" "no" >&6; }
  18361. fi
  18362. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is Tiny C" >&5
  18363. printf %s "checking if compiler is Tiny C... " >&6; }
  18364. if test -z "$SED"; then
  18365. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  18366. fi
  18367. if test -z "$GREP"; then
  18368. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  18369. fi
  18370. tmp_exp=""
  18371. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18372. /* end confdefs.h. */
  18373. #ifdef __TINYC__
  18374. CURL_DEF_TOKEN __TINYC__
  18375. #endif
  18376. _ACEOF
  18377. if ac_fn_c_try_cpp "$LINENO"
  18378. then :
  18379. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  18380. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  18381. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  18382. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  18383. if test -z "$tmp_exp" || test "$tmp_exp" = "__TINYC__"; then
  18384. tmp_exp=""
  18385. fi
  18386. fi
  18387. rm -f conftest.err conftest.i conftest.$ac_ext
  18388. if test -z "$tmp_exp"; then
  18389. curl_cv_have_def___TINYC__=no
  18390. else
  18391. curl_cv_have_def___TINYC__=yes
  18392. curl_cv_def___TINYC__=$tmp_exp
  18393. fi
  18394. if test "$curl_cv_have_def___TINYC__" = "yes"; then
  18395. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18396. printf "%s\n" "yes" >&6; }
  18397. compiler_id="TINY_C"
  18398. flags_dbg_all="-g -b"
  18399. flags_dbg_yes="-g"
  18400. flags_dbg_off=""
  18401. flags_opt_all=""
  18402. flags_opt_yes=""
  18403. flags_opt_off=""
  18404. else
  18405. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18406. printf "%s\n" "no" >&6; }
  18407. fi
  18408. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is Watcom C" >&5
  18409. printf %s "checking if compiler is Watcom C... " >&6; }
  18410. if test -z "$SED"; then
  18411. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  18412. fi
  18413. if test -z "$GREP"; then
  18414. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  18415. fi
  18416. tmp_exp=""
  18417. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18418. /* end confdefs.h. */
  18419. #ifdef __WATCOMC__
  18420. CURL_DEF_TOKEN __WATCOMC__
  18421. #endif
  18422. _ACEOF
  18423. if ac_fn_c_try_cpp "$LINENO"
  18424. then :
  18425. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  18426. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  18427. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  18428. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  18429. if test -z "$tmp_exp" || test "$tmp_exp" = "__WATCOMC__"; then
  18430. tmp_exp=""
  18431. fi
  18432. fi
  18433. rm -f conftest.err conftest.i conftest.$ac_ext
  18434. if test -z "$tmp_exp"; then
  18435. curl_cv_have_def___WATCOMC__=no
  18436. else
  18437. curl_cv_have_def___WATCOMC__=yes
  18438. curl_cv_def___WATCOMC__=$tmp_exp
  18439. fi
  18440. if test "$curl_cv_have_def___WATCOMC__" = "yes"; then
  18441. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18442. printf "%s\n" "yes" >&6; }
  18443. if test -z "$SED"; then
  18444. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  18445. fi
  18446. if test -z "$GREP"; then
  18447. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  18448. fi
  18449. tmp_exp=""
  18450. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18451. /* end confdefs.h. */
  18452. #ifdef __UNIX__
  18453. CURL_DEF_TOKEN __UNIX__
  18454. #endif
  18455. _ACEOF
  18456. if ac_fn_c_try_cpp "$LINENO"
  18457. then :
  18458. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  18459. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  18460. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  18461. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  18462. if test -z "$tmp_exp" || test "$tmp_exp" = "__UNIX__"; then
  18463. tmp_exp=""
  18464. fi
  18465. fi
  18466. rm -f conftest.err conftest.i conftest.$ac_ext
  18467. if test -z "$tmp_exp"; then
  18468. curl_cv_have_def___UNIX__=no
  18469. else
  18470. curl_cv_have_def___UNIX__=yes
  18471. curl_cv_def___UNIX__=$tmp_exp
  18472. fi
  18473. if test "$curl_cv_have_def___UNIX__" = "yes"; then
  18474. compiler_id="WATCOM_UNIX_C"
  18475. flags_dbg_all="-g1 -g1+ -g2 -g3"
  18476. flags_dbg_yes="-g2"
  18477. flags_dbg_off=""
  18478. flags_opt_all="-O0 -O1 -O2 -O3"
  18479. flags_opt_yes="-O2"
  18480. flags_opt_off="-O0"
  18481. else
  18482. compiler_id="WATCOM_WINDOWS_C"
  18483. flags_dbg_all=""
  18484. flags_dbg_yes=""
  18485. flags_dbg_off=""
  18486. flags_opt_all=""
  18487. flags_opt_yes=""
  18488. flags_opt_off=""
  18489. fi
  18490. else
  18491. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18492. printf "%s\n" "no" >&6; }
  18493. fi
  18494. #
  18495. if test "$compiler_id" = "unknown"; then
  18496. cat <<_EOF 1>&2
  18497. ***
  18498. *** Warning: This configure script does not have information about the
  18499. *** compiler you are using, relative to the flags required to enable or
  18500. *** disable generation of debug info, optimization options or warnings.
  18501. ***
  18502. *** Whatever settings are present in CFLAGS will be used for this run.
  18503. ***
  18504. *** If you wish to help the c-ares project to better support your compiler
  18505. *** you can report this and the required info on the c-ares development
  18506. *** mailing list: http://lists.haxx.se/listinfo/c-ares/
  18507. ***
  18508. _EOF
  18509. fi
  18510. squeeze() {
  18511. _sqz_result=""
  18512. eval _sqz_input=\$$1
  18513. for _sqz_token in $_sqz_input; do
  18514. if test -z "$_sqz_result"; then
  18515. _sqz_result="$_sqz_token"
  18516. else
  18517. _sqz_result="$_sqz_result $_sqz_token"
  18518. fi
  18519. done
  18520. eval $1=\$_sqz_result
  18521. return 0
  18522. }
  18523. #
  18524. if test "$compiler_id" != "unknown"; then
  18525. #
  18526. if test "$compiler_id" = "GNU_C" ||
  18527. test "$compiler_id" = "CLANG"; then
  18528. if test "$compiler_id" = "GNU_C" ||
  18529. test "$compiler_id" = "CLANG"; then
  18530. tmp_has_include="no"
  18531. tmp_chg_FLAGS="$CFLAGS"
  18532. for word1 in $tmp_chg_FLAGS; do
  18533. case "$word1" in
  18534. -I*)
  18535. tmp_has_include="yes"
  18536. ;;
  18537. esac
  18538. done
  18539. if test "$tmp_has_include" = "yes"; then
  18540. tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
  18541. tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
  18542. CFLAGS="$tmp_chg_FLAGS"
  18543. squeeze CFLAGS
  18544. fi
  18545. tmp_has_include="no"
  18546. tmp_chg_FLAGS="$CPPFLAGS"
  18547. for word1 in $tmp_chg_FLAGS; do
  18548. case "$word1" in
  18549. -I*)
  18550. tmp_has_include="yes"
  18551. ;;
  18552. esac
  18553. done
  18554. if test "$tmp_has_include" = "yes"; then
  18555. tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
  18556. tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
  18557. CPPFLAGS="$tmp_chg_FLAGS"
  18558. squeeze CPPFLAGS
  18559. fi
  18560. fi
  18561. fi
  18562. #
  18563. tmp_save_CPPFLAGS="$CPPFLAGS"
  18564. tmp_save_CFLAGS="$CFLAGS"
  18565. tmp_CPPFLAGS=""
  18566. tmp_CFLAGS=""
  18567. #
  18568. case "$compiler_id" in
  18569. #
  18570. CLANG)
  18571. #
  18572. tmp_CFLAGS="$tmp_CFLAGS -Qunused-arguments"
  18573. ;;
  18574. #
  18575. DEC_C)
  18576. #
  18577. tmp_CFLAGS="$tmp_CFLAGS -std1"
  18578. tmp_CFLAGS="$tmp_CFLAGS -noansi_alias"
  18579. tmp_CFLAGS="$tmp_CFLAGS -warnprotos"
  18580. tmp_CFLAGS="$tmp_CFLAGS -msg_fatal toofewargs,toomanyargs"
  18581. ;;
  18582. #
  18583. GNU_C)
  18584. #
  18585. tmp_CFLAGS="$tmp_CFLAGS"
  18586. ;;
  18587. #
  18588. HP_UX_C)
  18589. #
  18590. tmp_CFLAGS="$tmp_CFLAGS -z"
  18591. tmp_CFLAGS="$tmp_CFLAGS +W 4227,4255"
  18592. ;;
  18593. #
  18594. IBM_C)
  18595. #
  18596. tmp_CPPFLAGS="$tmp_CPPFLAGS -qthreaded"
  18597. tmp_CPPFLAGS="$tmp_CPPFLAGS -qnoansialias"
  18598. tmp_CPPFLAGS="$tmp_CPPFLAGS -qhalt=e"
  18599. ;;
  18600. #
  18601. INTEL_UNIX_C)
  18602. #
  18603. tmp_CFLAGS="$tmp_CFLAGS -std=gnu89"
  18604. tmp_CPPFLAGS="$tmp_CPPFLAGS -we 140,147,165,266"
  18605. tmp_CPPFLAGS="$tmp_CPPFLAGS -wd 279,981,1469"
  18606. ;;
  18607. #
  18608. INTEL_WINDOWS_C)
  18609. #
  18610. tmp_CFLAGS="$tmp_CFLAGS"
  18611. ;;
  18612. #
  18613. LCC)
  18614. #
  18615. tmp_CFLAGS="$tmp_CFLAGS -n"
  18616. ;;
  18617. #
  18618. SGI_MIPS_C)
  18619. #
  18620. tmp_CFLAGS="$tmp_CFLAGS"
  18621. ;;
  18622. #
  18623. SGI_MIPSPRO_C)
  18624. #
  18625. tmp_CFLAGS="$tmp_CFLAGS"
  18626. ;;
  18627. #
  18628. SUNPRO_C)
  18629. #
  18630. tmp_CFLAGS="$tmp_CFLAGS"
  18631. ;;
  18632. #
  18633. TINY_C)
  18634. #
  18635. tmp_CFLAGS="$tmp_CFLAGS"
  18636. ;;
  18637. #
  18638. WATCOM_UNIX_C)
  18639. #
  18640. tmp_CFLAGS="$tmp_CFLAGS"
  18641. ;;
  18642. #
  18643. WATCOM_WINDOWS_C)
  18644. #
  18645. tmp_CFLAGS="$tmp_CFLAGS"
  18646. ;;
  18647. #
  18648. esac
  18649. #
  18650. squeeze tmp_CPPFLAGS
  18651. squeeze tmp_CFLAGS
  18652. #
  18653. if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
  18654. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts some basic options" >&5
  18655. printf %s "checking if compiler accepts some basic options... " >&6; }
  18656. CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
  18657. CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
  18658. squeeze CPPFLAGS
  18659. squeeze CFLAGS
  18660. tmp_compiler_works="unknown"
  18661. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18662. /* end confdefs.h. */
  18663. int
  18664. main (void)
  18665. {
  18666. int i = 1;
  18667. return i;
  18668. ;
  18669. return 0;
  18670. }
  18671. _ACEOF
  18672. if ac_fn_c_try_compile "$LINENO"
  18673. then :
  18674. tmp_compiler_works="yes"
  18675. else $as_nop
  18676. tmp_compiler_works="no"
  18677. echo " " >&6
  18678. sed 's/^/cc-fail: /' conftest.err >&6
  18679. echo " " >&6
  18680. fi
  18681. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18682. if test "$tmp_compiler_works" = "yes"; then
  18683. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18684. /* end confdefs.h. */
  18685. int
  18686. main (void)
  18687. {
  18688. int i = 1;
  18689. return i;
  18690. ;
  18691. return 0;
  18692. }
  18693. _ACEOF
  18694. if ac_fn_c_try_link "$LINENO"
  18695. then :
  18696. tmp_compiler_works="yes"
  18697. else $as_nop
  18698. tmp_compiler_works="no"
  18699. echo " " >&6
  18700. sed 's/^/link-fail: /' conftest.err >&6
  18701. echo " " >&6
  18702. fi
  18703. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18704. conftest$ac_exeext conftest.$ac_ext
  18705. fi
  18706. if test "x$cross_compiling" != "xyes" &&
  18707. test "$tmp_compiler_works" = "yes"; then
  18708. if test "$cross_compiling" = yes
  18709. then :
  18710. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  18711. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  18712. as_fn_error $? "cannot run test program while cross compiling
  18713. See \`config.log' for more details" "$LINENO" 5; }
  18714. else $as_nop
  18715. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18716. /* end confdefs.h. */
  18717. # ifdef __STDC__
  18718. # include <stdlib.h>
  18719. # endif
  18720. int
  18721. main (void)
  18722. {
  18723. int i = 0;
  18724. exit(i);
  18725. ;
  18726. return 0;
  18727. }
  18728. _ACEOF
  18729. if ac_fn_c_try_run "$LINENO"
  18730. then :
  18731. tmp_compiler_works="yes"
  18732. else $as_nop
  18733. tmp_compiler_works="no"
  18734. echo " " >&6
  18735. echo "run-fail: test program exited with status $ac_status" >&6
  18736. echo " " >&6
  18737. fi
  18738. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  18739. conftest.$ac_objext conftest.beam conftest.$ac_ext
  18740. fi
  18741. fi
  18742. if test "$tmp_compiler_works" = "yes"; then
  18743. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18744. printf "%s\n" "yes" >&6; }
  18745. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
  18746. printf "%s\n" "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
  18747. else
  18748. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18749. printf "%s\n" "no" >&6; }
  18750. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
  18751. printf "%s\n" "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
  18752. CPPFLAGS="$tmp_save_CPPFLAGS"
  18753. CFLAGS="$tmp_save_CFLAGS"
  18754. fi
  18755. fi
  18756. #
  18757. fi
  18758. #
  18759. if test "$compiler_id" != "unknown"; then
  18760. #
  18761. tmp_save_CFLAGS="$CFLAGS"
  18762. tmp_save_CPPFLAGS="$CPPFLAGS"
  18763. #
  18764. tmp_options=""
  18765. tmp_CFLAGS="$CFLAGS"
  18766. tmp_CPPFLAGS="$CPPFLAGS"
  18767. ac_var_stripped=""
  18768. for word1 in $tmp_CFLAGS; do
  18769. ac_var_strip_word="no"
  18770. for word2 in $flags_dbg_all; do
  18771. if test "$word1" = "$word2"; then
  18772. ac_var_strip_word="yes"
  18773. fi
  18774. done
  18775. if test "$ac_var_strip_word" = "no"; then
  18776. ac_var_stripped="$ac_var_stripped $word1"
  18777. fi
  18778. done
  18779. tmp_CFLAGS="$ac_var_stripped"
  18780. squeeze tmp_CFLAGS
  18781. ac_var_stripped=""
  18782. for word1 in $tmp_CPPFLAGS; do
  18783. ac_var_strip_word="no"
  18784. for word2 in $flags_dbg_all; do
  18785. if test "$word1" = "$word2"; then
  18786. ac_var_strip_word="yes"
  18787. fi
  18788. done
  18789. if test "$ac_var_strip_word" = "no"; then
  18790. ac_var_stripped="$ac_var_stripped $word1"
  18791. fi
  18792. done
  18793. tmp_CPPFLAGS="$ac_var_stripped"
  18794. squeeze tmp_CPPFLAGS
  18795. #
  18796. if test "$want_debug" = "yes"; then
  18797. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug enabling options" >&5
  18798. printf %s "checking if compiler accepts debug enabling options... " >&6; }
  18799. tmp_options="$flags_dbg_yes"
  18800. fi
  18801. if test "$want_debug" = "no"; then
  18802. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug disabling options" >&5
  18803. printf %s "checking if compiler accepts debug disabling options... " >&6; }
  18804. tmp_options="$flags_dbg_off"
  18805. fi
  18806. #
  18807. if test "$flags_prefer_cppflags" = "yes"; then
  18808. CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
  18809. CFLAGS="$tmp_CFLAGS"
  18810. else
  18811. CPPFLAGS="$tmp_CPPFLAGS"
  18812. CFLAGS="$tmp_CFLAGS $tmp_options"
  18813. fi
  18814. squeeze CPPFLAGS
  18815. squeeze CFLAGS
  18816. tmp_compiler_works="unknown"
  18817. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18818. /* end confdefs.h. */
  18819. int
  18820. main (void)
  18821. {
  18822. int i = 1;
  18823. return i;
  18824. ;
  18825. return 0;
  18826. }
  18827. _ACEOF
  18828. if ac_fn_c_try_compile "$LINENO"
  18829. then :
  18830. tmp_compiler_works="yes"
  18831. else $as_nop
  18832. tmp_compiler_works="no"
  18833. echo " " >&6
  18834. sed 's/^/cc-fail: /' conftest.err >&6
  18835. echo " " >&6
  18836. fi
  18837. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18838. if test "$tmp_compiler_works" = "yes"; then
  18839. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18840. /* end confdefs.h. */
  18841. int
  18842. main (void)
  18843. {
  18844. int i = 1;
  18845. return i;
  18846. ;
  18847. return 0;
  18848. }
  18849. _ACEOF
  18850. if ac_fn_c_try_link "$LINENO"
  18851. then :
  18852. tmp_compiler_works="yes"
  18853. else $as_nop
  18854. tmp_compiler_works="no"
  18855. echo " " >&6
  18856. sed 's/^/link-fail: /' conftest.err >&6
  18857. echo " " >&6
  18858. fi
  18859. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18860. conftest$ac_exeext conftest.$ac_ext
  18861. fi
  18862. if test "x$cross_compiling" != "xyes" &&
  18863. test "$tmp_compiler_works" = "yes"; then
  18864. if test "$cross_compiling" = yes
  18865. then :
  18866. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  18867. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  18868. as_fn_error $? "cannot run test program while cross compiling
  18869. See \`config.log' for more details" "$LINENO" 5; }
  18870. else $as_nop
  18871. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18872. /* end confdefs.h. */
  18873. # ifdef __STDC__
  18874. # include <stdlib.h>
  18875. # endif
  18876. int
  18877. main (void)
  18878. {
  18879. int i = 0;
  18880. exit(i);
  18881. ;
  18882. return 0;
  18883. }
  18884. _ACEOF
  18885. if ac_fn_c_try_run "$LINENO"
  18886. then :
  18887. tmp_compiler_works="yes"
  18888. else $as_nop
  18889. tmp_compiler_works="no"
  18890. echo " " >&6
  18891. echo "run-fail: test program exited with status $ac_status" >&6
  18892. echo " " >&6
  18893. fi
  18894. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  18895. conftest.$ac_objext conftest.beam conftest.$ac_ext
  18896. fi
  18897. fi
  18898. if test "$tmp_compiler_works" = "yes"; then
  18899. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18900. printf "%s\n" "yes" >&6; }
  18901. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
  18902. printf "%s\n" "$as_me: compiler options added: $tmp_options" >&6;}
  18903. else
  18904. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18905. printf "%s\n" "no" >&6; }
  18906. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
  18907. printf "%s\n" "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
  18908. CPPFLAGS="$tmp_save_CPPFLAGS"
  18909. CFLAGS="$tmp_save_CFLAGS"
  18910. fi
  18911. #
  18912. fi
  18913. #
  18914. if test "$compiler_id" != "unknown"; then
  18915. #
  18916. tmp_save_CFLAGS="$CFLAGS"
  18917. tmp_save_CPPFLAGS="$CPPFLAGS"
  18918. #
  18919. tmp_options=""
  18920. tmp_CFLAGS="$CFLAGS"
  18921. tmp_CPPFLAGS="$CPPFLAGS"
  18922. honor_optimize_option="yes"
  18923. #
  18924. #
  18925. if test "$want_optimize" = "assume_no" ||
  18926. test "$want_optimize" = "assume_yes"; then
  18927. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler optimizer assumed setting might be used" >&5
  18928. printf %s "checking if compiler optimizer assumed setting might be used... " >&6; }
  18929. ac_var_match_word="no"
  18930. for word1 in $tmp_CFLAGS; do
  18931. for word2 in $flags_opt_all; do
  18932. if test "$word1" = "$word2"; then
  18933. ac_var_match_word="yes"
  18934. fi
  18935. done
  18936. done
  18937. if test "$ac_var_match_word" = "yes"; then
  18938. honor_optimize_option="no"
  18939. fi
  18940. ac_var_match_word="no"
  18941. for word1 in $tmp_CPPFLAGS; do
  18942. for word2 in $flags_opt_all; do
  18943. if test "$word1" = "$word2"; then
  18944. ac_var_match_word="yes"
  18945. fi
  18946. done
  18947. done
  18948. if test "$ac_var_match_word" = "yes"; then
  18949. honor_optimize_option="no"
  18950. fi
  18951. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $honor_optimize_option" >&5
  18952. printf "%s\n" "$honor_optimize_option" >&6; }
  18953. if test "$honor_optimize_option" = "yes"; then
  18954. if test "$want_optimize" = "assume_yes"; then
  18955. want_optimize="yes"
  18956. fi
  18957. if test "$want_optimize" = "assume_no"; then
  18958. want_optimize="no"
  18959. fi
  18960. fi
  18961. fi
  18962. #
  18963. if test "$honor_optimize_option" = "yes"; then
  18964. ac_var_stripped=""
  18965. for word1 in $tmp_CFLAGS; do
  18966. ac_var_strip_word="no"
  18967. for word2 in $flags_opt_all; do
  18968. if test "$word1" = "$word2"; then
  18969. ac_var_strip_word="yes"
  18970. fi
  18971. done
  18972. if test "$ac_var_strip_word" = "no"; then
  18973. ac_var_stripped="$ac_var_stripped $word1"
  18974. fi
  18975. done
  18976. tmp_CFLAGS="$ac_var_stripped"
  18977. squeeze tmp_CFLAGS
  18978. ac_var_stripped=""
  18979. for word1 in $tmp_CPPFLAGS; do
  18980. ac_var_strip_word="no"
  18981. for word2 in $flags_opt_all; do
  18982. if test "$word1" = "$word2"; then
  18983. ac_var_strip_word="yes"
  18984. fi
  18985. done
  18986. if test "$ac_var_strip_word" = "no"; then
  18987. ac_var_stripped="$ac_var_stripped $word1"
  18988. fi
  18989. done
  18990. tmp_CPPFLAGS="$ac_var_stripped"
  18991. squeeze tmp_CPPFLAGS
  18992. if test "$want_optimize" = "yes"; then
  18993. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer enabling options" >&5
  18994. printf %s "checking if compiler accepts optimizer enabling options... " >&6; }
  18995. tmp_options="$flags_opt_yes"
  18996. fi
  18997. if test "$want_optimize" = "no"; then
  18998. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer disabling options" >&5
  18999. printf %s "checking if compiler accepts optimizer disabling options... " >&6; }
  19000. tmp_options="$flags_opt_off"
  19001. fi
  19002. if test "$flags_prefer_cppflags" = "yes"; then
  19003. CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
  19004. CFLAGS="$tmp_CFLAGS"
  19005. else
  19006. CPPFLAGS="$tmp_CPPFLAGS"
  19007. CFLAGS="$tmp_CFLAGS $tmp_options"
  19008. fi
  19009. squeeze CPPFLAGS
  19010. squeeze CFLAGS
  19011. tmp_compiler_works="unknown"
  19012. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19013. /* end confdefs.h. */
  19014. int
  19015. main (void)
  19016. {
  19017. int i = 1;
  19018. return i;
  19019. ;
  19020. return 0;
  19021. }
  19022. _ACEOF
  19023. if ac_fn_c_try_compile "$LINENO"
  19024. then :
  19025. tmp_compiler_works="yes"
  19026. else $as_nop
  19027. tmp_compiler_works="no"
  19028. echo " " >&6
  19029. sed 's/^/cc-fail: /' conftest.err >&6
  19030. echo " " >&6
  19031. fi
  19032. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19033. if test "$tmp_compiler_works" = "yes"; then
  19034. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19035. /* end confdefs.h. */
  19036. int
  19037. main (void)
  19038. {
  19039. int i = 1;
  19040. return i;
  19041. ;
  19042. return 0;
  19043. }
  19044. _ACEOF
  19045. if ac_fn_c_try_link "$LINENO"
  19046. then :
  19047. tmp_compiler_works="yes"
  19048. else $as_nop
  19049. tmp_compiler_works="no"
  19050. echo " " >&6
  19051. sed 's/^/link-fail: /' conftest.err >&6
  19052. echo " " >&6
  19053. fi
  19054. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19055. conftest$ac_exeext conftest.$ac_ext
  19056. fi
  19057. if test "x$cross_compiling" != "xyes" &&
  19058. test "$tmp_compiler_works" = "yes"; then
  19059. if test "$cross_compiling" = yes
  19060. then :
  19061. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  19062. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  19063. as_fn_error $? "cannot run test program while cross compiling
  19064. See \`config.log' for more details" "$LINENO" 5; }
  19065. else $as_nop
  19066. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19067. /* end confdefs.h. */
  19068. # ifdef __STDC__
  19069. # include <stdlib.h>
  19070. # endif
  19071. int
  19072. main (void)
  19073. {
  19074. int i = 0;
  19075. exit(i);
  19076. ;
  19077. return 0;
  19078. }
  19079. _ACEOF
  19080. if ac_fn_c_try_run "$LINENO"
  19081. then :
  19082. tmp_compiler_works="yes"
  19083. else $as_nop
  19084. tmp_compiler_works="no"
  19085. echo " " >&6
  19086. echo "run-fail: test program exited with status $ac_status" >&6
  19087. echo " " >&6
  19088. fi
  19089. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  19090. conftest.$ac_objext conftest.beam conftest.$ac_ext
  19091. fi
  19092. fi
  19093. if test "$tmp_compiler_works" = "yes"; then
  19094. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19095. printf "%s\n" "yes" >&6; }
  19096. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
  19097. printf "%s\n" "$as_me: compiler options added: $tmp_options" >&6;}
  19098. else
  19099. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19100. printf "%s\n" "no" >&6; }
  19101. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
  19102. printf "%s\n" "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
  19103. CPPFLAGS="$tmp_save_CPPFLAGS"
  19104. CFLAGS="$tmp_save_CFLAGS"
  19105. fi
  19106. fi
  19107. #
  19108. fi
  19109. #
  19110. if test "$compiler_id" != "unknown"; then
  19111. #
  19112. tmp_save_CPPFLAGS="$CPPFLAGS"
  19113. tmp_save_CFLAGS="$CFLAGS"
  19114. tmp_CPPFLAGS=""
  19115. tmp_CFLAGS=""
  19116. #
  19117. case "$compiler_id" in
  19118. #
  19119. CLANG)
  19120. #
  19121. if test "$want_warnings" = "yes"; then
  19122. tmp_CFLAGS="$tmp_CFLAGS -pedantic"
  19123. tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
  19124. tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
  19125. tmp_CFLAGS="$tmp_CFLAGS -Wshadow"
  19126. tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
  19127. tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
  19128. tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
  19129. tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
  19130. tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
  19131. tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
  19132. tmp_CFLAGS="$tmp_CFLAGS -Wundef"
  19133. tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
  19134. tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
  19135. tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
  19136. tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
  19137. tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
  19138. tmp_CFLAGS="$tmp_CFLAGS -Wshorten-64-to-32"
  19139. #
  19140. if test "$compiler_num" -ge "101"; then
  19141. tmp_CFLAGS="$tmp_CFLAGS -Wunused"
  19142. fi
  19143. fi
  19144. ;;
  19145. #
  19146. DEC_C)
  19147. #
  19148. if test "$want_warnings" = "yes"; then
  19149. tmp_CFLAGS="$tmp_CFLAGS -msg_enable level3"
  19150. fi
  19151. ;;
  19152. #
  19153. GNU_C)
  19154. #
  19155. if test "$want_warnings" = "yes"; then
  19156. #
  19157. if test "x$cross_compiling" != "xyes" ||
  19158. test "$compiler_num" -ge "300"; then
  19159. tmp_CFLAGS="$tmp_CFLAGS -pedantic"
  19160. fi
  19161. #
  19162. tmp_CFLAGS="$tmp_CFLAGS -Wall -W"
  19163. #
  19164. if test "$compiler_num" -ge "104"; then
  19165. tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
  19166. if test "x$cross_compiling" != "xyes" ||
  19167. test "$compiler_num" -ge "300"; then
  19168. tmp_CFLAGS="$tmp_CFLAGS -Wunused -Wshadow"
  19169. fi
  19170. fi
  19171. #
  19172. if test "$compiler_num" -ge "207"; then
  19173. tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
  19174. if test "x$cross_compiling" != "xyes" ||
  19175. test "$compiler_num" -ge "300"; then
  19176. tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
  19177. tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
  19178. fi
  19179. fi
  19180. #
  19181. if test "$compiler_num" -ge "295"; then
  19182. tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
  19183. fi
  19184. #
  19185. if test "$compiler_num" -ge "296"; then
  19186. tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
  19187. tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
  19188. tmp_CFLAGS="$tmp_CFLAGS -Wundef"
  19189. fi
  19190. #
  19191. if test "$compiler_num" -ge "297"; then
  19192. tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
  19193. fi
  19194. #
  19195. if test "$compiler_num" -ge "300"; then
  19196. tmp_CFLAGS="$tmp_CFLAGS"
  19197. fi
  19198. #
  19199. if test "$compiler_num" -ge "303"; then
  19200. tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
  19201. fi
  19202. #
  19203. if test "$compiler_num" -ge "304"; then
  19204. tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
  19205. fi
  19206. #
  19207. if test "$compiler_num" -ge "400"; then
  19208. tmp_CFLAGS="$tmp_CFLAGS -Wstrict-aliasing=3"
  19209. fi
  19210. #
  19211. if test "$compiler_num" -ge "402"; then
  19212. tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
  19213. fi
  19214. #
  19215. if test "$compiler_num" -ge "403"; then
  19216. tmp_CFLAGS="$tmp_CFLAGS -Wtype-limits -Wold-style-declaration"
  19217. tmp_CFLAGS="$tmp_CFLAGS -Wmissing-parameter-type -Wempty-body"
  19218. tmp_CFLAGS="$tmp_CFLAGS -Wclobbered -Wignored-qualifiers"
  19219. tmp_CFLAGS="$tmp_CFLAGS -Wconversion -Wno-sign-conversion -Wvla"
  19220. fi
  19221. #
  19222. if test "$compiler_num" -ge "405"; then
  19223. if test "$curl_cv_have_def__WIN32" = "yes"; then
  19224. tmp_CFLAGS="$tmp_CFLAGS -Wno-pedantic-ms-format"
  19225. fi
  19226. fi
  19227. #
  19228. fi
  19229. #
  19230. if test "$compiler_num" -ge "300"; then
  19231. tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
  19232. else
  19233. if test "x$cross_compiling" = "xyes"; then
  19234. if test "$compiler_num" -ge "104"; then
  19235. tmp_CFLAGS="$tmp_CFLAGS -Wno-unused -Wno-shadow"
  19236. fi
  19237. if test "$compiler_num" -ge "207"; then
  19238. tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-declarations"
  19239. tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-prototypes"
  19240. fi
  19241. fi
  19242. fi
  19243. ;;
  19244. #
  19245. HP_UX_C)
  19246. #
  19247. if test "$want_warnings" = "yes"; then
  19248. tmp_CFLAGS="$tmp_CFLAGS +w1"
  19249. fi
  19250. ;;
  19251. #
  19252. IBM_C)
  19253. #
  19254. tmp_CFLAGS="$tmp_CFLAGS"
  19255. ;;
  19256. #
  19257. INTEL_UNIX_C)
  19258. #
  19259. if test "$want_warnings" = "yes"; then
  19260. if test "$compiler_num" -gt "600"; then
  19261. tmp_CPPFLAGS="$tmp_CPPFLAGS -Wall -w2"
  19262. tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcheck"
  19263. tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcomment"
  19264. tmp_CPPFLAGS="$tmp_CPPFLAGS -Wdeprecated"
  19265. tmp_CPPFLAGS="$tmp_CPPFLAGS -Wmissing-prototypes"
  19266. tmp_CPPFLAGS="$tmp_CPPFLAGS -Wp64"
  19267. tmp_CPPFLAGS="$tmp_CPPFLAGS -Wpointer-arith"
  19268. tmp_CPPFLAGS="$tmp_CPPFLAGS -Wreturn-type"
  19269. tmp_CPPFLAGS="$tmp_CPPFLAGS -Wshadow"
  19270. tmp_CPPFLAGS="$tmp_CPPFLAGS -Wuninitialized"
  19271. tmp_CPPFLAGS="$tmp_CPPFLAGS -Wunused-function"
  19272. fi
  19273. fi
  19274. tmp_CFLAGS="$tmp_CFLAGS -fno-omit-frame-pointer"
  19275. tmp_CFLAGS="$tmp_CFLAGS -fno-strict-aliasing"
  19276. tmp_CFLAGS="$tmp_CFLAGS -fp-model precise"
  19277. if test "$compiler_num" -ge "1000"; then
  19278. tmp_CFLAGS="$tmp_CFLAGS -vec-report0"
  19279. fi
  19280. ;;
  19281. #
  19282. INTEL_WINDOWS_C)
  19283. #
  19284. tmp_CFLAGS="$tmp_CFLAGS"
  19285. ;;
  19286. #
  19287. LCC)
  19288. #
  19289. if test "$want_warnings" = "yes"; then
  19290. tmp_CFLAGS="$tmp_CFLAGS"
  19291. fi
  19292. ;;
  19293. #
  19294. SGI_MIPS_C)
  19295. #
  19296. if test "$want_warnings" = "yes"; then
  19297. tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
  19298. fi
  19299. ;;
  19300. #
  19301. SGI_MIPSPRO_C)
  19302. #
  19303. if test "$want_warnings" = "yes"; then
  19304. tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
  19305. tmp_CFLAGS="$tmp_CFLAGS -woff 1209"
  19306. fi
  19307. ;;
  19308. #
  19309. SUNPRO_C)
  19310. #
  19311. if test "$want_warnings" = "yes"; then
  19312. tmp_CFLAGS="$tmp_CFLAGS -v"
  19313. fi
  19314. ;;
  19315. #
  19316. TINY_C)
  19317. #
  19318. if test "$want_warnings" = "yes"; then
  19319. tmp_CFLAGS="$tmp_CFLAGS -Wall"
  19320. tmp_CFLAGS="$tmp_CFLAGS -Wwrite-strings"
  19321. tmp_CFLAGS="$tmp_CFLAGS -Wunsupported"
  19322. fi
  19323. ;;
  19324. #
  19325. WATCOM_UNIX_C)
  19326. #
  19327. if test "$want_warnings" = "yes"; then
  19328. tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
  19329. fi
  19330. ;;
  19331. #
  19332. WATCOM_WINDOWS_C)
  19333. #
  19334. tmp_CFLAGS="$tmp_CFLAGS"
  19335. ;;
  19336. #
  19337. esac
  19338. #
  19339. squeeze tmp_CPPFLAGS
  19340. squeeze tmp_CFLAGS
  19341. #
  19342. if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
  19343. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts strict warning options" >&5
  19344. printf %s "checking if compiler accepts strict warning options... " >&6; }
  19345. CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
  19346. CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
  19347. squeeze CPPFLAGS
  19348. squeeze CFLAGS
  19349. tmp_compiler_works="unknown"
  19350. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19351. /* end confdefs.h. */
  19352. int
  19353. main (void)
  19354. {
  19355. int i = 1;
  19356. return i;
  19357. ;
  19358. return 0;
  19359. }
  19360. _ACEOF
  19361. if ac_fn_c_try_compile "$LINENO"
  19362. then :
  19363. tmp_compiler_works="yes"
  19364. else $as_nop
  19365. tmp_compiler_works="no"
  19366. echo " " >&6
  19367. sed 's/^/cc-fail: /' conftest.err >&6
  19368. echo " " >&6
  19369. fi
  19370. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19371. if test "$tmp_compiler_works" = "yes"; then
  19372. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19373. /* end confdefs.h. */
  19374. int
  19375. main (void)
  19376. {
  19377. int i = 1;
  19378. return i;
  19379. ;
  19380. return 0;
  19381. }
  19382. _ACEOF
  19383. if ac_fn_c_try_link "$LINENO"
  19384. then :
  19385. tmp_compiler_works="yes"
  19386. else $as_nop
  19387. tmp_compiler_works="no"
  19388. echo " " >&6
  19389. sed 's/^/link-fail: /' conftest.err >&6
  19390. echo " " >&6
  19391. fi
  19392. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19393. conftest$ac_exeext conftest.$ac_ext
  19394. fi
  19395. if test "x$cross_compiling" != "xyes" &&
  19396. test "$tmp_compiler_works" = "yes"; then
  19397. if test "$cross_compiling" = yes
  19398. then :
  19399. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  19400. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  19401. as_fn_error $? "cannot run test program while cross compiling
  19402. See \`config.log' for more details" "$LINENO" 5; }
  19403. else $as_nop
  19404. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19405. /* end confdefs.h. */
  19406. # ifdef __STDC__
  19407. # include <stdlib.h>
  19408. # endif
  19409. int
  19410. main (void)
  19411. {
  19412. int i = 0;
  19413. exit(i);
  19414. ;
  19415. return 0;
  19416. }
  19417. _ACEOF
  19418. if ac_fn_c_try_run "$LINENO"
  19419. then :
  19420. tmp_compiler_works="yes"
  19421. else $as_nop
  19422. tmp_compiler_works="no"
  19423. echo " " >&6
  19424. echo "run-fail: test program exited with status $ac_status" >&6
  19425. echo " " >&6
  19426. fi
  19427. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  19428. conftest.$ac_objext conftest.beam conftest.$ac_ext
  19429. fi
  19430. fi
  19431. if test "$tmp_compiler_works" = "yes"; then
  19432. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19433. printf "%s\n" "yes" >&6; }
  19434. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
  19435. printf "%s\n" "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
  19436. else
  19437. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19438. printf "%s\n" "no" >&6; }
  19439. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
  19440. printf "%s\n" "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
  19441. CPPFLAGS="$tmp_save_CPPFLAGS"
  19442. CFLAGS="$tmp_save_CFLAGS"
  19443. fi
  19444. fi
  19445. #
  19446. fi
  19447. if test "$compiler_id" = "INTEL_UNIX_C"; then
  19448. #
  19449. if test "$compiler_num" -ge "1000"; then
  19450. CFLAGS="$CFLAGS -shared-intel"
  19451. elif test "$compiler_num" -ge "900"; then
  19452. CFLAGS="$CFLAGS -i-dynamic"
  19453. fi
  19454. #
  19455. fi
  19456. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler halts on compilation errors" >&5
  19457. printf %s "checking if compiler halts on compilation errors... " >&6; }
  19458. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19459. /* end confdefs.h. */
  19460. int
  19461. main (void)
  19462. {
  19463. force compilation error
  19464. ;
  19465. return 0;
  19466. }
  19467. _ACEOF
  19468. if ac_fn_c_try_compile "$LINENO"
  19469. then :
  19470. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19471. printf "%s\n" "no" >&6; }
  19472. as_fn_error $? "compiler does not halt on compilation errors." "$LINENO" 5
  19473. else $as_nop
  19474. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19475. printf "%s\n" "yes" >&6; }
  19476. fi
  19477. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19478. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler halts on negative sized arrays" >&5
  19479. printf %s "checking if compiler halts on negative sized arrays... " >&6; }
  19480. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19481. /* end confdefs.h. */
  19482. typedef char bad_t[sizeof(char) == sizeof(int) ? -1 : -1 ];
  19483. int
  19484. main (void)
  19485. {
  19486. bad_t dummy;
  19487. ;
  19488. return 0;
  19489. }
  19490. _ACEOF
  19491. if ac_fn_c_try_compile "$LINENO"
  19492. then :
  19493. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19494. printf "%s\n" "no" >&6; }
  19495. as_fn_error $? "compiler does not halt on negative sized arrays." "$LINENO" 5
  19496. else $as_nop
  19497. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19498. printf "%s\n" "yes" >&6; }
  19499. fi
  19500. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19501. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler halts on function prototype mismatch" >&5
  19502. printf %s "checking if compiler halts on function prototype mismatch... " >&6; }
  19503. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19504. /* end confdefs.h. */
  19505. # include <stdlib.h>
  19506. int rand(int n);
  19507. int rand(int n)
  19508. {
  19509. if(n)
  19510. return ++n;
  19511. else
  19512. return n;
  19513. }
  19514. int
  19515. main (void)
  19516. {
  19517. int i[2];
  19518. int j = rand(i[0]);
  19519. if(j)
  19520. return j;
  19521. ;
  19522. return 0;
  19523. }
  19524. _ACEOF
  19525. if ac_fn_c_try_compile "$LINENO"
  19526. then :
  19527. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19528. printf "%s\n" "no" >&6; }
  19529. as_fn_error $? "compiler does not halt on function prototype mismatch." "$LINENO" 5
  19530. else $as_nop
  19531. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19532. printf "%s\n" "yes" >&6; }
  19533. fi
  19534. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19535. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler supports hiding library internal symbols" >&5
  19536. printf %s "checking if compiler supports hiding library internal symbols... " >&6; }
  19537. supports_symbol_hiding="no"
  19538. symbol_hiding_CFLAGS=""
  19539. symbol_hiding_EXTERN=""
  19540. tmp_CFLAGS=""
  19541. tmp_EXTERN=""
  19542. case "$compiler_id" in
  19543. CLANG)
  19544. tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
  19545. tmp_CFLAGS="-fvisibility=hidden"
  19546. supports_symbol_hiding="yes"
  19547. ;;
  19548. GNU_C)
  19549. if test "$compiler_num" -ge "304"; then
  19550. if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
  19551. tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
  19552. tmp_CFLAGS="-fvisibility=hidden"
  19553. supports_symbol_hiding="yes"
  19554. fi
  19555. fi
  19556. ;;
  19557. INTEL_UNIX_C)
  19558. if test "$compiler_num" -ge "900"; then
  19559. if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
  19560. tmp_save_CFLAGS="$CFLAGS"
  19561. CFLAGS="$CFLAGS -fvisibility=hidden"
  19562. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19563. /* end confdefs.h. */
  19564. # include <stdio.h>
  19565. int
  19566. main (void)
  19567. {
  19568. printf("icc fvisibility bug test");
  19569. ;
  19570. return 0;
  19571. }
  19572. _ACEOF
  19573. if ac_fn_c_try_link "$LINENO"
  19574. then :
  19575. tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
  19576. tmp_CFLAGS="-fvisibility=hidden"
  19577. supports_symbol_hiding="yes"
  19578. fi
  19579. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19580. conftest$ac_exeext conftest.$ac_ext
  19581. CFLAGS="$tmp_save_CFLAGS"
  19582. fi
  19583. fi
  19584. ;;
  19585. SUNPRO_C)
  19586. if $CC 2>&1 | grep flags >/dev/null && $CC -flags | grep xldscope= >/dev/null ; then
  19587. tmp_EXTERN="__global"
  19588. tmp_CFLAGS="-xldscope=hidden"
  19589. supports_symbol_hiding="yes"
  19590. fi
  19591. ;;
  19592. esac
  19593. if test "$supports_symbol_hiding" = "yes"; then
  19594. tmp_save_CFLAGS="$CFLAGS"
  19595. CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
  19596. squeeze CFLAGS
  19597. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19598. /* end confdefs.h. */
  19599. $tmp_EXTERN char *dummy(char *buff);
  19600. char *dummy(char *buff)
  19601. {
  19602. if(buff)
  19603. return ++buff;
  19604. else
  19605. return buff;
  19606. }
  19607. int
  19608. main (void)
  19609. {
  19610. char b[16];
  19611. char *r = dummy(&b[0]);
  19612. if(r)
  19613. return (int)*r;
  19614. ;
  19615. return 0;
  19616. }
  19617. _ACEOF
  19618. if ac_fn_c_try_compile "$LINENO"
  19619. then :
  19620. supports_symbol_hiding="yes"
  19621. if test -f conftest.err; then
  19622. grep 'visibility' conftest.err >/dev/null
  19623. if test "$?" -eq "0"; then
  19624. supports_symbol_hiding="no"
  19625. fi
  19626. fi
  19627. else $as_nop
  19628. supports_symbol_hiding="no"
  19629. echo " " >&6
  19630. sed 's/^/cc-src: /' conftest.$ac_ext >&6
  19631. sed 's/^/cc-err: /' conftest.err >&6
  19632. echo " " >&6
  19633. fi
  19634. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19635. CFLAGS="$tmp_save_CFLAGS"
  19636. fi
  19637. if test "$supports_symbol_hiding" = "yes"; then
  19638. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19639. printf "%s\n" "yes" >&6; }
  19640. symbol_hiding_CFLAGS="$tmp_CFLAGS"
  19641. symbol_hiding_EXTERN="$tmp_EXTERN"
  19642. else
  19643. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19644. printf "%s\n" "no" >&6; }
  19645. fi
  19646. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
  19647. printf %s "checking for windows.h... " >&6; }
  19648. if test ${ac_cv_header_windows_h+y}
  19649. then :
  19650. printf %s "(cached) " >&6
  19651. else $as_nop
  19652. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19653. /* end confdefs.h. */
  19654. #undef inline
  19655. #ifndef WIN32_LEAN_AND_MEAN
  19656. #define WIN32_LEAN_AND_MEAN
  19657. #endif
  19658. #include <windows.h>
  19659. int
  19660. main (void)
  19661. {
  19662. #if defined(__CYGWIN__) || defined(__CEGCC__)
  19663. HAVE_WINDOWS_H shall not be defined.
  19664. #else
  19665. int dummy=2*WINVER;
  19666. #endif
  19667. ;
  19668. return 0;
  19669. }
  19670. _ACEOF
  19671. if ac_fn_c_try_compile "$LINENO"
  19672. then :
  19673. ac_cv_header_windows_h="yes"
  19674. else $as_nop
  19675. ac_cv_header_windows_h="no"
  19676. fi
  19677. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19678. fi
  19679. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_windows_h" >&5
  19680. printf "%s\n" "$ac_cv_header_windows_h" >&6; }
  19681. case "$ac_cv_header_windows_h" in
  19682. yes)
  19683. printf "%s\n" "#define HAVE_WINDOWS_H 1" >>confdefs.h
  19684. printf "%s\n" "#define WIN32_LEAN_AND_MEAN 1" >>confdefs.h
  19685. ;;
  19686. esac
  19687. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build target is a native Windows one" >&5
  19688. printf %s "checking whether build target is a native Windows one... " >&6; }
  19689. if test ${ac_cv_native_windows+y}
  19690. then :
  19691. printf %s "(cached) " >&6
  19692. else $as_nop
  19693. if test "$ac_cv_header_windows_h" = "no"; then
  19694. ac_cv_native_windows="no"
  19695. else
  19696. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19697. /* end confdefs.h. */
  19698. int
  19699. main (void)
  19700. {
  19701. #if defined(__MINGW32__) || defined(__MINGW32CE__) || \
  19702. (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64)))
  19703. int dummy=1;
  19704. #else
  19705. Not a native Windows build target.
  19706. #endif
  19707. ;
  19708. return 0;
  19709. }
  19710. _ACEOF
  19711. if ac_fn_c_try_compile "$LINENO"
  19712. then :
  19713. ac_cv_native_windows="yes"
  19714. else $as_nop
  19715. ac_cv_native_windows="no"
  19716. fi
  19717. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19718. fi
  19719. fi
  19720. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_native_windows" >&5
  19721. printf "%s\n" "$ac_cv_native_windows" >&6; }
  19722. if test "x$ac_cv_native_windows" = xyes; then
  19723. DOING_NATIVE_WINDOWS_TRUE=
  19724. DOING_NATIVE_WINDOWS_FALSE='#'
  19725. else
  19726. DOING_NATIVE_WINDOWS_TRUE='#'
  19727. DOING_NATIVE_WINDOWS_FALSE=
  19728. fi
  19729. case X-"$ac_cv_native_windows" in
  19730. X-yes)
  19731. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
  19732. printf %s "checking for winsock.h... " >&6; }
  19733. if test ${ac_cv_header_winsock_h+y}
  19734. then :
  19735. printf %s "(cached) " >&6
  19736. else $as_nop
  19737. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19738. /* end confdefs.h. */
  19739. #undef inline
  19740. #ifndef WIN32_LEAN_AND_MEAN
  19741. #define WIN32_LEAN_AND_MEAN
  19742. #endif
  19743. #include <windows.h>
  19744. #include <winsock.h>
  19745. int
  19746. main (void)
  19747. {
  19748. #if defined(__CYGWIN__) || defined(__CEGCC__)
  19749. HAVE_WINSOCK_H shall not be defined.
  19750. #else
  19751. int dummy=WSACleanup();
  19752. #endif
  19753. ;
  19754. return 0;
  19755. }
  19756. _ACEOF
  19757. if ac_fn_c_try_compile "$LINENO"
  19758. then :
  19759. ac_cv_header_winsock_h="yes"
  19760. else $as_nop
  19761. ac_cv_header_winsock_h="no"
  19762. fi
  19763. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19764. fi
  19765. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock_h" >&5
  19766. printf "%s\n" "$ac_cv_header_winsock_h" >&6; }
  19767. case "$ac_cv_header_winsock_h" in
  19768. yes)
  19769. printf "%s\n" "#define HAVE_WINSOCK_H 1" >>confdefs.h
  19770. ;;
  19771. esac
  19772. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
  19773. printf %s "checking for winsock2.h... " >&6; }
  19774. if test ${ac_cv_header_winsock2_h+y}
  19775. then :
  19776. printf %s "(cached) " >&6
  19777. else $as_nop
  19778. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19779. /* end confdefs.h. */
  19780. #undef inline
  19781. #ifndef WIN32_LEAN_AND_MEAN
  19782. #define WIN32_LEAN_AND_MEAN
  19783. #endif
  19784. #include <windows.h>
  19785. #include <winsock2.h>
  19786. int
  19787. main (void)
  19788. {
  19789. #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
  19790. HAVE_WINSOCK2_H shall not be defined.
  19791. #else
  19792. int dummy=2*IPPROTO_ESP;
  19793. #endif
  19794. ;
  19795. return 0;
  19796. }
  19797. _ACEOF
  19798. if ac_fn_c_try_compile "$LINENO"
  19799. then :
  19800. ac_cv_header_winsock2_h="yes"
  19801. else $as_nop
  19802. ac_cv_header_winsock2_h="no"
  19803. fi
  19804. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19805. fi
  19806. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock2_h" >&5
  19807. printf "%s\n" "$ac_cv_header_winsock2_h" >&6; }
  19808. case "$ac_cv_header_winsock2_h" in
  19809. yes)
  19810. printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h
  19811. ;;
  19812. esac
  19813. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
  19814. printf %s "checking for ws2tcpip.h... " >&6; }
  19815. if test ${ac_cv_header_ws2tcpip_h+y}
  19816. then :
  19817. printf %s "(cached) " >&6
  19818. else $as_nop
  19819. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19820. /* end confdefs.h. */
  19821. #undef inline
  19822. #ifndef WIN32_LEAN_AND_MEAN
  19823. #define WIN32_LEAN_AND_MEAN
  19824. #endif
  19825. #include <windows.h>
  19826. #include <winsock2.h>
  19827. #include <ws2tcpip.h>
  19828. int
  19829. main (void)
  19830. {
  19831. #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
  19832. HAVE_WS2TCPIP_H shall not be defined.
  19833. #else
  19834. int dummy=2*IP_PKTINFO;
  19835. #endif
  19836. ;
  19837. return 0;
  19838. }
  19839. _ACEOF
  19840. if ac_fn_c_try_compile "$LINENO"
  19841. then :
  19842. ac_cv_header_ws2tcpip_h="yes"
  19843. else $as_nop
  19844. ac_cv_header_ws2tcpip_h="no"
  19845. fi
  19846. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19847. fi
  19848. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ws2tcpip_h" >&5
  19849. printf "%s\n" "$ac_cv_header_ws2tcpip_h" >&6; }
  19850. case "$ac_cv_header_ws2tcpip_h" in
  19851. yes)
  19852. printf "%s\n" "#define HAVE_WS2TCPIP_H 1" >>confdefs.h
  19853. ;;
  19854. esac
  19855. CPPFLAGS="$CPPFLAGS -D_WIN32_WINNT=0x0600"
  19856. ;;
  19857. *)
  19858. ac_cv_header_winsock_h="no"
  19859. ac_cv_header_winsock2_h="no"
  19860. ac_cv_header_ws2tcpip_h="no"
  19861. ;;
  19862. esac
  19863. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if X/Open network library is required" >&5
  19864. printf %s "checking if X/Open network library is required... " >&6; }
  19865. tst_lib_xnet_required="no"
  19866. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19867. /* end confdefs.h. */
  19868. int main (void)
  19869. {
  19870. #if defined(__hpux) && defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 600)
  19871. return 0;
  19872. #elif defined(__hpux) && defined(_XOPEN_SOURCE_EXTENDED)
  19873. return 0;
  19874. #else
  19875. force compilation error
  19876. #endif
  19877. }
  19878. _ACEOF
  19879. if ac_fn_c_try_compile "$LINENO"
  19880. then :
  19881. tst_lib_xnet_required="yes"
  19882. LIBS="$LIBS -lxnet"
  19883. fi
  19884. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19885. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_lib_xnet_required" >&5
  19886. printf "%s\n" "$tst_lib_xnet_required" >&6; }
  19887. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  19888. if test "x$ac_cv_func_gethostbyname" = xyes
  19889. then :
  19890. HAVE_GETHOSTBYNAME="1"
  19891. else $as_nop
  19892. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  19893. printf %s "checking for gethostbyname in -lnsl... " >&6; }
  19894. if test ${ac_cv_lib_nsl_gethostbyname+y}
  19895. then :
  19896. printf %s "(cached) " >&6
  19897. else $as_nop
  19898. ac_check_lib_save_LIBS=$LIBS
  19899. LIBS="-lnsl $LIBS"
  19900. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19901. /* end confdefs.h. */
  19902. /* Override any GCC internal prototype to avoid an error.
  19903. Use char because int might match the return type of a GCC
  19904. builtin and then its argument prototype would still apply. */
  19905. char gethostbyname ();
  19906. int
  19907. main (void)
  19908. {
  19909. return gethostbyname ();
  19910. ;
  19911. return 0;
  19912. }
  19913. _ACEOF
  19914. if ac_fn_c_try_link "$LINENO"
  19915. then :
  19916. ac_cv_lib_nsl_gethostbyname=yes
  19917. else $as_nop
  19918. ac_cv_lib_nsl_gethostbyname=no
  19919. fi
  19920. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19921. conftest$ac_exeext conftest.$ac_ext
  19922. LIBS=$ac_check_lib_save_LIBS
  19923. fi
  19924. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  19925. printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; }
  19926. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
  19927. then :
  19928. HAVE_GETHOSTBYNAME="1"
  19929. LIBS="$LIBS -lnsl"
  19930. fi
  19931. fi
  19932. if test "$HAVE_GETHOSTBYNAME" != "1"
  19933. then
  19934. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5
  19935. printf %s "checking for gethostbyname in -lsocket... " >&6; }
  19936. if test ${ac_cv_lib_socket_gethostbyname+y}
  19937. then :
  19938. printf %s "(cached) " >&6
  19939. else $as_nop
  19940. ac_check_lib_save_LIBS=$LIBS
  19941. LIBS="-lsocket $LIBS"
  19942. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19943. /* end confdefs.h. */
  19944. /* Override any GCC internal prototype to avoid an error.
  19945. Use char because int might match the return type of a GCC
  19946. builtin and then its argument prototype would still apply. */
  19947. char gethostbyname ();
  19948. int
  19949. main (void)
  19950. {
  19951. return gethostbyname ();
  19952. ;
  19953. return 0;
  19954. }
  19955. _ACEOF
  19956. if ac_fn_c_try_link "$LINENO"
  19957. then :
  19958. ac_cv_lib_socket_gethostbyname=yes
  19959. else $as_nop
  19960. ac_cv_lib_socket_gethostbyname=no
  19961. fi
  19962. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19963. conftest$ac_exeext conftest.$ac_ext
  19964. LIBS=$ac_check_lib_save_LIBS
  19965. fi
  19966. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5
  19967. printf "%s\n" "$ac_cv_lib_socket_gethostbyname" >&6; }
  19968. if test "x$ac_cv_lib_socket_gethostbyname" = xyes
  19969. then :
  19970. HAVE_GETHOSTBYNAME="1"
  19971. LIBS="$LIBS -lsocket"
  19972. fi
  19973. fi
  19974. if test "$HAVE_GETHOSTBYNAME" != "1"
  19975. then
  19976. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname with both nsl and socket libs" >&5
  19977. printf %s "checking for gethostbyname with both nsl and socket libs... " >&6; }
  19978. my_ac_save_LIBS=$LIBS
  19979. LIBS="-lnsl -lsocket $LIBS"
  19980. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19981. /* end confdefs.h. */
  19982. int
  19983. main (void)
  19984. {
  19985. gethostbyname();
  19986. ;
  19987. return 0;
  19988. }
  19989. _ACEOF
  19990. if ac_fn_c_try_link "$LINENO"
  19991. then :
  19992. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19993. printf "%s\n" "yes" >&6; }
  19994. HAVE_GETHOSTBYNAME="1"
  19995. else $as_nop
  19996. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19997. printf "%s\n" "no" >&6; }
  19998. LIBS=$my_ac_save_LIBS
  19999. fi
  20000. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20001. conftest$ac_exeext conftest.$ac_ext
  20002. fi
  20003. if test "$HAVE_GETHOSTBYNAME" != "1"
  20004. then
  20005. if test "$ac_cv_header_windows_h" = "yes"; then
  20006. if test "$ac_cv_header_winsock_h" = "yes"; then
  20007. case $host in
  20008. *-*-mingw32ce*)
  20009. winsock_LIB="-lwinsock"
  20010. ;;
  20011. *)
  20012. winsock_LIB="-lwsock32"
  20013. ;;
  20014. esac
  20015. fi
  20016. if test "$ac_cv_header_winsock2_h" = "yes"; then
  20017. winsock_LIB="-lws2_32"
  20018. fi
  20019. if test ! -z "$winsock_LIB"; then
  20020. my_ac_save_LIBS=$LIBS
  20021. LIBS="$winsock_LIB $LIBS"
  20022. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in $winsock_LIB" >&5
  20023. printf %s "checking for gethostbyname in $winsock_LIB... " >&6; }
  20024. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20025. /* end confdefs.h. */
  20026. #ifdef HAVE_WINDOWS_H
  20027. #ifndef WIN32_LEAN_AND_MEAN
  20028. #define WIN32_LEAN_AND_MEAN
  20029. #endif
  20030. #include <windows.h>
  20031. #ifdef HAVE_WINSOCK2_H
  20032. #include <winsock2.h>
  20033. #else
  20034. #ifdef HAVE_WINSOCK_H
  20035. #include <winsock.h>
  20036. #endif
  20037. #endif
  20038. #endif
  20039. int
  20040. main (void)
  20041. {
  20042. gethostbyname("www.dummysite.com");
  20043. ;
  20044. return 0;
  20045. }
  20046. _ACEOF
  20047. if ac_fn_c_try_link "$LINENO"
  20048. then :
  20049. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20050. printf "%s\n" "yes" >&6; }
  20051. HAVE_GETHOSTBYNAME="1"
  20052. else $as_nop
  20053. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20054. printf "%s\n" "no" >&6; }
  20055. winsock_LIB=""
  20056. LIBS=$my_ac_save_LIBS
  20057. fi
  20058. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20059. conftest$ac_exeext conftest.$ac_ext
  20060. fi
  20061. fi
  20062. fi
  20063. if test "$HAVE_GETHOSTBYNAME" != "1"
  20064. then
  20065. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for Minix 3" >&5
  20066. printf %s "checking for gethostbyname for Minix 3... " >&6; }
  20067. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20068. /* end confdefs.h. */
  20069. /* Older Minix versions may need <net/gen/netdb.h> here instead */
  20070. #include <netdb.h>
  20071. int
  20072. main (void)
  20073. {
  20074. gethostbyname("www.dummysite.com");
  20075. ;
  20076. return 0;
  20077. }
  20078. _ACEOF
  20079. if ac_fn_c_try_link "$LINENO"
  20080. then :
  20081. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20082. printf "%s\n" "yes" >&6; }
  20083. HAVE_GETHOSTBYNAME="1"
  20084. else $as_nop
  20085. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20086. printf "%s\n" "no" >&6; }
  20087. fi
  20088. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20089. conftest$ac_exeext conftest.$ac_ext
  20090. fi
  20091. if test "$HAVE_GETHOSTBYNAME" != "1"
  20092. then
  20093. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for eCos" >&5
  20094. printf %s "checking for gethostbyname for eCos... " >&6; }
  20095. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20096. /* end confdefs.h. */
  20097. #include <stdio.h>
  20098. #include <netdb.h>
  20099. int
  20100. main (void)
  20101. {
  20102. gethostbyname("www.dummysite.com");
  20103. ;
  20104. return 0;
  20105. }
  20106. _ACEOF
  20107. if ac_fn_c_try_link "$LINENO"
  20108. then :
  20109. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20110. printf "%s\n" "yes" >&6; }
  20111. HAVE_GETHOSTBYNAME="1"
  20112. else $as_nop
  20113. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20114. printf "%s\n" "no" >&6; }
  20115. fi
  20116. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20117. conftest$ac_exeext conftest.$ac_ext
  20118. fi
  20119. if test "$HAVE_GETHOSTBYNAME" != "1"
  20120. then
  20121. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnet" >&5
  20122. printf %s "checking for gethostbyname in -lnet... " >&6; }
  20123. if test ${ac_cv_lib_net_gethostbyname+y}
  20124. then :
  20125. printf %s "(cached) " >&6
  20126. else $as_nop
  20127. ac_check_lib_save_LIBS=$LIBS
  20128. LIBS="-lnet $LIBS"
  20129. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20130. /* end confdefs.h. */
  20131. /* Override any GCC internal prototype to avoid an error.
  20132. Use char because int might match the return type of a GCC
  20133. builtin and then its argument prototype would still apply. */
  20134. char gethostbyname ();
  20135. int
  20136. main (void)
  20137. {
  20138. return gethostbyname ();
  20139. ;
  20140. return 0;
  20141. }
  20142. _ACEOF
  20143. if ac_fn_c_try_link "$LINENO"
  20144. then :
  20145. ac_cv_lib_net_gethostbyname=yes
  20146. else $as_nop
  20147. ac_cv_lib_net_gethostbyname=no
  20148. fi
  20149. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20150. conftest$ac_exeext conftest.$ac_ext
  20151. LIBS=$ac_check_lib_save_LIBS
  20152. fi
  20153. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_net_gethostbyname" >&5
  20154. printf "%s\n" "$ac_cv_lib_net_gethostbyname" >&6; }
  20155. if test "x$ac_cv_lib_net_gethostbyname" = xyes
  20156. then :
  20157. HAVE_GETHOSTBYNAME="1"
  20158. LIBS="$LIBS -lnet"
  20159. fi
  20160. fi
  20161. if test "$HAVE_GETHOSTBYNAME" != "1"; then
  20162. as_fn_error $? "couldn't find libraries for gethostbyname()" "$LINENO" 5
  20163. fi
  20164. if test "x$host_vendor" = "xapple"
  20165. then :
  20166. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing res_servicename" >&5
  20167. printf %s "checking for library containing res_servicename... " >&6; }
  20168. if test ${ac_cv_search_res_servicename+y}
  20169. then :
  20170. printf %s "(cached) " >&6
  20171. else $as_nop
  20172. ac_func_search_save_LIBS=$LIBS
  20173. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20174. /* end confdefs.h. */
  20175. /* Override any GCC internal prototype to avoid an error.
  20176. Use char because int might match the return type of a GCC
  20177. builtin and then its argument prototype would still apply. */
  20178. char res_servicename ();
  20179. int
  20180. main (void)
  20181. {
  20182. return res_servicename ();
  20183. ;
  20184. return 0;
  20185. }
  20186. _ACEOF
  20187. for ac_lib in '' resolv
  20188. do
  20189. if test -z "$ac_lib"; then
  20190. ac_res="none required"
  20191. else
  20192. ac_res=-l$ac_lib
  20193. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  20194. fi
  20195. if ac_fn_c_try_link "$LINENO"
  20196. then :
  20197. ac_cv_search_res_servicename=$ac_res
  20198. fi
  20199. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20200. conftest$ac_exeext
  20201. if test ${ac_cv_search_res_servicename+y}
  20202. then :
  20203. break
  20204. fi
  20205. done
  20206. if test ${ac_cv_search_res_servicename+y}
  20207. then :
  20208. else $as_nop
  20209. ac_cv_search_res_servicename=no
  20210. fi
  20211. rm conftest.$ac_ext
  20212. LIBS=$ac_func_search_save_LIBS
  20213. fi
  20214. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_servicename" >&5
  20215. printf "%s\n" "$ac_cv_search_res_servicename" >&6; }
  20216. ac_res=$ac_cv_search_res_servicename
  20217. if test "$ac_res" != no
  20218. then :
  20219. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  20220. printf "%s\n" "#define CARES_USE_LIBRESOLV 1" >>confdefs.h
  20221. else $as_nop
  20222. as_fn_error $? "Unable to find libresolv which is required for iPhone targets" "$LINENO" 5
  20223. fi
  20224. fi
  20225. if test "x$host_vendor" = "xibm" -a "x$host_os" = "xopenedition"
  20226. then :
  20227. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing res_init" >&5
  20228. printf %s "checking for library containing res_init... " >&6; }
  20229. if test ${ac_cv_search_res_init+y}
  20230. then :
  20231. printf %s "(cached) " >&6
  20232. else $as_nop
  20233. ac_func_search_save_LIBS=$LIBS
  20234. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20235. /* end confdefs.h. */
  20236. /* Override any GCC internal prototype to avoid an error.
  20237. Use char because int might match the return type of a GCC
  20238. builtin and then its argument prototype would still apply. */
  20239. char res_init ();
  20240. int
  20241. main (void)
  20242. {
  20243. return res_init ();
  20244. ;
  20245. return 0;
  20246. }
  20247. _ACEOF
  20248. for ac_lib in '' resolv
  20249. do
  20250. if test -z "$ac_lib"; then
  20251. ac_res="none required"
  20252. else
  20253. ac_res=-l$ac_lib
  20254. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  20255. fi
  20256. if ac_fn_c_try_link "$LINENO"
  20257. then :
  20258. ac_cv_search_res_init=$ac_res
  20259. fi
  20260. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20261. conftest$ac_exeext
  20262. if test ${ac_cv_search_res_init+y}
  20263. then :
  20264. break
  20265. fi
  20266. done
  20267. if test ${ac_cv_search_res_init+y}
  20268. then :
  20269. else $as_nop
  20270. ac_cv_search_res_init=no
  20271. fi
  20272. rm conftest.$ac_ext
  20273. LIBS=$ac_func_search_save_LIBS
  20274. fi
  20275. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_init" >&5
  20276. printf "%s\n" "$ac_cv_search_res_init" >&6; }
  20277. ac_res=$ac_cv_search_res_init
  20278. if test "$ac_res" != no
  20279. then :
  20280. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  20281. printf "%s\n" "#define CARES_USE_LIBRESOLV 1" >>confdefs.h
  20282. else $as_nop
  20283. as_fn_error $? "Unable to find libresolv which is required for z/OS" "$LINENO" 5
  20284. fi
  20285. fi
  20286. ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
  20287. if test "x$ac_cv_func_strcasecmp" = xyes
  20288. then :
  20289. else $as_nop
  20290. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lresolve" >&5
  20291. printf %s "checking for strcasecmp in -lresolve... " >&6; }
  20292. if test ${ac_cv_lib_resolve_strcasecmp+y}
  20293. then :
  20294. printf %s "(cached) " >&6
  20295. else $as_nop
  20296. ac_check_lib_save_LIBS=$LIBS
  20297. LIBS="-lresolve $LIBS"
  20298. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20299. /* end confdefs.h. */
  20300. /* Override any GCC internal prototype to avoid an error.
  20301. Use char because int might match the return type of a GCC
  20302. builtin and then its argument prototype would still apply. */
  20303. char strcasecmp ();
  20304. int
  20305. main (void)
  20306. {
  20307. return strcasecmp ();
  20308. ;
  20309. return 0;
  20310. }
  20311. _ACEOF
  20312. if ac_fn_c_try_link "$LINENO"
  20313. then :
  20314. ac_cv_lib_resolve_strcasecmp=yes
  20315. else $as_nop
  20316. ac_cv_lib_resolve_strcasecmp=no
  20317. fi
  20318. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20319. conftest$ac_exeext conftest.$ac_ext
  20320. LIBS=$ac_check_lib_save_LIBS
  20321. fi
  20322. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolve_strcasecmp" >&5
  20323. printf "%s\n" "$ac_cv_lib_resolve_strcasecmp" >&6; }
  20324. if test "x$ac_cv_lib_resolve_strcasecmp" = xyes
  20325. then :
  20326. printf "%s\n" "#define HAVE_LIBRESOLVE 1" >>confdefs.h
  20327. LIBS="-lresolve $LIBS"
  20328. fi
  20329. fi
  20330. if test "$ac_cv_lib_resolve_strcasecmp" = "$ac_cv_func_strcasecmp"; then
  20331. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lresolve" >&5
  20332. printf %s "checking for strcasecmp in -lresolve... " >&6; }
  20333. if test ${ac_cv_lib_resolve_strcasecmp+y}
  20334. then :
  20335. printf %s "(cached) " >&6
  20336. else $as_nop
  20337. ac_check_lib_save_LIBS=$LIBS
  20338. LIBS="-lresolve -lnsl $LIBS"
  20339. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20340. /* end confdefs.h. */
  20341. /* Override any GCC internal prototype to avoid an error.
  20342. Use char because int might match the return type of a GCC
  20343. builtin and then its argument prototype would still apply. */
  20344. char strcasecmp ();
  20345. int
  20346. main (void)
  20347. {
  20348. return strcasecmp ();
  20349. ;
  20350. return 0;
  20351. }
  20352. _ACEOF
  20353. if ac_fn_c_try_link "$LINENO"
  20354. then :
  20355. ac_cv_lib_resolve_strcasecmp=yes
  20356. else $as_nop
  20357. ac_cv_lib_resolve_strcasecmp=no
  20358. fi
  20359. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20360. conftest$ac_exeext conftest.$ac_ext
  20361. LIBS=$ac_check_lib_save_LIBS
  20362. fi
  20363. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolve_strcasecmp" >&5
  20364. printf "%s\n" "$ac_cv_lib_resolve_strcasecmp" >&6; }
  20365. if test "x$ac_cv_lib_resolve_strcasecmp" = xyes
  20366. then :
  20367. LIBS="-lresolve $LIBS"
  20368. fi
  20369. fi
  20370. ac_cv_func_strcasecmp="no"
  20371. if test "$ac_cv_header_winsock2_h" = "yes"; then
  20372. LIBS="$LIBS -liphlpapi"
  20373. fi
  20374. cares_includes_winsock2="\
  20375. /* includes start */
  20376. #ifdef HAVE_WINDOWS_H
  20377. # ifndef WIN32_LEAN_AND_MEAN
  20378. # define WIN32_LEAN_AND_MEAN
  20379. # endif
  20380. # include <windows.h>
  20381. # ifdef HAVE_WINSOCK2_H
  20382. # include <winsock2.h>
  20383. # else
  20384. # ifdef HAVE_WINSOCK_H
  20385. # include <winsock.h>
  20386. # endif
  20387. # endif
  20388. #endif
  20389. /* includes end */"
  20390. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
  20391. printf %s "checking for windows.h... " >&6; }
  20392. if test ${ac_cv_header_windows_h+y}
  20393. then :
  20394. printf %s "(cached) " >&6
  20395. else $as_nop
  20396. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20397. /* end confdefs.h. */
  20398. #undef inline
  20399. #ifndef WIN32_LEAN_AND_MEAN
  20400. #define WIN32_LEAN_AND_MEAN
  20401. #endif
  20402. #include <windows.h>
  20403. int
  20404. main (void)
  20405. {
  20406. #if defined(__CYGWIN__) || defined(__CEGCC__)
  20407. HAVE_WINDOWS_H shall not be defined.
  20408. #else
  20409. int dummy=2*WINVER;
  20410. #endif
  20411. ;
  20412. return 0;
  20413. }
  20414. _ACEOF
  20415. if ac_fn_c_try_compile "$LINENO"
  20416. then :
  20417. ac_cv_header_windows_h="yes"
  20418. else $as_nop
  20419. ac_cv_header_windows_h="no"
  20420. fi
  20421. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20422. fi
  20423. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_windows_h" >&5
  20424. printf "%s\n" "$ac_cv_header_windows_h" >&6; }
  20425. case "$ac_cv_header_windows_h" in
  20426. yes)
  20427. printf "%s\n" "#define HAVE_WINDOWS_H 1" >>confdefs.h
  20428. printf "%s\n" "#define WIN32_LEAN_AND_MEAN 1" >>confdefs.h
  20429. ;;
  20430. esac
  20431. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
  20432. printf %s "checking for winsock.h... " >&6; }
  20433. if test ${ac_cv_header_winsock_h+y}
  20434. then :
  20435. printf %s "(cached) " >&6
  20436. else $as_nop
  20437. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20438. /* end confdefs.h. */
  20439. #undef inline
  20440. #ifndef WIN32_LEAN_AND_MEAN
  20441. #define WIN32_LEAN_AND_MEAN
  20442. #endif
  20443. #include <windows.h>
  20444. #include <winsock.h>
  20445. int
  20446. main (void)
  20447. {
  20448. #if defined(__CYGWIN__) || defined(__CEGCC__)
  20449. HAVE_WINSOCK_H shall not be defined.
  20450. #else
  20451. int dummy=WSACleanup();
  20452. #endif
  20453. ;
  20454. return 0;
  20455. }
  20456. _ACEOF
  20457. if ac_fn_c_try_compile "$LINENO"
  20458. then :
  20459. ac_cv_header_winsock_h="yes"
  20460. else $as_nop
  20461. ac_cv_header_winsock_h="no"
  20462. fi
  20463. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20464. fi
  20465. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock_h" >&5
  20466. printf "%s\n" "$ac_cv_header_winsock_h" >&6; }
  20467. case "$ac_cv_header_winsock_h" in
  20468. yes)
  20469. printf "%s\n" "#define HAVE_WINSOCK_H 1" >>confdefs.h
  20470. ;;
  20471. esac
  20472. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
  20473. printf %s "checking for winsock2.h... " >&6; }
  20474. if test ${ac_cv_header_winsock2_h+y}
  20475. then :
  20476. printf %s "(cached) " >&6
  20477. else $as_nop
  20478. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20479. /* end confdefs.h. */
  20480. #undef inline
  20481. #ifndef WIN32_LEAN_AND_MEAN
  20482. #define WIN32_LEAN_AND_MEAN
  20483. #endif
  20484. #include <windows.h>
  20485. #include <winsock2.h>
  20486. int
  20487. main (void)
  20488. {
  20489. #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
  20490. HAVE_WINSOCK2_H shall not be defined.
  20491. #else
  20492. int dummy=2*IPPROTO_ESP;
  20493. #endif
  20494. ;
  20495. return 0;
  20496. }
  20497. _ACEOF
  20498. if ac_fn_c_try_compile "$LINENO"
  20499. then :
  20500. ac_cv_header_winsock2_h="yes"
  20501. else $as_nop
  20502. ac_cv_header_winsock2_h="no"
  20503. fi
  20504. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20505. fi
  20506. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock2_h" >&5
  20507. printf "%s\n" "$ac_cv_header_winsock2_h" >&6; }
  20508. case "$ac_cv_header_winsock2_h" in
  20509. yes)
  20510. printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h
  20511. ;;
  20512. esac
  20513. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for connect in libraries" >&5
  20514. printf %s "checking for connect in libraries... " >&6; }
  20515. tst_connect_save_LIBS="$LIBS"
  20516. tst_connect_need_LIBS="unknown"
  20517. for tst_lib in '' '-lsocket' ; do
  20518. if test "$tst_connect_need_LIBS" = "unknown"; then
  20519. LIBS="$tst_lib $tst_connect_save_LIBS"
  20520. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20521. /* end confdefs.h. */
  20522. $cares_includes_winsock2
  20523. #ifndef HAVE_WINDOWS_H
  20524. int connect(int, void*, int);
  20525. #endif
  20526. int
  20527. main (void)
  20528. {
  20529. if(0 != connect(0, 0, 0))
  20530. return 1;
  20531. ;
  20532. return 0;
  20533. }
  20534. _ACEOF
  20535. if ac_fn_c_try_link "$LINENO"
  20536. then :
  20537. tst_connect_need_LIBS="$tst_lib"
  20538. fi
  20539. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20540. conftest$ac_exeext conftest.$ac_ext
  20541. fi
  20542. done
  20543. LIBS="$tst_connect_save_LIBS"
  20544. #
  20545. case X-"$tst_connect_need_LIBS" in
  20546. X-unknown)
  20547. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot find connect" >&5
  20548. printf "%s\n" "cannot find connect" >&6; }
  20549. as_fn_error $? "cannot find connect function in libraries." "$LINENO" 5
  20550. ;;
  20551. X-)
  20552. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20553. printf "%s\n" "yes" >&6; }
  20554. ;;
  20555. *)
  20556. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_connect_need_LIBS" >&5
  20557. printf "%s\n" "$tst_connect_need_LIBS" >&6; }
  20558. LIBS="$tst_connect_need_LIBS $tst_connect_save_LIBS"
  20559. ;;
  20560. esac
  20561. if test "x$host_vendor" = "xapple"
  20562. then :
  20563. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iOS minimum version 10 or later" >&5
  20564. printf %s "checking for iOS minimum version 10 or later... " >&6; }
  20565. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20566. /* end confdefs.h. */
  20567. #include <stdio.h>
  20568. #include <TargetConditionals.h>
  20569. int
  20570. main (void)
  20571. {
  20572. #if TARGET_OS_IPHONE == 0 || __IPHONE_OS_VERSION_MIN_REQUIRED < 100000
  20573. #error Not iOS 10 or later
  20574. #endif
  20575. return 0;
  20576. ;
  20577. return 0;
  20578. }
  20579. _ACEOF
  20580. if ac_fn_c_try_compile "$LINENO"
  20581. then :
  20582. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20583. printf "%s\n" "yes" >&6; }
  20584. ac_cv_ios_10="yes"
  20585. else $as_nop
  20586. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20587. printf "%s\n" "no" >&6; }
  20588. fi
  20589. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20590. fi
  20591. if test "x$host_vendor" = "xapple"
  20592. then :
  20593. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for macOS minimum version 10.12 or later" >&5
  20594. printf %s "checking for macOS minimum version 10.12 or later... " >&6; }
  20595. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20596. /* end confdefs.h. */
  20597. #include <stdio.h>
  20598. #include <TargetConditionals.h>
  20599. int
  20600. main (void)
  20601. {
  20602. #ifndef MAC_OS_X_VERSION_10_12
  20603. # define MAC_OS_X_VERSION_10_12 101200
  20604. #endif
  20605. #if MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_12
  20606. #error Not macOS 10.12 or later
  20607. #endif
  20608. return 0;
  20609. ;
  20610. return 0;
  20611. }
  20612. _ACEOF
  20613. if ac_fn_c_try_compile "$LINENO"
  20614. then :
  20615. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20616. printf "%s\n" "yes" >&6; }
  20617. ac_cv_macos_10_12="yes"
  20618. else $as_nop
  20619. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20620. printf "%s\n" "no" >&6; }
  20621. fi
  20622. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20623. fi
  20624. if test "x$host_vendor" != "xapple" || test "x$ac_cv_ios_10" = "xyes" || test "x$ac_cv_macos_10_12" = "xyes"; then
  20625. # Obsolete code to be removed.
  20626. if test $ac_cv_header_sys_time_h = yes; then
  20627. printf "%s\n" "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  20628. fi
  20629. # End of obsolete code.
  20630. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
  20631. if test "x$ac_cv_header_sys_types_h" = xyes
  20632. then :
  20633. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  20634. fi
  20635. ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
  20636. if test "x$ac_cv_header_sys_time_h" = xyes
  20637. then :
  20638. printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
  20639. fi
  20640. ac_fn_c_check_header_compile "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
  20641. if test "x$ac_cv_header_time_h" = xyes
  20642. then :
  20643. printf "%s\n" "#define HAVE_TIME_H 1" >>confdefs.h
  20644. fi
  20645. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for monotonic clock_gettime" >&5
  20646. printf %s "checking for monotonic clock_gettime... " >&6; }
  20647. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20648. /* end confdefs.h. */
  20649. #ifdef HAVE_SYS_TYPES_H
  20650. #include <sys/types.h>
  20651. #endif
  20652. #ifdef HAVE_SYS_TIME_H
  20653. #include <sys/time.h>
  20654. #ifdef TIME_WITH_SYS_TIME
  20655. #include <time.h>
  20656. #endif
  20657. #else
  20658. #ifdef HAVE_TIME_H
  20659. #include <time.h>
  20660. #endif
  20661. #endif
  20662. int
  20663. main (void)
  20664. {
  20665. struct timespec ts;
  20666. (void)clock_gettime(CLOCK_MONOTONIC, &ts);
  20667. ;
  20668. return 0;
  20669. }
  20670. _ACEOF
  20671. if ac_fn_c_try_compile "$LINENO"
  20672. then :
  20673. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20674. printf "%s\n" "yes" >&6; }
  20675. ac_cv_func_clock_gettime="yes"
  20676. else $as_nop
  20677. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20678. printf "%s\n" "no" >&6; }
  20679. ac_cv_func_clock_gettime="no"
  20680. fi
  20681. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20682. #
  20683. if test "$ac_cv_func_clock_gettime" = "yes"; then
  20684. #
  20685. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in libraries" >&5
  20686. printf %s "checking for clock_gettime in libraries... " >&6; }
  20687. #
  20688. curl_cv_save_LIBS="$LIBS"
  20689. curl_cv_gclk_LIBS="unknown"
  20690. #
  20691. for x_xlibs in '' '-lrt' '-lposix4' ; do
  20692. if test "$curl_cv_gclk_LIBS" = "unknown"; then
  20693. if test -z "$x_xlibs"; then
  20694. LIBS="$curl_cv_save_LIBS"
  20695. else
  20696. LIBS="$x_xlibs $curl_cv_save_LIBS"
  20697. fi
  20698. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20699. /* end confdefs.h. */
  20700. #ifdef HAVE_SYS_TYPES_H
  20701. #include <sys/types.h>
  20702. #endif
  20703. #ifdef HAVE_SYS_TIME_H
  20704. #include <sys/time.h>
  20705. #ifdef TIME_WITH_SYS_TIME
  20706. #include <time.h>
  20707. #endif
  20708. #else
  20709. #ifdef HAVE_TIME_H
  20710. #include <time.h>
  20711. #endif
  20712. #endif
  20713. int
  20714. main (void)
  20715. {
  20716. struct timespec ts;
  20717. (void)clock_gettime(CLOCK_MONOTONIC, &ts);
  20718. ;
  20719. return 0;
  20720. }
  20721. _ACEOF
  20722. if ac_fn_c_try_link "$LINENO"
  20723. then :
  20724. curl_cv_gclk_LIBS="$x_xlibs"
  20725. fi
  20726. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20727. conftest$ac_exeext conftest.$ac_ext
  20728. fi
  20729. done
  20730. #
  20731. LIBS="$curl_cv_save_LIBS"
  20732. #
  20733. case X-"$curl_cv_gclk_LIBS" in
  20734. X-unknown)
  20735. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot find clock_gettime" >&5
  20736. printf "%s\n" "cannot find clock_gettime" >&6; }
  20737. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
  20738. printf "%s\n" "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
  20739. ac_cv_func_clock_gettime="no"
  20740. ;;
  20741. X-)
  20742. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
  20743. printf "%s\n" "no additional lib required" >&6; }
  20744. ac_cv_func_clock_gettime="yes"
  20745. ;;
  20746. *)
  20747. if test -z "$curl_cv_save_LIBS"; then
  20748. LIBS="$curl_cv_gclk_LIBS"
  20749. else
  20750. LIBS="$curl_cv_gclk_LIBS $curl_cv_save_LIBS"
  20751. fi
  20752. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_gclk_LIBS" >&5
  20753. printf "%s\n" "$curl_cv_gclk_LIBS" >&6; }
  20754. ac_cv_func_clock_gettime="yes"
  20755. ;;
  20756. esac
  20757. #
  20758. if test "x$cross_compiling" != "xyes" &&
  20759. test "$ac_cv_func_clock_gettime" = "yes"; then
  20760. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if monotonic clock_gettime works" >&5
  20761. printf %s "checking if monotonic clock_gettime works... " >&6; }
  20762. if test "$cross_compiling" = yes
  20763. then :
  20764. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  20765. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  20766. as_fn_error $? "cannot run test program while cross compiling
  20767. See \`config.log' for more details" "$LINENO" 5; }
  20768. else $as_nop
  20769. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20770. /* end confdefs.h. */
  20771. #ifdef HAVE_STDLIB_H
  20772. #include <stdlib.h>
  20773. #endif
  20774. #ifdef HAVE_SYS_TYPES_H
  20775. #include <sys/types.h>
  20776. #endif
  20777. #ifdef HAVE_SYS_TIME_H
  20778. #include <sys/time.h>
  20779. #ifdef TIME_WITH_SYS_TIME
  20780. #include <time.h>
  20781. #endif
  20782. #else
  20783. #ifdef HAVE_TIME_H
  20784. #include <time.h>
  20785. #endif
  20786. #endif
  20787. int
  20788. main (void)
  20789. {
  20790. struct timespec ts;
  20791. if (0 == clock_gettime(CLOCK_MONOTONIC, &ts))
  20792. exit(0);
  20793. else
  20794. exit(1);
  20795. ;
  20796. return 0;
  20797. }
  20798. _ACEOF
  20799. if ac_fn_c_try_run "$LINENO"
  20800. then :
  20801. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20802. printf "%s\n" "yes" >&6; }
  20803. else $as_nop
  20804. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20805. printf "%s\n" "no" >&6; }
  20806. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
  20807. printf "%s\n" "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
  20808. ac_cv_func_clock_gettime="no"
  20809. LIBS="$curl_cv_save_LIBS"
  20810. fi
  20811. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  20812. conftest.$ac_objext conftest.beam conftest.$ac_ext
  20813. fi
  20814. fi
  20815. #
  20816. case "$ac_cv_func_clock_gettime" in
  20817. yes)
  20818. printf "%s\n" "#define HAVE_CLOCK_GETTIME_MONOTONIC 1" >>confdefs.h
  20819. ;;
  20820. esac
  20821. #
  20822. fi
  20823. #
  20824. fi
  20825. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use libgcc" >&5
  20826. printf %s "checking whether to use libgcc... " >&6; }
  20827. # Check whether --enable-libgcc was given.
  20828. if test ${enable_libgcc+y}
  20829. then :
  20830. enableval=$enable_libgcc; case "$enableval" in
  20831. yes)
  20832. LIBS="$LIBS -lgcc"
  20833. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20834. printf "%s\n" "yes" >&6; }
  20835. ;;
  20836. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20837. printf "%s\n" "no" >&6; }
  20838. ;;
  20839. esac
  20840. else $as_nop
  20841. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20842. printf "%s\n" "no" >&6; }
  20843. fi
  20844. STDC_HEADERS
  20845. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  20846. printf %s "checking for egrep... " >&6; }
  20847. if test ${ac_cv_path_EGREP+y}
  20848. then :
  20849. printf %s "(cached) " >&6
  20850. else $as_nop
  20851. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  20852. then ac_cv_path_EGREP="$GREP -E"
  20853. else
  20854. if test -z "$EGREP"; then
  20855. ac_path_EGREP_found=false
  20856. # Loop through the user's path and test for each of PROGNAME-LIST
  20857. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20858. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  20859. do
  20860. IFS=$as_save_IFS
  20861. case $as_dir in #(((
  20862. '') as_dir=./ ;;
  20863. */) ;;
  20864. *) as_dir=$as_dir/ ;;
  20865. esac
  20866. for ac_prog in egrep
  20867. do
  20868. for ac_exec_ext in '' $ac_executable_extensions; do
  20869. ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
  20870. as_fn_executable_p "$ac_path_EGREP" || continue
  20871. # Check for GNU ac_path_EGREP and select it if it is found.
  20872. # Check for GNU $ac_path_EGREP
  20873. case `"$ac_path_EGREP" --version 2>&1` in
  20874. *GNU*)
  20875. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  20876. *)
  20877. ac_count=0
  20878. printf %s 0123456789 >"conftest.in"
  20879. while :
  20880. do
  20881. cat "conftest.in" "conftest.in" >"conftest.tmp"
  20882. mv "conftest.tmp" "conftest.in"
  20883. cp "conftest.in" "conftest.nl"
  20884. printf "%s\n" 'EGREP' >> "conftest.nl"
  20885. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  20886. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  20887. as_fn_arith $ac_count + 1 && ac_count=$as_val
  20888. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  20889. # Best one so far, save it but keep looking for a better one
  20890. ac_cv_path_EGREP="$ac_path_EGREP"
  20891. ac_path_EGREP_max=$ac_count
  20892. fi
  20893. # 10*(2^10) chars as input seems more than enough
  20894. test $ac_count -gt 10 && break
  20895. done
  20896. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  20897. esac
  20898. $ac_path_EGREP_found && break 3
  20899. done
  20900. done
  20901. done
  20902. IFS=$as_save_IFS
  20903. if test -z "$ac_cv_path_EGREP"; then
  20904. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  20905. fi
  20906. else
  20907. ac_cv_path_EGREP=$EGREP
  20908. fi
  20909. fi
  20910. fi
  20911. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  20912. printf "%s\n" "$ac_cv_path_EGREP" >&6; }
  20913. EGREP="$ac_cv_path_EGREP"
  20914. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for malloc.h" >&5
  20915. printf %s "checking for malloc.h... " >&6; }
  20916. if test ${ac_cv_header_malloc_h+y}
  20917. then :
  20918. printf %s "(cached) " >&6
  20919. else $as_nop
  20920. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20921. /* end confdefs.h. */
  20922. #include <malloc.h>
  20923. int
  20924. main (void)
  20925. {
  20926. void *p = malloc(10);
  20927. void *q = calloc(10,10);
  20928. free(p);
  20929. free(q);
  20930. ;
  20931. return 0;
  20932. }
  20933. _ACEOF
  20934. if ac_fn_c_try_compile "$LINENO"
  20935. then :
  20936. ac_cv_header_malloc_h="yes"
  20937. else $as_nop
  20938. ac_cv_header_malloc_h="no"
  20939. fi
  20940. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20941. fi
  20942. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_malloc_h" >&5
  20943. printf "%s\n" "$ac_cv_header_malloc_h" >&6; }
  20944. if test "$ac_cv_header_malloc_h" = "yes"; then
  20945. printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h
  20946. #
  20947. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20948. /* end confdefs.h. */
  20949. #include <stdlib.h>
  20950. int
  20951. main (void)
  20952. {
  20953. void *p = malloc(10);
  20954. void *q = calloc(10,10);
  20955. free(p);
  20956. free(q);
  20957. ;
  20958. return 0;
  20959. }
  20960. _ACEOF
  20961. if ac_fn_c_try_compile "$LINENO"
  20962. then :
  20963. curl_cv_need_header_malloc_h="no"
  20964. else $as_nop
  20965. curl_cv_need_header_malloc_h="yes"
  20966. fi
  20967. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20968. #
  20969. case "$curl_cv_need_header_malloc_h" in
  20970. yes)
  20971. printf "%s\n" "#define NEED_MALLOC_H 1" >>confdefs.h
  20972. ;;
  20973. esac
  20974. fi
  20975. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for memory.h" >&5
  20976. printf %s "checking for memory.h... " >&6; }
  20977. if test ${ac_cv_header_memory_h+y}
  20978. then :
  20979. printf %s "(cached) " >&6
  20980. else $as_nop
  20981. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20982. /* end confdefs.h. */
  20983. #include <memory.h>
  20984. int
  20985. main (void)
  20986. {
  20987. void *p = malloc(10);
  20988. void *q = calloc(10,10);
  20989. free(p);
  20990. free(q);
  20991. ;
  20992. return 0;
  20993. }
  20994. _ACEOF
  20995. if ac_fn_c_try_compile "$LINENO"
  20996. then :
  20997. ac_cv_header_memory_h="yes"
  20998. else $as_nop
  20999. ac_cv_header_memory_h="no"
  21000. fi
  21001. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21002. fi
  21003. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_memory_h" >&5
  21004. printf "%s\n" "$ac_cv_header_memory_h" >&6; }
  21005. if test "$ac_cv_header_memory_h" = "yes"; then
  21006. printf "%s\n" "#define HAVE_MEMORY_H 1" >>confdefs.h
  21007. #
  21008. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21009. /* end confdefs.h. */
  21010. #include <stdlib.h>
  21011. int
  21012. main (void)
  21013. {
  21014. void *p = malloc(10);
  21015. void *q = calloc(10,10);
  21016. free(p);
  21017. free(q);
  21018. ;
  21019. return 0;
  21020. }
  21021. _ACEOF
  21022. if ac_fn_c_try_compile "$LINENO"
  21023. then :
  21024. curl_cv_need_header_memory_h="no"
  21025. else $as_nop
  21026. curl_cv_need_header_memory_h="yes"
  21027. fi
  21028. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21029. #
  21030. case "$curl_cv_need_header_memory_h" in
  21031. yes)
  21032. printf "%s\n" "#define NEED_MEMORY_H 1" >>confdefs.h
  21033. ;;
  21034. esac
  21035. fi
  21036. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "
  21037. #ifdef HAVE_SYS_TYPES_H
  21038. #include <sys/types.h>
  21039. #endif
  21040. #ifdef HAVE_SYS_TIME_H
  21041. #include <sys/time.h>
  21042. #endif
  21043. #ifdef HAVE_ARPA_NAMESER_H
  21044. #include <arpa/nameser.h>
  21045. #endif
  21046. #ifdef HAVE_SYS_SOCKET_H
  21047. #include <sys/socket.h>
  21048. #endif
  21049. #ifdef HAVE_NETINET_IN_H
  21050. #include <netinet/in.h>
  21051. #endif
  21052. "
  21053. if test "x$ac_cv_header_sys_types_h" = xyes
  21054. then :
  21055. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  21056. fi
  21057. ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "
  21058. #ifdef HAVE_SYS_TYPES_H
  21059. #include <sys/types.h>
  21060. #endif
  21061. #ifdef HAVE_SYS_TIME_H
  21062. #include <sys/time.h>
  21063. #endif
  21064. #ifdef HAVE_ARPA_NAMESER_H
  21065. #include <arpa/nameser.h>
  21066. #endif
  21067. #ifdef HAVE_SYS_SOCKET_H
  21068. #include <sys/socket.h>
  21069. #endif
  21070. #ifdef HAVE_NETINET_IN_H
  21071. #include <netinet/in.h>
  21072. #endif
  21073. "
  21074. if test "x$ac_cv_header_sys_time_h" = xyes
  21075. then :
  21076. printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
  21077. fi
  21078. ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "
  21079. #ifdef HAVE_SYS_TYPES_H
  21080. #include <sys/types.h>
  21081. #endif
  21082. #ifdef HAVE_SYS_TIME_H
  21083. #include <sys/time.h>
  21084. #endif
  21085. #ifdef HAVE_ARPA_NAMESER_H
  21086. #include <arpa/nameser.h>
  21087. #endif
  21088. #ifdef HAVE_SYS_SOCKET_H
  21089. #include <sys/socket.h>
  21090. #endif
  21091. #ifdef HAVE_NETINET_IN_H
  21092. #include <netinet/in.h>
  21093. #endif
  21094. "
  21095. if test "x$ac_cv_header_sys_select_h" = xyes
  21096. then :
  21097. printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
  21098. fi
  21099. ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "
  21100. #ifdef HAVE_SYS_TYPES_H
  21101. #include <sys/types.h>
  21102. #endif
  21103. #ifdef HAVE_SYS_TIME_H
  21104. #include <sys/time.h>
  21105. #endif
  21106. #ifdef HAVE_ARPA_NAMESER_H
  21107. #include <arpa/nameser.h>
  21108. #endif
  21109. #ifdef HAVE_SYS_SOCKET_H
  21110. #include <sys/socket.h>
  21111. #endif
  21112. #ifdef HAVE_NETINET_IN_H
  21113. #include <netinet/in.h>
  21114. #endif
  21115. "
  21116. if test "x$ac_cv_header_sys_socket_h" = xyes
  21117. then :
  21118. printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
  21119. fi
  21120. ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "
  21121. #ifdef HAVE_SYS_TYPES_H
  21122. #include <sys/types.h>
  21123. #endif
  21124. #ifdef HAVE_SYS_TIME_H
  21125. #include <sys/time.h>
  21126. #endif
  21127. #ifdef HAVE_ARPA_NAMESER_H
  21128. #include <arpa/nameser.h>
  21129. #endif
  21130. #ifdef HAVE_SYS_SOCKET_H
  21131. #include <sys/socket.h>
  21132. #endif
  21133. #ifdef HAVE_NETINET_IN_H
  21134. #include <netinet/in.h>
  21135. #endif
  21136. "
  21137. if test "x$ac_cv_header_sys_ioctl_h" = xyes
  21138. then :
  21139. printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
  21140. fi
  21141. ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "
  21142. #ifdef HAVE_SYS_TYPES_H
  21143. #include <sys/types.h>
  21144. #endif
  21145. #ifdef HAVE_SYS_TIME_H
  21146. #include <sys/time.h>
  21147. #endif
  21148. #ifdef HAVE_ARPA_NAMESER_H
  21149. #include <arpa/nameser.h>
  21150. #endif
  21151. #ifdef HAVE_SYS_SOCKET_H
  21152. #include <sys/socket.h>
  21153. #endif
  21154. #ifdef HAVE_NETINET_IN_H
  21155. #include <netinet/in.h>
  21156. #endif
  21157. "
  21158. if test "x$ac_cv_header_sys_param_h" = xyes
  21159. then :
  21160. printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
  21161. fi
  21162. ac_fn_c_check_header_compile "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "
  21163. #ifdef HAVE_SYS_TYPES_H
  21164. #include <sys/types.h>
  21165. #endif
  21166. #ifdef HAVE_SYS_TIME_H
  21167. #include <sys/time.h>
  21168. #endif
  21169. #ifdef HAVE_ARPA_NAMESER_H
  21170. #include <arpa/nameser.h>
  21171. #endif
  21172. #ifdef HAVE_SYS_SOCKET_H
  21173. #include <sys/socket.h>
  21174. #endif
  21175. #ifdef HAVE_NETINET_IN_H
  21176. #include <netinet/in.h>
  21177. #endif
  21178. "
  21179. if test "x$ac_cv_header_sys_uio_h" = xyes
  21180. then :
  21181. printf "%s\n" "#define HAVE_SYS_UIO_H 1" >>confdefs.h
  21182. fi
  21183. ac_fn_c_check_header_compile "$LINENO" "assert.h" "ac_cv_header_assert_h" "
  21184. #ifdef HAVE_SYS_TYPES_H
  21185. #include <sys/types.h>
  21186. #endif
  21187. #ifdef HAVE_SYS_TIME_H
  21188. #include <sys/time.h>
  21189. #endif
  21190. #ifdef HAVE_ARPA_NAMESER_H
  21191. #include <arpa/nameser.h>
  21192. #endif
  21193. #ifdef HAVE_SYS_SOCKET_H
  21194. #include <sys/socket.h>
  21195. #endif
  21196. #ifdef HAVE_NETINET_IN_H
  21197. #include <netinet/in.h>
  21198. #endif
  21199. "
  21200. if test "x$ac_cv_header_assert_h" = xyes
  21201. then :
  21202. printf "%s\n" "#define HAVE_ASSERT_H 1" >>confdefs.h
  21203. fi
  21204. ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "
  21205. #ifdef HAVE_SYS_TYPES_H
  21206. #include <sys/types.h>
  21207. #endif
  21208. #ifdef HAVE_SYS_TIME_H
  21209. #include <sys/time.h>
  21210. #endif
  21211. #ifdef HAVE_ARPA_NAMESER_H
  21212. #include <arpa/nameser.h>
  21213. #endif
  21214. #ifdef HAVE_SYS_SOCKET_H
  21215. #include <sys/socket.h>
  21216. #endif
  21217. #ifdef HAVE_NETINET_IN_H
  21218. #include <netinet/in.h>
  21219. #endif
  21220. "
  21221. if test "x$ac_cv_header_netdb_h" = xyes
  21222. then :
  21223. printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h
  21224. fi
  21225. ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "
  21226. #ifdef HAVE_SYS_TYPES_H
  21227. #include <sys/types.h>
  21228. #endif
  21229. #ifdef HAVE_SYS_TIME_H
  21230. #include <sys/time.h>
  21231. #endif
  21232. #ifdef HAVE_ARPA_NAMESER_H
  21233. #include <arpa/nameser.h>
  21234. #endif
  21235. #ifdef HAVE_SYS_SOCKET_H
  21236. #include <sys/socket.h>
  21237. #endif
  21238. #ifdef HAVE_NETINET_IN_H
  21239. #include <netinet/in.h>
  21240. #endif
  21241. "
  21242. if test "x$ac_cv_header_netinet_in_h" = xyes
  21243. then :
  21244. printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
  21245. fi
  21246. ac_fn_c_check_header_compile "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "
  21247. #ifdef HAVE_SYS_TYPES_H
  21248. #include <sys/types.h>
  21249. #endif
  21250. #ifdef HAVE_SYS_TIME_H
  21251. #include <sys/time.h>
  21252. #endif
  21253. #ifdef HAVE_ARPA_NAMESER_H
  21254. #include <arpa/nameser.h>
  21255. #endif
  21256. #ifdef HAVE_SYS_SOCKET_H
  21257. #include <sys/socket.h>
  21258. #endif
  21259. #ifdef HAVE_NETINET_IN_H
  21260. #include <netinet/in.h>
  21261. #endif
  21262. "
  21263. if test "x$ac_cv_header_netinet_tcp_h" = xyes
  21264. then :
  21265. printf "%s\n" "#define HAVE_NETINET_TCP_H 1" >>confdefs.h
  21266. fi
  21267. ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
  21268. #ifdef HAVE_SYS_TYPES_H
  21269. #include <sys/types.h>
  21270. #endif
  21271. #ifdef HAVE_SYS_TIME_H
  21272. #include <sys/time.h>
  21273. #endif
  21274. #ifdef HAVE_ARPA_NAMESER_H
  21275. #include <arpa/nameser.h>
  21276. #endif
  21277. #ifdef HAVE_SYS_SOCKET_H
  21278. #include <sys/socket.h>
  21279. #endif
  21280. #ifdef HAVE_NETINET_IN_H
  21281. #include <netinet/in.h>
  21282. #endif
  21283. "
  21284. if test "x$ac_cv_header_net_if_h" = xyes
  21285. then :
  21286. printf "%s\n" "#define HAVE_NET_IF_H 1" >>confdefs.h
  21287. fi
  21288. ac_fn_c_check_header_compile "$LINENO" "errno.h" "ac_cv_header_errno_h" "
  21289. #ifdef HAVE_SYS_TYPES_H
  21290. #include <sys/types.h>
  21291. #endif
  21292. #ifdef HAVE_SYS_TIME_H
  21293. #include <sys/time.h>
  21294. #endif
  21295. #ifdef HAVE_ARPA_NAMESER_H
  21296. #include <arpa/nameser.h>
  21297. #endif
  21298. #ifdef HAVE_SYS_SOCKET_H
  21299. #include <sys/socket.h>
  21300. #endif
  21301. #ifdef HAVE_NETINET_IN_H
  21302. #include <netinet/in.h>
  21303. #endif
  21304. "
  21305. if test "x$ac_cv_header_errno_h" = xyes
  21306. then :
  21307. printf "%s\n" "#define HAVE_ERRNO_H 1" >>confdefs.h
  21308. fi
  21309. ac_fn_c_check_header_compile "$LINENO" "socket.h" "ac_cv_header_socket_h" "
  21310. #ifdef HAVE_SYS_TYPES_H
  21311. #include <sys/types.h>
  21312. #endif
  21313. #ifdef HAVE_SYS_TIME_H
  21314. #include <sys/time.h>
  21315. #endif
  21316. #ifdef HAVE_ARPA_NAMESER_H
  21317. #include <arpa/nameser.h>
  21318. #endif
  21319. #ifdef HAVE_SYS_SOCKET_H
  21320. #include <sys/socket.h>
  21321. #endif
  21322. #ifdef HAVE_NETINET_IN_H
  21323. #include <netinet/in.h>
  21324. #endif
  21325. "
  21326. if test "x$ac_cv_header_socket_h" = xyes
  21327. then :
  21328. printf "%s\n" "#define HAVE_SOCKET_H 1" >>confdefs.h
  21329. fi
  21330. ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "
  21331. #ifdef HAVE_SYS_TYPES_H
  21332. #include <sys/types.h>
  21333. #endif
  21334. #ifdef HAVE_SYS_TIME_H
  21335. #include <sys/time.h>
  21336. #endif
  21337. #ifdef HAVE_ARPA_NAMESER_H
  21338. #include <arpa/nameser.h>
  21339. #endif
  21340. #ifdef HAVE_SYS_SOCKET_H
  21341. #include <sys/socket.h>
  21342. #endif
  21343. #ifdef HAVE_NETINET_IN_H
  21344. #include <netinet/in.h>
  21345. #endif
  21346. "
  21347. if test "x$ac_cv_header_strings_h" = xyes
  21348. then :
  21349. printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h
  21350. fi
  21351. ac_fn_c_check_header_compile "$LINENO" "stdbool.h" "ac_cv_header_stdbool_h" "
  21352. #ifdef HAVE_SYS_TYPES_H
  21353. #include <sys/types.h>
  21354. #endif
  21355. #ifdef HAVE_SYS_TIME_H
  21356. #include <sys/time.h>
  21357. #endif
  21358. #ifdef HAVE_ARPA_NAMESER_H
  21359. #include <arpa/nameser.h>
  21360. #endif
  21361. #ifdef HAVE_SYS_SOCKET_H
  21362. #include <sys/socket.h>
  21363. #endif
  21364. #ifdef HAVE_NETINET_IN_H
  21365. #include <netinet/in.h>
  21366. #endif
  21367. "
  21368. if test "x$ac_cv_header_stdbool_h" = xyes
  21369. then :
  21370. printf "%s\n" "#define HAVE_STDBOOL_H 1" >>confdefs.h
  21371. fi
  21372. ac_fn_c_check_header_compile "$LINENO" "time.h" "ac_cv_header_time_h" "
  21373. #ifdef HAVE_SYS_TYPES_H
  21374. #include <sys/types.h>
  21375. #endif
  21376. #ifdef HAVE_SYS_TIME_H
  21377. #include <sys/time.h>
  21378. #endif
  21379. #ifdef HAVE_ARPA_NAMESER_H
  21380. #include <arpa/nameser.h>
  21381. #endif
  21382. #ifdef HAVE_SYS_SOCKET_H
  21383. #include <sys/socket.h>
  21384. #endif
  21385. #ifdef HAVE_NETINET_IN_H
  21386. #include <netinet/in.h>
  21387. #endif
  21388. "
  21389. if test "x$ac_cv_header_time_h" = xyes
  21390. then :
  21391. printf "%s\n" "#define HAVE_TIME_H 1" >>confdefs.h
  21392. fi
  21393. ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "
  21394. #ifdef HAVE_SYS_TYPES_H
  21395. #include <sys/types.h>
  21396. #endif
  21397. #ifdef HAVE_SYS_TIME_H
  21398. #include <sys/time.h>
  21399. #endif
  21400. #ifdef HAVE_ARPA_NAMESER_H
  21401. #include <arpa/nameser.h>
  21402. #endif
  21403. #ifdef HAVE_SYS_SOCKET_H
  21404. #include <sys/socket.h>
  21405. #endif
  21406. #ifdef HAVE_NETINET_IN_H
  21407. #include <netinet/in.h>
  21408. #endif
  21409. "
  21410. if test "x$ac_cv_header_limits_h" = xyes
  21411. then :
  21412. printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
  21413. fi
  21414. ac_fn_c_check_header_compile "$LINENO" "arpa/nameser.h" "ac_cv_header_arpa_nameser_h" "
  21415. #ifdef HAVE_SYS_TYPES_H
  21416. #include <sys/types.h>
  21417. #endif
  21418. #ifdef HAVE_SYS_TIME_H
  21419. #include <sys/time.h>
  21420. #endif
  21421. #ifdef HAVE_ARPA_NAMESER_H
  21422. #include <arpa/nameser.h>
  21423. #endif
  21424. #ifdef HAVE_SYS_SOCKET_H
  21425. #include <sys/socket.h>
  21426. #endif
  21427. #ifdef HAVE_NETINET_IN_H
  21428. #include <netinet/in.h>
  21429. #endif
  21430. "
  21431. if test "x$ac_cv_header_arpa_nameser_h" = xyes
  21432. then :
  21433. printf "%s\n" "#define HAVE_ARPA_NAMESER_H 1" >>confdefs.h
  21434. fi
  21435. ac_fn_c_check_header_compile "$LINENO" "arpa/nameser_compat.h" "ac_cv_header_arpa_nameser_compat_h" "
  21436. #ifdef HAVE_SYS_TYPES_H
  21437. #include <sys/types.h>
  21438. #endif
  21439. #ifdef HAVE_SYS_TIME_H
  21440. #include <sys/time.h>
  21441. #endif
  21442. #ifdef HAVE_ARPA_NAMESER_H
  21443. #include <arpa/nameser.h>
  21444. #endif
  21445. #ifdef HAVE_SYS_SOCKET_H
  21446. #include <sys/socket.h>
  21447. #endif
  21448. #ifdef HAVE_NETINET_IN_H
  21449. #include <netinet/in.h>
  21450. #endif
  21451. "
  21452. if test "x$ac_cv_header_arpa_nameser_compat_h" = xyes
  21453. then :
  21454. printf "%s\n" "#define HAVE_ARPA_NAMESER_COMPAT_H 1" >>confdefs.h
  21455. fi
  21456. ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "
  21457. #ifdef HAVE_SYS_TYPES_H
  21458. #include <sys/types.h>
  21459. #endif
  21460. #ifdef HAVE_SYS_TIME_H
  21461. #include <sys/time.h>
  21462. #endif
  21463. #ifdef HAVE_ARPA_NAMESER_H
  21464. #include <arpa/nameser.h>
  21465. #endif
  21466. #ifdef HAVE_SYS_SOCKET_H
  21467. #include <sys/socket.h>
  21468. #endif
  21469. #ifdef HAVE_NETINET_IN_H
  21470. #include <netinet/in.h>
  21471. #endif
  21472. "
  21473. if test "x$ac_cv_header_arpa_inet_h" = xyes
  21474. then :
  21475. printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h
  21476. fi
  21477. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
  21478. printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
  21479. if test ${ac_cv_c_undeclared_builtin_options+y}
  21480. then :
  21481. printf %s "(cached) " >&6
  21482. else $as_nop
  21483. ac_save_CFLAGS=$CFLAGS
  21484. ac_cv_c_undeclared_builtin_options='cannot detect'
  21485. for ac_arg in '' -fno-builtin; do
  21486. CFLAGS="$ac_save_CFLAGS $ac_arg"
  21487. # This test program should *not* compile successfully.
  21488. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21489. /* end confdefs.h. */
  21490. int
  21491. main (void)
  21492. {
  21493. (void) strchr;
  21494. ;
  21495. return 0;
  21496. }
  21497. _ACEOF
  21498. if ac_fn_c_try_compile "$LINENO"
  21499. then :
  21500. else $as_nop
  21501. # This test program should compile successfully.
  21502. # No library function is consistently available on
  21503. # freestanding implementations, so test against a dummy
  21504. # declaration. Include always-available headers on the
  21505. # off chance that they somehow elicit warnings.
  21506. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21507. /* end confdefs.h. */
  21508. #include <float.h>
  21509. #include <limits.h>
  21510. #include <stdarg.h>
  21511. #include <stddef.h>
  21512. extern void ac_decl (int, char *);
  21513. int
  21514. main (void)
  21515. {
  21516. (void) ac_decl (0, (char *) 0);
  21517. (void) ac_decl;
  21518. ;
  21519. return 0;
  21520. }
  21521. _ACEOF
  21522. if ac_fn_c_try_compile "$LINENO"
  21523. then :
  21524. if test x"$ac_arg" = x
  21525. then :
  21526. ac_cv_c_undeclared_builtin_options='none needed'
  21527. else $as_nop
  21528. ac_cv_c_undeclared_builtin_options=$ac_arg
  21529. fi
  21530. break
  21531. fi
  21532. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21533. fi
  21534. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21535. done
  21536. CFLAGS=$ac_save_CFLAGS
  21537. fi
  21538. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
  21539. printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
  21540. case $ac_cv_c_undeclared_builtin_options in #(
  21541. 'cannot detect') :
  21542. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  21543. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  21544. as_fn_error $? "cannot make $CC report undeclared builtins
  21545. See \`config.log' for more details" "$LINENO" 5; } ;; #(
  21546. 'none needed') :
  21547. ac_c_undeclared_builtin_options='' ;; #(
  21548. *) :
  21549. ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
  21550. esac
  21551. ac_fn_check_decl "$LINENO" "HAVE_ARPA_NAMESER_H" "ac_cv_have_decl_HAVE_ARPA_NAMESER_H" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
  21552. if test "x$ac_cv_have_decl_HAVE_ARPA_NAMESER_H" = xyes
  21553. then :
  21554. cat >>confdefs.h <<_EOF
  21555. #define CARES_HAVE_ARPA_NAMESER_H 1
  21556. _EOF
  21557. fi
  21558. ac_fn_check_decl "$LINENO" "HAVE_ARPA_NAMESER_COMPAT_H" "ac_cv_have_decl_HAVE_ARPA_NAMESER_COMPAT_H" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
  21559. if test "x$ac_cv_have_decl_HAVE_ARPA_NAMESER_COMPAT_H" = xyes
  21560. then :
  21561. cat >>confdefs.h <<_EOF
  21562. #define CARES_HAVE_ARPA_NAMESER_COMPAT_H 1
  21563. _EOF
  21564. fi
  21565. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  21566. printf %s "checking for an ANSI C-conforming const... " >&6; }
  21567. if test ${ac_cv_c_const+y}
  21568. then :
  21569. printf %s "(cached) " >&6
  21570. else $as_nop
  21571. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21572. /* end confdefs.h. */
  21573. int
  21574. main (void)
  21575. {
  21576. #ifndef __cplusplus
  21577. /* Ultrix mips cc rejects this sort of thing. */
  21578. typedef int charset[2];
  21579. const charset cs = { 0, 0 };
  21580. /* SunOS 4.1.1 cc rejects this. */
  21581. char const *const *pcpcc;
  21582. char **ppc;
  21583. /* NEC SVR4.0.2 mips cc rejects this. */
  21584. struct point {int x, y;};
  21585. static struct point const zero = {0,0};
  21586. /* IBM XL C 1.02.0.0 rejects this.
  21587. It does not let you subtract one const X* pointer from another in
  21588. an arm of an if-expression whose if-part is not a constant
  21589. expression */
  21590. const char *g = "string";
  21591. pcpcc = &g + (g ? g-g : 0);
  21592. /* HPUX 7.0 cc rejects these. */
  21593. ++pcpcc;
  21594. ppc = (char**) pcpcc;
  21595. pcpcc = (char const *const *) ppc;
  21596. { /* SCO 3.2v4 cc rejects this sort of thing. */
  21597. char tx;
  21598. char *t = &tx;
  21599. char const *s = 0 ? (char *) 0 : (char const *) 0;
  21600. *t++ = 0;
  21601. if (s) return 0;
  21602. }
  21603. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  21604. int x[] = {25, 17};
  21605. const int *foo = &x[0];
  21606. ++foo;
  21607. }
  21608. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  21609. typedef const int *iptr;
  21610. iptr p = 0;
  21611. ++p;
  21612. }
  21613. { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
  21614. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  21615. struct s { int j; const int *ap[3]; } bx;
  21616. struct s *b = &bx; b->j = 5;
  21617. }
  21618. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  21619. const int foo = 10;
  21620. if (!foo) return 0;
  21621. }
  21622. return !cs[0] && !zero.x;
  21623. #endif
  21624. ;
  21625. return 0;
  21626. }
  21627. _ACEOF
  21628. if ac_fn_c_try_compile "$LINENO"
  21629. then :
  21630. ac_cv_c_const=yes
  21631. else $as_nop
  21632. ac_cv_c_const=no
  21633. fi
  21634. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21635. fi
  21636. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  21637. printf "%s\n" "$ac_cv_c_const" >&6; }
  21638. if test $ac_cv_c_const = no; then
  21639. printf "%s\n" "#define const /**/" >>confdefs.h
  21640. fi
  21641. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  21642. if test "x$ac_cv_type_size_t" = xyes
  21643. then :
  21644. else $as_nop
  21645. printf "%s\n" "#define size_t unsigned int" >>confdefs.h
  21646. fi
  21647. # Obsolete code to be removed.
  21648. if test $ac_cv_header_sys_time_h = yes; then
  21649. printf "%s\n" "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  21650. fi
  21651. # End of obsolete code.
  21652. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
  21653. if test "x$ac_cv_header_sys_types_h" = xyes
  21654. then :
  21655. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  21656. fi
  21657. ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
  21658. if test "x$ac_cv_header_sys_time_h" = xyes
  21659. then :
  21660. printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
  21661. fi
  21662. ac_fn_c_check_header_compile "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
  21663. if test "x$ac_cv_header_time_h" = xyes
  21664. then :
  21665. printf "%s\n" "#define HAVE_TIME_H 1" >>confdefs.h
  21666. fi
  21667. ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
  21668. if test "x$ac_cv_header_sys_socket_h" = xyes
  21669. then :
  21670. printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
  21671. fi
  21672. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
  21673. printf %s "checking for struct timeval... " >&6; }
  21674. if test ${ac_cv_struct_timeval+y}
  21675. then :
  21676. printf %s "(cached) " >&6
  21677. else $as_nop
  21678. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21679. /* end confdefs.h. */
  21680. #undef inline
  21681. #ifdef HAVE_WINDOWS_H
  21682. #ifndef WIN32_LEAN_AND_MEAN
  21683. #define WIN32_LEAN_AND_MEAN
  21684. #endif
  21685. #include <windows.h>
  21686. #ifdef HAVE_WINSOCK2_H
  21687. #include <winsock2.h>
  21688. #else
  21689. #ifdef HAVE_WINSOCK_H
  21690. #include <winsock.h>
  21691. #endif
  21692. #endif
  21693. #endif
  21694. #ifdef HAVE_SYS_TYPES_H
  21695. #include <sys/types.h>
  21696. #endif
  21697. #ifdef HAVE_SYS_TIME_H
  21698. #include <sys/time.h>
  21699. #ifdef TIME_WITH_SYS_TIME
  21700. #include <time.h>
  21701. #endif
  21702. #else
  21703. #ifdef HAVE_TIME_H
  21704. #include <time.h>
  21705. #endif
  21706. #endif
  21707. #ifdef HAVE_SYS_SOCKET_H
  21708. #include <sys/socket.h>
  21709. #endif
  21710. int
  21711. main (void)
  21712. {
  21713. struct timeval ts;
  21714. ts.tv_sec = 0;
  21715. ts.tv_usec = 0;
  21716. ;
  21717. return 0;
  21718. }
  21719. _ACEOF
  21720. if ac_fn_c_try_compile "$LINENO"
  21721. then :
  21722. ac_cv_struct_timeval="yes"
  21723. else $as_nop
  21724. ac_cv_struct_timeval="no"
  21725. fi
  21726. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21727. fi
  21728. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_timeval" >&5
  21729. printf "%s\n" "$ac_cv_struct_timeval" >&6; }
  21730. case "$ac_cv_struct_timeval" in
  21731. yes)
  21732. printf "%s\n" "#define HAVE_STRUCT_TIMEVAL 1" >>confdefs.h
  21733. ;;
  21734. esac
  21735. ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
  21736. if test "x$ac_cv_type_long_long" = xyes
  21737. then :
  21738. printf "%s\n" "#define HAVE_LONGLONG 1" >>confdefs.h
  21739. longlong="yes"
  21740. fi
  21741. if test "xyes" = "x$longlong"; then
  21742. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if numberLL works" >&5
  21743. printf %s "checking if numberLL works... " >&6; }
  21744. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21745. /* end confdefs.h. */
  21746. int
  21747. main (void)
  21748. {
  21749. long long val = 1000LL;
  21750. ;
  21751. return 0;
  21752. }
  21753. _ACEOF
  21754. if ac_fn_c_try_compile "$LINENO"
  21755. then :
  21756. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21757. printf "%s\n" "yes" >&6; }
  21758. printf "%s\n" "#define HAVE_LL 1" >>confdefs.h
  21759. else $as_nop
  21760. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21761. printf "%s\n" "no" >&6; }
  21762. fi
  21763. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21764. fi
  21765. # check for ssize_t
  21766. ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
  21767. if test "x$ac_cv_type_ssize_t" = xyes
  21768. then :
  21769. CARES_TYPEOF_ARES_SSIZE_T=ssize_t
  21770. else $as_nop
  21771. CARES_TYPEOF_ARES_SSIZE_T=int
  21772. fi
  21773. printf "%s\n" "#define CARES_TYPEOF_ARES_SSIZE_T ${CARES_TYPEOF_ARES_SSIZE_T}" >>confdefs.h
  21774. # check for bool type
  21775. ac_fn_c_check_type "$LINENO" "bool" "ac_cv_type_bool" "
  21776. #ifdef HAVE_SYS_TYPES_H
  21777. #include <sys/types.h>
  21778. #endif
  21779. #ifdef HAVE_STDBOOL_H
  21780. #include <stdbool.h>
  21781. #endif
  21782. "
  21783. if test "x$ac_cv_type_bool" = xyes
  21784. then :
  21785. printf "%s\n" "#define HAVE_BOOL_T 1" >>confdefs.h
  21786. fi
  21787. cares_includes_ws2tcpip="\
  21788. /* includes start */
  21789. #ifdef HAVE_WINDOWS_H
  21790. # ifndef WIN32_LEAN_AND_MEAN
  21791. # define WIN32_LEAN_AND_MEAN
  21792. # endif
  21793. # include <windows.h>
  21794. # ifdef HAVE_WINSOCK2_H
  21795. # include <winsock2.h>
  21796. # ifdef HAVE_WS2TCPIP_H
  21797. # include <ws2tcpip.h>
  21798. # endif
  21799. # endif
  21800. #endif
  21801. /* includes end */"
  21802. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
  21803. printf %s "checking for windows.h... " >&6; }
  21804. if test ${ac_cv_header_windows_h+y}
  21805. then :
  21806. printf %s "(cached) " >&6
  21807. else $as_nop
  21808. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21809. /* end confdefs.h. */
  21810. #undef inline
  21811. #ifndef WIN32_LEAN_AND_MEAN
  21812. #define WIN32_LEAN_AND_MEAN
  21813. #endif
  21814. #include <windows.h>
  21815. int
  21816. main (void)
  21817. {
  21818. #if defined(__CYGWIN__) || defined(__CEGCC__)
  21819. HAVE_WINDOWS_H shall not be defined.
  21820. #else
  21821. int dummy=2*WINVER;
  21822. #endif
  21823. ;
  21824. return 0;
  21825. }
  21826. _ACEOF
  21827. if ac_fn_c_try_compile "$LINENO"
  21828. then :
  21829. ac_cv_header_windows_h="yes"
  21830. else $as_nop
  21831. ac_cv_header_windows_h="no"
  21832. fi
  21833. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21834. fi
  21835. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_windows_h" >&5
  21836. printf "%s\n" "$ac_cv_header_windows_h" >&6; }
  21837. case "$ac_cv_header_windows_h" in
  21838. yes)
  21839. printf "%s\n" "#define HAVE_WINDOWS_H 1" >>confdefs.h
  21840. printf "%s\n" "#define WIN32_LEAN_AND_MEAN 1" >>confdefs.h
  21841. ;;
  21842. esac
  21843. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
  21844. printf %s "checking for winsock2.h... " >&6; }
  21845. if test ${ac_cv_header_winsock2_h+y}
  21846. then :
  21847. printf %s "(cached) " >&6
  21848. else $as_nop
  21849. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21850. /* end confdefs.h. */
  21851. #undef inline
  21852. #ifndef WIN32_LEAN_AND_MEAN
  21853. #define WIN32_LEAN_AND_MEAN
  21854. #endif
  21855. #include <windows.h>
  21856. #include <winsock2.h>
  21857. int
  21858. main (void)
  21859. {
  21860. #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
  21861. HAVE_WINSOCK2_H shall not be defined.
  21862. #else
  21863. int dummy=2*IPPROTO_ESP;
  21864. #endif
  21865. ;
  21866. return 0;
  21867. }
  21868. _ACEOF
  21869. if ac_fn_c_try_compile "$LINENO"
  21870. then :
  21871. ac_cv_header_winsock2_h="yes"
  21872. else $as_nop
  21873. ac_cv_header_winsock2_h="no"
  21874. fi
  21875. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21876. fi
  21877. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock2_h" >&5
  21878. printf "%s\n" "$ac_cv_header_winsock2_h" >&6; }
  21879. case "$ac_cv_header_winsock2_h" in
  21880. yes)
  21881. printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h
  21882. ;;
  21883. esac
  21884. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
  21885. printf %s "checking for ws2tcpip.h... " >&6; }
  21886. if test ${ac_cv_header_ws2tcpip_h+y}
  21887. then :
  21888. printf %s "(cached) " >&6
  21889. else $as_nop
  21890. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21891. /* end confdefs.h. */
  21892. #undef inline
  21893. #ifndef WIN32_LEAN_AND_MEAN
  21894. #define WIN32_LEAN_AND_MEAN
  21895. #endif
  21896. #include <windows.h>
  21897. #include <winsock2.h>
  21898. #include <ws2tcpip.h>
  21899. int
  21900. main (void)
  21901. {
  21902. #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
  21903. HAVE_WS2TCPIP_H shall not be defined.
  21904. #else
  21905. int dummy=2*IP_PKTINFO;
  21906. #endif
  21907. ;
  21908. return 0;
  21909. }
  21910. _ACEOF
  21911. if ac_fn_c_try_compile "$LINENO"
  21912. then :
  21913. ac_cv_header_ws2tcpip_h="yes"
  21914. else $as_nop
  21915. ac_cv_header_ws2tcpip_h="no"
  21916. fi
  21917. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21918. fi
  21919. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ws2tcpip_h" >&5
  21920. printf "%s\n" "$ac_cv_header_ws2tcpip_h" >&6; }
  21921. case "$ac_cv_header_ws2tcpip_h" in
  21922. yes)
  21923. printf "%s\n" "#define HAVE_WS2TCPIP_H 1" >>confdefs.h
  21924. ;;
  21925. esac
  21926. cares_includes_sys_socket="\
  21927. /* includes start */
  21928. #ifdef HAVE_SYS_TYPES_H
  21929. # include <sys/types.h>
  21930. #endif
  21931. #ifdef HAVE_SYS_SOCKET_H
  21932. # include <sys/socket.h>
  21933. #endif
  21934. /* includes end */"
  21935. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$cares_includes_sys_socket
  21936. "
  21937. if test "x$ac_cv_header_sys_types_h" = xyes
  21938. then :
  21939. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  21940. fi
  21941. ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$cares_includes_sys_socket
  21942. "
  21943. if test "x$ac_cv_header_sys_socket_h" = xyes
  21944. then :
  21945. printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
  21946. fi
  21947. cares_preprocess_callconv="\
  21948. /* preprocess start */
  21949. #ifdef HAVE_WINDOWS_H
  21950. # define FUNCALLCONV __stdcall
  21951. #else
  21952. # define FUNCALLCONV
  21953. #endif
  21954. /* preprocess end */"
  21955. #
  21956. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ares_socklen_t data type" >&5
  21957. printf %s "checking for ares_socklen_t data type... " >&6; }
  21958. cares_typeof_ares_socklen_t="unknown"
  21959. for arg1 in int SOCKET; do
  21960. for arg2 in 'struct sockaddr' void; do
  21961. for t in socklen_t int size_t 'unsigned int' long 'unsigned long' void; do
  21962. if test "$cares_typeof_ares_socklen_t" = "unknown"; then
  21963. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21964. /* end confdefs.h. */
  21965. $cares_includes_ws2tcpip
  21966. $cares_includes_sys_socket
  21967. $cares_preprocess_callconv
  21968. extern int FUNCALLCONV getpeername($arg1, $arg2 *, $t *);
  21969. int
  21970. main (void)
  21971. {
  21972. $t *lenptr = 0;
  21973. if(0 != getpeername(0, 0, lenptr))
  21974. return 1;
  21975. ;
  21976. return 0;
  21977. }
  21978. _ACEOF
  21979. if ac_fn_c_try_compile "$LINENO"
  21980. then :
  21981. cares_typeof_ares_socklen_t="$t"
  21982. fi
  21983. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21984. fi
  21985. done
  21986. done
  21987. done
  21988. for t in socklen_t int; do
  21989. if test "$cares_typeof_ares_socklen_t" = "void"; then
  21990. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21991. /* end confdefs.h. */
  21992. $cares_includes_sys_socket
  21993. typedef $t ares_socklen_t;
  21994. int
  21995. main (void)
  21996. {
  21997. ares_socklen_t dummy;
  21998. ;
  21999. return 0;
  22000. }
  22001. _ACEOF
  22002. if ac_fn_c_try_compile "$LINENO"
  22003. then :
  22004. cares_typeof_ares_socklen_t="$t"
  22005. fi
  22006. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22007. fi
  22008. done
  22009. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cares_typeof_ares_socklen_t" >&5
  22010. printf "%s\n" "$cares_typeof_ares_socklen_t" >&6; }
  22011. if test "$cares_typeof_ares_socklen_t" = "void" ||
  22012. test "$cares_typeof_ares_socklen_t" = "unknown"; then
  22013. as_fn_error $? "cannot find data type for ares_socklen_t." "$LINENO" 5
  22014. fi
  22015. #
  22016. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of ares_socklen_t" >&5
  22017. printf %s "checking size of ares_socklen_t... " >&6; }
  22018. cares_sizeof_ares_socklen_t="unknown"
  22019. cares_pull_headers_socklen_t="unknown"
  22020. if test "$ac_cv_header_ws2tcpip_h" = "yes"; then
  22021. tst_pull_header_checks='none ws2tcpip'
  22022. tst_size_checks='4'
  22023. else
  22024. tst_pull_header_checks='none systypes syssocket'
  22025. tst_size_checks='4 8 2'
  22026. fi
  22027. for tst_size in $tst_size_checks; do
  22028. for tst_pull_headers in $tst_pull_header_checks; do
  22029. if test "$cares_sizeof_ares_socklen_t" = "unknown"; then
  22030. case $tst_pull_headers in
  22031. ws2tcpip)
  22032. tmp_includes="$cares_includes_ws2tcpip"
  22033. ;;
  22034. systypes)
  22035. tmp_includes="$cares_includes_sys_types"
  22036. ;;
  22037. syssocket)
  22038. tmp_includes="$cares_includes_sys_socket"
  22039. ;;
  22040. *)
  22041. tmp_includes=""
  22042. ;;
  22043. esac
  22044. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22045. /* end confdefs.h. */
  22046. $tmp_includes
  22047. typedef $cares_typeof_ares_socklen_t ares_socklen_t;
  22048. typedef char dummy_arr[sizeof(ares_socklen_t) == $tst_size ? 1 : -1];
  22049. int
  22050. main (void)
  22051. {
  22052. ares_socklen_t dummy;
  22053. ;
  22054. return 0;
  22055. }
  22056. _ACEOF
  22057. if ac_fn_c_try_compile "$LINENO"
  22058. then :
  22059. cares_sizeof_ares_socklen_t="$tst_size"
  22060. cares_pull_headers_socklen_t="$tst_pull_headers"
  22061. fi
  22062. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22063. fi
  22064. done
  22065. done
  22066. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cares_sizeof_ares_socklen_t" >&5
  22067. printf "%s\n" "$cares_sizeof_ares_socklen_t" >&6; }
  22068. if test "$cares_sizeof_ares_socklen_t" = "unknown"; then
  22069. as_fn_error $? "cannot find out size of ares_socklen_t." "$LINENO" 5
  22070. fi
  22071. #
  22072. case $cares_pull_headers_socklen_t in
  22073. ws2tcpip)
  22074. cat >>confdefs.h <<_EOF
  22075. #define CARES_PULL_WS2TCPIP_H 1
  22076. _EOF
  22077. ;;
  22078. systypes)
  22079. cat >>confdefs.h <<_EOF
  22080. #define CARES_PULL_SYS_TYPES_H 1
  22081. _EOF
  22082. ;;
  22083. syssocket)
  22084. cat >>confdefs.h <<_EOF
  22085. #define CARES_PULL_SYS_TYPES_H 1
  22086. _EOF
  22087. cat >>confdefs.h <<_EOF
  22088. #define CARES_PULL_SYS_SOCKET_H 1
  22089. _EOF
  22090. ;;
  22091. esac
  22092. cat >>confdefs.h <<_EOF
  22093. #define CARES_TYPEOF_ARES_SOCKLEN_T $cares_typeof_ares_socklen_t
  22094. _EOF
  22095. cat >>confdefs.h <<_EOF
  22096. #define CARES_SIZEOF_ARES_SOCKLEN_T $cares_sizeof_ares_socklen_t
  22097. _EOF
  22098. ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
  22099. #undef inline
  22100. #ifdef HAVE_WINDOWS_H
  22101. #ifndef WIN32_LEAN_AND_MEAN
  22102. #define WIN32_LEAN_AND_MEAN
  22103. #endif
  22104. #include <windows.h>
  22105. #ifdef HAVE_WINSOCK2_H
  22106. #include <winsock2.h>
  22107. #else
  22108. #ifdef HAVE_WINSOCK_H
  22109. #include <winsock.h>
  22110. #endif
  22111. #endif
  22112. #else
  22113. #ifdef HAVE_SYS_TYPES_H
  22114. #include <sys/types.h>
  22115. #endif
  22116. #ifdef HAVE_SYS_SOCKET_H
  22117. #include <sys/socket.h>
  22118. #endif
  22119. #ifdef HAVE_NETINET_IN_H
  22120. #include <netinet/in.h>
  22121. #endif
  22122. #ifdef HAVE_ARPA_INET_H
  22123. #include <arpa/inet.h>
  22124. #endif
  22125. #endif
  22126. "
  22127. if test "x$ac_cv_type_in_addr_t" = xyes
  22128. then :
  22129. else $as_nop
  22130. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for in_addr_t equivalent" >&5
  22131. printf %s "checking for in_addr_t equivalent... " >&6; }
  22132. if test ${curl_cv_in_addr_t_equiv+y}
  22133. then :
  22134. printf %s "(cached) " >&6
  22135. else $as_nop
  22136. curl_cv_in_addr_t_equiv="unknown"
  22137. for t in "unsigned long" int size_t unsigned long; do
  22138. if test "$curl_cv_in_addr_t_equiv" = "unknown"; then
  22139. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22140. /* end confdefs.h. */
  22141. #undef inline
  22142. #ifdef HAVE_WINDOWS_H
  22143. #ifndef WIN32_LEAN_AND_MEAN
  22144. #define WIN32_LEAN_AND_MEAN
  22145. #endif
  22146. #include <windows.h>
  22147. #ifdef HAVE_WINSOCK2_H
  22148. #include <winsock2.h>
  22149. #else
  22150. #ifdef HAVE_WINSOCK_H
  22151. #include <winsock.h>
  22152. #endif
  22153. #endif
  22154. #else
  22155. #ifdef HAVE_SYS_TYPES_H
  22156. #include <sys/types.h>
  22157. #endif
  22158. #ifdef HAVE_SYS_SOCKET_H
  22159. #include <sys/socket.h>
  22160. #endif
  22161. #ifdef HAVE_NETINET_IN_H
  22162. #include <netinet/in.h>
  22163. #endif
  22164. #ifdef HAVE_ARPA_INET_H
  22165. #include <arpa/inet.h>
  22166. #endif
  22167. #endif
  22168. int
  22169. main (void)
  22170. {
  22171. $t data = inet_addr ("1.2.3.4");
  22172. ;
  22173. return 0;
  22174. }
  22175. _ACEOF
  22176. if ac_fn_c_try_link "$LINENO"
  22177. then :
  22178. curl_cv_in_addr_t_equiv="$t"
  22179. fi
  22180. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22181. conftest$ac_exeext conftest.$ac_ext
  22182. fi
  22183. done
  22184. fi
  22185. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_in_addr_t_equiv" >&5
  22186. printf "%s\n" "$curl_cv_in_addr_t_equiv" >&6; }
  22187. case "$curl_cv_in_addr_t_equiv" in
  22188. unknown)
  22189. as_fn_error $? "Cannot find a type to use in place of in_addr_t" "$LINENO" 5
  22190. ;;
  22191. *)
  22192. printf "%s\n" "#define in_addr_t $curl_cv_in_addr_t_equiv" >>confdefs.h
  22193. ;;
  22194. esac
  22195. fi
  22196. ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
  22197. #undef inline
  22198. #ifdef HAVE_WINDOWS_H
  22199. #ifndef WIN32_LEAN_AND_MEAN
  22200. #define WIN32_LEAN_AND_MEAN
  22201. #endif
  22202. #include <windows.h>
  22203. #ifdef HAVE_WINSOCK2_H
  22204. #include <winsock2.h>
  22205. #endif
  22206. #else
  22207. #ifdef HAVE_SYS_TYPES_H
  22208. #include <sys/types.h>
  22209. #endif
  22210. #ifdef HAVE_SYS_SOCKET_H
  22211. #include <sys/socket.h>
  22212. #endif
  22213. #ifdef HAVE_NETINET_IN_H
  22214. #include <netinet/in.h>
  22215. #endif
  22216. #ifdef HAVE_ARPA_INET_H
  22217. #include <arpa/inet.h>
  22218. #endif
  22219. #endif
  22220. "
  22221. if test "x$ac_cv_type_struct_sockaddr_storage" = xyes
  22222. then :
  22223. printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
  22224. fi
  22225. ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
  22226. if test "x$ac_cv_header_signal_h" = xyes
  22227. then :
  22228. printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h
  22229. fi
  22230. ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "
  22231. #ifdef HAVE_SIGNAL_H
  22232. #include <signal.h>
  22233. #endif
  22234. "
  22235. if test "x$ac_cv_type_sig_atomic_t" = xyes
  22236. then :
  22237. printf "%s\n" "#define HAVE_SIG_ATOMIC_T 1" >>confdefs.h
  22238. fi
  22239. case "$ac_cv_type_sig_atomic_t" in
  22240. yes)
  22241. #
  22242. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sig_atomic_t is already defined as volatile" >&5
  22243. printf %s "checking if sig_atomic_t is already defined as volatile... " >&6; }
  22244. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22245. /* end confdefs.h. */
  22246. #ifdef HAVE_SIGNAL_H
  22247. #include <signal.h>
  22248. #endif
  22249. int
  22250. main (void)
  22251. {
  22252. static volatile sig_atomic_t dummy = 0;
  22253. ;
  22254. return 0;
  22255. }
  22256. _ACEOF
  22257. if ac_fn_c_try_link "$LINENO"
  22258. then :
  22259. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22260. printf "%s\n" "no" >&6; }
  22261. ac_cv_sig_atomic_t_volatile="no"
  22262. else $as_nop
  22263. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22264. printf "%s\n" "yes" >&6; }
  22265. ac_cv_sig_atomic_t_volatile="yes"
  22266. fi
  22267. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22268. conftest$ac_exeext conftest.$ac_ext
  22269. #
  22270. if test "$ac_cv_sig_atomic_t_volatile" = "yes"; then
  22271. printf "%s\n" "#define HAVE_SIG_ATOMIC_T_VOLATILE 1" >>confdefs.h
  22272. fi
  22273. ;;
  22274. esac
  22275. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
  22276. printf %s "checking return type of signal handlers... " >&6; }
  22277. if test ${ac_cv_type_signal+y}
  22278. then :
  22279. printf %s "(cached) " >&6
  22280. else $as_nop
  22281. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22282. /* end confdefs.h. */
  22283. #include <sys/types.h>
  22284. #include <signal.h>
  22285. int
  22286. main (void)
  22287. {
  22288. return *(signal (0, 0)) (0) == 1;
  22289. ;
  22290. return 0;
  22291. }
  22292. _ACEOF
  22293. if ac_fn_c_try_compile "$LINENO"
  22294. then :
  22295. ac_cv_type_signal=int
  22296. else $as_nop
  22297. ac_cv_type_signal=void
  22298. fi
  22299. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22300. fi
  22301. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
  22302. printf "%s\n" "$ac_cv_type_signal" >&6; }
  22303. printf "%s\n" "#define RETSIGTYPE $ac_cv_type_signal" >>confdefs.h
  22304. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
  22305. if test "x$ac_cv_header_sys_types_h" = xyes
  22306. then :
  22307. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  22308. fi
  22309. ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
  22310. if test "x$ac_cv_header_sys_socket_h" = xyes
  22311. then :
  22312. printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
  22313. fi
  22314. #
  22315. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for recv" >&5
  22316. printf %s "checking for recv... " >&6; }
  22317. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22318. /* end confdefs.h. */
  22319. #undef inline
  22320. #ifdef HAVE_WINDOWS_H
  22321. #ifndef WIN32_LEAN_AND_MEAN
  22322. #define WIN32_LEAN_AND_MEAN
  22323. #endif
  22324. #include <windows.h>
  22325. #ifdef HAVE_WINSOCK2_H
  22326. #include <winsock2.h>
  22327. #else
  22328. #ifdef HAVE_WINSOCK_H
  22329. #include <winsock.h>
  22330. #endif
  22331. #endif
  22332. #else
  22333. #ifdef HAVE_SYS_TYPES_H
  22334. #include <sys/types.h>
  22335. #endif
  22336. #ifdef HAVE_SYS_SOCKET_H
  22337. #include <sys/socket.h>
  22338. #endif
  22339. #endif
  22340. int
  22341. main (void)
  22342. {
  22343. recv(0, 0, 0, 0);
  22344. ;
  22345. return 0;
  22346. }
  22347. _ACEOF
  22348. if ac_fn_c_try_link "$LINENO"
  22349. then :
  22350. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22351. printf "%s\n" "yes" >&6; }
  22352. curl_cv_recv="yes"
  22353. else $as_nop
  22354. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22355. printf "%s\n" "no" >&6; }
  22356. curl_cv_recv="no"
  22357. fi
  22358. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22359. conftest$ac_exeext conftest.$ac_ext
  22360. #
  22361. if test "$curl_cv_recv" = "yes"; then
  22362. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking types of args and return type for recv" >&5
  22363. printf %s "checking types of args and return type for recv... " >&6; }
  22364. if test ${curl_cv_func_recv_args+y}
  22365. then :
  22366. printf %s "(cached) " >&6
  22367. else $as_nop
  22368. curl_cv_func_recv_args="unknown"
  22369. for recv_retv in 'int' 'ssize_t'; do
  22370. for recv_arg1 in 'int' 'ssize_t' 'SOCKET'; do
  22371. for recv_arg2 in 'char *' 'void *'; do
  22372. for recv_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
  22373. for recv_arg4 in 'int' 'unsigned int'; do
  22374. if test "$curl_cv_func_recv_args" = "unknown"; then
  22375. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22376. /* end confdefs.h. */
  22377. #undef inline
  22378. #ifdef HAVE_WINDOWS_H
  22379. #ifndef WIN32_LEAN_AND_MEAN
  22380. #define WIN32_LEAN_AND_MEAN
  22381. #endif
  22382. #include <windows.h>
  22383. #ifdef HAVE_WINSOCK2_H
  22384. #include <winsock2.h>
  22385. #else
  22386. #ifdef HAVE_WINSOCK_H
  22387. #include <winsock.h>
  22388. #endif
  22389. #endif
  22390. #define RECVCALLCONV PASCAL
  22391. #else
  22392. #ifdef HAVE_SYS_TYPES_H
  22393. #include <sys/types.h>
  22394. #endif
  22395. #ifdef HAVE_SYS_SOCKET_H
  22396. #include <sys/socket.h>
  22397. #endif
  22398. #define RECVCALLCONV
  22399. #endif
  22400. extern $recv_retv RECVCALLCONV
  22401. recv($recv_arg1, $recv_arg2, $recv_arg3, $recv_arg4);
  22402. int
  22403. main (void)
  22404. {
  22405. $recv_arg1 s=0;
  22406. $recv_arg2 buf=0;
  22407. $recv_arg3 len=0;
  22408. $recv_arg4 flags=0;
  22409. $recv_retv res = recv(s, buf, len, flags);
  22410. ;
  22411. return 0;
  22412. }
  22413. _ACEOF
  22414. if ac_fn_c_try_compile "$LINENO"
  22415. then :
  22416. curl_cv_func_recv_args="$recv_arg1,$recv_arg2,$recv_arg3,$recv_arg4,$recv_retv"
  22417. fi
  22418. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22419. fi
  22420. done
  22421. done
  22422. done
  22423. done
  22424. done
  22425. fi
  22426. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_recv_args" >&5
  22427. printf "%s\n" "$curl_cv_func_recv_args" >&6; } # AC-CACHE-CHECK
  22428. if test "$curl_cv_func_recv_args" = "unknown"; then
  22429. as_fn_error $? "Cannot find proper types to use for recv args" "$LINENO" 5
  22430. else
  22431. recv_prev_IFS=$IFS; IFS=','
  22432. set dummy `echo "$curl_cv_func_recv_args" | sed 's/\*/\*/g'`
  22433. IFS=$recv_prev_IFS
  22434. shift
  22435. #
  22436. printf "%s\n" "#define RECV_TYPE_ARG1 $1" >>confdefs.h
  22437. printf "%s\n" "#define RECV_TYPE_ARG2 $2" >>confdefs.h
  22438. printf "%s\n" "#define RECV_TYPE_ARG3 $3" >>confdefs.h
  22439. printf "%s\n" "#define RECV_TYPE_ARG4 $4" >>confdefs.h
  22440. printf "%s\n" "#define RECV_TYPE_RETV $5" >>confdefs.h
  22441. #
  22442. printf "%s\n" "#define HAVE_RECV 1" >>confdefs.h
  22443. ac_cv_func_recv="yes"
  22444. fi
  22445. else
  22446. as_fn_error $? "Unable to link function recv" "$LINENO" 5
  22447. fi
  22448. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
  22449. if test "x$ac_cv_header_sys_types_h" = xyes
  22450. then :
  22451. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  22452. fi
  22453. ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
  22454. if test "x$ac_cv_header_sys_socket_h" = xyes
  22455. then :
  22456. printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
  22457. fi
  22458. #
  22459. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for recvfrom" >&5
  22460. printf %s "checking for recvfrom... " >&6; }
  22461. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22462. /* end confdefs.h. */
  22463. #undef inline
  22464. #ifdef HAVE_WINDOWS_H
  22465. #ifndef WIN32_LEAN_AND_MEAN
  22466. #define WIN32_LEAN_AND_MEAN
  22467. #endif
  22468. #include <windows.h>
  22469. #ifdef HAVE_WINSOCK2_H
  22470. #include <winsock2.h>
  22471. #else
  22472. #ifdef HAVE_WINSOCK_H
  22473. #include <winsock.h>
  22474. #endif
  22475. #endif
  22476. #else
  22477. #ifdef HAVE_SYS_TYPES_H
  22478. #include <sys/types.h>
  22479. #endif
  22480. #ifdef HAVE_SYS_SOCKET_H
  22481. #include <sys/socket.h>
  22482. #endif
  22483. #endif
  22484. int
  22485. main (void)
  22486. {
  22487. recvfrom(0, 0, 0, 0, 0, 0);
  22488. ;
  22489. return 0;
  22490. }
  22491. _ACEOF
  22492. if ac_fn_c_try_link "$LINENO"
  22493. then :
  22494. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22495. printf "%s\n" "yes" >&6; }
  22496. curl_cv_recvfrom="yes"
  22497. else $as_nop
  22498. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22499. printf "%s\n" "no" >&6; }
  22500. curl_cv_recvfrom="no"
  22501. fi
  22502. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22503. conftest$ac_exeext conftest.$ac_ext
  22504. #
  22505. if test "$curl_cv_recvfrom" = "yes"; then
  22506. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking types of args and return type for recvfrom" >&5
  22507. printf %s "checking types of args and return type for recvfrom... " >&6; }
  22508. if test ${curl_cv_func_recvfrom_args+y}
  22509. then :
  22510. printf %s "(cached) " >&6
  22511. else $as_nop
  22512. curl_cv_func_recvfrom_args="unknown"
  22513. for recvfrom_retv in 'int' 'ssize_t'; do
  22514. for recvfrom_arg1 in 'int' 'ssize_t' 'SOCKET'; do
  22515. for recvfrom_arg2 in 'char *' 'void *'; do
  22516. for recvfrom_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
  22517. for recvfrom_arg4 in 'int' 'unsigned int'; do
  22518. for recvfrom_arg5 in 'struct sockaddr *' 'void *' 'const struct sockaddr *'; do
  22519. for recvfrom_arg6 in 'socklen_t *' 'int *' 'unsigned int *' 'size_t *' 'void *'; do
  22520. if test "$curl_cv_func_recvfrom_args" = "unknown"; then
  22521. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22522. /* end confdefs.h. */
  22523. #undef inline
  22524. #ifdef HAVE_WINDOWS_H
  22525. #ifndef WIN32_LEAN_AND_MEAN
  22526. #define WIN32_LEAN_AND_MEAN
  22527. #endif
  22528. #include <windows.h>
  22529. #ifdef HAVE_WINSOCK2_H
  22530. #include <winsock2.h>
  22531. #else
  22532. #ifdef HAVE_WINSOCK_H
  22533. #include <winsock.h>
  22534. #endif
  22535. #endif
  22536. #define RECVFROMCALLCONV PASCAL
  22537. #else
  22538. #ifdef HAVE_SYS_TYPES_H
  22539. #include <sys/types.h>
  22540. #endif
  22541. #ifdef HAVE_SYS_SOCKET_H
  22542. #include <sys/socket.h>
  22543. #endif
  22544. #define RECVFROMCALLCONV
  22545. #endif
  22546. extern $recvfrom_retv RECVFROMCALLCONV
  22547. recvfrom($recvfrom_arg1, $recvfrom_arg2,
  22548. $recvfrom_arg3, $recvfrom_arg4,
  22549. $recvfrom_arg5, $recvfrom_arg6);
  22550. int
  22551. main (void)
  22552. {
  22553. $recvfrom_arg1 s=0;
  22554. $recvfrom_arg2 buf=0;
  22555. $recvfrom_arg3 len=0;
  22556. $recvfrom_arg4 flags=0;
  22557. $recvfrom_arg5 addr=0;
  22558. $recvfrom_arg6 addrlen=0;
  22559. $recvfrom_retv res=0;
  22560. res = recvfrom(s, buf, len, flags, addr, addrlen);
  22561. ;
  22562. return 0;
  22563. }
  22564. _ACEOF
  22565. if ac_fn_c_try_compile "$LINENO"
  22566. then :
  22567. curl_cv_func_recvfrom_args="$recvfrom_arg1,$recvfrom_arg2,$recvfrom_arg3,$recvfrom_arg4,$recvfrom_arg5,$recvfrom_arg6,$recvfrom_retv"
  22568. fi
  22569. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22570. fi
  22571. done
  22572. done
  22573. done
  22574. done
  22575. done
  22576. done
  22577. done
  22578. fi
  22579. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_recvfrom_args" >&5
  22580. printf "%s\n" "$curl_cv_func_recvfrom_args" >&6; } # AC-CACHE-CHECK
  22581. # Nearly last minute change for this release starts here
  22582. printf "%s\n" "#define HAVE_RECVFROM 1" >>confdefs.h
  22583. ac_cv_func_recvfrom="yes"
  22584. # Nearly last minute change for this release ends here
  22585. if test "$curl_cv_func_recvfrom_args" = "unknown"; then
  22586. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for recvfrom args" >&5
  22587. printf "%s\n" "$as_me: WARNING: Cannot find proper types to use for recvfrom args" >&2;}
  22588. else
  22589. recvfrom_prev_IFS=$IFS; IFS=','
  22590. set dummy `echo "$curl_cv_func_recvfrom_args" | sed 's/\*/\*/g'`
  22591. IFS=$recvfrom_prev_IFS
  22592. shift
  22593. #
  22594. recvfrom_ptrt_arg2=$2
  22595. recvfrom_qual_ptrt_arg5=$5
  22596. recvfrom_ptrt_arg6=$6
  22597. #
  22598. printf "%s\n" "#define RECVFROM_TYPE_ARG1 $1" >>confdefs.h
  22599. printf "%s\n" "#define RECVFROM_TYPE_ARG3 $3" >>confdefs.h
  22600. printf "%s\n" "#define RECVFROM_TYPE_ARG4 $4" >>confdefs.h
  22601. printf "%s\n" "#define RECVFROM_TYPE_RETV $7" >>confdefs.h
  22602. #
  22603. prev_sh_opts=$-
  22604. #
  22605. case $prev_sh_opts in
  22606. *f*)
  22607. ;;
  22608. *)
  22609. set -f
  22610. ;;
  22611. esac
  22612. #
  22613. case "$recvfrom_qual_ptrt_arg5" in
  22614. const*)
  22615. recvfrom_qual_arg5=const
  22616. recvfrom_ptrt_arg5=`echo $recvfrom_qual_ptrt_arg5 | sed 's/^const //'`
  22617. ;;
  22618. *)
  22619. recvfrom_qual_arg5=
  22620. recvfrom_ptrt_arg5=$recvfrom_qual_ptrt_arg5
  22621. ;;
  22622. esac
  22623. #
  22624. recvfrom_type_arg2=`echo $recvfrom_ptrt_arg2 | sed 's/ \*//'`
  22625. recvfrom_type_arg5=`echo $recvfrom_ptrt_arg5 | sed 's/ \*//'`
  22626. recvfrom_type_arg6=`echo $recvfrom_ptrt_arg6 | sed 's/ \*//'`
  22627. #
  22628. printf "%s\n" "#define RECVFROM_TYPE_ARG2 $recvfrom_type_arg2" >>confdefs.h
  22629. printf "%s\n" "#define RECVFROM_QUAL_ARG5 $recvfrom_qual_arg5" >>confdefs.h
  22630. printf "%s\n" "#define RECVFROM_TYPE_ARG5 $recvfrom_type_arg5" >>confdefs.h
  22631. printf "%s\n" "#define RECVFROM_TYPE_ARG6 $recvfrom_type_arg6" >>confdefs.h
  22632. #
  22633. if test "$recvfrom_type_arg2" = "void"; then
  22634. printf "%s\n" "#define RECVFROM_TYPE_ARG2_IS_VOID 1" >>confdefs.h
  22635. fi
  22636. if test "$recvfrom_type_arg5" = "void"; then
  22637. printf "%s\n" "#define RECVFROM_TYPE_ARG5_IS_VOID 1" >>confdefs.h
  22638. fi
  22639. if test "$recvfrom_type_arg6" = "void"; then
  22640. printf "%s\n" "#define RECVFROM_TYPE_ARG6_IS_VOID 1" >>confdefs.h
  22641. fi
  22642. #
  22643. case $prev_sh_opts in
  22644. *f*)
  22645. ;;
  22646. *)
  22647. set +f
  22648. ;;
  22649. esac
  22650. #
  22651. printf "%s\n" "#define HAVE_RECVFROM 1" >>confdefs.h
  22652. ac_cv_func_recvfrom="yes"
  22653. fi
  22654. else
  22655. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Unable to link function recvfrom" >&5
  22656. printf "%s\n" "$as_me: WARNING: Unable to link function recvfrom" >&2;}
  22657. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Your system will be vulnerable to some forms of DNS cache poisoning" >&5
  22658. printf "%s\n" "$as_me: WARNING: Your system will be vulnerable to some forms of DNS cache poisoning" >&2;}
  22659. fi
  22660. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
  22661. if test "x$ac_cv_header_sys_types_h" = xyes
  22662. then :
  22663. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  22664. fi
  22665. ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
  22666. if test "x$ac_cv_header_sys_socket_h" = xyes
  22667. then :
  22668. printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
  22669. fi
  22670. #
  22671. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for send" >&5
  22672. printf %s "checking for send... " >&6; }
  22673. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22674. /* end confdefs.h. */
  22675. #undef inline
  22676. #ifdef HAVE_WINDOWS_H
  22677. #ifndef WIN32_LEAN_AND_MEAN
  22678. #define WIN32_LEAN_AND_MEAN
  22679. #endif
  22680. #include <windows.h>
  22681. #ifdef HAVE_WINSOCK2_H
  22682. #include <winsock2.h>
  22683. #else
  22684. #ifdef HAVE_WINSOCK_H
  22685. #include <winsock.h>
  22686. #endif
  22687. #endif
  22688. #else
  22689. #ifdef HAVE_SYS_TYPES_H
  22690. #include <sys/types.h>
  22691. #endif
  22692. #ifdef HAVE_SYS_SOCKET_H
  22693. #include <sys/socket.h>
  22694. #endif
  22695. #endif
  22696. int
  22697. main (void)
  22698. {
  22699. send(0, 0, 0, 0);
  22700. ;
  22701. return 0;
  22702. }
  22703. _ACEOF
  22704. if ac_fn_c_try_link "$LINENO"
  22705. then :
  22706. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22707. printf "%s\n" "yes" >&6; }
  22708. curl_cv_send="yes"
  22709. else $as_nop
  22710. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22711. printf "%s\n" "no" >&6; }
  22712. curl_cv_send="no"
  22713. fi
  22714. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22715. conftest$ac_exeext conftest.$ac_ext
  22716. #
  22717. if test "$curl_cv_send" = "yes"; then
  22718. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking types of args and return type for send" >&5
  22719. printf %s "checking types of args and return type for send... " >&6; }
  22720. if test ${curl_cv_func_send_args+y}
  22721. then :
  22722. printf %s "(cached) " >&6
  22723. else $as_nop
  22724. curl_cv_func_send_args="unknown"
  22725. for send_retv in 'int' 'ssize_t'; do
  22726. for send_arg1 in 'int' 'ssize_t' 'SOCKET'; do
  22727. for send_arg2 in 'char *' 'void *' 'const char *' 'const void *'; do
  22728. for send_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
  22729. for send_arg4 in 'int' 'unsigned int'; do
  22730. if test "$curl_cv_func_send_args" = "unknown"; then
  22731. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22732. /* end confdefs.h. */
  22733. #undef inline
  22734. #ifdef HAVE_WINDOWS_H
  22735. #ifndef WIN32_LEAN_AND_MEAN
  22736. #define WIN32_LEAN_AND_MEAN
  22737. #endif
  22738. #include <windows.h>
  22739. #ifdef HAVE_WINSOCK2_H
  22740. #include <winsock2.h>
  22741. #else
  22742. #ifdef HAVE_WINSOCK_H
  22743. #include <winsock.h>
  22744. #endif
  22745. #endif
  22746. #define SENDCALLCONV PASCAL
  22747. #else
  22748. #ifdef HAVE_SYS_TYPES_H
  22749. #include <sys/types.h>
  22750. #endif
  22751. #ifdef HAVE_SYS_SOCKET_H
  22752. #include <sys/socket.h>
  22753. #endif
  22754. #define SENDCALLCONV
  22755. #endif
  22756. extern $send_retv SENDCALLCONV
  22757. send($send_arg1, $send_arg2, $send_arg3, $send_arg4);
  22758. int
  22759. main (void)
  22760. {
  22761. $send_arg1 s=0;
  22762. $send_arg3 len=0;
  22763. $send_arg4 flags=0;
  22764. $send_retv res = send(s, 0, len, flags);
  22765. ;
  22766. return 0;
  22767. }
  22768. _ACEOF
  22769. if ac_fn_c_try_compile "$LINENO"
  22770. then :
  22771. curl_cv_func_send_args="$send_arg1,$send_arg2,$send_arg3,$send_arg4,$send_retv"
  22772. fi
  22773. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22774. fi
  22775. done
  22776. done
  22777. done
  22778. done
  22779. done
  22780. fi
  22781. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_send_args" >&5
  22782. printf "%s\n" "$curl_cv_func_send_args" >&6; } # AC-CACHE-CHECK
  22783. if test "$curl_cv_func_send_args" = "unknown"; then
  22784. as_fn_error $? "Cannot find proper types to use for send args" "$LINENO" 5
  22785. else
  22786. send_prev_IFS=$IFS; IFS=','
  22787. set dummy `echo "$curl_cv_func_send_args" | sed 's/\*/\*/g'`
  22788. IFS=$send_prev_IFS
  22789. shift
  22790. #
  22791. send_qual_type_arg2=$2
  22792. #
  22793. printf "%s\n" "#define SEND_TYPE_ARG1 $1" >>confdefs.h
  22794. printf "%s\n" "#define SEND_TYPE_ARG3 $3" >>confdefs.h
  22795. printf "%s\n" "#define SEND_TYPE_ARG4 $4" >>confdefs.h
  22796. printf "%s\n" "#define SEND_TYPE_RETV $5" >>confdefs.h
  22797. #
  22798. prev_sh_opts=$-
  22799. #
  22800. case $prev_sh_opts in
  22801. *f*)
  22802. ;;
  22803. *)
  22804. set -f
  22805. ;;
  22806. esac
  22807. #
  22808. case "$send_qual_type_arg2" in
  22809. const*)
  22810. send_qual_arg2=const
  22811. send_type_arg2=`echo $send_qual_type_arg2 | sed 's/^const //'`
  22812. ;;
  22813. *)
  22814. send_qual_arg2=
  22815. send_type_arg2=$send_qual_type_arg2
  22816. ;;
  22817. esac
  22818. #
  22819. printf "%s\n" "#define SEND_QUAL_ARG2 $send_qual_arg2" >>confdefs.h
  22820. printf "%s\n" "#define SEND_TYPE_ARG2 $send_type_arg2" >>confdefs.h
  22821. #
  22822. case $prev_sh_opts in
  22823. *f*)
  22824. ;;
  22825. *)
  22826. set +f
  22827. ;;
  22828. esac
  22829. #
  22830. printf "%s\n" "#define HAVE_SEND 1" >>confdefs.h
  22831. ac_cv_func_send="yes"
  22832. fi
  22833. else
  22834. as_fn_error $? "Unable to link function send" "$LINENO" 5
  22835. fi
  22836. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
  22837. if test "x$ac_cv_header_sys_types_h" = xyes
  22838. then :
  22839. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  22840. fi
  22841. ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
  22842. if test "x$ac_cv_header_sys_socket_h" = xyes
  22843. then :
  22844. printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
  22845. fi
  22846. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MSG_NOSIGNAL" >&5
  22847. printf %s "checking for MSG_NOSIGNAL... " >&6; }
  22848. if test ${ac_cv_msg_nosignal+y}
  22849. then :
  22850. printf %s "(cached) " >&6
  22851. else $as_nop
  22852. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22853. /* end confdefs.h. */
  22854. #undef inline
  22855. #ifdef HAVE_WINDOWS_H
  22856. #ifndef WIN32_LEAN_AND_MEAN
  22857. #define WIN32_LEAN_AND_MEAN
  22858. #endif
  22859. #include <windows.h>
  22860. #ifdef HAVE_WINSOCK2_H
  22861. #include <winsock2.h>
  22862. #else
  22863. #ifdef HAVE_WINSOCK_H
  22864. #include <winsock.h>
  22865. #endif
  22866. #endif
  22867. #else
  22868. #ifdef HAVE_SYS_TYPES_H
  22869. #include <sys/types.h>
  22870. #endif
  22871. #ifdef HAVE_SYS_SOCKET_H
  22872. #include <sys/socket.h>
  22873. #endif
  22874. #endif
  22875. int
  22876. main (void)
  22877. {
  22878. int flag=MSG_NOSIGNAL;
  22879. ;
  22880. return 0;
  22881. }
  22882. _ACEOF
  22883. if ac_fn_c_try_compile "$LINENO"
  22884. then :
  22885. ac_cv_msg_nosignal="yes"
  22886. else $as_nop
  22887. ac_cv_msg_nosignal="no"
  22888. fi
  22889. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22890. fi
  22891. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_msg_nosignal" >&5
  22892. printf "%s\n" "$ac_cv_msg_nosignal" >&6; }
  22893. case "$ac_cv_msg_nosignal" in
  22894. yes)
  22895. printf "%s\n" "#define HAVE_MSG_NOSIGNAL 1" >>confdefs.h
  22896. ;;
  22897. esac
  22898. cares_includes_socket="\
  22899. /* includes start */
  22900. #ifdef HAVE_SYS_TYPES_H
  22901. # include <sys/types.h>
  22902. #endif
  22903. #ifdef HAVE_SOCKET_H
  22904. # include <socket.h>
  22905. #endif
  22906. /* includes end */"
  22907. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$cares_includes_socket
  22908. "
  22909. if test "x$ac_cv_header_sys_types_h" = xyes
  22910. then :
  22911. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  22912. fi
  22913. ac_fn_c_check_header_compile "$LINENO" "socket.h" "ac_cv_header_socket_h" "$cares_includes_socket
  22914. "
  22915. if test "x$ac_cv_header_socket_h" = xyes
  22916. then :
  22917. printf "%s\n" "#define HAVE_SOCKET_H 1" >>confdefs.h
  22918. fi
  22919. #
  22920. tst_links_closesocket="unknown"
  22921. tst_proto_closesocket="unknown"
  22922. tst_compi_closesocket="unknown"
  22923. tst_allow_closesocket="unknown"
  22924. #
  22925. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if closesocket can be linked" >&5
  22926. printf %s "checking if closesocket can be linked... " >&6; }
  22927. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22928. /* end confdefs.h. */
  22929. $cares_includes_winsock2
  22930. $cares_includes_socket
  22931. int
  22932. main (void)
  22933. {
  22934. if(0 != closesocket(0))
  22935. return 1;
  22936. ;
  22937. return 0;
  22938. }
  22939. _ACEOF
  22940. if ac_fn_c_try_link "$LINENO"
  22941. then :
  22942. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22943. printf "%s\n" "yes" >&6; }
  22944. tst_links_closesocket="yes"
  22945. else $as_nop
  22946. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22947. printf "%s\n" "no" >&6; }
  22948. tst_links_closesocket="no"
  22949. fi
  22950. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22951. conftest$ac_exeext conftest.$ac_ext
  22952. #
  22953. if test "$tst_links_closesocket" = "yes"; then
  22954. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if closesocket is prototyped" >&5
  22955. printf %s "checking if closesocket is prototyped... " >&6; }
  22956. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22957. /* end confdefs.h. */
  22958. $cares_includes_winsock2
  22959. $cares_includes_socket
  22960. _ACEOF
  22961. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  22962. $EGREP "closesocket" >/dev/null 2>&1
  22963. then :
  22964. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22965. printf "%s\n" "yes" >&6; }
  22966. tst_proto_closesocket="yes"
  22967. else $as_nop
  22968. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22969. printf "%s\n" "no" >&6; }
  22970. tst_proto_closesocket="no"
  22971. fi
  22972. rm -rf conftest*
  22973. fi
  22974. #
  22975. if test "$tst_proto_closesocket" = "yes"; then
  22976. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if closesocket is compilable" >&5
  22977. printf %s "checking if closesocket is compilable... " >&6; }
  22978. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22979. /* end confdefs.h. */
  22980. $cares_includes_winsock2
  22981. $cares_includes_socket
  22982. int
  22983. main (void)
  22984. {
  22985. if(0 != closesocket(0))
  22986. return 1;
  22987. ;
  22988. return 0;
  22989. }
  22990. _ACEOF
  22991. if ac_fn_c_try_compile "$LINENO"
  22992. then :
  22993. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22994. printf "%s\n" "yes" >&6; }
  22995. tst_compi_closesocket="yes"
  22996. else $as_nop
  22997. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22998. printf "%s\n" "no" >&6; }
  22999. tst_compi_closesocket="no"
  23000. fi
  23001. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23002. fi
  23003. #
  23004. if test "$tst_compi_closesocket" = "yes"; then
  23005. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if closesocket usage allowed" >&5
  23006. printf %s "checking if closesocket usage allowed... " >&6; }
  23007. if test "x$cares_disallow_closesocket" != "xyes"; then
  23008. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23009. printf "%s\n" "yes" >&6; }
  23010. tst_allow_closesocket="yes"
  23011. else
  23012. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23013. printf "%s\n" "no" >&6; }
  23014. tst_allow_closesocket="no"
  23015. fi
  23016. fi
  23017. #
  23018. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if closesocket might be used" >&5
  23019. printf %s "checking if closesocket might be used... " >&6; }
  23020. if test "$tst_links_closesocket" = "yes" &&
  23021. test "$tst_proto_closesocket" = "yes" &&
  23022. test "$tst_compi_closesocket" = "yes" &&
  23023. test "$tst_allow_closesocket" = "yes"; then
  23024. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23025. printf "%s\n" "yes" >&6; }
  23026. printf "%s\n" "#define HAVE_CLOSESOCKET 1" >>confdefs.h
  23027. ac_cv_func_closesocket="yes"
  23028. else
  23029. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23030. printf "%s\n" "no" >&6; }
  23031. ac_cv_func_closesocket="no"
  23032. fi
  23033. #
  23034. tst_links_closesocket_camel="unknown"
  23035. tst_proto_closesocket_camel="unknown"
  23036. tst_compi_closesocket_camel="unknown"
  23037. tst_allow_closesocket_camel="unknown"
  23038. #
  23039. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if CloseSocket can be linked" >&5
  23040. printf %s "checking if CloseSocket can be linked... " >&6; }
  23041. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23042. /* end confdefs.h. */
  23043. $cares_includes_sys_socket
  23044. int
  23045. main (void)
  23046. {
  23047. if(0 != CloseSocket(0))
  23048. return 1;
  23049. ;
  23050. return 0;
  23051. }
  23052. _ACEOF
  23053. if ac_fn_c_try_link "$LINENO"
  23054. then :
  23055. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23056. printf "%s\n" "yes" >&6; }
  23057. tst_links_closesocket_camel="yes"
  23058. else $as_nop
  23059. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23060. printf "%s\n" "no" >&6; }
  23061. tst_links_closesocket_camel="no"
  23062. fi
  23063. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23064. conftest$ac_exeext conftest.$ac_ext
  23065. #
  23066. if test "$tst_links_closesocket_camel" = "yes"; then
  23067. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is prototyped" >&5
  23068. printf %s "checking if CloseSocket is prototyped... " >&6; }
  23069. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23070. /* end confdefs.h. */
  23071. $cares_includes_sys_socket
  23072. _ACEOF
  23073. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  23074. $EGREP "CloseSocket" >/dev/null 2>&1
  23075. then :
  23076. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23077. printf "%s\n" "yes" >&6; }
  23078. tst_proto_closesocket_camel="yes"
  23079. else $as_nop
  23080. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23081. printf "%s\n" "no" >&6; }
  23082. tst_proto_closesocket_camel="no"
  23083. fi
  23084. rm -rf conftest*
  23085. fi
  23086. #
  23087. if test "$tst_proto_closesocket_camel" = "yes"; then
  23088. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is compilable" >&5
  23089. printf %s "checking if CloseSocket is compilable... " >&6; }
  23090. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23091. /* end confdefs.h. */
  23092. $cares_includes_sys_socket
  23093. int
  23094. main (void)
  23095. {
  23096. if(0 != CloseSocket(0))
  23097. return 1;
  23098. ;
  23099. return 0;
  23100. }
  23101. _ACEOF
  23102. if ac_fn_c_try_compile "$LINENO"
  23103. then :
  23104. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23105. printf "%s\n" "yes" >&6; }
  23106. tst_compi_closesocket_camel="yes"
  23107. else $as_nop
  23108. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23109. printf "%s\n" "no" >&6; }
  23110. tst_compi_closesocket_camel="no"
  23111. fi
  23112. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23113. fi
  23114. #
  23115. if test "$tst_compi_closesocket_camel" = "yes"; then
  23116. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if CloseSocket usage allowed" >&5
  23117. printf %s "checking if CloseSocket usage allowed... " >&6; }
  23118. if test "x$cares_disallow_closesocket_camel" != "xyes"; then
  23119. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23120. printf "%s\n" "yes" >&6; }
  23121. tst_allow_closesocket_camel="yes"
  23122. else
  23123. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23124. printf "%s\n" "no" >&6; }
  23125. tst_allow_closesocket_camel="no"
  23126. fi
  23127. fi
  23128. #
  23129. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if CloseSocket might be used" >&5
  23130. printf %s "checking if CloseSocket might be used... " >&6; }
  23131. if test "$tst_links_closesocket_camel" = "yes" &&
  23132. test "$tst_proto_closesocket_camel" = "yes" &&
  23133. test "$tst_compi_closesocket_camel" = "yes" &&
  23134. test "$tst_allow_closesocket_camel" = "yes"; then
  23135. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23136. printf "%s\n" "yes" >&6; }
  23137. printf "%s\n" "#define HAVE_CLOSESOCKET_CAMEL 1" >>confdefs.h
  23138. ac_cv_func_closesocket_camel="yes"
  23139. else
  23140. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23141. printf "%s\n" "no" >&6; }
  23142. ac_cv_func_closesocket_camel="no"
  23143. fi
  23144. #
  23145. tst_links_connect="unknown"
  23146. tst_proto_connect="unknown"
  23147. tst_compi_connect="unknown"
  23148. tst_allow_connect="unknown"
  23149. #
  23150. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if connect can be linked" >&5
  23151. printf %s "checking if connect can be linked... " >&6; }
  23152. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23153. /* end confdefs.h. */
  23154. $cares_includes_winsock2
  23155. $cares_includes_sys_socket
  23156. $cares_includes_socket
  23157. int
  23158. main (void)
  23159. {
  23160. if(0 != connect(0, 0, 0))
  23161. return 1;
  23162. ;
  23163. return 0;
  23164. }
  23165. _ACEOF
  23166. if ac_fn_c_try_link "$LINENO"
  23167. then :
  23168. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23169. printf "%s\n" "yes" >&6; }
  23170. tst_links_connect="yes"
  23171. else $as_nop
  23172. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23173. printf "%s\n" "no" >&6; }
  23174. tst_links_connect="no"
  23175. fi
  23176. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23177. conftest$ac_exeext conftest.$ac_ext
  23178. #
  23179. if test "$tst_links_connect" = "yes"; then
  23180. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if connect is prototyped" >&5
  23181. printf %s "checking if connect is prototyped... " >&6; }
  23182. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23183. /* end confdefs.h. */
  23184. $cares_includes_winsock2
  23185. $cares_includes_sys_socket
  23186. $cares_includes_socket
  23187. _ACEOF
  23188. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  23189. $EGREP "connect" >/dev/null 2>&1
  23190. then :
  23191. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23192. printf "%s\n" "yes" >&6; }
  23193. tst_proto_connect="yes"
  23194. else $as_nop
  23195. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23196. printf "%s\n" "no" >&6; }
  23197. tst_proto_connect="no"
  23198. fi
  23199. rm -rf conftest*
  23200. fi
  23201. #
  23202. if test "$tst_proto_connect" = "yes"; then
  23203. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if connect is compilable" >&5
  23204. printf %s "checking if connect is compilable... " >&6; }
  23205. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23206. /* end confdefs.h. */
  23207. $cares_includes_winsock2
  23208. $cares_includes_sys_socket
  23209. $cares_includes_socket
  23210. int
  23211. main (void)
  23212. {
  23213. if(0 != connect(0, 0, 0))
  23214. return 1;
  23215. ;
  23216. return 0;
  23217. }
  23218. _ACEOF
  23219. if ac_fn_c_try_compile "$LINENO"
  23220. then :
  23221. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23222. printf "%s\n" "yes" >&6; }
  23223. tst_compi_connect="yes"
  23224. else $as_nop
  23225. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23226. printf "%s\n" "no" >&6; }
  23227. tst_compi_connect="no"
  23228. fi
  23229. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23230. fi
  23231. #
  23232. if test "$tst_compi_connect" = "yes"; then
  23233. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if connect usage allowed" >&5
  23234. printf %s "checking if connect usage allowed... " >&6; }
  23235. if test "x$cares_disallow_connect" != "xyes"; then
  23236. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23237. printf "%s\n" "yes" >&6; }
  23238. tst_allow_connect="yes"
  23239. else
  23240. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23241. printf "%s\n" "no" >&6; }
  23242. tst_allow_connect="no"
  23243. fi
  23244. fi
  23245. #
  23246. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if connect might be used" >&5
  23247. printf %s "checking if connect might be used... " >&6; }
  23248. if test "$tst_links_connect" = "yes" &&
  23249. test "$tst_proto_connect" = "yes" &&
  23250. test "$tst_compi_connect" = "yes" &&
  23251. test "$tst_allow_connect" = "yes"; then
  23252. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23253. printf "%s\n" "yes" >&6; }
  23254. printf "%s\n" "#define HAVE_CONNECT 1" >>confdefs.h
  23255. ac_cv_func_connect="yes"
  23256. else
  23257. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23258. printf "%s\n" "no" >&6; }
  23259. ac_cv_func_connect="no"
  23260. fi
  23261. cares_includes_fcntl="\
  23262. /* includes start */
  23263. #ifdef HAVE_SYS_TYPES_H
  23264. # include <sys/types.h>
  23265. #endif
  23266. #ifdef HAVE_UNISTD_H
  23267. # include <unistd.h>
  23268. #endif
  23269. #ifdef HAVE_FCNTL_H
  23270. # include <fcntl.h>
  23271. #endif
  23272. /* includes end */"
  23273. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$cares_includes_fcntl
  23274. "
  23275. if test "x$ac_cv_header_sys_types_h" = xyes
  23276. then :
  23277. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  23278. fi
  23279. ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$cares_includes_fcntl
  23280. "
  23281. if test "x$ac_cv_header_unistd_h" = xyes
  23282. then :
  23283. printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
  23284. fi
  23285. ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$cares_includes_fcntl
  23286. "
  23287. if test "x$ac_cv_header_fcntl_h" = xyes
  23288. then :
  23289. printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
  23290. fi
  23291. #
  23292. tst_links_fcntl="unknown"
  23293. tst_proto_fcntl="unknown"
  23294. tst_compi_fcntl="unknown"
  23295. tst_allow_fcntl="unknown"
  23296. #
  23297. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl can be linked" >&5
  23298. printf %s "checking if fcntl can be linked... " >&6; }
  23299. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23300. /* end confdefs.h. */
  23301. /* Define fcntl to an innocuous variant, in case <limits.h> declares fcntl.
  23302. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  23303. #define fcntl innocuous_fcntl
  23304. /* System header to define __stub macros and hopefully few prototypes,
  23305. which can conflict with char fcntl (); below. */
  23306. #include <limits.h>
  23307. #undef fcntl
  23308. /* Override any GCC internal prototype to avoid an error.
  23309. Use char because int might match the return type of a GCC
  23310. builtin and then its argument prototype would still apply. */
  23311. #ifdef __cplusplus
  23312. extern "C"
  23313. #endif
  23314. char fcntl ();
  23315. /* The GNU C library defines this for functions which it implements
  23316. to always fail with ENOSYS. Some functions are actually named
  23317. something starting with __ and the normal name is an alias. */
  23318. #if defined __stub_fcntl || defined __stub___fcntl
  23319. choke me
  23320. #endif
  23321. int
  23322. main (void)
  23323. {
  23324. return fcntl ();
  23325. ;
  23326. return 0;
  23327. }
  23328. _ACEOF
  23329. if ac_fn_c_try_link "$LINENO"
  23330. then :
  23331. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23332. printf "%s\n" "yes" >&6; }
  23333. tst_links_fcntl="yes"
  23334. else $as_nop
  23335. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23336. printf "%s\n" "no" >&6; }
  23337. tst_links_fcntl="no"
  23338. fi
  23339. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23340. conftest$ac_exeext conftest.$ac_ext
  23341. #
  23342. if test "$tst_links_fcntl" = "yes"; then
  23343. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl is prototyped" >&5
  23344. printf %s "checking if fcntl is prototyped... " >&6; }
  23345. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23346. /* end confdefs.h. */
  23347. $cares_includes_fcntl
  23348. _ACEOF
  23349. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  23350. $EGREP "fcntl" >/dev/null 2>&1
  23351. then :
  23352. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23353. printf "%s\n" "yes" >&6; }
  23354. tst_proto_fcntl="yes"
  23355. else $as_nop
  23356. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23357. printf "%s\n" "no" >&6; }
  23358. tst_proto_fcntl="no"
  23359. fi
  23360. rm -rf conftest*
  23361. fi
  23362. #
  23363. if test "$tst_proto_fcntl" = "yes"; then
  23364. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl is compilable" >&5
  23365. printf %s "checking if fcntl is compilable... " >&6; }
  23366. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23367. /* end confdefs.h. */
  23368. $cares_includes_fcntl
  23369. int
  23370. main (void)
  23371. {
  23372. if(0 != fcntl(0, 0, 0))
  23373. return 1;
  23374. ;
  23375. return 0;
  23376. }
  23377. _ACEOF
  23378. if ac_fn_c_try_compile "$LINENO"
  23379. then :
  23380. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23381. printf "%s\n" "yes" >&6; }
  23382. tst_compi_fcntl="yes"
  23383. else $as_nop
  23384. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23385. printf "%s\n" "no" >&6; }
  23386. tst_compi_fcntl="no"
  23387. fi
  23388. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23389. fi
  23390. #
  23391. if test "$tst_compi_fcntl" = "yes"; then
  23392. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl usage allowed" >&5
  23393. printf %s "checking if fcntl usage allowed... " >&6; }
  23394. if test "x$cares_disallow_fcntl" != "xyes"; then
  23395. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23396. printf "%s\n" "yes" >&6; }
  23397. tst_allow_fcntl="yes"
  23398. else
  23399. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23400. printf "%s\n" "no" >&6; }
  23401. tst_allow_fcntl="no"
  23402. fi
  23403. fi
  23404. #
  23405. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl might be used" >&5
  23406. printf %s "checking if fcntl might be used... " >&6; }
  23407. if test "$tst_links_fcntl" = "yes" &&
  23408. test "$tst_proto_fcntl" = "yes" &&
  23409. test "$tst_compi_fcntl" = "yes" &&
  23410. test "$tst_allow_fcntl" = "yes"; then
  23411. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23412. printf "%s\n" "yes" >&6; }
  23413. printf "%s\n" "#define HAVE_FCNTL 1" >>confdefs.h
  23414. ac_cv_func_fcntl="yes"
  23415. #
  23416. tst_compi_fcntl_o_nonblock="unknown"
  23417. tst_allow_fcntl_o_nonblock="unknown"
  23418. #
  23419. case $host_os in
  23420. sunos4* | aix3* | beos*)
  23421. cares_disallow_fcntl_o_nonblock="yes"
  23422. ;;
  23423. esac
  23424. #
  23425. if test "$ac_cv_func_fcntl" = "yes"; then
  23426. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK is compilable" >&5
  23427. printf %s "checking if fcntl O_NONBLOCK is compilable... " >&6; }
  23428. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23429. /* end confdefs.h. */
  23430. $cares_includes_fcntl
  23431. int
  23432. main (void)
  23433. {
  23434. int flags = 0;
  23435. if(0 != fcntl(0, F_SETFL, flags | O_NONBLOCK))
  23436. return 1;
  23437. ;
  23438. return 0;
  23439. }
  23440. _ACEOF
  23441. if ac_fn_c_try_compile "$LINENO"
  23442. then :
  23443. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23444. printf "%s\n" "yes" >&6; }
  23445. tst_compi_fcntl_o_nonblock="yes"
  23446. else $as_nop
  23447. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23448. printf "%s\n" "no" >&6; }
  23449. tst_compi_fcntl_o_nonblock="no"
  23450. fi
  23451. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23452. fi
  23453. #
  23454. if test "$tst_compi_fcntl_o_nonblock" = "yes"; then
  23455. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK usage allowed" >&5
  23456. printf %s "checking if fcntl O_NONBLOCK usage allowed... " >&6; }
  23457. if test "x$cares_disallow_fcntl_o_nonblock" != "xyes"; then
  23458. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23459. printf "%s\n" "yes" >&6; }
  23460. tst_allow_fcntl_o_nonblock="yes"
  23461. else
  23462. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23463. printf "%s\n" "no" >&6; }
  23464. tst_allow_fcntl_o_nonblock="no"
  23465. fi
  23466. fi
  23467. #
  23468. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK might be used" >&5
  23469. printf %s "checking if fcntl O_NONBLOCK might be used... " >&6; }
  23470. if test "$tst_compi_fcntl_o_nonblock" = "yes" &&
  23471. test "$tst_allow_fcntl_o_nonblock" = "yes"; then
  23472. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23473. printf "%s\n" "yes" >&6; }
  23474. printf "%s\n" "#define HAVE_FCNTL_O_NONBLOCK 1" >>confdefs.h
  23475. ac_cv_func_fcntl_o_nonblock="yes"
  23476. else
  23477. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23478. printf "%s\n" "no" >&6; }
  23479. ac_cv_func_fcntl_o_nonblock="no"
  23480. fi
  23481. else
  23482. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23483. printf "%s\n" "no" >&6; }
  23484. ac_cv_func_fcntl="no"
  23485. fi
  23486. cares_includes_netdb="\
  23487. /* includes start */
  23488. #ifdef HAVE_SYS_TYPES_H
  23489. # include <sys/types.h>
  23490. #endif
  23491. #ifdef HAVE_NETDB_H
  23492. # include <netdb.h>
  23493. #endif
  23494. /* includes end */"
  23495. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$cares_includes_netdb
  23496. "
  23497. if test "x$ac_cv_header_sys_types_h" = xyes
  23498. then :
  23499. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  23500. fi
  23501. ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$cares_includes_netdb
  23502. "
  23503. if test "x$ac_cv_header_netdb_h" = xyes
  23504. then :
  23505. printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h
  23506. fi
  23507. #
  23508. tst_links_freeaddrinfo="unknown"
  23509. tst_proto_freeaddrinfo="unknown"
  23510. tst_compi_freeaddrinfo="unknown"
  23511. tst_allow_freeaddrinfo="unknown"
  23512. #
  23513. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo can be linked" >&5
  23514. printf %s "checking if freeaddrinfo can be linked... " >&6; }
  23515. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23516. /* end confdefs.h. */
  23517. $cares_includes_ws2tcpip
  23518. $cares_includes_sys_socket
  23519. $cares_includes_netdb
  23520. int
  23521. main (void)
  23522. {
  23523. freeaddrinfo(0);
  23524. ;
  23525. return 0;
  23526. }
  23527. _ACEOF
  23528. if ac_fn_c_try_link "$LINENO"
  23529. then :
  23530. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23531. printf "%s\n" "yes" >&6; }
  23532. tst_links_freeaddrinfo="yes"
  23533. else $as_nop
  23534. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23535. printf "%s\n" "no" >&6; }
  23536. tst_links_freeaddrinfo="no"
  23537. fi
  23538. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23539. conftest$ac_exeext conftest.$ac_ext
  23540. #
  23541. if test "$tst_links_freeaddrinfo" = "yes"; then
  23542. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is prototyped" >&5
  23543. printf %s "checking if freeaddrinfo is prototyped... " >&6; }
  23544. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23545. /* end confdefs.h. */
  23546. $cares_includes_ws2tcpip
  23547. $cares_includes_sys_socket
  23548. $cares_includes_netdb
  23549. _ACEOF
  23550. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  23551. $EGREP "freeaddrinfo" >/dev/null 2>&1
  23552. then :
  23553. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23554. printf "%s\n" "yes" >&6; }
  23555. tst_proto_freeaddrinfo="yes"
  23556. else $as_nop
  23557. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23558. printf "%s\n" "no" >&6; }
  23559. tst_proto_freeaddrinfo="no"
  23560. fi
  23561. rm -rf conftest*
  23562. fi
  23563. #
  23564. if test "$tst_proto_freeaddrinfo" = "yes"; then
  23565. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is compilable" >&5
  23566. printf %s "checking if freeaddrinfo is compilable... " >&6; }
  23567. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23568. /* end confdefs.h. */
  23569. $cares_includes_ws2tcpip
  23570. $cares_includes_sys_socket
  23571. $cares_includes_netdb
  23572. int
  23573. main (void)
  23574. {
  23575. freeaddrinfo(0);
  23576. ;
  23577. return 0;
  23578. }
  23579. _ACEOF
  23580. if ac_fn_c_try_compile "$LINENO"
  23581. then :
  23582. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23583. printf "%s\n" "yes" >&6; }
  23584. tst_compi_freeaddrinfo="yes"
  23585. else $as_nop
  23586. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23587. printf "%s\n" "no" >&6; }
  23588. tst_compi_freeaddrinfo="no"
  23589. fi
  23590. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23591. fi
  23592. #
  23593. if test "$tst_compi_freeaddrinfo" = "yes"; then
  23594. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo usage allowed" >&5
  23595. printf %s "checking if freeaddrinfo usage allowed... " >&6; }
  23596. if test "x$cares_disallow_freeaddrinfo" != "xyes"; then
  23597. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23598. printf "%s\n" "yes" >&6; }
  23599. tst_allow_freeaddrinfo="yes"
  23600. else
  23601. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23602. printf "%s\n" "no" >&6; }
  23603. tst_allow_freeaddrinfo="no"
  23604. fi
  23605. fi
  23606. #
  23607. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo might be used" >&5
  23608. printf %s "checking if freeaddrinfo might be used... " >&6; }
  23609. if test "$tst_links_freeaddrinfo" = "yes" &&
  23610. test "$tst_proto_freeaddrinfo" = "yes" &&
  23611. test "$tst_compi_freeaddrinfo" = "yes" &&
  23612. test "$tst_allow_freeaddrinfo" = "yes"; then
  23613. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23614. printf "%s\n" "yes" >&6; }
  23615. printf "%s\n" "#define HAVE_FREEADDRINFO 1" >>confdefs.h
  23616. ac_cv_func_freeaddrinfo="yes"
  23617. else
  23618. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23619. printf "%s\n" "no" >&6; }
  23620. ac_cv_func_freeaddrinfo="no"
  23621. fi
  23622. cares_includes_stdlib="\
  23623. /* includes start */
  23624. #ifdef HAVE_SYS_TYPES_H
  23625. # include <sys/types.h>
  23626. #endif
  23627. #ifdef HAVE_STDLIB_H
  23628. # include <stdlib.h>
  23629. #endif
  23630. /* includes end */"
  23631. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$cares_includes_stdlib
  23632. "
  23633. if test "x$ac_cv_header_sys_types_h" = xyes
  23634. then :
  23635. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  23636. fi
  23637. ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$cares_includes_stdlib
  23638. "
  23639. if test "x$ac_cv_header_stdlib_h" = xyes
  23640. then :
  23641. printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
  23642. fi
  23643. cares_includes_string="\
  23644. /* includes start */
  23645. #ifdef HAVE_SYS_TYPES_H
  23646. # include <sys/types.h>
  23647. #endif
  23648. #ifdef HAVE_STRING_H
  23649. # include <string.h>
  23650. #endif
  23651. #ifdef HAVE_STRINGS_H
  23652. # include <strings.h>
  23653. #endif
  23654. /* includes end */"
  23655. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$cares_includes_string
  23656. "
  23657. if test "x$ac_cv_header_sys_types_h" = xyes
  23658. then :
  23659. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  23660. fi
  23661. ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$cares_includes_string
  23662. "
  23663. if test "x$ac_cv_header_string_h" = xyes
  23664. then :
  23665. printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
  23666. fi
  23667. ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "$cares_includes_string
  23668. "
  23669. if test "x$ac_cv_header_strings_h" = xyes
  23670. then :
  23671. printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h
  23672. fi
  23673. #
  23674. tst_links_getaddrinfo="unknown"
  23675. tst_proto_getaddrinfo="unknown"
  23676. tst_compi_getaddrinfo="unknown"
  23677. tst_works_getaddrinfo="unknown"
  23678. tst_allow_getaddrinfo="unknown"
  23679. tst_tsafe_getaddrinfo="unknown"
  23680. #
  23681. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo can be linked" >&5
  23682. printf %s "checking if getaddrinfo can be linked... " >&6; }
  23683. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23684. /* end confdefs.h. */
  23685. $cares_includes_ws2tcpip
  23686. $cares_includes_sys_socket
  23687. $cares_includes_netdb
  23688. int
  23689. main (void)
  23690. {
  23691. if(0 != getaddrinfo(0, 0, 0, 0))
  23692. return 1;
  23693. ;
  23694. return 0;
  23695. }
  23696. _ACEOF
  23697. if ac_fn_c_try_link "$LINENO"
  23698. then :
  23699. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23700. printf "%s\n" "yes" >&6; }
  23701. tst_links_getaddrinfo="yes"
  23702. else $as_nop
  23703. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23704. printf "%s\n" "no" >&6; }
  23705. tst_links_getaddrinfo="no"
  23706. fi
  23707. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23708. conftest$ac_exeext conftest.$ac_ext
  23709. #
  23710. if test "$tst_links_getaddrinfo" = "yes"; then
  23711. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is prototyped" >&5
  23712. printf %s "checking if getaddrinfo is prototyped... " >&6; }
  23713. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23714. /* end confdefs.h. */
  23715. $cares_includes_ws2tcpip
  23716. $cares_includes_sys_socket
  23717. $cares_includes_netdb
  23718. _ACEOF
  23719. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  23720. $EGREP "getaddrinfo" >/dev/null 2>&1
  23721. then :
  23722. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23723. printf "%s\n" "yes" >&6; }
  23724. tst_proto_getaddrinfo="yes"
  23725. else $as_nop
  23726. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23727. printf "%s\n" "no" >&6; }
  23728. tst_proto_getaddrinfo="no"
  23729. fi
  23730. rm -rf conftest*
  23731. fi
  23732. #
  23733. if test "$tst_proto_getaddrinfo" = "yes"; then
  23734. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is compilable" >&5
  23735. printf %s "checking if getaddrinfo is compilable... " >&6; }
  23736. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23737. /* end confdefs.h. */
  23738. $cares_includes_ws2tcpip
  23739. $cares_includes_sys_socket
  23740. $cares_includes_netdb
  23741. int
  23742. main (void)
  23743. {
  23744. if(0 != getaddrinfo(0, 0, 0, 0))
  23745. return 1;
  23746. ;
  23747. return 0;
  23748. }
  23749. _ACEOF
  23750. if ac_fn_c_try_compile "$LINENO"
  23751. then :
  23752. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23753. printf "%s\n" "yes" >&6; }
  23754. tst_compi_getaddrinfo="yes"
  23755. else $as_nop
  23756. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23757. printf "%s\n" "no" >&6; }
  23758. tst_compi_getaddrinfo="no"
  23759. fi
  23760. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23761. fi
  23762. #
  23763. if test "x$cross_compiling" != "xyes" &&
  23764. test "$tst_compi_getaddrinfo" = "yes"; then
  23765. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
  23766. printf %s "checking if getaddrinfo seems to work... " >&6; }
  23767. if test "$cross_compiling" = yes
  23768. then :
  23769. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  23770. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  23771. as_fn_error $? "cannot run test program while cross compiling
  23772. See \`config.log' for more details" "$LINENO" 5; }
  23773. else $as_nop
  23774. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23775. /* end confdefs.h. */
  23776. $cares_includes_ws2tcpip
  23777. $cares_includes_stdlib
  23778. $cares_includes_string
  23779. $cares_includes_sys_socket
  23780. $cares_includes_netdb
  23781. int
  23782. main (void)
  23783. {
  23784. struct addrinfo hints;
  23785. struct addrinfo *ai = 0;
  23786. int error;
  23787. memset(&hints, 0, sizeof(hints));
  23788. hints.ai_flags = AI_NUMERICHOST;
  23789. hints.ai_family = AF_UNSPEC;
  23790. hints.ai_socktype = SOCK_STREAM;
  23791. error = getaddrinfo("127.0.0.1", 0, &hints, &ai);
  23792. if(error || !ai)
  23793. exit(1); /* fail */
  23794. else
  23795. exit(0);
  23796. ;
  23797. return 0;
  23798. }
  23799. _ACEOF
  23800. if ac_fn_c_try_run "$LINENO"
  23801. then :
  23802. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23803. printf "%s\n" "yes" >&6; }
  23804. tst_works_getaddrinfo="yes"
  23805. else $as_nop
  23806. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23807. printf "%s\n" "no" >&6; }
  23808. tst_works_getaddrinfo="no"
  23809. fi
  23810. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  23811. conftest.$ac_objext conftest.beam conftest.$ac_ext
  23812. fi
  23813. fi
  23814. #
  23815. if test "$tst_compi_getaddrinfo" = "yes" &&
  23816. test "$tst_works_getaddrinfo" != "no"; then
  23817. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo usage allowed" >&5
  23818. printf %s "checking if getaddrinfo usage allowed... " >&6; }
  23819. if test "x$cares_disallow_getaddrinfo" != "xyes"; then
  23820. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23821. printf "%s\n" "yes" >&6; }
  23822. tst_allow_getaddrinfo="yes"
  23823. else
  23824. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23825. printf "%s\n" "no" >&6; }
  23826. tst_allow_getaddrinfo="no"
  23827. fi
  23828. fi
  23829. #
  23830. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo might be used" >&5
  23831. printf %s "checking if getaddrinfo might be used... " >&6; }
  23832. if test "$tst_links_getaddrinfo" = "yes" &&
  23833. test "$tst_proto_getaddrinfo" = "yes" &&
  23834. test "$tst_compi_getaddrinfo" = "yes" &&
  23835. test "$tst_allow_getaddrinfo" = "yes" &&
  23836. test "$tst_works_getaddrinfo" != "no"; then
  23837. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23838. printf "%s\n" "yes" >&6; }
  23839. printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h
  23840. ac_cv_func_getaddrinfo="yes"
  23841. else
  23842. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23843. printf "%s\n" "no" >&6; }
  23844. ac_cv_func_getaddrinfo="no"
  23845. ac_cv_func_getaddrinfo_threadsafe="no"
  23846. fi
  23847. #
  23848. if test "$ac_cv_func_getaddrinfo" = "yes"; then
  23849. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is threadsafe" >&5
  23850. printf %s "checking if getaddrinfo is threadsafe... " >&6; }
  23851. case $host_os in
  23852. aix[1234].* | aix5.[01].*)
  23853. tst_tsafe_getaddrinfo="no"
  23854. ;;
  23855. aix*)
  23856. tst_tsafe_getaddrinfo="yes"
  23857. ;;
  23858. darwin[12345].*)
  23859. tst_tsafe_getaddrinfo="no"
  23860. ;;
  23861. darwin*)
  23862. tst_tsafe_getaddrinfo="yes"
  23863. ;;
  23864. freebsd[1234].* | freebsd5.[1234]*)
  23865. tst_tsafe_getaddrinfo="no"
  23866. ;;
  23867. freebsd*)
  23868. tst_tsafe_getaddrinfo="yes"
  23869. ;;
  23870. hpux[123456789].* | hpux10.* | hpux11.0* | hpux11.10*)
  23871. tst_tsafe_getaddrinfo="no"
  23872. ;;
  23873. hpux*)
  23874. tst_tsafe_getaddrinfo="yes"
  23875. ;;
  23876. netbsd[123].*)
  23877. tst_tsafe_getaddrinfo="no"
  23878. ;;
  23879. netbsd*)
  23880. tst_tsafe_getaddrinfo="yes"
  23881. ;;
  23882. *bsd*)
  23883. tst_tsafe_getaddrinfo="no"
  23884. ;;
  23885. solaris2*)
  23886. tst_tsafe_getaddrinfo="yes"
  23887. ;;
  23888. esac
  23889. if test "$tst_tsafe_getaddrinfo" = "unknown" &&
  23890. test "$ac_cv_native_windows" = "yes"; then
  23891. tst_tsafe_getaddrinfo="yes"
  23892. fi
  23893. if test "$tst_tsafe_getaddrinfo" = "unknown"; then
  23894. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23895. /* end confdefs.h. */
  23896. $cares_includes_sys_socket
  23897. $cares_includes_netdb
  23898. int main (void)
  23899. {
  23900. #ifdef h_errno
  23901. return 0;
  23902. #else
  23903. force compilation error
  23904. #endif
  23905. }
  23906. _ACEOF
  23907. if ac_fn_c_try_compile "$LINENO"
  23908. then :
  23909. tst_symbol_defined="yes"
  23910. else $as_nop
  23911. tst_symbol_defined="no"
  23912. fi
  23913. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23914. if test "$tst_symbol_defined" = "yes"; then
  23915. curl_cv_have_def_h_errno=yes
  23916. else
  23917. curl_cv_have_def_h_errno=no
  23918. fi
  23919. if test "$curl_cv_have_def_h_errno" = "yes"; then
  23920. tst_h_errno_macro="yes"
  23921. else
  23922. tst_h_errno_macro="no"
  23923. fi
  23924. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23925. /* end confdefs.h. */
  23926. $cares_includes_sys_socket
  23927. $cares_includes_netdb
  23928. int
  23929. main (void)
  23930. {
  23931. h_errno = 2;
  23932. if(0 != h_errno)
  23933. return 1;
  23934. ;
  23935. return 0;
  23936. }
  23937. _ACEOF
  23938. if ac_fn_c_try_compile "$LINENO"
  23939. then :
  23940. tst_h_errno_modifiable_lvalue="yes"
  23941. else $as_nop
  23942. tst_h_errno_modifiable_lvalue="no"
  23943. fi
  23944. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23945. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23946. /* end confdefs.h. */
  23947. int
  23948. main (void)
  23949. {
  23950. #if defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE >= 200809L)
  23951. return 0;
  23952. #elif defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 700)
  23953. return 0;
  23954. #else
  23955. force compilation error
  23956. #endif
  23957. ;
  23958. return 0;
  23959. }
  23960. _ACEOF
  23961. if ac_fn_c_try_compile "$LINENO"
  23962. then :
  23963. tst_h_errno_sbs_issue_7="yes"
  23964. else $as_nop
  23965. tst_h_errno_sbs_issue_7="no"
  23966. fi
  23967. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23968. if test "$tst_h_errno_macro" = "no" &&
  23969. test "$tst_h_errno_modifiable_lvalue" = "no" &&
  23970. test "$tst_h_errno_sbs_issue_7" = "no"; then
  23971. tst_tsafe_getaddrinfo="no"
  23972. else
  23973. tst_tsafe_getaddrinfo="yes"
  23974. fi
  23975. fi
  23976. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_tsafe_getaddrinfo" >&5
  23977. printf "%s\n" "$tst_tsafe_getaddrinfo" >&6; }
  23978. if test "$tst_tsafe_getaddrinfo" = "yes"; then
  23979. printf "%s\n" "#define HAVE_GETADDRINFO_THREADSAFE 1" >>confdefs.h
  23980. ac_cv_func_getaddrinfo_threadsafe="yes"
  23981. else
  23982. ac_cv_func_getaddrinfo_threadsafe="no"
  23983. fi
  23984. fi
  23985. #
  23986. tst_links_getenv="unknown"
  23987. tst_proto_getenv="unknown"
  23988. tst_compi_getenv="unknown"
  23989. tst_allow_getenv="unknown"
  23990. #
  23991. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getenv can be linked" >&5
  23992. printf %s "checking if getenv can be linked... " >&6; }
  23993. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23994. /* end confdefs.h. */
  23995. /* Define getenv to an innocuous variant, in case <limits.h> declares getenv.
  23996. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  23997. #define getenv innocuous_getenv
  23998. /* System header to define __stub macros and hopefully few prototypes,
  23999. which can conflict with char getenv (); below. */
  24000. #include <limits.h>
  24001. #undef getenv
  24002. /* Override any GCC internal prototype to avoid an error.
  24003. Use char because int might match the return type of a GCC
  24004. builtin and then its argument prototype would still apply. */
  24005. #ifdef __cplusplus
  24006. extern "C"
  24007. #endif
  24008. char getenv ();
  24009. /* The GNU C library defines this for functions which it implements
  24010. to always fail with ENOSYS. Some functions are actually named
  24011. something starting with __ and the normal name is an alias. */
  24012. #if defined __stub_getenv || defined __stub___getenv
  24013. choke me
  24014. #endif
  24015. int
  24016. main (void)
  24017. {
  24018. return getenv ();
  24019. ;
  24020. return 0;
  24021. }
  24022. _ACEOF
  24023. if ac_fn_c_try_link "$LINENO"
  24024. then :
  24025. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24026. printf "%s\n" "yes" >&6; }
  24027. tst_links_getenv="yes"
  24028. else $as_nop
  24029. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24030. printf "%s\n" "no" >&6; }
  24031. tst_links_getenv="no"
  24032. fi
  24033. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24034. conftest$ac_exeext conftest.$ac_ext
  24035. #
  24036. if test "$tst_links_getenv" = "yes"; then
  24037. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getenv is prototyped" >&5
  24038. printf %s "checking if getenv is prototyped... " >&6; }
  24039. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24040. /* end confdefs.h. */
  24041. $cares_includes_stdlib
  24042. _ACEOF
  24043. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  24044. $EGREP "getenv" >/dev/null 2>&1
  24045. then :
  24046. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24047. printf "%s\n" "yes" >&6; }
  24048. tst_proto_getenv="yes"
  24049. else $as_nop
  24050. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24051. printf "%s\n" "no" >&6; }
  24052. tst_proto_getenv="no"
  24053. fi
  24054. rm -rf conftest*
  24055. fi
  24056. #
  24057. if test "$tst_proto_getenv" = "yes"; then
  24058. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getenv is compilable" >&5
  24059. printf %s "checking if getenv is compilable... " >&6; }
  24060. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24061. /* end confdefs.h. */
  24062. $cares_includes_stdlib
  24063. int
  24064. main (void)
  24065. {
  24066. if(0 != getenv(0))
  24067. return 1;
  24068. ;
  24069. return 0;
  24070. }
  24071. _ACEOF
  24072. if ac_fn_c_try_compile "$LINENO"
  24073. then :
  24074. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24075. printf "%s\n" "yes" >&6; }
  24076. tst_compi_getenv="yes"
  24077. else $as_nop
  24078. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24079. printf "%s\n" "no" >&6; }
  24080. tst_compi_getenv="no"
  24081. fi
  24082. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24083. fi
  24084. #
  24085. if test "$tst_compi_getenv" = "yes"; then
  24086. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getenv usage allowed" >&5
  24087. printf %s "checking if getenv usage allowed... " >&6; }
  24088. if test "x$cares_disallow_getenv" != "xyes"; then
  24089. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24090. printf "%s\n" "yes" >&6; }
  24091. tst_allow_getenv="yes"
  24092. else
  24093. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24094. printf "%s\n" "no" >&6; }
  24095. tst_allow_getenv="no"
  24096. fi
  24097. fi
  24098. #
  24099. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getenv might be used" >&5
  24100. printf %s "checking if getenv might be used... " >&6; }
  24101. if test "$tst_links_getenv" = "yes" &&
  24102. test "$tst_proto_getenv" = "yes" &&
  24103. test "$tst_compi_getenv" = "yes" &&
  24104. test "$tst_allow_getenv" = "yes"; then
  24105. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24106. printf "%s\n" "yes" >&6; }
  24107. printf "%s\n" "#define HAVE_GETENV 1" >>confdefs.h
  24108. ac_cv_func_getenv="yes"
  24109. else
  24110. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24111. printf "%s\n" "no" >&6; }
  24112. ac_cv_func_getenv="no"
  24113. fi
  24114. #
  24115. tst_links_gethostbyaddr="unknown"
  24116. tst_proto_gethostbyaddr="unknown"
  24117. tst_compi_gethostbyaddr="unknown"
  24118. tst_allow_gethostbyaddr="unknown"
  24119. #
  24120. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr can be linked" >&5
  24121. printf %s "checking if gethostbyaddr can be linked... " >&6; }
  24122. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24123. /* end confdefs.h. */
  24124. $cares_includes_winsock2
  24125. $cares_includes_netdb
  24126. int
  24127. main (void)
  24128. {
  24129. if(0 != gethostbyaddr(0, 0, 0))
  24130. return 1;
  24131. ;
  24132. return 0;
  24133. }
  24134. _ACEOF
  24135. if ac_fn_c_try_link "$LINENO"
  24136. then :
  24137. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24138. printf "%s\n" "yes" >&6; }
  24139. tst_links_gethostbyaddr="yes"
  24140. else $as_nop
  24141. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24142. printf "%s\n" "no" >&6; }
  24143. tst_links_gethostbyaddr="no"
  24144. fi
  24145. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24146. conftest$ac_exeext conftest.$ac_ext
  24147. #
  24148. if test "$tst_links_gethostbyaddr" = "yes"; then
  24149. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is prototyped" >&5
  24150. printf %s "checking if gethostbyaddr is prototyped... " >&6; }
  24151. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24152. /* end confdefs.h. */
  24153. $cares_includes_winsock2
  24154. $cares_includes_netdb
  24155. _ACEOF
  24156. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  24157. $EGREP "gethostbyaddr" >/dev/null 2>&1
  24158. then :
  24159. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24160. printf "%s\n" "yes" >&6; }
  24161. tst_proto_gethostbyaddr="yes"
  24162. else $as_nop
  24163. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24164. printf "%s\n" "no" >&6; }
  24165. tst_proto_gethostbyaddr="no"
  24166. fi
  24167. rm -rf conftest*
  24168. fi
  24169. #
  24170. if test "$tst_proto_gethostbyaddr" = "yes"; then
  24171. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is compilable" >&5
  24172. printf %s "checking if gethostbyaddr is compilable... " >&6; }
  24173. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24174. /* end confdefs.h. */
  24175. $cares_includes_winsock2
  24176. $cares_includes_netdb
  24177. int
  24178. main (void)
  24179. {
  24180. if(0 != gethostbyaddr(0, 0, 0))
  24181. return 1;
  24182. ;
  24183. return 0;
  24184. }
  24185. _ACEOF
  24186. if ac_fn_c_try_compile "$LINENO"
  24187. then :
  24188. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24189. printf "%s\n" "yes" >&6; }
  24190. tst_compi_gethostbyaddr="yes"
  24191. else $as_nop
  24192. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24193. printf "%s\n" "no" >&6; }
  24194. tst_compi_gethostbyaddr="no"
  24195. fi
  24196. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24197. fi
  24198. #
  24199. if test "$tst_compi_gethostbyaddr" = "yes"; then
  24200. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr usage allowed" >&5
  24201. printf %s "checking if gethostbyaddr usage allowed... " >&6; }
  24202. if test "x$cares_disallow_gethostbyaddr" != "xyes"; then
  24203. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24204. printf "%s\n" "yes" >&6; }
  24205. tst_allow_gethostbyaddr="yes"
  24206. else
  24207. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24208. printf "%s\n" "no" >&6; }
  24209. tst_allow_gethostbyaddr="no"
  24210. fi
  24211. fi
  24212. #
  24213. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr might be used" >&5
  24214. printf %s "checking if gethostbyaddr might be used... " >&6; }
  24215. if test "$tst_links_gethostbyaddr" = "yes" &&
  24216. test "$tst_proto_gethostbyaddr" = "yes" &&
  24217. test "$tst_compi_gethostbyaddr" = "yes" &&
  24218. test "$tst_allow_gethostbyaddr" = "yes"; then
  24219. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24220. printf "%s\n" "yes" >&6; }
  24221. printf "%s\n" "#define HAVE_GETHOSTBYADDR 1" >>confdefs.h
  24222. ac_cv_func_gethostbyaddr="yes"
  24223. else
  24224. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24225. printf "%s\n" "no" >&6; }
  24226. ac_cv_func_gethostbyaddr="no"
  24227. fi
  24228. #
  24229. tst_links_gethostbyname="unknown"
  24230. tst_proto_gethostbyname="unknown"
  24231. tst_compi_gethostbyname="unknown"
  24232. tst_allow_gethostbyname="unknown"
  24233. #
  24234. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname can be linked" >&5
  24235. printf %s "checking if gethostbyname can be linked... " >&6; }
  24236. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24237. /* end confdefs.h. */
  24238. $cares_includes_winsock2
  24239. $cares_includes_netdb
  24240. int
  24241. main (void)
  24242. {
  24243. if(0 != gethostbyname(0))
  24244. return 1;
  24245. ;
  24246. return 0;
  24247. }
  24248. _ACEOF
  24249. if ac_fn_c_try_link "$LINENO"
  24250. then :
  24251. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24252. printf "%s\n" "yes" >&6; }
  24253. tst_links_gethostbyname="yes"
  24254. else $as_nop
  24255. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24256. printf "%s\n" "no" >&6; }
  24257. tst_links_gethostbyname="no"
  24258. fi
  24259. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24260. conftest$ac_exeext conftest.$ac_ext
  24261. #
  24262. if test "$tst_links_gethostbyname" = "yes"; then
  24263. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is prototyped" >&5
  24264. printf %s "checking if gethostbyname is prototyped... " >&6; }
  24265. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24266. /* end confdefs.h. */
  24267. $cares_includes_winsock2
  24268. $cares_includes_netdb
  24269. _ACEOF
  24270. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  24271. $EGREP "gethostbyname" >/dev/null 2>&1
  24272. then :
  24273. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24274. printf "%s\n" "yes" >&6; }
  24275. tst_proto_gethostbyname="yes"
  24276. else $as_nop
  24277. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24278. printf "%s\n" "no" >&6; }
  24279. tst_proto_gethostbyname="no"
  24280. fi
  24281. rm -rf conftest*
  24282. fi
  24283. #
  24284. if test "$tst_proto_gethostbyname" = "yes"; then
  24285. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is compilable" >&5
  24286. printf %s "checking if gethostbyname is compilable... " >&6; }
  24287. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24288. /* end confdefs.h. */
  24289. $cares_includes_winsock2
  24290. $cares_includes_netdb
  24291. int
  24292. main (void)
  24293. {
  24294. if(0 != gethostbyname(0))
  24295. return 1;
  24296. ;
  24297. return 0;
  24298. }
  24299. _ACEOF
  24300. if ac_fn_c_try_compile "$LINENO"
  24301. then :
  24302. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24303. printf "%s\n" "yes" >&6; }
  24304. tst_compi_gethostbyname="yes"
  24305. else $as_nop
  24306. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24307. printf "%s\n" "no" >&6; }
  24308. tst_compi_gethostbyname="no"
  24309. fi
  24310. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24311. fi
  24312. #
  24313. if test "$tst_compi_gethostbyname" = "yes"; then
  24314. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname usage allowed" >&5
  24315. printf %s "checking if gethostbyname usage allowed... " >&6; }
  24316. if test "x$cares_disallow_gethostbyname" != "xyes"; then
  24317. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24318. printf "%s\n" "yes" >&6; }
  24319. tst_allow_gethostbyname="yes"
  24320. else
  24321. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24322. printf "%s\n" "no" >&6; }
  24323. tst_allow_gethostbyname="no"
  24324. fi
  24325. fi
  24326. #
  24327. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname might be used" >&5
  24328. printf %s "checking if gethostbyname might be used... " >&6; }
  24329. if test "$tst_links_gethostbyname" = "yes" &&
  24330. test "$tst_proto_gethostbyname" = "yes" &&
  24331. test "$tst_compi_gethostbyname" = "yes" &&
  24332. test "$tst_allow_gethostbyname" = "yes"; then
  24333. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24334. printf "%s\n" "yes" >&6; }
  24335. printf "%s\n" "#define HAVE_GETHOSTBYNAME 1" >>confdefs.h
  24336. ac_cv_func_gethostbyname="yes"
  24337. else
  24338. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24339. printf "%s\n" "no" >&6; }
  24340. ac_cv_func_gethostbyname="no"
  24341. fi
  24342. cares_includes_unistd="\
  24343. /* includes start */
  24344. #ifdef HAVE_SYS_TYPES_H
  24345. # include <sys/types.h>
  24346. #endif
  24347. #ifdef HAVE_UNISTD_H
  24348. # include <unistd.h>
  24349. #endif
  24350. /* includes end */"
  24351. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$cares_includes_unistd
  24352. "
  24353. if test "x$ac_cv_header_sys_types_h" = xyes
  24354. then :
  24355. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  24356. fi
  24357. ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$cares_includes_unistd
  24358. "
  24359. if test "x$ac_cv_header_unistd_h" = xyes
  24360. then :
  24361. printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
  24362. fi
  24363. #
  24364. tst_links_gethostname="unknown"
  24365. tst_proto_gethostname="unknown"
  24366. tst_compi_gethostname="unknown"
  24367. tst_allow_gethostname="unknown"
  24368. #
  24369. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostname can be linked" >&5
  24370. printf %s "checking if gethostname can be linked... " >&6; }
  24371. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24372. /* end confdefs.h. */
  24373. $cares_includes_winsock2
  24374. $cares_includes_unistd
  24375. int
  24376. main (void)
  24377. {
  24378. if(0 != gethostname(0, 0))
  24379. return 1;
  24380. ;
  24381. return 0;
  24382. }
  24383. _ACEOF
  24384. if ac_fn_c_try_link "$LINENO"
  24385. then :
  24386. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24387. printf "%s\n" "yes" >&6; }
  24388. tst_links_gethostname="yes"
  24389. else $as_nop
  24390. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24391. printf "%s\n" "no" >&6; }
  24392. tst_links_gethostname="no"
  24393. fi
  24394. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24395. conftest$ac_exeext conftest.$ac_ext
  24396. #
  24397. if test "$tst_links_gethostname" = "yes"; then
  24398. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostname is prototyped" >&5
  24399. printf %s "checking if gethostname is prototyped... " >&6; }
  24400. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24401. /* end confdefs.h. */
  24402. $cares_includes_winsock2
  24403. $cares_includes_unistd
  24404. _ACEOF
  24405. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  24406. $EGREP "gethostname" >/dev/null 2>&1
  24407. then :
  24408. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24409. printf "%s\n" "yes" >&6; }
  24410. tst_proto_gethostname="yes"
  24411. else $as_nop
  24412. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24413. printf "%s\n" "no" >&6; }
  24414. tst_proto_gethostname="no"
  24415. fi
  24416. rm -rf conftest*
  24417. fi
  24418. #
  24419. if test "$tst_proto_gethostname" = "yes"; then
  24420. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostname is compilable" >&5
  24421. printf %s "checking if gethostname is compilable... " >&6; }
  24422. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24423. /* end confdefs.h. */
  24424. $cares_includes_winsock2
  24425. $cares_includes_unistd
  24426. int
  24427. main (void)
  24428. {
  24429. if(0 != gethostname(0, 0))
  24430. return 1;
  24431. ;
  24432. return 0;
  24433. }
  24434. _ACEOF
  24435. if ac_fn_c_try_compile "$LINENO"
  24436. then :
  24437. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24438. printf "%s\n" "yes" >&6; }
  24439. tst_compi_gethostname="yes"
  24440. else $as_nop
  24441. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24442. printf "%s\n" "no" >&6; }
  24443. tst_compi_gethostname="no"
  24444. fi
  24445. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24446. fi
  24447. #
  24448. if test "$tst_compi_gethostname" = "yes"; then
  24449. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostname arg 2 data type" >&5
  24450. printf %s "checking for gethostname arg 2 data type... " >&6; }
  24451. tst_gethostname_type_arg2="unknown"
  24452. for tst_arg1 in 'char *' 'unsigned char *' 'void *'; do
  24453. for tst_arg2 in 'int' 'unsigned int' 'size_t'; do
  24454. if test "$tst_gethostname_type_arg2" = "unknown"; then
  24455. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24456. /* end confdefs.h. */
  24457. $cares_includes_winsock2
  24458. $cares_includes_unistd
  24459. $cares_preprocess_callconv
  24460. extern int FUNCALLCONV gethostname($tst_arg1, $tst_arg2);
  24461. int
  24462. main (void)
  24463. {
  24464. if(0 != gethostname(0, 0))
  24465. return 1;
  24466. ;
  24467. return 0;
  24468. }
  24469. _ACEOF
  24470. if ac_fn_c_try_compile "$LINENO"
  24471. then :
  24472. tst_gethostname_type_arg2="$tst_arg2"
  24473. fi
  24474. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24475. fi
  24476. done
  24477. done
  24478. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_gethostname_type_arg2" >&5
  24479. printf "%s\n" "$tst_gethostname_type_arg2" >&6; }
  24480. if test "$tst_gethostname_type_arg2" != "unknown"; then
  24481. printf "%s\n" "#define GETHOSTNAME_TYPE_ARG2 $tst_gethostname_type_arg2" >>confdefs.h
  24482. fi
  24483. fi
  24484. #
  24485. if test "$tst_compi_gethostname" = "yes"; then
  24486. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostname usage allowed" >&5
  24487. printf %s "checking if gethostname usage allowed... " >&6; }
  24488. if test "x$cares_disallow_gethostname" != "xyes"; then
  24489. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24490. printf "%s\n" "yes" >&6; }
  24491. tst_allow_gethostname="yes"
  24492. else
  24493. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24494. printf "%s\n" "no" >&6; }
  24495. tst_allow_gethostname="no"
  24496. fi
  24497. fi
  24498. #
  24499. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostname might be used" >&5
  24500. printf %s "checking if gethostname might be used... " >&6; }
  24501. if test "$tst_links_gethostname" = "yes" &&
  24502. test "$tst_proto_gethostname" = "yes" &&
  24503. test "$tst_compi_gethostname" = "yes" &&
  24504. test "$tst_allow_gethostname" = "yes"; then
  24505. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24506. printf "%s\n" "yes" >&6; }
  24507. printf "%s\n" "#define HAVE_GETHOSTNAME 1" >>confdefs.h
  24508. ac_cv_func_gethostname="yes"
  24509. else
  24510. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24511. printf "%s\n" "no" >&6; }
  24512. ac_cv_func_gethostname="no"
  24513. fi
  24514. #
  24515. tst_links_getservbyport_r="unknown"
  24516. tst_proto_getservbyport_r="unknown"
  24517. tst_compi_getservbyport_r="unknown"
  24518. tst_allow_getservbyport_r="unknown"
  24519. tst_nargs_getservbyport_r="unknown"
  24520. #
  24521. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r can be linked" >&5
  24522. printf %s "checking if getservbyport_r can be linked... " >&6; }
  24523. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24524. /* end confdefs.h. */
  24525. /* Define getservbyport_r to an innocuous variant, in case <limits.h> declares getservbyport_r.
  24526. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  24527. #define getservbyport_r innocuous_getservbyport_r
  24528. /* System header to define __stub macros and hopefully few prototypes,
  24529. which can conflict with char getservbyport_r (); below. */
  24530. #include <limits.h>
  24531. #undef getservbyport_r
  24532. /* Override any GCC internal prototype to avoid an error.
  24533. Use char because int might match the return type of a GCC
  24534. builtin and then its argument prototype would still apply. */
  24535. #ifdef __cplusplus
  24536. extern "C"
  24537. #endif
  24538. char getservbyport_r ();
  24539. /* The GNU C library defines this for functions which it implements
  24540. to always fail with ENOSYS. Some functions are actually named
  24541. something starting with __ and the normal name is an alias. */
  24542. #if defined __stub_getservbyport_r || defined __stub___getservbyport_r
  24543. choke me
  24544. #endif
  24545. int
  24546. main (void)
  24547. {
  24548. return getservbyport_r ();
  24549. ;
  24550. return 0;
  24551. }
  24552. _ACEOF
  24553. if ac_fn_c_try_link "$LINENO"
  24554. then :
  24555. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24556. printf "%s\n" "yes" >&6; }
  24557. tst_links_getservbyport_r="yes"
  24558. else $as_nop
  24559. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24560. printf "%s\n" "no" >&6; }
  24561. tst_links_getservbyport_r="no"
  24562. fi
  24563. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24564. conftest$ac_exeext conftest.$ac_ext
  24565. #
  24566. if test "$tst_links_getservbyport_r" = "yes"; then
  24567. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is prototyped" >&5
  24568. printf %s "checking if getservbyport_r is prototyped... " >&6; }
  24569. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24570. /* end confdefs.h. */
  24571. $cares_includes_netdb
  24572. _ACEOF
  24573. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  24574. $EGREP "getservbyport_r" >/dev/null 2>&1
  24575. then :
  24576. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24577. printf "%s\n" "yes" >&6; }
  24578. tst_proto_getservbyport_r="yes"
  24579. else $as_nop
  24580. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24581. printf "%s\n" "no" >&6; }
  24582. tst_proto_getservbyport_r="no"
  24583. fi
  24584. rm -rf conftest*
  24585. fi
  24586. #
  24587. if test "$tst_proto_getservbyport_r" = "yes"; then
  24588. if test "$tst_nargs_getservbyport_r" = "unknown"; then
  24589. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 4 args." >&5
  24590. printf %s "checking if getservbyport_r takes 4 args.... " >&6; }
  24591. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24592. /* end confdefs.h. */
  24593. $cares_includes_netdb
  24594. int
  24595. main (void)
  24596. {
  24597. if(0 != getservbyport_r(0, 0, 0, 0))
  24598. return 1;
  24599. ;
  24600. return 0;
  24601. }
  24602. _ACEOF
  24603. if ac_fn_c_try_compile "$LINENO"
  24604. then :
  24605. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24606. printf "%s\n" "yes" >&6; }
  24607. tst_compi_getservbyport_r="yes"
  24608. tst_nargs_getservbyport_r="4"
  24609. else $as_nop
  24610. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24611. printf "%s\n" "no" >&6; }
  24612. tst_compi_getservbyport_r="no"
  24613. fi
  24614. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24615. fi
  24616. if test "$tst_nargs_getservbyport_r" = "unknown"; then
  24617. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 5 args." >&5
  24618. printf %s "checking if getservbyport_r takes 5 args.... " >&6; }
  24619. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24620. /* end confdefs.h. */
  24621. $cares_includes_netdb
  24622. int
  24623. main (void)
  24624. {
  24625. if(0 != getservbyport_r(0, 0, 0, 0, 0))
  24626. return 1;
  24627. ;
  24628. return 0;
  24629. }
  24630. _ACEOF
  24631. if ac_fn_c_try_compile "$LINENO"
  24632. then :
  24633. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24634. printf "%s\n" "yes" >&6; }
  24635. tst_compi_getservbyport_r="yes"
  24636. tst_nargs_getservbyport_r="5"
  24637. else $as_nop
  24638. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24639. printf "%s\n" "no" >&6; }
  24640. tst_compi_getservbyport_r="no"
  24641. fi
  24642. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24643. fi
  24644. if test "$tst_nargs_getservbyport_r" = "unknown"; then
  24645. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 6 args." >&5
  24646. printf %s "checking if getservbyport_r takes 6 args.... " >&6; }
  24647. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24648. /* end confdefs.h. */
  24649. $cares_includes_netdb
  24650. int
  24651. main (void)
  24652. {
  24653. if(0 != getservbyport_r(0, 0, 0, 0, 0, 0))
  24654. return 1;
  24655. ;
  24656. return 0;
  24657. }
  24658. _ACEOF
  24659. if ac_fn_c_try_compile "$LINENO"
  24660. then :
  24661. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24662. printf "%s\n" "yes" >&6; }
  24663. tst_compi_getservbyport_r="yes"
  24664. tst_nargs_getservbyport_r="6"
  24665. else $as_nop
  24666. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24667. printf "%s\n" "no" >&6; }
  24668. tst_compi_getservbyport_r="no"
  24669. fi
  24670. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24671. fi
  24672. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is compilable" >&5
  24673. printf %s "checking if getservbyport_r is compilable... " >&6; }
  24674. if test "$tst_compi_getservbyport_r" = "yes"; then
  24675. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24676. printf "%s\n" "yes" >&6; }
  24677. else
  24678. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24679. printf "%s\n" "no" >&6; }
  24680. fi
  24681. fi
  24682. #
  24683. if test "$tst_compi_getservbyport_r" = "yes"; then
  24684. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r usage allowed" >&5
  24685. printf %s "checking if getservbyport_r usage allowed... " >&6; }
  24686. if test "x$cares_disallow_getservbyport_r" != "xyes"; then
  24687. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24688. printf "%s\n" "yes" >&6; }
  24689. tst_allow_getservbyport_r="yes"
  24690. else
  24691. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24692. printf "%s\n" "no" >&6; }
  24693. tst_allow_getservbyport_r="no"
  24694. fi
  24695. fi
  24696. #
  24697. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r might be used" >&5
  24698. printf %s "checking if getservbyport_r might be used... " >&6; }
  24699. if test "$tst_links_getservbyport_r" = "yes" &&
  24700. test "$tst_proto_getservbyport_r" = "yes" &&
  24701. test "$tst_compi_getservbyport_r" = "yes" &&
  24702. test "$tst_allow_getservbyport_r" = "yes"; then
  24703. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24704. printf "%s\n" "yes" >&6; }
  24705. printf "%s\n" "#define HAVE_GETSERVBYPORT_R 1" >>confdefs.h
  24706. printf "%s\n" "#define GETSERVBYPORT_R_ARGS $tst_nargs_getservbyport_r" >>confdefs.h
  24707. if test "$tst_nargs_getservbyport_r" -eq "4"; then
  24708. printf "%s\n" "#define GETSERVBYPORT_R_BUFSIZE sizeof(struct servent_data)" >>confdefs.h
  24709. else
  24710. printf "%s\n" "#define GETSERVBYPORT_R_BUFSIZE 4096" >>confdefs.h
  24711. fi
  24712. ac_cv_func_getservbyport_r="yes"
  24713. else
  24714. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24715. printf "%s\n" "no" >&6; }
  24716. ac_cv_func_getservbyport_r="no"
  24717. fi
  24718. cares_includes_arpa_inet="\
  24719. /* includes start */
  24720. #ifdef HAVE_SYS_TYPES_H
  24721. # include <sys/types.h>
  24722. #endif
  24723. #ifdef HAVE_SYS_SOCKET_H
  24724. # include <sys/socket.h>
  24725. #endif
  24726. #ifdef HAVE_NETINET_IN_H
  24727. # include <netinet/in.h>
  24728. #endif
  24729. #ifdef HAVE_ARPA_INET_H
  24730. # include <arpa/inet.h>
  24731. #endif
  24732. /* includes end */"
  24733. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$cares_includes_arpa_inet
  24734. "
  24735. if test "x$ac_cv_header_sys_types_h" = xyes
  24736. then :
  24737. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  24738. fi
  24739. ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$cares_includes_arpa_inet
  24740. "
  24741. if test "x$ac_cv_header_sys_socket_h" = xyes
  24742. then :
  24743. printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
  24744. fi
  24745. ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$cares_includes_arpa_inet
  24746. "
  24747. if test "x$ac_cv_header_netinet_in_h" = xyes
  24748. then :
  24749. printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
  24750. fi
  24751. ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$cares_includes_arpa_inet
  24752. "
  24753. if test "x$ac_cv_header_arpa_inet_h" = xyes
  24754. then :
  24755. printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h
  24756. fi
  24757. #
  24758. tst_links_inet_net_pton="unknown"
  24759. tst_proto_inet_net_pton="unknown"
  24760. tst_compi_inet_net_pton="unknown"
  24761. tst_works_inet_net_pton="unknown"
  24762. tst_allow_inet_net_pton="unknown"
  24763. #
  24764. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_net_pton can be linked" >&5
  24765. printf %s "checking if inet_net_pton can be linked... " >&6; }
  24766. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24767. /* end confdefs.h. */
  24768. /* Define inet_net_pton to an innocuous variant, in case <limits.h> declares inet_net_pton.
  24769. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  24770. #define inet_net_pton innocuous_inet_net_pton
  24771. /* System header to define __stub macros and hopefully few prototypes,
  24772. which can conflict with char inet_net_pton (); below. */
  24773. #include <limits.h>
  24774. #undef inet_net_pton
  24775. /* Override any GCC internal prototype to avoid an error.
  24776. Use char because int might match the return type of a GCC
  24777. builtin and then its argument prototype would still apply. */
  24778. #ifdef __cplusplus
  24779. extern "C"
  24780. #endif
  24781. char inet_net_pton ();
  24782. /* The GNU C library defines this for functions which it implements
  24783. to always fail with ENOSYS. Some functions are actually named
  24784. something starting with __ and the normal name is an alias. */
  24785. #if defined __stub_inet_net_pton || defined __stub___inet_net_pton
  24786. choke me
  24787. #endif
  24788. int
  24789. main (void)
  24790. {
  24791. return inet_net_pton ();
  24792. ;
  24793. return 0;
  24794. }
  24795. _ACEOF
  24796. if ac_fn_c_try_link "$LINENO"
  24797. then :
  24798. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24799. printf "%s\n" "yes" >&6; }
  24800. tst_links_inet_net_pton="yes"
  24801. else $as_nop
  24802. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24803. printf "%s\n" "no" >&6; }
  24804. tst_links_inet_net_pton="no"
  24805. fi
  24806. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24807. conftest$ac_exeext conftest.$ac_ext
  24808. #
  24809. if test "$tst_links_inet_net_pton" = "yes"; then
  24810. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_net_pton is prototyped" >&5
  24811. printf %s "checking if inet_net_pton is prototyped... " >&6; }
  24812. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24813. /* end confdefs.h. */
  24814. $cares_includes_arpa_inet
  24815. _ACEOF
  24816. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  24817. $EGREP "inet_net_pton" >/dev/null 2>&1
  24818. then :
  24819. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24820. printf "%s\n" "yes" >&6; }
  24821. tst_proto_inet_net_pton="yes"
  24822. else $as_nop
  24823. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24824. printf "%s\n" "no" >&6; }
  24825. tst_proto_inet_net_pton="no"
  24826. fi
  24827. rm -rf conftest*
  24828. fi
  24829. #
  24830. if test "$tst_proto_inet_net_pton" = "yes"; then
  24831. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_net_pton is compilable" >&5
  24832. printf %s "checking if inet_net_pton is compilable... " >&6; }
  24833. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24834. /* end confdefs.h. */
  24835. $cares_includes_arpa_inet
  24836. int
  24837. main (void)
  24838. {
  24839. if(0 != inet_net_pton(0, 0, 0, 0))
  24840. return 1;
  24841. ;
  24842. return 0;
  24843. }
  24844. _ACEOF
  24845. if ac_fn_c_try_compile "$LINENO"
  24846. then :
  24847. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24848. printf "%s\n" "yes" >&6; }
  24849. tst_compi_inet_net_pton="yes"
  24850. else $as_nop
  24851. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24852. printf "%s\n" "no" >&6; }
  24853. tst_compi_inet_net_pton="no"
  24854. fi
  24855. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24856. fi
  24857. #
  24858. if test "x$cross_compiling" != "xyes" &&
  24859. test "$tst_compi_inet_net_pton" = "yes"; then
  24860. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_net_pton seems to work" >&5
  24861. printf %s "checking if inet_net_pton seems to work... " >&6; }
  24862. if test "$cross_compiling" = yes
  24863. then :
  24864. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  24865. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  24866. as_fn_error $? "cannot run test program while cross compiling
  24867. See \`config.log' for more details" "$LINENO" 5; }
  24868. else $as_nop
  24869. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24870. /* end confdefs.h. */
  24871. $cares_includes_stdlib
  24872. $cares_includes_arpa_inet
  24873. $cares_includes_string
  24874. int
  24875. main (void)
  24876. {
  24877. unsigned char ipv6a[16+1];
  24878. unsigned char ipv4a[4+1];
  24879. const char *ipv6net1 = "fe80::214:4fff:fe0b:76c8";
  24880. const char *ipv6net2 = "::fffe:7f00:1";
  24881. const char *ipv6net3 = "7f20:1::/64";
  24882. const char *ipv6net4 = "7f20:1::/2147483649";
  24883. const char *ipv4net1 = "192.168.100.1";
  24884. const char *ipv4net2 = "192.168.100/32";
  24885. const char *ipv4net3 = "192.168.100.1/2147483649";
  24886. /* - */
  24887. memset(ipv4a, 1, sizeof(ipv4a));
  24888. if(32 != inet_net_pton(AF_INET, ipv4net1, ipv4a, 4))
  24889. exit(1); /* fail */
  24890. /* - */
  24891. if( (ipv4a[0x00] != 0xc0) ||
  24892. (ipv4a[0x01] != 0xa8) ||
  24893. (ipv4a[0x02] != 0x64) ||
  24894. (ipv4a[0x03] != 0x01) ||
  24895. (ipv4a[0x04] != 0x01) )
  24896. exit(1); /* fail */
  24897. /* - */
  24898. memset(ipv4a, 1, sizeof(ipv4a));
  24899. if(32 != inet_net_pton(AF_INET, ipv4net2, ipv4a, 4))
  24900. exit(1); /* fail */
  24901. /* - */
  24902. if( (ipv4a[0x00] != 0xc0) ||
  24903. (ipv4a[0x01] != 0xa8) ||
  24904. (ipv4a[0x02] != 0x64) ||
  24905. (ipv4a[0x03] != 0x00) ||
  24906. (ipv4a[0x04] != 0x01) )
  24907. exit(1); /* fail */
  24908. /* - */
  24909. memset(ipv4a, 1, sizeof(ipv4a));
  24910. if(-1 != inet_net_pton(AF_INET, ipv4net3, ipv4a, 4))
  24911. exit(1); /* fail */
  24912. /* - */
  24913. memset(ipv6a, 1, sizeof(ipv6a));
  24914. if(128 != inet_net_pton(AF_INET6, ipv6net1, ipv6a, 16))
  24915. exit(1); /* fail */
  24916. /* - */
  24917. if( (ipv6a[0x00] != 0xfe) ||
  24918. (ipv6a[0x01] != 0x80) ||
  24919. (ipv6a[0x08] != 0x02) ||
  24920. (ipv6a[0x09] != 0x14) ||
  24921. (ipv6a[0x0a] != 0x4f) ||
  24922. (ipv6a[0x0b] != 0xff) ||
  24923. (ipv6a[0x0c] != 0xfe) ||
  24924. (ipv6a[0x0d] != 0x0b) ||
  24925. (ipv6a[0x0e] != 0x76) ||
  24926. (ipv6a[0x0f] != 0xc8) ||
  24927. (ipv6a[0x10] != 0x01) )
  24928. exit(1); /* fail */
  24929. /* - */
  24930. if( (ipv6a[0x02] != 0x0) ||
  24931. (ipv6a[0x03] != 0x0) ||
  24932. (ipv6a[0x04] != 0x0) ||
  24933. (ipv6a[0x05] != 0x0) ||
  24934. (ipv6a[0x06] != 0x0) ||
  24935. (ipv6a[0x07] != 0x0) )
  24936. exit(1); /* fail */
  24937. /* - */
  24938. memset(ipv6a, 0, sizeof(ipv6a));
  24939. ipv6a[0x10] = 0x01;
  24940. if(128 != inet_net_pton(AF_INET6, ipv6net2, ipv6a, 16))
  24941. exit(1); /* fail */
  24942. /* - */
  24943. if( (ipv6a[0x0a] != 0xff) ||
  24944. (ipv6a[0x0b] != 0xfe) ||
  24945. (ipv6a[0x0c] != 0x7f) ||
  24946. (ipv6a[0x0f] != 0x01) ||
  24947. (ipv6a[0x10] != 0x01) )
  24948. exit(1); /* fail */
  24949. /* - */
  24950. if( (ipv6a[0x00] != 0x0) ||
  24951. (ipv6a[0x01] != 0x0) ||
  24952. (ipv6a[0x02] != 0x0) ||
  24953. (ipv6a[0x03] != 0x0) ||
  24954. (ipv6a[0x04] != 0x0) ||
  24955. (ipv6a[0x05] != 0x0) ||
  24956. (ipv6a[0x06] != 0x0) ||
  24957. (ipv6a[0x07] != 0x0) ||
  24958. (ipv6a[0x08] != 0x0) ||
  24959. (ipv6a[0x09] != 0x0) ||
  24960. (ipv6a[0x0d] != 0x0) ||
  24961. (ipv6a[0x0e] != 0x0) )
  24962. exit(1); /* fail */
  24963. /* - */
  24964. memset(ipv6a, 1, sizeof(ipv6a));
  24965. if(64 != inet_net_pton(AF_INET6, ipv6net3, ipv6a, 16))
  24966. exit(1); /* fail */
  24967. if( (ipv6a[0x00] != 0x7f) ||
  24968. (ipv6a[0x01] != 0x20) ||
  24969. (ipv6a[0x03] != 0x01) ||
  24970. (ipv6a[0x08] != 0x01) ||
  24971. (ipv6a[0x09] != 0x01) ||
  24972. (ipv6a[0x0a] != 0x01) ||
  24973. (ipv6a[0x0b] != 0x01) ||
  24974. (ipv6a[0x0c] != 0x01) ||
  24975. (ipv6a[0x0d] != 0x01) ||
  24976. (ipv6a[0x0e] != 0x01) ||
  24977. (ipv6a[0x0f] != 0x01) ||
  24978. (ipv6a[0x10] != 0x01) )
  24979. exit(1); /* fail */
  24980. if( (ipv6a[0x02] != 0x0) ||
  24981. (ipv6a[0x04] != 0x0) ||
  24982. (ipv6a[0x05] != 0x0) ||
  24983. (ipv6a[0x06] != 0x0) ||
  24984. (ipv6a[0x07] != 0x0) ||
  24985. (ipv6a[0x07] != 0x0) )
  24986. exit(1); /* fail */
  24987. /* - */
  24988. memset(ipv6a, 1, sizeof(ipv6a));
  24989. if(-1 != inet_net_pton(AF_INET6, ipv6net4, ipv6a, 16))
  24990. exit(1); /* fail */
  24991. /* - */
  24992. exit(0);
  24993. ;
  24994. return 0;
  24995. }
  24996. _ACEOF
  24997. if ac_fn_c_try_run "$LINENO"
  24998. then :
  24999. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25000. printf "%s\n" "yes" >&6; }
  25001. tst_works_inet_net_pton="yes"
  25002. else $as_nop
  25003. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25004. printf "%s\n" "no" >&6; }
  25005. tst_works_inet_net_pton="no"
  25006. fi
  25007. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  25008. conftest.$ac_objext conftest.beam conftest.$ac_ext
  25009. fi
  25010. fi
  25011. #
  25012. if test "$tst_compi_inet_net_pton" = "yes" &&
  25013. test "$tst_works_inet_net_pton" != "no"; then
  25014. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_net_pton usage allowed" >&5
  25015. printf %s "checking if inet_net_pton usage allowed... " >&6; }
  25016. if test "x$cares_disallow_inet_net_pton" != "xyes"; then
  25017. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25018. printf "%s\n" "yes" >&6; }
  25019. tst_allow_inet_net_pton="yes"
  25020. else
  25021. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25022. printf "%s\n" "no" >&6; }
  25023. tst_allow_inet_net_pton="no"
  25024. fi
  25025. fi
  25026. #
  25027. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_net_pton might be used" >&5
  25028. printf %s "checking if inet_net_pton might be used... " >&6; }
  25029. if test "$tst_links_inet_net_pton" = "yes" &&
  25030. test "$tst_proto_inet_net_pton" = "yes" &&
  25031. test "$tst_compi_inet_net_pton" = "yes" &&
  25032. test "$tst_allow_inet_net_pton" = "yes" &&
  25033. test "$tst_works_inet_net_pton" != "no"; then
  25034. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25035. printf "%s\n" "yes" >&6; }
  25036. printf "%s\n" "#define HAVE_INET_NET_PTON 1" >>confdefs.h
  25037. ac_cv_func_inet_net_pton="yes"
  25038. else
  25039. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25040. printf "%s\n" "no" >&6; }
  25041. ac_cv_func_inet_net_pton="no"
  25042. fi
  25043. #
  25044. tst_links_inet_ntop="unknown"
  25045. tst_proto_inet_ntop="unknown"
  25046. tst_compi_inet_ntop="unknown"
  25047. tst_works_inet_ntop="unknown"
  25048. tst_allow_inet_ntop="unknown"
  25049. #
  25050. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop can be linked" >&5
  25051. printf %s "checking if inet_ntop can be linked... " >&6; }
  25052. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25053. /* end confdefs.h. */
  25054. /* Define inet_ntop to an innocuous variant, in case <limits.h> declares inet_ntop.
  25055. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  25056. #define inet_ntop innocuous_inet_ntop
  25057. /* System header to define __stub macros and hopefully few prototypes,
  25058. which can conflict with char inet_ntop (); below. */
  25059. #include <limits.h>
  25060. #undef inet_ntop
  25061. /* Override any GCC internal prototype to avoid an error.
  25062. Use char because int might match the return type of a GCC
  25063. builtin and then its argument prototype would still apply. */
  25064. #ifdef __cplusplus
  25065. extern "C"
  25066. #endif
  25067. char inet_ntop ();
  25068. /* The GNU C library defines this for functions which it implements
  25069. to always fail with ENOSYS. Some functions are actually named
  25070. something starting with __ and the normal name is an alias. */
  25071. #if defined __stub_inet_ntop || defined __stub___inet_ntop
  25072. choke me
  25073. #endif
  25074. int
  25075. main (void)
  25076. {
  25077. return inet_ntop ();
  25078. ;
  25079. return 0;
  25080. }
  25081. _ACEOF
  25082. if ac_fn_c_try_link "$LINENO"
  25083. then :
  25084. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25085. printf "%s\n" "yes" >&6; }
  25086. tst_links_inet_ntop="yes"
  25087. else $as_nop
  25088. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25089. printf "%s\n" "no" >&6; }
  25090. tst_links_inet_ntop="no"
  25091. fi
  25092. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  25093. conftest$ac_exeext conftest.$ac_ext
  25094. #
  25095. if test "$tst_links_inet_ntop" = "yes"; then
  25096. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is prototyped" >&5
  25097. printf %s "checking if inet_ntop is prototyped... " >&6; }
  25098. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25099. /* end confdefs.h. */
  25100. $cares_includes_arpa_inet
  25101. _ACEOF
  25102. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  25103. $EGREP "inet_ntop" >/dev/null 2>&1
  25104. then :
  25105. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25106. printf "%s\n" "yes" >&6; }
  25107. tst_proto_inet_ntop="yes"
  25108. else $as_nop
  25109. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25110. printf "%s\n" "no" >&6; }
  25111. tst_proto_inet_ntop="no"
  25112. fi
  25113. rm -rf conftest*
  25114. fi
  25115. #
  25116. if test "$tst_proto_inet_ntop" = "yes"; then
  25117. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is compilable" >&5
  25118. printf %s "checking if inet_ntop is compilable... " >&6; }
  25119. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25120. /* end confdefs.h. */
  25121. $cares_includes_arpa_inet
  25122. int
  25123. main (void)
  25124. {
  25125. if(0 != inet_ntop(0, 0, 0, 0))
  25126. return 1;
  25127. ;
  25128. return 0;
  25129. }
  25130. _ACEOF
  25131. if ac_fn_c_try_compile "$LINENO"
  25132. then :
  25133. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25134. printf "%s\n" "yes" >&6; }
  25135. tst_compi_inet_ntop="yes"
  25136. else $as_nop
  25137. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25138. printf "%s\n" "no" >&6; }
  25139. tst_compi_inet_ntop="no"
  25140. fi
  25141. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  25142. fi
  25143. #
  25144. if test "x$cross_compiling" != "xyes" &&
  25145. test "$tst_compi_inet_ntop" = "yes"; then
  25146. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop seems to work" >&5
  25147. printf %s "checking if inet_ntop seems to work... " >&6; }
  25148. if test "$cross_compiling" = yes
  25149. then :
  25150. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  25151. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  25152. as_fn_error $? "cannot run test program while cross compiling
  25153. See \`config.log' for more details" "$LINENO" 5; }
  25154. else $as_nop
  25155. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25156. /* end confdefs.h. */
  25157. $cares_includes_stdlib
  25158. $cares_includes_arpa_inet
  25159. $cares_includes_string
  25160. int
  25161. main (void)
  25162. {
  25163. char ipv6res[sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255")];
  25164. char ipv4res[sizeof "255.255.255.255"];
  25165. unsigned char ipv6a[26];
  25166. unsigned char ipv4a[5];
  25167. char *ipv6ptr = 0;
  25168. char *ipv4ptr = 0;
  25169. /* - */
  25170. ipv4res[0] = '\0';
  25171. ipv4a[0] = 0xc0;
  25172. ipv4a[1] = 0xa8;
  25173. ipv4a[2] = 0x64;
  25174. ipv4a[3] = 0x01;
  25175. ipv4a[4] = 0x01;
  25176. /* - */
  25177. ipv4ptr = inet_ntop(AF_INET, ipv4a, ipv4res, sizeof(ipv4res));
  25178. if(!ipv4ptr)
  25179. exit(1); /* fail */
  25180. if(ipv4ptr != ipv4res)
  25181. exit(1); /* fail */
  25182. if(!ipv4ptr[0])
  25183. exit(1); /* fail */
  25184. if(memcmp(ipv4res, "192.168.100.1", 13) != 0)
  25185. exit(1); /* fail */
  25186. /* - */
  25187. ipv6res[0] = '\0';
  25188. memset(ipv6a, 0, sizeof(ipv6a));
  25189. ipv6a[0] = 0xfe;
  25190. ipv6a[1] = 0x80;
  25191. ipv6a[8] = 0x02;
  25192. ipv6a[9] = 0x14;
  25193. ipv6a[10] = 0x4f;
  25194. ipv6a[11] = 0xff;
  25195. ipv6a[12] = 0xfe;
  25196. ipv6a[13] = 0x0b;
  25197. ipv6a[14] = 0x76;
  25198. ipv6a[15] = 0xc8;
  25199. ipv6a[25] = 0x01;
  25200. /* - */
  25201. ipv6ptr = inet_ntop(AF_INET6, ipv6a, ipv6res, sizeof(ipv6res));
  25202. if(!ipv6ptr)
  25203. exit(1); /* fail */
  25204. if(ipv6ptr != ipv6res)
  25205. exit(1); /* fail */
  25206. if(!ipv6ptr[0])
  25207. exit(1); /* fail */
  25208. if(memcmp(ipv6res, "fe80::214:4fff:fe0b:76c8", 24) != 0)
  25209. exit(1); /* fail */
  25210. /* - */
  25211. exit(0);
  25212. ;
  25213. return 0;
  25214. }
  25215. _ACEOF
  25216. if ac_fn_c_try_run "$LINENO"
  25217. then :
  25218. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25219. printf "%s\n" "yes" >&6; }
  25220. tst_works_inet_ntop="yes"
  25221. else $as_nop
  25222. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25223. printf "%s\n" "no" >&6; }
  25224. tst_works_inet_ntop="no"
  25225. fi
  25226. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  25227. conftest.$ac_objext conftest.beam conftest.$ac_ext
  25228. fi
  25229. fi
  25230. #
  25231. if test "$tst_compi_inet_ntop" = "yes" &&
  25232. test "$tst_works_inet_ntop" != "no"; then
  25233. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop usage allowed" >&5
  25234. printf %s "checking if inet_ntop usage allowed... " >&6; }
  25235. if test "x$cares_disallow_inet_ntop" != "xyes"; then
  25236. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25237. printf "%s\n" "yes" >&6; }
  25238. tst_allow_inet_ntop="yes"
  25239. else
  25240. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25241. printf "%s\n" "no" >&6; }
  25242. tst_allow_inet_ntop="no"
  25243. fi
  25244. fi
  25245. #
  25246. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop might be used" >&5
  25247. printf %s "checking if inet_ntop might be used... " >&6; }
  25248. if test "$tst_links_inet_ntop" = "yes" &&
  25249. test "$tst_proto_inet_ntop" = "yes" &&
  25250. test "$tst_compi_inet_ntop" = "yes" &&
  25251. test "$tst_allow_inet_ntop" = "yes" &&
  25252. test "$tst_works_inet_ntop" != "no"; then
  25253. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25254. printf "%s\n" "yes" >&6; }
  25255. printf "%s\n" "#define HAVE_INET_NTOP 1" >>confdefs.h
  25256. ac_cv_func_inet_ntop="yes"
  25257. else
  25258. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25259. printf "%s\n" "no" >&6; }
  25260. ac_cv_func_inet_ntop="no"
  25261. fi
  25262. #
  25263. tst_links_inet_pton="unknown"
  25264. tst_proto_inet_pton="unknown"
  25265. tst_compi_inet_pton="unknown"
  25266. tst_works_inet_pton="unknown"
  25267. tst_allow_inet_pton="unknown"
  25268. #
  25269. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton can be linked" >&5
  25270. printf %s "checking if inet_pton can be linked... " >&6; }
  25271. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25272. /* end confdefs.h. */
  25273. /* Define inet_pton to an innocuous variant, in case <limits.h> declares inet_pton.
  25274. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  25275. #define inet_pton innocuous_inet_pton
  25276. /* System header to define __stub macros and hopefully few prototypes,
  25277. which can conflict with char inet_pton (); below. */
  25278. #include <limits.h>
  25279. #undef inet_pton
  25280. /* Override any GCC internal prototype to avoid an error.
  25281. Use char because int might match the return type of a GCC
  25282. builtin and then its argument prototype would still apply. */
  25283. #ifdef __cplusplus
  25284. extern "C"
  25285. #endif
  25286. char inet_pton ();
  25287. /* The GNU C library defines this for functions which it implements
  25288. to always fail with ENOSYS. Some functions are actually named
  25289. something starting with __ and the normal name is an alias. */
  25290. #if defined __stub_inet_pton || defined __stub___inet_pton
  25291. choke me
  25292. #endif
  25293. int
  25294. main (void)
  25295. {
  25296. return inet_pton ();
  25297. ;
  25298. return 0;
  25299. }
  25300. _ACEOF
  25301. if ac_fn_c_try_link "$LINENO"
  25302. then :
  25303. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25304. printf "%s\n" "yes" >&6; }
  25305. tst_links_inet_pton="yes"
  25306. else $as_nop
  25307. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25308. printf "%s\n" "no" >&6; }
  25309. tst_links_inet_pton="no"
  25310. fi
  25311. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  25312. conftest$ac_exeext conftest.$ac_ext
  25313. #
  25314. if test "$tst_links_inet_pton" = "yes"; then
  25315. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton is prototyped" >&5
  25316. printf %s "checking if inet_pton is prototyped... " >&6; }
  25317. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25318. /* end confdefs.h. */
  25319. $cares_includes_arpa_inet
  25320. _ACEOF
  25321. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  25322. $EGREP "inet_pton" >/dev/null 2>&1
  25323. then :
  25324. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25325. printf "%s\n" "yes" >&6; }
  25326. tst_proto_inet_pton="yes"
  25327. else $as_nop
  25328. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25329. printf "%s\n" "no" >&6; }
  25330. tst_proto_inet_pton="no"
  25331. fi
  25332. rm -rf conftest*
  25333. fi
  25334. #
  25335. if test "$tst_proto_inet_pton" = "yes"; then
  25336. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton is compilable" >&5
  25337. printf %s "checking if inet_pton is compilable... " >&6; }
  25338. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25339. /* end confdefs.h. */
  25340. $cares_includes_arpa_inet
  25341. int
  25342. main (void)
  25343. {
  25344. if(0 != inet_pton(0, 0, 0))
  25345. return 1;
  25346. ;
  25347. return 0;
  25348. }
  25349. _ACEOF
  25350. if ac_fn_c_try_compile "$LINENO"
  25351. then :
  25352. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25353. printf "%s\n" "yes" >&6; }
  25354. tst_compi_inet_pton="yes"
  25355. else $as_nop
  25356. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25357. printf "%s\n" "no" >&6; }
  25358. tst_compi_inet_pton="no"
  25359. fi
  25360. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  25361. fi
  25362. #
  25363. if test "x$cross_compiling" != "xyes" &&
  25364. test "$tst_compi_inet_pton" = "yes"; then
  25365. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton seems to work" >&5
  25366. printf %s "checking if inet_pton seems to work... " >&6; }
  25367. if test "$cross_compiling" = yes
  25368. then :
  25369. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  25370. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  25371. as_fn_error $? "cannot run test program while cross compiling
  25372. See \`config.log' for more details" "$LINENO" 5; }
  25373. else $as_nop
  25374. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25375. /* end confdefs.h. */
  25376. $cares_includes_stdlib
  25377. $cares_includes_arpa_inet
  25378. $cares_includes_string
  25379. int
  25380. main (void)
  25381. {
  25382. unsigned char ipv6a[16+1];
  25383. unsigned char ipv4a[4+1];
  25384. const char *ipv6src = "fe80::214:4fff:fe0b:76c8";
  25385. const char *ipv4src = "192.168.100.1";
  25386. /* - */
  25387. memset(ipv4a, 1, sizeof(ipv4a));
  25388. if(1 != inet_pton(AF_INET, ipv4src, ipv4a))
  25389. exit(1); /* fail */
  25390. /* - */
  25391. if( (ipv4a[0] != 0xc0) ||
  25392. (ipv4a[1] != 0xa8) ||
  25393. (ipv4a[2] != 0x64) ||
  25394. (ipv4a[3] != 0x01) ||
  25395. (ipv4a[4] != 0x01) )
  25396. exit(1); /* fail */
  25397. /* - */
  25398. memset(ipv6a, 1, sizeof(ipv6a));
  25399. if(1 != inet_pton(AF_INET6, ipv6src, ipv6a))
  25400. exit(1); /* fail */
  25401. /* - */
  25402. if( (ipv6a[0] != 0xfe) ||
  25403. (ipv6a[1] != 0x80) ||
  25404. (ipv6a[8] != 0x02) ||
  25405. (ipv6a[9] != 0x14) ||
  25406. (ipv6a[10] != 0x4f) ||
  25407. (ipv6a[11] != 0xff) ||
  25408. (ipv6a[12] != 0xfe) ||
  25409. (ipv6a[13] != 0x0b) ||
  25410. (ipv6a[14] != 0x76) ||
  25411. (ipv6a[15] != 0xc8) ||
  25412. (ipv6a[16] != 0x01) )
  25413. exit(1); /* fail */
  25414. /* - */
  25415. if( (ipv6a[2] != 0x0) ||
  25416. (ipv6a[3] != 0x0) ||
  25417. (ipv6a[4] != 0x0) ||
  25418. (ipv6a[5] != 0x0) ||
  25419. (ipv6a[6] != 0x0) ||
  25420. (ipv6a[7] != 0x0) )
  25421. exit(1); /* fail */
  25422. /* - */
  25423. exit(0);
  25424. ;
  25425. return 0;
  25426. }
  25427. _ACEOF
  25428. if ac_fn_c_try_run "$LINENO"
  25429. then :
  25430. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25431. printf "%s\n" "yes" >&6; }
  25432. tst_works_inet_pton="yes"
  25433. else $as_nop
  25434. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25435. printf "%s\n" "no" >&6; }
  25436. tst_works_inet_pton="no"
  25437. fi
  25438. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  25439. conftest.$ac_objext conftest.beam conftest.$ac_ext
  25440. fi
  25441. fi
  25442. #
  25443. if test "$tst_compi_inet_pton" = "yes" &&
  25444. test "$tst_works_inet_pton" != "no"; then
  25445. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton usage allowed" >&5
  25446. printf %s "checking if inet_pton usage allowed... " >&6; }
  25447. if test "x$cares_disallow_inet_pton" != "xyes"; then
  25448. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25449. printf "%s\n" "yes" >&6; }
  25450. tst_allow_inet_pton="yes"
  25451. else
  25452. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25453. printf "%s\n" "no" >&6; }
  25454. tst_allow_inet_pton="no"
  25455. fi
  25456. fi
  25457. #
  25458. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton might be used" >&5
  25459. printf %s "checking if inet_pton might be used... " >&6; }
  25460. if test "$tst_links_inet_pton" = "yes" &&
  25461. test "$tst_proto_inet_pton" = "yes" &&
  25462. test "$tst_compi_inet_pton" = "yes" &&
  25463. test "$tst_allow_inet_pton" = "yes" &&
  25464. test "$tst_works_inet_pton" != "no"; then
  25465. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25466. printf "%s\n" "yes" >&6; }
  25467. printf "%s\n" "#define HAVE_INET_PTON 1" >>confdefs.h
  25468. ac_cv_func_inet_pton="yes"
  25469. else
  25470. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25471. printf "%s\n" "no" >&6; }
  25472. ac_cv_func_inet_pton="no"
  25473. fi
  25474. cares_includes_stropts="\
  25475. /* includes start */
  25476. #ifdef HAVE_SYS_TYPES_H
  25477. # include <sys/types.h>
  25478. #endif
  25479. #ifdef HAVE_UNISTD_H
  25480. # include <unistd.h>
  25481. #endif
  25482. #ifdef HAVE_SYS_SOCKET_H
  25483. # include <sys/socket.h>
  25484. #endif
  25485. #ifdef HAVE_SYS_IOCTL_H
  25486. # include <sys/ioctl.h>
  25487. #endif
  25488. #ifdef HAVE_STROPTS_H
  25489. # include <stropts.h>
  25490. #endif
  25491. /* includes end */"
  25492. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$cares_includes_stropts
  25493. "
  25494. if test "x$ac_cv_header_sys_types_h" = xyes
  25495. then :
  25496. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  25497. fi
  25498. ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$cares_includes_stropts
  25499. "
  25500. if test "x$ac_cv_header_unistd_h" = xyes
  25501. then :
  25502. printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
  25503. fi
  25504. ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$cares_includes_stropts
  25505. "
  25506. if test "x$ac_cv_header_sys_socket_h" = xyes
  25507. then :
  25508. printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
  25509. fi
  25510. ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$cares_includes_stropts
  25511. "
  25512. if test "x$ac_cv_header_sys_ioctl_h" = xyes
  25513. then :
  25514. printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
  25515. fi
  25516. ac_fn_c_check_header_compile "$LINENO" "stropts.h" "ac_cv_header_stropts_h" "$cares_includes_stropts
  25517. "
  25518. if test "x$ac_cv_header_stropts_h" = xyes
  25519. then :
  25520. printf "%s\n" "#define HAVE_STROPTS_H 1" >>confdefs.h
  25521. fi
  25522. #
  25523. tst_links_ioctl="unknown"
  25524. tst_proto_ioctl="unknown"
  25525. tst_compi_ioctl="unknown"
  25526. tst_allow_ioctl="unknown"
  25527. #
  25528. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl can be linked" >&5
  25529. printf %s "checking if ioctl can be linked... " >&6; }
  25530. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25531. /* end confdefs.h. */
  25532. /* Define ioctl to an innocuous variant, in case <limits.h> declares ioctl.
  25533. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  25534. #define ioctl innocuous_ioctl
  25535. /* System header to define __stub macros and hopefully few prototypes,
  25536. which can conflict with char ioctl (); below. */
  25537. #include <limits.h>
  25538. #undef ioctl
  25539. /* Override any GCC internal prototype to avoid an error.
  25540. Use char because int might match the return type of a GCC
  25541. builtin and then its argument prototype would still apply. */
  25542. #ifdef __cplusplus
  25543. extern "C"
  25544. #endif
  25545. char ioctl ();
  25546. /* The GNU C library defines this for functions which it implements
  25547. to always fail with ENOSYS. Some functions are actually named
  25548. something starting with __ and the normal name is an alias. */
  25549. #if defined __stub_ioctl || defined __stub___ioctl
  25550. choke me
  25551. #endif
  25552. int
  25553. main (void)
  25554. {
  25555. return ioctl ();
  25556. ;
  25557. return 0;
  25558. }
  25559. _ACEOF
  25560. if ac_fn_c_try_link "$LINENO"
  25561. then :
  25562. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25563. printf "%s\n" "yes" >&6; }
  25564. tst_links_ioctl="yes"
  25565. else $as_nop
  25566. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25567. printf "%s\n" "no" >&6; }
  25568. tst_links_ioctl="no"
  25569. fi
  25570. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  25571. conftest$ac_exeext conftest.$ac_ext
  25572. #
  25573. if test "$tst_links_ioctl" = "yes"; then
  25574. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl is prototyped" >&5
  25575. printf %s "checking if ioctl is prototyped... " >&6; }
  25576. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25577. /* end confdefs.h. */
  25578. $cares_includes_stropts
  25579. _ACEOF
  25580. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  25581. $EGREP "ioctl" >/dev/null 2>&1
  25582. then :
  25583. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25584. printf "%s\n" "yes" >&6; }
  25585. tst_proto_ioctl="yes"
  25586. else $as_nop
  25587. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25588. printf "%s\n" "no" >&6; }
  25589. tst_proto_ioctl="no"
  25590. fi
  25591. rm -rf conftest*
  25592. fi
  25593. #
  25594. if test "$tst_proto_ioctl" = "yes"; then
  25595. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl is compilable" >&5
  25596. printf %s "checking if ioctl is compilable... " >&6; }
  25597. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25598. /* end confdefs.h. */
  25599. $cares_includes_stropts
  25600. int
  25601. main (void)
  25602. {
  25603. if(0 != ioctl(0, 0, 0))
  25604. return 1;
  25605. ;
  25606. return 0;
  25607. }
  25608. _ACEOF
  25609. if ac_fn_c_try_compile "$LINENO"
  25610. then :
  25611. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25612. printf "%s\n" "yes" >&6; }
  25613. tst_compi_ioctl="yes"
  25614. else $as_nop
  25615. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25616. printf "%s\n" "no" >&6; }
  25617. tst_compi_ioctl="no"
  25618. fi
  25619. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  25620. fi
  25621. #
  25622. if test "$tst_compi_ioctl" = "yes"; then
  25623. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl usage allowed" >&5
  25624. printf %s "checking if ioctl usage allowed... " >&6; }
  25625. if test "x$cares_disallow_ioctl" != "xyes"; then
  25626. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25627. printf "%s\n" "yes" >&6; }
  25628. tst_allow_ioctl="yes"
  25629. else
  25630. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25631. printf "%s\n" "no" >&6; }
  25632. tst_allow_ioctl="no"
  25633. fi
  25634. fi
  25635. #
  25636. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl might be used" >&5
  25637. printf %s "checking if ioctl might be used... " >&6; }
  25638. if test "$tst_links_ioctl" = "yes" &&
  25639. test "$tst_proto_ioctl" = "yes" &&
  25640. test "$tst_compi_ioctl" = "yes" &&
  25641. test "$tst_allow_ioctl" = "yes"; then
  25642. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25643. printf "%s\n" "yes" >&6; }
  25644. printf "%s\n" "#define HAVE_IOCTL 1" >>confdefs.h
  25645. ac_cv_func_ioctl="yes"
  25646. #
  25647. tst_compi_ioctl_fionbio="unknown"
  25648. tst_allow_ioctl_fionbio="unknown"
  25649. #
  25650. if test "$ac_cv_func_ioctl" = "yes"; then
  25651. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO is compilable" >&5
  25652. printf %s "checking if ioctl FIONBIO is compilable... " >&6; }
  25653. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25654. /* end confdefs.h. */
  25655. $cares_includes_stropts
  25656. int
  25657. main (void)
  25658. {
  25659. int flags = 0;
  25660. if(0 != ioctl(0, FIONBIO, &flags))
  25661. return 1;
  25662. ;
  25663. return 0;
  25664. }
  25665. _ACEOF
  25666. if ac_fn_c_try_compile "$LINENO"
  25667. then :
  25668. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25669. printf "%s\n" "yes" >&6; }
  25670. tst_compi_ioctl_fionbio="yes"
  25671. else $as_nop
  25672. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25673. printf "%s\n" "no" >&6; }
  25674. tst_compi_ioctl_fionbio="no"
  25675. fi
  25676. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  25677. fi
  25678. #
  25679. if test "$tst_compi_ioctl_fionbio" = "yes"; then
  25680. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO usage allowed" >&5
  25681. printf %s "checking if ioctl FIONBIO usage allowed... " >&6; }
  25682. if test "x$cares_disallow_ioctl_fionbio" != "xyes"; then
  25683. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25684. printf "%s\n" "yes" >&6; }
  25685. tst_allow_ioctl_fionbio="yes"
  25686. else
  25687. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25688. printf "%s\n" "no" >&6; }
  25689. tst_allow_ioctl_fionbio="no"
  25690. fi
  25691. fi
  25692. #
  25693. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO might be used" >&5
  25694. printf %s "checking if ioctl FIONBIO might be used... " >&6; }
  25695. if test "$tst_compi_ioctl_fionbio" = "yes" &&
  25696. test "$tst_allow_ioctl_fionbio" = "yes"; then
  25697. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25698. printf "%s\n" "yes" >&6; }
  25699. printf "%s\n" "#define HAVE_IOCTL_FIONBIO 1" >>confdefs.h
  25700. ac_cv_func_ioctl_fionbio="yes"
  25701. else
  25702. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25703. printf "%s\n" "no" >&6; }
  25704. ac_cv_func_ioctl_fionbio="no"
  25705. fi
  25706. #
  25707. tst_compi_ioctl_siocgifaddr="unknown"
  25708. tst_allow_ioctl_siocgifaddr="unknown"
  25709. #
  25710. if test "$ac_cv_func_ioctl" = "yes"; then
  25711. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR is compilable" >&5
  25712. printf %s "checking if ioctl SIOCGIFADDR is compilable... " >&6; }
  25713. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25714. /* end confdefs.h. */
  25715. $cares_includes_stropts
  25716. #include <net/if.h>
  25717. int
  25718. main (void)
  25719. {
  25720. struct ifreq ifr;
  25721. if(0 != ioctl(0, SIOCGIFADDR, &ifr))
  25722. return 1;
  25723. ;
  25724. return 0;
  25725. }
  25726. _ACEOF
  25727. if ac_fn_c_try_compile "$LINENO"
  25728. then :
  25729. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25730. printf "%s\n" "yes" >&6; }
  25731. tst_compi_ioctl_siocgifaddr="yes"
  25732. else $as_nop
  25733. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25734. printf "%s\n" "no" >&6; }
  25735. tst_compi_ioctl_siocgifaddr="no"
  25736. fi
  25737. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  25738. fi
  25739. #
  25740. if test "$tst_compi_ioctl_siocgifaddr" = "yes"; then
  25741. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR usage allowed" >&5
  25742. printf %s "checking if ioctl SIOCGIFADDR usage allowed... " >&6; }
  25743. if test "x$cares_disallow_ioctl_siocgifaddr" != "xyes"; then
  25744. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25745. printf "%s\n" "yes" >&6; }
  25746. tst_allow_ioctl_siocgifaddr="yes"
  25747. else
  25748. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25749. printf "%s\n" "no" >&6; }
  25750. tst_allow_ioctl_siocgifaddr="no"
  25751. fi
  25752. fi
  25753. #
  25754. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR might be used" >&5
  25755. printf %s "checking if ioctl SIOCGIFADDR might be used... " >&6; }
  25756. if test "$tst_compi_ioctl_siocgifaddr" = "yes" &&
  25757. test "$tst_allow_ioctl_siocgifaddr" = "yes"; then
  25758. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25759. printf "%s\n" "yes" >&6; }
  25760. printf "%s\n" "#define HAVE_IOCTL_SIOCGIFADDR 1" >>confdefs.h
  25761. ac_cv_func_ioctl_siocgifaddr="yes"
  25762. else
  25763. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25764. printf "%s\n" "no" >&6; }
  25765. ac_cv_func_ioctl_siocgifaddr="no"
  25766. fi
  25767. else
  25768. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25769. printf "%s\n" "no" >&6; }
  25770. ac_cv_func_ioctl="no"
  25771. fi
  25772. #
  25773. tst_links_ioctlsocket="unknown"
  25774. tst_proto_ioctlsocket="unknown"
  25775. tst_compi_ioctlsocket="unknown"
  25776. tst_allow_ioctlsocket="unknown"
  25777. #
  25778. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket can be linked" >&5
  25779. printf %s "checking if ioctlsocket can be linked... " >&6; }
  25780. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25781. /* end confdefs.h. */
  25782. $cares_includes_winsock2
  25783. int
  25784. main (void)
  25785. {
  25786. if(0 != ioctlsocket(0, 0, 0))
  25787. return 1;
  25788. ;
  25789. return 0;
  25790. }
  25791. _ACEOF
  25792. if ac_fn_c_try_link "$LINENO"
  25793. then :
  25794. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25795. printf "%s\n" "yes" >&6; }
  25796. tst_links_ioctlsocket="yes"
  25797. else $as_nop
  25798. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25799. printf "%s\n" "no" >&6; }
  25800. tst_links_ioctlsocket="no"
  25801. fi
  25802. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  25803. conftest$ac_exeext conftest.$ac_ext
  25804. #
  25805. if test "$tst_links_ioctlsocket" = "yes"; then
  25806. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is prototyped" >&5
  25807. printf %s "checking if ioctlsocket is prototyped... " >&6; }
  25808. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25809. /* end confdefs.h. */
  25810. $cares_includes_winsock2
  25811. _ACEOF
  25812. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  25813. $EGREP "ioctlsocket" >/dev/null 2>&1
  25814. then :
  25815. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25816. printf "%s\n" "yes" >&6; }
  25817. tst_proto_ioctlsocket="yes"
  25818. else $as_nop
  25819. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25820. printf "%s\n" "no" >&6; }
  25821. tst_proto_ioctlsocket="no"
  25822. fi
  25823. rm -rf conftest*
  25824. fi
  25825. #
  25826. if test "$tst_proto_ioctlsocket" = "yes"; then
  25827. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is compilable" >&5
  25828. printf %s "checking if ioctlsocket is compilable... " >&6; }
  25829. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25830. /* end confdefs.h. */
  25831. $cares_includes_winsock2
  25832. int
  25833. main (void)
  25834. {
  25835. if(0 != ioctlsocket(0, 0, 0))
  25836. return 1;
  25837. ;
  25838. return 0;
  25839. }
  25840. _ACEOF
  25841. if ac_fn_c_try_compile "$LINENO"
  25842. then :
  25843. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25844. printf "%s\n" "yes" >&6; }
  25845. tst_compi_ioctlsocket="yes"
  25846. else $as_nop
  25847. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25848. printf "%s\n" "no" >&6; }
  25849. tst_compi_ioctlsocket="no"
  25850. fi
  25851. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  25852. fi
  25853. #
  25854. if test "$tst_compi_ioctlsocket" = "yes"; then
  25855. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket usage allowed" >&5
  25856. printf %s "checking if ioctlsocket usage allowed... " >&6; }
  25857. if test "x$cares_disallow_ioctlsocket" != "xyes"; then
  25858. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25859. printf "%s\n" "yes" >&6; }
  25860. tst_allow_ioctlsocket="yes"
  25861. else
  25862. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25863. printf "%s\n" "no" >&6; }
  25864. tst_allow_ioctlsocket="no"
  25865. fi
  25866. fi
  25867. #
  25868. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket might be used" >&5
  25869. printf %s "checking if ioctlsocket might be used... " >&6; }
  25870. if test "$tst_links_ioctlsocket" = "yes" &&
  25871. test "$tst_proto_ioctlsocket" = "yes" &&
  25872. test "$tst_compi_ioctlsocket" = "yes" &&
  25873. test "$tst_allow_ioctlsocket" = "yes"; then
  25874. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25875. printf "%s\n" "yes" >&6; }
  25876. printf "%s\n" "#define HAVE_IOCTLSOCKET 1" >>confdefs.h
  25877. ac_cv_func_ioctlsocket="yes"
  25878. #
  25879. tst_compi_ioctlsocket_fionbio="unknown"
  25880. tst_allow_ioctlsocket_fionbio="unknown"
  25881. #
  25882. if test "$ac_cv_func_ioctlsocket" = "yes"; then
  25883. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO is compilable" >&5
  25884. printf %s "checking if ioctlsocket FIONBIO is compilable... " >&6; }
  25885. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25886. /* end confdefs.h. */
  25887. $cares_includes_winsock2
  25888. int
  25889. main (void)
  25890. {
  25891. int flags = 0;
  25892. if(0 != ioctlsocket(0, FIONBIO, &flags))
  25893. return 1;
  25894. ;
  25895. return 0;
  25896. }
  25897. _ACEOF
  25898. if ac_fn_c_try_compile "$LINENO"
  25899. then :
  25900. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25901. printf "%s\n" "yes" >&6; }
  25902. tst_compi_ioctlsocket_fionbio="yes"
  25903. else $as_nop
  25904. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25905. printf "%s\n" "no" >&6; }
  25906. tst_compi_ioctlsocket_fionbio="no"
  25907. fi
  25908. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  25909. fi
  25910. #
  25911. if test "$tst_compi_ioctlsocket_fionbio" = "yes"; then
  25912. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO usage allowed" >&5
  25913. printf %s "checking if ioctlsocket FIONBIO usage allowed... " >&6; }
  25914. if test "x$cares_disallow_ioctlsocket_fionbio" != "xyes"; then
  25915. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25916. printf "%s\n" "yes" >&6; }
  25917. tst_allow_ioctlsocket_fionbio="yes"
  25918. else
  25919. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25920. printf "%s\n" "no" >&6; }
  25921. tst_allow_ioctlsocket_fionbio="no"
  25922. fi
  25923. fi
  25924. #
  25925. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO might be used" >&5
  25926. printf %s "checking if ioctlsocket FIONBIO might be used... " >&6; }
  25927. if test "$tst_compi_ioctlsocket_fionbio" = "yes" &&
  25928. test "$tst_allow_ioctlsocket_fionbio" = "yes"; then
  25929. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25930. printf "%s\n" "yes" >&6; }
  25931. printf "%s\n" "#define HAVE_IOCTLSOCKET_FIONBIO 1" >>confdefs.h
  25932. ac_cv_func_ioctlsocket_fionbio="yes"
  25933. else
  25934. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25935. printf "%s\n" "no" >&6; }
  25936. ac_cv_func_ioctlsocket_fionbio="no"
  25937. fi
  25938. else
  25939. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25940. printf "%s\n" "no" >&6; }
  25941. ac_cv_func_ioctlsocket="no"
  25942. fi
  25943. #
  25944. tst_links_ioctlsocket_camel="unknown"
  25945. tst_proto_ioctlsocket_camel="unknown"
  25946. tst_compi_ioctlsocket_camel="unknown"
  25947. tst_allow_ioctlsocket_camel="unknown"
  25948. #
  25949. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket can be linked" >&5
  25950. printf %s "checking if IoctlSocket can be linked... " >&6; }
  25951. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25952. /* end confdefs.h. */
  25953. /* Define IoctlSocket to an innocuous variant, in case <limits.h> declares IoctlSocket.
  25954. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  25955. #define IoctlSocket innocuous_IoctlSocket
  25956. /* System header to define __stub macros and hopefully few prototypes,
  25957. which can conflict with char IoctlSocket (); below. */
  25958. #include <limits.h>
  25959. #undef IoctlSocket
  25960. /* Override any GCC internal prototype to avoid an error.
  25961. Use char because int might match the return type of a GCC
  25962. builtin and then its argument prototype would still apply. */
  25963. #ifdef __cplusplus
  25964. extern "C"
  25965. #endif
  25966. char IoctlSocket ();
  25967. /* The GNU C library defines this for functions which it implements
  25968. to always fail with ENOSYS. Some functions are actually named
  25969. something starting with __ and the normal name is an alias. */
  25970. #if defined __stub_IoctlSocket || defined __stub___IoctlSocket
  25971. choke me
  25972. #endif
  25973. int
  25974. main (void)
  25975. {
  25976. return IoctlSocket ();
  25977. ;
  25978. return 0;
  25979. }
  25980. _ACEOF
  25981. if ac_fn_c_try_link "$LINENO"
  25982. then :
  25983. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25984. printf "%s\n" "yes" >&6; }
  25985. tst_links_ioctlsocket_camel="yes"
  25986. else $as_nop
  25987. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25988. printf "%s\n" "no" >&6; }
  25989. tst_links_ioctlsocket_camel="no"
  25990. fi
  25991. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  25992. conftest$ac_exeext conftest.$ac_ext
  25993. #
  25994. if test "$tst_links_ioctlsocket_camel" = "yes"; then
  25995. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is prototyped" >&5
  25996. printf %s "checking if IoctlSocket is prototyped... " >&6; }
  25997. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25998. /* end confdefs.h. */
  25999. $cares_includes_stropts
  26000. _ACEOF
  26001. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  26002. $EGREP "IoctlSocket" >/dev/null 2>&1
  26003. then :
  26004. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26005. printf "%s\n" "yes" >&6; }
  26006. tst_proto_ioctlsocket_camel="yes"
  26007. else $as_nop
  26008. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26009. printf "%s\n" "no" >&6; }
  26010. tst_proto_ioctlsocket_camel="no"
  26011. fi
  26012. rm -rf conftest*
  26013. fi
  26014. #
  26015. if test "$tst_proto_ioctlsocket_camel" = "yes"; then
  26016. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is compilable" >&5
  26017. printf %s "checking if IoctlSocket is compilable... " >&6; }
  26018. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26019. /* end confdefs.h. */
  26020. $cares_includes_stropts
  26021. int
  26022. main (void)
  26023. {
  26024. if(0 != IoctlSocket(0, 0, 0))
  26025. return 1;
  26026. ;
  26027. return 0;
  26028. }
  26029. _ACEOF
  26030. if ac_fn_c_try_compile "$LINENO"
  26031. then :
  26032. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26033. printf "%s\n" "yes" >&6; }
  26034. tst_compi_ioctlsocket_camel="yes"
  26035. else $as_nop
  26036. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26037. printf "%s\n" "no" >&6; }
  26038. tst_compi_ioctlsocket_camel="no"
  26039. fi
  26040. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  26041. fi
  26042. #
  26043. if test "$tst_compi_ioctlsocket_camel" = "yes"; then
  26044. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket usage allowed" >&5
  26045. printf %s "checking if IoctlSocket usage allowed... " >&6; }
  26046. if test "x$cares_disallow_ioctlsocket_camel" != "xyes"; then
  26047. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26048. printf "%s\n" "yes" >&6; }
  26049. tst_allow_ioctlsocket_camel="yes"
  26050. else
  26051. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26052. printf "%s\n" "no" >&6; }
  26053. tst_allow_ioctlsocket_camel="no"
  26054. fi
  26055. fi
  26056. #
  26057. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket might be used" >&5
  26058. printf %s "checking if IoctlSocket might be used... " >&6; }
  26059. if test "$tst_links_ioctlsocket_camel" = "yes" &&
  26060. test "$tst_proto_ioctlsocket_camel" = "yes" &&
  26061. test "$tst_compi_ioctlsocket_camel" = "yes" &&
  26062. test "$tst_allow_ioctlsocket_camel" = "yes"; then
  26063. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26064. printf "%s\n" "yes" >&6; }
  26065. printf "%s\n" "#define HAVE_IOCTLSOCKET_CAMEL 1" >>confdefs.h
  26066. ac_cv_func_ioctlsocket_camel="yes"
  26067. #
  26068. tst_compi_ioctlsocket_camel_fionbio="unknown"
  26069. tst_allow_ioctlsocket_camel_fionbio="unknown"
  26070. #
  26071. if test "$ac_cv_func_ioctlsocket_camel" = "yes"; then
  26072. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO is compilable" >&5
  26073. printf %s "checking if IoctlSocket FIONBIO is compilable... " >&6; }
  26074. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26075. /* end confdefs.h. */
  26076. $cares_includes_stropts
  26077. int
  26078. main (void)
  26079. {
  26080. long flags = 0;
  26081. if(0 != ioctlsocket(0, FIONBIO, &flags))
  26082. return 1;
  26083. ;
  26084. return 0;
  26085. }
  26086. _ACEOF
  26087. if ac_fn_c_try_compile "$LINENO"
  26088. then :
  26089. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26090. printf "%s\n" "yes" >&6; }
  26091. tst_compi_ioctlsocket_camel_fionbio="yes"
  26092. else $as_nop
  26093. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26094. printf "%s\n" "no" >&6; }
  26095. tst_compi_ioctlsocket_camel_fionbio="no"
  26096. fi
  26097. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  26098. fi
  26099. #
  26100. if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes"; then
  26101. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO usage allowed" >&5
  26102. printf %s "checking if IoctlSocket FIONBIO usage allowed... " >&6; }
  26103. if test "x$cares_disallow_ioctlsocket_camel_fionbio" != "xyes"; then
  26104. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26105. printf "%s\n" "yes" >&6; }
  26106. tst_allow_ioctlsocket_camel_fionbio="yes"
  26107. else
  26108. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26109. printf "%s\n" "no" >&6; }
  26110. tst_allow_ioctlsocket_camel_fionbio="no"
  26111. fi
  26112. fi
  26113. #
  26114. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO might be used" >&5
  26115. printf %s "checking if IoctlSocket FIONBIO might be used... " >&6; }
  26116. if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes" &&
  26117. test "$tst_allow_ioctlsocket_camel_fionbio" = "yes"; then
  26118. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26119. printf "%s\n" "yes" >&6; }
  26120. printf "%s\n" "#define HAVE_IOCTLSOCKET_CAMEL_FIONBIO 1" >>confdefs.h
  26121. ac_cv_func_ioctlsocket_camel_fionbio="yes"
  26122. else
  26123. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26124. printf "%s\n" "no" >&6; }
  26125. ac_cv_func_ioctlsocket_camel_fionbio="no"
  26126. fi
  26127. else
  26128. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26129. printf "%s\n" "no" >&6; }
  26130. ac_cv_func_ioctlsocket_camel="no"
  26131. fi
  26132. #
  26133. tst_links_setsockopt="unknown"
  26134. tst_proto_setsockopt="unknown"
  26135. tst_compi_setsockopt="unknown"
  26136. tst_allow_setsockopt="unknown"
  26137. #
  26138. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if setsockopt can be linked" >&5
  26139. printf %s "checking if setsockopt can be linked... " >&6; }
  26140. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26141. /* end confdefs.h. */
  26142. $cares_includes_winsock2
  26143. $cares_includes_sys_socket
  26144. int
  26145. main (void)
  26146. {
  26147. if(0 != setsockopt(0, 0, 0, 0, 0))
  26148. return 1;
  26149. ;
  26150. return 0;
  26151. }
  26152. _ACEOF
  26153. if ac_fn_c_try_link "$LINENO"
  26154. then :
  26155. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26156. printf "%s\n" "yes" >&6; }
  26157. tst_links_setsockopt="yes"
  26158. else $as_nop
  26159. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26160. printf "%s\n" "no" >&6; }
  26161. tst_links_setsockopt="no"
  26162. fi
  26163. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  26164. conftest$ac_exeext conftest.$ac_ext
  26165. #
  26166. if test "$tst_links_setsockopt" = "yes"; then
  26167. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if setsockopt is prototyped" >&5
  26168. printf %s "checking if setsockopt is prototyped... " >&6; }
  26169. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26170. /* end confdefs.h. */
  26171. $cares_includes_winsock2
  26172. $cares_includes_sys_socket
  26173. _ACEOF
  26174. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  26175. $EGREP "setsockopt" >/dev/null 2>&1
  26176. then :
  26177. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26178. printf "%s\n" "yes" >&6; }
  26179. tst_proto_setsockopt="yes"
  26180. else $as_nop
  26181. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26182. printf "%s\n" "no" >&6; }
  26183. tst_proto_setsockopt="no"
  26184. fi
  26185. rm -rf conftest*
  26186. fi
  26187. #
  26188. if test "$tst_proto_setsockopt" = "yes"; then
  26189. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if setsockopt is compilable" >&5
  26190. printf %s "checking if setsockopt is compilable... " >&6; }
  26191. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26192. /* end confdefs.h. */
  26193. $cares_includes_winsock2
  26194. $cares_includes_sys_socket
  26195. int
  26196. main (void)
  26197. {
  26198. if(0 != setsockopt(0, 0, 0, 0, 0))
  26199. return 1;
  26200. ;
  26201. return 0;
  26202. }
  26203. _ACEOF
  26204. if ac_fn_c_try_compile "$LINENO"
  26205. then :
  26206. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26207. printf "%s\n" "yes" >&6; }
  26208. tst_compi_setsockopt="yes"
  26209. else $as_nop
  26210. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26211. printf "%s\n" "no" >&6; }
  26212. tst_compi_setsockopt="no"
  26213. fi
  26214. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  26215. fi
  26216. #
  26217. if test "$tst_compi_setsockopt" = "yes"; then
  26218. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if setsockopt usage allowed" >&5
  26219. printf %s "checking if setsockopt usage allowed... " >&6; }
  26220. if test "x$cares_disallow_setsockopt" != "xyes"; then
  26221. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26222. printf "%s\n" "yes" >&6; }
  26223. tst_allow_setsockopt="yes"
  26224. else
  26225. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26226. printf "%s\n" "no" >&6; }
  26227. tst_allow_setsockopt="no"
  26228. fi
  26229. fi
  26230. #
  26231. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if setsockopt might be used" >&5
  26232. printf %s "checking if setsockopt might be used... " >&6; }
  26233. if test "$tst_links_setsockopt" = "yes" &&
  26234. test "$tst_proto_setsockopt" = "yes" &&
  26235. test "$tst_compi_setsockopt" = "yes" &&
  26236. test "$tst_allow_setsockopt" = "yes"; then
  26237. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26238. printf "%s\n" "yes" >&6; }
  26239. printf "%s\n" "#define HAVE_SETSOCKOPT 1" >>confdefs.h
  26240. ac_cv_func_setsockopt="yes"
  26241. #
  26242. tst_compi_setsockopt_so_nonblock="unknown"
  26243. tst_allow_setsockopt_so_nonblock="unknown"
  26244. #
  26245. if test "$ac_cv_func_setsockopt" = "yes"; then
  26246. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK is compilable" >&5
  26247. printf %s "checking if setsockopt SO_NONBLOCK is compilable... " >&6; }
  26248. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26249. /* end confdefs.h. */
  26250. $cares_includes_winsock2
  26251. $cares_includes_sys_socket
  26252. int
  26253. main (void)
  26254. {
  26255. if(0 != setsockopt(0, SOL_SOCKET, SO_NONBLOCK, 0, 0))
  26256. return 1;
  26257. ;
  26258. return 0;
  26259. }
  26260. _ACEOF
  26261. if ac_fn_c_try_compile "$LINENO"
  26262. then :
  26263. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26264. printf "%s\n" "yes" >&6; }
  26265. tst_compi_setsockopt_so_nonblock="yes"
  26266. else $as_nop
  26267. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26268. printf "%s\n" "no" >&6; }
  26269. tst_compi_setsockopt_so_nonblock="no"
  26270. fi
  26271. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  26272. fi
  26273. #
  26274. if test "$tst_compi_setsockopt_so_nonblock" = "yes"; then
  26275. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK usage allowed" >&5
  26276. printf %s "checking if setsockopt SO_NONBLOCK usage allowed... " >&6; }
  26277. if test "x$cares_disallow_setsockopt_so_nonblock" != "xyes"; then
  26278. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26279. printf "%s\n" "yes" >&6; }
  26280. tst_allow_setsockopt_so_nonblock="yes"
  26281. else
  26282. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26283. printf "%s\n" "no" >&6; }
  26284. tst_allow_setsockopt_so_nonblock="no"
  26285. fi
  26286. fi
  26287. #
  26288. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK might be used" >&5
  26289. printf %s "checking if setsockopt SO_NONBLOCK might be used... " >&6; }
  26290. if test "$tst_compi_setsockopt_so_nonblock" = "yes" &&
  26291. test "$tst_allow_setsockopt_so_nonblock" = "yes"; then
  26292. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26293. printf "%s\n" "yes" >&6; }
  26294. printf "%s\n" "#define HAVE_SETSOCKOPT_SO_NONBLOCK 1" >>confdefs.h
  26295. ac_cv_func_setsockopt_so_nonblock="yes"
  26296. else
  26297. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26298. printf "%s\n" "no" >&6; }
  26299. ac_cv_func_setsockopt_so_nonblock="no"
  26300. fi
  26301. else
  26302. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26303. printf "%s\n" "no" >&6; }
  26304. ac_cv_func_setsockopt="no"
  26305. fi
  26306. #
  26307. tst_links_socket="unknown"
  26308. tst_proto_socket="unknown"
  26309. tst_compi_socket="unknown"
  26310. tst_allow_socket="unknown"
  26311. #
  26312. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socket can be linked" >&5
  26313. printf %s "checking if socket can be linked... " >&6; }
  26314. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26315. /* end confdefs.h. */
  26316. $cares_includes_winsock2
  26317. $cares_includes_sys_socket
  26318. $cares_includes_socket
  26319. int
  26320. main (void)
  26321. {
  26322. if(0 != socket(0, 0, 0))
  26323. return 1;
  26324. ;
  26325. return 0;
  26326. }
  26327. _ACEOF
  26328. if ac_fn_c_try_link "$LINENO"
  26329. then :
  26330. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26331. printf "%s\n" "yes" >&6; }
  26332. tst_links_socket="yes"
  26333. else $as_nop
  26334. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26335. printf "%s\n" "no" >&6; }
  26336. tst_links_socket="no"
  26337. fi
  26338. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  26339. conftest$ac_exeext conftest.$ac_ext
  26340. #
  26341. if test "$tst_links_socket" = "yes"; then
  26342. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socket is prototyped" >&5
  26343. printf %s "checking if socket is prototyped... " >&6; }
  26344. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26345. /* end confdefs.h. */
  26346. $cares_includes_winsock2
  26347. $cares_includes_sys_socket
  26348. $cares_includes_socket
  26349. _ACEOF
  26350. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  26351. $EGREP "socket" >/dev/null 2>&1
  26352. then :
  26353. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26354. printf "%s\n" "yes" >&6; }
  26355. tst_proto_socket="yes"
  26356. else $as_nop
  26357. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26358. printf "%s\n" "no" >&6; }
  26359. tst_proto_socket="no"
  26360. fi
  26361. rm -rf conftest*
  26362. fi
  26363. #
  26364. if test "$tst_proto_socket" = "yes"; then
  26365. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socket is compilable" >&5
  26366. printf %s "checking if socket is compilable... " >&6; }
  26367. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26368. /* end confdefs.h. */
  26369. $cares_includes_winsock2
  26370. $cares_includes_sys_socket
  26371. $cares_includes_socket
  26372. int
  26373. main (void)
  26374. {
  26375. if(0 != socket(0, 0, 0))
  26376. return 1;
  26377. ;
  26378. return 0;
  26379. }
  26380. _ACEOF
  26381. if ac_fn_c_try_compile "$LINENO"
  26382. then :
  26383. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26384. printf "%s\n" "yes" >&6; }
  26385. tst_compi_socket="yes"
  26386. else $as_nop
  26387. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26388. printf "%s\n" "no" >&6; }
  26389. tst_compi_socket="no"
  26390. fi
  26391. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  26392. fi
  26393. #
  26394. if test "$tst_compi_socket" = "yes"; then
  26395. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socket usage allowed" >&5
  26396. printf %s "checking if socket usage allowed... " >&6; }
  26397. if test "x$cares_disallow_socket" != "xyes"; then
  26398. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26399. printf "%s\n" "yes" >&6; }
  26400. tst_allow_socket="yes"
  26401. else
  26402. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26403. printf "%s\n" "no" >&6; }
  26404. tst_allow_socket="no"
  26405. fi
  26406. fi
  26407. #
  26408. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socket might be used" >&5
  26409. printf %s "checking if socket might be used... " >&6; }
  26410. if test "$tst_links_socket" = "yes" &&
  26411. test "$tst_proto_socket" = "yes" &&
  26412. test "$tst_compi_socket" = "yes" &&
  26413. test "$tst_allow_socket" = "yes"; then
  26414. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26415. printf "%s\n" "yes" >&6; }
  26416. printf "%s\n" "#define HAVE_SOCKET 1" >>confdefs.h
  26417. ac_cv_func_socket="yes"
  26418. else
  26419. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26420. printf "%s\n" "no" >&6; }
  26421. ac_cv_func_socket="no"
  26422. fi
  26423. #
  26424. tst_links_strcasecmp="unknown"
  26425. tst_proto_strcasecmp="unknown"
  26426. tst_compi_strcasecmp="unknown"
  26427. tst_allow_strcasecmp="unknown"
  26428. #
  26429. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcasecmp can be linked" >&5
  26430. printf %s "checking if strcasecmp can be linked... " >&6; }
  26431. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26432. /* end confdefs.h. */
  26433. /* Define strcasecmp to an innocuous variant, in case <limits.h> declares strcasecmp.
  26434. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  26435. #define strcasecmp innocuous_strcasecmp
  26436. /* System header to define __stub macros and hopefully few prototypes,
  26437. which can conflict with char strcasecmp (); below. */
  26438. #include <limits.h>
  26439. #undef strcasecmp
  26440. /* Override any GCC internal prototype to avoid an error.
  26441. Use char because int might match the return type of a GCC
  26442. builtin and then its argument prototype would still apply. */
  26443. #ifdef __cplusplus
  26444. extern "C"
  26445. #endif
  26446. char strcasecmp ();
  26447. /* The GNU C library defines this for functions which it implements
  26448. to always fail with ENOSYS. Some functions are actually named
  26449. something starting with __ and the normal name is an alias. */
  26450. #if defined __stub_strcasecmp || defined __stub___strcasecmp
  26451. choke me
  26452. #endif
  26453. int
  26454. main (void)
  26455. {
  26456. return strcasecmp ();
  26457. ;
  26458. return 0;
  26459. }
  26460. _ACEOF
  26461. if ac_fn_c_try_link "$LINENO"
  26462. then :
  26463. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26464. printf "%s\n" "yes" >&6; }
  26465. tst_links_strcasecmp="yes"
  26466. else $as_nop
  26467. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26468. printf "%s\n" "no" >&6; }
  26469. tst_links_strcasecmp="no"
  26470. fi
  26471. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  26472. conftest$ac_exeext conftest.$ac_ext
  26473. #
  26474. if test "$tst_links_strcasecmp" = "yes"; then
  26475. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is prototyped" >&5
  26476. printf %s "checking if strcasecmp is prototyped... " >&6; }
  26477. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26478. /* end confdefs.h. */
  26479. $cares_includes_string
  26480. _ACEOF
  26481. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  26482. $EGREP "strcasecmp" >/dev/null 2>&1
  26483. then :
  26484. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26485. printf "%s\n" "yes" >&6; }
  26486. tst_proto_strcasecmp="yes"
  26487. else $as_nop
  26488. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26489. printf "%s\n" "no" >&6; }
  26490. tst_proto_strcasecmp="no"
  26491. fi
  26492. rm -rf conftest*
  26493. fi
  26494. #
  26495. if test "$tst_proto_strcasecmp" = "yes"; then
  26496. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is compilable" >&5
  26497. printf %s "checking if strcasecmp is compilable... " >&6; }
  26498. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26499. /* end confdefs.h. */
  26500. $cares_includes_string
  26501. int
  26502. main (void)
  26503. {
  26504. if(0 != strcasecmp(0, 0))
  26505. return 1;
  26506. ;
  26507. return 0;
  26508. }
  26509. _ACEOF
  26510. if ac_fn_c_try_compile "$LINENO"
  26511. then :
  26512. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26513. printf "%s\n" "yes" >&6; }
  26514. tst_compi_strcasecmp="yes"
  26515. else $as_nop
  26516. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26517. printf "%s\n" "no" >&6; }
  26518. tst_compi_strcasecmp="no"
  26519. fi
  26520. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  26521. fi
  26522. #
  26523. if test "$tst_compi_strcasecmp" = "yes"; then
  26524. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcasecmp usage allowed" >&5
  26525. printf %s "checking if strcasecmp usage allowed... " >&6; }
  26526. if test "x$cares_disallow_strcasecmp" != "xyes"; then
  26527. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26528. printf "%s\n" "yes" >&6; }
  26529. tst_allow_strcasecmp="yes"
  26530. else
  26531. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26532. printf "%s\n" "no" >&6; }
  26533. tst_allow_strcasecmp="no"
  26534. fi
  26535. fi
  26536. #
  26537. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcasecmp might be used" >&5
  26538. printf %s "checking if strcasecmp might be used... " >&6; }
  26539. if test "$tst_links_strcasecmp" = "yes" &&
  26540. test "$tst_proto_strcasecmp" = "yes" &&
  26541. test "$tst_compi_strcasecmp" = "yes" &&
  26542. test "$tst_allow_strcasecmp" = "yes"; then
  26543. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26544. printf "%s\n" "yes" >&6; }
  26545. printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
  26546. ac_cv_func_strcasecmp="yes"
  26547. else
  26548. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26549. printf "%s\n" "no" >&6; }
  26550. ac_cv_func_strcasecmp="no"
  26551. fi
  26552. #
  26553. tst_links_strcmpi="unknown"
  26554. tst_proto_strcmpi="unknown"
  26555. tst_compi_strcmpi="unknown"
  26556. tst_allow_strcmpi="unknown"
  26557. #
  26558. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcmpi can be linked" >&5
  26559. printf %s "checking if strcmpi can be linked... " >&6; }
  26560. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26561. /* end confdefs.h. */
  26562. /* Define strcmpi to an innocuous variant, in case <limits.h> declares strcmpi.
  26563. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  26564. #define strcmpi innocuous_strcmpi
  26565. /* System header to define __stub macros and hopefully few prototypes,
  26566. which can conflict with char strcmpi (); below. */
  26567. #include <limits.h>
  26568. #undef strcmpi
  26569. /* Override any GCC internal prototype to avoid an error.
  26570. Use char because int might match the return type of a GCC
  26571. builtin and then its argument prototype would still apply. */
  26572. #ifdef __cplusplus
  26573. extern "C"
  26574. #endif
  26575. char strcmpi ();
  26576. /* The GNU C library defines this for functions which it implements
  26577. to always fail with ENOSYS. Some functions are actually named
  26578. something starting with __ and the normal name is an alias. */
  26579. #if defined __stub_strcmpi || defined __stub___strcmpi
  26580. choke me
  26581. #endif
  26582. int
  26583. main (void)
  26584. {
  26585. return strcmpi ();
  26586. ;
  26587. return 0;
  26588. }
  26589. _ACEOF
  26590. if ac_fn_c_try_link "$LINENO"
  26591. then :
  26592. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26593. printf "%s\n" "yes" >&6; }
  26594. tst_links_strcmpi="yes"
  26595. else $as_nop
  26596. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26597. printf "%s\n" "no" >&6; }
  26598. tst_links_strcmpi="no"
  26599. fi
  26600. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  26601. conftest$ac_exeext conftest.$ac_ext
  26602. #
  26603. if test "$tst_links_strcmpi" = "yes"; then
  26604. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcmpi is prototyped" >&5
  26605. printf %s "checking if strcmpi is prototyped... " >&6; }
  26606. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26607. /* end confdefs.h. */
  26608. $cares_includes_string
  26609. _ACEOF
  26610. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  26611. $EGREP "strcmpi" >/dev/null 2>&1
  26612. then :
  26613. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26614. printf "%s\n" "yes" >&6; }
  26615. tst_proto_strcmpi="yes"
  26616. else $as_nop
  26617. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26618. printf "%s\n" "no" >&6; }
  26619. tst_proto_strcmpi="no"
  26620. fi
  26621. rm -rf conftest*
  26622. fi
  26623. #
  26624. if test "$tst_proto_strcmpi" = "yes"; then
  26625. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcmpi is compilable" >&5
  26626. printf %s "checking if strcmpi is compilable... " >&6; }
  26627. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26628. /* end confdefs.h. */
  26629. $cares_includes_string
  26630. int
  26631. main (void)
  26632. {
  26633. if(0 != strcmpi(0, 0))
  26634. return 1;
  26635. ;
  26636. return 0;
  26637. }
  26638. _ACEOF
  26639. if ac_fn_c_try_compile "$LINENO"
  26640. then :
  26641. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26642. printf "%s\n" "yes" >&6; }
  26643. tst_compi_strcmpi="yes"
  26644. else $as_nop
  26645. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26646. printf "%s\n" "no" >&6; }
  26647. tst_compi_strcmpi="no"
  26648. fi
  26649. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  26650. fi
  26651. #
  26652. if test "$tst_compi_strcmpi" = "yes"; then
  26653. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcmpi usage allowed" >&5
  26654. printf %s "checking if strcmpi usage allowed... " >&6; }
  26655. if test "x$cares_disallow_strcmpi" != "xyes"; then
  26656. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26657. printf "%s\n" "yes" >&6; }
  26658. tst_allow_strcmpi="yes"
  26659. else
  26660. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26661. printf "%s\n" "no" >&6; }
  26662. tst_allow_strcmpi="no"
  26663. fi
  26664. fi
  26665. #
  26666. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcmpi might be used" >&5
  26667. printf %s "checking if strcmpi might be used... " >&6; }
  26668. if test "$tst_links_strcmpi" = "yes" &&
  26669. test "$tst_proto_strcmpi" = "yes" &&
  26670. test "$tst_compi_strcmpi" = "yes" &&
  26671. test "$tst_allow_strcmpi" = "yes"; then
  26672. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26673. printf "%s\n" "yes" >&6; }
  26674. printf "%s\n" "#define HAVE_STRCMPI 1" >>confdefs.h
  26675. ac_cv_func_strcmpi="yes"
  26676. else
  26677. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26678. printf "%s\n" "no" >&6; }
  26679. ac_cv_func_strcmpi="no"
  26680. fi
  26681. #
  26682. tst_links_strdup="unknown"
  26683. tst_proto_strdup="unknown"
  26684. tst_compi_strdup="unknown"
  26685. tst_allow_strdup="unknown"
  26686. #
  26687. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strdup can be linked" >&5
  26688. printf %s "checking if strdup can be linked... " >&6; }
  26689. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26690. /* end confdefs.h. */
  26691. /* Define strdup to an innocuous variant, in case <limits.h> declares strdup.
  26692. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  26693. #define strdup innocuous_strdup
  26694. /* System header to define __stub macros and hopefully few prototypes,
  26695. which can conflict with char strdup (); below. */
  26696. #include <limits.h>
  26697. #undef strdup
  26698. /* Override any GCC internal prototype to avoid an error.
  26699. Use char because int might match the return type of a GCC
  26700. builtin and then its argument prototype would still apply. */
  26701. #ifdef __cplusplus
  26702. extern "C"
  26703. #endif
  26704. char strdup ();
  26705. /* The GNU C library defines this for functions which it implements
  26706. to always fail with ENOSYS. Some functions are actually named
  26707. something starting with __ and the normal name is an alias. */
  26708. #if defined __stub_strdup || defined __stub___strdup
  26709. choke me
  26710. #endif
  26711. int
  26712. main (void)
  26713. {
  26714. return strdup ();
  26715. ;
  26716. return 0;
  26717. }
  26718. _ACEOF
  26719. if ac_fn_c_try_link "$LINENO"
  26720. then :
  26721. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26722. printf "%s\n" "yes" >&6; }
  26723. tst_links_strdup="yes"
  26724. else $as_nop
  26725. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26726. printf "%s\n" "no" >&6; }
  26727. tst_links_strdup="no"
  26728. fi
  26729. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  26730. conftest$ac_exeext conftest.$ac_ext
  26731. #
  26732. if test "$tst_links_strdup" = "yes"; then
  26733. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strdup is prototyped" >&5
  26734. printf %s "checking if strdup is prototyped... " >&6; }
  26735. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26736. /* end confdefs.h. */
  26737. $cares_includes_string
  26738. _ACEOF
  26739. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  26740. $EGREP "strdup" >/dev/null 2>&1
  26741. then :
  26742. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26743. printf "%s\n" "yes" >&6; }
  26744. tst_proto_strdup="yes"
  26745. else $as_nop
  26746. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26747. printf "%s\n" "no" >&6; }
  26748. tst_proto_strdup="no"
  26749. fi
  26750. rm -rf conftest*
  26751. fi
  26752. #
  26753. if test "$tst_proto_strdup" = "yes"; then
  26754. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strdup is compilable" >&5
  26755. printf %s "checking if strdup is compilable... " >&6; }
  26756. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26757. /* end confdefs.h. */
  26758. $cares_includes_string
  26759. int
  26760. main (void)
  26761. {
  26762. if(0 != strdup(0))
  26763. return 1;
  26764. ;
  26765. return 0;
  26766. }
  26767. _ACEOF
  26768. if ac_fn_c_try_compile "$LINENO"
  26769. then :
  26770. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26771. printf "%s\n" "yes" >&6; }
  26772. tst_compi_strdup="yes"
  26773. else $as_nop
  26774. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26775. printf "%s\n" "no" >&6; }
  26776. tst_compi_strdup="no"
  26777. fi
  26778. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  26779. fi
  26780. #
  26781. if test "$tst_compi_strdup" = "yes"; then
  26782. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strdup usage allowed" >&5
  26783. printf %s "checking if strdup usage allowed... " >&6; }
  26784. if test "x$cares_disallow_strdup" != "xyes"; then
  26785. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26786. printf "%s\n" "yes" >&6; }
  26787. tst_allow_strdup="yes"
  26788. else
  26789. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26790. printf "%s\n" "no" >&6; }
  26791. tst_allow_strdup="no"
  26792. fi
  26793. fi
  26794. #
  26795. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strdup might be used" >&5
  26796. printf %s "checking if strdup might be used... " >&6; }
  26797. if test "$tst_links_strdup" = "yes" &&
  26798. test "$tst_proto_strdup" = "yes" &&
  26799. test "$tst_compi_strdup" = "yes" &&
  26800. test "$tst_allow_strdup" = "yes"; then
  26801. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26802. printf "%s\n" "yes" >&6; }
  26803. printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h
  26804. ac_cv_func_strdup="yes"
  26805. else
  26806. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26807. printf "%s\n" "no" >&6; }
  26808. ac_cv_func_strdup="no"
  26809. fi
  26810. #
  26811. tst_links_stricmp="unknown"
  26812. tst_proto_stricmp="unknown"
  26813. tst_compi_stricmp="unknown"
  26814. tst_allow_stricmp="unknown"
  26815. #
  26816. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if stricmp can be linked" >&5
  26817. printf %s "checking if stricmp can be linked... " >&6; }
  26818. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26819. /* end confdefs.h. */
  26820. /* Define stricmp to an innocuous variant, in case <limits.h> declares stricmp.
  26821. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  26822. #define stricmp innocuous_stricmp
  26823. /* System header to define __stub macros and hopefully few prototypes,
  26824. which can conflict with char stricmp (); below. */
  26825. #include <limits.h>
  26826. #undef stricmp
  26827. /* Override any GCC internal prototype to avoid an error.
  26828. Use char because int might match the return type of a GCC
  26829. builtin and then its argument prototype would still apply. */
  26830. #ifdef __cplusplus
  26831. extern "C"
  26832. #endif
  26833. char stricmp ();
  26834. /* The GNU C library defines this for functions which it implements
  26835. to always fail with ENOSYS. Some functions are actually named
  26836. something starting with __ and the normal name is an alias. */
  26837. #if defined __stub_stricmp || defined __stub___stricmp
  26838. choke me
  26839. #endif
  26840. int
  26841. main (void)
  26842. {
  26843. return stricmp ();
  26844. ;
  26845. return 0;
  26846. }
  26847. _ACEOF
  26848. if ac_fn_c_try_link "$LINENO"
  26849. then :
  26850. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26851. printf "%s\n" "yes" >&6; }
  26852. tst_links_stricmp="yes"
  26853. else $as_nop
  26854. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26855. printf "%s\n" "no" >&6; }
  26856. tst_links_stricmp="no"
  26857. fi
  26858. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  26859. conftest$ac_exeext conftest.$ac_ext
  26860. #
  26861. if test "$tst_links_stricmp" = "yes"; then
  26862. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if stricmp is prototyped" >&5
  26863. printf %s "checking if stricmp is prototyped... " >&6; }
  26864. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26865. /* end confdefs.h. */
  26866. $cares_includes_string
  26867. _ACEOF
  26868. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  26869. $EGREP "stricmp" >/dev/null 2>&1
  26870. then :
  26871. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26872. printf "%s\n" "yes" >&6; }
  26873. tst_proto_stricmp="yes"
  26874. else $as_nop
  26875. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26876. printf "%s\n" "no" >&6; }
  26877. tst_proto_stricmp="no"
  26878. fi
  26879. rm -rf conftest*
  26880. fi
  26881. #
  26882. if test "$tst_proto_stricmp" = "yes"; then
  26883. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if stricmp is compilable" >&5
  26884. printf %s "checking if stricmp is compilable... " >&6; }
  26885. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26886. /* end confdefs.h. */
  26887. $cares_includes_string
  26888. int
  26889. main (void)
  26890. {
  26891. if(0 != stricmp(0, 0))
  26892. return 1;
  26893. ;
  26894. return 0;
  26895. }
  26896. _ACEOF
  26897. if ac_fn_c_try_compile "$LINENO"
  26898. then :
  26899. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26900. printf "%s\n" "yes" >&6; }
  26901. tst_compi_stricmp="yes"
  26902. else $as_nop
  26903. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26904. printf "%s\n" "no" >&6; }
  26905. tst_compi_stricmp="no"
  26906. fi
  26907. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  26908. fi
  26909. #
  26910. if test "$tst_compi_stricmp" = "yes"; then
  26911. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if stricmp usage allowed" >&5
  26912. printf %s "checking if stricmp usage allowed... " >&6; }
  26913. if test "x$cares_disallow_stricmp" != "xyes"; then
  26914. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26915. printf "%s\n" "yes" >&6; }
  26916. tst_allow_stricmp="yes"
  26917. else
  26918. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26919. printf "%s\n" "no" >&6; }
  26920. tst_allow_stricmp="no"
  26921. fi
  26922. fi
  26923. #
  26924. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if stricmp might be used" >&5
  26925. printf %s "checking if stricmp might be used... " >&6; }
  26926. if test "$tst_links_stricmp" = "yes" &&
  26927. test "$tst_proto_stricmp" = "yes" &&
  26928. test "$tst_compi_stricmp" = "yes" &&
  26929. test "$tst_allow_stricmp" = "yes"; then
  26930. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26931. printf "%s\n" "yes" >&6; }
  26932. printf "%s\n" "#define HAVE_STRICMP 1" >>confdefs.h
  26933. ac_cv_func_stricmp="yes"
  26934. else
  26935. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26936. printf "%s\n" "no" >&6; }
  26937. ac_cv_func_stricmp="no"
  26938. fi
  26939. #
  26940. tst_links_strncasecmp="unknown"
  26941. tst_proto_strncasecmp="unknown"
  26942. tst_compi_strncasecmp="unknown"
  26943. tst_allow_strncasecmp="unknown"
  26944. #
  26945. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strncasecmp can be linked" >&5
  26946. printf %s "checking if strncasecmp can be linked... " >&6; }
  26947. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26948. /* end confdefs.h. */
  26949. /* Define strncasecmp to an innocuous variant, in case <limits.h> declares strncasecmp.
  26950. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  26951. #define strncasecmp innocuous_strncasecmp
  26952. /* System header to define __stub macros and hopefully few prototypes,
  26953. which can conflict with char strncasecmp (); below. */
  26954. #include <limits.h>
  26955. #undef strncasecmp
  26956. /* Override any GCC internal prototype to avoid an error.
  26957. Use char because int might match the return type of a GCC
  26958. builtin and then its argument prototype would still apply. */
  26959. #ifdef __cplusplus
  26960. extern "C"
  26961. #endif
  26962. char strncasecmp ();
  26963. /* The GNU C library defines this for functions which it implements
  26964. to always fail with ENOSYS. Some functions are actually named
  26965. something starting with __ and the normal name is an alias. */
  26966. #if defined __stub_strncasecmp || defined __stub___strncasecmp
  26967. choke me
  26968. #endif
  26969. int
  26970. main (void)
  26971. {
  26972. return strncasecmp ();
  26973. ;
  26974. return 0;
  26975. }
  26976. _ACEOF
  26977. if ac_fn_c_try_link "$LINENO"
  26978. then :
  26979. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26980. printf "%s\n" "yes" >&6; }
  26981. tst_links_strncasecmp="yes"
  26982. else $as_nop
  26983. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26984. printf "%s\n" "no" >&6; }
  26985. tst_links_strncasecmp="no"
  26986. fi
  26987. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  26988. conftest$ac_exeext conftest.$ac_ext
  26989. #
  26990. if test "$tst_links_strncasecmp" = "yes"; then
  26991. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is prototyped" >&5
  26992. printf %s "checking if strncasecmp is prototyped... " >&6; }
  26993. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26994. /* end confdefs.h. */
  26995. $cares_includes_string
  26996. _ACEOF
  26997. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  26998. $EGREP "strncasecmp" >/dev/null 2>&1
  26999. then :
  27000. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27001. printf "%s\n" "yes" >&6; }
  27002. tst_proto_strncasecmp="yes"
  27003. else $as_nop
  27004. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27005. printf "%s\n" "no" >&6; }
  27006. tst_proto_strncasecmp="no"
  27007. fi
  27008. rm -rf conftest*
  27009. fi
  27010. #
  27011. if test "$tst_proto_strncasecmp" = "yes"; then
  27012. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is compilable" >&5
  27013. printf %s "checking if strncasecmp is compilable... " >&6; }
  27014. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27015. /* end confdefs.h. */
  27016. $cares_includes_string
  27017. int
  27018. main (void)
  27019. {
  27020. if(0 != strncasecmp(0, 0, 0))
  27021. return 1;
  27022. ;
  27023. return 0;
  27024. }
  27025. _ACEOF
  27026. if ac_fn_c_try_compile "$LINENO"
  27027. then :
  27028. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27029. printf "%s\n" "yes" >&6; }
  27030. tst_compi_strncasecmp="yes"
  27031. else $as_nop
  27032. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27033. printf "%s\n" "no" >&6; }
  27034. tst_compi_strncasecmp="no"
  27035. fi
  27036. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  27037. fi
  27038. #
  27039. if test "$tst_compi_strncasecmp" = "yes"; then
  27040. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strncasecmp usage allowed" >&5
  27041. printf %s "checking if strncasecmp usage allowed... " >&6; }
  27042. if test "x$cares_disallow_strncasecmp" != "xyes"; then
  27043. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27044. printf "%s\n" "yes" >&6; }
  27045. tst_allow_strncasecmp="yes"
  27046. else
  27047. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27048. printf "%s\n" "no" >&6; }
  27049. tst_allow_strncasecmp="no"
  27050. fi
  27051. fi
  27052. #
  27053. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strncasecmp might be used" >&5
  27054. printf %s "checking if strncasecmp might be used... " >&6; }
  27055. if test "$tst_links_strncasecmp" = "yes" &&
  27056. test "$tst_proto_strncasecmp" = "yes" &&
  27057. test "$tst_compi_strncasecmp" = "yes" &&
  27058. test "$tst_allow_strncasecmp" = "yes"; then
  27059. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27060. printf "%s\n" "yes" >&6; }
  27061. printf "%s\n" "#define HAVE_STRNCASECMP 1" >>confdefs.h
  27062. ac_cv_func_strncasecmp="yes"
  27063. else
  27064. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27065. printf "%s\n" "no" >&6; }
  27066. ac_cv_func_strncasecmp="no"
  27067. fi
  27068. #
  27069. tst_links_strncmpi="unknown"
  27070. tst_proto_strncmpi="unknown"
  27071. tst_compi_strncmpi="unknown"
  27072. tst_allow_strncmpi="unknown"
  27073. #
  27074. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strncmpi can be linked" >&5
  27075. printf %s "checking if strncmpi can be linked... " >&6; }
  27076. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27077. /* end confdefs.h. */
  27078. /* Define strncmpi to an innocuous variant, in case <limits.h> declares strncmpi.
  27079. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  27080. #define strncmpi innocuous_strncmpi
  27081. /* System header to define __stub macros and hopefully few prototypes,
  27082. which can conflict with char strncmpi (); below. */
  27083. #include <limits.h>
  27084. #undef strncmpi
  27085. /* Override any GCC internal prototype to avoid an error.
  27086. Use char because int might match the return type of a GCC
  27087. builtin and then its argument prototype would still apply. */
  27088. #ifdef __cplusplus
  27089. extern "C"
  27090. #endif
  27091. char strncmpi ();
  27092. /* The GNU C library defines this for functions which it implements
  27093. to always fail with ENOSYS. Some functions are actually named
  27094. something starting with __ and the normal name is an alias. */
  27095. #if defined __stub_strncmpi || defined __stub___strncmpi
  27096. choke me
  27097. #endif
  27098. int
  27099. main (void)
  27100. {
  27101. return strncmpi ();
  27102. ;
  27103. return 0;
  27104. }
  27105. _ACEOF
  27106. if ac_fn_c_try_link "$LINENO"
  27107. then :
  27108. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27109. printf "%s\n" "yes" >&6; }
  27110. tst_links_strncmpi="yes"
  27111. else $as_nop
  27112. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27113. printf "%s\n" "no" >&6; }
  27114. tst_links_strncmpi="no"
  27115. fi
  27116. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  27117. conftest$ac_exeext conftest.$ac_ext
  27118. #
  27119. if test "$tst_links_strncmpi" = "yes"; then
  27120. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strncmpi is prototyped" >&5
  27121. printf %s "checking if strncmpi is prototyped... " >&6; }
  27122. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27123. /* end confdefs.h. */
  27124. $cares_includes_string
  27125. _ACEOF
  27126. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  27127. $EGREP "strncmpi" >/dev/null 2>&1
  27128. then :
  27129. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27130. printf "%s\n" "yes" >&6; }
  27131. tst_proto_strncmpi="yes"
  27132. else $as_nop
  27133. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27134. printf "%s\n" "no" >&6; }
  27135. tst_proto_strncmpi="no"
  27136. fi
  27137. rm -rf conftest*
  27138. fi
  27139. #
  27140. if test "$tst_proto_strncmpi" = "yes"; then
  27141. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strncmpi is compilable" >&5
  27142. printf %s "checking if strncmpi is compilable... " >&6; }
  27143. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27144. /* end confdefs.h. */
  27145. $cares_includes_string
  27146. int
  27147. main (void)
  27148. {
  27149. if(0 != strncmpi(0, 0))
  27150. return 1;
  27151. ;
  27152. return 0;
  27153. }
  27154. _ACEOF
  27155. if ac_fn_c_try_compile "$LINENO"
  27156. then :
  27157. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27158. printf "%s\n" "yes" >&6; }
  27159. tst_compi_strncmpi="yes"
  27160. else $as_nop
  27161. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27162. printf "%s\n" "no" >&6; }
  27163. tst_compi_strncmpi="no"
  27164. fi
  27165. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  27166. fi
  27167. #
  27168. if test "$tst_compi_strncmpi" = "yes"; then
  27169. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strncmpi usage allowed" >&5
  27170. printf %s "checking if strncmpi usage allowed... " >&6; }
  27171. if test "x$cares_disallow_strncmpi" != "xyes"; then
  27172. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27173. printf "%s\n" "yes" >&6; }
  27174. tst_allow_strncmpi="yes"
  27175. else
  27176. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27177. printf "%s\n" "no" >&6; }
  27178. tst_allow_strncmpi="no"
  27179. fi
  27180. fi
  27181. #
  27182. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strncmpi might be used" >&5
  27183. printf %s "checking if strncmpi might be used... " >&6; }
  27184. if test "$tst_links_strncmpi" = "yes" &&
  27185. test "$tst_proto_strncmpi" = "yes" &&
  27186. test "$tst_compi_strncmpi" = "yes" &&
  27187. test "$tst_allow_strncmpi" = "yes"; then
  27188. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27189. printf "%s\n" "yes" >&6; }
  27190. printf "%s\n" "#define HAVE_STRNCMPI 1" >>confdefs.h
  27191. ac_cv_func_strncmpi="yes"
  27192. else
  27193. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27194. printf "%s\n" "no" >&6; }
  27195. ac_cv_func_strncmpi="no"
  27196. fi
  27197. #
  27198. tst_links_strnicmp="unknown"
  27199. tst_proto_strnicmp="unknown"
  27200. tst_compi_strnicmp="unknown"
  27201. tst_allow_strnicmp="unknown"
  27202. #
  27203. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strnicmp can be linked" >&5
  27204. printf %s "checking if strnicmp can be linked... " >&6; }
  27205. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27206. /* end confdefs.h. */
  27207. /* Define strnicmp to an innocuous variant, in case <limits.h> declares strnicmp.
  27208. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  27209. #define strnicmp innocuous_strnicmp
  27210. /* System header to define __stub macros and hopefully few prototypes,
  27211. which can conflict with char strnicmp (); below. */
  27212. #include <limits.h>
  27213. #undef strnicmp
  27214. /* Override any GCC internal prototype to avoid an error.
  27215. Use char because int might match the return type of a GCC
  27216. builtin and then its argument prototype would still apply. */
  27217. #ifdef __cplusplus
  27218. extern "C"
  27219. #endif
  27220. char strnicmp ();
  27221. /* The GNU C library defines this for functions which it implements
  27222. to always fail with ENOSYS. Some functions are actually named
  27223. something starting with __ and the normal name is an alias. */
  27224. #if defined __stub_strnicmp || defined __stub___strnicmp
  27225. choke me
  27226. #endif
  27227. int
  27228. main (void)
  27229. {
  27230. return strnicmp ();
  27231. ;
  27232. return 0;
  27233. }
  27234. _ACEOF
  27235. if ac_fn_c_try_link "$LINENO"
  27236. then :
  27237. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27238. printf "%s\n" "yes" >&6; }
  27239. tst_links_strnicmp="yes"
  27240. else $as_nop
  27241. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27242. printf "%s\n" "no" >&6; }
  27243. tst_links_strnicmp="no"
  27244. fi
  27245. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  27246. conftest$ac_exeext conftest.$ac_ext
  27247. #
  27248. if test "$tst_links_strnicmp" = "yes"; then
  27249. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strnicmp is prototyped" >&5
  27250. printf %s "checking if strnicmp is prototyped... " >&6; }
  27251. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27252. /* end confdefs.h. */
  27253. $cares_includes_string
  27254. _ACEOF
  27255. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  27256. $EGREP "strnicmp" >/dev/null 2>&1
  27257. then :
  27258. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27259. printf "%s\n" "yes" >&6; }
  27260. tst_proto_strnicmp="yes"
  27261. else $as_nop
  27262. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27263. printf "%s\n" "no" >&6; }
  27264. tst_proto_strnicmp="no"
  27265. fi
  27266. rm -rf conftest*
  27267. fi
  27268. #
  27269. if test "$tst_proto_strnicmp" = "yes"; then
  27270. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strnicmp is compilable" >&5
  27271. printf %s "checking if strnicmp is compilable... " >&6; }
  27272. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27273. /* end confdefs.h. */
  27274. $cares_includes_string
  27275. int
  27276. main (void)
  27277. {
  27278. if(0 != strnicmp(0, 0))
  27279. return 1;
  27280. ;
  27281. return 0;
  27282. }
  27283. _ACEOF
  27284. if ac_fn_c_try_compile "$LINENO"
  27285. then :
  27286. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27287. printf "%s\n" "yes" >&6; }
  27288. tst_compi_strnicmp="yes"
  27289. else $as_nop
  27290. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27291. printf "%s\n" "no" >&6; }
  27292. tst_compi_strnicmp="no"
  27293. fi
  27294. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  27295. fi
  27296. #
  27297. if test "$tst_compi_strnicmp" = "yes"; then
  27298. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strnicmp usage allowed" >&5
  27299. printf %s "checking if strnicmp usage allowed... " >&6; }
  27300. if test "x$cares_disallow_strnicmp" != "xyes"; then
  27301. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27302. printf "%s\n" "yes" >&6; }
  27303. tst_allow_strnicmp="yes"
  27304. else
  27305. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27306. printf "%s\n" "no" >&6; }
  27307. tst_allow_strnicmp="no"
  27308. fi
  27309. fi
  27310. #
  27311. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strnicmp might be used" >&5
  27312. printf %s "checking if strnicmp might be used... " >&6; }
  27313. if test "$tst_links_strnicmp" = "yes" &&
  27314. test "$tst_proto_strnicmp" = "yes" &&
  27315. test "$tst_compi_strnicmp" = "yes" &&
  27316. test "$tst_allow_strnicmp" = "yes"; then
  27317. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27318. printf "%s\n" "yes" >&6; }
  27319. printf "%s\n" "#define HAVE_STRNICMP 1" >>confdefs.h
  27320. ac_cv_func_strnicmp="yes"
  27321. else
  27322. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27323. printf "%s\n" "no" >&6; }
  27324. ac_cv_func_strnicmp="no"
  27325. fi
  27326. cares_includes_sys_uio="\
  27327. /* includes start */
  27328. #ifdef HAVE_SYS_TYPES_H
  27329. # include <sys/types.h>
  27330. #endif
  27331. #ifdef HAVE_SYS_UIO_H
  27332. # include <sys/uio.h>
  27333. #endif
  27334. /* includes end */"
  27335. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$cares_includes_sys_uio
  27336. "
  27337. if test "x$ac_cv_header_sys_types_h" = xyes
  27338. then :
  27339. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  27340. fi
  27341. ac_fn_c_check_header_compile "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "$cares_includes_sys_uio
  27342. "
  27343. if test "x$ac_cv_header_sys_uio_h" = xyes
  27344. then :
  27345. printf "%s\n" "#define HAVE_SYS_UIO_H 1" >>confdefs.h
  27346. fi
  27347. #
  27348. tst_links_writev="unknown"
  27349. tst_proto_writev="unknown"
  27350. tst_compi_writev="unknown"
  27351. tst_allow_writev="unknown"
  27352. #
  27353. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if writev can be linked" >&5
  27354. printf %s "checking if writev can be linked... " >&6; }
  27355. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27356. /* end confdefs.h. */
  27357. /* Define writev to an innocuous variant, in case <limits.h> declares writev.
  27358. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  27359. #define writev innocuous_writev
  27360. /* System header to define __stub macros and hopefully few prototypes,
  27361. which can conflict with char writev (); below. */
  27362. #include <limits.h>
  27363. #undef writev
  27364. /* Override any GCC internal prototype to avoid an error.
  27365. Use char because int might match the return type of a GCC
  27366. builtin and then its argument prototype would still apply. */
  27367. #ifdef __cplusplus
  27368. extern "C"
  27369. #endif
  27370. char writev ();
  27371. /* The GNU C library defines this for functions which it implements
  27372. to always fail with ENOSYS. Some functions are actually named
  27373. something starting with __ and the normal name is an alias. */
  27374. #if defined __stub_writev || defined __stub___writev
  27375. choke me
  27376. #endif
  27377. int
  27378. main (void)
  27379. {
  27380. return writev ();
  27381. ;
  27382. return 0;
  27383. }
  27384. _ACEOF
  27385. if ac_fn_c_try_link "$LINENO"
  27386. then :
  27387. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27388. printf "%s\n" "yes" >&6; }
  27389. tst_links_writev="yes"
  27390. else $as_nop
  27391. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27392. printf "%s\n" "no" >&6; }
  27393. tst_links_writev="no"
  27394. fi
  27395. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  27396. conftest$ac_exeext conftest.$ac_ext
  27397. #
  27398. if test "$tst_links_writev" = "yes"; then
  27399. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if writev is prototyped" >&5
  27400. printf %s "checking if writev is prototyped... " >&6; }
  27401. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27402. /* end confdefs.h. */
  27403. $cares_includes_sys_uio
  27404. _ACEOF
  27405. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  27406. $EGREP "writev" >/dev/null 2>&1
  27407. then :
  27408. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27409. printf "%s\n" "yes" >&6; }
  27410. tst_proto_writev="yes"
  27411. else $as_nop
  27412. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27413. printf "%s\n" "no" >&6; }
  27414. tst_proto_writev="no"
  27415. fi
  27416. rm -rf conftest*
  27417. fi
  27418. #
  27419. if test "$tst_proto_writev" = "yes"; then
  27420. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if writev is compilable" >&5
  27421. printf %s "checking if writev is compilable... " >&6; }
  27422. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27423. /* end confdefs.h. */
  27424. $cares_includes_sys_uio
  27425. int
  27426. main (void)
  27427. {
  27428. if(0 != writev(0, 0, 0))
  27429. return 1;
  27430. ;
  27431. return 0;
  27432. }
  27433. _ACEOF
  27434. if ac_fn_c_try_compile "$LINENO"
  27435. then :
  27436. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27437. printf "%s\n" "yes" >&6; }
  27438. tst_compi_writev="yes"
  27439. else $as_nop
  27440. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27441. printf "%s\n" "no" >&6; }
  27442. tst_compi_writev="no"
  27443. fi
  27444. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  27445. fi
  27446. #
  27447. if test "$tst_compi_writev" = "yes"; then
  27448. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if writev usage allowed" >&5
  27449. printf %s "checking if writev usage allowed... " >&6; }
  27450. if test "x$cares_disallow_writev" != "xyes"; then
  27451. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27452. printf "%s\n" "yes" >&6; }
  27453. tst_allow_writev="yes"
  27454. else
  27455. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27456. printf "%s\n" "no" >&6; }
  27457. tst_allow_writev="no"
  27458. fi
  27459. fi
  27460. #
  27461. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if writev might be used" >&5
  27462. printf %s "checking if writev might be used... " >&6; }
  27463. if test "$tst_links_writev" = "yes" &&
  27464. test "$tst_proto_writev" = "yes" &&
  27465. test "$tst_compi_writev" = "yes" &&
  27466. test "$tst_allow_writev" = "yes"; then
  27467. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27468. printf "%s\n" "yes" >&6; }
  27469. printf "%s\n" "#define HAVE_WRITEV 1" >>confdefs.h
  27470. ac_cv_func_writev="yes"
  27471. else
  27472. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27473. printf "%s\n" "no" >&6; }
  27474. ac_cv_func_writev="no"
  27475. fi
  27476. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PF_INET6" >&5
  27477. printf %s "checking for PF_INET6... " >&6; }
  27478. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27479. /* end confdefs.h. */
  27480. #undef inline
  27481. #ifdef HAVE_WINDOWS_H
  27482. #ifndef WIN32_LEAN_AND_MEAN
  27483. #define WIN32_LEAN_AND_MEAN
  27484. #endif
  27485. #include <windows.h>
  27486. #ifdef HAVE_WINSOCK2_H
  27487. #include <winsock2.h>
  27488. #endif
  27489. #else
  27490. #ifdef HAVE_SYS_TYPES_H
  27491. #include <sys/types.h>
  27492. #endif
  27493. #ifdef HAVE_SYS_SOCKET_H
  27494. #include <sys/socket.h>
  27495. #endif
  27496. #endif
  27497. #ifdef PF_INET6
  27498. VARIABLEWASDEFINED
  27499. #else
  27500. NJET
  27501. #endif
  27502. _ACEOF
  27503. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  27504. $EGREP "VARIABLEWASDEFINED" >/dev/null 2>&1
  27505. then :
  27506. ac_constant="yes"
  27507. else $as_nop
  27508. ac_constant="no"
  27509. fi
  27510. rm -rf conftest*
  27511. if test "$ac_constant" = "yes" ; then
  27512. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27513. printf "%s\n" "yes" >&6; }
  27514. printf "%s\n" "#define HAVE_PF_INET6 1" >>confdefs.h
  27515. else
  27516. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27517. printf "%s\n" "no" >&6; }
  27518. fi
  27519. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for AF_INET6" >&5
  27520. printf %s "checking for AF_INET6... " >&6; }
  27521. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27522. /* end confdefs.h. */
  27523. #undef inline
  27524. #ifdef HAVE_WINDOWS_H
  27525. #ifndef WIN32_LEAN_AND_MEAN
  27526. #define WIN32_LEAN_AND_MEAN
  27527. #endif
  27528. #include <windows.h>
  27529. #ifdef HAVE_WINSOCK2_H
  27530. #include <winsock2.h>
  27531. #endif
  27532. #else
  27533. #ifdef HAVE_SYS_TYPES_H
  27534. #include <sys/types.h>
  27535. #endif
  27536. #ifdef HAVE_SYS_SOCKET_H
  27537. #include <sys/socket.h>
  27538. #endif
  27539. #endif
  27540. #ifdef AF_INET6
  27541. VARIABLEWASDEFINED
  27542. #else
  27543. NJET
  27544. #endif
  27545. _ACEOF
  27546. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  27547. $EGREP "VARIABLEWASDEFINED" >/dev/null 2>&1
  27548. then :
  27549. ac_constant="yes"
  27550. else $as_nop
  27551. ac_constant="no"
  27552. fi
  27553. rm -rf conftest*
  27554. if test "$ac_constant" = "yes" ; then
  27555. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27556. printf "%s\n" "yes" >&6; }
  27557. printf "%s\n" "#define HAVE_AF_INET6 1" >>confdefs.h
  27558. else
  27559. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27560. printf "%s\n" "no" >&6; }
  27561. fi
  27562. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct in6_addr" >&5
  27563. printf %s "checking for struct in6_addr... " >&6; }
  27564. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27565. /* end confdefs.h. */
  27566. #undef inline
  27567. #ifdef HAVE_WINDOWS_H
  27568. #ifndef WIN32_LEAN_AND_MEAN
  27569. #define WIN32_LEAN_AND_MEAN
  27570. #endif
  27571. #include <windows.h>
  27572. #ifdef HAVE_WINSOCK2_H
  27573. #include <winsock2.h>
  27574. #ifdef HAVE_WS2TCPIP_H
  27575. #include <ws2tcpip.h>
  27576. #endif
  27577. #endif
  27578. #else
  27579. #ifdef HAVE_SYS_TYPES_H
  27580. #include <sys/types.h>
  27581. #endif
  27582. #ifdef HAVE_NETINET_IN_H
  27583. #include <netinet/in.h>
  27584. #endif
  27585. #endif
  27586. int
  27587. main (void)
  27588. {
  27589. struct in6_addr struct_instance;
  27590. ;
  27591. return 0;
  27592. }
  27593. _ACEOF
  27594. if ac_fn_c_try_compile "$LINENO"
  27595. then :
  27596. ac_struct="yes"
  27597. else $as_nop
  27598. ac_found="no"
  27599. fi
  27600. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  27601. if test "$ac_struct" = "yes" ; then
  27602. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27603. printf "%s\n" "yes" >&6; }
  27604. printf "%s\n" "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h
  27605. else
  27606. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27607. printf "%s\n" "no" >&6; }
  27608. fi
  27609. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_in6" >&5
  27610. printf %s "checking for struct sockaddr_in6... " >&6; }
  27611. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27612. /* end confdefs.h. */
  27613. #undef inline
  27614. #ifdef HAVE_WINDOWS_H
  27615. #ifndef WIN32_LEAN_AND_MEAN
  27616. #define WIN32_LEAN_AND_MEAN
  27617. #endif
  27618. #include <windows.h>
  27619. #ifdef HAVE_WINSOCK2_H
  27620. #include <winsock2.h>
  27621. #ifdef HAVE_WS2TCPIP_H
  27622. #include <ws2tcpip.h>
  27623. #endif
  27624. #endif
  27625. #else
  27626. #ifdef HAVE_SYS_TYPES_H
  27627. #include <sys/types.h>
  27628. #endif
  27629. #ifdef HAVE_NETINET_IN_H
  27630. #include <netinet/in.h>
  27631. #endif
  27632. #endif
  27633. int
  27634. main (void)
  27635. {
  27636. struct sockaddr_in6 struct_instance;
  27637. ;
  27638. return 0;
  27639. }
  27640. _ACEOF
  27641. if ac_fn_c_try_compile "$LINENO"
  27642. then :
  27643. ac_struct="yes"
  27644. else $as_nop
  27645. ac_found="no"
  27646. fi
  27647. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  27648. if test "$ac_struct" = "yes" ; then
  27649. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27650. printf "%s\n" "yes" >&6; }
  27651. printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h
  27652. ac_have_sockaddr_in6=yes
  27653. else
  27654. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27655. printf "%s\n" "no" >&6; }
  27656. fi
  27657. ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_scope_id" "ac_cv_member_struct_sockaddr_in6_sin6_scope_id" "
  27658. #undef inline
  27659. #ifdef HAVE_WINDOWS_H
  27660. #ifndef WIN32_LEAN_AND_MEAN
  27661. #define WIN32_LEAN_AND_MEAN
  27662. #endif
  27663. #include <windows.h>
  27664. #ifdef HAVE_WINSOCK2_H
  27665. #include <winsock2.h>
  27666. #ifdef HAVE_WS2TCPIP_H
  27667. #include <ws2tcpip.h>
  27668. #endif
  27669. #endif
  27670. #else
  27671. #ifdef HAVE_SYS_TYPES_H
  27672. #include <sys/types.h>
  27673. #endif
  27674. #ifdef HAVE_NETINET_IN_H
  27675. #include <netinet/in.h>
  27676. #endif
  27677. #endif
  27678. "
  27679. if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes
  27680. then :
  27681. printf "%s\n" "#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1" >>confdefs.h
  27682. fi
  27683. ac_fn_c_check_member "$LINENO" "struct addrinfo" "ai_flags" "ac_cv_member_struct_addrinfo_ai_flags" "
  27684. #undef inline
  27685. #ifdef HAVE_WINDOWS_H
  27686. #ifndef WIN32_LEAN_AND_MEAN
  27687. #define WIN32_LEAN_AND_MEAN
  27688. #endif
  27689. #include <windows.h>
  27690. #ifdef HAVE_WINSOCK2_H
  27691. #include <winsock2.h>
  27692. #ifdef HAVE_WS2TCPIP_H
  27693. #include <ws2tcpip.h>
  27694. #endif
  27695. #endif
  27696. #else
  27697. #ifdef HAVE_SYS_TYPES_H
  27698. #include <sys/types.h>
  27699. #endif
  27700. #ifdef HAVE_NETINET_IN_H
  27701. #include <netinet/in.h>
  27702. #endif
  27703. #ifdef HAVE_SYS_SOCKET_H
  27704. #include <sys/socket.h>
  27705. #endif
  27706. #ifdef HAVE_NETDB_H
  27707. #include <netdb.h>
  27708. #endif
  27709. #endif
  27710. "
  27711. if test "x$ac_cv_member_struct_addrinfo_ai_flags" = xyes
  27712. then :
  27713. printf "%s\n" "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h
  27714. fi
  27715. for ac_func in bitncmp gettimeofday if_indextoname
  27716. do :
  27717. as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh`
  27718. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  27719. if eval test \"x\$"$as_ac_var"\" = x"yes"
  27720. then :
  27721. cat >>confdefs.h <<_ACEOF
  27722. #define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1
  27723. _ACEOF
  27724. else $as_nop
  27725. func="$ac_func"
  27726. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking deeper for $func" >&5
  27727. printf %s "checking deeper for $func... " >&6; }
  27728. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27729. /* end confdefs.h. */
  27730. int
  27731. main (void)
  27732. {
  27733. $func ();
  27734. ;
  27735. return 0;
  27736. }
  27737. _ACEOF
  27738. if ac_fn_c_try_link "$LINENO"
  27739. then :
  27740. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27741. printf "%s\n" "yes" >&6; }
  27742. eval "ac_cv_func_$func=yes"
  27743. cat >>confdefs.h <<_ACEOF
  27744. #define `echo "HAVE_$func" | sed 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' | sed 's/^A-Z0-9_/_/g'` 1
  27745. _ACEOF
  27746. else $as_nop
  27747. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
  27748. printf "%s\n" "but still no" >&6; }
  27749. fi
  27750. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  27751. conftest$ac_exeext conftest.$ac_ext
  27752. fi
  27753. done
  27754. ac_fn_c_check_func "$LINENO" "__system_property_get" "ac_cv_func___system_property_get"
  27755. if test "x$ac_cv_func___system_property_get" = xyes
  27756. then :
  27757. printf "%s\n" "#define HAVE___SYSTEM_PROPERTY_GET 1" >>confdefs.h
  27758. fi
  27759. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
  27760. if test "x$ac_cv_header_sys_types_h" = xyes
  27761. then :
  27762. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  27763. fi
  27764. ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
  27765. if test "x$ac_cv_header_sys_socket_h" = xyes
  27766. then :
  27767. printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
  27768. fi
  27769. ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
  27770. if test "x$ac_cv_header_netdb_h" = xyes
  27771. then :
  27772. printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h
  27773. fi
  27774. #
  27775. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getnameinfo" >&5
  27776. printf %s "checking for getnameinfo... " >&6; }
  27777. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27778. /* end confdefs.h. */
  27779. /* Define getnameinfo to an innocuous variant, in case <limits.h> declares getnameinfo.
  27780. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  27781. #define getnameinfo innocuous_getnameinfo
  27782. /* System header to define __stub macros and hopefully few prototypes,
  27783. which can conflict with char getnameinfo (); below. */
  27784. #include <limits.h>
  27785. #undef getnameinfo
  27786. /* Override any GCC internal prototype to avoid an error.
  27787. Use char because int might match the return type of a GCC
  27788. builtin and then its argument prototype would still apply. */
  27789. #ifdef __cplusplus
  27790. extern "C"
  27791. #endif
  27792. char getnameinfo ();
  27793. /* The GNU C library defines this for functions which it implements
  27794. to always fail with ENOSYS. Some functions are actually named
  27795. something starting with __ and the normal name is an alias. */
  27796. #if defined __stub_getnameinfo || defined __stub___getnameinfo
  27797. choke me
  27798. #endif
  27799. int
  27800. main (void)
  27801. {
  27802. return getnameinfo ();
  27803. ;
  27804. return 0;
  27805. }
  27806. _ACEOF
  27807. if ac_fn_c_try_link "$LINENO"
  27808. then :
  27809. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27810. printf "%s\n" "yes" >&6; }
  27811. curl_cv_getnameinfo="yes"
  27812. else $as_nop
  27813. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27814. printf "%s\n" "no" >&6; }
  27815. curl_cv_getnameinfo="no"
  27816. fi
  27817. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  27818. conftest$ac_exeext conftest.$ac_ext
  27819. #
  27820. if test "$curl_cv_getnameinfo" != "yes"; then
  27821. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking deeper for getnameinfo" >&5
  27822. printf %s "checking deeper for getnameinfo... " >&6; }
  27823. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27824. /* end confdefs.h. */
  27825. int
  27826. main (void)
  27827. {
  27828. getnameinfo();
  27829. ;
  27830. return 0;
  27831. }
  27832. _ACEOF
  27833. if ac_fn_c_try_link "$LINENO"
  27834. then :
  27835. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27836. printf "%s\n" "yes" >&6; }
  27837. curl_cv_getnameinfo="yes"
  27838. else $as_nop
  27839. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
  27840. printf "%s\n" "but still no" >&6; }
  27841. curl_cv_getnameinfo="no"
  27842. fi
  27843. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  27844. conftest$ac_exeext conftest.$ac_ext
  27845. fi
  27846. #
  27847. if test "$curl_cv_getnameinfo" != "yes"; then
  27848. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking deeper and deeper for getnameinfo" >&5
  27849. printf %s "checking deeper and deeper for getnameinfo... " >&6; }
  27850. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27851. /* end confdefs.h. */
  27852. #undef inline
  27853. #ifdef HAVE_WINDOWS_H
  27854. #ifndef WIN32_LEAN_AND_MEAN
  27855. #define WIN32_LEAN_AND_MEAN
  27856. #endif
  27857. #include <windows.h>
  27858. #ifdef HAVE_WINSOCK2_H
  27859. #include <winsock2.h>
  27860. #ifdef HAVE_WS2TCPIP_H
  27861. #include <ws2tcpip.h>
  27862. #endif
  27863. #endif
  27864. #else
  27865. #ifdef HAVE_SYS_TYPES_H
  27866. #include <sys/types.h>
  27867. #endif
  27868. #ifdef HAVE_SYS_SOCKET_H
  27869. #include <sys/socket.h>
  27870. #endif
  27871. #ifdef HAVE_NETDB_H
  27872. #include <netdb.h>
  27873. #endif
  27874. #endif
  27875. int
  27876. main (void)
  27877. {
  27878. getnameinfo(0, 0, 0, 0, 0, 0, 0);
  27879. ;
  27880. return 0;
  27881. }
  27882. _ACEOF
  27883. if ac_fn_c_try_link "$LINENO"
  27884. then :
  27885. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27886. printf "%s\n" "yes" >&6; }
  27887. curl_cv_getnameinfo="yes"
  27888. else $as_nop
  27889. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
  27890. printf "%s\n" "but still no" >&6; }
  27891. curl_cv_getnameinfo="no"
  27892. fi
  27893. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  27894. conftest$ac_exeext conftest.$ac_ext
  27895. fi
  27896. #
  27897. if test "$curl_cv_getnameinfo" = "yes"; then
  27898. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking types of arguments for getnameinfo" >&5
  27899. printf %s "checking types of arguments for getnameinfo... " >&6; }
  27900. if test ${curl_cv_func_getnameinfo_args+y}
  27901. then :
  27902. printf %s "(cached) " >&6
  27903. else $as_nop
  27904. curl_cv_func_getnameinfo_args="unknown"
  27905. for gni_arg1 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
  27906. for gni_arg2 in 'socklen_t' 'size_t' 'int'; do
  27907. for gni_arg46 in 'size_t' 'int' 'socklen_t' 'unsigned int' 'DWORD'; do
  27908. for gni_arg7 in 'int' 'unsigned int'; do
  27909. if test "$curl_cv_func_getnameinfo_args" = "unknown"; then
  27910. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27911. /* end confdefs.h. */
  27912. #undef inline
  27913. #ifdef HAVE_WINDOWS_H
  27914. #ifndef WIN32_LEAN_AND_MEAN
  27915. #define WIN32_LEAN_AND_MEAN
  27916. #endif
  27917. #if (!defined(_WIN32_WINNT)) || (_WIN32_WINNT < 0x0501)
  27918. #undef _WIN32_WINNT
  27919. #define _WIN32_WINNT 0x0501
  27920. #endif
  27921. #include <windows.h>
  27922. #ifdef HAVE_WINSOCK2_H
  27923. #include <winsock2.h>
  27924. #ifdef HAVE_WS2TCPIP_H
  27925. #include <ws2tcpip.h>
  27926. #endif
  27927. #endif
  27928. #define GNICALLCONV WSAAPI
  27929. #else
  27930. #ifdef HAVE_SYS_TYPES_H
  27931. #include <sys/types.h>
  27932. #endif
  27933. #ifdef HAVE_SYS_SOCKET_H
  27934. #include <sys/socket.h>
  27935. #endif
  27936. #ifdef HAVE_NETDB_H
  27937. #include <netdb.h>
  27938. #endif
  27939. #define GNICALLCONV
  27940. #endif
  27941. extern int GNICALLCONV getnameinfo($gni_arg1, $gni_arg2,
  27942. char *, $gni_arg46,
  27943. char *, $gni_arg46,
  27944. $gni_arg7);
  27945. int
  27946. main (void)
  27947. {
  27948. $gni_arg2 salen=0;
  27949. $gni_arg46 hostlen=0;
  27950. $gni_arg46 servlen=0;
  27951. $gni_arg7 flags=0;
  27952. int res = getnameinfo(0, salen, 0, hostlen, 0, servlen, flags);
  27953. ;
  27954. return 0;
  27955. }
  27956. _ACEOF
  27957. if ac_fn_c_try_compile "$LINENO"
  27958. then :
  27959. curl_cv_func_getnameinfo_args="$gni_arg1,$gni_arg2,$gni_arg46,$gni_arg7"
  27960. fi
  27961. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  27962. fi
  27963. done
  27964. done
  27965. done
  27966. done
  27967. fi
  27968. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_getnameinfo_args" >&5
  27969. printf "%s\n" "$curl_cv_func_getnameinfo_args" >&6; } # AC-CACHE-CHECK
  27970. if test "$curl_cv_func_getnameinfo_args" = "unknown"; then
  27971. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for getnameinfo args" >&5
  27972. printf "%s\n" "$as_me: WARNING: Cannot find proper types to use for getnameinfo args" >&2;}
  27973. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_GETNAMEINFO will not be defined" >&5
  27974. printf "%s\n" "$as_me: WARNING: HAVE_GETNAMEINFO will not be defined" >&2;}
  27975. else
  27976. gni_prev_IFS=$IFS; IFS=','
  27977. set dummy `echo "$curl_cv_func_getnameinfo_args" | sed 's/\*/\*/g'`
  27978. IFS=$gni_prev_IFS
  27979. shift
  27980. #
  27981. gni_qual_type_arg1=$1
  27982. #
  27983. printf "%s\n" "#define GETNAMEINFO_TYPE_ARG2 $2" >>confdefs.h
  27984. printf "%s\n" "#define GETNAMEINFO_TYPE_ARG46 $3" >>confdefs.h
  27985. printf "%s\n" "#define GETNAMEINFO_TYPE_ARG7 $4" >>confdefs.h
  27986. #
  27987. prev_sh_opts=$-
  27988. #
  27989. case $prev_sh_opts in
  27990. *f*)
  27991. ;;
  27992. *)
  27993. set -f
  27994. ;;
  27995. esac
  27996. #
  27997. case "$gni_qual_type_arg1" in
  27998. const*)
  27999. gni_qual_arg1=const
  28000. gni_type_arg1=`echo $gni_qual_type_arg1 | sed 's/^const //'`
  28001. ;;
  28002. *)
  28003. gni_qual_arg1=
  28004. gni_type_arg1=$gni_qual_type_arg1
  28005. ;;
  28006. esac
  28007. #
  28008. printf "%s\n" "#define GETNAMEINFO_QUAL_ARG1 $gni_qual_arg1" >>confdefs.h
  28009. printf "%s\n" "#define GETNAMEINFO_TYPE_ARG1 $gni_type_arg1" >>confdefs.h
  28010. #
  28011. case $prev_sh_opts in
  28012. *f*)
  28013. ;;
  28014. *)
  28015. set +f
  28016. ;;
  28017. esac
  28018. #
  28019. printf "%s\n" "#define HAVE_GETNAMEINFO 1" >>confdefs.h
  28020. ac_cv_func_getnameinfo="yes"
  28021. fi
  28022. fi
  28023. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  28024. printf %s "checking whether byte ordering is bigendian... " >&6; }
  28025. if test ${ac_cv_c_bigendian+y}
  28026. then :
  28027. printf %s "(cached) " >&6
  28028. else $as_nop
  28029. ac_cv_c_bigendian=unknown
  28030. # See if we're dealing with a universal compiler.
  28031. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28032. /* end confdefs.h. */
  28033. #ifndef __APPLE_CC__
  28034. not a universal capable compiler
  28035. #endif
  28036. typedef int dummy;
  28037. _ACEOF
  28038. if ac_fn_c_try_compile "$LINENO"
  28039. then :
  28040. # Check for potential -arch flags. It is not universal unless
  28041. # there are at least two -arch flags with different values.
  28042. ac_arch=
  28043. ac_prev=
  28044. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  28045. if test -n "$ac_prev"; then
  28046. case $ac_word in
  28047. i?86 | x86_64 | ppc | ppc64)
  28048. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  28049. ac_arch=$ac_word
  28050. else
  28051. ac_cv_c_bigendian=universal
  28052. break
  28053. fi
  28054. ;;
  28055. esac
  28056. ac_prev=
  28057. elif test "x$ac_word" = "x-arch"; then
  28058. ac_prev=arch
  28059. fi
  28060. done
  28061. fi
  28062. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  28063. if test $ac_cv_c_bigendian = unknown; then
  28064. # See if sys/param.h defines the BYTE_ORDER macro.
  28065. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28066. /* end confdefs.h. */
  28067. #include <sys/types.h>
  28068. #include <sys/param.h>
  28069. int
  28070. main (void)
  28071. {
  28072. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  28073. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  28074. && LITTLE_ENDIAN)
  28075. bogus endian macros
  28076. #endif
  28077. ;
  28078. return 0;
  28079. }
  28080. _ACEOF
  28081. if ac_fn_c_try_compile "$LINENO"
  28082. then :
  28083. # It does; now see whether it defined to BIG_ENDIAN or not.
  28084. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28085. /* end confdefs.h. */
  28086. #include <sys/types.h>
  28087. #include <sys/param.h>
  28088. int
  28089. main (void)
  28090. {
  28091. #if BYTE_ORDER != BIG_ENDIAN
  28092. not big endian
  28093. #endif
  28094. ;
  28095. return 0;
  28096. }
  28097. _ACEOF
  28098. if ac_fn_c_try_compile "$LINENO"
  28099. then :
  28100. ac_cv_c_bigendian=yes
  28101. else $as_nop
  28102. ac_cv_c_bigendian=no
  28103. fi
  28104. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  28105. fi
  28106. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  28107. fi
  28108. if test $ac_cv_c_bigendian = unknown; then
  28109. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  28110. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28111. /* end confdefs.h. */
  28112. #include <limits.h>
  28113. int
  28114. main (void)
  28115. {
  28116. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  28117. bogus endian macros
  28118. #endif
  28119. ;
  28120. return 0;
  28121. }
  28122. _ACEOF
  28123. if ac_fn_c_try_compile "$LINENO"
  28124. then :
  28125. # It does; now see whether it defined to _BIG_ENDIAN or not.
  28126. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28127. /* end confdefs.h. */
  28128. #include <limits.h>
  28129. int
  28130. main (void)
  28131. {
  28132. #ifndef _BIG_ENDIAN
  28133. not big endian
  28134. #endif
  28135. ;
  28136. return 0;
  28137. }
  28138. _ACEOF
  28139. if ac_fn_c_try_compile "$LINENO"
  28140. then :
  28141. ac_cv_c_bigendian=yes
  28142. else $as_nop
  28143. ac_cv_c_bigendian=no
  28144. fi
  28145. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  28146. fi
  28147. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  28148. fi
  28149. if test $ac_cv_c_bigendian = unknown; then
  28150. # Compile a test program.
  28151. if test "$cross_compiling" = yes
  28152. then :
  28153. # Try to guess by grepping values from an object file.
  28154. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28155. /* end confdefs.h. */
  28156. unsigned short int ascii_mm[] =
  28157. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  28158. unsigned short int ascii_ii[] =
  28159. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  28160. int use_ascii (int i) {
  28161. return ascii_mm[i] + ascii_ii[i];
  28162. }
  28163. unsigned short int ebcdic_ii[] =
  28164. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  28165. unsigned short int ebcdic_mm[] =
  28166. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  28167. int use_ebcdic (int i) {
  28168. return ebcdic_mm[i] + ebcdic_ii[i];
  28169. }
  28170. extern int foo;
  28171. int
  28172. main (void)
  28173. {
  28174. return use_ascii (foo) == use_ebcdic (foo);
  28175. ;
  28176. return 0;
  28177. }
  28178. _ACEOF
  28179. if ac_fn_c_try_compile "$LINENO"
  28180. then :
  28181. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  28182. ac_cv_c_bigendian=yes
  28183. fi
  28184. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  28185. if test "$ac_cv_c_bigendian" = unknown; then
  28186. ac_cv_c_bigendian=no
  28187. else
  28188. # finding both strings is unlikely to happen, but who knows?
  28189. ac_cv_c_bigendian=unknown
  28190. fi
  28191. fi
  28192. fi
  28193. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  28194. else $as_nop
  28195. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28196. /* end confdefs.h. */
  28197. $ac_includes_default
  28198. int
  28199. main (void)
  28200. {
  28201. /* Are we little or big endian? From Harbison&Steele. */
  28202. union
  28203. {
  28204. long int l;
  28205. char c[sizeof (long int)];
  28206. } u;
  28207. u.l = 1;
  28208. return u.c[sizeof (long int) - 1] == 1;
  28209. ;
  28210. return 0;
  28211. }
  28212. _ACEOF
  28213. if ac_fn_c_try_run "$LINENO"
  28214. then :
  28215. ac_cv_c_bigendian=no
  28216. else $as_nop
  28217. ac_cv_c_bigendian=yes
  28218. fi
  28219. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  28220. conftest.$ac_objext conftest.beam conftest.$ac_ext
  28221. fi
  28222. fi
  28223. fi
  28224. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  28225. printf "%s\n" "$ac_cv_c_bigendian" >&6; }
  28226. case $ac_cv_c_bigendian in #(
  28227. yes)
  28228. printf "%s\n" "#define ARES_BIG_ENDIAN 1" >>confdefs.h
  28229. ;; #(
  28230. no)
  28231. ;; #(
  28232. universal)
  28233. printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  28234. ;; #(
  28235. *)
  28236. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: couldn't figure out endianess, assuming little endian!" >&5
  28237. printf "%s\n" "$as_me: WARNING: couldn't figure out endianess, assuming little endian!" >&2;}
  28238. ;;
  28239. esac
  28240. # Check whether --with-random was given.
  28241. if test ${with_random+y}
  28242. then :
  28243. withval=$with_random; CARES_RANDOM_FILE="$withval"
  28244. else $as_nop
  28245. if test "$cross_compiling" = "no"; then
  28246. as_ac_File=`printf "%s\n" "ac_cv_file_"/dev/urandom"" | $as_tr_sh`
  28247. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for \"/dev/urandom\"" >&5
  28248. printf %s "checking for \"/dev/urandom\"... " >&6; }
  28249. if eval test \${$as_ac_File+y}
  28250. then :
  28251. printf %s "(cached) " >&6
  28252. else $as_nop
  28253. test "$cross_compiling" = yes &&
  28254. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  28255. if test -r ""/dev/urandom""; then
  28256. eval "$as_ac_File=yes"
  28257. else
  28258. eval "$as_ac_File=no"
  28259. fi
  28260. fi
  28261. eval ac_res=\$$as_ac_File
  28262. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  28263. printf "%s\n" "$ac_res" >&6; }
  28264. if eval test \"x\$"$as_ac_File"\" = x"yes"
  28265. then :
  28266. CARES_RANDOM_FILE="/dev/urandom"
  28267. fi
  28268. else
  28269. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot check for /dev/urandom while cross compiling; assuming none" >&5
  28270. printf "%s\n" "$as_me: WARNING: cannot check for /dev/urandom while cross compiling; assuming none" >&2;}
  28271. fi
  28272. fi
  28273. if test -n "$CARES_RANDOM_FILE" && test X"$CARES_RANDOM_FILE" != Xno ; then
  28274. printf "%s\n" "#define CARES_RANDOM_FILE \"$CARES_RANDOM_FILE\"" >>confdefs.h
  28275. fi
  28276. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable non-blocking communications" >&5
  28277. printf %s "checking whether to enable non-blocking communications... " >&6; }
  28278. OPT_NONBLOCKING="default"
  28279. # Check whether --enable-nonblocking was given.
  28280. if test ${enable_nonblocking+y}
  28281. then :
  28282. enableval=$enable_nonblocking; OPT_NONBLOCKING=$enableval
  28283. fi
  28284. case "$OPT_NONBLOCKING" in
  28285. no)
  28286. want_nonblocking="no"
  28287. ;;
  28288. default)
  28289. want_nonblocking="yes"
  28290. ;;
  28291. *)
  28292. want_nonblocking="yes"
  28293. ;;
  28294. esac
  28295. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_nonblocking" >&5
  28296. printf "%s\n" "$want_nonblocking" >&6; }
  28297. #
  28298. tst_method="unknown"
  28299. if test "$want_nonblocking" = "yes"; then
  28300. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to set a socket into non-blocking mode" >&5
  28301. printf %s "checking how to set a socket into non-blocking mode... " >&6; }
  28302. if test "x$ac_cv_func_fcntl_o_nonblock" = "xyes"; then
  28303. tst_method="fcntl O_NONBLOCK"
  28304. elif test "x$ac_cv_func_ioctl_fionbio" = "xyes"; then
  28305. tst_method="ioctl FIONBIO"
  28306. elif test "x$ac_cv_func_ioctlsocket_fionbio" = "xyes"; then
  28307. tst_method="ioctlsocket FIONBIO"
  28308. elif test "x$ac_cv_func_ioctlsocket_camel_fionbio" = "xyes"; then
  28309. tst_method="IoctlSocket FIONBIO"
  28310. elif test "x$ac_cv_func_setsockopt_so_nonblock" = "xyes"; then
  28311. tst_method="setsockopt SO_NONBLOCK"
  28312. fi
  28313. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_method" >&5
  28314. printf "%s\n" "$tst_method" >&6; }
  28315. if test "$tst_method" = "unknown"; then
  28316. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine non-blocking socket method." >&5
  28317. printf "%s\n" "$as_me: WARNING: cannot determine non-blocking socket method." >&2;}
  28318. fi
  28319. fi
  28320. if test "$tst_method" = "unknown"; then
  28321. printf "%s\n" "#define USE_BLOCKING_SOCKETS 1" >>confdefs.h
  28322. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: non-blocking sockets disabled." >&5
  28323. printf "%s\n" "$as_me: WARNING: non-blocking sockets disabled." >&2;}
  28324. fi
  28325. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether hiding of library internal symbols will actually happen" >&5
  28326. printf %s "checking whether hiding of library internal symbols will actually happen... " >&6; }
  28327. CFLAG_CARES_SYMBOL_HIDING=""
  28328. doing_symbol_hiding="no"
  28329. if test x"$ac_cv_native_windows" != "xyes" &&
  28330. test "$want_symbol_hiding" = "yes" &&
  28331. test "$supports_symbol_hiding" = "yes"; then
  28332. doing_symbol_hiding="yes"
  28333. CFLAG_CARES_SYMBOL_HIDING="$symbol_hiding_CFLAGS"
  28334. printf "%s\n" "#define CARES_SYMBOL_SCOPE_EXTERN $symbol_hiding_EXTERN" >>confdefs.h
  28335. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28336. printf "%s\n" "yes" >&6; }
  28337. else
  28338. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28339. printf "%s\n" "no" >&6; }
  28340. fi
  28341. if test x$doing_symbol_hiding = xyes; then
  28342. DOING_CARES_SYMBOL_HIDING_TRUE=
  28343. DOING_CARES_SYMBOL_HIDING_FALSE='#'
  28344. else
  28345. DOING_CARES_SYMBOL_HIDING_TRUE='#'
  28346. DOING_CARES_SYMBOL_HIDING_FALSE=
  28347. fi
  28348. if test "$doing_symbol_hiding" = "yes"; then
  28349. printf "%s\n" "#define CARES_SYMBOL_HIDING 1" >>confdefs.h
  28350. fi
  28351. CARES_PRIVATE_LIBS="$LIBS"
  28352. CARES_CFLAG_EXTRAS=""
  28353. if test X"$want_werror" = Xyes; then
  28354. CARES_CFLAG_EXTRAS="-Werror"
  28355. fi
  28356. squeeze CFLAGS
  28357. squeeze CPPFLAGS
  28358. squeeze DEFS
  28359. squeeze LDFLAGS
  28360. squeeze LIBS
  28361. squeeze CARES_PRIVATE_LIBS
  28362. xc_bad_var_libs=no
  28363. for xc_word in $LIBS; do
  28364. case "$xc_word" in
  28365. -l* | --library=*)
  28366. :
  28367. ;;
  28368. *)
  28369. xc_bad_var_libs=yes
  28370. ;;
  28371. esac
  28372. done
  28373. if test $xc_bad_var_libs = yes; then
  28374. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
  28375. printf "%s\n" "$as_me: using LIBS: $LIBS" >&6;}
  28376. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: LIBS error: LIBS may only be used to specify libraries (-lname)." >&5
  28377. printf "%s\n" "$as_me: LIBS error: LIBS may only be used to specify libraries (-lname)." >&6;}
  28378. fi
  28379. xc_bad_var_ldflags=no
  28380. for xc_word in $LDFLAGS; do
  28381. case "$xc_word" in
  28382. -D*)
  28383. xc_bad_var_ldflags=yes
  28384. ;;
  28385. -U*)
  28386. xc_bad_var_ldflags=yes
  28387. ;;
  28388. -I*)
  28389. xc_bad_var_ldflags=yes
  28390. ;;
  28391. -l* | --library=*)
  28392. xc_bad_var_ldflags=yes
  28393. ;;
  28394. esac
  28395. done
  28396. if test $xc_bad_var_ldflags = yes; then
  28397. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
  28398. printf "%s\n" "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
  28399. xc_bad_var_msg="LDFLAGS error: LDFLAGS may only be used to specify linker flags, not"
  28400. for xc_word in $LDFLAGS; do
  28401. case "$xc_word" in
  28402. -D*)
  28403. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
  28404. printf "%s\n" "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
  28405. ;;
  28406. -U*)
  28407. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
  28408. printf "%s\n" "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
  28409. ;;
  28410. -I*)
  28411. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
  28412. printf "%s\n" "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
  28413. ;;
  28414. -l* | --library=*)
  28415. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
  28416. printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
  28417. ;;
  28418. esac
  28419. done
  28420. fi
  28421. xc_bad_var_cppflags=no
  28422. for xc_word in $CPPFLAGS; do
  28423. case "$xc_word" in
  28424. -rpath*)
  28425. xc_bad_var_cppflags=yes
  28426. ;;
  28427. -L* | --library-path=*)
  28428. xc_bad_var_cppflags=yes
  28429. ;;
  28430. -l* | --library=*)
  28431. xc_bad_var_cppflags=yes
  28432. ;;
  28433. esac
  28434. done
  28435. if test $xc_bad_var_cppflags = yes; then
  28436. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
  28437. printf "%s\n" "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
  28438. xc_bad_var_msg="CPPFLAGS error: CPPFLAGS may only be used to specify C preprocessor flags, not"
  28439. for xc_word in $CPPFLAGS; do
  28440. case "$xc_word" in
  28441. -rpath*)
  28442. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
  28443. printf "%s\n" "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
  28444. ;;
  28445. -L* | --library-path=*)
  28446. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
  28447. printf "%s\n" "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
  28448. ;;
  28449. -l* | --library=*)
  28450. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
  28451. printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
  28452. ;;
  28453. esac
  28454. done
  28455. fi
  28456. xc_bad_var_cflags=no
  28457. for xc_word in $CFLAGS; do
  28458. case "$xc_word" in
  28459. -D*)
  28460. xc_bad_var_cflags=yes
  28461. ;;
  28462. -U*)
  28463. xc_bad_var_cflags=yes
  28464. ;;
  28465. -I*)
  28466. xc_bad_var_cflags=yes
  28467. ;;
  28468. -rpath*)
  28469. xc_bad_var_cflags=yes
  28470. ;;
  28471. -L* | --library-path=*)
  28472. xc_bad_var_cflags=yes
  28473. ;;
  28474. -l* | --library=*)
  28475. xc_bad_var_cflags=yes
  28476. ;;
  28477. esac
  28478. done
  28479. if test $xc_bad_var_cflags = yes; then
  28480. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
  28481. printf "%s\n" "$as_me: using CFLAGS: $CFLAGS" >&6;}
  28482. xc_bad_var_msg="CFLAGS error: CFLAGS may only be used to specify C compiler flags, not"
  28483. for xc_word in $CFLAGS; do
  28484. case "$xc_word" in
  28485. -D*)
  28486. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
  28487. printf "%s\n" "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
  28488. ;;
  28489. -U*)
  28490. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
  28491. printf "%s\n" "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
  28492. ;;
  28493. -I*)
  28494. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
  28495. printf "%s\n" "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
  28496. ;;
  28497. -rpath*)
  28498. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
  28499. printf "%s\n" "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
  28500. ;;
  28501. -L* | --library-path=*)
  28502. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
  28503. printf "%s\n" "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
  28504. ;;
  28505. -l* | --library=*)
  28506. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
  28507. printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
  28508. ;;
  28509. esac
  28510. done
  28511. fi
  28512. if test $xc_bad_var_libs = yes ||
  28513. test $xc_bad_var_cflags = yes ||
  28514. test $xc_bad_var_ldflags = yes ||
  28515. test $xc_bad_var_cppflags = yes; then
  28516. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
  28517. printf "%s\n" "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
  28518. fi
  28519. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build tests" >&5
  28520. printf %s "checking whether to build tests... " >&6; }
  28521. # Check whether --enable-tests was given.
  28522. if test ${enable_tests+y}
  28523. then :
  28524. enableval=$enable_tests; build_tests="$enableval"
  28525. else $as_nop
  28526. if test "x$HAVE_CXX11" = "x1" && test "x$cross_compiling" = "xno" ; then
  28527. build_tests="yes"
  28528. else
  28529. build_tests="no"
  28530. fi
  28531. fi
  28532. if test "x$build_tests" = "xyes" ; then
  28533. if test "x$HAVE_CXX11" = "0" ; then
  28534. as_fn_error $? "*** Building tests requires a CXX11 compiler" "$LINENO" 5
  28535. fi
  28536. if test "x$cross_compiling" = "xyes" ; then
  28537. as_fn_error $? "*** Tests not supported when cross compiling" "$LINENO" 5
  28538. fi
  28539. fi
  28540. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $build_tests" >&5
  28541. printf "%s\n" "$build_tests" >&6; }
  28542. BUILD_SUBDIRS="include src docs"
  28543. if test "x$build_tests" = "xyes" ; then
  28544. subdirs="$subdirs test"
  28545. BUILD_SUBDIRS="${BUILD_SUBDIRS} test"
  28546. fi
  28547. ac_config_files="$ac_config_files Makefile include/Makefile src/Makefile src/lib/Makefile src/tools/Makefile docs/Makefile libcares.pc"
  28548. cat >confcache <<\_ACEOF
  28549. # This file is a shell script that caches the results of configure
  28550. # tests run on this system so they can be shared between configure
  28551. # scripts and configure runs, see configure's option --config-cache.
  28552. # It is not useful on other systems. If it contains results you don't
  28553. # want to keep, you may remove or edit it.
  28554. #
  28555. # config.status only pays attention to the cache file if you give it
  28556. # the --recheck option to rerun configure.
  28557. #
  28558. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  28559. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  28560. # following values.
  28561. _ACEOF
  28562. # The following way of writing the cache mishandles newlines in values,
  28563. # but we know of no workaround that is simple, portable, and efficient.
  28564. # So, we kill variables containing newlines.
  28565. # Ultrix sh set writes to stderr and can't be redirected directly,
  28566. # and sets the high bit in the cache file unless we assign to the vars.
  28567. (
  28568. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  28569. eval ac_val=\$$ac_var
  28570. case $ac_val in #(
  28571. *${as_nl}*)
  28572. case $ac_var in #(
  28573. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  28574. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  28575. esac
  28576. case $ac_var in #(
  28577. _ | IFS | as_nl) ;; #(
  28578. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  28579. *) { eval $ac_var=; unset $ac_var;} ;;
  28580. esac ;;
  28581. esac
  28582. done
  28583. (set) 2>&1 |
  28584. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  28585. *${as_nl}ac_space=\ *)
  28586. # `set' does not quote correctly, so add quotes: double-quote
  28587. # substitution turns \\\\ into \\, and sed turns \\ into \.
  28588. sed -n \
  28589. "s/'/'\\\\''/g;
  28590. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  28591. ;; #(
  28592. *)
  28593. # `set' quotes correctly as required by POSIX, so do not add quotes.
  28594. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  28595. ;;
  28596. esac |
  28597. sort
  28598. ) |
  28599. sed '
  28600. /^ac_cv_env_/b end
  28601. t clear
  28602. :clear
  28603. s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
  28604. t end
  28605. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  28606. :end' >>confcache
  28607. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  28608. if test -w "$cache_file"; then
  28609. if test "x$cache_file" != "x/dev/null"; then
  28610. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  28611. printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
  28612. if test ! -f "$cache_file" || test -h "$cache_file"; then
  28613. cat confcache >"$cache_file"
  28614. else
  28615. case $cache_file in #(
  28616. */* | ?:*)
  28617. mv -f confcache "$cache_file"$$ &&
  28618. mv -f "$cache_file"$$ "$cache_file" ;; #(
  28619. *)
  28620. mv -f confcache "$cache_file" ;;
  28621. esac
  28622. fi
  28623. fi
  28624. else
  28625. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  28626. printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
  28627. fi
  28628. fi
  28629. rm -f confcache
  28630. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  28631. # Let make expand exec_prefix.
  28632. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  28633. DEFS=-DHAVE_CONFIG_H
  28634. ac_libobjs=
  28635. ac_ltlibobjs=
  28636. U=
  28637. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  28638. # 1. Remove the extension, and $U if already installed.
  28639. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  28640. ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
  28641. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  28642. # will be set to the directory where LIBOBJS objects are built.
  28643. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  28644. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  28645. done
  28646. LIBOBJS=$ac_libobjs
  28647. LTLIBOBJS=$ac_ltlibobjs
  28648. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  28649. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  28650. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  28651. fi
  28652. if test -z "${CODE_COVERAGE_ENABLED_TRUE}" && test -z "${CODE_COVERAGE_ENABLED_FALSE}"; then
  28653. as_fn_error $? "conditional \"CODE_COVERAGE_ENABLED\" was never defined.
  28654. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  28655. fi
  28656. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  28657. printf %s "checking that generated files are newer than configure... " >&6; }
  28658. if test -n "$am_sleep_pid"; then
  28659. # Hide warnings about reused PIDs.
  28660. wait $am_sleep_pid 2>/dev/null
  28661. fi
  28662. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
  28663. printf "%s\n" "done" >&6; }
  28664. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  28665. as_fn_error $? "conditional \"AMDEP\" was never defined.
  28666. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  28667. fi
  28668. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  28669. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  28670. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  28671. fi
  28672. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  28673. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  28674. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  28675. fi
  28676. if test -n "$EXEEXT"; then
  28677. am__EXEEXT_TRUE=
  28678. am__EXEEXT_FALSE='#'
  28679. else
  28680. am__EXEEXT_TRUE='#'
  28681. am__EXEEXT_FALSE=
  28682. fi
  28683. if test -z "${CARES_LT_SHLIB_USE_VERSION_INFO_TRUE}" && test -z "${CARES_LT_SHLIB_USE_VERSION_INFO_FALSE}"; then
  28684. as_fn_error $? "conditional \"CARES_LT_SHLIB_USE_VERSION_INFO\" was never defined.
  28685. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  28686. fi
  28687. if test -z "${CARES_LT_SHLIB_USE_NO_UNDEFINED_TRUE}" && test -z "${CARES_LT_SHLIB_USE_NO_UNDEFINED_FALSE}"; then
  28688. as_fn_error $? "conditional \"CARES_LT_SHLIB_USE_NO_UNDEFINED\" was never defined.
  28689. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  28690. fi
  28691. if test -z "${CARES_LT_SHLIB_USE_MIMPURE_TEXT_TRUE}" && test -z "${CARES_LT_SHLIB_USE_MIMPURE_TEXT_FALSE}"; then
  28692. as_fn_error $? "conditional \"CARES_LT_SHLIB_USE_MIMPURE_TEXT\" was never defined.
  28693. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  28694. fi
  28695. if test -z "${USE_CPPFLAG_CARES_STATICLIB_TRUE}" && test -z "${USE_CPPFLAG_CARES_STATICLIB_FALSE}"; then
  28696. as_fn_error $? "conditional \"USE_CPPFLAG_CARES_STATICLIB\" was never defined.
  28697. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  28698. fi
  28699. if test -z "${DOING_NATIVE_WINDOWS_TRUE}" && test -z "${DOING_NATIVE_WINDOWS_FALSE}"; then
  28700. as_fn_error $? "conditional \"DOING_NATIVE_WINDOWS\" was never defined.
  28701. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  28702. fi
  28703. if test -z "${DOING_CARES_SYMBOL_HIDING_TRUE}" && test -z "${DOING_CARES_SYMBOL_HIDING_FALSE}"; then
  28704. as_fn_error $? "conditional \"DOING_CARES_SYMBOL_HIDING\" was never defined.
  28705. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  28706. fi
  28707. : "${CONFIG_STATUS=./config.status}"
  28708. ac_write_fail=0
  28709. ac_clean_files_save=$ac_clean_files
  28710. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  28711. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  28712. printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
  28713. as_write_fail=0
  28714. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  28715. #! $SHELL
  28716. # Generated by $as_me.
  28717. # Run this file to recreate the current configuration.
  28718. # Compiler output produced by configure, useful for debugging
  28719. # configure, is in config.log if it exists.
  28720. debug=false
  28721. ac_cs_recheck=false
  28722. ac_cs_silent=false
  28723. SHELL=\${CONFIG_SHELL-$SHELL}
  28724. export SHELL
  28725. _ASEOF
  28726. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  28727. ## -------------------- ##
  28728. ## M4sh Initialization. ##
  28729. ## -------------------- ##
  28730. # Be more Bourne compatible
  28731. DUALCASE=1; export DUALCASE # for MKS sh
  28732. as_nop=:
  28733. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  28734. then :
  28735. emulate sh
  28736. NULLCMD=:
  28737. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  28738. # is contrary to our usage. Disable this feature.
  28739. alias -g '${1+"$@"}'='"$@"'
  28740. setopt NO_GLOB_SUBST
  28741. else $as_nop
  28742. case `(set -o) 2>/dev/null` in #(
  28743. *posix*) :
  28744. set -o posix ;; #(
  28745. *) :
  28746. ;;
  28747. esac
  28748. fi
  28749. # Reset variables that may have inherited troublesome values from
  28750. # the environment.
  28751. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  28752. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  28753. # side effect of setting IFS to empty, thus disabling word splitting.)
  28754. # Quoting is to prevent editors from complaining about space-tab.
  28755. as_nl='
  28756. '
  28757. export as_nl
  28758. IFS=" "" $as_nl"
  28759. PS1='$ '
  28760. PS2='> '
  28761. PS4='+ '
  28762. # Ensure predictable behavior from utilities with locale-dependent output.
  28763. LC_ALL=C
  28764. export LC_ALL
  28765. LANGUAGE=C
  28766. export LANGUAGE
  28767. # We cannot yet rely on "unset" to work, but we need these variables
  28768. # to be unset--not just set to an empty or harmless value--now, to
  28769. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  28770. # also avoids known problems related to "unset" and subshell syntax
  28771. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  28772. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  28773. do eval test \${$as_var+y} \
  28774. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  28775. done
  28776. # Ensure that fds 0, 1, and 2 are open.
  28777. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  28778. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  28779. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  28780. # Find who we are. Look in the path if we contain no directory separator.
  28781. as_myself=
  28782. case $0 in #((
  28783. *[\\/]* ) as_myself=$0 ;;
  28784. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  28785. for as_dir in $PATH
  28786. do
  28787. IFS=$as_save_IFS
  28788. case $as_dir in #(((
  28789. '') as_dir=./ ;;
  28790. */) ;;
  28791. *) as_dir=$as_dir/ ;;
  28792. esac
  28793. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  28794. done
  28795. IFS=$as_save_IFS
  28796. ;;
  28797. esac
  28798. # We did not find ourselves, most probably we were run as `sh COMMAND'
  28799. # in which case we are not to be found in the path.
  28800. if test "x$as_myself" = x; then
  28801. as_myself=$0
  28802. fi
  28803. if test ! -f "$as_myself"; then
  28804. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  28805. exit 1
  28806. fi
  28807. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  28808. # ----------------------------------------
  28809. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  28810. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  28811. # script with STATUS, using 1 if that was 0.
  28812. as_fn_error ()
  28813. {
  28814. as_status=$1; test $as_status -eq 0 && as_status=1
  28815. if test "$4"; then
  28816. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  28817. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  28818. fi
  28819. printf "%s\n" "$as_me: error: $2" >&2
  28820. as_fn_exit $as_status
  28821. } # as_fn_error
  28822. # as_fn_set_status STATUS
  28823. # -----------------------
  28824. # Set $? to STATUS, without forking.
  28825. as_fn_set_status ()
  28826. {
  28827. return $1
  28828. } # as_fn_set_status
  28829. # as_fn_exit STATUS
  28830. # -----------------
  28831. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  28832. as_fn_exit ()
  28833. {
  28834. set +e
  28835. as_fn_set_status $1
  28836. exit $1
  28837. } # as_fn_exit
  28838. # as_fn_unset VAR
  28839. # ---------------
  28840. # Portably unset VAR.
  28841. as_fn_unset ()
  28842. {
  28843. { eval $1=; unset $1;}
  28844. }
  28845. as_unset=as_fn_unset
  28846. # as_fn_append VAR VALUE
  28847. # ----------------------
  28848. # Append the text in VALUE to the end of the definition contained in VAR. Take
  28849. # advantage of any shell optimizations that allow amortized linear growth over
  28850. # repeated appends, instead of the typical quadratic growth present in naive
  28851. # implementations.
  28852. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  28853. then :
  28854. eval 'as_fn_append ()
  28855. {
  28856. eval $1+=\$2
  28857. }'
  28858. else $as_nop
  28859. as_fn_append ()
  28860. {
  28861. eval $1=\$$1\$2
  28862. }
  28863. fi # as_fn_append
  28864. # as_fn_arith ARG...
  28865. # ------------------
  28866. # Perform arithmetic evaluation on the ARGs, and store the result in the
  28867. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  28868. # must be portable across $(()) and expr.
  28869. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  28870. then :
  28871. eval 'as_fn_arith ()
  28872. {
  28873. as_val=$(( $* ))
  28874. }'
  28875. else $as_nop
  28876. as_fn_arith ()
  28877. {
  28878. as_val=`expr "$@" || test $? -eq 1`
  28879. }
  28880. fi # as_fn_arith
  28881. if expr a : '\(a\)' >/dev/null 2>&1 &&
  28882. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  28883. as_expr=expr
  28884. else
  28885. as_expr=false
  28886. fi
  28887. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  28888. as_basename=basename
  28889. else
  28890. as_basename=false
  28891. fi
  28892. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  28893. as_dirname=dirname
  28894. else
  28895. as_dirname=false
  28896. fi
  28897. as_me=`$as_basename -- "$0" ||
  28898. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  28899. X"$0" : 'X\(//\)$' \| \
  28900. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  28901. printf "%s\n" X/"$0" |
  28902. sed '/^.*\/\([^/][^/]*\)\/*$/{
  28903. s//\1/
  28904. q
  28905. }
  28906. /^X\/\(\/\/\)$/{
  28907. s//\1/
  28908. q
  28909. }
  28910. /^X\/\(\/\).*/{
  28911. s//\1/
  28912. q
  28913. }
  28914. s/.*/./; q'`
  28915. # Avoid depending upon Character Ranges.
  28916. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  28917. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  28918. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  28919. as_cr_digits='0123456789'
  28920. as_cr_alnum=$as_cr_Letters$as_cr_digits
  28921. # Determine whether it's possible to make 'echo' print without a newline.
  28922. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  28923. # for compatibility with existing Makefiles.
  28924. ECHO_C= ECHO_N= ECHO_T=
  28925. case `echo -n x` in #(((((
  28926. -n*)
  28927. case `echo 'xy\c'` in
  28928. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  28929. xy) ECHO_C='\c';;
  28930. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  28931. ECHO_T=' ';;
  28932. esac;;
  28933. *)
  28934. ECHO_N='-n';;
  28935. esac
  28936. # For backward compatibility with old third-party macros, we provide
  28937. # the shell variables $as_echo and $as_echo_n. New code should use
  28938. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  28939. as_echo='printf %s\n'
  28940. as_echo_n='printf %s'
  28941. rm -f conf$$ conf$$.exe conf$$.file
  28942. if test -d conf$$.dir; then
  28943. rm -f conf$$.dir/conf$$.file
  28944. else
  28945. rm -f conf$$.dir
  28946. mkdir conf$$.dir 2>/dev/null
  28947. fi
  28948. if (echo >conf$$.file) 2>/dev/null; then
  28949. if ln -s conf$$.file conf$$ 2>/dev/null; then
  28950. as_ln_s='ln -s'
  28951. # ... but there are two gotchas:
  28952. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  28953. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  28954. # In both cases, we have to default to `cp -pR'.
  28955. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  28956. as_ln_s='cp -pR'
  28957. elif ln conf$$.file conf$$ 2>/dev/null; then
  28958. as_ln_s=ln
  28959. else
  28960. as_ln_s='cp -pR'
  28961. fi
  28962. else
  28963. as_ln_s='cp -pR'
  28964. fi
  28965. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  28966. rmdir conf$$.dir 2>/dev/null
  28967. # as_fn_mkdir_p
  28968. # -------------
  28969. # Create "$as_dir" as a directory, including parents if necessary.
  28970. as_fn_mkdir_p ()
  28971. {
  28972. case $as_dir in #(
  28973. -*) as_dir=./$as_dir;;
  28974. esac
  28975. test -d "$as_dir" || eval $as_mkdir_p || {
  28976. as_dirs=
  28977. while :; do
  28978. case $as_dir in #(
  28979. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  28980. *) as_qdir=$as_dir;;
  28981. esac
  28982. as_dirs="'$as_qdir' $as_dirs"
  28983. as_dir=`$as_dirname -- "$as_dir" ||
  28984. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  28985. X"$as_dir" : 'X\(//\)[^/]' \| \
  28986. X"$as_dir" : 'X\(//\)$' \| \
  28987. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  28988. printf "%s\n" X"$as_dir" |
  28989. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  28990. s//\1/
  28991. q
  28992. }
  28993. /^X\(\/\/\)[^/].*/{
  28994. s//\1/
  28995. q
  28996. }
  28997. /^X\(\/\/\)$/{
  28998. s//\1/
  28999. q
  29000. }
  29001. /^X\(\/\).*/{
  29002. s//\1/
  29003. q
  29004. }
  29005. s/.*/./; q'`
  29006. test -d "$as_dir" && break
  29007. done
  29008. test -z "$as_dirs" || eval "mkdir $as_dirs"
  29009. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  29010. } # as_fn_mkdir_p
  29011. if mkdir -p . 2>/dev/null; then
  29012. as_mkdir_p='mkdir -p "$as_dir"'
  29013. else
  29014. test -d ./-p && rmdir ./-p
  29015. as_mkdir_p=false
  29016. fi
  29017. # as_fn_executable_p FILE
  29018. # -----------------------
  29019. # Test if FILE is an executable regular file.
  29020. as_fn_executable_p ()
  29021. {
  29022. test -f "$1" && test -x "$1"
  29023. } # as_fn_executable_p
  29024. as_test_x='test -x'
  29025. as_executable_p=as_fn_executable_p
  29026. # Sed expression to map a string onto a valid CPP name.
  29027. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  29028. # Sed expression to map a string onto a valid variable name.
  29029. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  29030. exec 6>&1
  29031. ## ----------------------------------- ##
  29032. ## Main body of $CONFIG_STATUS script. ##
  29033. ## ----------------------------------- ##
  29034. _ASEOF
  29035. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  29036. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  29037. # Save the log message, to keep $0 and so on meaningful, and to
  29038. # report actual input values of CONFIG_FILES etc. instead of their
  29039. # values after options handling.
  29040. ac_log="
  29041. This file was extended by c-ares $as_me 1.18.1, which was
  29042. generated by GNU Autoconf 2.71. Invocation command line was
  29043. CONFIG_FILES = $CONFIG_FILES
  29044. CONFIG_HEADERS = $CONFIG_HEADERS
  29045. CONFIG_LINKS = $CONFIG_LINKS
  29046. CONFIG_COMMANDS = $CONFIG_COMMANDS
  29047. $ $0 $@
  29048. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  29049. "
  29050. _ACEOF
  29051. case $ac_config_files in *"
  29052. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  29053. esac
  29054. case $ac_config_headers in *"
  29055. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  29056. esac
  29057. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  29058. # Files that config.status was made for.
  29059. config_files="$ac_config_files"
  29060. config_headers="$ac_config_headers"
  29061. config_commands="$ac_config_commands"
  29062. _ACEOF
  29063. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  29064. ac_cs_usage="\
  29065. \`$as_me' instantiates files and other configuration actions
  29066. from templates according to the current configuration. Unless the files
  29067. and actions are specified as TAGs, all are instantiated by default.
  29068. Usage: $0 [OPTION]... [TAG]...
  29069. -h, --help print this help, then exit
  29070. -V, --version print version number and configuration settings, then exit
  29071. --config print configuration, then exit
  29072. -q, --quiet, --silent
  29073. do not print progress messages
  29074. -d, --debug don't remove temporary files
  29075. --recheck update $as_me by reconfiguring in the same conditions
  29076. --file=FILE[:TEMPLATE]
  29077. instantiate the configuration file FILE
  29078. --header=FILE[:TEMPLATE]
  29079. instantiate the configuration header FILE
  29080. Configuration files:
  29081. $config_files
  29082. Configuration headers:
  29083. $config_headers
  29084. Configuration commands:
  29085. $config_commands
  29086. Report bugs to <c-ares mailing list: http://lists.haxx.se/listinfo/c-ares>."
  29087. _ACEOF
  29088. ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
  29089. ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
  29090. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  29091. ac_cs_config='$ac_cs_config_escaped'
  29092. ac_cs_version="\\
  29093. c-ares config.status 1.18.1
  29094. configured by $0, generated by GNU Autoconf 2.71,
  29095. with options \\"\$ac_cs_config\\"
  29096. Copyright (C) 2021 Free Software Foundation, Inc.
  29097. This config.status script is free software; the Free Software Foundation
  29098. gives unlimited permission to copy, distribute and modify it."
  29099. ac_pwd='$ac_pwd'
  29100. srcdir='$srcdir'
  29101. INSTALL='$INSTALL'
  29102. MKDIR_P='$MKDIR_P'
  29103. AWK='$AWK'
  29104. test -n "\$AWK" || AWK=awk
  29105. _ACEOF
  29106. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  29107. # The default lists apply if the user does not specify any file.
  29108. ac_need_defaults=:
  29109. while test $# != 0
  29110. do
  29111. case $1 in
  29112. --*=?*)
  29113. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  29114. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  29115. ac_shift=:
  29116. ;;
  29117. --*=)
  29118. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  29119. ac_optarg=
  29120. ac_shift=:
  29121. ;;
  29122. *)
  29123. ac_option=$1
  29124. ac_optarg=$2
  29125. ac_shift=shift
  29126. ;;
  29127. esac
  29128. case $ac_option in
  29129. # Handling of the options.
  29130. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  29131. ac_cs_recheck=: ;;
  29132. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  29133. printf "%s\n" "$ac_cs_version"; exit ;;
  29134. --config | --confi | --conf | --con | --co | --c )
  29135. printf "%s\n" "$ac_cs_config"; exit ;;
  29136. --debug | --debu | --deb | --de | --d | -d )
  29137. debug=: ;;
  29138. --file | --fil | --fi | --f )
  29139. $ac_shift
  29140. case $ac_optarg in
  29141. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  29142. '') as_fn_error $? "missing file argument" ;;
  29143. esac
  29144. as_fn_append CONFIG_FILES " '$ac_optarg'"
  29145. ac_need_defaults=false;;
  29146. --header | --heade | --head | --hea )
  29147. $ac_shift
  29148. case $ac_optarg in
  29149. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  29150. esac
  29151. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  29152. ac_need_defaults=false;;
  29153. --he | --h)
  29154. # Conflict between --help and --header
  29155. as_fn_error $? "ambiguous option: \`$1'
  29156. Try \`$0 --help' for more information.";;
  29157. --help | --hel | -h )
  29158. printf "%s\n" "$ac_cs_usage"; exit ;;
  29159. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  29160. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  29161. ac_cs_silent=: ;;
  29162. # This is an error.
  29163. -*) as_fn_error $? "unrecognized option: \`$1'
  29164. Try \`$0 --help' for more information." ;;
  29165. *) as_fn_append ac_config_targets " $1"
  29166. ac_need_defaults=false ;;
  29167. esac
  29168. shift
  29169. done
  29170. ac_configure_extra_args=
  29171. if $ac_cs_silent; then
  29172. exec 6>/dev/null
  29173. ac_configure_extra_args="$ac_configure_extra_args --silent"
  29174. fi
  29175. _ACEOF
  29176. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  29177. if \$ac_cs_recheck; then
  29178. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  29179. shift
  29180. \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
  29181. CONFIG_SHELL='$SHELL'
  29182. export CONFIG_SHELL
  29183. exec "\$@"
  29184. fi
  29185. _ACEOF
  29186. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  29187. exec 5>>config.log
  29188. {
  29189. echo
  29190. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  29191. ## Running $as_me. ##
  29192. _ASBOX
  29193. printf "%s\n" "$ac_log"
  29194. } >&5
  29195. _ACEOF
  29196. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  29197. #
  29198. # INIT-COMMANDS
  29199. #
  29200. AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
  29201. # The HP-UX ksh and POSIX shell print the target directory to stdout
  29202. # if CDPATH is set.
  29203. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  29204. sed_quote_subst='$sed_quote_subst'
  29205. double_quote_subst='$double_quote_subst'
  29206. delay_variable_subst='$delay_variable_subst'
  29207. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  29208. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  29209. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  29210. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  29211. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  29212. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  29213. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  29214. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  29215. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  29216. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  29217. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  29218. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  29219. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  29220. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  29221. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  29222. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  29223. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  29224. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  29225. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  29226. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  29227. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  29228. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  29229. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  29230. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  29231. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  29232. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  29233. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  29234. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  29235. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  29236. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  29237. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  29238. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  29239. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  29240. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  29241. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  29242. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  29243. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  29244. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  29245. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  29246. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  29247. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  29248. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  29249. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  29250. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  29251. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  29252. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  29253. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  29254. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  29255. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  29256. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  29257. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  29258. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  29259. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  29260. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  29261. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  29262. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  29263. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  29264. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  29265. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  29266. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
  29267. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  29268. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  29269. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  29270. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  29271. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  29272. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  29273. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  29274. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  29275. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  29276. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  29277. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  29278. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  29279. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  29280. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  29281. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  29282. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  29283. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  29284. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  29285. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  29286. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  29287. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  29288. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  29289. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  29290. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  29291. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  29292. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  29293. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  29294. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  29295. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  29296. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  29297. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  29298. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  29299. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  29300. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  29301. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  29302. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  29303. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  29304. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  29305. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  29306. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  29307. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  29308. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  29309. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  29310. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  29311. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  29312. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  29313. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  29314. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  29315. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  29316. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  29317. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  29318. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  29319. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  29320. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  29321. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  29322. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  29323. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  29324. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  29325. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  29326. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  29327. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  29328. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  29329. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  29330. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  29331. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  29332. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  29333. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  29334. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  29335. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  29336. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  29337. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  29338. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  29339. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  29340. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  29341. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  29342. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  29343. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  29344. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  29345. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  29346. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  29347. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  29348. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  29349. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  29350. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  29351. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  29352. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  29353. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  29354. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  29355. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  29356. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  29357. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  29358. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  29359. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  29360. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  29361. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  29362. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  29363. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  29364. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  29365. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  29366. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  29367. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  29368. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  29369. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  29370. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  29371. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  29372. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  29373. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  29374. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  29375. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  29376. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  29377. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  29378. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  29379. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  29380. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  29381. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  29382. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  29383. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  29384. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  29385. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  29386. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  29387. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  29388. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  29389. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  29390. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  29391. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  29392. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  29393. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  29394. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  29395. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  29396. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  29397. LTCC='$LTCC'
  29398. LTCFLAGS='$LTCFLAGS'
  29399. compiler='$compiler_DEFAULT'
  29400. # A function that is used when there is no print builtin or printf.
  29401. func_fallback_echo ()
  29402. {
  29403. eval 'cat <<_LTECHO_EOF
  29404. \$1
  29405. _LTECHO_EOF'
  29406. }
  29407. # Quote evaled strings.
  29408. for var in AS \
  29409. DLLTOOL \
  29410. OBJDUMP \
  29411. SHELL \
  29412. ECHO \
  29413. PATH_SEPARATOR \
  29414. SED \
  29415. GREP \
  29416. EGREP \
  29417. FGREP \
  29418. LD \
  29419. NM \
  29420. LN_S \
  29421. lt_SP2NL \
  29422. lt_NL2SP \
  29423. reload_flag \
  29424. deplibs_check_method \
  29425. file_magic_cmd \
  29426. file_magic_glob \
  29427. want_nocaseglob \
  29428. sharedlib_from_linklib_cmd \
  29429. AR \
  29430. AR_FLAGS \
  29431. archiver_list_spec \
  29432. STRIP \
  29433. RANLIB \
  29434. CC \
  29435. CFLAGS \
  29436. compiler \
  29437. lt_cv_sys_global_symbol_pipe \
  29438. lt_cv_sys_global_symbol_to_cdecl \
  29439. lt_cv_sys_global_symbol_to_import \
  29440. lt_cv_sys_global_symbol_to_c_name_address \
  29441. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  29442. lt_cv_nm_interface \
  29443. nm_file_list_spec \
  29444. lt_cv_truncate_bin \
  29445. lt_prog_compiler_no_builtin_flag \
  29446. lt_prog_compiler_pic \
  29447. lt_prog_compiler_wl \
  29448. lt_prog_compiler_static \
  29449. lt_cv_prog_compiler_c_o \
  29450. need_locks \
  29451. MANIFEST_TOOL \
  29452. DSYMUTIL \
  29453. NMEDIT \
  29454. LIPO \
  29455. OTOOL \
  29456. OTOOL64 \
  29457. shrext_cmds \
  29458. export_dynamic_flag_spec \
  29459. whole_archive_flag_spec \
  29460. compiler_needs_object \
  29461. with_gnu_ld \
  29462. allow_undefined_flag \
  29463. no_undefined_flag \
  29464. hardcode_libdir_flag_spec \
  29465. hardcode_libdir_separator \
  29466. exclude_expsyms \
  29467. include_expsyms \
  29468. file_list_spec \
  29469. variables_saved_for_relink \
  29470. libname_spec \
  29471. library_names_spec \
  29472. soname_spec \
  29473. install_override_mode \
  29474. finish_eval \
  29475. old_striplib \
  29476. striplib \
  29477. compiler_lib_search_dirs \
  29478. predep_objects \
  29479. postdep_objects \
  29480. predeps \
  29481. postdeps \
  29482. compiler_lib_search_path \
  29483. LD_CXX \
  29484. reload_flag_CXX \
  29485. compiler_CXX \
  29486. lt_prog_compiler_no_builtin_flag_CXX \
  29487. lt_prog_compiler_pic_CXX \
  29488. lt_prog_compiler_wl_CXX \
  29489. lt_prog_compiler_static_CXX \
  29490. lt_cv_prog_compiler_c_o_CXX \
  29491. export_dynamic_flag_spec_CXX \
  29492. whole_archive_flag_spec_CXX \
  29493. compiler_needs_object_CXX \
  29494. with_gnu_ld_CXX \
  29495. allow_undefined_flag_CXX \
  29496. no_undefined_flag_CXX \
  29497. hardcode_libdir_flag_spec_CXX \
  29498. hardcode_libdir_separator_CXX \
  29499. exclude_expsyms_CXX \
  29500. include_expsyms_CXX \
  29501. file_list_spec_CXX \
  29502. compiler_lib_search_dirs_CXX \
  29503. predep_objects_CXX \
  29504. postdep_objects_CXX \
  29505. predeps_CXX \
  29506. postdeps_CXX \
  29507. compiler_lib_search_path_CXX; do
  29508. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  29509. *[\\\\\\\`\\"\\\$]*)
  29510. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  29511. ;;
  29512. *)
  29513. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  29514. ;;
  29515. esac
  29516. done
  29517. # Double-quote double-evaled strings.
  29518. for var in reload_cmds \
  29519. old_postinstall_cmds \
  29520. old_postuninstall_cmds \
  29521. old_archive_cmds \
  29522. extract_expsyms_cmds \
  29523. old_archive_from_new_cmds \
  29524. old_archive_from_expsyms_cmds \
  29525. archive_cmds \
  29526. archive_expsym_cmds \
  29527. module_cmds \
  29528. module_expsym_cmds \
  29529. export_symbols_cmds \
  29530. prelink_cmds \
  29531. postlink_cmds \
  29532. postinstall_cmds \
  29533. postuninstall_cmds \
  29534. finish_cmds \
  29535. sys_lib_search_path_spec \
  29536. configure_time_dlsearch_path \
  29537. configure_time_lt_sys_library_path \
  29538. reload_cmds_CXX \
  29539. old_archive_cmds_CXX \
  29540. old_archive_from_new_cmds_CXX \
  29541. old_archive_from_expsyms_cmds_CXX \
  29542. archive_cmds_CXX \
  29543. archive_expsym_cmds_CXX \
  29544. module_cmds_CXX \
  29545. module_expsym_cmds_CXX \
  29546. export_symbols_cmds_CXX \
  29547. prelink_cmds_CXX \
  29548. postlink_cmds_CXX; do
  29549. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  29550. *[\\\\\\\`\\"\\\$]*)
  29551. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  29552. ;;
  29553. *)
  29554. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  29555. ;;
  29556. esac
  29557. done
  29558. ac_aux_dir='$ac_aux_dir'
  29559. # See if we are running on zsh, and set the options that allow our
  29560. # commands through without removal of \ escapes INIT.
  29561. if test -n "\${ZSH_VERSION+set}"; then
  29562. setopt NO_GLOB_SUBST
  29563. fi
  29564. PACKAGE='$PACKAGE'
  29565. VERSION='$VERSION'
  29566. RM='$RM'
  29567. ofile='$ofile'
  29568. _ACEOF
  29569. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  29570. # Handling of arguments.
  29571. for ac_config_target in $ac_config_targets
  29572. do
  29573. case $ac_config_target in
  29574. "src/lib/ares_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/lib/ares_config.h" ;;
  29575. "include/ares_build.h") CONFIG_HEADERS="$CONFIG_HEADERS include/ares_build.h" ;;
  29576. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  29577. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  29578. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  29579. "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
  29580. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  29581. "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
  29582. "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
  29583. "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
  29584. "libcares.pc") CONFIG_FILES="$CONFIG_FILES libcares.pc" ;;
  29585. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  29586. esac
  29587. done
  29588. # If the user did not use the arguments to specify the items to instantiate,
  29589. # then the envvar interface is used. Set only those that are not.
  29590. # We use the long form for the default assignment because of an extremely
  29591. # bizarre bug on SunOS 4.1.3.
  29592. if $ac_need_defaults; then
  29593. test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
  29594. test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
  29595. test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
  29596. fi
  29597. # Have a temporary directory for convenience. Make it in the build tree
  29598. # simply because there is no reason against having it here, and in addition,
  29599. # creating and moving files from /tmp can sometimes cause problems.
  29600. # Hook for its removal unless debugging.
  29601. # Note that there is a small window in which the directory will not be cleaned:
  29602. # after its creation but before its name has been assigned to `$tmp'.
  29603. $debug ||
  29604. {
  29605. tmp= ac_tmp=
  29606. trap 'exit_status=$?
  29607. : "${ac_tmp:=$tmp}"
  29608. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  29609. ' 0
  29610. trap 'as_fn_exit 1' 1 2 13 15
  29611. }
  29612. # Create a (secure) tmp directory for tmp files.
  29613. {
  29614. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  29615. test -d "$tmp"
  29616. } ||
  29617. {
  29618. tmp=./conf$$-$RANDOM
  29619. (umask 077 && mkdir "$tmp")
  29620. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  29621. ac_tmp=$tmp
  29622. # Set up the scripts for CONFIG_FILES section.
  29623. # No need to generate them if there are no CONFIG_FILES.
  29624. # This happens for instance with `./config.status config.h'.
  29625. if test -n "$CONFIG_FILES"; then
  29626. ac_cr=`echo X | tr X '\015'`
  29627. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  29628. # But we know of no other shell where ac_cr would be empty at this
  29629. # point, so we can use a bashism as a fallback.
  29630. if test "x$ac_cr" = x; then
  29631. eval ac_cr=\$\'\\r\'
  29632. fi
  29633. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  29634. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  29635. ac_cs_awk_cr='\\r'
  29636. else
  29637. ac_cs_awk_cr=$ac_cr
  29638. fi
  29639. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  29640. _ACEOF
  29641. {
  29642. echo "cat >conf$$subs.awk <<_ACEOF" &&
  29643. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  29644. echo "_ACEOF"
  29645. } >conf$$subs.sh ||
  29646. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  29647. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  29648. ac_delim='%!_!# '
  29649. for ac_last_try in false false false false false :; do
  29650. . ./conf$$subs.sh ||
  29651. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  29652. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  29653. if test $ac_delim_n = $ac_delim_num; then
  29654. break
  29655. elif $ac_last_try; then
  29656. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  29657. else
  29658. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  29659. fi
  29660. done
  29661. rm -f conf$$subs.sh
  29662. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  29663. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  29664. _ACEOF
  29665. sed -n '
  29666. h
  29667. s/^/S["/; s/!.*/"]=/
  29668. p
  29669. g
  29670. s/^[^!]*!//
  29671. :repl
  29672. t repl
  29673. s/'"$ac_delim"'$//
  29674. t delim
  29675. :nl
  29676. h
  29677. s/\(.\{148\}\)..*/\1/
  29678. t more1
  29679. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  29680. p
  29681. n
  29682. b repl
  29683. :more1
  29684. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  29685. p
  29686. g
  29687. s/.\{148\}//
  29688. t nl
  29689. :delim
  29690. h
  29691. s/\(.\{148\}\)..*/\1/
  29692. t more2
  29693. s/["\\]/\\&/g; s/^/"/; s/$/"/
  29694. p
  29695. b
  29696. :more2
  29697. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  29698. p
  29699. g
  29700. s/.\{148\}//
  29701. t delim
  29702. ' <conf$$subs.awk | sed '
  29703. /^[^""]/{
  29704. N
  29705. s/\n//
  29706. }
  29707. ' >>$CONFIG_STATUS || ac_write_fail=1
  29708. rm -f conf$$subs.awk
  29709. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  29710. _ACAWK
  29711. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  29712. for (key in S) S_is_set[key] = 1
  29713. FS = ""
  29714. }
  29715. {
  29716. line = $ 0
  29717. nfields = split(line, field, "@")
  29718. substed = 0
  29719. len = length(field[1])
  29720. for (i = 2; i < nfields; i++) {
  29721. key = field[i]
  29722. keylen = length(key)
  29723. if (S_is_set[key]) {
  29724. value = S[key]
  29725. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  29726. len += length(value) + length(field[++i])
  29727. substed = 1
  29728. } else
  29729. len += 1 + keylen
  29730. }
  29731. print line
  29732. }
  29733. _ACAWK
  29734. _ACEOF
  29735. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  29736. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  29737. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  29738. else
  29739. cat
  29740. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  29741. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  29742. _ACEOF
  29743. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  29744. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  29745. # trailing colons and then remove the whole line if VPATH becomes empty
  29746. # (actually we leave an empty line to preserve line numbers).
  29747. if test "x$srcdir" = x.; then
  29748. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  29749. h
  29750. s///
  29751. s/^/:/
  29752. s/[ ]*$/:/
  29753. s/:\$(srcdir):/:/g
  29754. s/:\${srcdir}:/:/g
  29755. s/:@srcdir@:/:/g
  29756. s/^:*//
  29757. s/:*$//
  29758. x
  29759. s/\(=[ ]*\).*/\1/
  29760. G
  29761. s/\n//
  29762. s/^[^=]*=[ ]*$//
  29763. }'
  29764. fi
  29765. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  29766. fi # test -n "$CONFIG_FILES"
  29767. # Set up the scripts for CONFIG_HEADERS section.
  29768. # No need to generate them if there are no CONFIG_HEADERS.
  29769. # This happens for instance with `./config.status Makefile'.
  29770. if test -n "$CONFIG_HEADERS"; then
  29771. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  29772. BEGIN {
  29773. _ACEOF
  29774. # Transform confdefs.h into an awk script `defines.awk', embedded as
  29775. # here-document in config.status, that substitutes the proper values into
  29776. # config.h.in to produce config.h.
  29777. # Create a delimiter string that does not exist in confdefs.h, to ease
  29778. # handling of long lines.
  29779. ac_delim='%!_!# '
  29780. for ac_last_try in false false :; do
  29781. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  29782. if test -z "$ac_tt"; then
  29783. break
  29784. elif $ac_last_try; then
  29785. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  29786. else
  29787. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  29788. fi
  29789. done
  29790. # For the awk script, D is an array of macro values keyed by name,
  29791. # likewise P contains macro parameters if any. Preserve backslash
  29792. # newline sequences.
  29793. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  29794. sed -n '
  29795. s/.\{148\}/&'"$ac_delim"'/g
  29796. t rset
  29797. :rset
  29798. s/^[ ]*#[ ]*define[ ][ ]*/ /
  29799. t def
  29800. d
  29801. :def
  29802. s/\\$//
  29803. t bsnl
  29804. s/["\\]/\\&/g
  29805. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  29806. D["\1"]=" \3"/p
  29807. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  29808. d
  29809. :bsnl
  29810. s/["\\]/\\&/g
  29811. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  29812. D["\1"]=" \3\\\\\\n"\\/p
  29813. t cont
  29814. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  29815. t cont
  29816. d
  29817. :cont
  29818. n
  29819. s/.\{148\}/&'"$ac_delim"'/g
  29820. t clear
  29821. :clear
  29822. s/\\$//
  29823. t bsnlc
  29824. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  29825. d
  29826. :bsnlc
  29827. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  29828. b cont
  29829. ' <confdefs.h | sed '
  29830. s/'"$ac_delim"'/"\\\
  29831. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  29832. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  29833. for (key in D) D_is_set[key] = 1
  29834. FS = ""
  29835. }
  29836. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  29837. line = \$ 0
  29838. split(line, arg, " ")
  29839. if (arg[1] == "#") {
  29840. defundef = arg[2]
  29841. mac1 = arg[3]
  29842. } else {
  29843. defundef = substr(arg[1], 2)
  29844. mac1 = arg[2]
  29845. }
  29846. split(mac1, mac2, "(") #)
  29847. macro = mac2[1]
  29848. prefix = substr(line, 1, index(line, defundef) - 1)
  29849. if (D_is_set[macro]) {
  29850. # Preserve the white space surrounding the "#".
  29851. print prefix "define", macro P[macro] D[macro]
  29852. next
  29853. } else {
  29854. # Replace #undef with comments. This is necessary, for example,
  29855. # in the case of _POSIX_SOURCE, which is predefined and required
  29856. # on some systems where configure will not decide to define it.
  29857. if (defundef == "undef") {
  29858. print "/*", prefix defundef, macro, "*/"
  29859. next
  29860. }
  29861. }
  29862. }
  29863. { print }
  29864. _ACAWK
  29865. _ACEOF
  29866. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  29867. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  29868. fi # test -n "$CONFIG_HEADERS"
  29869. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  29870. shift
  29871. for ac_tag
  29872. do
  29873. case $ac_tag in
  29874. :[FHLC]) ac_mode=$ac_tag; continue;;
  29875. esac
  29876. case $ac_mode$ac_tag in
  29877. :[FHL]*:*);;
  29878. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  29879. :[FH]-) ac_tag=-:-;;
  29880. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  29881. esac
  29882. ac_save_IFS=$IFS
  29883. IFS=:
  29884. set x $ac_tag
  29885. IFS=$ac_save_IFS
  29886. shift
  29887. ac_file=$1
  29888. shift
  29889. case $ac_mode in
  29890. :L) ac_source=$1;;
  29891. :[FH])
  29892. ac_file_inputs=
  29893. for ac_f
  29894. do
  29895. case $ac_f in
  29896. -) ac_f="$ac_tmp/stdin";;
  29897. *) # Look for the file first in the build tree, then in the source tree
  29898. # (if the path is not absolute). The absolute path cannot be DOS-style,
  29899. # because $ac_f cannot contain `:'.
  29900. test -f "$ac_f" ||
  29901. case $ac_f in
  29902. [\\/$]*) false;;
  29903. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  29904. esac ||
  29905. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  29906. esac
  29907. case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  29908. as_fn_append ac_file_inputs " '$ac_f'"
  29909. done
  29910. # Let's still pretend it is `configure' which instantiates (i.e., don't
  29911. # use $as_me), people would be surprised to read:
  29912. # /* config.h. Generated by config.status. */
  29913. configure_input='Generated from '`
  29914. printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  29915. `' by configure.'
  29916. if test x"$ac_file" != x-; then
  29917. configure_input="$ac_file. $configure_input"
  29918. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  29919. printf "%s\n" "$as_me: creating $ac_file" >&6;}
  29920. fi
  29921. # Neutralize special characters interpreted by sed in replacement strings.
  29922. case $configure_input in #(
  29923. *\&* | *\|* | *\\* )
  29924. ac_sed_conf_input=`printf "%s\n" "$configure_input" |
  29925. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  29926. *) ac_sed_conf_input=$configure_input;;
  29927. esac
  29928. case $ac_tag in
  29929. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  29930. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  29931. esac
  29932. ;;
  29933. esac
  29934. ac_dir=`$as_dirname -- "$ac_file" ||
  29935. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  29936. X"$ac_file" : 'X\(//\)[^/]' \| \
  29937. X"$ac_file" : 'X\(//\)$' \| \
  29938. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  29939. printf "%s\n" X"$ac_file" |
  29940. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  29941. s//\1/
  29942. q
  29943. }
  29944. /^X\(\/\/\)[^/].*/{
  29945. s//\1/
  29946. q
  29947. }
  29948. /^X\(\/\/\)$/{
  29949. s//\1/
  29950. q
  29951. }
  29952. /^X\(\/\).*/{
  29953. s//\1/
  29954. q
  29955. }
  29956. s/.*/./; q'`
  29957. as_dir="$ac_dir"; as_fn_mkdir_p
  29958. ac_builddir=.
  29959. case "$ac_dir" in
  29960. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  29961. *)
  29962. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  29963. # A ".." for each directory in $ac_dir_suffix.
  29964. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  29965. case $ac_top_builddir_sub in
  29966. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  29967. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  29968. esac ;;
  29969. esac
  29970. ac_abs_top_builddir=$ac_pwd
  29971. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  29972. # for backward compatibility:
  29973. ac_top_builddir=$ac_top_build_prefix
  29974. case $srcdir in
  29975. .) # We are building in place.
  29976. ac_srcdir=.
  29977. ac_top_srcdir=$ac_top_builddir_sub
  29978. ac_abs_top_srcdir=$ac_pwd ;;
  29979. [\\/]* | ?:[\\/]* ) # Absolute name.
  29980. ac_srcdir=$srcdir$ac_dir_suffix;
  29981. ac_top_srcdir=$srcdir
  29982. ac_abs_top_srcdir=$srcdir ;;
  29983. *) # Relative name.
  29984. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  29985. ac_top_srcdir=$ac_top_build_prefix$srcdir
  29986. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  29987. esac
  29988. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  29989. case $ac_mode in
  29990. :F)
  29991. #
  29992. # CONFIG_FILE
  29993. #
  29994. case $INSTALL in
  29995. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  29996. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  29997. esac
  29998. ac_MKDIR_P=$MKDIR_P
  29999. case $MKDIR_P in
  30000. [\\/$]* | ?:[\\/]* ) ;;
  30001. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  30002. esac
  30003. _ACEOF
  30004. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  30005. # If the template does not know about datarootdir, expand it.
  30006. # FIXME: This hack should be removed a few years after 2.60.
  30007. ac_datarootdir_hack=; ac_datarootdir_seen=
  30008. ac_sed_dataroot='
  30009. /datarootdir/ {
  30010. p
  30011. q
  30012. }
  30013. /@datadir@/p
  30014. /@docdir@/p
  30015. /@infodir@/p
  30016. /@localedir@/p
  30017. /@mandir@/p'
  30018. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  30019. *datarootdir*) ac_datarootdir_seen=yes;;
  30020. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  30021. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  30022. printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  30023. _ACEOF
  30024. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  30025. ac_datarootdir_hack='
  30026. s&@datadir@&$datadir&g
  30027. s&@docdir@&$docdir&g
  30028. s&@infodir@&$infodir&g
  30029. s&@localedir@&$localedir&g
  30030. s&@mandir@&$mandir&g
  30031. s&\\\${datarootdir}&$datarootdir&g' ;;
  30032. esac
  30033. _ACEOF
  30034. # Neutralize VPATH when `$srcdir' = `.'.
  30035. # Shell code in configure.ac might set extrasub.
  30036. # FIXME: do we really want to maintain this feature?
  30037. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  30038. ac_sed_extra="$ac_vpsub
  30039. $extrasub
  30040. _ACEOF
  30041. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  30042. :t
  30043. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  30044. s|@configure_input@|$ac_sed_conf_input|;t t
  30045. s&@top_builddir@&$ac_top_builddir_sub&;t t
  30046. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  30047. s&@srcdir@&$ac_srcdir&;t t
  30048. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  30049. s&@top_srcdir@&$ac_top_srcdir&;t t
  30050. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  30051. s&@builddir@&$ac_builddir&;t t
  30052. s&@abs_builddir@&$ac_abs_builddir&;t t
  30053. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  30054. s&@INSTALL@&$ac_INSTALL&;t t
  30055. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  30056. $ac_datarootdir_hack
  30057. "
  30058. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  30059. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  30060. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  30061. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  30062. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  30063. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  30064. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  30065. which seems to be undefined. Please make sure it is defined" >&5
  30066. printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  30067. which seems to be undefined. Please make sure it is defined" >&2;}
  30068. rm -f "$ac_tmp/stdin"
  30069. case $ac_file in
  30070. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  30071. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  30072. esac \
  30073. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  30074. ;;
  30075. :H)
  30076. #
  30077. # CONFIG_HEADER
  30078. #
  30079. if test x"$ac_file" != x-; then
  30080. {
  30081. printf "%s\n" "/* $configure_input */" >&1 \
  30082. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  30083. } >"$ac_tmp/config.h" \
  30084. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  30085. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  30086. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  30087. printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
  30088. else
  30089. rm -f "$ac_file"
  30090. mv "$ac_tmp/config.h" "$ac_file" \
  30091. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  30092. fi
  30093. else
  30094. printf "%s\n" "/* $configure_input */" >&1 \
  30095. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  30096. || as_fn_error $? "could not create -" "$LINENO" 5
  30097. fi
  30098. # Compute "$ac_file"'s index in $config_headers.
  30099. _am_arg="$ac_file"
  30100. _am_stamp_count=1
  30101. for _am_header in $config_headers :; do
  30102. case $_am_header in
  30103. $_am_arg | $_am_arg:* )
  30104. break ;;
  30105. * )
  30106. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  30107. esac
  30108. done
  30109. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  30110. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  30111. X"$_am_arg" : 'X\(//\)[^/]' \| \
  30112. X"$_am_arg" : 'X\(//\)$' \| \
  30113. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  30114. printf "%s\n" X"$_am_arg" |
  30115. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  30116. s//\1/
  30117. q
  30118. }
  30119. /^X\(\/\/\)[^/].*/{
  30120. s//\1/
  30121. q
  30122. }
  30123. /^X\(\/\/\)$/{
  30124. s//\1/
  30125. q
  30126. }
  30127. /^X\(\/\).*/{
  30128. s//\1/
  30129. q
  30130. }
  30131. s/.*/./; q'`/stamp-h$_am_stamp_count
  30132. ;;
  30133. :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  30134. printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
  30135. ;;
  30136. esac
  30137. case $ac_file$ac_mode in
  30138. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  30139. # Older Autoconf quotes --file arguments for eval, but not when files
  30140. # are listed without --file. Let's play safe and only enable the eval
  30141. # if we detect the quoting.
  30142. # TODO: see whether this extra hack can be removed once we start
  30143. # requiring Autoconf 2.70 or later.
  30144. case $CONFIG_FILES in #(
  30145. *\'*) :
  30146. eval set x "$CONFIG_FILES" ;; #(
  30147. *) :
  30148. set x $CONFIG_FILES ;; #(
  30149. *) :
  30150. ;;
  30151. esac
  30152. shift
  30153. # Used to flag and report bootstrapping failures.
  30154. am_rc=0
  30155. for am_mf
  30156. do
  30157. # Strip MF so we end up with the name of the file.
  30158. am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
  30159. # Check whether this is an Automake generated Makefile which includes
  30160. # dependency-tracking related rules and includes.
  30161. # Grep'ing the whole file directly is not great: AIX grep has a line
  30162. # limit of 2048, but all sed's we know have understand at least 4000.
  30163. sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
  30164. || continue
  30165. am_dirpart=`$as_dirname -- "$am_mf" ||
  30166. $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  30167. X"$am_mf" : 'X\(//\)[^/]' \| \
  30168. X"$am_mf" : 'X\(//\)$' \| \
  30169. X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
  30170. printf "%s\n" X"$am_mf" |
  30171. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  30172. s//\1/
  30173. q
  30174. }
  30175. /^X\(\/\/\)[^/].*/{
  30176. s//\1/
  30177. q
  30178. }
  30179. /^X\(\/\/\)$/{
  30180. s//\1/
  30181. q
  30182. }
  30183. /^X\(\/\).*/{
  30184. s//\1/
  30185. q
  30186. }
  30187. s/.*/./; q'`
  30188. am_filepart=`$as_basename -- "$am_mf" ||
  30189. $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
  30190. X"$am_mf" : 'X\(//\)$' \| \
  30191. X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
  30192. printf "%s\n" X/"$am_mf" |
  30193. sed '/^.*\/\([^/][^/]*\)\/*$/{
  30194. s//\1/
  30195. q
  30196. }
  30197. /^X\/\(\/\/\)$/{
  30198. s//\1/
  30199. q
  30200. }
  30201. /^X\/\(\/\).*/{
  30202. s//\1/
  30203. q
  30204. }
  30205. s/.*/./; q'`
  30206. { echo "$as_me:$LINENO: cd "$am_dirpart" \
  30207. && sed -e '/# am--include-marker/d' "$am_filepart" \
  30208. | $MAKE -f - am--depfiles" >&5
  30209. (cd "$am_dirpart" \
  30210. && sed -e '/# am--include-marker/d' "$am_filepart" \
  30211. | $MAKE -f - am--depfiles) >&5 2>&5
  30212. ac_status=$?
  30213. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30214. (exit $ac_status); } || am_rc=$?
  30215. done
  30216. if test $am_rc -ne 0; then
  30217. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  30218. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  30219. as_fn_error $? "Something went wrong bootstrapping makefile fragments
  30220. for automatic dependency tracking. If GNU make was not used, consider
  30221. re-running the configure script with MAKE=\"gmake\" (or whatever is
  30222. necessary). You can also try re-running configure with the
  30223. '--disable-dependency-tracking' option to at least be able to build
  30224. the package (albeit without support for automatic dependency tracking).
  30225. See \`config.log' for more details" "$LINENO" 5; }
  30226. fi
  30227. { am_dirpart=; unset am_dirpart;}
  30228. { am_filepart=; unset am_filepart;}
  30229. { am_mf=; unset am_mf;}
  30230. { am_rc=; unset am_rc;}
  30231. rm -f conftest-deps.mk
  30232. }
  30233. ;;
  30234. "libtool":C)
  30235. # See if we are running on zsh, and set the options that allow our
  30236. # commands through without removal of \ escapes.
  30237. if test -n "${ZSH_VERSION+set}"; then
  30238. setopt NO_GLOB_SUBST
  30239. fi
  30240. cfgfile=${ofile}T
  30241. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  30242. $RM "$cfgfile"
  30243. cat <<_LT_EOF >> "$cfgfile"
  30244. #! $SHELL
  30245. # Generated automatically by $as_me ($PACKAGE) $VERSION
  30246. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  30247. # Provide generalized library-building support services.
  30248. # Written by Gordon Matzigkeit, 1996
  30249. # Copyright (C) 2014 Free Software Foundation, Inc.
  30250. # This is free software; see the source for copying conditions. There is NO
  30251. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  30252. # GNU Libtool is free software; you can redistribute it and/or modify
  30253. # it under the terms of the GNU General Public License as published by
  30254. # the Free Software Foundation; either version 2 of of the License, or
  30255. # (at your option) any later version.
  30256. #
  30257. # As a special exception to the GNU General Public License, if you
  30258. # distribute this file as part of a program or library that is built
  30259. # using GNU Libtool, you may include this file under the same
  30260. # distribution terms that you use for the rest of that program.
  30261. #
  30262. # GNU Libtool is distributed in the hope that it will be useful, but
  30263. # WITHOUT ANY WARRANTY; without even the implied warranty of
  30264. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  30265. # GNU General Public License for more details.
  30266. #
  30267. # You should have received a copy of the GNU General Public License
  30268. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  30269. # The names of the tagged configurations supported by this script.
  30270. available_tags='CXX '
  30271. # Configured defaults for sys_lib_dlsearch_path munging.
  30272. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  30273. # ### BEGIN LIBTOOL CONFIG
  30274. # Which release of libtool.m4 was used?
  30275. macro_version=$macro_version
  30276. macro_revision=$macro_revision
  30277. # Assembler program.
  30278. AS=$lt_AS
  30279. # DLL creation program.
  30280. DLLTOOL=$lt_DLLTOOL
  30281. # Object dumper program.
  30282. OBJDUMP=$lt_OBJDUMP
  30283. # Whether or not to build shared libraries.
  30284. build_libtool_libs=$enable_shared
  30285. # Whether or not to build static libraries.
  30286. build_old_libs=$enable_static
  30287. # What type of objects to build.
  30288. pic_mode=$pic_mode
  30289. # Whether or not to optimize for fast installation.
  30290. fast_install=$enable_fast_install
  30291. # Shared archive member basename,for filename based shared library versioning on AIX.
  30292. shared_archive_member_spec=$shared_archive_member_spec
  30293. # Shell to use when invoking shell scripts.
  30294. SHELL=$lt_SHELL
  30295. # An echo program that protects backslashes.
  30296. ECHO=$lt_ECHO
  30297. # The PATH separator for the build system.
  30298. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  30299. # The host system.
  30300. host_alias=$host_alias
  30301. host=$host
  30302. host_os=$host_os
  30303. # The build system.
  30304. build_alias=$build_alias
  30305. build=$build
  30306. build_os=$build_os
  30307. # A sed program that does not truncate output.
  30308. SED=$lt_SED
  30309. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  30310. Xsed="\$SED -e 1s/^X//"
  30311. # A grep program that handles long lines.
  30312. GREP=$lt_GREP
  30313. # An ERE matcher.
  30314. EGREP=$lt_EGREP
  30315. # A literal string matcher.
  30316. FGREP=$lt_FGREP
  30317. # A BSD- or MS-compatible name lister.
  30318. NM=$lt_NM
  30319. # Whether we need soft or hard links.
  30320. LN_S=$lt_LN_S
  30321. # What is the maximum length of a command?
  30322. max_cmd_len=$max_cmd_len
  30323. # Object file suffix (normally "o").
  30324. objext=$ac_objext
  30325. # Executable file suffix (normally "").
  30326. exeext=$exeext
  30327. # whether the shell understands "unset".
  30328. lt_unset=$lt_unset
  30329. # turn spaces into newlines.
  30330. SP2NL=$lt_lt_SP2NL
  30331. # turn newlines into spaces.
  30332. NL2SP=$lt_lt_NL2SP
  30333. # convert \$build file names to \$host format.
  30334. to_host_file_cmd=$lt_cv_to_host_file_cmd
  30335. # convert \$build files to toolchain format.
  30336. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  30337. # Method to check whether dependent libraries are shared objects.
  30338. deplibs_check_method=$lt_deplibs_check_method
  30339. # Command to use when deplibs_check_method = "file_magic".
  30340. file_magic_cmd=$lt_file_magic_cmd
  30341. # How to find potential files when deplibs_check_method = "file_magic".
  30342. file_magic_glob=$lt_file_magic_glob
  30343. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  30344. want_nocaseglob=$lt_want_nocaseglob
  30345. # Command to associate shared and link libraries.
  30346. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  30347. # The archiver.
  30348. AR=$lt_AR
  30349. # Flags to create an archive.
  30350. AR_FLAGS=$lt_AR_FLAGS
  30351. # How to feed a file listing to the archiver.
  30352. archiver_list_spec=$lt_archiver_list_spec
  30353. # A symbol stripping program.
  30354. STRIP=$lt_STRIP
  30355. # Commands used to install an old-style archive.
  30356. RANLIB=$lt_RANLIB
  30357. old_postinstall_cmds=$lt_old_postinstall_cmds
  30358. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  30359. # Whether to use a lock for old archive extraction.
  30360. lock_old_archive_extraction=$lock_old_archive_extraction
  30361. # A C compiler.
  30362. LTCC=$lt_CC
  30363. # LTCC compiler flags.
  30364. LTCFLAGS=$lt_CFLAGS
  30365. # Take the output of nm and produce a listing of raw symbols and C names.
  30366. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  30367. # Transform the output of nm in a proper C declaration.
  30368. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  30369. # Transform the output of nm into a list of symbols to manually relocate.
  30370. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  30371. # Transform the output of nm in a C name address pair.
  30372. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  30373. # Transform the output of nm in a C name address pair when lib prefix is needed.
  30374. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  30375. # The name lister interface.
  30376. nm_interface=$lt_lt_cv_nm_interface
  30377. # Specify filename containing input files for \$NM.
  30378. nm_file_list_spec=$lt_nm_file_list_spec
  30379. # The root where to search for dependent libraries,and where our libraries should be installed.
  30380. lt_sysroot=$lt_sysroot
  30381. # Command to truncate a binary pipe.
  30382. lt_truncate_bin=$lt_lt_cv_truncate_bin
  30383. # The name of the directory that contains temporary libtool files.
  30384. objdir=$objdir
  30385. # Used to examine libraries when file_magic_cmd begins with "file".
  30386. MAGIC_CMD=$MAGIC_CMD
  30387. # Must we lock files when doing compilation?
  30388. need_locks=$lt_need_locks
  30389. # Manifest tool.
  30390. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  30391. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  30392. DSYMUTIL=$lt_DSYMUTIL
  30393. # Tool to change global to local symbols on Mac OS X.
  30394. NMEDIT=$lt_NMEDIT
  30395. # Tool to manipulate fat objects and archives on Mac OS X.
  30396. LIPO=$lt_LIPO
  30397. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  30398. OTOOL=$lt_OTOOL
  30399. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  30400. OTOOL64=$lt_OTOOL64
  30401. # Old archive suffix (normally "a").
  30402. libext=$libext
  30403. # Shared library suffix (normally ".so").
  30404. shrext_cmds=$lt_shrext_cmds
  30405. # The commands to extract the exported symbol list from a shared archive.
  30406. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  30407. # Variables whose values should be saved in libtool wrapper scripts and
  30408. # restored at link time.
  30409. variables_saved_for_relink=$lt_variables_saved_for_relink
  30410. # Do we need the "lib" prefix for modules?
  30411. need_lib_prefix=$need_lib_prefix
  30412. # Do we need a version for libraries?
  30413. need_version=$need_version
  30414. # Library versioning type.
  30415. version_type=$version_type
  30416. # Shared library runtime path variable.
  30417. runpath_var=$runpath_var
  30418. # Shared library path variable.
  30419. shlibpath_var=$shlibpath_var
  30420. # Is shlibpath searched before the hard-coded library search path?
  30421. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  30422. # Format of library name prefix.
  30423. libname_spec=$lt_libname_spec
  30424. # List of archive names. First name is the real one, the rest are links.
  30425. # The last name is the one that the linker finds with -lNAME
  30426. library_names_spec=$lt_library_names_spec
  30427. # The coded name of the library, if different from the real name.
  30428. soname_spec=$lt_soname_spec
  30429. # Permission mode override for installation of shared libraries.
  30430. install_override_mode=$lt_install_override_mode
  30431. # Command to use after installation of a shared archive.
  30432. postinstall_cmds=$lt_postinstall_cmds
  30433. # Command to use after uninstallation of a shared archive.
  30434. postuninstall_cmds=$lt_postuninstall_cmds
  30435. # Commands used to finish a libtool library installation in a directory.
  30436. finish_cmds=$lt_finish_cmds
  30437. # As "finish_cmds", except a single script fragment to be evaled but
  30438. # not shown.
  30439. finish_eval=$lt_finish_eval
  30440. # Whether we should hardcode library paths into libraries.
  30441. hardcode_into_libs=$hardcode_into_libs
  30442. # Compile-time system search path for libraries.
  30443. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  30444. # Detected run-time system search path for libraries.
  30445. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  30446. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  30447. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  30448. # Whether dlopen is supported.
  30449. dlopen_support=$enable_dlopen
  30450. # Whether dlopen of programs is supported.
  30451. dlopen_self=$enable_dlopen_self
  30452. # Whether dlopen of statically linked programs is supported.
  30453. dlopen_self_static=$enable_dlopen_self_static
  30454. # Commands to strip libraries.
  30455. old_striplib=$lt_old_striplib
  30456. striplib=$lt_striplib
  30457. # The linker used to build libraries.
  30458. LD=$lt_LD
  30459. # How to create reloadable object files.
  30460. reload_flag=$lt_reload_flag
  30461. reload_cmds=$lt_reload_cmds
  30462. # Commands used to build an old-style archive.
  30463. old_archive_cmds=$lt_old_archive_cmds
  30464. # A language specific compiler.
  30465. CC=$lt_compiler
  30466. # Is the compiler the GNU compiler?
  30467. with_gcc=$GCC
  30468. # Compiler flag to turn off builtin functions.
  30469. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  30470. # Additional compiler flags for building library objects.
  30471. pic_flag=$lt_lt_prog_compiler_pic
  30472. # How to pass a linker flag through the compiler.
  30473. wl=$lt_lt_prog_compiler_wl
  30474. # Compiler flag to prevent dynamic linking.
  30475. link_static_flag=$lt_lt_prog_compiler_static
  30476. # Does compiler simultaneously support -c and -o options?
  30477. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  30478. # Whether or not to add -lc for building shared libraries.
  30479. build_libtool_need_lc=$archive_cmds_need_lc
  30480. # Whether or not to disallow shared libs when runtime libs are static.
  30481. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  30482. # Compiler flag to allow reflexive dlopens.
  30483. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  30484. # Compiler flag to generate shared objects directly from archives.
  30485. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  30486. # Whether the compiler copes with passing no objects directly.
  30487. compiler_needs_object=$lt_compiler_needs_object
  30488. # Create an old-style archive from a shared archive.
  30489. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  30490. # Create a temporary old-style archive to link instead of a shared archive.
  30491. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  30492. # Commands used to build a shared archive.
  30493. archive_cmds=$lt_archive_cmds
  30494. archive_expsym_cmds=$lt_archive_expsym_cmds
  30495. # Commands used to build a loadable module if different from building
  30496. # a shared archive.
  30497. module_cmds=$lt_module_cmds
  30498. module_expsym_cmds=$lt_module_expsym_cmds
  30499. # Whether we are building with GNU ld or not.
  30500. with_gnu_ld=$lt_with_gnu_ld
  30501. # Flag that allows shared libraries with undefined symbols to be built.
  30502. allow_undefined_flag=$lt_allow_undefined_flag
  30503. # Flag that enforces no undefined symbols.
  30504. no_undefined_flag=$lt_no_undefined_flag
  30505. # Flag to hardcode \$libdir into a binary during linking.
  30506. # This must work even if \$libdir does not exist
  30507. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  30508. # Whether we need a single "-rpath" flag with a separated argument.
  30509. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  30510. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  30511. # DIR into the resulting binary.
  30512. hardcode_direct=$hardcode_direct
  30513. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  30514. # DIR into the resulting binary and the resulting library dependency is
  30515. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  30516. # library is relocated.
  30517. hardcode_direct_absolute=$hardcode_direct_absolute
  30518. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  30519. # into the resulting binary.
  30520. hardcode_minus_L=$hardcode_minus_L
  30521. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  30522. # into the resulting binary.
  30523. hardcode_shlibpath_var=$hardcode_shlibpath_var
  30524. # Set to "yes" if building a shared library automatically hardcodes DIR
  30525. # into the library and all subsequent libraries and executables linked
  30526. # against it.
  30527. hardcode_automatic=$hardcode_automatic
  30528. # Set to yes if linker adds runtime paths of dependent libraries
  30529. # to runtime path list.
  30530. inherit_rpath=$inherit_rpath
  30531. # Whether libtool must link a program against all its dependency libraries.
  30532. link_all_deplibs=$link_all_deplibs
  30533. # Set to "yes" if exported symbols are required.
  30534. always_export_symbols=$always_export_symbols
  30535. # The commands to list exported symbols.
  30536. export_symbols_cmds=$lt_export_symbols_cmds
  30537. # Symbols that should not be listed in the preloaded symbols.
  30538. exclude_expsyms=$lt_exclude_expsyms
  30539. # Symbols that must always be exported.
  30540. include_expsyms=$lt_include_expsyms
  30541. # Commands necessary for linking programs (against libraries) with templates.
  30542. prelink_cmds=$lt_prelink_cmds
  30543. # Commands necessary for finishing linking programs.
  30544. postlink_cmds=$lt_postlink_cmds
  30545. # Specify filename containing input files.
  30546. file_list_spec=$lt_file_list_spec
  30547. # How to hardcode a shared library path into an executable.
  30548. hardcode_action=$hardcode_action
  30549. # The directories searched by this compiler when creating a shared library.
  30550. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  30551. # Dependencies to place before and after the objects being linked to
  30552. # create a shared library.
  30553. predep_objects=$lt_predep_objects
  30554. postdep_objects=$lt_postdep_objects
  30555. predeps=$lt_predeps
  30556. postdeps=$lt_postdeps
  30557. # The library search path used internally by the compiler when linking
  30558. # a shared library.
  30559. compiler_lib_search_path=$lt_compiler_lib_search_path
  30560. # ### END LIBTOOL CONFIG
  30561. _LT_EOF
  30562. cat <<'_LT_EOF' >> "$cfgfile"
  30563. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  30564. # func_munge_path_list VARIABLE PATH
  30565. # -----------------------------------
  30566. # VARIABLE is name of variable containing _space_ separated list of
  30567. # directories to be munged by the contents of PATH, which is string
  30568. # having a format:
  30569. # "DIR[:DIR]:"
  30570. # string "DIR[ DIR]" will be prepended to VARIABLE
  30571. # ":DIR[:DIR]"
  30572. # string "DIR[ DIR]" will be appended to VARIABLE
  30573. # "DIRP[:DIRP]::[DIRA:]DIRA"
  30574. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  30575. # "DIRA[ DIRA]" will be appended to VARIABLE
  30576. # "DIR[:DIR]"
  30577. # VARIABLE will be replaced by "DIR[ DIR]"
  30578. func_munge_path_list ()
  30579. {
  30580. case x$2 in
  30581. x)
  30582. ;;
  30583. *:)
  30584. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  30585. ;;
  30586. x:*)
  30587. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  30588. ;;
  30589. *::*)
  30590. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  30591. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  30592. ;;
  30593. *)
  30594. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  30595. ;;
  30596. esac
  30597. }
  30598. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  30599. func_cc_basename ()
  30600. {
  30601. for cc_temp in $*""; do
  30602. case $cc_temp in
  30603. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  30604. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  30605. \-*) ;;
  30606. *) break;;
  30607. esac
  30608. done
  30609. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  30610. }
  30611. # ### END FUNCTIONS SHARED WITH CONFIGURE
  30612. _LT_EOF
  30613. case $host_os in
  30614. aix3*)
  30615. cat <<\_LT_EOF >> "$cfgfile"
  30616. # AIX sometimes has problems with the GCC collect2 program. For some
  30617. # reason, if we set the COLLECT_NAMES environment variable, the problems
  30618. # vanish in a puff of smoke.
  30619. if test set != "${COLLECT_NAMES+set}"; then
  30620. COLLECT_NAMES=
  30621. export COLLECT_NAMES
  30622. fi
  30623. _LT_EOF
  30624. ;;
  30625. esac
  30626. ltmain=$ac_aux_dir/ltmain.sh
  30627. # We use sed instead of cat because bash on DJGPP gets confused if
  30628. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  30629. # text mode, it properly converts lines to CR/LF. This bash problem
  30630. # is reportedly fixed, but why not run on old versions too?
  30631. sed '$q' "$ltmain" >> "$cfgfile" \
  30632. || (rm -f "$cfgfile"; exit 1)
  30633. mv -f "$cfgfile" "$ofile" ||
  30634. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  30635. chmod +x "$ofile"
  30636. cat <<_LT_EOF >> "$ofile"
  30637. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  30638. # The linker used to build libraries.
  30639. LD=$lt_LD_CXX
  30640. # How to create reloadable object files.
  30641. reload_flag=$lt_reload_flag_CXX
  30642. reload_cmds=$lt_reload_cmds_CXX
  30643. # Commands used to build an old-style archive.
  30644. old_archive_cmds=$lt_old_archive_cmds_CXX
  30645. # A language specific compiler.
  30646. CC=$lt_compiler_CXX
  30647. # Is the compiler the GNU compiler?
  30648. with_gcc=$GCC_CXX
  30649. # Compiler flag to turn off builtin functions.
  30650. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  30651. # Additional compiler flags for building library objects.
  30652. pic_flag=$lt_lt_prog_compiler_pic_CXX
  30653. # How to pass a linker flag through the compiler.
  30654. wl=$lt_lt_prog_compiler_wl_CXX
  30655. # Compiler flag to prevent dynamic linking.
  30656. link_static_flag=$lt_lt_prog_compiler_static_CXX
  30657. # Does compiler simultaneously support -c and -o options?
  30658. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  30659. # Whether or not to add -lc for building shared libraries.
  30660. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  30661. # Whether or not to disallow shared libs when runtime libs are static.
  30662. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  30663. # Compiler flag to allow reflexive dlopens.
  30664. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  30665. # Compiler flag to generate shared objects directly from archives.
  30666. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  30667. # Whether the compiler copes with passing no objects directly.
  30668. compiler_needs_object=$lt_compiler_needs_object_CXX
  30669. # Create an old-style archive from a shared archive.
  30670. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  30671. # Create a temporary old-style archive to link instead of a shared archive.
  30672. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  30673. # Commands used to build a shared archive.
  30674. archive_cmds=$lt_archive_cmds_CXX
  30675. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  30676. # Commands used to build a loadable module if different from building
  30677. # a shared archive.
  30678. module_cmds=$lt_module_cmds_CXX
  30679. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  30680. # Whether we are building with GNU ld or not.
  30681. with_gnu_ld=$lt_with_gnu_ld_CXX
  30682. # Flag that allows shared libraries with undefined symbols to be built.
  30683. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  30684. # Flag that enforces no undefined symbols.
  30685. no_undefined_flag=$lt_no_undefined_flag_CXX
  30686. # Flag to hardcode \$libdir into a binary during linking.
  30687. # This must work even if \$libdir does not exist
  30688. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  30689. # Whether we need a single "-rpath" flag with a separated argument.
  30690. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  30691. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  30692. # DIR into the resulting binary.
  30693. hardcode_direct=$hardcode_direct_CXX
  30694. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  30695. # DIR into the resulting binary and the resulting library dependency is
  30696. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  30697. # library is relocated.
  30698. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  30699. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  30700. # into the resulting binary.
  30701. hardcode_minus_L=$hardcode_minus_L_CXX
  30702. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  30703. # into the resulting binary.
  30704. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  30705. # Set to "yes" if building a shared library automatically hardcodes DIR
  30706. # into the library and all subsequent libraries and executables linked
  30707. # against it.
  30708. hardcode_automatic=$hardcode_automatic_CXX
  30709. # Set to yes if linker adds runtime paths of dependent libraries
  30710. # to runtime path list.
  30711. inherit_rpath=$inherit_rpath_CXX
  30712. # Whether libtool must link a program against all its dependency libraries.
  30713. link_all_deplibs=$link_all_deplibs_CXX
  30714. # Set to "yes" if exported symbols are required.
  30715. always_export_symbols=$always_export_symbols_CXX
  30716. # The commands to list exported symbols.
  30717. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  30718. # Symbols that should not be listed in the preloaded symbols.
  30719. exclude_expsyms=$lt_exclude_expsyms_CXX
  30720. # Symbols that must always be exported.
  30721. include_expsyms=$lt_include_expsyms_CXX
  30722. # Commands necessary for linking programs (against libraries) with templates.
  30723. prelink_cmds=$lt_prelink_cmds_CXX
  30724. # Commands necessary for finishing linking programs.
  30725. postlink_cmds=$lt_postlink_cmds_CXX
  30726. # Specify filename containing input files.
  30727. file_list_spec=$lt_file_list_spec_CXX
  30728. # How to hardcode a shared library path into an executable.
  30729. hardcode_action=$hardcode_action_CXX
  30730. # The directories searched by this compiler when creating a shared library.
  30731. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  30732. # Dependencies to place before and after the objects being linked to
  30733. # create a shared library.
  30734. predep_objects=$lt_predep_objects_CXX
  30735. postdep_objects=$lt_postdep_objects_CXX
  30736. predeps=$lt_predeps_CXX
  30737. postdeps=$lt_postdeps_CXX
  30738. # The library search path used internally by the compiler when linking
  30739. # a shared library.
  30740. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  30741. # ### END LIBTOOL TAG CONFIG: CXX
  30742. _LT_EOF
  30743. ;;
  30744. esac
  30745. done # for ac_tag
  30746. as_fn_exit 0
  30747. _ACEOF
  30748. ac_clean_files=$ac_clean_files_save
  30749. test $ac_write_fail = 0 ||
  30750. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  30751. # configure is writing to config.log, and then calls config.status.
  30752. # config.status does its own redirection, appending to config.log.
  30753. # Unfortunately, on DOS this fails, as config.log is still kept open
  30754. # by configure, so config.status won't be able to write to it; its
  30755. # output is simply discarded. So we exec the FD to /dev/null,
  30756. # effectively closing config.log, so it can be properly (re)opened and
  30757. # appended to by config.status. When coming back to configure, we
  30758. # need to make the FD available again.
  30759. if test "$no_create" != yes; then
  30760. ac_cs_success=:
  30761. ac_config_status_args=
  30762. test "$silent" = yes &&
  30763. ac_config_status_args="$ac_config_status_args --quiet"
  30764. exec 5>/dev/null
  30765. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  30766. exec 5>>config.log
  30767. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  30768. # would make configure fail if this is the last instruction.
  30769. $ac_cs_success || as_fn_exit 1
  30770. fi
  30771. #
  30772. # CONFIG_SUBDIRS section.
  30773. #
  30774. if test "$no_recursion" != yes; then
  30775. # Remove --cache-file, --srcdir, and --disable-option-checking arguments
  30776. # so they do not pile up.
  30777. ac_sub_configure_args=
  30778. ac_prev=
  30779. eval "set x $ac_configure_args"
  30780. shift
  30781. for ac_arg
  30782. do
  30783. if test -n "$ac_prev"; then
  30784. ac_prev=
  30785. continue
  30786. fi
  30787. case $ac_arg in
  30788. -cache-file | --cache-file | --cache-fil | --cache-fi \
  30789. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  30790. ac_prev=cache_file ;;
  30791. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  30792. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
  30793. | --c=*)
  30794. ;;
  30795. --config-cache | -C)
  30796. ;;
  30797. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  30798. ac_prev=srcdir ;;
  30799. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  30800. ;;
  30801. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  30802. ac_prev=prefix ;;
  30803. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  30804. ;;
  30805. --disable-option-checking)
  30806. ;;
  30807. *)
  30808. case $ac_arg in
  30809. *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  30810. esac
  30811. as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
  30812. esac
  30813. done
  30814. # Always prepend --prefix to ensure using the same prefix
  30815. # in subdir configurations.
  30816. ac_arg="--prefix=$prefix"
  30817. case $ac_arg in
  30818. *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  30819. esac
  30820. ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
  30821. # Pass --silent
  30822. if test "$silent" = yes; then
  30823. ac_sub_configure_args="--silent $ac_sub_configure_args"
  30824. fi
  30825. # Always prepend --disable-option-checking to silence warnings, since
  30826. # different subdirs can have different --enable and --with options.
  30827. ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
  30828. ac_popdir=`pwd`
  30829. for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
  30830. # Do not complain, so a configure script can configure whichever
  30831. # parts of a large source tree are present.
  30832. test -d "$srcdir/$ac_dir" || continue
  30833. ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
  30834. printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
  30835. printf "%s\n" "$ac_msg" >&6
  30836. as_dir="$ac_dir"; as_fn_mkdir_p
  30837. ac_builddir=.
  30838. case "$ac_dir" in
  30839. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  30840. *)
  30841. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  30842. # A ".." for each directory in $ac_dir_suffix.
  30843. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  30844. case $ac_top_builddir_sub in
  30845. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  30846. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  30847. esac ;;
  30848. esac
  30849. ac_abs_top_builddir=$ac_pwd
  30850. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  30851. # for backward compatibility:
  30852. ac_top_builddir=$ac_top_build_prefix
  30853. case $srcdir in
  30854. .) # We are building in place.
  30855. ac_srcdir=.
  30856. ac_top_srcdir=$ac_top_builddir_sub
  30857. ac_abs_top_srcdir=$ac_pwd ;;
  30858. [\\/]* | ?:[\\/]* ) # Absolute name.
  30859. ac_srcdir=$srcdir$ac_dir_suffix;
  30860. ac_top_srcdir=$srcdir
  30861. ac_abs_top_srcdir=$srcdir ;;
  30862. *) # Relative name.
  30863. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  30864. ac_top_srcdir=$ac_top_build_prefix$srcdir
  30865. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  30866. esac
  30867. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  30868. cd "$ac_dir"
  30869. # Check for configure.gnu first; this name is used for a wrapper for
  30870. # Metaconfig's "Configure" on case-insensitive file systems.
  30871. if test -f "$ac_srcdir/configure.gnu"; then
  30872. ac_sub_configure=$ac_srcdir/configure.gnu
  30873. elif test -f "$ac_srcdir/configure"; then
  30874. ac_sub_configure=$ac_srcdir/configure
  30875. else
  30876. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
  30877. printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
  30878. ac_sub_configure=
  30879. fi
  30880. # The recursion is here.
  30881. if test -n "$ac_sub_configure"; then
  30882. # Make the cache file name correct relative to the subdirectory.
  30883. case $cache_file in
  30884. [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
  30885. *) # Relative name.
  30886. ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
  30887. esac
  30888. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
  30889. printf "%s\n" "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
  30890. # The eval makes quoting arguments work.
  30891. eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
  30892. --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
  30893. as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
  30894. fi
  30895. cd "$ac_popdir"
  30896. done
  30897. fi
  30898. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  30899. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  30900. printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  30901. fi
  30902. ## ---------------------------------- ##
  30903. ## Start of distclean amending code ##
  30904. ## ---------------------------------- ##
  30905. for xc_subdir in '.'
  30906. do
  30907. if test ! -f "$xc_subdir/Makefile"; then
  30908. echo "$xc_msg_err $xc_subdir/Makefile file not found. $xc_msg_abrt" >&2
  30909. exit 1
  30910. fi
  30911. # Fetch dependency tracking file list from Makefile include lines.
  30912. xc_inc_lines=`grep '^include .*(DEPDIR)' "$xc_subdir/Makefile" 2>/dev/null`
  30913. xc_cnt_words=`echo "$xc_inc_lines" | wc -w | tr -d "$xc_space$xc_tab"`
  30914. # --disable-dependency-tracking might have been used, consequently
  30915. # there is nothing to amend without a dependency tracking file list.
  30916. if test $xc_cnt_words -gt 0; then
  30917. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: amending $xc_subdir/Makefile" >&5
  30918. printf "%s\n" "$as_me: amending $xc_subdir/Makefile" >&6;}
  30919. # Build Makefile specific patch hunk.
  30920. xc_p="$xc_subdir/xc_patch.tmp"
  30921. xc_rm_depfiles=`echo "$xc_inc_lines" \
  30922. | $SED 's%include% -rm -f%' 2>/dev/null`
  30923. xc_dep_subdirs=`echo "$xc_inc_lines" \
  30924. | $SED 's%include[ ][ ]*%%' 2>/dev/null \
  30925. | $SED 's%(DEPDIR)/.*%(DEPDIR)%' 2>/dev/null \
  30926. | sort | uniq`
  30927. echo "$xc_rm_depfiles" >$xc_p
  30928. for xc_dep_dir in $xc_dep_subdirs; do
  30929. echo "${xc_tab}@xm_dep_cnt=\`ls $xc_dep_dir | wc -l 2>/dev/null\`; \\" >>$xc_p
  30930. echo "${xc_tab}if test \$\$xm_dep_cnt -eq 0 && test -d $xc_dep_dir; then \\" >>$xc_p
  30931. echo "${xc_tab} rm -rf $xc_dep_dir; \\" >>$xc_p
  30932. echo "${xc_tab}fi" >>$xc_p
  30933. done
  30934. # Build Makefile patching sed scripts.
  30935. xc_s1="$xc_subdir/xc_script_1.tmp"
  30936. xc_s2="$xc_subdir/xc_script_2.tmp"
  30937. xc_s3="$xc_subdir/xc_script_3.tmp"
  30938. cat >$xc_s1 <<\_EOT
  30939. /^distclean[ ]*:/,/^[^ ][^ ]*:/{
  30940. s/^.*(DEPDIR)/___xc_depdir_line___/
  30941. }
  30942. /^maintainer-clean[ ]*:/,/^[^ ][^ ]*:/{
  30943. s/^.*(DEPDIR)/___xc_depdir_line___/
  30944. }
  30945. _EOT
  30946. cat >$xc_s2 <<\_EOT
  30947. /___xc_depdir_line___$/{
  30948. N
  30949. /___xc_depdir_line___$/D
  30950. }
  30951. _EOT
  30952. cat >$xc_s3 <<_EOT
  30953. /^___xc_depdir_line___/{
  30954. r $xc_p
  30955. d
  30956. }
  30957. _EOT
  30958. # Apply patch to Makefile and cleanup.
  30959. $SED -f "$xc_s1" "$xc_subdir/Makefile" >"$xc_subdir/Makefile.tmp1"
  30960. $SED -f "$xc_s2" "$xc_subdir/Makefile.tmp1" >"$xc_subdir/Makefile.tmp2"
  30961. $SED -f "$xc_s3" "$xc_subdir/Makefile.tmp2" >"$xc_subdir/Makefile.tmp3"
  30962. if test -f "$xc_subdir/Makefile.tmp3"; then
  30963. mv -f "$xc_subdir/Makefile.tmp3" "$xc_subdir/Makefile"
  30964. fi
  30965. test -f "$xc_subdir/Makefile.tmp1" && rm -f "$xc_subdir/Makefile.tmp1"
  30966. test -f "$xc_subdir/Makefile.tmp2" && rm -f "$xc_subdir/Makefile.tmp2"
  30967. test -f "$xc_subdir/Makefile.tmp3" && rm -f "$xc_subdir/Makefile.tmp3"
  30968. test -f "$xc_p" && rm -f "$xc_p"
  30969. test -f "$xc_s1" && rm -f "$xc_s1"
  30970. test -f "$xc_s2" && rm -f "$xc_s2"
  30971. test -f "$xc_s3" && rm -f "$xc_s3"
  30972. fi
  30973. done
  30974. ## -------------------------------- ##
  30975. ## End of distclean amending code ##
  30976. ## -------------------------------- ##