configure 1.2 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559325603256132562325633256432565325663256732568325693257032571325723257332574325753257632577325783257932580325813258232583325843258532586325873258832589325903259132592325933259432595325963259732598325993260032601326023260332604326053260632607326083260932610326113261232613326143261532616326173261832619326203262132622326233262432625326263262732628326293263032631326323263332634326353263632637326383263932640326413264232643326443264532646326473264832649326503265132652326533265432655326563265732658326593266032661326623266332664326653266632667326683266932670326713267232673326743267532676326773267832679326803268132682326833268432685326863268732688326893269032691326923269332694326953269632697326983269932700327013270232703327043270532706327073270832709327103271132712327133271432715327163271732718327193272032721327223272332724327253272632727327283272932730327313273232733327343273532736327373273832739327403274132742327433274432745327463274732748327493275032751327523275332754327553275632757327583275932760327613276232763327643276532766327673276832769327703277132772327733277432775327763277732778327793278032781327823278332784327853278632787327883278932790327913279232793327943279532796327973279832799328003280132802328033280432805328063280732808328093281032811328123281332814328153281632817328183281932820328213282232823328243282532826328273282832829328303283132832328333283432835328363283732838328393284032841328423284332844328453284632847328483284932850328513285232853328543285532856328573285832859328603286132862328633286432865328663286732868328693287032871328723287332874328753287632877328783287932880328813288232883328843288532886328873288832889328903289132892328933289432895328963289732898328993290032901329023290332904329053290632907329083290932910329113291232913329143291532916329173291832919329203292132922329233292432925329263292732928329293293032931329323293332934329353293632937329383293932940329413294232943329443294532946329473294832949329503295132952329533295432955329563295732958329593296032961329623296332964329653296632967329683296932970329713297232973329743297532976329773297832979329803298132982329833298432985329863298732988329893299032991329923299332994329953299632997329983299933000330013300233003330043300533006330073300833009330103301133012330133301433015330163301733018330193302033021330223302333024330253302633027330283302933030330313303233033330343303533036330373303833039330403304133042330433304433045330463304733048330493305033051330523305333054330553305633057330583305933060330613306233063330643306533066330673306833069330703307133072330733307433075330763307733078330793308033081330823308333084330853308633087330883308933090330913309233093330943309533096330973309833099331003310133102331033310433105331063310733108331093311033111331123311333114331153311633117331183311933120331213312233123331243312533126331273312833129331303313133132331333313433135331363313733138331393314033141331423314333144331453314633147331483314933150331513315233153331543315533156331573315833159331603316133162331633316433165331663316733168331693317033171331723317333174331753317633177331783317933180331813318233183331843318533186331873318833189331903319133192331933319433195331963319733198331993320033201332023320333204332053320633207332083320933210332113321233213332143321533216332173321833219332203322133222332233322433225332263322733228332293323033231332323323333234332353323633237332383323933240332413324233243332443324533246332473324833249332503325133252332533325433255332563325733258332593326033261332623326333264332653326633267332683326933270332713327233273332743327533276332773327833279332803328133282332833328433285332863328733288332893329033291332923329333294332953329633297332983329933300333013330233303333043330533306333073330833309333103331133312333133331433315333163331733318333193332033321333223332333324333253332633327333283332933330333313333233333333343333533336333373333833339333403334133342333433334433345333463334733348333493335033351333523335333354333553335633357333583335933360333613336233363333643336533366333673336833369333703337133372333733337433375333763337733378333793338033381333823338333384333853338633387333883338933390333913339233393333943339533396333973339833399334003340133402334033340433405334063340733408334093341033411334123341333414334153341633417334183341933420334213342233423334243342533426334273342833429334303343133432334333343433435334363343733438334393344033441334423344333444334453344633447334483344933450334513345233453334543345533456334573345833459334603346133462334633346433465334663346733468334693347033471334723347333474334753347633477334783347933480334813348233483334843348533486334873348833489334903349133492334933349433495334963349733498334993350033501335023350333504335053350633507335083350933510335113351233513335143351533516335173351833519335203352133522335233352433525335263352733528335293353033531335323353333534335353353633537335383353933540335413354233543335443354533546335473354833549335503355133552335533355433555335563355733558335593356033561335623356333564335653356633567335683356933570335713357233573335743357533576335773357833579335803358133582335833358433585335863358733588335893359033591335923359333594335953359633597335983359933600336013360233603336043360533606336073360833609336103361133612336133361433615336163361733618336193362033621336223362333624336253362633627336283362933630336313363233633336343363533636336373363833639336403364133642336433364433645336463364733648336493365033651336523365333654336553365633657336583365933660336613366233663336643366533666336673366833669336703367133672336733367433675336763367733678336793368033681336823368333684336853368633687336883368933690336913369233693336943369533696336973369833699337003370133702337033370433705337063370733708337093371033711337123371333714337153371633717337183371933720337213372233723337243372533726337273372833729337303373133732337333373433735337363373733738337393374033741337423374333744337453374633747337483374933750337513375233753337543375533756337573375833759337603376133762337633376433765337663376733768337693377033771337723377333774337753377633777337783377933780337813378233783337843378533786337873378833789337903379133792337933379433795337963379733798337993380033801338023380333804338053380633807338083380933810338113381233813338143381533816338173381833819338203382133822338233382433825338263382733828338293383033831338323383333834338353383633837338383383933840338413384233843338443384533846338473384833849338503385133852338533385433855338563385733858338593386033861338623386333864338653386633867338683386933870338713387233873338743387533876338773387833879338803388133882338833388433885338863388733888338893389033891338923389333894338953389633897338983389933900339013390233903339043390533906339073390833909339103391133912339133391433915339163391733918339193392033921339223392333924339253392633927339283392933930339313393233933339343393533936339373393833939339403394133942339433394433945339463394733948339493395033951339523395333954339553395633957339583395933960339613396233963339643396533966339673396833969339703397133972339733397433975339763397733978339793398033981339823398333984339853398633987339883398933990339913399233993339943399533996339973399833999340003400134002340033400434005340063400734008340093401034011340123401334014340153401634017340183401934020340213402234023340243402534026340273402834029340303403134032340333403434035340363403734038340393404034041340423404334044340453404634047340483404934050340513405234053340543405534056340573405834059340603406134062340633406434065340663406734068340693407034071340723407334074340753407634077340783407934080340813408234083340843408534086340873408834089340903409134092340933409434095340963409734098340993410034101341023410334104341053410634107341083410934110341113411234113341143411534116341173411834119341203412134122341233412434125341263412734128341293413034131341323413334134341353413634137341383413934140341413414234143341443414534146341473414834149341503415134152341533415434155341563415734158341593416034161341623416334164341653416634167341683416934170341713417234173341743417534176341773417834179341803418134182341833418434185341863418734188341893419034191341923419334194341953419634197341983419934200342013420234203342043420534206342073420834209342103421134212342133421434215342163421734218342193422034221342223422334224342253422634227342283422934230342313423234233342343423534236342373423834239342403424134242342433424434245342463424734248342493425034251342523425334254342553425634257342583425934260342613426234263342643426534266342673426834269342703427134272342733427434275342763427734278342793428034281342823428334284342853428634287342883428934290342913429234293342943429534296342973429834299343003430134302343033430434305343063430734308343093431034311343123431334314343153431634317343183431934320343213432234323343243432534326343273432834329343303433134332343333433434335343363433734338343393434034341343423434334344343453434634347343483434934350343513435234353343543435534356343573435834359343603436134362343633436434365343663436734368343693437034371343723437334374343753437634377343783437934380343813438234383343843438534386343873438834389343903439134392343933439434395343963439734398343993440034401344023440334404344053440634407344083440934410344113441234413344143441534416344173441834419344203442134422344233442434425344263442734428344293443034431344323443334434344353443634437344383443934440344413444234443344443444534446344473444834449344503445134452344533445434455344563445734458344593446034461344623446334464344653446634467344683446934470344713447234473344743447534476344773447834479344803448134482344833448434485344863448734488344893449034491344923449334494344953449634497344983449934500345013450234503345043450534506345073450834509345103451134512345133451434515345163451734518345193452034521345223452334524345253452634527345283452934530345313453234533345343453534536345373453834539345403454134542345433454434545345463454734548345493455034551345523455334554345553455634557345583455934560345613456234563345643456534566345673456834569345703457134572345733457434575345763457734578345793458034581345823458334584345853458634587345883458934590345913459234593345943459534596345973459834599346003460134602346033460434605346063460734608346093461034611346123461334614346153461634617346183461934620346213462234623346243462534626346273462834629346303463134632346333463434635346363463734638346393464034641346423464334644346453464634647346483464934650346513465234653346543465534656346573465834659346603466134662346633466434665346663466734668346693467034671346723467334674346753467634677346783467934680346813468234683346843468534686346873468834689346903469134692346933469434695346963469734698346993470034701347023470334704347053470634707347083470934710347113471234713347143471534716347173471834719347203472134722347233472434725347263472734728347293473034731347323473334734347353473634737347383473934740347413474234743347443474534746347473474834749347503475134752347533475434755347563475734758347593476034761347623476334764347653476634767347683476934770347713477234773347743477534776347773477834779347803478134782347833478434785347863478734788347893479034791347923479334794347953479634797347983479934800348013480234803348043480534806348073480834809348103481134812348133481434815348163481734818348193482034821348223482334824348253482634827348283482934830348313483234833348343483534836348373483834839348403484134842348433484434845348463484734848348493485034851348523485334854348553485634857348583485934860348613486234863348643486534866348673486834869348703487134872348733487434875348763487734878348793488034881348823488334884348853488634887348883488934890348913489234893348943489534896348973489834899349003490134902349033490434905349063490734908349093491034911349123491334914349153491634917349183491934920349213492234923349243492534926349273492834929349303493134932349333493434935349363493734938349393494034941349423494334944349453494634947349483494934950349513495234953349543495534956349573495834959349603496134962349633496434965349663496734968349693497034971349723497334974349753497634977349783497934980349813498234983349843498534986349873498834989349903499134992349933499434995349963499734998349993500035001350023500335004350053500635007350083500935010350113501235013350143501535016350173501835019350203502135022350233502435025350263502735028350293503035031350323503335034350353503635037350383503935040350413504235043350443504535046350473504835049350503505135052350533505435055350563505735058350593506035061350623506335064350653506635067350683506935070350713507235073350743507535076350773507835079350803508135082350833508435085350863508735088350893509035091350923509335094350953509635097350983509935100351013510235103351043510535106351073510835109351103511135112351133511435115351163511735118351193512035121351223512335124351253512635127351283512935130351313513235133351343513535136351373513835139351403514135142351433514435145351463514735148351493515035151351523515335154351553515635157351583515935160351613516235163351643516535166351673516835169351703517135172351733517435175351763517735178351793518035181351823518335184351853518635187351883518935190351913519235193351943519535196351973519835199352003520135202352033520435205352063520735208352093521035211352123521335214352153521635217352183521935220352213522235223352243522535226352273522835229352303523135232352333523435235352363523735238352393524035241352423524335244352453524635247352483524935250352513525235253352543525535256352573525835259352603526135262352633526435265352663526735268352693527035271352723527335274352753527635277352783527935280352813528235283352843528535286352873528835289352903529135292352933529435295352963529735298352993530035301353023530335304353053530635307353083530935310353113531235313353143531535316353173531835319353203532135322353233532435325353263532735328353293533035331353323533335334353353533635337353383533935340353413534235343353443534535346353473534835349353503535135352353533535435355353563535735358353593536035361353623536335364353653536635367353683536935370353713537235373353743537535376353773537835379353803538135382353833538435385353863538735388353893539035391353923539335394353953539635397353983539935400354013540235403354043540535406354073540835409354103541135412354133541435415354163541735418354193542035421354223542335424354253542635427354283542935430354313543235433354343543535436354373543835439354403544135442354433544435445354463544735448354493545035451354523545335454354553545635457354583545935460354613546235463354643546535466354673546835469354703547135472354733547435475354763547735478354793548035481354823548335484354853548635487354883548935490354913549235493354943549535496354973549835499355003550135502355033550435505355063550735508355093551035511355123551335514355153551635517355183551935520355213552235523355243552535526355273552835529355303553135532355333553435535355363553735538355393554035541355423554335544355453554635547355483554935550355513555235553355543555535556355573555835559355603556135562355633556435565355663556735568355693557035571355723557335574355753557635577355783557935580355813558235583355843558535586355873558835589355903559135592355933559435595355963559735598355993560035601356023560335604356053560635607356083560935610356113561235613356143561535616356173561835619356203562135622356233562435625356263562735628356293563035631356323563335634356353563635637356383563935640356413564235643356443564535646356473564835649356503565135652356533565435655356563565735658356593566035661356623566335664356653566635667356683566935670356713567235673356743567535676356773567835679356803568135682356833568435685356863568735688356893569035691356923569335694356953569635697356983569935700357013570235703357043570535706357073570835709357103571135712357133571435715357163571735718357193572035721357223572335724357253572635727357283572935730357313573235733357343573535736357373573835739357403574135742357433574435745357463574735748357493575035751357523575335754357553575635757357583575935760357613576235763357643576535766357673576835769357703577135772357733577435775357763577735778357793578035781357823578335784357853578635787357883578935790357913579235793357943579535796357973579835799358003580135802358033580435805358063580735808358093581035811358123581335814358153581635817358183581935820358213582235823358243582535826358273582835829358303583135832358333583435835358363583735838358393584035841358423584335844358453584635847358483584935850358513585235853358543585535856358573585835859358603586135862358633586435865358663586735868358693587035871358723587335874358753587635877358783587935880358813588235883358843588535886358873588835889358903589135892358933589435895358963589735898358993590035901359023590335904359053590635907359083590935910359113591235913359143591535916359173591835919359203592135922359233592435925359263592735928359293593035931359323593335934359353593635937359383593935940359413594235943359443594535946359473594835949359503595135952359533595435955359563595735958359593596035961359623596335964359653596635967359683596935970359713597235973359743597535976359773597835979359803598135982359833598435985359863598735988359893599035991359923599335994359953599635997359983599936000360013600236003360043600536006360073600836009360103601136012360133601436015360163601736018360193602036021360223602336024360253602636027360283602936030360313603236033360343603536036360373603836039360403604136042360433604436045360463604736048360493605036051360523605336054360553605636057360583605936060360613606236063360643606536066360673606836069360703607136072360733607436075360763607736078360793608036081360823608336084360853608636087360883608936090360913609236093360943609536096360973609836099361003610136102361033610436105361063610736108361093611036111361123611336114361153611636117361183611936120361213612236123361243612536126361273612836129361303613136132361333613436135361363613736138361393614036141361423614336144361453614636147361483614936150361513615236153361543615536156361573615836159361603616136162361633616436165361663616736168361693617036171361723617336174361753617636177361783617936180361813618236183361843618536186361873618836189361903619136192361933619436195361963619736198361993620036201362023620336204362053620636207362083620936210362113621236213362143621536216362173621836219362203622136222362233622436225362263622736228362293623036231362323623336234362353623636237362383623936240362413624236243362443624536246362473624836249362503625136252362533625436255362563625736258362593626036261362623626336264362653626636267362683626936270362713627236273362743627536276362773627836279362803628136282362833628436285362863628736288362893629036291362923629336294362953629636297362983629936300363013630236303363043630536306363073630836309363103631136312363133631436315363163631736318363193632036321363223632336324363253632636327363283632936330363313633236333363343633536336363373633836339363403634136342363433634436345363463634736348363493635036351363523635336354363553635636357363583635936360363613636236363363643636536366363673636836369363703637136372363733637436375363763637736378363793638036381363823638336384363853638636387363883638936390363913639236393363943639536396363973639836399364003640136402364033640436405364063640736408364093641036411364123641336414364153641636417364183641936420364213642236423364243642536426364273642836429364303643136432364333643436435364363643736438364393644036441364423644336444364453644636447364483644936450364513645236453364543645536456364573645836459364603646136462364633646436465364663646736468364693647036471364723647336474364753647636477364783647936480364813648236483364843648536486364873648836489364903649136492364933649436495364963649736498364993650036501365023650336504365053650636507365083650936510365113651236513365143651536516365173651836519365203652136522365233652436525365263652736528365293653036531365323653336534365353653636537365383653936540365413654236543365443654536546365473654836549365503655136552365533655436555365563655736558365593656036561365623656336564365653656636567365683656936570365713657236573365743657536576365773657836579365803658136582365833658436585365863658736588365893659036591365923659336594365953659636597365983659936600366013660236603366043660536606366073660836609366103661136612366133661436615366163661736618366193662036621366223662336624366253662636627366283662936630366313663236633366343663536636366373663836639366403664136642366433664436645366463664736648366493665036651366523665336654366553665636657366583665936660366613666236663366643666536666366673666836669366703667136672366733667436675366763667736678366793668036681366823668336684366853668636687366883668936690366913669236693366943669536696366973669836699367003670136702367033670436705367063670736708367093671036711367123671336714367153671636717367183671936720367213672236723367243672536726367273672836729367303673136732367333673436735367363673736738367393674036741367423674336744367453674636747367483674936750367513675236753367543675536756367573675836759367603676136762367633676436765367663676736768367693677036771367723677336774367753677636777367783677936780367813678236783367843678536786367873678836789367903679136792367933679436795367963679736798367993680036801368023680336804368053680636807368083680936810368113681236813368143681536816368173681836819368203682136822368233682436825368263682736828368293683036831368323683336834368353683636837368383683936840368413684236843368443684536846368473684836849368503685136852368533685436855368563685736858368593686036861368623686336864368653686636867368683686936870368713687236873368743687536876368773687836879368803688136882368833688436885368863688736888368893689036891368923689336894368953689636897368983689936900369013690236903369043690536906369073690836909369103691136912369133691436915369163691736918369193692036921369223692336924369253692636927369283692936930369313693236933369343693536936369373693836939369403694136942369433694436945369463694736948369493695036951369523695336954369553695636957369583695936960369613696236963369643696536966369673696836969369703697136972369733697436975369763697736978369793698036981369823698336984369853698636987369883698936990369913699236993369943699536996369973699836999370003700137002370033700437005370063700737008370093701037011370123701337014370153701637017370183701937020370213702237023370243702537026370273702837029370303703137032370333703437035370363703737038370393704037041370423704337044370453704637047370483704937050370513705237053370543705537056370573705837059370603706137062370633706437065370663706737068370693707037071370723707337074370753707637077370783707937080370813708237083370843708537086370873708837089370903709137092370933709437095370963709737098370993710037101371023710337104371053710637107371083710937110371113711237113371143711537116371173711837119371203712137122371233712437125371263712737128371293713037131371323713337134371353713637137371383713937140371413714237143371443714537146371473714837149371503715137152371533715437155371563715737158371593716037161371623716337164371653716637167371683716937170371713717237173371743717537176371773717837179371803718137182371833718437185371863718737188371893719037191371923719337194371953719637197371983719937200372013720237203372043720537206372073720837209372103721137212372133721437215372163721737218372193722037221372223722337224372253722637227372283722937230372313723237233372343723537236372373723837239372403724137242372433724437245372463724737248372493725037251372523725337254372553725637257372583725937260372613726237263372643726537266372673726837269372703727137272372733727437275372763727737278372793728037281372823728337284372853728637287372883728937290372913729237293372943729537296372973729837299373003730137302373033730437305373063730737308373093731037311373123731337314373153731637317373183731937320373213732237323373243732537326373273732837329373303733137332373333733437335373363733737338373393734037341373423734337344373453734637347373483734937350373513735237353373543735537356373573735837359373603736137362373633736437365373663736737368373693737037371373723737337374373753737637377373783737937380373813738237383373843738537386373873738837389373903739137392373933739437395373963739737398373993740037401374023740337404374053740637407374083740937410374113741237413374143741537416374173741837419374203742137422374233742437425374263742737428374293743037431374323743337434374353743637437374383743937440374413744237443374443744537446374473744837449374503745137452374533745437455374563745737458374593746037461374623746337464374653746637467374683746937470374713747237473374743747537476374773747837479374803748137482374833748437485374863748737488374893749037491374923749337494374953749637497374983749937500375013750237503375043750537506375073750837509375103751137512375133751437515375163751737518375193752037521375223752337524375253752637527375283752937530375313753237533375343753537536375373753837539375403754137542375433754437545375463754737548375493755037551375523755337554375553755637557375583755937560375613756237563375643756537566375673756837569375703757137572375733757437575375763757737578375793758037581375823758337584375853758637587375883758937590375913759237593375943759537596375973759837599376003760137602376033760437605376063760737608376093761037611376123761337614376153761637617376183761937620376213762237623376243762537626376273762837629376303763137632376333763437635376363763737638376393764037641376423764337644376453764637647376483764937650376513765237653376543765537656376573765837659376603766137662376633766437665376663766737668376693767037671376723767337674376753767637677376783767937680376813768237683376843768537686376873768837689376903769137692376933769437695376963769737698376993770037701377023770337704377053770637707377083770937710377113771237713377143771537716377173771837719377203772137722377233772437725377263772737728377293773037731377323773337734377353773637737377383773937740377413774237743377443774537746377473774837749377503775137752377533775437755377563775737758377593776037761377623776337764377653776637767377683776937770377713777237773377743777537776377773777837779377803778137782377833778437785377863778737788377893779037791377923779337794377953779637797377983779937800378013780237803378043780537806378073780837809378103781137812378133781437815378163781737818378193782037821378223782337824378253782637827378283782937830378313783237833378343783537836378373783837839378403784137842378433784437845378463784737848378493785037851378523785337854378553785637857378583785937860378613786237863378643786537866378673786837869378703787137872378733787437875378763787737878378793788037881378823788337884378853788637887378883788937890378913789237893378943789537896378973789837899379003790137902379033790437905379063790737908379093791037911379123791337914379153791637917379183791937920379213792237923379243792537926379273792837929379303793137932379333793437935379363793737938379393794037941379423794337944379453794637947379483794937950379513795237953379543795537956379573795837959379603796137962379633796437965379663796737968379693797037971379723797337974379753797637977379783797937980379813798237983379843798537986379873798837989379903799137992379933799437995379963799737998379993800038001380023800338004380053800638007380083800938010380113801238013380143801538016380173801838019380203802138022380233802438025380263802738028380293803038031380323803338034380353803638037380383803938040380413804238043380443804538046380473804838049380503805138052380533805438055380563805738058380593806038061380623806338064380653806638067380683806938070380713807238073380743807538076380773807838079380803808138082380833808438085380863808738088380893809038091380923809338094380953809638097380983809938100381013810238103381043810538106381073810838109381103811138112381133811438115381163811738118381193812038121381223812338124381253812638127381283812938130381313813238133381343813538136381373813838139381403814138142381433814438145381463814738148381493815038151381523815338154381553815638157381583815938160381613816238163381643816538166381673816838169381703817138172381733817438175381763817738178381793818038181381823818338184381853818638187381883818938190381913819238193381943819538196381973819838199382003820138202382033820438205382063820738208382093821038211382123821338214382153821638217382183821938220382213822238223382243822538226382273822838229382303823138232382333823438235382363823738238382393824038241382423824338244382453824638247382483824938250382513825238253382543825538256382573825838259382603826138262382633826438265382663826738268382693827038271382723827338274382753827638277382783827938280382813828238283382843828538286382873828838289382903829138292382933829438295382963829738298382993830038301383023830338304383053830638307383083830938310383113831238313383143831538316383173831838319383203832138322383233832438325383263832738328383293833038331383323833338334383353833638337383383833938340383413834238343383443834538346383473834838349383503835138352383533835438355383563835738358383593836038361383623836338364383653836638367383683836938370383713837238373383743837538376383773837838379383803838138382383833838438385383863838738388383893839038391383923839338394383953839638397383983839938400384013840238403384043840538406384073840838409384103841138412384133841438415384163841738418384193842038421384223842338424384253842638427384283842938430384313843238433384343843538436384373843838439384403844138442384433844438445384463844738448384493845038451384523845338454384553845638457384583845938460384613846238463384643846538466384673846838469384703847138472384733847438475384763847738478384793848038481384823848338484384853848638487384883848938490384913849238493384943849538496384973849838499385003850138502385033850438505385063850738508385093851038511385123851338514385153851638517385183851938520385213852238523385243852538526385273852838529385303853138532385333853438535385363853738538385393854038541385423854338544385453854638547385483854938550385513855238553385543855538556385573855838559385603856138562385633856438565385663856738568385693857038571385723857338574385753857638577385783857938580385813858238583385843858538586385873858838589385903859138592385933859438595385963859738598385993860038601386023860338604386053860638607386083860938610386113861238613386143861538616386173861838619386203862138622386233862438625386263862738628386293863038631386323863338634386353863638637386383863938640386413864238643386443864538646386473864838649386503865138652386533865438655386563865738658386593866038661386623866338664386653866638667386683866938670386713867238673386743867538676386773867838679386803868138682386833868438685386863868738688386893869038691386923869338694386953869638697386983869938700387013870238703387043870538706387073870838709387103871138712387133871438715387163871738718387193872038721387223872338724387253872638727387283872938730387313873238733387343873538736387373873838739387403874138742387433874438745387463874738748387493875038751387523875338754387553875638757387583875938760387613876238763387643876538766387673876838769387703877138772387733877438775387763877738778387793878038781387823878338784387853878638787387883878938790387913879238793387943879538796387973879838799388003880138802388033880438805388063880738808388093881038811388123881338814388153881638817388183881938820388213882238823388243882538826388273882838829388303883138832388333883438835388363883738838388393884038841388423884338844388453884638847388483884938850388513885238853388543885538856388573885838859388603886138862388633886438865388663886738868388693887038871388723887338874388753887638877388783887938880388813888238883388843888538886388873888838889388903889138892388933889438895388963889738898388993890038901389023890338904389053890638907389083890938910389113891238913389143891538916389173891838919389203892138922389233892438925389263892738928389293893038931389323893338934389353893638937389383893938940389413894238943389443894538946389473894838949389503895138952389533895438955389563895738958389593896038961389623896338964389653896638967389683896938970389713897238973389743897538976389773897838979389803898138982389833898438985389863898738988389893899038991389923899338994389953899638997389983899939000390013900239003390043900539006390073900839009390103901139012390133901439015390163901739018390193902039021390223902339024390253902639027390283902939030390313903239033390343903539036390373903839039390403904139042390433904439045390463904739048390493905039051390523905339054390553905639057390583905939060390613906239063390643906539066390673906839069390703907139072390733907439075390763907739078390793908039081390823908339084390853908639087390883908939090390913909239093390943909539096390973909839099391003910139102391033910439105391063910739108391093911039111391123911339114391153911639117391183911939120391213912239123391243912539126391273912839129391303913139132391333913439135391363913739138391393914039141391423914339144391453914639147391483914939150391513915239153391543915539156391573915839159391603916139162391633916439165391663916739168391693917039171391723917339174391753917639177391783917939180391813918239183391843918539186391873918839189391903919139192391933919439195391963919739198391993920039201392023920339204392053920639207392083920939210392113921239213392143921539216392173921839219392203922139222392233922439225392263922739228392293923039231392323923339234392353923639237392383923939240392413924239243392443924539246392473924839249392503925139252392533925439255392563925739258392593926039261392623926339264392653926639267392683926939270392713927239273392743927539276392773927839279392803928139282392833928439285392863928739288392893929039291392923929339294392953929639297392983929939300393013930239303393043930539306393073930839309393103931139312393133931439315393163931739318393193932039321393223932339324393253932639327393283932939330393313933239333393343933539336393373933839339393403934139342393433934439345393463934739348393493935039351393523935339354393553935639357393583935939360393613936239363393643936539366393673936839369393703937139372393733937439375393763937739378393793938039381393823938339384393853938639387393883938939390393913939239393393943939539396393973939839399394003940139402394033940439405394063940739408394093941039411394123941339414394153941639417394183941939420394213942239423394243942539426394273942839429394303943139432394333943439435394363943739438394393944039441394423944339444394453944639447394483944939450394513945239453394543945539456394573945839459394603946139462394633946439465394663946739468394693947039471394723947339474394753947639477394783947939480394813948239483394843948539486394873948839489394903949139492394933949439495394963949739498394993950039501395023950339504395053950639507395083950939510395113951239513395143951539516395173951839519395203952139522395233952439525395263952739528395293953039531395323953339534395353953639537395383953939540395413954239543395443954539546395473954839549395503955139552395533955439555395563955739558395593956039561395623956339564395653956639567395683956939570395713957239573395743957539576395773957839579395803958139582395833958439585395863958739588395893959039591395923959339594395953959639597395983959939600396013960239603396043960539606396073960839609396103961139612396133961439615396163961739618396193962039621396223962339624396253962639627396283962939630396313963239633396343963539636396373963839639396403964139642396433964439645396463964739648396493965039651396523965339654396553965639657396583965939660396613966239663396643966539666396673966839669396703967139672396733967439675396763967739678396793968039681396823968339684396853968639687396883968939690396913969239693396943969539696396973969839699397003970139702397033970439705397063970739708397093971039711397123971339714397153971639717397183971939720397213972239723397243972539726397273972839729397303973139732397333973439735397363973739738397393974039741397423974339744397453974639747397483974939750397513975239753397543975539756397573975839759397603976139762397633976439765397663976739768397693977039771397723977339774397753977639777397783977939780397813978239783397843978539786397873978839789397903979139792397933979439795397963979739798397993980039801398023980339804398053980639807398083980939810398113981239813398143981539816398173981839819398203982139822398233982439825398263982739828398293983039831398323983339834398353983639837398383983939840398413984239843398443984539846398473984839849398503985139852398533985439855398563985739858398593986039861398623986339864398653986639867398683986939870398713987239873398743987539876398773987839879398803988139882398833988439885398863988739888398893989039891398923989339894398953989639897398983989939900399013990239903399043990539906399073990839909399103991139912399133991439915399163991739918399193992039921399223992339924399253992639927399283992939930399313993239933399343993539936399373993839939399403994139942399433994439945399463994739948399493995039951399523995339954399553995639957399583995939960399613996239963399643996539966399673996839969399703997139972399733997439975399763997739978399793998039981399823998339984399853998639987399883998939990399913999239993399943999539996399973999839999400004000140002400034000440005400064000740008400094001040011400124001340014400154001640017400184001940020400214002240023400244002540026400274002840029400304003140032400334003440035400364003740038400394004040041400424004340044400454004640047400484004940050400514005240053400544005540056400574005840059400604006140062400634006440065400664006740068400694007040071400724007340074400754007640077400784007940080400814008240083400844008540086400874008840089400904009140092400934009440095400964009740098400994010040101401024010340104401054010640107401084010940110401114011240113401144011540116401174011840119401204012140122401234012440125401264012740128401294013040131401324013340134401354013640137401384013940140401414014240143401444014540146401474014840149401504015140152401534015440155401564015740158401594016040161401624016340164401654016640167401684016940170401714017240173401744017540176401774017840179401804018140182401834018440185401864018740188401894019040191401924019340194401954019640197401984019940200402014020240203402044020540206402074020840209402104021140212402134021440215402164021740218402194022040221402224022340224402254022640227402284022940230402314023240233402344023540236402374023840239402404024140242402434024440245402464024740248402494025040251402524025340254402554025640257402584025940260402614026240263402644026540266402674026840269402704027140272402734027440275402764027740278402794028040281402824028340284402854028640287402884028940290402914029240293402944029540296402974029840299403004030140302403034030440305403064030740308403094031040311403124031340314403154031640317403184031940320403214032240323403244032540326403274032840329403304033140332403334033440335403364033740338403394034040341403424034340344403454034640347403484034940350403514035240353403544035540356403574035840359403604036140362403634036440365403664036740368403694037040371403724037340374403754037640377403784037940380403814038240383403844038540386403874038840389403904039140392403934039440395403964039740398403994040040401404024040340404404054040640407404084040940410404114041240413404144041540416404174041840419404204042140422404234042440425404264042740428404294043040431404324043340434404354043640437404384043940440404414044240443404444044540446404474044840449404504045140452404534045440455404564045740458404594046040461404624046340464404654046640467404684046940470404714047240473404744047540476404774047840479404804048140482404834048440485404864048740488404894049040491404924049340494404954049640497404984049940500405014050240503405044050540506405074050840509405104051140512405134051440515405164051740518405194052040521405224052340524405254052640527405284052940530405314053240533405344053540536405374053840539405404054140542405434054440545405464054740548405494055040551405524055340554405554055640557405584055940560405614056240563405644056540566405674056840569405704057140572405734057440575405764057740578405794058040581405824058340584405854058640587405884058940590405914059240593405944059540596405974059840599406004060140602406034060440605406064060740608406094061040611406124061340614406154061640617406184061940620406214062240623406244062540626406274062840629406304063140632406334063440635406364063740638406394064040641406424064340644406454064640647406484064940650406514065240653406544065540656406574065840659406604066140662406634066440665406664066740668406694067040671406724067340674406754067640677406784067940680406814068240683406844068540686406874068840689406904069140692406934069440695406964069740698406994070040701407024070340704407054070640707407084070940710407114071240713407144071540716407174071840719407204072140722407234072440725407264072740728407294073040731407324073340734407354073640737407384073940740407414074240743407444074540746407474074840749407504075140752407534075440755407564075740758407594076040761407624076340764407654076640767407684076940770407714077240773407744077540776407774077840779407804078140782407834078440785407864078740788407894079040791407924079340794407954079640797407984079940800408014080240803408044080540806408074080840809408104081140812408134081440815408164081740818408194082040821408224082340824408254082640827408284082940830408314083240833408344083540836408374083840839408404084140842408434084440845408464084740848408494085040851408524085340854408554085640857408584085940860408614086240863408644086540866408674086840869408704087140872408734087440875408764087740878408794088040881408824088340884408854088640887408884088940890408914089240893408944089540896408974089840899409004090140902409034090440905409064090740908409094091040911409124091340914409154091640917409184091940920409214092240923409244092540926409274092840929409304093140932409334093440935409364093740938409394094040941409424094340944409454094640947409484094940950409514095240953409544095540956409574095840959409604096140962409634096440965409664096740968409694097040971409724097340974409754097640977409784097940980409814098240983409844098540986409874098840989409904099140992409934099440995409964099740998409994100041001410024100341004410054100641007410084100941010410114101241013410144101541016410174101841019410204102141022410234102441025410264102741028410294103041031410324103341034410354103641037410384103941040410414104241043410444104541046410474104841049410504105141052410534105441055410564105741058410594106041061410624106341064410654106641067410684106941070410714107241073410744107541076410774107841079410804108141082410834108441085410864108741088410894109041091410924109341094410954109641097410984109941100411014110241103411044110541106411074110841109411104111141112411134111441115411164111741118411194112041121411224112341124411254112641127411284112941130411314113241133411344113541136411374113841139411404114141142411434114441145411464114741148411494115041151411524115341154411554115641157411584115941160411614116241163411644116541166411674116841169411704117141172411734117441175411764117741178411794118041181411824118341184411854118641187411884118941190411914119241193411944119541196411974119841199412004120141202412034120441205412064120741208412094121041211412124121341214412154121641217412184121941220412214122241223412244122541226412274122841229412304123141232412334123441235412364123741238412394124041241412424124341244412454124641247412484124941250412514125241253412544125541256412574125841259412604126141262412634126441265412664126741268412694127041271412724127341274412754127641277412784127941280412814128241283412844128541286412874128841289412904129141292412934129441295412964129741298412994130041301413024130341304413054130641307413084130941310413114131241313413144131541316413174131841319413204132141322413234132441325413264132741328413294133041331413324133341334413354133641337413384133941340413414134241343413444134541346413474134841349413504135141352413534135441355413564135741358413594136041361413624136341364413654136641367413684136941370413714137241373413744137541376413774137841379413804138141382413834138441385413864138741388413894139041391413924139341394413954139641397413984139941400414014140241403414044140541406414074140841409414104141141412414134141441415414164141741418414194142041421414224142341424414254142641427414284142941430414314143241433414344143541436414374143841439414404144141442414434144441445414464144741448414494145041451414524145341454414554145641457414584145941460414614146241463414644146541466414674146841469414704147141472414734147441475414764147741478414794148041481414824148341484414854148641487414884148941490414914149241493414944149541496414974149841499415004150141502415034150441505415064150741508415094151041511415124151341514415154151641517415184151941520415214152241523415244152541526415274152841529415304153141532415334153441535415364153741538415394154041541415424154341544415454154641547415484154941550415514155241553415544155541556415574155841559415604156141562415634156441565415664156741568415694157041571415724157341574415754157641577415784157941580415814158241583415844158541586415874158841589415904159141592415934159441595415964159741598415994160041601416024160341604416054160641607416084160941610416114161241613416144161541616416174161841619416204162141622416234162441625416264162741628416294163041631416324163341634416354163641637416384163941640416414164241643416444164541646416474164841649416504165141652416534165441655416564165741658416594166041661416624166341664416654166641667416684166941670416714167241673416744167541676416774167841679416804168141682416834168441685416864168741688416894169041691416924169341694416954169641697416984169941700417014170241703417044170541706417074170841709417104171141712417134171441715417164171741718417194172041721417224172341724417254172641727417284172941730417314173241733417344173541736417374173841739417404174141742417434174441745417464174741748417494175041751417524175341754417554175641757417584175941760417614176241763417644176541766417674176841769417704177141772417734177441775417764177741778417794178041781417824178341784417854178641787417884178941790417914179241793417944179541796417974179841799418004180141802418034180441805418064180741808418094181041811418124181341814418154181641817418184181941820418214182241823418244182541826418274182841829418304183141832418334183441835418364183741838418394184041841418424184341844418454184641847418484184941850418514185241853418544185541856418574185841859418604186141862418634186441865418664186741868418694187041871418724187341874418754187641877418784187941880418814188241883418844188541886418874188841889418904189141892418934189441895418964189741898418994190041901419024190341904419054190641907419084190941910419114191241913419144191541916419174191841919419204192141922419234192441925419264192741928419294193041931419324193341934419354193641937419384193941940419414194241943419444194541946419474194841949419504195141952419534195441955419564195741958419594196041961419624196341964419654196641967419684196941970419714197241973419744197541976419774197841979419804198141982419834198441985419864198741988419894199041991419924199341994419954199641997419984199942000420014200242003420044200542006420074200842009420104201142012420134201442015420164201742018420194202042021420224202342024420254202642027420284202942030420314203242033420344203542036420374203842039420404204142042420434204442045420464204742048420494205042051420524205342054420554205642057420584205942060420614206242063420644206542066420674206842069420704207142072420734207442075420764207742078420794208042081420824208342084420854208642087420884208942090420914209242093420944209542096420974209842099421004210142102421034210442105421064210742108421094211042111421124211342114421154211642117421184211942120421214212242123421244212542126421274212842129421304213142132421334213442135421364213742138421394214042141421424214342144421454214642147421484214942150421514215242153421544215542156421574215842159421604216142162421634216442165421664216742168421694217042171421724217342174421754217642177421784217942180421814218242183421844218542186421874218842189421904219142192421934219442195421964219742198421994220042201422024220342204422054220642207422084220942210422114221242213422144221542216422174221842219422204222142222422234222442225422264222742228422294223042231422324223342234422354223642237422384223942240422414224242243422444224542246422474224842249422504225142252422534225442255422564225742258422594226042261422624226342264422654226642267422684226942270422714227242273422744227542276422774227842279422804228142282422834228442285422864228742288422894229042291422924229342294422954229642297422984229942300423014230242303423044230542306423074230842309423104231142312423134231442315423164231742318423194232042321423224232342324423254232642327423284232942330423314233242333423344233542336423374233842339423404234142342423434234442345423464234742348423494235042351423524235342354423554235642357423584235942360423614236242363423644236542366423674236842369423704237142372423734237442375423764237742378423794238042381423824238342384423854238642387423884238942390423914239242393423944239542396423974239842399424004240142402424034240442405424064240742408424094241042411424124241342414424154241642417424184241942420424214242242423424244242542426424274242842429424304243142432424334243442435424364243742438424394244042441424424244342444424454244642447424484244942450424514245242453424544245542456424574245842459424604246142462424634246442465424664246742468424694247042471424724247342474424754247642477424784247942480424814248242483424844248542486424874248842489424904249142492424934249442495424964249742498424994250042501425024250342504425054250642507425084250942510425114251242513425144251542516425174251842519425204252142522425234252442525425264252742528425294253042531425324253342534425354253642537425384253942540425414254242543425444254542546425474254842549425504255142552425534255442555425564255742558425594256042561425624256342564425654256642567425684256942570425714257242573425744257542576425774257842579425804258142582425834258442585425864258742588425894259042591425924259342594425954259642597425984259942600426014260242603426044260542606426074260842609426104261142612426134261442615426164261742618426194262042621426224262342624426254262642627426284262942630426314263242633426344263542636426374263842639426404264142642426434264442645426464264742648426494265042651426524265342654426554265642657426584265942660426614266242663426644266542666426674266842669426704267142672426734267442675426764267742678426794268042681426824268342684426854268642687426884268942690426914269242693426944269542696426974269842699427004270142702427034270442705427064270742708427094271042711427124271342714427154271642717427184271942720427214272242723427244272542726427274272842729427304273142732427334273442735427364273742738427394274042741427424274342744427454274642747427484274942750427514275242753427544275542756427574275842759427604276142762427634276442765427664276742768427694277042771427724277342774427754277642777427784277942780427814278242783427844278542786427874278842789427904279142792427934279442795427964279742798427994280042801428024280342804428054280642807428084280942810428114281242813428144281542816428174281842819428204282142822428234282442825428264282742828428294283042831428324283342834428354283642837428384283942840428414284242843428444284542846428474284842849428504285142852428534285442855428564285742858428594286042861428624286342864428654286642867428684286942870428714287242873428744287542876428774287842879428804288142882428834288442885428864288742888428894289042891428924289342894428954289642897428984289942900429014290242903429044290542906429074290842909429104291142912429134291442915429164291742918429194292042921429224292342924429254292642927429284292942930429314293242933429344293542936429374293842939429404294142942429434294442945429464294742948429494295042951429524295342954429554295642957429584295942960429614296242963429644296542966429674296842969429704297142972429734297442975429764297742978429794298042981429824298342984429854298642987429884298942990429914299242993429944299542996429974299842999430004300143002430034300443005430064300743008430094301043011430124301343014430154301643017430184301943020430214302243023430244302543026430274302843029430304303143032430334303443035430364303743038430394304043041430424304343044430454304643047430484304943050430514305243053430544305543056430574305843059430604306143062430634306443065430664306743068430694307043071430724307343074430754307643077430784307943080430814308243083430844308543086430874308843089430904309143092430934309443095430964309743098430994310043101431024310343104431054310643107431084310943110431114311243113431144311543116431174311843119431204312143122431234312443125431264312743128431294313043131431324313343134431354313643137431384313943140431414314243143431444314543146431474314843149431504315143152431534315443155431564315743158431594316043161431624316343164431654316643167431684316943170431714317243173431744317543176431774317843179431804318143182431834318443185431864318743188431894319043191431924319343194431954319643197431984319943200432014320243203432044320543206432074320843209432104321143212432134321443215432164321743218432194322043221432224322343224432254322643227432284322943230432314323243233432344323543236432374323843239432404324143242432434324443245432464324743248432494325043251432524325343254432554325643257432584325943260432614326243263432644326543266432674326843269432704327143272432734327443275432764327743278432794328043281432824328343284432854328643287432884328943290432914329243293432944329543296432974329843299433004330143302433034330443305433064330743308433094331043311433124331343314433154331643317433184331943320433214332243323433244332543326433274332843329433304333143332433334333443335433364333743338433394334043341433424334343344433454334643347433484334943350433514335243353433544335543356433574335843359433604336143362433634336443365433664336743368433694337043371433724337343374433754337643377433784337943380433814338243383433844338543386433874338843389433904339143392433934339443395433964339743398433994340043401434024340343404434054340643407434084340943410434114341243413434144341543416434174341843419434204342143422434234342443425434264342743428434294343043431434324343343434434354343643437434384343943440434414344243443434444344543446434474344843449434504345143452434534345443455434564345743458434594346043461434624346343464434654346643467434684346943470434714347243473434744347543476434774347843479434804348143482434834348443485434864348743488434894349043491434924349343494434954349643497434984349943500435014350243503435044350543506435074350843509435104351143512435134351443515435164351743518435194352043521435224352343524435254352643527435284352943530435314353243533435344353543536435374353843539435404354143542435434354443545435464354743548435494355043551435524355343554435554355643557435584355943560435614356243563435644356543566435674356843569435704357143572435734357443575435764357743578435794358043581435824358343584435854358643587435884358943590435914359243593435944359543596435974359843599436004360143602436034360443605436064360743608436094361043611436124361343614436154361643617436184361943620436214362243623436244362543626436274362843629436304363143632436334363443635436364363743638436394364043641436424364343644436454364643647436484364943650436514365243653436544365543656436574365843659436604366143662436634366443665436664366743668436694367043671436724367343674436754367643677436784367943680436814368243683436844368543686436874368843689436904369143692436934369443695436964369743698436994370043701437024370343704437054370643707437084370943710437114371243713437144371543716437174371843719437204372143722437234372443725437264372743728437294373043731437324373343734437354373643737437384373943740437414374243743437444374543746437474374843749437504375143752437534375443755437564375743758437594376043761437624376343764437654376643767437684376943770437714377243773437744377543776437774377843779437804378143782437834378443785437864378743788437894379043791437924379343794437954379643797437984379943800438014380243803438044380543806438074380843809438104381143812438134381443815438164381743818438194382043821438224382343824438254382643827438284382943830438314383243833438344383543836438374383843839438404384143842438434384443845438464384743848438494385043851438524385343854438554385643857438584385943860438614386243863438644386543866438674386843869438704387143872438734387443875438764387743878438794388043881438824388343884438854388643887438884388943890438914389243893438944389543896438974389843899439004390143902439034390443905439064390743908439094391043911439124391343914439154391643917439184391943920439214392243923439244392543926439274392843929439304393143932439334393443935439364393743938439394394043941439424394343944439454394643947439484394943950439514395243953439544395543956439574395843959439604396143962439634396443965439664396743968439694397043971439724397343974439754397643977439784397943980439814398243983439844398543986439874398843989439904399143992439934399443995439964399743998439994400044001440024400344004440054400644007440084400944010440114401244013440144401544016440174401844019440204402144022440234402444025440264402744028440294403044031440324403344034440354403644037440384403944040440414404244043440444404544046440474404844049440504405144052440534405444055440564405744058440594406044061440624406344064440654406644067440684406944070440714407244073440744407544076440774407844079440804408144082440834408444085440864408744088440894409044091440924409344094440954409644097440984409944100441014410244103441044410544106441074410844109441104411144112441134411444115441164411744118441194412044121441224412344124441254412644127441284412944130441314413244133441344413544136441374413844139441404414144142441434414444145441464414744148441494415044151441524415344154441554415644157441584415944160441614416244163441644416544166441674416844169441704417144172441734417444175441764417744178441794418044181441824418344184441854418644187441884418944190441914419244193441944419544196441974419844199442004420144202442034420444205442064420744208442094421044211442124421344214442154421644217442184421944220442214422244223442244422544226442274422844229442304423144232442334423444235442364423744238442394424044241442424424344244442454424644247442484424944250442514425244253442544425544256442574425844259442604426144262442634426444265442664426744268442694427044271442724427344274442754427644277442784427944280442814428244283442844428544286442874428844289442904429144292442934429444295442964429744298442994430044301443024430344304443054430644307443084430944310443114431244313443144431544316443174431844319443204432144322443234432444325443264432744328443294433044331443324433344334443354433644337443384433944340443414434244343443444434544346443474434844349443504435144352443534435444355443564435744358443594436044361443624436344364443654436644367443684436944370443714437244373443744437544376443774437844379443804438144382443834438444385443864438744388443894439044391443924439344394443954439644397443984439944400444014440244403444044440544406444074440844409444104441144412444134441444415444164441744418444194442044421444224442344424444254442644427444284442944430444314443244433444344443544436444374443844439444404444144442444434444444445444464444744448444494445044451444524445344454444554445644457444584445944460444614446244463444644446544466444674446844469444704447144472444734447444475444764447744478444794448044481444824448344484444854448644487444884448944490444914449244493444944449544496444974449844499445004450144502445034450444505445064450744508445094451044511445124451344514445154451644517445184451944520445214452244523445244452544526445274452844529445304453144532445334453444535445364453744538445394454044541445424454344544445454454644547445484454944550445514455244553445544455544556445574455844559445604456144562445634456444565445664456744568445694457044571445724457344574445754457644577445784457944580445814458244583445844458544586445874458844589445904459144592445934459444595445964459744598445994460044601446024460344604446054460644607446084460944610446114461244613446144461544616446174461844619446204462144622446234462444625446264462744628446294463044631446324463344634446354463644637446384463944640446414464244643446444464544646446474464844649446504465144652446534465444655446564465744658446594466044661446624466344664446654466644667446684466944670446714467244673446744467544676446774467844679446804468144682446834468444685446864468744688446894469044691446924469344694446954469644697446984469944700447014470244703447044470544706447074470844709447104471144712447134471444715447164471744718447194472044721447224472344724447254472644727447284472944730447314473244733447344473544736447374473844739447404474144742447434474444745447464474744748447494475044751447524475344754447554475644757447584475944760447614476244763447644476544766447674476844769447704477144772447734477444775447764477744778447794478044781447824478344784447854478644787447884478944790447914479244793447944479544796447974479844799448004480144802448034480444805448064480744808448094481044811448124481344814448154481644817448184481944820448214482244823448244482544826448274482844829448304483144832448334483444835448364483744838448394484044841448424484344844448454484644847448484484944850448514485244853448544485544856448574485844859448604486144862448634486444865448664486744868448694487044871448724487344874448754487644877448784487944880448814488244883448844488544886448874488844889448904489144892448934489444895448964489744898448994490044901449024490344904449054490644907449084490944910449114491244913449144491544916449174491844919449204492144922449234492444925449264492744928449294493044931449324493344934449354493644937449384493944940449414494244943449444494544946449474494844949449504495144952449534495444955449564495744958449594496044961449624496344964449654496644967449684496944970449714497244973449744497544976449774497844979449804498144982449834498444985449864498744988449894499044991449924499344994449954499644997449984499945000450014500245003450044500545006450074500845009450104501145012450134501445015450164501745018450194502045021450224502345024450254502645027450284502945030450314503245033450344503545036450374503845039450404504145042450434504445045450464504745048450494505045051450524505345054450554505645057450584505945060450614506245063450644506545066450674506845069450704507145072450734507445075450764507745078450794508045081450824508345084450854508645087450884508945090450914509245093450944509545096450974509845099451004510145102451034510445105451064510745108451094511045111451124511345114451154511645117451184511945120451214512245123451244512545126451274512845129451304513145132451334513445135451364513745138451394514045141451424514345144451454514645147451484514945150451514515245153451544515545156451574515845159451604516145162451634516445165451664516745168451694517045171451724517345174451754517645177451784517945180451814518245183451844518545186451874518845189451904519145192451934519445195451964519745198451994520045201452024520345204452054520645207452084520945210452114521245213452144521545216452174521845219452204522145222452234522445225452264522745228452294523045231452324523345234452354523645237452384523945240452414524245243452444524545246452474524845249452504525145252452534525445255452564525745258452594526045261452624526345264452654526645267452684526945270452714527245273452744527545276452774527845279452804528145282452834528445285452864528745288452894529045291452924529345294452954529645297452984529945300453014530245303453044530545306453074530845309453104531145312453134531445315453164531745318453194532045321453224532345324453254532645327453284532945330453314533245333453344533545336453374533845339453404534145342453434534445345453464534745348453494535045351453524535345354453554535645357453584535945360453614536245363453644536545366453674536845369453704537145372453734537445375453764537745378453794538045381453824538345384453854538645387453884538945390453914539245393453944539545396453974539845399454004540145402454034540445405454064540745408454094541045411454124541345414454154541645417454184541945420454214542245423454244542545426454274542845429454304543145432454334543445435454364543745438454394544045441454424544345444454454544645447454484544945450454514545245453454544545545456454574545845459454604546145462454634546445465454664546745468454694547045471454724547345474454754547645477454784547945480454814548245483454844548545486454874548845489454904549145492454934549445495454964549745498454994550045501455024550345504455054550645507455084550945510455114551245513455144551545516455174551845519455204552145522455234552445525455264552745528455294553045531455324553345534455354553645537455384553945540455414554245543455444554545546455474554845549455504555145552455534555445555455564555745558455594556045561455624556345564455654556645567455684556945570455714557245573455744557545576455774557845579455804558145582455834558445585455864558745588455894559045591455924559345594455954559645597455984559945600456014560245603456044560545606456074560845609456104561145612456134561445615456164561745618456194562045621456224562345624456254562645627456284562945630456314563245633456344563545636456374563845639456404564145642456434564445645456464564745648456494565045651456524565345654456554565645657456584565945660456614566245663456644566545666456674566845669456704567145672456734567445675456764567745678456794568045681456824568345684456854568645687456884568945690456914569245693456944569545696456974569845699457004570145702457034570445705457064570745708457094571045711457124571345714457154571645717457184571945720457214572245723457244572545726457274572845729457304573145732457334573445735457364573745738457394574045741457424574345744457454574645747457484574945750457514575245753457544575545756457574575845759457604576145762457634576445765457664576745768457694577045771457724577345774457754577645777457784577945780457814578245783457844578545786457874578845789457904579145792457934579445795457964579745798457994580045801458024580345804458054580645807458084580945810458114581245813458144581545816458174581845819458204582145822458234582445825458264582745828458294583045831458324583345834458354583645837458384583945840458414584245843458444584545846458474584845849458504585145852458534585445855458564585745858458594586045861458624586345864458654586645867458684586945870458714587245873458744587545876458774587845879458804588145882458834588445885458864588745888458894589045891458924589345894458954589645897458984589945900459014590245903459044590545906459074590845909459104591145912459134591445915459164591745918459194592045921459224592345924459254592645927459284592945930459314593245933459344593545936459374593845939459404594145942459434594445945459464594745948459494595045951459524595345954459554595645957459584595945960459614596245963459644596545966459674596845969459704597145972459734597445975459764597745978459794598045981459824598345984459854598645987459884598945990459914599245993459944599545996459974599845999460004600146002460034600446005460064600746008460094601046011460124601346014460154601646017460184601946020460214602246023460244602546026460274602846029460304603146032460334603446035460364603746038460394604046041460424604346044460454604646047460484604946050460514605246053460544605546056460574605846059460604606146062460634606446065460664606746068460694607046071460724607346074460754607646077460784607946080460814608246083460844608546086460874608846089460904609146092460934609446095460964609746098460994610046101461024610346104461054610646107461084610946110461114611246113461144611546116461174611846119461204612146122461234612446125461264612746128461294613046131461324613346134461354613646137461384613946140461414614246143461444614546146461474614846149461504615146152461534615446155461564615746158461594616046161461624616346164461654616646167461684616946170461714617246173461744617546176461774617846179461804618146182461834618446185461864618746188461894619046191461924619346194461954619646197461984619946200462014620246203462044620546206462074620846209462104621146212462134621446215462164621746218462194622046221462224622346224462254622646227462284622946230462314623246233462344623546236462374623846239462404624146242462434624446245462464624746248462494625046251462524625346254462554625646257462584625946260462614626246263462644626546266462674626846269462704627146272462734627446275462764627746278462794628046281462824628346284462854628646287462884628946290462914629246293462944629546296462974629846299463004630146302463034630446305463064630746308463094631046311463124631346314463154631646317463184631946320463214632246323463244632546326463274632846329463304633146332463334633446335463364633746338463394634046341463424634346344463454634646347463484634946350463514635246353463544635546356463574635846359463604636146362463634636446365463664636746368463694637046371463724637346374463754637646377463784637946380463814638246383463844638546386463874638846389463904639146392463934639446395463964639746398463994640046401464024640346404464054640646407464084640946410464114641246413464144641546416464174641846419464204642146422464234642446425464264642746428464294643046431464324643346434464354643646437464384643946440464414644246443464444644546446464474644846449464504645146452464534645446455464564645746458464594646046461464624646346464464654646646467464684646946470464714647246473464744647546476464774647846479464804648146482464834648446485464864648746488464894649046491464924649346494464954649646497464984649946500465014650246503465044650546506465074650846509465104651146512465134651446515465164651746518465194652046521465224652346524465254652646527465284652946530465314653246533465344653546536465374653846539465404654146542465434654446545465464654746548465494655046551465524655346554465554655646557465584655946560465614656246563465644656546566465674656846569465704657146572465734657446575465764657746578465794658046581465824658346584465854658646587465884658946590465914659246593465944659546596465974659846599466004660146602466034660446605466064660746608466094661046611466124661346614466154661646617466184661946620466214662246623466244662546626466274662846629466304663146632466334663446635466364663746638466394664046641466424664346644466454664646647466484664946650466514665246653466544665546656466574665846659466604666146662466634666446665466664666746668466694667046671466724667346674466754667646677466784667946680466814668246683466844668546686466874668846689466904669146692466934669446695466964669746698466994670046701467024670346704467054670646707467084670946710467114671246713467144671546716467174671846719467204672146722467234672446725467264672746728467294673046731467324673346734467354673646737467384673946740467414674246743467444674546746467474674846749467504675146752467534675446755467564675746758467594676046761467624676346764467654676646767467684676946770467714677246773467744677546776467774677846779467804678146782467834678446785467864678746788467894679046791467924679346794467954679646797467984679946800468014680246803468044680546806468074680846809468104681146812468134681446815468164681746818468194682046821468224682346824468254682646827468284682946830468314683246833468344683546836468374683846839468404684146842468434684446845468464684746848468494685046851468524685346854468554685646857468584685946860468614686246863468644686546866468674686846869468704687146872468734687446875468764687746878468794688046881468824688346884468854688646887468884688946890468914689246893468944689546896468974689846899469004690146902469034690446905469064690746908469094691046911469124691346914469154691646917469184691946920469214692246923469244692546926469274692846929469304693146932469334693446935469364693746938469394694046941469424694346944469454694646947469484694946950469514695246953469544695546956469574695846959469604696146962469634696446965469664696746968469694697046971469724697346974469754697646977469784697946980469814698246983469844698546986469874698846989469904699146992469934699446995469964699746998469994700047001470024700347004470054700647007470084700947010470114701247013470144701547016470174701847019470204702147022470234702447025470264702747028470294703047031470324703347034470354703647037470384703947040470414704247043470444704547046470474704847049470504705147052470534705447055470564705747058470594706047061470624706347064470654706647067470684706947070470714707247073470744707547076470774707847079470804708147082470834708447085470864708747088470894709047091470924709347094470954709647097470984709947100471014710247103471044710547106471074710847109471104711147112471134711447115471164711747118471194712047121471224712347124471254712647127471284712947130471314713247133471344713547136471374713847139471404714147142471434714447145471464714747148471494715047151471524715347154471554715647157471584715947160471614716247163471644716547166471674716847169471704717147172471734717447175471764717747178471794718047181471824718347184471854718647187471884718947190471914719247193471944719547196471974719847199472004720147202472034720447205472064720747208472094721047211472124721347214472154721647217472184721947220472214722247223472244722547226472274722847229472304723147232472334723447235472364723747238472394724047241472424724347244472454724647247472484724947250472514725247253472544725547256472574725847259472604726147262472634726447265472664726747268472694727047271472724727347274472754727647277472784727947280472814728247283472844728547286472874728847289472904729147292472934729447295472964729747298472994730047301473024730347304473054730647307473084730947310473114731247313473144731547316473174731847319473204732147322473234732447325473264732747328473294733047331473324733347334473354733647337473384733947340473414734247343473444734547346473474734847349473504735147352473534735447355473564735747358473594736047361473624736347364473654736647367473684736947370473714737247373473744737547376473774737847379473804738147382473834738447385473864738747388473894739047391473924739347394473954739647397473984739947400474014740247403474044740547406474074740847409474104741147412474134741447415474164741747418474194742047421474224742347424474254742647427474284742947430474314743247433474344743547436474374743847439474404744147442474434744447445474464744747448474494745047451474524745347454474554745647457474584745947460474614746247463474644746547466474674746847469474704747147472474734747447475474764747747478474794748047481474824748347484474854748647487474884748947490474914749247493474944749547496474974749847499475004750147502475034750447505475064750747508475094751047511475124751347514475154751647517475184751947520475214752247523475244752547526475274752847529475304753147532475334753447535475364753747538475394754047541475424754347544475454754647547475484754947550475514755247553475544755547556475574755847559475604756147562475634756447565475664756747568475694757047571475724757347574475754757647577475784757947580475814758247583475844758547586475874758847589475904759147592475934759447595475964759747598475994760047601476024760347604476054760647607476084760947610476114761247613476144761547616476174761847619476204762147622476234762447625476264762747628476294763047631476324763347634476354763647637476384763947640476414764247643476444764547646476474764847649476504765147652476534765447655476564765747658476594766047661476624766347664476654766647667476684766947670476714767247673476744767547676476774767847679476804768147682476834768447685476864768747688476894769047691476924769347694476954769647697476984769947700477014770247703477044770547706477074770847709477104771147712477134771447715477164771747718477194772047721477224772347724477254772647727477284772947730477314773247733477344773547736477374773847739477404774147742477434774447745477464774747748477494775047751477524775347754477554775647757477584775947760477614776247763477644776547766477674776847769477704777147772477734777447775477764777747778477794778047781477824778347784477854778647787477884778947790477914779247793477944779547796477974779847799478004780147802478034780447805478064780747808478094781047811478124781347814478154781647817478184781947820478214782247823478244782547826478274782847829478304783147832478334783447835478364783747838478394784047841478424784347844478454784647847478484784947850478514785247853478544785547856478574785847859478604786147862478634786447865478664786747868478694787047871478724787347874478754787647877478784787947880478814788247883478844788547886478874788847889478904789147892478934789447895478964789747898478994790047901479024790347904479054790647907479084790947910479114791247913479144791547916479174791847919479204792147922479234792447925479264792747928479294793047931479324793347934479354793647937479384793947940479414794247943479444794547946479474794847949479504795147952479534795447955479564795747958479594796047961479624796347964479654796647967479684796947970479714797247973479744797547976479774797847979479804798147982479834798447985479864798747988479894799047991479924799347994479954799647997479984799948000480014800248003480044800548006480074800848009480104801148012480134801448015480164801748018480194802048021480224802348024480254802648027480284802948030480314803248033480344803548036480374803848039480404804148042480434804448045480464804748048480494805048051480524805348054480554805648057480584805948060480614806248063480644806548066480674806848069480704807148072480734807448075480764807748078480794808048081480824808348084480854808648087480884808948090480914809248093480944809548096480974809848099481004810148102481034810448105481064810748108481094811048111481124811348114481154811648117
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.71 for curl -.
  4. #
  5. # Report bugs to <a suitable curl mailing list: https://curl.se/mail/>.
  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. # Copyright (c) 1998 - 2022 Daniel Stenberg, <[email protected]>
  16. # This configure script may be copied, distributed and modified under the
  17. # terms of the curl license; see COPYING for more details
  18. ## -------------------------------- ##
  19. ## XC_CONFIGURE_PREAMBLE ver: 1.0 ##
  20. ## -------------------------------- ##
  21. xc_configure_preamble_ver_major='1'
  22. xc_configure_preamble_ver_minor='0'
  23. #
  24. # Set IFS to space, tab and newline.
  25. #
  26. xc_space=' '
  27. xc_tab=' '
  28. xc_newline='
  29. '
  30. IFS="$xc_space$xc_tab$xc_newline"
  31. #
  32. # Set internationalization behavior variables.
  33. #
  34. LANG='C'
  35. LC_ALL='C'
  36. LANGUAGE='C'
  37. export LANG
  38. export LC_ALL
  39. export LANGUAGE
  40. #
  41. # Some useful variables.
  42. #
  43. xc_msg_warn='configure: WARNING:'
  44. xc_msg_abrt='Can not continue.'
  45. xc_msg_err='configure: error:'
  46. #
  47. # Verify that 'echo' command is available, otherwise abort.
  48. #
  49. xc_tst_str='unknown'
  50. (`echo "$xc_tst_str" >/dev/null 2>&1`) && xc_tst_str='success'
  51. case "x$xc_tst_str" in # ((
  52. xsuccess)
  53. :
  54. ;;
  55. *)
  56. # Try built-in echo, and fail.
  57. echo "$xc_msg_err 'echo' command not found. $xc_msg_abrt" >&2
  58. exit 1
  59. ;;
  60. esac
  61. #
  62. # Verify that 'test' command is available, otherwise abort.
  63. #
  64. xc_tst_str='unknown'
  65. (`test -n "$xc_tst_str" >/dev/null 2>&1`) && xc_tst_str='success'
  66. case "x$xc_tst_str" in # ((
  67. xsuccess)
  68. :
  69. ;;
  70. *)
  71. echo "$xc_msg_err 'test' command not found. $xc_msg_abrt" >&2
  72. exit 1
  73. ;;
  74. esac
  75. #
  76. # Verify that 'PATH' variable is set, otherwise abort.
  77. #
  78. xc_tst_str='unknown'
  79. (`test -n "$PATH" >/dev/null 2>&1`) && xc_tst_str='success'
  80. case "x$xc_tst_str" in # ((
  81. xsuccess)
  82. :
  83. ;;
  84. *)
  85. echo "$xc_msg_err 'PATH' variable not set. $xc_msg_abrt" >&2
  86. exit 1
  87. ;;
  88. esac
  89. #
  90. # Verify that 'expr' command is available, otherwise abort.
  91. #
  92. xc_tst_str='unknown'
  93. xc_tst_str=`expr "$xc_tst_str" : '.*' 2>/dev/null`
  94. case "x$xc_tst_str" in # ((
  95. x7)
  96. :
  97. ;;
  98. *)
  99. echo "$xc_msg_err 'expr' command not found. $xc_msg_abrt" >&2
  100. exit 1
  101. ;;
  102. esac
  103. #
  104. # Verify that 'sed' utility is found within 'PATH', otherwise abort.
  105. #
  106. xc_tst_str='unknown'
  107. xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
  108. | sed -e 's:unknown:success:' 2>/dev/null`
  109. case "x$xc_tst_str" in # ((
  110. xsuccess)
  111. :
  112. ;;
  113. *)
  114. echo "$xc_msg_err 'sed' utility not found in 'PATH'. $xc_msg_abrt" >&2
  115. exit 1
  116. ;;
  117. esac
  118. #
  119. # Verify that 'grep' utility is found within 'PATH', otherwise abort.
  120. #
  121. xc_tst_str='unknown'
  122. (`echo "$xc_tst_str" 2>/dev/null \
  123. | grep 'unknown' >/dev/null 2>&1`) && xc_tst_str='success'
  124. case "x$xc_tst_str" in # ((
  125. xsuccess)
  126. :
  127. ;;
  128. *)
  129. echo "$xc_msg_err 'grep' utility not found in 'PATH'. $xc_msg_abrt" >&2
  130. exit 1
  131. ;;
  132. esac
  133. #
  134. # Verify that 'tr' utility is found within 'PATH', otherwise abort.
  135. #
  136. xc_tst_str="${xc_tab}98s7u6c5c4e3s2s10"
  137. xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
  138. | tr -d "0123456789$xc_tab" 2>/dev/null`
  139. case "x$xc_tst_str" in # ((
  140. xsuccess)
  141. :
  142. ;;
  143. *)
  144. echo "$xc_msg_err 'tr' utility not found in 'PATH'. $xc_msg_abrt" >&2
  145. exit 1
  146. ;;
  147. esac
  148. #
  149. # Verify that 'wc' utility is found within 'PATH', otherwise abort.
  150. #
  151. xc_tst_str='unknown unknown unknown unknown'
  152. xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
  153. | wc -w 2>/dev/null | tr -d "$xc_space$xc_tab" 2>/dev/null`
  154. case "x$xc_tst_str" in # ((
  155. x4)
  156. :
  157. ;;
  158. *)
  159. echo "$xc_msg_err 'wc' utility not found in 'PATH'. $xc_msg_abrt" >&2
  160. exit 1
  161. ;;
  162. esac
  163. #
  164. # Verify that 'cat' utility is found within 'PATH', otherwise abort.
  165. #
  166. xc_tst_str='unknown'
  167. xc_tst_str=`cat <<_EOT 2>/dev/null \
  168. | wc -l 2>/dev/null | tr -d "$xc_space$xc_tab" 2>/dev/null
  169. unknown
  170. unknown
  171. unknown
  172. _EOT`
  173. case "x$xc_tst_str" in # ((
  174. x3)
  175. :
  176. ;;
  177. *)
  178. echo "$xc_msg_err 'cat' utility not found in 'PATH'. $xc_msg_abrt" >&2
  179. exit 1
  180. ;;
  181. esac
  182. #
  183. # Auto-detect and set 'PATH_SEPARATOR', unless it is already non-empty set.
  184. #
  185. # Directory count in 'PATH' when using a colon separator.
  186. xc_tst_dirs_col='x'
  187. xc_tst_prev_IFS=$IFS; IFS=':'
  188. for xc_tst_dir in $PATH; do
  189. IFS=$xc_tst_prev_IFS
  190. xc_tst_dirs_col="x$xc_tst_dirs_col"
  191. done
  192. IFS=$xc_tst_prev_IFS
  193. xc_tst_dirs_col=`expr "$xc_tst_dirs_col" : '.*'`
  194. # Directory count in 'PATH' when using a semicolon separator.
  195. xc_tst_dirs_sem='x'
  196. xc_tst_prev_IFS=$IFS; IFS=';'
  197. for xc_tst_dir in $PATH; do
  198. IFS=$xc_tst_prev_IFS
  199. xc_tst_dirs_sem="x$xc_tst_dirs_sem"
  200. done
  201. IFS=$xc_tst_prev_IFS
  202. xc_tst_dirs_sem=`expr "$xc_tst_dirs_sem" : '.*'`
  203. if test $xc_tst_dirs_sem -eq $xc_tst_dirs_col; then
  204. # When both counting methods give the same result we do not want to
  205. # chose one over the other, and consider auto-detection not possible.
  206. if test -z "$PATH_SEPARATOR"; then
  207. # User should provide the correct 'PATH_SEPARATOR' definition.
  208. # Until then, guess that it is colon!
  209. echo "$xc_msg_warn path separator not determined, guessing colon" >&2
  210. PATH_SEPARATOR=':'
  211. fi
  212. else
  213. # Separator with the greater directory count is the auto-detected one.
  214. if test $xc_tst_dirs_sem -gt $xc_tst_dirs_col; then
  215. xc_tst_auto_separator=';'
  216. else
  217. xc_tst_auto_separator=':'
  218. fi
  219. if test -z "$PATH_SEPARATOR"; then
  220. # Simply use the auto-detected one when not already set.
  221. PATH_SEPARATOR=$xc_tst_auto_separator
  222. elif test "x$PATH_SEPARATOR" != "x$xc_tst_auto_separator"; then
  223. echo "$xc_msg_warn 'PATH_SEPARATOR' does not match auto-detected one." >&2
  224. fi
  225. fi
  226. xc_PATH_SEPARATOR=$PATH_SEPARATOR
  227. xc_configure_preamble_result='yes'
  228. ## -------------------- ##
  229. ## M4sh Initialization. ##
  230. ## -------------------- ##
  231. # Be more Bourne compatible
  232. DUALCASE=1; export DUALCASE # for MKS sh
  233. as_nop=:
  234. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  235. then :
  236. emulate sh
  237. NULLCMD=:
  238. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  239. # is contrary to our usage. Disable this feature.
  240. alias -g '${1+"$@"}'='"$@"'
  241. setopt NO_GLOB_SUBST
  242. else $as_nop
  243. case `(set -o) 2>/dev/null` in #(
  244. *posix*) :
  245. set -o posix ;; #(
  246. *) :
  247. ;;
  248. esac
  249. fi
  250. # Reset variables that may have inherited troublesome values from
  251. # the environment.
  252. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  253. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  254. # side effect of setting IFS to empty, thus disabling word splitting.)
  255. # Quoting is to prevent editors from complaining about space-tab.
  256. as_nl='
  257. '
  258. export as_nl
  259. IFS=" "" $as_nl"
  260. PS1='$ '
  261. PS2='> '
  262. PS4='+ '
  263. # Ensure predictable behavior from utilities with locale-dependent output.
  264. LC_ALL=C
  265. export LC_ALL
  266. LANGUAGE=C
  267. export LANGUAGE
  268. # We cannot yet rely on "unset" to work, but we need these variables
  269. # to be unset--not just set to an empty or harmless value--now, to
  270. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  271. # also avoids known problems related to "unset" and subshell syntax
  272. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  273. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  274. do eval test \${$as_var+y} \
  275. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  276. done
  277. # Ensure that fds 0, 1, and 2 are open.
  278. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  279. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  280. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  281. # Find who we are. Look in the path if we contain no directory separator.
  282. as_myself=
  283. case $0 in #((
  284. *[\\/]* ) as_myself=$0 ;;
  285. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  286. for as_dir in $PATH
  287. do
  288. IFS=$as_save_IFS
  289. case $as_dir in #(((
  290. '') as_dir=./ ;;
  291. */) ;;
  292. *) as_dir=$as_dir/ ;;
  293. esac
  294. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  295. done
  296. IFS=$as_save_IFS
  297. ;;
  298. esac
  299. # We did not find ourselves, most probably we were run as `sh COMMAND'
  300. # in which case we are not to be found in the path.
  301. if test "x$as_myself" = x; then
  302. as_myself=$0
  303. fi
  304. if test ! -f "$as_myself"; then
  305. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  306. exit 1
  307. fi
  308. # Use a proper internal environment variable to ensure we don't fall
  309. # into an infinite loop, continuously re-executing ourselves.
  310. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  311. _as_can_reexec=no; export _as_can_reexec;
  312. # We cannot yet assume a decent shell, so we have to provide a
  313. # neutralization value for shells without unset; and this also
  314. # works around shells that cannot unset nonexistent variables.
  315. # Preserve -v and -x to the replacement shell.
  316. BASH_ENV=/dev/null
  317. ENV=/dev/null
  318. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  319. case $- in # ((((
  320. *v*x* | *x*v* ) as_opts=-vx ;;
  321. *v* ) as_opts=-v ;;
  322. *x* ) as_opts=-x ;;
  323. * ) as_opts= ;;
  324. esac
  325. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  326. # Admittedly, this is quite paranoid, since all the known shells bail
  327. # out after a failed `exec'.
  328. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
  329. exit 255
  330. fi
  331. # We don't want this to propagate to other subprocesses.
  332. { _as_can_reexec=; unset _as_can_reexec;}
  333. if test "x$CONFIG_SHELL" = x; then
  334. as_bourne_compatible="as_nop=:
  335. if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  336. then :
  337. emulate sh
  338. NULLCMD=:
  339. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  340. # is contrary to our usage. Disable this feature.
  341. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  342. setopt NO_GLOB_SUBST
  343. else \$as_nop
  344. case \`(set -o) 2>/dev/null\` in #(
  345. *posix*) :
  346. set -o posix ;; #(
  347. *) :
  348. ;;
  349. esac
  350. fi
  351. "
  352. as_required="as_fn_return () { (exit \$1); }
  353. as_fn_success () { as_fn_return 0; }
  354. as_fn_failure () { as_fn_return 1; }
  355. as_fn_ret_success () { return 0; }
  356. as_fn_ret_failure () { return 1; }
  357. exitcode=0
  358. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  359. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  360. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  361. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  362. if ( set x; as_fn_ret_success y && test x = \"\$1\" )
  363. then :
  364. else \$as_nop
  365. exitcode=1; echo positional parameters were not saved.
  366. fi
  367. test x\$exitcode = x0 || exit 1
  368. blah=\$(echo \$(echo blah))
  369. test x\"\$blah\" = xblah || exit 1
  370. test -x / || exit 1"
  371. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  372. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  373. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  374. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  375. test \$(( 1 + 1 )) = 2 || exit 1
  376. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  377. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  378. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  379. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  380. PATH=/empty FPATH=/empty; export PATH FPATH
  381. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  382. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
  383. if (eval "$as_required") 2>/dev/null
  384. then :
  385. as_have_required=yes
  386. else $as_nop
  387. as_have_required=no
  388. fi
  389. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
  390. then :
  391. else $as_nop
  392. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  393. as_found=false
  394. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  395. do
  396. IFS=$as_save_IFS
  397. case $as_dir in #(((
  398. '') as_dir=./ ;;
  399. */) ;;
  400. *) as_dir=$as_dir/ ;;
  401. esac
  402. as_found=:
  403. case $as_dir in #(
  404. /*)
  405. for as_base in sh bash ksh sh5; do
  406. # Try only shells that exist, to save several forks.
  407. as_shell=$as_dir$as_base
  408. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  409. as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
  410. then :
  411. CONFIG_SHELL=$as_shell as_have_required=yes
  412. if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
  413. then :
  414. break 2
  415. fi
  416. fi
  417. done;;
  418. esac
  419. as_found=false
  420. done
  421. IFS=$as_save_IFS
  422. if $as_found
  423. then :
  424. else $as_nop
  425. if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  426. as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
  427. then :
  428. CONFIG_SHELL=$SHELL as_have_required=yes
  429. fi
  430. fi
  431. if test "x$CONFIG_SHELL" != x
  432. then :
  433. export CONFIG_SHELL
  434. # We cannot yet assume a decent shell, so we have to provide a
  435. # neutralization value for shells without unset; and this also
  436. # works around shells that cannot unset nonexistent variables.
  437. # Preserve -v and -x to the replacement shell.
  438. BASH_ENV=/dev/null
  439. ENV=/dev/null
  440. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  441. case $- in # ((((
  442. *v*x* | *x*v* ) as_opts=-vx ;;
  443. *v* ) as_opts=-v ;;
  444. *x* ) as_opts=-x ;;
  445. * ) as_opts= ;;
  446. esac
  447. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  448. # Admittedly, this is quite paranoid, since all the known shells bail
  449. # out after a failed `exec'.
  450. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
  451. exit 255
  452. fi
  453. if test x$as_have_required = xno
  454. then :
  455. printf "%s\n" "$0: This script requires a shell more modern than all"
  456. printf "%s\n" "$0: the shells that I found on your system."
  457. if test ${ZSH_VERSION+y} ; then
  458. printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  459. printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
  460. else
  461. printf "%s\n" "$0: Please tell [email protected] and a suitable curl
  462. $0: mailing list: https://curl.se/mail/ about your system,
  463. $0: including any error possibly output before this
  464. $0: message. Then install a modern shell, or manually run
  465. $0: the script under such a shell if you do have one."
  466. fi
  467. exit 1
  468. fi
  469. fi
  470. fi
  471. SHELL=${CONFIG_SHELL-/bin/sh}
  472. export SHELL
  473. # Unset more variables known to interfere with behavior of common tools.
  474. CLICOLOR_FORCE= GREP_OPTIONS=
  475. unset CLICOLOR_FORCE GREP_OPTIONS
  476. ## --------------------- ##
  477. ## M4sh Shell Functions. ##
  478. ## --------------------- ##
  479. # as_fn_unset VAR
  480. # ---------------
  481. # Portably unset VAR.
  482. as_fn_unset ()
  483. {
  484. { eval $1=; unset $1;}
  485. }
  486. as_unset=as_fn_unset
  487. # as_fn_set_status STATUS
  488. # -----------------------
  489. # Set $? to STATUS, without forking.
  490. as_fn_set_status ()
  491. {
  492. return $1
  493. } # as_fn_set_status
  494. # as_fn_exit STATUS
  495. # -----------------
  496. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  497. as_fn_exit ()
  498. {
  499. set +e
  500. as_fn_set_status $1
  501. exit $1
  502. } # as_fn_exit
  503. # as_fn_nop
  504. # ---------
  505. # Do nothing but, unlike ":", preserve the value of $?.
  506. as_fn_nop ()
  507. {
  508. return $?
  509. }
  510. as_nop=as_fn_nop
  511. # as_fn_mkdir_p
  512. # -------------
  513. # Create "$as_dir" as a directory, including parents if necessary.
  514. as_fn_mkdir_p ()
  515. {
  516. case $as_dir in #(
  517. -*) as_dir=./$as_dir;;
  518. esac
  519. test -d "$as_dir" || eval $as_mkdir_p || {
  520. as_dirs=
  521. while :; do
  522. case $as_dir in #(
  523. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  524. *) as_qdir=$as_dir;;
  525. esac
  526. as_dirs="'$as_qdir' $as_dirs"
  527. as_dir=`$as_dirname -- "$as_dir" ||
  528. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  529. X"$as_dir" : 'X\(//\)[^/]' \| \
  530. X"$as_dir" : 'X\(//\)$' \| \
  531. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  532. printf "%s\n" X"$as_dir" |
  533. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  534. s//\1/
  535. q
  536. }
  537. /^X\(\/\/\)[^/].*/{
  538. s//\1/
  539. q
  540. }
  541. /^X\(\/\/\)$/{
  542. s//\1/
  543. q
  544. }
  545. /^X\(\/\).*/{
  546. s//\1/
  547. q
  548. }
  549. s/.*/./; q'`
  550. test -d "$as_dir" && break
  551. done
  552. test -z "$as_dirs" || eval "mkdir $as_dirs"
  553. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  554. } # as_fn_mkdir_p
  555. # as_fn_executable_p FILE
  556. # -----------------------
  557. # Test if FILE is an executable regular file.
  558. as_fn_executable_p ()
  559. {
  560. test -f "$1" && test -x "$1"
  561. } # as_fn_executable_p
  562. # as_fn_append VAR VALUE
  563. # ----------------------
  564. # Append the text in VALUE to the end of the definition contained in VAR. Take
  565. # advantage of any shell optimizations that allow amortized linear growth over
  566. # repeated appends, instead of the typical quadratic growth present in naive
  567. # implementations.
  568. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  569. then :
  570. eval 'as_fn_append ()
  571. {
  572. eval $1+=\$2
  573. }'
  574. else $as_nop
  575. as_fn_append ()
  576. {
  577. eval $1=\$$1\$2
  578. }
  579. fi # as_fn_append
  580. # as_fn_arith ARG...
  581. # ------------------
  582. # Perform arithmetic evaluation on the ARGs, and store the result in the
  583. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  584. # must be portable across $(()) and expr.
  585. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  586. then :
  587. eval 'as_fn_arith ()
  588. {
  589. as_val=$(( $* ))
  590. }'
  591. else $as_nop
  592. as_fn_arith ()
  593. {
  594. as_val=`expr "$@" || test $? -eq 1`
  595. }
  596. fi # as_fn_arith
  597. # as_fn_nop
  598. # ---------
  599. # Do nothing but, unlike ":", preserve the value of $?.
  600. as_fn_nop ()
  601. {
  602. return $?
  603. }
  604. as_nop=as_fn_nop
  605. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  606. # ----------------------------------------
  607. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  608. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  609. # script with STATUS, using 1 if that was 0.
  610. as_fn_error ()
  611. {
  612. as_status=$1; test $as_status -eq 0 && as_status=1
  613. if test "$4"; then
  614. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  615. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  616. fi
  617. printf "%s\n" "$as_me: error: $2" >&2
  618. as_fn_exit $as_status
  619. } # as_fn_error
  620. if expr a : '\(a\)' >/dev/null 2>&1 &&
  621. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  622. as_expr=expr
  623. else
  624. as_expr=false
  625. fi
  626. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  627. as_basename=basename
  628. else
  629. as_basename=false
  630. fi
  631. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  632. as_dirname=dirname
  633. else
  634. as_dirname=false
  635. fi
  636. as_me=`$as_basename -- "$0" ||
  637. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  638. X"$0" : 'X\(//\)$' \| \
  639. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  640. printf "%s\n" X/"$0" |
  641. sed '/^.*\/\([^/][^/]*\)\/*$/{
  642. s//\1/
  643. q
  644. }
  645. /^X\/\(\/\/\)$/{
  646. s//\1/
  647. q
  648. }
  649. /^X\/\(\/\).*/{
  650. s//\1/
  651. q
  652. }
  653. s/.*/./; q'`
  654. # Avoid depending upon Character Ranges.
  655. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  656. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  657. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  658. as_cr_digits='0123456789'
  659. as_cr_alnum=$as_cr_Letters$as_cr_digits
  660. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  661. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  662. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  663. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  664. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  665. sed -n '
  666. p
  667. /[$]LINENO/=
  668. ' <$as_myself |
  669. sed '
  670. s/[$]LINENO.*/&-/
  671. t lineno
  672. b
  673. :lineno
  674. N
  675. :loop
  676. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  677. t loop
  678. s/-\n.*//
  679. ' >$as_me.lineno &&
  680. chmod +x "$as_me.lineno" ||
  681. { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  682. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  683. # already done that, so ensure we don't try to do so again and fall
  684. # in an infinite loop. This has already happened in practice.
  685. _as_can_reexec=no; export _as_can_reexec
  686. # Don't try to exec as it changes $[0], causing all sort of problems
  687. # (the dirname of $[0] is not the place where we might find the
  688. # original and so on. Autoconf is especially sensitive to this).
  689. . "./$as_me.lineno"
  690. # Exit status is that of the last command.
  691. exit
  692. }
  693. # Determine whether it's possible to make 'echo' print without a newline.
  694. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  695. # for compatibility with existing Makefiles.
  696. ECHO_C= ECHO_N= ECHO_T=
  697. case `echo -n x` in #(((((
  698. -n*)
  699. case `echo 'xy\c'` in
  700. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  701. xy) ECHO_C='\c';;
  702. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  703. ECHO_T=' ';;
  704. esac;;
  705. *)
  706. ECHO_N='-n';;
  707. esac
  708. # For backward compatibility with old third-party macros, we provide
  709. # the shell variables $as_echo and $as_echo_n. New code should use
  710. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  711. as_echo='printf %s\n'
  712. as_echo_n='printf %s'
  713. rm -f conf$$ conf$$.exe conf$$.file
  714. if test -d conf$$.dir; then
  715. rm -f conf$$.dir/conf$$.file
  716. else
  717. rm -f conf$$.dir
  718. mkdir conf$$.dir 2>/dev/null
  719. fi
  720. if (echo >conf$$.file) 2>/dev/null; then
  721. if ln -s conf$$.file conf$$ 2>/dev/null; then
  722. as_ln_s='ln -s'
  723. # ... but there are two gotchas:
  724. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  725. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  726. # In both cases, we have to default to `cp -pR'.
  727. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  728. as_ln_s='cp -pR'
  729. elif ln conf$$.file conf$$ 2>/dev/null; then
  730. as_ln_s=ln
  731. else
  732. as_ln_s='cp -pR'
  733. fi
  734. else
  735. as_ln_s='cp -pR'
  736. fi
  737. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  738. rmdir conf$$.dir 2>/dev/null
  739. if mkdir -p . 2>/dev/null; then
  740. as_mkdir_p='mkdir -p "$as_dir"'
  741. else
  742. test -d ./-p && rmdir ./-p
  743. as_mkdir_p=false
  744. fi
  745. as_test_x='test -x'
  746. as_executable_p=as_fn_executable_p
  747. # Sed expression to map a string onto a valid CPP name.
  748. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  749. # Sed expression to map a string onto a valid variable name.
  750. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  751. SHELL=${CONFIG_SHELL-/bin/sh}
  752. test -n "$DJDIR" || exec 7<&0 </dev/null
  753. exec 6>&1
  754. # Name of the host.
  755. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  756. # so uname gets run too.
  757. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  758. #
  759. # Initializations.
  760. #
  761. ac_default_prefix=/usr/local
  762. ac_clean_files=
  763. ac_config_libobj_dir=.
  764. LIBOBJS=
  765. cross_compiling=no
  766. subdirs=
  767. MFLAGS=
  768. MAKEFLAGS=
  769. # Identity of this package.
  770. PACKAGE_NAME='curl'
  771. PACKAGE_TARNAME='curl'
  772. PACKAGE_VERSION='-'
  773. PACKAGE_STRING='curl -'
  774. PACKAGE_BUGREPORT='a suitable curl mailing list: https://curl.se/mail/'
  775. PACKAGE_URL=''
  776. ac_unique_file="lib/urldata.h"
  777. # Factoring default headers for most tests.
  778. ac_includes_default="\
  779. #include <stddef.h>
  780. #ifdef HAVE_STDIO_H
  781. # include <stdio.h>
  782. #endif
  783. #ifdef HAVE_STDLIB_H
  784. # include <stdlib.h>
  785. #endif
  786. #ifdef HAVE_STRING_H
  787. # include <string.h>
  788. #endif
  789. #ifdef HAVE_INTTYPES_H
  790. # include <inttypes.h>
  791. #endif
  792. #ifdef HAVE_STDINT_H
  793. # include <stdint.h>
  794. #endif
  795. #ifdef HAVE_STRINGS_H
  796. # include <strings.h>
  797. #endif
  798. #ifdef HAVE_SYS_TYPES_H
  799. # include <sys/types.h>
  800. #endif
  801. #ifdef HAVE_SYS_STAT_H
  802. # include <sys/stat.h>
  803. #endif
  804. #ifdef HAVE_UNISTD_H
  805. # include <unistd.h>
  806. #endif"
  807. ac_header_c_list=
  808. ac_subst_vars='am__EXEEXT_FALSE
  809. am__EXEEXT_TRUE
  810. LTLIBOBJS
  811. LIBOBJS
  812. SSL_BACKENDS
  813. SUPPORT_PROTOCOLS
  814. SUPPORT_FEATURES
  815. LIBCURL_NO_SHARED
  816. ENABLE_STATIC
  817. ENABLE_SHARED
  818. CROSSCOMPILING_FALSE
  819. CROSSCOMPILING_TRUE
  820. BLANK_AT_MAKETIME
  821. CURL_NETWORK_AND_TIME_LIBS
  822. CURL_NETWORK_LIBS
  823. LIBCURL_LIBS
  824. CFLAG_CURL_SYMBOL_HIDING
  825. DOING_CURL_SYMBOL_HIDING_FALSE
  826. DOING_CURL_SYMBOL_HIDING_TRUE
  827. USE_UNIX_SOCKETS
  828. BUILD_LIBHOSTNAME_FALSE
  829. BUILD_LIBHOSTNAME_TRUE
  830. USE_ARES
  831. USE_MANUAL_FALSE
  832. USE_MANUAL_TRUE
  833. MANOPT
  834. NROFF
  835. PERL
  836. FISH_FUNCTIONS_DIR
  837. ZSH_FUNCTIONS_DIR
  838. USE_MSH3
  839. USE_QUICHE
  840. USE_NGHTTP3
  841. USE_NGTCP2_CRYPTO_WOLFSSL
  842. USE_NGTCP2_CRYPTO_GNUTLS
  843. USE_NGTCP2_CRYPTO_OPENSSL
  844. USE_NGTCP2
  845. USE_NGHTTP2
  846. IDN_ENABLED
  847. CURL_PLIST_VERSION
  848. CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE
  849. CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE
  850. CURL_LT_SHLIB_VERSIONED_FLAVOUR
  851. USE_LIBRTMP
  852. USE_WOLFSSH
  853. USE_LIBSSH
  854. USE_LIBSSH2
  855. USE_GSASL_FALSE
  856. USE_GSASL_TRUE
  857. USE_LIBPSL_FALSE
  858. USE_LIBPSL_TRUE
  859. CURL_CA_BUNDLE
  860. CURL_WITH_MULTI_SSL
  861. SSL_ENABLED
  862. NSS_LIBS
  863. USE_NSS
  864. USE_RUSTLS
  865. USE_BEARSSL
  866. USE_WOLFSSL
  867. USE_MBEDTLS
  868. HAVE_GNUTLS_SRP
  869. USE_GNUTLS
  870. HAVE_OPENSSL_SRP
  871. RANDOM_FILE
  872. SSL_LIBS
  873. USE_SECTRANSP
  874. USE_WINDOWS_SSPI
  875. USE_SCHANNEL
  876. DEFAULT_SSL_BACKEND
  877. BUILD_STUB_GSS_FALSE
  878. BUILD_STUB_GSS_TRUE
  879. IPV6_ENABLED
  880. USE_OPENLDAP
  881. HAVE_ZSTD
  882. HAVE_BROTLI
  883. ZLIB_LIBS
  884. HAVE_LIBZ_FALSE
  885. HAVE_LIBZ_TRUE
  886. HAVE_LIBZ
  887. HAVE_PROTO_BSDSOCKET_H
  888. CURL_DISABLE_MQTT
  889. CURL_DISABLE_GOPHER
  890. CURL_DISABLE_SMTP
  891. CURL_DISABLE_SMB
  892. CURL_DISABLE_IMAP
  893. CURL_DISABLE_POP3
  894. CURL_DISABLE_TFTP
  895. CURL_DISABLE_TELNET
  896. CURL_DISABLE_DICT
  897. CURL_DISABLE_PROXY
  898. USE_HYPER
  899. PKGCONFIG
  900. HAVE_LDAP_SSL
  901. CURL_DISABLE_LDAPS
  902. CURL_DISABLE_LDAP
  903. CURL_DISABLE_FILE
  904. CURL_DISABLE_FTP
  905. CURL_DISABLE_RTSP
  906. CURL_DISABLE_HTTP
  907. USE_WIN32_CRYPTO
  908. USE_WIN32_SMALL_FILES
  909. USE_WIN32_LARGE_FILES
  910. DOING_NATIVE_WINDOWS_FALSE
  911. DOING_NATIVE_WINDOWS_TRUE
  912. BUILD_UNITTESTS_FALSE
  913. BUILD_UNITTESTS_TRUE
  914. CURLDEBUG_FALSE
  915. CURLDEBUG_TRUE
  916. CURL_CFLAG_EXTRAS
  917. USE_EXPLICIT_LIB_DEPS_FALSE
  918. USE_EXPLICIT_LIB_DEPS_TRUE
  919. REQUIRE_LIB_DEPS
  920. CPPFLAG_CURL_STATICLIB
  921. USE_CPPFLAG_CURL_STATICLIB_FALSE
  922. USE_CPPFLAG_CURL_STATICLIB_TRUE
  923. CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE
  924. CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE
  925. CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE
  926. CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE
  927. CURL_LT_SHLIB_USE_VERSION_INFO_FALSE
  928. CURL_LT_SHLIB_USE_VERSION_INFO_TRUE
  929. LT_SYS_LIBRARY_PATH
  930. OTOOL64
  931. OTOOL
  932. LIPO
  933. NMEDIT
  934. DSYMUTIL
  935. MANIFEST_TOOL
  936. RANLIB
  937. ac_ct_AR
  938. FILECMD
  939. LN_S
  940. NM
  941. ac_ct_DUMPBIN
  942. DUMPBIN
  943. LD
  944. FGREP
  945. LIBTOOL
  946. OBJDUMP
  947. DLLTOOL
  948. AS
  949. AR_FLAGS
  950. host_os
  951. host_vendor
  952. host_cpu
  953. host
  954. build_os
  955. build_vendor
  956. build_cpu
  957. build
  958. PKGADD_VENDOR
  959. PKGADD_NAME
  960. PKGADD_PKG
  961. VERSIONNUM
  962. CURLVERSION
  963. CSCOPE
  964. ETAGS
  965. CTAGS
  966. am__fastdepCC_FALSE
  967. am__fastdepCC_TRUE
  968. CCDEPMODE
  969. am__nodep
  970. AMDEPBACKSLASH
  971. AMDEP_FALSE
  972. AMDEP_TRUE
  973. am__include
  974. DEPDIR
  975. am__untar
  976. am__tar
  977. AMTAR
  978. am__leading_dot
  979. SET_MAKE
  980. AWK
  981. mkdir_p
  982. MKDIR_P
  983. INSTALL_STRIP_PROGRAM
  984. STRIP
  985. install_sh
  986. MAKEINFO
  987. AUTOHEADER
  988. AUTOMAKE
  989. AUTOCONF
  990. ACLOCAL
  991. VERSION
  992. PACKAGE
  993. CYGPATH_W
  994. am__isrc
  995. LCOV
  996. GCOV
  997. CPP
  998. OBJEXT
  999. EXEEXT
  1000. ac_ct_CC
  1001. CPPFLAGS
  1002. LDFLAGS
  1003. CFLAGS
  1004. CC
  1005. INSTALL_DATA
  1006. INSTALL_SCRIPT
  1007. INSTALL_PROGRAM
  1008. libext
  1009. AR
  1010. EGREP
  1011. GREP
  1012. SED
  1013. CONFIGURE_OPTIONS
  1014. AM_BACKSLASH
  1015. AM_DEFAULT_VERBOSITY
  1016. AM_DEFAULT_V
  1017. AM_V
  1018. MAINT
  1019. MAINTAINER_MODE_FALSE
  1020. MAINTAINER_MODE_TRUE
  1021. target_alias
  1022. host_alias
  1023. build_alias
  1024. LIBS
  1025. ECHO_T
  1026. ECHO_N
  1027. ECHO_C
  1028. DEFS
  1029. mandir
  1030. localedir
  1031. libdir
  1032. psdir
  1033. pdfdir
  1034. dvidir
  1035. htmldir
  1036. infodir
  1037. docdir
  1038. oldincludedir
  1039. includedir
  1040. runstatedir
  1041. localstatedir
  1042. sharedstatedir
  1043. sysconfdir
  1044. datadir
  1045. datarootdir
  1046. libexecdir
  1047. sbindir
  1048. bindir
  1049. program_transform_name
  1050. prefix
  1051. exec_prefix
  1052. PACKAGE_URL
  1053. PACKAGE_BUGREPORT
  1054. PACKAGE_STRING
  1055. PACKAGE_VERSION
  1056. PACKAGE_TARNAME
  1057. PACKAGE_NAME
  1058. SHELL
  1059. PATH_SEPARATOR
  1060. am__quote'
  1061. ac_subst_files=''
  1062. ac_user_opts='
  1063. enable_option_checking
  1064. enable_maintainer_mode
  1065. enable_silent_rules
  1066. enable_debug
  1067. enable_optimize
  1068. enable_warnings
  1069. enable_werror
  1070. enable_curldebug
  1071. enable_symbol_hiding
  1072. enable_ares
  1073. enable_rt
  1074. enable_ech
  1075. enable_code_coverage
  1076. enable_dependency_tracking
  1077. with_schannel
  1078. with_secure_transport
  1079. with_amissl
  1080. with_ssl
  1081. with_openssl
  1082. with_gnutls
  1083. with_mbedtls
  1084. with_wolfssl
  1085. with_bearssl
  1086. with_rustls
  1087. with_nss_deprecated
  1088. with_nss
  1089. with_darwinssl
  1090. enable_largefile
  1091. enable_shared
  1092. enable_static
  1093. with_pic
  1094. enable_fast_install
  1095. with_aix_soname
  1096. with_gnu_ld
  1097. with_sysroot
  1098. enable_libtool_lock
  1099. enable_http
  1100. enable_ftp
  1101. enable_file
  1102. enable_ldap
  1103. enable_ldaps
  1104. with_hyper
  1105. enable_rtsp
  1106. enable_proxy
  1107. enable_dict
  1108. enable_telnet
  1109. enable_tftp
  1110. enable_pop3
  1111. enable_imap
  1112. enable_smb
  1113. enable_smtp
  1114. enable_gopher
  1115. enable_mqtt
  1116. enable_manual
  1117. enable_libcurl_option
  1118. enable_libgcc
  1119. with_zlib
  1120. with_brotli
  1121. with_zstd
  1122. with_ldap_lib
  1123. with_lber_lib
  1124. enable_ipv6
  1125. with_gssapi_includes
  1126. with_gssapi_libs
  1127. with_gssapi
  1128. with_default_ssl_backend
  1129. with_egd_socket
  1130. with_random
  1131. enable_openssl_auto_load_config
  1132. with_ca_bundle
  1133. with_ca_path
  1134. with_ca_fallback
  1135. with_libpsl
  1136. with_libgsasl
  1137. with_libmetalink
  1138. with_libssh2
  1139. with_libssh
  1140. with_wolfssh
  1141. with_librtmp
  1142. enable_versioned_symbols
  1143. with_winidn
  1144. with_libidn2
  1145. with_nghttp2
  1146. with_ngtcp2
  1147. with_nghttp3
  1148. with_quiche
  1149. with_msh3
  1150. with_zsh_functions_dir
  1151. with_fish_functions_dir
  1152. enable_threaded_resolver
  1153. enable_pthreads
  1154. enable_verbose
  1155. enable_sspi
  1156. enable_crypto_auth
  1157. enable_ntlm
  1158. enable_ntlm_wb
  1159. enable_tls_srp
  1160. enable_unix_sockets
  1161. enable_cookies
  1162. enable_socketpair
  1163. enable_http_auth
  1164. enable_doh
  1165. enable_mime
  1166. enable_dateparse
  1167. enable_netrc
  1168. enable_progress_meter
  1169. enable_dnsshuffle
  1170. enable_get_easy_options
  1171. enable_alt_svc
  1172. enable_headers_api
  1173. enable_hsts
  1174. '
  1175. ac_precious_vars='build_alias
  1176. host_alias
  1177. target_alias
  1178. CC
  1179. CFLAGS
  1180. LDFLAGS
  1181. LIBS
  1182. CPPFLAGS
  1183. CPP
  1184. LT_SYS_LIBRARY_PATH'
  1185. # Initialize some variables set by options.
  1186. ac_init_help=
  1187. ac_init_version=false
  1188. ac_unrecognized_opts=
  1189. ac_unrecognized_sep=
  1190. # The variables have the same names as the options, with
  1191. # dashes changed to underlines.
  1192. cache_file=/dev/null
  1193. exec_prefix=NONE
  1194. no_create=
  1195. no_recursion=
  1196. prefix=NONE
  1197. program_prefix=NONE
  1198. program_suffix=NONE
  1199. program_transform_name=s,x,x,
  1200. silent=
  1201. site=
  1202. srcdir=
  1203. verbose=
  1204. x_includes=NONE
  1205. x_libraries=NONE
  1206. # Installation directory options.
  1207. # These are left unexpanded so users can "make install exec_prefix=/foo"
  1208. # and all the variables that are supposed to be based on exec_prefix
  1209. # by default will actually change.
  1210. # Use braces instead of parens because sh, perl, etc. also accept them.
  1211. # (The list follows the same order as the GNU Coding Standards.)
  1212. bindir='${exec_prefix}/bin'
  1213. sbindir='${exec_prefix}/sbin'
  1214. libexecdir='${exec_prefix}/libexec'
  1215. datarootdir='${prefix}/share'
  1216. datadir='${datarootdir}'
  1217. sysconfdir='${prefix}/etc'
  1218. sharedstatedir='${prefix}/com'
  1219. localstatedir='${prefix}/var'
  1220. runstatedir='${localstatedir}/run'
  1221. includedir='${prefix}/include'
  1222. oldincludedir='/usr/include'
  1223. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  1224. infodir='${datarootdir}/info'
  1225. htmldir='${docdir}'
  1226. dvidir='${docdir}'
  1227. pdfdir='${docdir}'
  1228. psdir='${docdir}'
  1229. libdir='${exec_prefix}/lib'
  1230. localedir='${datarootdir}/locale'
  1231. mandir='${datarootdir}/man'
  1232. ac_prev=
  1233. ac_dashdash=
  1234. for ac_option
  1235. do
  1236. # If the previous option needs an argument, assign it.
  1237. if test -n "$ac_prev"; then
  1238. eval $ac_prev=\$ac_option
  1239. ac_prev=
  1240. continue
  1241. fi
  1242. case $ac_option in
  1243. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  1244. *=) ac_optarg= ;;
  1245. *) ac_optarg=yes ;;
  1246. esac
  1247. case $ac_dashdash$ac_option in
  1248. --)
  1249. ac_dashdash=yes ;;
  1250. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  1251. ac_prev=bindir ;;
  1252. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  1253. bindir=$ac_optarg ;;
  1254. -build | --build | --buil | --bui | --bu)
  1255. ac_prev=build_alias ;;
  1256. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  1257. build_alias=$ac_optarg ;;
  1258. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1259. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1260. ac_prev=cache_file ;;
  1261. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1262. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  1263. cache_file=$ac_optarg ;;
  1264. --config-cache | -C)
  1265. cache_file=config.cache ;;
  1266. -datadir | --datadir | --datadi | --datad)
  1267. ac_prev=datadir ;;
  1268. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  1269. datadir=$ac_optarg ;;
  1270. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  1271. | --dataroo | --dataro | --datar)
  1272. ac_prev=datarootdir ;;
  1273. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  1274. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1275. datarootdir=$ac_optarg ;;
  1276. -disable-* | --disable-*)
  1277. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1278. # Reject names that are not valid shell variable names.
  1279. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1280. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  1281. ac_useropt_orig=$ac_useropt
  1282. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1283. case $ac_user_opts in
  1284. *"
  1285. "enable_$ac_useropt"
  1286. "*) ;;
  1287. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1288. ac_unrecognized_sep=', ';;
  1289. esac
  1290. eval enable_$ac_useropt=no ;;
  1291. -docdir | --docdir | --docdi | --doc | --do)
  1292. ac_prev=docdir ;;
  1293. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1294. docdir=$ac_optarg ;;
  1295. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1296. ac_prev=dvidir ;;
  1297. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1298. dvidir=$ac_optarg ;;
  1299. -enable-* | --enable-*)
  1300. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1301. # Reject names that are not valid shell variable names.
  1302. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1303. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  1304. ac_useropt_orig=$ac_useropt
  1305. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1306. case $ac_user_opts in
  1307. *"
  1308. "enable_$ac_useropt"
  1309. "*) ;;
  1310. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1311. ac_unrecognized_sep=', ';;
  1312. esac
  1313. eval enable_$ac_useropt=\$ac_optarg ;;
  1314. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1315. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1316. | --exec | --exe | --ex)
  1317. ac_prev=exec_prefix ;;
  1318. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1319. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1320. | --exec=* | --exe=* | --ex=*)
  1321. exec_prefix=$ac_optarg ;;
  1322. -gas | --gas | --ga | --g)
  1323. # Obsolete; use --with-gas.
  1324. with_gas=yes ;;
  1325. -help | --help | --hel | --he | -h)
  1326. ac_init_help=long ;;
  1327. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1328. ac_init_help=recursive ;;
  1329. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1330. ac_init_help=short ;;
  1331. -host | --host | --hos | --ho)
  1332. ac_prev=host_alias ;;
  1333. -host=* | --host=* | --hos=* | --ho=*)
  1334. host_alias=$ac_optarg ;;
  1335. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1336. ac_prev=htmldir ;;
  1337. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1338. | --ht=*)
  1339. htmldir=$ac_optarg ;;
  1340. -includedir | --includedir | --includedi | --included | --include \
  1341. | --includ | --inclu | --incl | --inc)
  1342. ac_prev=includedir ;;
  1343. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1344. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1345. includedir=$ac_optarg ;;
  1346. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1347. ac_prev=infodir ;;
  1348. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1349. infodir=$ac_optarg ;;
  1350. -libdir | --libdir | --libdi | --libd)
  1351. ac_prev=libdir ;;
  1352. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1353. libdir=$ac_optarg ;;
  1354. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1355. | --libexe | --libex | --libe)
  1356. ac_prev=libexecdir ;;
  1357. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1358. | --libexe=* | --libex=* | --libe=*)
  1359. libexecdir=$ac_optarg ;;
  1360. -localedir | --localedir | --localedi | --localed | --locale)
  1361. ac_prev=localedir ;;
  1362. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1363. localedir=$ac_optarg ;;
  1364. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1365. | --localstate | --localstat | --localsta | --localst | --locals)
  1366. ac_prev=localstatedir ;;
  1367. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1368. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1369. localstatedir=$ac_optarg ;;
  1370. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1371. ac_prev=mandir ;;
  1372. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1373. mandir=$ac_optarg ;;
  1374. -nfp | --nfp | --nf)
  1375. # Obsolete; use --without-fp.
  1376. with_fp=no ;;
  1377. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1378. | --no-cr | --no-c | -n)
  1379. no_create=yes ;;
  1380. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1381. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1382. no_recursion=yes ;;
  1383. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1384. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1385. | --oldin | --oldi | --old | --ol | --o)
  1386. ac_prev=oldincludedir ;;
  1387. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1388. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1389. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1390. oldincludedir=$ac_optarg ;;
  1391. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1392. ac_prev=prefix ;;
  1393. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1394. prefix=$ac_optarg ;;
  1395. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1396. | --program-pre | --program-pr | --program-p)
  1397. ac_prev=program_prefix ;;
  1398. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1399. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1400. program_prefix=$ac_optarg ;;
  1401. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1402. | --program-suf | --program-su | --program-s)
  1403. ac_prev=program_suffix ;;
  1404. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1405. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1406. program_suffix=$ac_optarg ;;
  1407. -program-transform-name | --program-transform-name \
  1408. | --program-transform-nam | --program-transform-na \
  1409. | --program-transform-n | --program-transform- \
  1410. | --program-transform | --program-transfor \
  1411. | --program-transfo | --program-transf \
  1412. | --program-trans | --program-tran \
  1413. | --progr-tra | --program-tr | --program-t)
  1414. ac_prev=program_transform_name ;;
  1415. -program-transform-name=* | --program-transform-name=* \
  1416. | --program-transform-nam=* | --program-transform-na=* \
  1417. | --program-transform-n=* | --program-transform-=* \
  1418. | --program-transform=* | --program-transfor=* \
  1419. | --program-transfo=* | --program-transf=* \
  1420. | --program-trans=* | --program-tran=* \
  1421. | --progr-tra=* | --program-tr=* | --program-t=*)
  1422. program_transform_name=$ac_optarg ;;
  1423. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1424. ac_prev=pdfdir ;;
  1425. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1426. pdfdir=$ac_optarg ;;
  1427. -psdir | --psdir | --psdi | --psd | --ps)
  1428. ac_prev=psdir ;;
  1429. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1430. psdir=$ac_optarg ;;
  1431. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1432. | -silent | --silent | --silen | --sile | --sil)
  1433. silent=yes ;;
  1434. -runstatedir | --runstatedir | --runstatedi | --runstated \
  1435. | --runstate | --runstat | --runsta | --runst | --runs \
  1436. | --run | --ru | --r)
  1437. ac_prev=runstatedir ;;
  1438. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  1439. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  1440. | --run=* | --ru=* | --r=*)
  1441. runstatedir=$ac_optarg ;;
  1442. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1443. ac_prev=sbindir ;;
  1444. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1445. | --sbi=* | --sb=*)
  1446. sbindir=$ac_optarg ;;
  1447. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1448. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1449. | --sharedst | --shareds | --shared | --share | --shar \
  1450. | --sha | --sh)
  1451. ac_prev=sharedstatedir ;;
  1452. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1453. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1454. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1455. | --sha=* | --sh=*)
  1456. sharedstatedir=$ac_optarg ;;
  1457. -site | --site | --sit)
  1458. ac_prev=site ;;
  1459. -site=* | --site=* | --sit=*)
  1460. site=$ac_optarg ;;
  1461. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1462. ac_prev=srcdir ;;
  1463. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1464. srcdir=$ac_optarg ;;
  1465. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1466. | --syscon | --sysco | --sysc | --sys | --sy)
  1467. ac_prev=sysconfdir ;;
  1468. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1469. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1470. sysconfdir=$ac_optarg ;;
  1471. -target | --target | --targe | --targ | --tar | --ta | --t)
  1472. ac_prev=target_alias ;;
  1473. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1474. target_alias=$ac_optarg ;;
  1475. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1476. verbose=yes ;;
  1477. -version | --version | --versio | --versi | --vers | -V)
  1478. ac_init_version=: ;;
  1479. -with-* | --with-*)
  1480. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1481. # Reject names that are not valid shell variable names.
  1482. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1483. as_fn_error $? "invalid package name: \`$ac_useropt'"
  1484. ac_useropt_orig=$ac_useropt
  1485. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1486. case $ac_user_opts in
  1487. *"
  1488. "with_$ac_useropt"
  1489. "*) ;;
  1490. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1491. ac_unrecognized_sep=', ';;
  1492. esac
  1493. eval with_$ac_useropt=\$ac_optarg ;;
  1494. -without-* | --without-*)
  1495. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1496. # Reject names that are not valid shell variable names.
  1497. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1498. as_fn_error $? "invalid package name: \`$ac_useropt'"
  1499. ac_useropt_orig=$ac_useropt
  1500. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1501. case $ac_user_opts in
  1502. *"
  1503. "with_$ac_useropt"
  1504. "*) ;;
  1505. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1506. ac_unrecognized_sep=', ';;
  1507. esac
  1508. eval with_$ac_useropt=no ;;
  1509. --x)
  1510. # Obsolete; use --with-x.
  1511. with_x=yes ;;
  1512. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1513. | --x-incl | --x-inc | --x-in | --x-i)
  1514. ac_prev=x_includes ;;
  1515. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1516. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1517. x_includes=$ac_optarg ;;
  1518. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1519. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1520. ac_prev=x_libraries ;;
  1521. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1522. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1523. x_libraries=$ac_optarg ;;
  1524. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1525. Try \`$0 --help' for more information"
  1526. ;;
  1527. *=*)
  1528. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1529. # Reject names that are not valid shell variable names.
  1530. case $ac_envvar in #(
  1531. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1532. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1533. esac
  1534. eval $ac_envvar=\$ac_optarg
  1535. export $ac_envvar ;;
  1536. *)
  1537. # FIXME: should be removed in autoconf 3.0.
  1538. printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
  1539. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1540. printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
  1541. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1542. ;;
  1543. esac
  1544. done
  1545. if test -n "$ac_prev"; then
  1546. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1547. as_fn_error $? "missing argument to $ac_option"
  1548. fi
  1549. if test -n "$ac_unrecognized_opts"; then
  1550. case $enable_option_checking in
  1551. no) ;;
  1552. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1553. *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1554. esac
  1555. fi
  1556. # Check all directory arguments for consistency.
  1557. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1558. datadir sysconfdir sharedstatedir localstatedir includedir \
  1559. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1560. libdir localedir mandir runstatedir
  1561. do
  1562. eval ac_val=\$$ac_var
  1563. # Remove trailing slashes.
  1564. case $ac_val in
  1565. */ )
  1566. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1567. eval $ac_var=\$ac_val;;
  1568. esac
  1569. # Be sure to have absolute directory names.
  1570. case $ac_val in
  1571. [\\/$]* | ?:[\\/]* ) continue;;
  1572. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1573. esac
  1574. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1575. done
  1576. # There might be people who depend on the old broken behavior: `$host'
  1577. # used to hold the argument of --host etc.
  1578. # FIXME: To remove some day.
  1579. build=$build_alias
  1580. host=$host_alias
  1581. target=$target_alias
  1582. # FIXME: To remove some day.
  1583. if test "x$host_alias" != x; then
  1584. if test "x$build_alias" = x; then
  1585. cross_compiling=maybe
  1586. elif test "x$build_alias" != "x$host_alias"; then
  1587. cross_compiling=yes
  1588. fi
  1589. fi
  1590. ac_tool_prefix=
  1591. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1592. test "$silent" = yes && exec 6>/dev/null
  1593. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1594. ac_ls_di=`ls -di .` &&
  1595. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1596. as_fn_error $? "working directory cannot be determined"
  1597. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1598. as_fn_error $? "pwd does not report name of working directory"
  1599. # Find the source files, if location was not specified.
  1600. if test -z "$srcdir"; then
  1601. ac_srcdir_defaulted=yes
  1602. # Try the directory containing this script, then the parent directory.
  1603. ac_confdir=`$as_dirname -- "$as_myself" ||
  1604. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1605. X"$as_myself" : 'X\(//\)[^/]' \| \
  1606. X"$as_myself" : 'X\(//\)$' \| \
  1607. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1608. printf "%s\n" X"$as_myself" |
  1609. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1610. s//\1/
  1611. q
  1612. }
  1613. /^X\(\/\/\)[^/].*/{
  1614. s//\1/
  1615. q
  1616. }
  1617. /^X\(\/\/\)$/{
  1618. s//\1/
  1619. q
  1620. }
  1621. /^X\(\/\).*/{
  1622. s//\1/
  1623. q
  1624. }
  1625. s/.*/./; q'`
  1626. srcdir=$ac_confdir
  1627. if test ! -r "$srcdir/$ac_unique_file"; then
  1628. srcdir=..
  1629. fi
  1630. else
  1631. ac_srcdir_defaulted=no
  1632. fi
  1633. if test ! -r "$srcdir/$ac_unique_file"; then
  1634. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1635. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1636. fi
  1637. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1638. ac_abs_confdir=`(
  1639. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1640. pwd)`
  1641. # When building in place, set srcdir=.
  1642. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1643. srcdir=.
  1644. fi
  1645. # Remove unnecessary trailing slashes from srcdir.
  1646. # Double slashes in file names in object file debugging info
  1647. # mess up M-x gdb in Emacs.
  1648. case $srcdir in
  1649. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1650. esac
  1651. for ac_var in $ac_precious_vars; do
  1652. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1653. eval ac_env_${ac_var}_value=\$${ac_var}
  1654. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1655. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1656. done
  1657. #
  1658. # Report the --help message.
  1659. #
  1660. if test "$ac_init_help" = "long"; then
  1661. # Omit some internal or obsolete options to make the list less imposing.
  1662. # This message is too long to be a string in the A/UX 3.1 sh.
  1663. cat <<_ACEOF
  1664. \`configure' configures curl - to adapt to many kinds of systems.
  1665. Usage: $0 [OPTION]... [VAR=VALUE]...
  1666. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1667. VAR=VALUE. See below for descriptions of some of the useful variables.
  1668. Defaults for the options are specified in brackets.
  1669. Configuration:
  1670. -h, --help display this help and exit
  1671. --help=short display options specific to this package
  1672. --help=recursive display the short help of all the included packages
  1673. -V, --version display version information and exit
  1674. -q, --quiet, --silent do not print \`checking ...' messages
  1675. --cache-file=FILE cache test results in FILE [disabled]
  1676. -C, --config-cache alias for \`--cache-file=config.cache'
  1677. -n, --no-create do not create output files
  1678. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1679. Installation directories:
  1680. --prefix=PREFIX install architecture-independent files in PREFIX
  1681. [$ac_default_prefix]
  1682. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1683. [PREFIX]
  1684. By default, \`make install' will install all the files in
  1685. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1686. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1687. for instance \`--prefix=\$HOME'.
  1688. For better control, use the options below.
  1689. Fine tuning of the installation directories:
  1690. --bindir=DIR user executables [EPREFIX/bin]
  1691. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1692. --libexecdir=DIR program executables [EPREFIX/libexec]
  1693. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1694. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1695. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1696. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1697. --libdir=DIR object code libraries [EPREFIX/lib]
  1698. --includedir=DIR C header files [PREFIX/include]
  1699. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1700. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1701. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1702. --infodir=DIR info documentation [DATAROOTDIR/info]
  1703. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1704. --mandir=DIR man documentation [DATAROOTDIR/man]
  1705. --docdir=DIR documentation root [DATAROOTDIR/doc/curl]
  1706. --htmldir=DIR html documentation [DOCDIR]
  1707. --dvidir=DIR dvi documentation [DOCDIR]
  1708. --pdfdir=DIR pdf documentation [DOCDIR]
  1709. --psdir=DIR ps documentation [DOCDIR]
  1710. _ACEOF
  1711. cat <<\_ACEOF
  1712. Program names:
  1713. --program-prefix=PREFIX prepend PREFIX to installed program names
  1714. --program-suffix=SUFFIX append SUFFIX to installed program names
  1715. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1716. System types:
  1717. --build=BUILD configure for building on BUILD [guessed]
  1718. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1719. _ACEOF
  1720. fi
  1721. if test -n "$ac_init_help"; then
  1722. case $ac_init_help in
  1723. short | recursive ) echo "Configuration of curl -:";;
  1724. esac
  1725. cat <<\_ACEOF
  1726. Optional Features:
  1727. --disable-option-checking ignore unrecognized --enable/--with options
  1728. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1729. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1730. --enable-maintainer-mode
  1731. enable make rules and dependencies not useful (and
  1732. sometimes confusing) to the casual installer
  1733. --enable-silent-rules less verbose build output (undo: "make V=1")
  1734. --disable-silent-rules verbose build output (undo: "make V=0")
  1735. --enable-debug Enable debug build options
  1736. --disable-debug Disable debug build options
  1737. --enable-optimize Enable compiler optimizations
  1738. --disable-optimize Disable compiler optimizations
  1739. --enable-warnings Enable strict compiler warnings
  1740. --disable-warnings Disable strict compiler warnings
  1741. --enable-werror Enable compiler warnings as errors
  1742. --disable-werror Disable compiler warnings as errors
  1743. --enable-curldebug Enable curl debug memory tracking
  1744. --disable-curldebug Disable curl debug memory tracking
  1745. --enable-symbol-hiding Enable hiding of library internal symbols
  1746. --disable-symbol-hiding Disable hiding of library internal symbols
  1747. --enable-ares[=PATH] Enable c-ares for DNS lookups
  1748. --disable-ares Disable c-ares for DNS lookups
  1749. --disable-rt disable dependency on -lrt
  1750. --enable-ech Enable ECH support
  1751. --disable-ech Disable ECH support
  1752. --enable-code-coverage Provide code coverage
  1753. --enable-dependency-tracking
  1754. do not reject slow dependency extractors
  1755. --disable-dependency-tracking
  1756. speeds up one-time build
  1757. --disable-largefile omit support for large files
  1758. --enable-shared[=PKGS] build shared libraries [default=yes]
  1759. --enable-static[=PKGS] build static libraries [default=yes]
  1760. --enable-fast-install[=PKGS]
  1761. optimize for fast installation [default=yes]
  1762. --disable-libtool-lock avoid locking (might break parallel builds)
  1763. --enable-http Enable HTTP support
  1764. --disable-http Disable HTTP support
  1765. --enable-ftp Enable FTP support
  1766. --disable-ftp Disable FTP support
  1767. --enable-file Enable FILE support
  1768. --disable-file Disable FILE support
  1769. --enable-ldap Enable LDAP support
  1770. --disable-ldap Disable LDAP support
  1771. --enable-ldaps Enable LDAPS support
  1772. --disable-ldaps Disable LDAPS support
  1773. --enable-rtsp Enable RTSP support
  1774. --disable-rtsp Disable RTSP support
  1775. --enable-proxy Enable proxy support
  1776. --disable-proxy Disable proxy support
  1777. --enable-dict Enable DICT support
  1778. --disable-dict Disable DICT support
  1779. --enable-telnet Enable TELNET support
  1780. --disable-telnet Disable TELNET support
  1781. --enable-tftp Enable TFTP support
  1782. --disable-tftp Disable TFTP support
  1783. --enable-pop3 Enable POP3 support
  1784. --disable-pop3 Disable POP3 support
  1785. --enable-imap Enable IMAP support
  1786. --disable-imap Disable IMAP support
  1787. --enable-smb Enable SMB/CIFS support
  1788. --disable-smb Disable SMB/CIFS support
  1789. --enable-smtp Enable SMTP support
  1790. --disable-smtp Disable SMTP support
  1791. --enable-gopher Enable Gopher support
  1792. --disable-gopher Disable Gopher support
  1793. --enable-mqtt Enable MQTT support
  1794. --disable-mqtt Disable MQTT support
  1795. --enable-manual Enable built-in manual
  1796. --disable-manual Disable built-in manual
  1797. --enable-libcurl-option Enable --libcurl C code generation support
  1798. --disable-libcurl-option
  1799. Disable --libcurl C code generation support
  1800. --enable-libgcc use libgcc when linking
  1801. --enable-ipv6 Enable IPv6 (with IPv4) support
  1802. --disable-ipv6 Disable IPv6 support
  1803. --enable-openssl-auto-load-config
  1804. Enable automatic loading of OpenSSL configuration
  1805. --disable-openssl-auto-load-config
  1806. Disable automatic loading of OpenSSL configuration
  1807. --enable-versioned-symbols
  1808. Enable versioned symbols in shared library
  1809. --disable-versioned-symbols
  1810. Disable versioned symbols in shared library
  1811. --enable-threaded-resolver
  1812. Enable threaded resolver
  1813. --disable-threaded-resolver
  1814. Disable threaded resolver
  1815. --enable-pthreads Enable POSIX threads (default for threaded resolver)
  1816. --disable-pthreads Disable POSIX threads
  1817. --enable-verbose Enable verbose strings
  1818. --disable-verbose Disable verbose strings
  1819. --enable-sspi Enable SSPI
  1820. --disable-sspi Disable SSPI
  1821. --enable-crypto-auth Enable cryptographic authentication
  1822. --disable-crypto-auth Disable cryptographic authentication
  1823. --enable-ntlm Enable NTLM support
  1824. --disable-ntlm Disable NTLM support
  1825. --enable-ntlm-wb[=FILE] Enable NTLM delegation to winbind's ntlm_auth
  1826. helper, where FILE is ntlm_auth's absolute filename
  1827. (default: /usr/bin/ntlm_auth)
  1828. --disable-ntlm-wb Disable NTLM delegation to winbind's ntlm_auth
  1829. helper
  1830. --enable-tls-srp Enable TLS-SRP authentication
  1831. --disable-tls-srp Disable TLS-SRP authentication
  1832. --enable-unix-sockets Enable Unix domain sockets
  1833. --disable-unix-sockets Disable Unix domain sockets
  1834. --enable-cookies Enable cookies support
  1835. --disable-cookies Disable cookies support
  1836. --enable-socketpair Enable socketpair support
  1837. --disable-socketpair Disable socketpair support
  1838. --enable-http-auth Enable HTTP authentication support
  1839. --disable-http-auth Disable HTTP authentication support
  1840. --enable-doh Enable DoH support
  1841. --disable-doh Disable DoH support
  1842. --enable-mime Enable mime API support
  1843. --disable-mime Disable mime API support
  1844. --enable-dateparse Enable date parsing
  1845. --disable-dateparse Disable date parsing
  1846. --enable-netrc Enable netrc parsing
  1847. --disable-netrc Disable netrc parsing
  1848. --enable-progress-meter Enable progress-meter
  1849. --disable-progress-meter
  1850. Disable progress-meter
  1851. --enable-dnsshuffle Enable DNS shuffling
  1852. --disable-dnsshuffle Disable DNS shuffling
  1853. --enable-get-easy-options
  1854. Enable curl_easy_options
  1855. --disable-get-easy-options
  1856. Disable curl_easy_options
  1857. --enable-alt-svc Enable alt-svc support
  1858. --disable-alt-svc Disable alt-svc support
  1859. --enable-headers-api Enable headers-api support
  1860. --disable-headers-api Disable headers-api support
  1861. --enable-hsts Enable HSTS support
  1862. --disable-hsts Disable HSTS support
  1863. Optional Packages:
  1864. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1865. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1866. --with-schannel enable Windows native SSL/TLS
  1867. --with-secure-transport enable Apple OS native SSL/TLS
  1868. --with-amissl enable Amiga native SSL/TLS (AmiSSL)
  1869. --with-ssl=PATH old version of --with-openssl
  1870. --without-ssl build without any TLS library
  1871. --with-openssl=PATH Where to look for OpenSSL, PATH points to the SSL
  1872. installation (default: /usr/local/ssl); when
  1873. possible, set the PKG_CONFIG_PATH environment
  1874. variable instead of using this option
  1875. --with-gnutls=PATH where to look for GnuTLS, PATH points to the
  1876. installation root
  1877. --with-mbedtls=PATH where to look for mbedTLS, PATH points to the
  1878. installation root
  1879. --with-wolfssl=PATH where to look for WolfSSL, PATH points to the
  1880. installation root (default: system lib default)
  1881. --with-bearssl=PATH where to look for BearSSL, PATH points to the
  1882. installation root
  1883. --with-rustls=PATH where to look for rustls, PATH points to the
  1884. installation root
  1885. --with-nss-deprecated confirm you realize NSS is going away
  1886. --with-nss=PATH where to look for NSS, PATH points to the
  1887. installation root
  1888. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1889. both]
  1890. --with-aix-soname=aix|svr4|both
  1891. shared library versioning (aka "SONAME") variant to
  1892. provide on AIX, [default=aix].
  1893. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1894. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1895. compiler's sysroot if not specified).
  1896. --with-hyper=PATH Enable hyper usage
  1897. --without-hyper Disable hyper usage
  1898. --with-zlib=PATH search for zlib in PATH
  1899. --without-zlib disable use of zlib
  1900. --with-brotli=PATH Where to look for brotli, PATH points to the BROTLI
  1901. installation; when possible, set the PKG_CONFIG_PATH
  1902. environment variable instead of using this option
  1903. --without-brotli disable BROTLI
  1904. --with-zstd=PATH Where to look for libzstd, PATH points to the
  1905. libzstd installation; when possible, set the
  1906. PKG_CONFIG_PATH environment variable instead of
  1907. using this option
  1908. --without-zstd disable libzstd
  1909. --with-ldap-lib=libname Specify name of ldap lib file
  1910. --with-lber-lib=libname Specify name of lber lib file
  1911. --with-gssapi-includes=DIR
  1912. Specify location of GSS-API headers
  1913. --with-gssapi-libs=DIR Specify location of GSS-API libs
  1914. --with-gssapi=DIR Where to look for GSS-API
  1915. --with-default-ssl-backend=NAME
  1916. Use NAME as default SSL backend
  1917. --without-default-ssl-backend
  1918. Use implicit default SSL backend
  1919. --with-egd-socket=FILE Entropy Gathering Daemon socket pathname
  1920. --with-random=FILE read randomness from FILE (default=/dev/urandom)
  1921. --with-ca-bundle=FILE Path to a file containing CA certificates (example:
  1922. /etc/ca-bundle.crt)
  1923. --without-ca-bundle Don't use a default CA bundle
  1924. --with-ca-path=DIRECTORY
  1925. Path to a directory containing CA certificates
  1926. stored individually, with their filenames in a hash
  1927. format. This option can be used with the OpenSSL,
  1928. GnuTLS and mbedTLS backends. Refer to OpenSSL
  1929. c_rehash for details. (example: /etc/certificates)
  1930. --without-ca-path Don't use a default CA path
  1931. --with-ca-fallback Use the built in CA store of the SSL library
  1932. --without-ca-fallback Don't use the built in CA store of the SSL library
  1933. --without-libpsl disable support for libpsl cookie checking
  1934. --without-libgsasl disable libgsasl support for SCRAM
  1935. --with-libssh2=PATH Where to look for libssh2, PATH points to the
  1936. libssh2 installation; when possible, set the
  1937. PKG_CONFIG_PATH environment variable instead of
  1938. using this option
  1939. --with-libssh2 enable libssh2
  1940. --with-libssh=PATH Where to look for libssh, PATH points to the libssh
  1941. installation; when possible, set the PKG_CONFIG_PATH
  1942. environment variable instead of using this option
  1943. --with-libssh enable libssh
  1944. --with-wolfssh=PATH Where to look for wolfssh, PATH points to the
  1945. wolfSSH installation; when possible, set the
  1946. PKG_CONFIG_PATH environment variable instead of
  1947. using this option
  1948. --with-wolfssh enable wolfssh
  1949. --with-librtmp=PATH Where to look for librtmp, PATH points to the
  1950. LIBRTMP installation; when possible, set the
  1951. PKG_CONFIG_PATH environment variable instead of
  1952. using this option
  1953. --without-librtmp disable LIBRTMP
  1954. --with-winidn=PATH enable Windows native IDN
  1955. --without-winidn disable Windows native IDN
  1956. --with-libidn2=PATH Enable libidn2 usage
  1957. --without-libidn2 Disable libidn2 usage
  1958. --with-nghttp2=PATH Enable nghttp2 usage
  1959. --without-nghttp2 Disable nghttp2 usage
  1960. --with-ngtcp2=PATH Enable ngtcp2 usage
  1961. --without-ngtcp2 Disable ngtcp2 usage
  1962. --with-nghttp3=PATH Enable nghttp3 usage
  1963. --without-nghttp3 Disable nghttp3 usage
  1964. --with-quiche=PATH Enable quiche usage
  1965. --without-quiche Disable quiche usage
  1966. --with-msh3=PATH Enable msh3 usage
  1967. --without-msh3 Disable msh3 usage
  1968. --with-zsh-functions-dir=PATH
  1969. Install zsh completions to PATH
  1970. --without-zsh-functions-dir
  1971. Do not install zsh completions
  1972. --with-fish-functions-dir=PATH
  1973. Install fish completions to PATH
  1974. --without-fish-functions-dir
  1975. Do not install fish completions
  1976. Some influential environment variables:
  1977. CC C compiler command
  1978. CFLAGS C compiler flags
  1979. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1980. nonstandard directory <lib dir>
  1981. LIBS libraries to pass to the linker, e.g. -l<library>
  1982. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1983. you have headers in a nonstandard directory <include dir>
  1984. CPP C preprocessor
  1985. LT_SYS_LIBRARY_PATH
  1986. User-defined run-time library search path.
  1987. Use these variables to override the choices made by `configure' or to help
  1988. it to find libraries and programs with nonstandard names/locations.
  1989. Report bugs to <a suitable curl mailing list: https://curl.se/mail/>.
  1990. _ACEOF
  1991. ac_status=$?
  1992. fi
  1993. if test "$ac_init_help" = "recursive"; then
  1994. # If there are subdirs, report their specific --help.
  1995. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1996. test -d "$ac_dir" ||
  1997. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1998. continue
  1999. ac_builddir=.
  2000. case "$ac_dir" in
  2001. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  2002. *)
  2003. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  2004. # A ".." for each directory in $ac_dir_suffix.
  2005. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  2006. case $ac_top_builddir_sub in
  2007. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  2008. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  2009. esac ;;
  2010. esac
  2011. ac_abs_top_builddir=$ac_pwd
  2012. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  2013. # for backward compatibility:
  2014. ac_top_builddir=$ac_top_build_prefix
  2015. case $srcdir in
  2016. .) # We are building in place.
  2017. ac_srcdir=.
  2018. ac_top_srcdir=$ac_top_builddir_sub
  2019. ac_abs_top_srcdir=$ac_pwd ;;
  2020. [\\/]* | ?:[\\/]* ) # Absolute name.
  2021. ac_srcdir=$srcdir$ac_dir_suffix;
  2022. ac_top_srcdir=$srcdir
  2023. ac_abs_top_srcdir=$srcdir ;;
  2024. *) # Relative name.
  2025. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  2026. ac_top_srcdir=$ac_top_build_prefix$srcdir
  2027. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  2028. esac
  2029. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  2030. cd "$ac_dir" || { ac_status=$?; continue; }
  2031. # Check for configure.gnu first; this name is used for a wrapper for
  2032. # Metaconfig's "Configure" on case-insensitive file systems.
  2033. if test -f "$ac_srcdir/configure.gnu"; then
  2034. echo &&
  2035. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  2036. elif test -f "$ac_srcdir/configure"; then
  2037. echo &&
  2038. $SHELL "$ac_srcdir/configure" --help=recursive
  2039. else
  2040. printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  2041. fi || ac_status=$?
  2042. cd "$ac_pwd" || { ac_status=$?; break; }
  2043. done
  2044. fi
  2045. test -n "$ac_init_help" && exit $ac_status
  2046. if $ac_init_version; then
  2047. cat <<\_ACEOF
  2048. curl configure -
  2049. generated by GNU Autoconf 2.71
  2050. Copyright (C) 2021 Free Software Foundation, Inc.
  2051. This configure script is free software; the Free Software Foundation
  2052. gives unlimited permission to copy, distribute and modify it.
  2053. Copyright (c) 1998 - 2022 Daniel Stenberg, <[email protected]>
  2054. This configure script may be copied, distributed and modified under the
  2055. terms of the curl license; see COPYING for more details
  2056. _ACEOF
  2057. exit
  2058. fi
  2059. ## ------------------------ ##
  2060. ## Autoconf initialization. ##
  2061. ## ------------------------ ##
  2062. # ac_fn_c_try_compile LINENO
  2063. # --------------------------
  2064. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  2065. ac_fn_c_try_compile ()
  2066. {
  2067. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2068. rm -f conftest.$ac_objext conftest.beam
  2069. if { { ac_try="$ac_compile"
  2070. case "(($ac_try" in
  2071. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2072. *) ac_try_echo=$ac_try;;
  2073. esac
  2074. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2075. printf "%s\n" "$ac_try_echo"; } >&5
  2076. (eval "$ac_compile") 2>conftest.err
  2077. ac_status=$?
  2078. if test -s conftest.err; then
  2079. grep -v '^ *+' conftest.err >conftest.er1
  2080. cat conftest.er1 >&5
  2081. mv -f conftest.er1 conftest.err
  2082. fi
  2083. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2084. test $ac_status = 0; } && {
  2085. test -z "$ac_c_werror_flag" ||
  2086. test ! -s conftest.err
  2087. } && test -s conftest.$ac_objext
  2088. then :
  2089. ac_retval=0
  2090. else $as_nop
  2091. printf "%s\n" "$as_me: failed program was:" >&5
  2092. sed 's/^/| /' conftest.$ac_ext >&5
  2093. ac_retval=1
  2094. fi
  2095. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2096. as_fn_set_status $ac_retval
  2097. } # ac_fn_c_try_compile
  2098. # ac_fn_c_try_cpp LINENO
  2099. # ----------------------
  2100. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  2101. ac_fn_c_try_cpp ()
  2102. {
  2103. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2104. if { { ac_try="$ac_cpp conftest.$ac_ext"
  2105. case "(($ac_try" in
  2106. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2107. *) ac_try_echo=$ac_try;;
  2108. esac
  2109. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2110. printf "%s\n" "$ac_try_echo"; } >&5
  2111. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2112. ac_status=$?
  2113. if test -s conftest.err; then
  2114. grep -v '^ *+' conftest.err >conftest.er1
  2115. cat conftest.er1 >&5
  2116. mv -f conftest.er1 conftest.err
  2117. fi
  2118. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2119. test $ac_status = 0; } > conftest.i && {
  2120. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  2121. test ! -s conftest.err
  2122. }
  2123. then :
  2124. ac_retval=0
  2125. else $as_nop
  2126. printf "%s\n" "$as_me: failed program was:" >&5
  2127. sed 's/^/| /' conftest.$ac_ext >&5
  2128. ac_retval=1
  2129. fi
  2130. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2131. as_fn_set_status $ac_retval
  2132. } # ac_fn_c_try_cpp
  2133. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  2134. # -------------------------------------------------------
  2135. # Tests whether HEADER exists and can be compiled using the include files in
  2136. # INCLUDES, setting the cache variable VAR accordingly.
  2137. ac_fn_c_check_header_compile ()
  2138. {
  2139. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2140. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2141. printf %s "checking for $2... " >&6; }
  2142. if eval test \${$3+y}
  2143. then :
  2144. printf %s "(cached) " >&6
  2145. else $as_nop
  2146. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2147. /* end confdefs.h. */
  2148. $4
  2149. #include <$2>
  2150. _ACEOF
  2151. if ac_fn_c_try_compile "$LINENO"
  2152. then :
  2153. eval "$3=yes"
  2154. else $as_nop
  2155. eval "$3=no"
  2156. fi
  2157. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2158. fi
  2159. eval ac_res=\$$3
  2160. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2161. printf "%s\n" "$ac_res" >&6; }
  2162. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2163. } # ac_fn_c_check_header_compile
  2164. # ac_fn_c_try_link LINENO
  2165. # -----------------------
  2166. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2167. ac_fn_c_try_link ()
  2168. {
  2169. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2170. rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  2171. if { { ac_try="$ac_link"
  2172. case "(($ac_try" in
  2173. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2174. *) ac_try_echo=$ac_try;;
  2175. esac
  2176. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2177. printf "%s\n" "$ac_try_echo"; } >&5
  2178. (eval "$ac_link") 2>conftest.err
  2179. ac_status=$?
  2180. if test -s conftest.err; then
  2181. grep -v '^ *+' conftest.err >conftest.er1
  2182. cat conftest.er1 >&5
  2183. mv -f conftest.er1 conftest.err
  2184. fi
  2185. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2186. test $ac_status = 0; } && {
  2187. test -z "$ac_c_werror_flag" ||
  2188. test ! -s conftest.err
  2189. } && test -s conftest$ac_exeext && {
  2190. test "$cross_compiling" = yes ||
  2191. test -x conftest$ac_exeext
  2192. }
  2193. then :
  2194. ac_retval=0
  2195. else $as_nop
  2196. printf "%s\n" "$as_me: failed program was:" >&5
  2197. sed 's/^/| /' conftest.$ac_ext >&5
  2198. ac_retval=1
  2199. fi
  2200. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2201. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2202. # interfere with the next link command; also delete a directory that is
  2203. # left behind by Apple's compiler. We do this before executing the actions.
  2204. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2205. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2206. as_fn_set_status $ac_retval
  2207. } # ac_fn_c_try_link
  2208. # ac_fn_c_check_func LINENO FUNC VAR
  2209. # ----------------------------------
  2210. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  2211. ac_fn_c_check_func ()
  2212. {
  2213. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2214. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2215. printf %s "checking for $2... " >&6; }
  2216. if eval test \${$3+y}
  2217. then :
  2218. printf %s "(cached) " >&6
  2219. else $as_nop
  2220. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2221. /* end confdefs.h. */
  2222. #define $2 innocuous_$2
  2223. #ifdef __STDC__
  2224. # include <limits.h>
  2225. #else
  2226. # include <assert.h>
  2227. #endif
  2228. #undef $2
  2229. #ifdef __cplusplus
  2230. extern "C"
  2231. #endif
  2232. char $2 ();
  2233. #if defined __stub_$2 || defined __stub___$2
  2234. choke me
  2235. #endif
  2236. int main (void)
  2237. {
  2238. return $2 ();
  2239. ;
  2240. return 0;
  2241. }
  2242. _ACEOF
  2243. if ac_fn_c_try_link "$LINENO"
  2244. then :
  2245. eval "$3=yes"
  2246. else $as_nop
  2247. eval "$3=no"
  2248. fi
  2249. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  2250. conftest$ac_exeext conftest.$ac_ext
  2251. fi
  2252. eval ac_res=\$$3
  2253. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2254. printf "%s\n" "$ac_res" >&6; }
  2255. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2256. } # ac_fn_c_check_func
  2257. # ac_fn_c_try_run LINENO
  2258. # ----------------------
  2259. # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
  2260. # executables *can* be run.
  2261. ac_fn_c_try_run ()
  2262. {
  2263. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2264. if { { ac_try="$ac_link"
  2265. case "(($ac_try" in
  2266. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2267. *) ac_try_echo=$ac_try;;
  2268. esac
  2269. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2270. printf "%s\n" "$ac_try_echo"; } >&5
  2271. (eval "$ac_link") 2>&5
  2272. ac_status=$?
  2273. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2274. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  2275. { { case "(($ac_try" in
  2276. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2277. *) ac_try_echo=$ac_try;;
  2278. esac
  2279. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2280. printf "%s\n" "$ac_try_echo"; } >&5
  2281. (eval "$ac_try") 2>&5
  2282. ac_status=$?
  2283. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2284. test $ac_status = 0; }; }
  2285. then :
  2286. ac_retval=0
  2287. else $as_nop
  2288. printf "%s\n" "$as_me: program exited with status $ac_status" >&5
  2289. printf "%s\n" "$as_me: failed program was:" >&5
  2290. sed 's/^/| /' conftest.$ac_ext >&5
  2291. ac_retval=$ac_status
  2292. fi
  2293. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2294. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2295. as_fn_set_status $ac_retval
  2296. } # ac_fn_c_try_run
  2297. # ac_fn_c_check_type LINENO SIZEOF_LONG_LONG VAR INCLUDES
  2298. # -------------------------------------------------------
  2299. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2300. # variable VAR accordingly.
  2301. ac_fn_c_check_type ()
  2302. {
  2303. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2304. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2305. printf %s "checking for $2... " >&6; }
  2306. if eval test \${$3+y}
  2307. then :
  2308. printf %s "(cached) " >&6
  2309. else $as_nop
  2310. eval "$3=no"
  2311. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2312. /* end confdefs.h. */
  2313. $4
  2314. int main (void)
  2315. {
  2316. if (sizeof ($2))
  2317. return 0;
  2318. ;
  2319. return 0;
  2320. }
  2321. _ACEOF
  2322. if ac_fn_c_try_compile "$LINENO"
  2323. then :
  2324. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2325. /* end confdefs.h. */
  2326. $4
  2327. int main (void)
  2328. {
  2329. if (sizeof (($2)))
  2330. return 0;
  2331. ;
  2332. return 0;
  2333. }
  2334. _ACEOF
  2335. if ac_fn_c_try_compile "$LINENO"
  2336. then :
  2337. else $as_nop
  2338. eval "$3=yes"
  2339. fi
  2340. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2341. fi
  2342. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2343. fi
  2344. eval ac_res=\$$3
  2345. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2346. printf "%s\n" "$ac_res" >&6; }
  2347. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2348. } # ac_fn_c_check_type
  2349. # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
  2350. # ------------------------------------------------------------------
  2351. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  2352. # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
  2353. ac_fn_check_decl ()
  2354. {
  2355. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2356. as_decl_name=`echo $2|sed 's/ *(.*//'`
  2357. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  2358. printf %s "checking whether $as_decl_name is declared... " >&6; }
  2359. if eval test \${$3+y}
  2360. then :
  2361. printf %s "(cached) " >&6
  2362. else $as_nop
  2363. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  2364. eval ac_save_FLAGS=\$$6
  2365. as_fn_append $6 " $5"
  2366. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2367. /* end confdefs.h. */
  2368. $4
  2369. int main (void)
  2370. {
  2371. #ifndef $as_decl_name
  2372. #ifdef __cplusplus
  2373. (void) $as_decl_use;
  2374. #else
  2375. (void) $as_decl_name;
  2376. #endif
  2377. #endif
  2378. ;
  2379. return 0;
  2380. }
  2381. _ACEOF
  2382. if ac_fn_c_try_compile "$LINENO"
  2383. then :
  2384. eval "$3=yes"
  2385. else $as_nop
  2386. eval "$3=no"
  2387. fi
  2388. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2389. eval $6=\$ac_save_FLAGS
  2390. fi
  2391. eval ac_res=\$$3
  2392. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2393. printf "%s\n" "$ac_res" >&6; }
  2394. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2395. } # ac_fn_check_decl
  2396. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2397. # ----------------------------------------------------
  2398. # Tries to find if the field MEMBER exists in type AGGR, after including
  2399. # INCLUDES, setting cache variable VAR accordingly.
  2400. ac_fn_c_check_member ()
  2401. {
  2402. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2403. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2404. printf %s "checking for $2.$3... " >&6; }
  2405. if eval test \${$4+y}
  2406. then :
  2407. printf %s "(cached) " >&6
  2408. else $as_nop
  2409. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2410. /* end confdefs.h. */
  2411. $5
  2412. int main (void)
  2413. {
  2414. static $2 ac_aggr;
  2415. if (ac_aggr.$3)
  2416. return 0;
  2417. ;
  2418. return 0;
  2419. }
  2420. _ACEOF
  2421. if ac_fn_c_try_compile "$LINENO"
  2422. then :
  2423. eval "$4=yes"
  2424. else $as_nop
  2425. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2426. /* end confdefs.h. */
  2427. $5
  2428. int main (void)
  2429. {
  2430. static $2 ac_aggr;
  2431. if (sizeof ac_aggr.$3)
  2432. return 0;
  2433. ;
  2434. return 0;
  2435. }
  2436. _ACEOF
  2437. if ac_fn_c_try_compile "$LINENO"
  2438. then :
  2439. eval "$4=yes"
  2440. else $as_nop
  2441. eval "$4=no"
  2442. fi
  2443. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2444. fi
  2445. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2446. fi
  2447. eval ac_res=\$$4
  2448. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2449. printf "%s\n" "$ac_res" >&6; }
  2450. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2451. } # ac_fn_c_check_member
  2452. ac_configure_args_raw=
  2453. for ac_arg
  2454. do
  2455. case $ac_arg in
  2456. *\'*)
  2457. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2458. esac
  2459. as_fn_append ac_configure_args_raw " '$ac_arg'"
  2460. done
  2461. case $ac_configure_args_raw in
  2462. *$as_nl*)
  2463. ac_safe_unquote= ;;
  2464. *)
  2465. ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
  2466. ac_unsafe_a="$ac_unsafe_z#~"
  2467. ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
  2468. ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
  2469. esac
  2470. cat >config.log <<_ACEOF
  2471. This file contains any messages produced by compilers while
  2472. running configure, to aid debugging if configure makes a mistake.
  2473. It was created by curl $as_me -, which was
  2474. generated by GNU Autoconf 2.71. Invocation command line was
  2475. $ $0$ac_configure_args_raw
  2476. _ACEOF
  2477. exec 5>>config.log
  2478. {
  2479. cat <<_ASUNAME
  2480. ## --------- ##
  2481. ## Platform. ##
  2482. ## --------- ##
  2483. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2484. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2485. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2486. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2487. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2488. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2489. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2490. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2491. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2492. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2493. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2494. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2495. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2496. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2497. _ASUNAME
  2498. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2499. for as_dir in $PATH
  2500. do
  2501. IFS=$as_save_IFS
  2502. case $as_dir in #(((
  2503. '') as_dir=./ ;;
  2504. */) ;;
  2505. *) as_dir=$as_dir/ ;;
  2506. esac
  2507. printf "%s\n" "PATH: $as_dir"
  2508. done
  2509. IFS=$as_save_IFS
  2510. } >&5
  2511. cat >&5 <<_ACEOF
  2512. ## ----------- ##
  2513. ## Core tests. ##
  2514. ## ----------- ##
  2515. _ACEOF
  2516. # Keep a trace of the command line.
  2517. # Strip out --no-create and --no-recursion so they do not pile up.
  2518. # Strip out --silent because we don't want to record it for future runs.
  2519. # Also quote any args containing shell meta-characters.
  2520. # Make two passes to allow for proper duplicate-argument suppression.
  2521. ac_configure_args=
  2522. ac_configure_args0=
  2523. ac_configure_args1=
  2524. ac_must_keep_next=false
  2525. for ac_pass in 1 2
  2526. do
  2527. for ac_arg
  2528. do
  2529. case $ac_arg in
  2530. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2531. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2532. | -silent | --silent | --silen | --sile | --sil)
  2533. continue ;;
  2534. *\'*)
  2535. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2536. esac
  2537. case $ac_pass in
  2538. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2539. 2)
  2540. as_fn_append ac_configure_args1 " '$ac_arg'"
  2541. if test $ac_must_keep_next = true; then
  2542. ac_must_keep_next=false # Got value, back to normal.
  2543. else
  2544. case $ac_arg in
  2545. *=* | --config-cache | -C | -disable-* | --disable-* \
  2546. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2547. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2548. | -with-* | --with-* | -without-* | --without-* | --x)
  2549. case "$ac_configure_args0 " in
  2550. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2551. esac
  2552. ;;
  2553. -* ) ac_must_keep_next=true ;;
  2554. esac
  2555. fi
  2556. as_fn_append ac_configure_args " '$ac_arg'"
  2557. ;;
  2558. esac
  2559. done
  2560. done
  2561. { ac_configure_args0=; unset ac_configure_args0;}
  2562. { ac_configure_args1=; unset ac_configure_args1;}
  2563. # When interrupted or exit'd, cleanup temporary files, and complete
  2564. # config.log. We remove comments because anyway the quotes in there
  2565. # would cause problems or look ugly.
  2566. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2567. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2568. trap 'exit_status=$?
  2569. # Sanitize IFS.
  2570. IFS=" "" $as_nl"
  2571. # Save into config.log some information that might help in debugging.
  2572. {
  2573. echo
  2574. printf "%s\n" "## ---------------- ##
  2575. ## Cache variables. ##
  2576. ## ---------------- ##"
  2577. echo
  2578. # The following way of writing the cache mishandles newlines in values,
  2579. (
  2580. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2581. eval ac_val=\$$ac_var
  2582. case $ac_val in #(
  2583. *${as_nl}*)
  2584. case $ac_var in #(
  2585. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2586. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2587. esac
  2588. case $ac_var in #(
  2589. _ | IFS | as_nl) ;; #(
  2590. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2591. *) { eval $ac_var=; unset $ac_var;} ;;
  2592. esac ;;
  2593. esac
  2594. done
  2595. (set) 2>&1 |
  2596. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2597. *${as_nl}ac_space=\ *)
  2598. sed -n \
  2599. "s/'\''/'\''\\\\'\'''\''/g;
  2600. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2601. ;; #(
  2602. *)
  2603. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2604. ;;
  2605. esac |
  2606. sort
  2607. )
  2608. echo
  2609. printf "%s\n" "## ----------------- ##
  2610. ## Output variables. ##
  2611. ## ----------------- ##"
  2612. echo
  2613. for ac_var in $ac_subst_vars
  2614. do
  2615. eval ac_val=\$$ac_var
  2616. case $ac_val in
  2617. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2618. esac
  2619. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2620. done | sort
  2621. echo
  2622. if test -n "$ac_subst_files"; then
  2623. printf "%s\n" "## ------------------- ##
  2624. ## File substitutions. ##
  2625. ## ------------------- ##"
  2626. echo
  2627. for ac_var in $ac_subst_files
  2628. do
  2629. eval ac_val=\$$ac_var
  2630. case $ac_val in
  2631. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2632. esac
  2633. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2634. done | sort
  2635. echo
  2636. fi
  2637. if test -s confdefs.h; then
  2638. printf "%s\n" "## ----------- ##
  2639. ## confdefs.h. ##
  2640. ## ----------- ##"
  2641. echo
  2642. cat confdefs.h
  2643. echo
  2644. fi
  2645. test "$ac_signal" != 0 &&
  2646. printf "%s\n" "$as_me: caught signal $ac_signal"
  2647. printf "%s\n" "$as_me: exit $exit_status"
  2648. } >&5
  2649. rm -f core *.core core.conftest.* &&
  2650. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2651. exit $exit_status
  2652. ' 0
  2653. for ac_signal in 1 2 13 15; do
  2654. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2655. done
  2656. ac_signal=0
  2657. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2658. rm -f -r conftest* confdefs.h
  2659. printf "%s\n" "/* confdefs.h */" > confdefs.h
  2660. # Predefined preprocessor variables.
  2661. printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
  2662. printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
  2663. printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
  2664. printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
  2665. printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
  2666. printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
  2667. # Let the site file select an alternate cache file if it wants to.
  2668. # Prefer an explicitly selected file to automatically selected ones.
  2669. if test -n "$CONFIG_SITE"; then
  2670. ac_site_files="$CONFIG_SITE"
  2671. elif test "x$prefix" != xNONE; then
  2672. ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
  2673. else
  2674. ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  2675. fi
  2676. for ac_site_file in $ac_site_files
  2677. do
  2678. case $ac_site_file in #(
  2679. */*) :
  2680. ;; #(
  2681. *) :
  2682. ac_site_file=./$ac_site_file ;;
  2683. esac
  2684. if test -f "$ac_site_file" && test -r "$ac_site_file"; then
  2685. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2686. printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
  2687. sed 's/^/| /' "$ac_site_file" >&5
  2688. . "$ac_site_file" \
  2689. || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2690. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  2691. as_fn_error $? "failed to load site script $ac_site_file
  2692. See \`config.log' for more details" "$LINENO" 5; }
  2693. fi
  2694. done
  2695. if test -r "$cache_file"; then
  2696. # Some versions of bash will fail to source /dev/null (special files
  2697. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2698. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2699. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2700. printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
  2701. case $cache_file in
  2702. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2703. *) . "./$cache_file";;
  2704. esac
  2705. fi
  2706. else
  2707. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2708. printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
  2709. >$cache_file
  2710. fi
  2711. # Test code for whether the C compiler supports C89 (global declarations)
  2712. ac_c_conftest_c89_globals='
  2713. /* Does the compiler advertise C89 conformance?
  2714. Do not test the value of __STDC__, because some compilers set it to 0
  2715. while being otherwise adequately conformant. */
  2716. #if !defined __STDC__
  2717. # error "Compiler does not advertise C89 conformance"
  2718. #endif
  2719. #include <stddef.h>
  2720. #include <stdarg.h>
  2721. struct stat;
  2722. /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
  2723. struct buf { int x; };
  2724. struct buf * (*rcsopen) (struct buf *, struct stat *, int);
  2725. static char *e (p, i)
  2726. char **p;
  2727. int i;
  2728. {
  2729. return p[i];
  2730. }
  2731. static char *f (char * (*g) (char **, int), char **p, ...)
  2732. {
  2733. char *s;
  2734. va_list v;
  2735. va_start (v,p);
  2736. s = g (p, va_arg (v,int));
  2737. va_end (v);
  2738. return s;
  2739. }
  2740. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2741. function prototypes and stuff, but not \xHH hex character constants.
  2742. These do not provoke an error unfortunately, instead are silently treated
  2743. as an "x". The following induces an error, until -std is added to get
  2744. proper ANSI mode. Curiously \x00 != x always comes out true, for an
  2745. array size at least. It is necessary to write \x00 == 0 to get something
  2746. that is true only with -std. */
  2747. int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
  2748. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2749. inside strings and character constants. */
  2750. #define FOO(x) '\''x'\''
  2751. int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
  2752. int test (int i, double x);
  2753. struct s1 {int (*f) (int a);};
  2754. struct s2 {int (*f) (double a);};
  2755. int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
  2756. int, int);'
  2757. # Test code for whether the C compiler supports C89 (body of main).
  2758. ac_c_conftest_c89_main='
  2759. ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
  2760. '
  2761. # Test code for whether the C compiler supports C99 (global declarations)
  2762. ac_c_conftest_c99_globals='
  2763. // Does the compiler advertise C99 conformance?
  2764. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
  2765. # error "Compiler does not advertise C99 conformance"
  2766. #endif
  2767. #include <stdbool.h>
  2768. extern int puts (const char *);
  2769. extern int printf (const char *, ...);
  2770. extern int dprintf (int, const char *, ...);
  2771. extern void *malloc (size_t);
  2772. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  2773. // dprintf is used instead of fprintf to avoid needing to declare
  2774. // FILE and stderr.
  2775. #define debug(...) dprintf (2, __VA_ARGS__)
  2776. #define showlist(...) puts (#__VA_ARGS__)
  2777. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  2778. static void
  2779. test_varargs_macros (void)
  2780. {
  2781. int x = 1234;
  2782. int y = 5678;
  2783. debug ("Flag");
  2784. debug ("X = %d\n", x);
  2785. showlist (The first, second, and third items.);
  2786. report (x>y, "x is %d but y is %d", x, y);
  2787. }
  2788. // Check long long types.
  2789. #define BIG64 18446744073709551615ull
  2790. #define BIG32 4294967295ul
  2791. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  2792. #if !BIG_OK
  2793. #error "your preprocessor is broken"
  2794. #endif
  2795. #if BIG_OK
  2796. #else
  2797. #error "your preprocessor is broken"
  2798. #endif
  2799. static long long int bignum = -9223372036854775807LL;
  2800. static unsigned long long int ubignum = BIG64;
  2801. struct incomplete_array
  2802. {
  2803. int datasize;
  2804. double data[];
  2805. };
  2806. struct named_init {
  2807. int number;
  2808. const wchar_t *name;
  2809. double average;
  2810. };
  2811. typedef const char *ccp;
  2812. static inline int
  2813. test_restrict (ccp restrict text)
  2814. {
  2815. // See if C++-style comments work.
  2816. // Iterate through items via the restricted pointer.
  2817. // Also check for declarations in for loops.
  2818. for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
  2819. continue;
  2820. return 0;
  2821. }
  2822. // Check varargs and va_copy.
  2823. static bool
  2824. test_varargs (const char *format, ...)
  2825. {
  2826. va_list args;
  2827. va_start (args, format);
  2828. va_list args_copy;
  2829. va_copy (args_copy, args);
  2830. const char *str = "";
  2831. int number = 0;
  2832. float fnumber = 0;
  2833. while (*format)
  2834. {
  2835. switch (*format++)
  2836. {
  2837. case '\''s'\'': // string
  2838. str = va_arg (args_copy, const char *);
  2839. break;
  2840. case '\''d'\'': // int
  2841. number = va_arg (args_copy, int);
  2842. break;
  2843. case '\''f'\'': // float
  2844. fnumber = va_arg (args_copy, double);
  2845. break;
  2846. default:
  2847. break;
  2848. }
  2849. }
  2850. va_end (args_copy);
  2851. va_end (args);
  2852. return *str && number && fnumber;
  2853. }
  2854. '
  2855. # Test code for whether the C compiler supports C99 (body of main).
  2856. ac_c_conftest_c99_main='
  2857. // Check bool.
  2858. _Bool success = false;
  2859. success |= (argc != 0);
  2860. // Check restrict.
  2861. if (test_restrict ("String literal") == 0)
  2862. success = true;
  2863. char *restrict newvar = "Another string";
  2864. // Check varargs.
  2865. success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
  2866. test_varargs_macros ();
  2867. // Check flexible array members.
  2868. struct incomplete_array *ia =
  2869. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  2870. ia->datasize = 10;
  2871. for (int i = 0; i < ia->datasize; ++i)
  2872. ia->data[i] = i * 1.234;
  2873. // Check named initializers.
  2874. struct named_init ni = {
  2875. .number = 34,
  2876. .name = L"Test wide string",
  2877. .average = 543.34343,
  2878. };
  2879. ni.number = 58;
  2880. int dynamic_array[ni.number];
  2881. dynamic_array[0] = argv[0][0];
  2882. dynamic_array[ni.number - 1] = 543;
  2883. // work around unused variable warnings
  2884. ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
  2885. || dynamic_array[ni.number - 1] != 543);
  2886. '
  2887. # Test code for whether the C compiler supports C11 (global declarations)
  2888. ac_c_conftest_c11_globals='
  2889. // Does the compiler advertise C11 conformance?
  2890. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
  2891. # error "Compiler does not advertise C11 conformance"
  2892. #endif
  2893. // Check _Alignas.
  2894. char _Alignas (double) aligned_as_double;
  2895. char _Alignas (0) no_special_alignment;
  2896. extern char aligned_as_int;
  2897. char _Alignas (0) _Alignas (int) aligned_as_int;
  2898. // Check _Alignof.
  2899. enum
  2900. {
  2901. int_alignment = _Alignof (int),
  2902. int_array_alignment = _Alignof (int[100]),
  2903. char_alignment = _Alignof (char)
  2904. };
  2905. _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
  2906. // Check _Noreturn.
  2907. int _Noreturn does_not_return (void) { for (;;) continue; }
  2908. // Check _Static_assert.
  2909. struct test_static_assert
  2910. {
  2911. int x;
  2912. _Static_assert (sizeof (int) <= sizeof (long int),
  2913. "_Static_assert does not work in struct");
  2914. long int y;
  2915. };
  2916. // Check UTF-8 literals.
  2917. #define u8 syntax error!
  2918. char const utf8_literal[] = u8"happens to be ASCII" "another string";
  2919. // Check duplicate typedefs.
  2920. typedef long *long_ptr;
  2921. typedef long int *long_ptr;
  2922. typedef long_ptr long_ptr;
  2923. // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
  2924. struct anonymous
  2925. {
  2926. union {
  2927. struct { int i; int j; };
  2928. struct { int k; long int l; } w;
  2929. };
  2930. int m;
  2931. } v1;
  2932. '
  2933. # Test code for whether the C compiler supports C11 (body of main).
  2934. ac_c_conftest_c11_main='
  2935. _Static_assert ((offsetof (struct anonymous, i)
  2936. == offsetof (struct anonymous, w.k)),
  2937. "Anonymous union alignment botch");
  2938. v1.i = 2;
  2939. v1.w.k = 5;
  2940. ok |= v1.i != 5;
  2941. '
  2942. # Test code for whether the C compiler supports C11 (complete).
  2943. ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
  2944. ${ac_c_conftest_c99_globals}
  2945. ${ac_c_conftest_c11_globals}
  2946. int
  2947. main (int argc, char **argv)
  2948. {
  2949. int ok = 0;
  2950. ${ac_c_conftest_c89_main}
  2951. ${ac_c_conftest_c99_main}
  2952. ${ac_c_conftest_c11_main}
  2953. return ok;
  2954. }
  2955. "
  2956. # Test code for whether the C compiler supports C99 (complete).
  2957. ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
  2958. ${ac_c_conftest_c99_globals}
  2959. int
  2960. main (int argc, char **argv)
  2961. {
  2962. int ok = 0;
  2963. ${ac_c_conftest_c89_main}
  2964. ${ac_c_conftest_c99_main}
  2965. return ok;
  2966. }
  2967. "
  2968. # Test code for whether the C compiler supports C89 (complete).
  2969. ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
  2970. int
  2971. main (int argc, char **argv)
  2972. {
  2973. int ok = 0;
  2974. ${ac_c_conftest_c89_main}
  2975. return ok;
  2976. }
  2977. "
  2978. as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
  2979. as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
  2980. as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
  2981. as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
  2982. as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
  2983. as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
  2984. as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
  2985. as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
  2986. as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
  2987. # Auxiliary files required by this configure script.
  2988. ac_aux_files="ltmain.sh config.guess config.sub missing compile install-sh"
  2989. # Locations in which to look for auxiliary files.
  2990. ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
  2991. # Search for a directory containing all of the required auxiliary files,
  2992. # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
  2993. # If we don't find one directory that contains all the files we need,
  2994. # we report the set of missing files from the *first* directory in
  2995. # $ac_aux_dir_candidates and give up.
  2996. ac_missing_aux_files=""
  2997. ac_first_candidate=:
  2998. printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
  2999. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3000. as_found=false
  3001. for as_dir in $ac_aux_dir_candidates
  3002. do
  3003. IFS=$as_save_IFS
  3004. case $as_dir in #(((
  3005. '') as_dir=./ ;;
  3006. */) ;;
  3007. *) as_dir=$as_dir/ ;;
  3008. esac
  3009. as_found=:
  3010. printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
  3011. ac_aux_dir_found=yes
  3012. ac_install_sh=
  3013. for ac_aux in $ac_aux_files
  3014. do
  3015. # As a special case, if "install-sh" is required, that requirement
  3016. # can be satisfied by any of "install-sh", "install.sh", or "shtool",
  3017. # and $ac_install_sh is set appropriately for whichever one is found.
  3018. if test x"$ac_aux" = x"install-sh"
  3019. then
  3020. if test -f "${as_dir}install-sh"; then
  3021. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
  3022. ac_install_sh="${as_dir}install-sh -c"
  3023. elif test -f "${as_dir}install.sh"; then
  3024. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
  3025. ac_install_sh="${as_dir}install.sh -c"
  3026. elif test -f "${as_dir}shtool"; then
  3027. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
  3028. ac_install_sh="${as_dir}shtool install -c"
  3029. else
  3030. ac_aux_dir_found=no
  3031. if $ac_first_candidate; then
  3032. ac_missing_aux_files="${ac_missing_aux_files} install-sh"
  3033. else
  3034. break
  3035. fi
  3036. fi
  3037. else
  3038. if test -f "${as_dir}${ac_aux}"; then
  3039. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
  3040. else
  3041. ac_aux_dir_found=no
  3042. if $ac_first_candidate; then
  3043. ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
  3044. else
  3045. break
  3046. fi
  3047. fi
  3048. fi
  3049. done
  3050. if test "$ac_aux_dir_found" = yes; then
  3051. ac_aux_dir="$as_dir"
  3052. break
  3053. fi
  3054. ac_first_candidate=false
  3055. as_found=false
  3056. done
  3057. IFS=$as_save_IFS
  3058. if $as_found
  3059. then :
  3060. else $as_nop
  3061. as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
  3062. fi
  3063. # These three variables are undocumented and unsupported,
  3064. # and are intended to be withdrawn in a future Autoconf release.
  3065. # They can cause serious problems if a builder's source tree is in a directory
  3066. # whose full name contains unusual characters.
  3067. if test -f "${ac_aux_dir}config.guess"; then
  3068. ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
  3069. fi
  3070. if test -f "${ac_aux_dir}config.sub"; then
  3071. ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
  3072. fi
  3073. if test -f "$ac_aux_dir/configure"; then
  3074. ac_configure="$SHELL ${ac_aux_dir}configure"
  3075. fi
  3076. # Check that the precious variables saved in the cache have kept the same
  3077. # value.
  3078. ac_cache_corrupted=false
  3079. for ac_var in $ac_precious_vars; do
  3080. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  3081. eval ac_new_set=\$ac_env_${ac_var}_set
  3082. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  3083. eval ac_new_val=\$ac_env_${ac_var}_value
  3084. case $ac_old_set,$ac_new_set in
  3085. set,)
  3086. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  3087. printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  3088. ac_cache_corrupted=: ;;
  3089. ,set)
  3090. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  3091. printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  3092. ac_cache_corrupted=: ;;
  3093. ,);;
  3094. *)
  3095. if test "x$ac_old_val" != "x$ac_new_val"; then
  3096. # differences in whitespace do not lead to failure.
  3097. ac_old_val_w=`echo x $ac_old_val`
  3098. ac_new_val_w=`echo x $ac_new_val`
  3099. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  3100. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  3101. printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  3102. ac_cache_corrupted=:
  3103. else
  3104. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  3105. printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  3106. eval $ac_var=\$ac_old_val
  3107. fi
  3108. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  3109. printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
  3110. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  3111. printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
  3112. fi;;
  3113. esac
  3114. # Pass precious variables to config.status.
  3115. if test "$ac_new_set" = set; then
  3116. case $ac_new_val in
  3117. *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  3118. *) ac_arg=$ac_var=$ac_new_val ;;
  3119. esac
  3120. case " $ac_configure_args " in
  3121. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  3122. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  3123. esac
  3124. fi
  3125. done
  3126. if $ac_cache_corrupted; then
  3127. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3128. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3129. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  3130. printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
  3131. as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
  3132. and start over" "$LINENO" 5
  3133. fi
  3134. ## -------------------- ##
  3135. ## Main body of script. ##
  3136. ## -------------------- ##
  3137. ac_ext=c
  3138. ac_cpp='$CPP $CPPFLAGS'
  3139. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3140. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3141. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3142. # using curl-override.m4
  3143. ac_config_headers="$ac_config_headers lib/curl_config.h"
  3144. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  3145. printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  3146. # Check whether --enable-maintainer-mode was given.
  3147. if test ${enable_maintainer_mode+y}
  3148. then :
  3149. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  3150. else $as_nop
  3151. USE_MAINTAINER_MODE=no
  3152. fi
  3153. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  3154. printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
  3155. if test $USE_MAINTAINER_MODE = yes; then
  3156. MAINTAINER_MODE_TRUE=
  3157. MAINTAINER_MODE_FALSE='#'
  3158. else
  3159. MAINTAINER_MODE_TRUE='#'
  3160. MAINTAINER_MODE_FALSE=
  3161. fi
  3162. MAINT=$MAINTAINER_MODE_TRUE
  3163. # Check whether --enable-silent-rules was given.
  3164. if test ${enable_silent_rules+y}
  3165. then :
  3166. enableval=$enable_silent_rules;
  3167. fi
  3168. case $enable_silent_rules in # (((
  3169. yes) AM_DEFAULT_VERBOSITY=0;;
  3170. no) AM_DEFAULT_VERBOSITY=1;;
  3171. *) AM_DEFAULT_VERBOSITY=0;;
  3172. esac
  3173. am_make=${MAKE-make}
  3174. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  3175. printf %s "checking whether $am_make supports nested variables... " >&6; }
  3176. if test ${am_cv_make_support_nested_variables+y}
  3177. then :
  3178. printf %s "(cached) " >&6
  3179. else $as_nop
  3180. if printf "%s\n" 'TRUE=$(BAR$(V))
  3181. BAR0=false
  3182. BAR1=true
  3183. V=1
  3184. am__doit:
  3185. @$(TRUE)
  3186. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  3187. am_cv_make_support_nested_variables=yes
  3188. else
  3189. am_cv_make_support_nested_variables=no
  3190. fi
  3191. fi
  3192. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  3193. printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
  3194. if test $am_cv_make_support_nested_variables = yes; then
  3195. AM_V='$(V)'
  3196. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  3197. else
  3198. AM_V=$AM_DEFAULT_VERBOSITY
  3199. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  3200. fi
  3201. AM_BACKSLASH='\'
  3202. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable debug build options" >&5
  3203. printf %s "checking whether to enable debug build options... " >&6; }
  3204. OPT_DEBUG_BUILD="default"
  3205. # Check whether --enable-debug was given.
  3206. if test ${enable_debug+y}
  3207. then :
  3208. enableval=$enable_debug; OPT_DEBUG_BUILD=$enableval
  3209. fi
  3210. case "$OPT_DEBUG_BUILD" in
  3211. no)
  3212. want_debug="no"
  3213. ;;
  3214. default)
  3215. want_debug="no"
  3216. ;;
  3217. *)
  3218. want_debug="yes"
  3219. printf "%s\n" "#define DEBUGBUILD 1" >>confdefs.h
  3220. ;;
  3221. esac
  3222. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_debug" >&5
  3223. printf "%s\n" "$want_debug" >&6; }
  3224. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler optimizer" >&5
  3225. printf %s "checking whether to enable compiler optimizer... " >&6; }
  3226. OPT_COMPILER_OPTIMIZE="default"
  3227. # Check whether --enable-optimize was given.
  3228. if test ${enable_optimize+y}
  3229. then :
  3230. enableval=$enable_optimize; OPT_COMPILER_OPTIMIZE=$enableval
  3231. fi
  3232. case "$OPT_COMPILER_OPTIMIZE" in
  3233. no)
  3234. want_optimize="no"
  3235. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3236. printf "%s\n" "no" >&6; }
  3237. ;;
  3238. default)
  3239. if test "$want_debug" = "yes"; then
  3240. want_optimize="assume_no"
  3241. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (assumed) no" >&5
  3242. printf "%s\n" "(assumed) no" >&6; }
  3243. else
  3244. want_optimize="assume_yes"
  3245. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
  3246. printf "%s\n" "(assumed) yes" >&6; }
  3247. fi
  3248. ;;
  3249. *)
  3250. want_optimize="yes"
  3251. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3252. printf "%s\n" "yes" >&6; }
  3253. ;;
  3254. esac
  3255. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable strict compiler warnings" >&5
  3256. printf %s "checking whether to enable strict compiler warnings... " >&6; }
  3257. OPT_COMPILER_WARNINGS="default"
  3258. # Check whether --enable-warnings was given.
  3259. if test ${enable_warnings+y}
  3260. then :
  3261. enableval=$enable_warnings; OPT_COMPILER_WARNINGS=$enableval
  3262. fi
  3263. case "$OPT_COMPILER_WARNINGS" in
  3264. no)
  3265. want_warnings="no"
  3266. ;;
  3267. default)
  3268. want_warnings="$want_debug"
  3269. ;;
  3270. *)
  3271. want_warnings="yes"
  3272. ;;
  3273. esac
  3274. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_warnings" >&5
  3275. printf "%s\n" "$want_warnings" >&6; }
  3276. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler warnings as errors" >&5
  3277. printf %s "checking whether to enable compiler warnings as errors... " >&6; }
  3278. OPT_COMPILER_WERROR="default"
  3279. # Check whether --enable-werror was given.
  3280. if test ${enable_werror+y}
  3281. then :
  3282. enableval=$enable_werror; OPT_COMPILER_WERROR=$enableval
  3283. fi
  3284. case "$OPT_COMPILER_WERROR" in
  3285. no)
  3286. want_werror="no"
  3287. ;;
  3288. default)
  3289. want_werror="no"
  3290. ;;
  3291. *)
  3292. want_werror="yes"
  3293. ;;
  3294. esac
  3295. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_werror" >&5
  3296. printf "%s\n" "$want_werror" >&6; }
  3297. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable curl debug memory tracking" >&5
  3298. printf %s "checking whether to enable curl debug memory tracking... " >&6; }
  3299. OPT_CURLDEBUG_BUILD="default"
  3300. # Check whether --enable-curldebug was given.
  3301. if test ${enable_curldebug+y}
  3302. then :
  3303. enableval=$enable_curldebug; OPT_CURLDEBUG_BUILD=$enableval
  3304. fi
  3305. case "$OPT_CURLDEBUG_BUILD" in
  3306. no)
  3307. want_curldebug="no"
  3308. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3309. printf "%s\n" "no" >&6; }
  3310. ;;
  3311. default)
  3312. if test "$want_debug" = "yes"; then
  3313. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
  3314. printf "%s\n" "(assumed) yes" >&6; }
  3315. printf "%s\n" "#define CURLDEBUG 1" >>confdefs.h
  3316. else
  3317. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3318. printf "%s\n" "no" >&6; }
  3319. fi
  3320. want_curldebug_assumed="yes"
  3321. want_curldebug="$want_debug"
  3322. ;;
  3323. *)
  3324. want_curldebug="yes"
  3325. printf "%s\n" "#define CURLDEBUG 1" >>confdefs.h
  3326. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3327. printf "%s\n" "yes" >&6; }
  3328. ;;
  3329. esac
  3330. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable hiding of library internal symbols" >&5
  3331. printf %s "checking whether to enable hiding of library internal symbols... " >&6; }
  3332. OPT_SYMBOL_HIDING="default"
  3333. # Check whether --enable-symbol-hiding was given.
  3334. if test ${enable_symbol_hiding+y}
  3335. then :
  3336. enableval=$enable_symbol_hiding; OPT_SYMBOL_HIDING=$enableval
  3337. fi
  3338. case "$OPT_SYMBOL_HIDING" in
  3339. no)
  3340. want_symbol_hiding="no"
  3341. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3342. printf "%s\n" "no" >&6; }
  3343. ;;
  3344. default)
  3345. want_symbol_hiding="yes"
  3346. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3347. printf "%s\n" "yes" >&6; }
  3348. ;;
  3349. *)
  3350. want_symbol_hiding="yes"
  3351. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3352. printf "%s\n" "yes" >&6; }
  3353. ;;
  3354. esac
  3355. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable c-ares for DNS lookups" >&5
  3356. printf %s "checking whether to enable c-ares for DNS lookups... " >&6; }
  3357. OPT_ARES="default"
  3358. # Check whether --enable-ares was given.
  3359. if test ${enable_ares+y}
  3360. then :
  3361. enableval=$enable_ares; OPT_ARES=$enableval
  3362. fi
  3363. case "$OPT_ARES" in
  3364. no)
  3365. want_ares="no"
  3366. ;;
  3367. default)
  3368. want_ares="no"
  3369. ;;
  3370. *)
  3371. want_ares="yes"
  3372. if test -n "$enableval" && test "$enableval" != "yes"; then
  3373. want_ares_path="$enableval"
  3374. fi
  3375. ;;
  3376. esac
  3377. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_ares" >&5
  3378. printf "%s\n" "$want_ares" >&6; }
  3379. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to disable dependency on -lrt" >&5
  3380. printf %s "checking whether to disable dependency on -lrt... " >&6; }
  3381. OPT_RT="default"
  3382. # Check whether --enable-rt was given.
  3383. if test ${enable_rt+y}
  3384. then :
  3385. enableval=$enable_rt; OPT_RT=$enableval
  3386. fi
  3387. case "$OPT_RT" in
  3388. no)
  3389. dontwant_rt="yes"
  3390. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3391. printf "%s\n" "yes" >&6; }
  3392. ;;
  3393. default)
  3394. dontwant_rt="no"
  3395. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (assumed no)" >&5
  3396. printf "%s\n" "(assumed no)" >&6; }
  3397. ;;
  3398. *)
  3399. dontwant_rt="no"
  3400. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3401. printf "%s\n" "no" >&6; }
  3402. ;;
  3403. esac
  3404. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable ECH support" >&5
  3405. printf %s "checking whether to enable ECH support... " >&6; }
  3406. OPT_ECH="default"
  3407. # Check whether --enable-ech was given.
  3408. if test ${enable_ech+y}
  3409. then :
  3410. enableval=$enable_ech; OPT_ECH=$enableval
  3411. fi
  3412. case "$OPT_ECH" in
  3413. no)
  3414. want_ech="no"
  3415. curl_ech_msg="no (--enable-ech)"
  3416. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3417. printf "%s\n" "no" >&6; }
  3418. ;;
  3419. default)
  3420. want_ech="no"
  3421. curl_ech_msg="no (--enable-ech)"
  3422. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3423. printf "%s\n" "no" >&6; }
  3424. ;;
  3425. *)
  3426. want_ech="yes"
  3427. curl_ech_msg="enabled (--disable-ech)"
  3428. experimental="ech"
  3429. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3430. printf "%s\n" "yes" >&6; }
  3431. ;;
  3432. esac
  3433. #
  3434. # Check that 'XC_CONFIGURE_PREAMBLE' has already run.
  3435. #
  3436. if test -z "$xc_configure_preamble_result"; then
  3437. as_fn_error $? "xc_configure_preamble_result not set (internal problem)" "$LINENO" 5
  3438. fi
  3439. #
  3440. # Check that 'PATH_SEPARATOR' has already been set.
  3441. #
  3442. if test -z "$xc_PATH_SEPARATOR"; then
  3443. as_fn_error $? "xc_PATH_SEPARATOR not set (internal problem)" "$LINENO" 5
  3444. fi
  3445. if test -z "$PATH_SEPARATOR"; then
  3446. as_fn_error $? "PATH_SEPARATOR not set (internal or config.site problem)" "$LINENO" 5
  3447. fi
  3448. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for path separator" >&5
  3449. printf %s "checking for path separator... " >&6; }
  3450. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PATH_SEPARATOR" >&5
  3451. printf "%s\n" "$PATH_SEPARATOR" >&6; }
  3452. if test "x$PATH_SEPARATOR" != "x$xc_PATH_SEPARATOR"; then
  3453. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for initial path separator" >&5
  3454. printf %s "checking for initial path separator... " >&6; }
  3455. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_PATH_SEPARATOR" >&5
  3456. printf "%s\n" "$xc_PATH_SEPARATOR" >&6; }
  3457. as_fn_error $? "path separator mismatch (internal or config.site problem)" "$LINENO" 5
  3458. fi
  3459. #
  3460. # save the configure arguments
  3461. #
  3462. CONFIGURE_OPTIONS="\"$ac_configure_args\""
  3463. if test -z "$SED"; then
  3464. # Extract the first word of "sed", so it can be a program name with args.
  3465. set dummy sed; ac_word=$2
  3466. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3467. printf %s "checking for $ac_word... " >&6; }
  3468. if test ${ac_cv_path_SED+y}
  3469. then :
  3470. printf %s "(cached) " >&6
  3471. else $as_nop
  3472. case $SED in
  3473. [\\/]* | ?:[\\/]*)
  3474. ac_cv_path_SED="$SED" # Let the user override the test with a path.
  3475. ;;
  3476. *)
  3477. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3478. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  3479. for as_dir in $as_dummy
  3480. do
  3481. IFS=$as_save_IFS
  3482. case $as_dir in #(((
  3483. '') as_dir=./ ;;
  3484. */) ;;
  3485. *) as_dir=$as_dir/ ;;
  3486. esac
  3487. for ac_exec_ext in '' $ac_executable_extensions; do
  3488. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3489. ac_cv_path_SED="$as_dir$ac_word$ac_exec_ext"
  3490. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3491. break 2
  3492. fi
  3493. done
  3494. done
  3495. IFS=$as_save_IFS
  3496. test -z "$ac_cv_path_SED" && ac_cv_path_SED="not_found"
  3497. ;;
  3498. esac
  3499. fi
  3500. SED=$ac_cv_path_SED
  3501. if test -n "$SED"; then
  3502. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
  3503. printf "%s\n" "$SED" >&6; }
  3504. else
  3505. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3506. printf "%s\n" "no" >&6; }
  3507. fi
  3508. if test -z "$SED" || test "$SED" = "not_found"; then
  3509. as_fn_error $? "sed not found in PATH. Cannot continue without sed." "$LINENO" 5
  3510. fi
  3511. fi
  3512. if test -z "$GREP"; then
  3513. # Extract the first word of "grep", so it can be a program name with args.
  3514. set dummy grep; ac_word=$2
  3515. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3516. printf %s "checking for $ac_word... " >&6; }
  3517. if test ${ac_cv_path_GREP+y}
  3518. then :
  3519. printf %s "(cached) " >&6
  3520. else $as_nop
  3521. case $GREP in
  3522. [\\/]* | ?:[\\/]*)
  3523. ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
  3524. ;;
  3525. *)
  3526. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3527. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  3528. for as_dir in $as_dummy
  3529. do
  3530. IFS=$as_save_IFS
  3531. case $as_dir in #(((
  3532. '') as_dir=./ ;;
  3533. */) ;;
  3534. *) as_dir=$as_dir/ ;;
  3535. esac
  3536. for ac_exec_ext in '' $ac_executable_extensions; do
  3537. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3538. ac_cv_path_GREP="$as_dir$ac_word$ac_exec_ext"
  3539. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3540. break 2
  3541. fi
  3542. done
  3543. done
  3544. IFS=$as_save_IFS
  3545. test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="not_found"
  3546. ;;
  3547. esac
  3548. fi
  3549. GREP=$ac_cv_path_GREP
  3550. if test -n "$GREP"; then
  3551. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
  3552. printf "%s\n" "$GREP" >&6; }
  3553. else
  3554. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3555. printf "%s\n" "no" >&6; }
  3556. fi
  3557. if test -z "$GREP" || test "$GREP" = "not_found"; then
  3558. as_fn_error $? "grep not found in PATH. Cannot continue without grep." "$LINENO" 5
  3559. fi
  3560. fi
  3561. if test -z "$EGREP"; then
  3562. if echo a | ($GREP -E '(a|b)') >/dev/null 2>&1; then
  3563. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3564. printf %s "checking for egrep... " >&6; }
  3565. EGREP="$GREP -E"
  3566. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
  3567. printf "%s\n" "$EGREP" >&6; }
  3568. else
  3569. # Extract the first word of "egrep", so it can be a program name with args.
  3570. set dummy egrep; ac_word=$2
  3571. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3572. printf %s "checking for $ac_word... " >&6; }
  3573. if test ${ac_cv_path_EGREP+y}
  3574. then :
  3575. printf %s "(cached) " >&6
  3576. else $as_nop
  3577. case $EGREP in
  3578. [\\/]* | ?:[\\/]*)
  3579. ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
  3580. ;;
  3581. *)
  3582. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3583. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  3584. for as_dir in $as_dummy
  3585. do
  3586. IFS=$as_save_IFS
  3587. case $as_dir in #(((
  3588. '') as_dir=./ ;;
  3589. */) ;;
  3590. *) as_dir=$as_dir/ ;;
  3591. esac
  3592. for ac_exec_ext in '' $ac_executable_extensions; do
  3593. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3594. ac_cv_path_EGREP="$as_dir$ac_word$ac_exec_ext"
  3595. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3596. break 2
  3597. fi
  3598. done
  3599. done
  3600. IFS=$as_save_IFS
  3601. test -z "$ac_cv_path_EGREP" && ac_cv_path_EGREP="not_found"
  3602. ;;
  3603. esac
  3604. fi
  3605. EGREP=$ac_cv_path_EGREP
  3606. if test -n "$EGREP"; then
  3607. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
  3608. printf "%s\n" "$EGREP" >&6; }
  3609. else
  3610. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3611. printf "%s\n" "no" >&6; }
  3612. fi
  3613. fi
  3614. fi
  3615. if test -z "$EGREP" || test "$EGREP" = "not_found"; then
  3616. as_fn_error $? "egrep not found in PATH. Cannot continue without egrep." "$LINENO" 5
  3617. fi
  3618. if test -z "$AR"; then
  3619. if test -n "$ac_tool_prefix"; then
  3620. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  3621. set dummy ${ac_tool_prefix}ar; ac_word=$2
  3622. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3623. printf %s "checking for $ac_word... " >&6; }
  3624. if test ${ac_cv_path_AR+y}
  3625. then :
  3626. printf %s "(cached) " >&6
  3627. else $as_nop
  3628. case $AR in
  3629. [\\/]* | ?:[\\/]*)
  3630. ac_cv_path_AR="$AR" # Let the user override the test with a path.
  3631. ;;
  3632. *)
  3633. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3634. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  3635. for as_dir in $as_dummy
  3636. do
  3637. IFS=$as_save_IFS
  3638. case $as_dir in #(((
  3639. '') as_dir=./ ;;
  3640. */) ;;
  3641. *) as_dir=$as_dir/ ;;
  3642. esac
  3643. for ac_exec_ext in '' $ac_executable_extensions; do
  3644. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3645. ac_cv_path_AR="$as_dir$ac_word$ac_exec_ext"
  3646. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3647. break 2
  3648. fi
  3649. done
  3650. done
  3651. IFS=$as_save_IFS
  3652. ;;
  3653. esac
  3654. fi
  3655. AR=$ac_cv_path_AR
  3656. if test -n "$AR"; then
  3657. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  3658. printf "%s\n" "$AR" >&6; }
  3659. else
  3660. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3661. printf "%s\n" "no" >&6; }
  3662. fi
  3663. fi
  3664. if test -z "$ac_cv_path_AR"; then
  3665. ac_pt_AR=$AR
  3666. # Extract the first word of "ar", so it can be a program name with args.
  3667. set dummy ar; ac_word=$2
  3668. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3669. printf %s "checking for $ac_word... " >&6; }
  3670. if test ${ac_cv_path_ac_pt_AR+y}
  3671. then :
  3672. printf %s "(cached) " >&6
  3673. else $as_nop
  3674. case $ac_pt_AR in
  3675. [\\/]* | ?:[\\/]*)
  3676. ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
  3677. ;;
  3678. *)
  3679. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3680. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  3681. for as_dir in $as_dummy
  3682. do
  3683. IFS=$as_save_IFS
  3684. case $as_dir in #(((
  3685. '') as_dir=./ ;;
  3686. */) ;;
  3687. *) as_dir=$as_dir/ ;;
  3688. esac
  3689. for ac_exec_ext in '' $ac_executable_extensions; do
  3690. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3691. ac_cv_path_ac_pt_AR="$as_dir$ac_word$ac_exec_ext"
  3692. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3693. break 2
  3694. fi
  3695. done
  3696. done
  3697. IFS=$as_save_IFS
  3698. ;;
  3699. esac
  3700. fi
  3701. ac_pt_AR=$ac_cv_path_ac_pt_AR
  3702. if test -n "$ac_pt_AR"; then
  3703. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
  3704. printf "%s\n" "$ac_pt_AR" >&6; }
  3705. else
  3706. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3707. printf "%s\n" "no" >&6; }
  3708. fi
  3709. if test "x$ac_pt_AR" = x; then
  3710. AR="not_found"
  3711. else
  3712. case $cross_compiling:$ac_tool_warned in
  3713. yes:)
  3714. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3715. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3716. ac_tool_warned=yes ;;
  3717. esac
  3718. AR=$ac_pt_AR
  3719. fi
  3720. else
  3721. AR="$ac_cv_path_AR"
  3722. fi
  3723. if test -z "$AR" || test "$AR" = "not_found"; then
  3724. as_fn_error $? "ar not found in PATH. Cannot continue without ar." "$LINENO" 5
  3725. fi
  3726. fi
  3727. CURLVERSION=`$SED -ne 's/^#define LIBCURL_VERSION "\(.*\)".*/\1/p' ${srcdir}/include/curl/curlver.h`
  3728. xc_prog_cc_prev_IFS=$IFS
  3729. xc_prog_cc_prev_LIBS=$LIBS
  3730. xc_prog_cc_prev_CFLAGS=$CFLAGS
  3731. xc_prog_cc_prev_LDFLAGS=$LDFLAGS
  3732. xc_prog_cc_prev_CPPFLAGS=$CPPFLAGS
  3733. xc_bad_var_libs=no
  3734. for xc_word in $LIBS; do
  3735. case "$xc_word" in
  3736. -l* | --library=*)
  3737. :
  3738. ;;
  3739. *)
  3740. xc_bad_var_libs=yes
  3741. ;;
  3742. esac
  3743. done
  3744. if test $xc_bad_var_libs = yes; then
  3745. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
  3746. printf "%s\n" "$as_me: using LIBS: $LIBS" >&6;}
  3747. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5
  3748. printf "%s\n" "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;}
  3749. fi
  3750. xc_bad_var_ldflags=no
  3751. for xc_word in $LDFLAGS; do
  3752. case "$xc_word" in
  3753. -D*)
  3754. xc_bad_var_ldflags=yes
  3755. ;;
  3756. -U*)
  3757. xc_bad_var_ldflags=yes
  3758. ;;
  3759. -I*)
  3760. xc_bad_var_ldflags=yes
  3761. ;;
  3762. -l* | --library=*)
  3763. xc_bad_var_ldflags=yes
  3764. ;;
  3765. esac
  3766. done
  3767. if test $xc_bad_var_ldflags = yes; then
  3768. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
  3769. printf "%s\n" "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
  3770. xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
  3771. for xc_word in $LDFLAGS; do
  3772. case "$xc_word" in
  3773. -D*)
  3774. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
  3775. printf "%s\n" "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
  3776. ;;
  3777. -U*)
  3778. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
  3779. printf "%s\n" "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
  3780. ;;
  3781. -I*)
  3782. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
  3783. printf "%s\n" "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
  3784. ;;
  3785. -l* | --library=*)
  3786. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
  3787. printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
  3788. ;;
  3789. esac
  3790. done
  3791. fi
  3792. xc_bad_var_cppflags=no
  3793. for xc_word in $CPPFLAGS; do
  3794. case "$xc_word" in
  3795. -rpath*)
  3796. xc_bad_var_cppflags=yes
  3797. ;;
  3798. -L* | --library-path=*)
  3799. xc_bad_var_cppflags=yes
  3800. ;;
  3801. -l* | --library=*)
  3802. xc_bad_var_cppflags=yes
  3803. ;;
  3804. esac
  3805. done
  3806. if test $xc_bad_var_cppflags = yes; then
  3807. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
  3808. printf "%s\n" "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
  3809. xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
  3810. for xc_word in $CPPFLAGS; do
  3811. case "$xc_word" in
  3812. -rpath*)
  3813. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
  3814. printf "%s\n" "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
  3815. ;;
  3816. -L* | --library-path=*)
  3817. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
  3818. printf "%s\n" "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
  3819. ;;
  3820. -l* | --library=*)
  3821. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
  3822. printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
  3823. ;;
  3824. esac
  3825. done
  3826. fi
  3827. xc_bad_var_cflags=no
  3828. for xc_word in $CFLAGS; do
  3829. case "$xc_word" in
  3830. -D*)
  3831. xc_bad_var_cflags=yes
  3832. ;;
  3833. -U*)
  3834. xc_bad_var_cflags=yes
  3835. ;;
  3836. -I*)
  3837. xc_bad_var_cflags=yes
  3838. ;;
  3839. -rpath*)
  3840. xc_bad_var_cflags=yes
  3841. ;;
  3842. -L* | --library-path=*)
  3843. xc_bad_var_cflags=yes
  3844. ;;
  3845. -l* | --library=*)
  3846. xc_bad_var_cflags=yes
  3847. ;;
  3848. esac
  3849. done
  3850. if test $xc_bad_var_cflags = yes; then
  3851. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
  3852. printf "%s\n" "$as_me: using CFLAGS: $CFLAGS" >&6;}
  3853. xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
  3854. for xc_word in $CFLAGS; do
  3855. case "$xc_word" in
  3856. -D*)
  3857. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
  3858. printf "%s\n" "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
  3859. ;;
  3860. -U*)
  3861. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
  3862. printf "%s\n" "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
  3863. ;;
  3864. -I*)
  3865. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
  3866. printf "%s\n" "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
  3867. ;;
  3868. -rpath*)
  3869. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
  3870. printf "%s\n" "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
  3871. ;;
  3872. -L* | --library-path=*)
  3873. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
  3874. printf "%s\n" "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
  3875. ;;
  3876. -l* | --library=*)
  3877. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
  3878. printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
  3879. ;;
  3880. esac
  3881. done
  3882. fi
  3883. if test $xc_bad_var_libs = yes ||
  3884. test $xc_bad_var_cflags = yes ||
  3885. test $xc_bad_var_ldflags = yes ||
  3886. test $xc_bad_var_cppflags = yes; then
  3887. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
  3888. printf "%s\n" "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
  3889. fi
  3890. # Find a good install program. We prefer a C program (faster),
  3891. # so one script is as good as another. But avoid the broken or
  3892. # incompatible versions:
  3893. # SysV /etc/install, /usr/sbin/install
  3894. # SunOS /usr/etc/install
  3895. # IRIX /sbin/install
  3896. # AIX /bin/install
  3897. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3898. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3899. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3900. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3901. # OS/2's system install, which has a completely different semantic
  3902. # ./install, which can be erroneously created by make from ./install.sh.
  3903. # Reject install programs that cannot install multiple files.
  3904. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  3905. printf %s "checking for a BSD-compatible install... " >&6; }
  3906. if test -z "$INSTALL"; then
  3907. if test ${ac_cv_path_install+y}
  3908. then :
  3909. printf %s "(cached) " >&6
  3910. else $as_nop
  3911. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3912. for as_dir in $PATH
  3913. do
  3914. IFS=$as_save_IFS
  3915. case $as_dir in #(((
  3916. '') as_dir=./ ;;
  3917. */) ;;
  3918. *) as_dir=$as_dir/ ;;
  3919. esac
  3920. # Account for fact that we put trailing slashes in our PATH walk.
  3921. case $as_dir in #((
  3922. ./ | /[cC]/* | \
  3923. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3924. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  3925. /usr/ucb/* ) ;;
  3926. *)
  3927. # OSF1 and SCO ODT 3.0 have their own names for install.
  3928. # Don't use installbsd from OSF since it installs stuff as root
  3929. # by default.
  3930. for ac_prog in ginstall scoinst install; do
  3931. for ac_exec_ext in '' $ac_executable_extensions; do
  3932. if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
  3933. if test $ac_prog = install &&
  3934. grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3935. # AIX install. It has an incompatible calling convention.
  3936. :
  3937. elif test $ac_prog = install &&
  3938. grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3939. # program-specific install script used by HP pwplus--don't use.
  3940. :
  3941. else
  3942. rm -rf conftest.one conftest.two conftest.dir
  3943. echo one > conftest.one
  3944. echo two > conftest.two
  3945. mkdir conftest.dir
  3946. if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
  3947. test -s conftest.one && test -s conftest.two &&
  3948. test -s conftest.dir/conftest.one &&
  3949. test -s conftest.dir/conftest.two
  3950. then
  3951. ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
  3952. break 3
  3953. fi
  3954. fi
  3955. fi
  3956. done
  3957. done
  3958. ;;
  3959. esac
  3960. done
  3961. IFS=$as_save_IFS
  3962. rm -rf conftest.one conftest.two conftest.dir
  3963. fi
  3964. if test ${ac_cv_path_install+y}; then
  3965. INSTALL=$ac_cv_path_install
  3966. else
  3967. # As a last resort, use the slow shell script. Don't cache a
  3968. # value for INSTALL within a source directory, because that will
  3969. # break other packages using the cache if that directory is
  3970. # removed, or if the value is a relative name.
  3971. INSTALL=$ac_install_sh
  3972. fi
  3973. fi
  3974. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  3975. printf "%s\n" "$INSTALL" >&6; }
  3976. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3977. # It thinks the first close brace ends the variable substitution.
  3978. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3979. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3980. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3981. # Expand $ac_aux_dir to an absolute path.
  3982. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  3983. ac_ext=c
  3984. ac_cpp='$CPP $CPPFLAGS'
  3985. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3986. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3987. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3988. if test -n "$ac_tool_prefix"; then
  3989. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3990. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3991. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3992. printf %s "checking for $ac_word... " >&6; }
  3993. if test ${ac_cv_prog_CC+y}
  3994. then :
  3995. printf %s "(cached) " >&6
  3996. else $as_nop
  3997. if test -n "$CC"; then
  3998. ac_cv_prog_CC="$CC" # Let the user override the test.
  3999. else
  4000. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4001. for as_dir in $PATH
  4002. do
  4003. IFS=$as_save_IFS
  4004. case $as_dir in #(((
  4005. '') as_dir=./ ;;
  4006. */) ;;
  4007. *) as_dir=$as_dir/ ;;
  4008. esac
  4009. for ac_exec_ext in '' $ac_executable_extensions; do
  4010. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4011. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  4012. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4013. break 2
  4014. fi
  4015. done
  4016. done
  4017. IFS=$as_save_IFS
  4018. fi
  4019. fi
  4020. CC=$ac_cv_prog_CC
  4021. if test -n "$CC"; then
  4022. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4023. printf "%s\n" "$CC" >&6; }
  4024. else
  4025. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4026. printf "%s\n" "no" >&6; }
  4027. fi
  4028. fi
  4029. if test -z "$ac_cv_prog_CC"; then
  4030. ac_ct_CC=$CC
  4031. # Extract the first word of "gcc", so it can be a program name with args.
  4032. set dummy gcc; ac_word=$2
  4033. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4034. printf %s "checking for $ac_word... " >&6; }
  4035. if test ${ac_cv_prog_ac_ct_CC+y}
  4036. then :
  4037. printf %s "(cached) " >&6
  4038. else $as_nop
  4039. if test -n "$ac_ct_CC"; then
  4040. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4041. else
  4042. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4043. for as_dir in $PATH
  4044. do
  4045. IFS=$as_save_IFS
  4046. case $as_dir in #(((
  4047. '') as_dir=./ ;;
  4048. */) ;;
  4049. *) as_dir=$as_dir/ ;;
  4050. esac
  4051. for ac_exec_ext in '' $ac_executable_extensions; do
  4052. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4053. ac_cv_prog_ac_ct_CC="gcc"
  4054. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4055. break 2
  4056. fi
  4057. done
  4058. done
  4059. IFS=$as_save_IFS
  4060. fi
  4061. fi
  4062. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4063. if test -n "$ac_ct_CC"; then
  4064. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4065. printf "%s\n" "$ac_ct_CC" >&6; }
  4066. else
  4067. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4068. printf "%s\n" "no" >&6; }
  4069. fi
  4070. if test "x$ac_ct_CC" = x; then
  4071. CC=""
  4072. else
  4073. case $cross_compiling:$ac_tool_warned in
  4074. yes:)
  4075. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4076. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4077. ac_tool_warned=yes ;;
  4078. esac
  4079. CC=$ac_ct_CC
  4080. fi
  4081. else
  4082. CC="$ac_cv_prog_CC"
  4083. fi
  4084. if test -z "$CC"; then
  4085. if test -n "$ac_tool_prefix"; then
  4086. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  4087. set dummy ${ac_tool_prefix}cc; ac_word=$2
  4088. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4089. printf %s "checking for $ac_word... " >&6; }
  4090. if test ${ac_cv_prog_CC+y}
  4091. then :
  4092. printf %s "(cached) " >&6
  4093. else $as_nop
  4094. if test -n "$CC"; then
  4095. ac_cv_prog_CC="$CC" # Let the user override the test.
  4096. else
  4097. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4098. for as_dir in $PATH
  4099. do
  4100. IFS=$as_save_IFS
  4101. case $as_dir in #(((
  4102. '') as_dir=./ ;;
  4103. */) ;;
  4104. *) as_dir=$as_dir/ ;;
  4105. esac
  4106. for ac_exec_ext in '' $ac_executable_extensions; do
  4107. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4108. ac_cv_prog_CC="${ac_tool_prefix}cc"
  4109. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4110. break 2
  4111. fi
  4112. done
  4113. done
  4114. IFS=$as_save_IFS
  4115. fi
  4116. fi
  4117. CC=$ac_cv_prog_CC
  4118. if test -n "$CC"; then
  4119. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4120. printf "%s\n" "$CC" >&6; }
  4121. else
  4122. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4123. printf "%s\n" "no" >&6; }
  4124. fi
  4125. fi
  4126. fi
  4127. if test -z "$CC"; then
  4128. # Extract the first word of "cc", so it can be a program name with args.
  4129. set dummy cc; ac_word=$2
  4130. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4131. printf %s "checking for $ac_word... " >&6; }
  4132. if test ${ac_cv_prog_CC+y}
  4133. then :
  4134. printf %s "(cached) " >&6
  4135. else $as_nop
  4136. if test -n "$CC"; then
  4137. ac_cv_prog_CC="$CC" # Let the user override the test.
  4138. else
  4139. ac_prog_rejected=no
  4140. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4141. for as_dir in $PATH
  4142. do
  4143. IFS=$as_save_IFS
  4144. case $as_dir in #(((
  4145. '') as_dir=./ ;;
  4146. */) ;;
  4147. *) as_dir=$as_dir/ ;;
  4148. esac
  4149. for ac_exec_ext in '' $ac_executable_extensions; do
  4150. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4151. if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  4152. ac_prog_rejected=yes
  4153. continue
  4154. fi
  4155. ac_cv_prog_CC="cc"
  4156. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4157. break 2
  4158. fi
  4159. done
  4160. done
  4161. IFS=$as_save_IFS
  4162. if test $ac_prog_rejected = yes; then
  4163. # We found a bogon in the path, so make sure we never use it.
  4164. set dummy $ac_cv_prog_CC
  4165. shift
  4166. if test $# != 0; then
  4167. # We chose a different compiler from the bogus one.
  4168. # However, it has the same basename, so the bogon will be chosen
  4169. # first if we set CC to just the basename; use the full file name.
  4170. shift
  4171. ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
  4172. fi
  4173. fi
  4174. fi
  4175. fi
  4176. CC=$ac_cv_prog_CC
  4177. if test -n "$CC"; then
  4178. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4179. printf "%s\n" "$CC" >&6; }
  4180. else
  4181. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4182. printf "%s\n" "no" >&6; }
  4183. fi
  4184. fi
  4185. if test -z "$CC"; then
  4186. if test -n "$ac_tool_prefix"; then
  4187. for ac_prog in cl.exe
  4188. do
  4189. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4190. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4191. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4192. printf %s "checking for $ac_word... " >&6; }
  4193. if test ${ac_cv_prog_CC+y}
  4194. then :
  4195. printf %s "(cached) " >&6
  4196. else $as_nop
  4197. if test -n "$CC"; then
  4198. ac_cv_prog_CC="$CC" # Let the user override the test.
  4199. else
  4200. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4201. for as_dir in $PATH
  4202. do
  4203. IFS=$as_save_IFS
  4204. case $as_dir in #(((
  4205. '') as_dir=./ ;;
  4206. */) ;;
  4207. *) as_dir=$as_dir/ ;;
  4208. esac
  4209. for ac_exec_ext in '' $ac_executable_extensions; do
  4210. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4211. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  4212. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4213. break 2
  4214. fi
  4215. done
  4216. done
  4217. IFS=$as_save_IFS
  4218. fi
  4219. fi
  4220. CC=$ac_cv_prog_CC
  4221. if test -n "$CC"; then
  4222. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4223. printf "%s\n" "$CC" >&6; }
  4224. else
  4225. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4226. printf "%s\n" "no" >&6; }
  4227. fi
  4228. test -n "$CC" && break
  4229. done
  4230. fi
  4231. if test -z "$CC"; then
  4232. ac_ct_CC=$CC
  4233. for ac_prog in cl.exe
  4234. do
  4235. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4236. set dummy $ac_prog; ac_word=$2
  4237. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4238. printf %s "checking for $ac_word... " >&6; }
  4239. if test ${ac_cv_prog_ac_ct_CC+y}
  4240. then :
  4241. printf %s "(cached) " >&6
  4242. else $as_nop
  4243. if test -n "$ac_ct_CC"; then
  4244. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4245. else
  4246. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4247. for as_dir in $PATH
  4248. do
  4249. IFS=$as_save_IFS
  4250. case $as_dir in #(((
  4251. '') as_dir=./ ;;
  4252. */) ;;
  4253. *) as_dir=$as_dir/ ;;
  4254. esac
  4255. for ac_exec_ext in '' $ac_executable_extensions; do
  4256. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4257. ac_cv_prog_ac_ct_CC="$ac_prog"
  4258. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4259. break 2
  4260. fi
  4261. done
  4262. done
  4263. IFS=$as_save_IFS
  4264. fi
  4265. fi
  4266. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4267. if test -n "$ac_ct_CC"; then
  4268. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4269. printf "%s\n" "$ac_ct_CC" >&6; }
  4270. else
  4271. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4272. printf "%s\n" "no" >&6; }
  4273. fi
  4274. test -n "$ac_ct_CC" && break
  4275. done
  4276. if test "x$ac_ct_CC" = x; then
  4277. CC=""
  4278. else
  4279. case $cross_compiling:$ac_tool_warned in
  4280. yes:)
  4281. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4282. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4283. ac_tool_warned=yes ;;
  4284. esac
  4285. CC=$ac_ct_CC
  4286. fi
  4287. fi
  4288. fi
  4289. if test -z "$CC"; then
  4290. if test -n "$ac_tool_prefix"; then
  4291. # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
  4292. set dummy ${ac_tool_prefix}clang; ac_word=$2
  4293. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4294. printf %s "checking for $ac_word... " >&6; }
  4295. if test ${ac_cv_prog_CC+y}
  4296. then :
  4297. printf %s "(cached) " >&6
  4298. else $as_nop
  4299. if test -n "$CC"; then
  4300. ac_cv_prog_CC="$CC" # Let the user override the test.
  4301. else
  4302. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4303. for as_dir in $PATH
  4304. do
  4305. IFS=$as_save_IFS
  4306. case $as_dir in #(((
  4307. '') as_dir=./ ;;
  4308. */) ;;
  4309. *) as_dir=$as_dir/ ;;
  4310. esac
  4311. for ac_exec_ext in '' $ac_executable_extensions; do
  4312. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4313. ac_cv_prog_CC="${ac_tool_prefix}clang"
  4314. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4315. break 2
  4316. fi
  4317. done
  4318. done
  4319. IFS=$as_save_IFS
  4320. fi
  4321. fi
  4322. CC=$ac_cv_prog_CC
  4323. if test -n "$CC"; then
  4324. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4325. printf "%s\n" "$CC" >&6; }
  4326. else
  4327. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4328. printf "%s\n" "no" >&6; }
  4329. fi
  4330. fi
  4331. if test -z "$ac_cv_prog_CC"; then
  4332. ac_ct_CC=$CC
  4333. # Extract the first word of "clang", so it can be a program name with args.
  4334. set dummy clang; ac_word=$2
  4335. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4336. printf %s "checking for $ac_word... " >&6; }
  4337. if test ${ac_cv_prog_ac_ct_CC+y}
  4338. then :
  4339. printf %s "(cached) " >&6
  4340. else $as_nop
  4341. if test -n "$ac_ct_CC"; then
  4342. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4343. else
  4344. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4345. for as_dir in $PATH
  4346. do
  4347. IFS=$as_save_IFS
  4348. case $as_dir in #(((
  4349. '') as_dir=./ ;;
  4350. */) ;;
  4351. *) as_dir=$as_dir/ ;;
  4352. esac
  4353. for ac_exec_ext in '' $ac_executable_extensions; do
  4354. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4355. ac_cv_prog_ac_ct_CC="clang"
  4356. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4357. break 2
  4358. fi
  4359. done
  4360. done
  4361. IFS=$as_save_IFS
  4362. fi
  4363. fi
  4364. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4365. if test -n "$ac_ct_CC"; then
  4366. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4367. printf "%s\n" "$ac_ct_CC" >&6; }
  4368. else
  4369. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4370. printf "%s\n" "no" >&6; }
  4371. fi
  4372. if test "x$ac_ct_CC" = x; then
  4373. CC=""
  4374. else
  4375. case $cross_compiling:$ac_tool_warned in
  4376. yes:)
  4377. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4378. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4379. ac_tool_warned=yes ;;
  4380. esac
  4381. CC=$ac_ct_CC
  4382. fi
  4383. else
  4384. CC="$ac_cv_prog_CC"
  4385. fi
  4386. fi
  4387. test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4388. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  4389. as_fn_error $? "no acceptable C compiler found in \$PATH
  4390. See \`config.log' for more details" "$LINENO" 5; }
  4391. # Provide some information about the compiler.
  4392. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  4393. set X $ac_compile
  4394. ac_compiler=$2
  4395. for ac_option in --version -v -V -qversion -version; do
  4396. { { ac_try="$ac_compiler $ac_option >&5"
  4397. case "(($ac_try" in
  4398. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4399. *) ac_try_echo=$ac_try;;
  4400. esac
  4401. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4402. printf "%s\n" "$ac_try_echo"; } >&5
  4403. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4404. ac_status=$?
  4405. if test -s conftest.err; then
  4406. sed '10a\
  4407. ... rest of stderr output deleted ...
  4408. 10q' conftest.err >conftest.er1
  4409. cat conftest.er1 >&5
  4410. fi
  4411. rm -f conftest.er1 conftest.err
  4412. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4413. test $ac_status = 0; }
  4414. done
  4415. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4416. /* end confdefs.h. */
  4417. int main (void)
  4418. {
  4419. ;
  4420. return 0;
  4421. }
  4422. _ACEOF
  4423. ac_clean_files_save=$ac_clean_files
  4424. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  4425. # Try to create an executable without -o first, disregard a.out.
  4426. # It will help us diagnose broken compilers, and finding out an intuition
  4427. # of exeext.
  4428. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  4429. printf %s "checking whether the C compiler works... " >&6; }
  4430. ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  4431. # The possible output files:
  4432. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  4433. ac_rmfiles=
  4434. for ac_file in $ac_files
  4435. do
  4436. case $ac_file in
  4437. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  4438. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  4439. esac
  4440. done
  4441. rm -f $ac_rmfiles
  4442. if { { ac_try="$ac_link_default"
  4443. case "(($ac_try" in
  4444. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4445. *) ac_try_echo=$ac_try;;
  4446. esac
  4447. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4448. printf "%s\n" "$ac_try_echo"; } >&5
  4449. (eval "$ac_link_default") 2>&5
  4450. ac_status=$?
  4451. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4452. test $ac_status = 0; }
  4453. then :
  4454. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  4455. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  4456. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  4457. # so that the user can short-circuit this test for compilers unknown to
  4458. # Autoconf.
  4459. for ac_file in $ac_files ''
  4460. do
  4461. test -f "$ac_file" || continue
  4462. case $ac_file in
  4463. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  4464. ;;
  4465. [ab].out )
  4466. # We found the default executable, but exeext='' is most
  4467. # certainly right.
  4468. break;;
  4469. *.* )
  4470. if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
  4471. then :; else
  4472. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  4473. fi
  4474. # We set ac_cv_exeext here because the later test for it is not
  4475. # safe: cross compilers may not add the suffix if given an `-o'
  4476. # argument, so we may need to know it at that point already.
  4477. # Even if this section looks crufty: it has the advantage of
  4478. # actually working.
  4479. break;;
  4480. * )
  4481. break;;
  4482. esac
  4483. done
  4484. test "$ac_cv_exeext" = no && ac_cv_exeext=
  4485. else $as_nop
  4486. ac_file=''
  4487. fi
  4488. if test -z "$ac_file"
  4489. then :
  4490. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4491. printf "%s\n" "no" >&6; }
  4492. printf "%s\n" "$as_me: failed program was:" >&5
  4493. sed 's/^/| /' conftest.$ac_ext >&5
  4494. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4495. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  4496. as_fn_error 77 "C compiler cannot create executables
  4497. See \`config.log' for more details" "$LINENO" 5; }
  4498. else $as_nop
  4499. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4500. printf "%s\n" "yes" >&6; }
  4501. fi
  4502. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  4503. printf %s "checking for C compiler default output file name... " >&6; }
  4504. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  4505. printf "%s\n" "$ac_file" >&6; }
  4506. ac_exeext=$ac_cv_exeext
  4507. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  4508. ac_clean_files=$ac_clean_files_save
  4509. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  4510. printf %s "checking for suffix of executables... " >&6; }
  4511. if { { ac_try="$ac_link"
  4512. case "(($ac_try" in
  4513. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4514. *) ac_try_echo=$ac_try;;
  4515. esac
  4516. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4517. printf "%s\n" "$ac_try_echo"; } >&5
  4518. (eval "$ac_link") 2>&5
  4519. ac_status=$?
  4520. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4521. test $ac_status = 0; }
  4522. then :
  4523. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  4524. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  4525. # work properly (i.e., refer to `conftest.exe'), while it won't with
  4526. # `rm'.
  4527. for ac_file in conftest.exe conftest conftest.*; do
  4528. test -f "$ac_file" || continue
  4529. case $ac_file in
  4530. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  4531. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  4532. break;;
  4533. * ) break;;
  4534. esac
  4535. done
  4536. else $as_nop
  4537. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4538. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  4539. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  4540. See \`config.log' for more details" "$LINENO" 5; }
  4541. fi
  4542. rm -f conftest conftest$ac_cv_exeext
  4543. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  4544. printf "%s\n" "$ac_cv_exeext" >&6; }
  4545. rm -f conftest.$ac_ext
  4546. EXEEXT=$ac_cv_exeext
  4547. ac_exeext=$EXEEXT
  4548. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4549. /* end confdefs.h. */
  4550. #include <stdio.h>
  4551. int main (void)
  4552. {
  4553. FILE *f = fopen ("conftest.out", "w");
  4554. return ferror (f) || fclose (f) != 0;
  4555. ;
  4556. return 0;
  4557. }
  4558. _ACEOF
  4559. ac_clean_files="$ac_clean_files conftest.out"
  4560. # Check that the compiler produces executables we can run. If not, either
  4561. # the compiler is broken, or we cross compile.
  4562. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  4563. printf %s "checking whether we are cross compiling... " >&6; }
  4564. if test "$cross_compiling" != yes; then
  4565. { { ac_try="$ac_link"
  4566. case "(($ac_try" in
  4567. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4568. *) ac_try_echo=$ac_try;;
  4569. esac
  4570. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4571. printf "%s\n" "$ac_try_echo"; } >&5
  4572. (eval "$ac_link") 2>&5
  4573. ac_status=$?
  4574. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4575. test $ac_status = 0; }
  4576. if { ac_try='./conftest$ac_cv_exeext'
  4577. { { case "(($ac_try" in
  4578. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4579. *) ac_try_echo=$ac_try;;
  4580. esac
  4581. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4582. printf "%s\n" "$ac_try_echo"; } >&5
  4583. (eval "$ac_try") 2>&5
  4584. ac_status=$?
  4585. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4586. test $ac_status = 0; }; }; then
  4587. cross_compiling=no
  4588. else
  4589. if test "$cross_compiling" = maybe; then
  4590. cross_compiling=yes
  4591. else
  4592. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4593. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  4594. as_fn_error 77 "cannot run C compiled programs.
  4595. If you meant to cross compile, use \`--host'.
  4596. See \`config.log' for more details" "$LINENO" 5; }
  4597. fi
  4598. fi
  4599. fi
  4600. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  4601. printf "%s\n" "$cross_compiling" >&6; }
  4602. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  4603. ac_clean_files=$ac_clean_files_save
  4604. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  4605. printf %s "checking for suffix of object files... " >&6; }
  4606. if test ${ac_cv_objext+y}
  4607. then :
  4608. printf %s "(cached) " >&6
  4609. else $as_nop
  4610. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4611. /* end confdefs.h. */
  4612. int main (void)
  4613. {
  4614. ;
  4615. return 0;
  4616. }
  4617. _ACEOF
  4618. rm -f conftest.o conftest.obj
  4619. if { { ac_try="$ac_compile"
  4620. case "(($ac_try" in
  4621. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4622. *) ac_try_echo=$ac_try;;
  4623. esac
  4624. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4625. printf "%s\n" "$ac_try_echo"; } >&5
  4626. (eval "$ac_compile") 2>&5
  4627. ac_status=$?
  4628. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4629. test $ac_status = 0; }
  4630. then :
  4631. for ac_file in conftest.o conftest.obj conftest.*; do
  4632. test -f "$ac_file" || continue;
  4633. case $ac_file in
  4634. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  4635. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  4636. break;;
  4637. esac
  4638. done
  4639. else $as_nop
  4640. printf "%s\n" "$as_me: failed program was:" >&5
  4641. sed 's/^/| /' conftest.$ac_ext >&5
  4642. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4643. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  4644. as_fn_error $? "cannot compute suffix of object files: cannot compile
  4645. See \`config.log' for more details" "$LINENO" 5; }
  4646. fi
  4647. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  4648. fi
  4649. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  4650. printf "%s\n" "$ac_cv_objext" >&6; }
  4651. OBJEXT=$ac_cv_objext
  4652. ac_objext=$OBJEXT
  4653. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
  4654. printf %s "checking whether the compiler supports GNU C... " >&6; }
  4655. if test ${ac_cv_c_compiler_gnu+y}
  4656. then :
  4657. printf %s "(cached) " >&6
  4658. else $as_nop
  4659. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4660. /* end confdefs.h. */
  4661. int main (void)
  4662. {
  4663. #ifndef __GNUC__
  4664. choke me
  4665. #endif
  4666. ;
  4667. return 0;
  4668. }
  4669. _ACEOF
  4670. if ac_fn_c_try_compile "$LINENO"
  4671. then :
  4672. ac_compiler_gnu=yes
  4673. else $as_nop
  4674. ac_compiler_gnu=no
  4675. fi
  4676. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4677. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4678. fi
  4679. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4680. printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
  4681. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4682. if test $ac_compiler_gnu = yes; then
  4683. GCC=yes
  4684. else
  4685. GCC=
  4686. fi
  4687. ac_test_CFLAGS=${CFLAGS+y}
  4688. ac_save_CFLAGS=$CFLAGS
  4689. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4690. printf %s "checking whether $CC accepts -g... " >&6; }
  4691. if test ${ac_cv_prog_cc_g+y}
  4692. then :
  4693. printf %s "(cached) " >&6
  4694. else $as_nop
  4695. ac_save_c_werror_flag=$ac_c_werror_flag
  4696. ac_c_werror_flag=yes
  4697. ac_cv_prog_cc_g=no
  4698. CFLAGS="-g"
  4699. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4700. /* end confdefs.h. */
  4701. int main (void)
  4702. {
  4703. ;
  4704. return 0;
  4705. }
  4706. _ACEOF
  4707. if ac_fn_c_try_compile "$LINENO"
  4708. then :
  4709. ac_cv_prog_cc_g=yes
  4710. else $as_nop
  4711. CFLAGS=""
  4712. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4713. /* end confdefs.h. */
  4714. int main (void)
  4715. {
  4716. ;
  4717. return 0;
  4718. }
  4719. _ACEOF
  4720. if ac_fn_c_try_compile "$LINENO"
  4721. then :
  4722. else $as_nop
  4723. ac_c_werror_flag=$ac_save_c_werror_flag
  4724. CFLAGS="-g"
  4725. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4726. /* end confdefs.h. */
  4727. int main (void)
  4728. {
  4729. ;
  4730. return 0;
  4731. }
  4732. _ACEOF
  4733. if ac_fn_c_try_compile "$LINENO"
  4734. then :
  4735. ac_cv_prog_cc_g=yes
  4736. fi
  4737. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4738. fi
  4739. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4740. fi
  4741. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4742. ac_c_werror_flag=$ac_save_c_werror_flag
  4743. fi
  4744. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4745. printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
  4746. if test $ac_test_CFLAGS; then
  4747. CFLAGS=$ac_save_CFLAGS
  4748. elif test $ac_cv_prog_cc_g = yes; then
  4749. if test "$GCC" = yes; then
  4750. CFLAGS="-g -O2"
  4751. else
  4752. CFLAGS="-g"
  4753. fi
  4754. else
  4755. if test "$GCC" = yes; then
  4756. CFLAGS="-O2"
  4757. else
  4758. CFLAGS=
  4759. fi
  4760. fi
  4761. ac_prog_cc_stdc=no
  4762. if test x$ac_prog_cc_stdc = xno
  4763. then :
  4764. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
  4765. printf %s "checking for $CC option to enable C11 features... " >&6; }
  4766. if test ${ac_cv_prog_cc_c11+y}
  4767. then :
  4768. printf %s "(cached) " >&6
  4769. else $as_nop
  4770. ac_cv_prog_cc_c11=no
  4771. ac_save_CC=$CC
  4772. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4773. /* end confdefs.h. */
  4774. $ac_c_conftest_c11_program
  4775. _ACEOF
  4776. for ac_arg in '' -std=gnu11
  4777. do
  4778. CC="$ac_save_CC $ac_arg"
  4779. if ac_fn_c_try_compile "$LINENO"
  4780. then :
  4781. ac_cv_prog_cc_c11=$ac_arg
  4782. fi
  4783. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4784. test "x$ac_cv_prog_cc_c11" != "xno" && break
  4785. done
  4786. rm -f conftest.$ac_ext
  4787. CC=$ac_save_CC
  4788. fi
  4789. if test "x$ac_cv_prog_cc_c11" = xno
  4790. then :
  4791. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4792. printf "%s\n" "unsupported" >&6; }
  4793. else $as_nop
  4794. if test "x$ac_cv_prog_cc_c11" = x
  4795. then :
  4796. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4797. printf "%s\n" "none needed" >&6; }
  4798. else $as_nop
  4799. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
  4800. printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
  4801. CC="$CC $ac_cv_prog_cc_c11"
  4802. fi
  4803. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  4804. ac_prog_cc_stdc=c11
  4805. fi
  4806. fi
  4807. if test x$ac_prog_cc_stdc = xno
  4808. then :
  4809. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
  4810. printf %s "checking for $CC option to enable C99 features... " >&6; }
  4811. if test ${ac_cv_prog_cc_c99+y}
  4812. then :
  4813. printf %s "(cached) " >&6
  4814. else $as_nop
  4815. ac_cv_prog_cc_c99=no
  4816. ac_save_CC=$CC
  4817. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4818. /* end confdefs.h. */
  4819. $ac_c_conftest_c99_program
  4820. _ACEOF
  4821. for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
  4822. do
  4823. CC="$ac_save_CC $ac_arg"
  4824. if ac_fn_c_try_compile "$LINENO"
  4825. then :
  4826. ac_cv_prog_cc_c99=$ac_arg
  4827. fi
  4828. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4829. test "x$ac_cv_prog_cc_c99" != "xno" && break
  4830. done
  4831. rm -f conftest.$ac_ext
  4832. CC=$ac_save_CC
  4833. fi
  4834. if test "x$ac_cv_prog_cc_c99" = xno
  4835. then :
  4836. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4837. printf "%s\n" "unsupported" >&6; }
  4838. else $as_nop
  4839. if test "x$ac_cv_prog_cc_c99" = x
  4840. then :
  4841. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4842. printf "%s\n" "none needed" >&6; }
  4843. else $as_nop
  4844. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  4845. printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
  4846. CC="$CC $ac_cv_prog_cc_c99"
  4847. fi
  4848. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  4849. ac_prog_cc_stdc=c99
  4850. fi
  4851. fi
  4852. if test x$ac_prog_cc_stdc = xno
  4853. then :
  4854. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
  4855. printf %s "checking for $CC option to enable C89 features... " >&6; }
  4856. if test ${ac_cv_prog_cc_c89+y}
  4857. then :
  4858. printf %s "(cached) " >&6
  4859. else $as_nop
  4860. ac_cv_prog_cc_c89=no
  4861. ac_save_CC=$CC
  4862. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4863. /* end confdefs.h. */
  4864. $ac_c_conftest_c89_program
  4865. _ACEOF
  4866. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4867. do
  4868. CC="$ac_save_CC $ac_arg"
  4869. if ac_fn_c_try_compile "$LINENO"
  4870. then :
  4871. ac_cv_prog_cc_c89=$ac_arg
  4872. fi
  4873. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4874. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4875. done
  4876. rm -f conftest.$ac_ext
  4877. CC=$ac_save_CC
  4878. fi
  4879. if test "x$ac_cv_prog_cc_c89" = xno
  4880. then :
  4881. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4882. printf "%s\n" "unsupported" >&6; }
  4883. else $as_nop
  4884. if test "x$ac_cv_prog_cc_c89" = x
  4885. then :
  4886. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4887. printf "%s\n" "none needed" >&6; }
  4888. else $as_nop
  4889. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4890. printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
  4891. CC="$CC $ac_cv_prog_cc_c89"
  4892. fi
  4893. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  4894. ac_prog_cc_stdc=c89
  4895. fi
  4896. fi
  4897. ac_ext=c
  4898. ac_cpp='$CPP $CPPFLAGS'
  4899. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4900. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4901. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4902. ac_ext=c
  4903. ac_cpp='$CPP $CPPFLAGS'
  4904. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4905. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4906. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4907. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  4908. printf %s "checking whether $CC understands -c and -o together... " >&6; }
  4909. if test ${am_cv_prog_cc_c_o+y}
  4910. then :
  4911. printf %s "(cached) " >&6
  4912. else $as_nop
  4913. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4914. /* end confdefs.h. */
  4915. int main (void)
  4916. {
  4917. ;
  4918. return 0;
  4919. }
  4920. _ACEOF
  4921. # Make sure it works both with $CC and with simple cc.
  4922. # Following AC_PROG_CC_C_O, we do the test twice because some
  4923. # compilers refuse to overwrite an existing .o file with -o,
  4924. # though they will create one.
  4925. am_cv_prog_cc_c_o=yes
  4926. for am_i in 1 2; do
  4927. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  4928. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  4929. ac_status=$?
  4930. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4931. (exit $ac_status); } \
  4932. && test -f conftest2.$ac_objext; then
  4933. : OK
  4934. else
  4935. am_cv_prog_cc_c_o=no
  4936. break
  4937. fi
  4938. done
  4939. rm -f core conftest*
  4940. unset am_i
  4941. fi
  4942. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  4943. printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
  4944. if test "$am_cv_prog_cc_c_o" != yes; then
  4945. # Losing compiler, so override with the script.
  4946. # FIXME: It is wrong to rewrite CC.
  4947. # But if we don't then we get into trouble of one sort or another.
  4948. # A longer-term fix would be to have automake use am__CC in this case,
  4949. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  4950. CC="$am_aux_dir/compile $CC"
  4951. fi
  4952. ac_ext=c
  4953. ac_cpp='$CPP $CPPFLAGS'
  4954. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4955. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4956. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4957. ac_ext=c
  4958. ac_cpp='$CPP $CPPFLAGS'
  4959. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4960. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4961. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4962. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  4963. printf %s "checking how to run the C preprocessor... " >&6; }
  4964. # On Suns, sometimes $CPP names a directory.
  4965. if test -n "$CPP" && test -d "$CPP"; then
  4966. CPP=
  4967. fi
  4968. if test -z "$CPP"; then
  4969. if test ${ac_cv_prog_CPP+y}
  4970. then :
  4971. printf %s "(cached) " >&6
  4972. else $as_nop
  4973. # Double quotes because $CC needs to be expanded
  4974. for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
  4975. do
  4976. ac_preproc_ok=false
  4977. for ac_c_preproc_warn_flag in '' yes
  4978. do
  4979. # Use a header file that comes with gcc, so configuring glibc
  4980. # with a fresh cross-compiler works.
  4981. # On the NeXT, cc -E runs the code through the compiler's parser,
  4982. # not just through cpp. "Syntax error" is here to catch this case.
  4983. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4984. /* end confdefs.h. */
  4985. #include <limits.h>
  4986. Syntax error
  4987. _ACEOF
  4988. if ac_fn_c_try_cpp "$LINENO"
  4989. then :
  4990. else $as_nop
  4991. # Broken: fails on valid input.
  4992. continue
  4993. fi
  4994. rm -f conftest.err conftest.i conftest.$ac_ext
  4995. # OK, works on sane cases. Now check whether nonexistent headers
  4996. # can be detected and how.
  4997. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4998. /* end confdefs.h. */
  4999. #include <ac_nonexistent.h>
  5000. _ACEOF
  5001. if ac_fn_c_try_cpp "$LINENO"
  5002. then :
  5003. # Broken: success on invalid input.
  5004. continue
  5005. else $as_nop
  5006. # Passes both tests.
  5007. ac_preproc_ok=:
  5008. break
  5009. fi
  5010. rm -f conftest.err conftest.i conftest.$ac_ext
  5011. done
  5012. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5013. rm -f conftest.i conftest.err conftest.$ac_ext
  5014. if $ac_preproc_ok
  5015. then :
  5016. break
  5017. fi
  5018. done
  5019. ac_cv_prog_CPP=$CPP
  5020. fi
  5021. CPP=$ac_cv_prog_CPP
  5022. else
  5023. ac_cv_prog_CPP=$CPP
  5024. fi
  5025. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  5026. printf "%s\n" "$CPP" >&6; }
  5027. ac_preproc_ok=false
  5028. for ac_c_preproc_warn_flag in '' yes
  5029. do
  5030. # Use a header file that comes with gcc, so configuring glibc
  5031. # with a fresh cross-compiler works.
  5032. # On the NeXT, cc -E runs the code through the compiler's parser,
  5033. # not just through cpp. "Syntax error" is here to catch this case.
  5034. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5035. /* end confdefs.h. */
  5036. #include <limits.h>
  5037. Syntax error
  5038. _ACEOF
  5039. if ac_fn_c_try_cpp "$LINENO"
  5040. then :
  5041. else $as_nop
  5042. # Broken: fails on valid input.
  5043. continue
  5044. fi
  5045. rm -f conftest.err conftest.i conftest.$ac_ext
  5046. # OK, works on sane cases. Now check whether nonexistent headers
  5047. # can be detected and how.
  5048. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5049. /* end confdefs.h. */
  5050. #include <ac_nonexistent.h>
  5051. _ACEOF
  5052. if ac_fn_c_try_cpp "$LINENO"
  5053. then :
  5054. # Broken: success on invalid input.
  5055. continue
  5056. else $as_nop
  5057. # Passes both tests.
  5058. ac_preproc_ok=:
  5059. break
  5060. fi
  5061. rm -f conftest.err conftest.i conftest.$ac_ext
  5062. done
  5063. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5064. rm -f conftest.i conftest.err conftest.$ac_ext
  5065. if $ac_preproc_ok
  5066. then :
  5067. else $as_nop
  5068. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5069. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  5070. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  5071. See \`config.log' for more details" "$LINENO" 5; }
  5072. fi
  5073. ac_ext=c
  5074. ac_cpp='$CPP $CPPFLAGS'
  5075. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5076. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5077. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5078. IFS=$xc_prog_cc_prev_IFS
  5079. LIBS=$xc_prog_cc_prev_LIBS
  5080. CFLAGS=$xc_prog_cc_prev_CFLAGS
  5081. LDFLAGS=$xc_prog_cc_prev_LDFLAGS
  5082. CPPFLAGS=$xc_prog_cc_prev_CPPFLAGS
  5083. ac_header= ac_cache=
  5084. for ac_item in $ac_header_c_list
  5085. do
  5086. if test $ac_cache; then
  5087. ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
  5088. if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
  5089. printf "%s\n" "#define $ac_item 1" >> confdefs.h
  5090. fi
  5091. ac_header= ac_cache=
  5092. elif test $ac_header; then
  5093. ac_cache=$ac_item
  5094. else
  5095. ac_header=$ac_item
  5096. fi
  5097. done
  5098. if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
  5099. then :
  5100. printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
  5101. fi
  5102. for ac_header in stdatomic.h
  5103. do :
  5104. ac_fn_c_check_header_compile "$LINENO" "stdatomic.h" "ac_cv_header_stdatomic_h" "$ac_includes_default"
  5105. if test "x$ac_cv_header_stdatomic_h" = xyes
  5106. then :
  5107. printf "%s\n" "#define HAVE_STDATOMIC_H 1" >>confdefs.h
  5108. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _Atomic is available" >&5
  5109. printf %s "checking if _Atomic is available... " >&6; }
  5110. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5111. /* end confdefs.h. */
  5112. $curl_includes_unistd
  5113. int main (void)
  5114. {
  5115. _Atomic int i = 0;
  5116. i = 4; // Force an atomic-write operation.
  5117. ;
  5118. return 0;
  5119. }
  5120. _ACEOF
  5121. if ac_fn_c_try_link "$LINENO"
  5122. then :
  5123. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5124. printf "%s\n" "yes" >&6; }
  5125. printf "%s\n" "#define HAVE_ATOMIC 1" >>confdefs.h
  5126. tst_atomic="yes"
  5127. else $as_nop
  5128. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5129. printf "%s\n" "no" >&6; }
  5130. tst_atomic="no"
  5131. fi
  5132. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  5133. conftest$ac_exeext conftest.$ac_ext
  5134. fi
  5135. done
  5136. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  5137. printf %s "checking for a sed that does not truncate output... " >&6; }
  5138. if test ${ac_cv_path_SED+y}
  5139. then :
  5140. printf %s "(cached) " >&6
  5141. else $as_nop
  5142. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  5143. for ac_i in 1 2 3 4 5 6 7; do
  5144. ac_script="$ac_script$as_nl$ac_script"
  5145. done
  5146. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  5147. { ac_script=; unset ac_script;}
  5148. if test -z "$SED"; then
  5149. ac_path_SED_found=false
  5150. # Loop through the user's path and test for each of PROGNAME-LIST
  5151. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5152. for as_dir in $PATH
  5153. do
  5154. IFS=$as_save_IFS
  5155. case $as_dir in #(((
  5156. '') as_dir=./ ;;
  5157. */) ;;
  5158. *) as_dir=$as_dir/ ;;
  5159. esac
  5160. for ac_prog in sed gsed
  5161. do
  5162. for ac_exec_ext in '' $ac_executable_extensions; do
  5163. ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
  5164. as_fn_executable_p "$ac_path_SED" || continue
  5165. # Check for GNU ac_path_SED and select it if it is found.
  5166. # Check for GNU $ac_path_SED
  5167. case `"$ac_path_SED" --version 2>&1` in
  5168. *GNU*)
  5169. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  5170. *)
  5171. ac_count=0
  5172. printf %s 0123456789 >"conftest.in"
  5173. while :
  5174. do
  5175. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5176. mv "conftest.tmp" "conftest.in"
  5177. cp "conftest.in" "conftest.nl"
  5178. printf "%s\n" '' >> "conftest.nl"
  5179. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5180. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5181. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5182. if test $ac_count -gt ${ac_path_SED_max-0}; then
  5183. # Best one so far, save it but keep looking for a better one
  5184. ac_cv_path_SED="$ac_path_SED"
  5185. ac_path_SED_max=$ac_count
  5186. fi
  5187. # 10*(2^10) chars as input seems more than enough
  5188. test $ac_count -gt 10 && break
  5189. done
  5190. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5191. esac
  5192. $ac_path_SED_found && break 3
  5193. done
  5194. done
  5195. done
  5196. IFS=$as_save_IFS
  5197. if test -z "$ac_cv_path_SED"; then
  5198. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  5199. fi
  5200. else
  5201. ac_cv_path_SED=$SED
  5202. fi
  5203. fi
  5204. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  5205. printf "%s\n" "$ac_cv_path_SED" >&6; }
  5206. SED="$ac_cv_path_SED"
  5207. rm -f conftest.sed
  5208. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for code coverage support" >&5
  5209. printf %s "checking for code coverage support... " >&6; }
  5210. coverage="no"
  5211. curl_coverage_msg="disabled"
  5212. # Check whether --enable-code-coverage was given.
  5213. if test ${enable_code_coverage+y}
  5214. then :
  5215. enableval=$enable_code_coverage; coverage="$enableval"
  5216. fi
  5217. if test "$GCC" != "yes"
  5218. then :
  5219. coverage="no"
  5220. fi
  5221. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $coverage" >&5
  5222. printf "%s\n" "$coverage" >&6; }
  5223. if test "x$coverage" = "xyes"; then
  5224. curl_coverage_msg="enabled"
  5225. if test -n "$ac_tool_prefix"; then
  5226. # Extract the first word of "${ac_tool_prefix}gcov", so it can be a program name with args.
  5227. set dummy ${ac_tool_prefix}gcov; ac_word=$2
  5228. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5229. printf %s "checking for $ac_word... " >&6; }
  5230. if test ${ac_cv_prog_GCOV+y}
  5231. then :
  5232. printf %s "(cached) " >&6
  5233. else $as_nop
  5234. if test -n "$GCOV"; then
  5235. ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
  5236. else
  5237. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5238. for as_dir in $PATH
  5239. do
  5240. IFS=$as_save_IFS
  5241. case $as_dir in #(((
  5242. '') as_dir=./ ;;
  5243. */) ;;
  5244. *) as_dir=$as_dir/ ;;
  5245. esac
  5246. for ac_exec_ext in '' $ac_executable_extensions; do
  5247. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5248. ac_cv_prog_GCOV="${ac_tool_prefix}gcov"
  5249. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5250. break 2
  5251. fi
  5252. done
  5253. done
  5254. IFS=$as_save_IFS
  5255. fi
  5256. fi
  5257. GCOV=$ac_cv_prog_GCOV
  5258. if test -n "$GCOV"; then
  5259. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
  5260. printf "%s\n" "$GCOV" >&6; }
  5261. else
  5262. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5263. printf "%s\n" "no" >&6; }
  5264. fi
  5265. fi
  5266. if test -z "$ac_cv_prog_GCOV"; then
  5267. ac_ct_GCOV=$GCOV
  5268. # Extract the first word of "gcov", so it can be a program name with args.
  5269. set dummy gcov; ac_word=$2
  5270. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5271. printf %s "checking for $ac_word... " >&6; }
  5272. if test ${ac_cv_prog_ac_ct_GCOV+y}
  5273. then :
  5274. printf %s "(cached) " >&6
  5275. else $as_nop
  5276. if test -n "$ac_ct_GCOV"; then
  5277. ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test.
  5278. else
  5279. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5280. for as_dir in $PATH
  5281. do
  5282. IFS=$as_save_IFS
  5283. case $as_dir in #(((
  5284. '') as_dir=./ ;;
  5285. */) ;;
  5286. *) as_dir=$as_dir/ ;;
  5287. esac
  5288. for ac_exec_ext in '' $ac_executable_extensions; do
  5289. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5290. ac_cv_prog_ac_ct_GCOV="gcov"
  5291. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5292. break 2
  5293. fi
  5294. done
  5295. done
  5296. IFS=$as_save_IFS
  5297. fi
  5298. fi
  5299. ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV
  5300. if test -n "$ac_ct_GCOV"; then
  5301. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCOV" >&5
  5302. printf "%s\n" "$ac_ct_GCOV" >&6; }
  5303. else
  5304. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5305. printf "%s\n" "no" >&6; }
  5306. fi
  5307. if test "x$ac_ct_GCOV" = x; then
  5308. GCOV="gcov"
  5309. else
  5310. case $cross_compiling:$ac_tool_warned in
  5311. yes:)
  5312. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5313. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5314. ac_tool_warned=yes ;;
  5315. esac
  5316. GCOV=$ac_ct_GCOV
  5317. fi
  5318. else
  5319. GCOV="$ac_cv_prog_GCOV"
  5320. fi
  5321. if test -z "$GCOV"; then
  5322. as_fn_error $? "needs gcov for code coverage" "$LINENO" 5
  5323. fi
  5324. # Extract the first word of "lcov", so it can be a program name with args.
  5325. set dummy lcov; ac_word=$2
  5326. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5327. printf %s "checking for $ac_word... " >&6; }
  5328. if test ${ac_cv_prog_LCOV+y}
  5329. then :
  5330. printf %s "(cached) " >&6
  5331. else $as_nop
  5332. if test -n "$LCOV"; then
  5333. ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
  5334. else
  5335. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5336. for as_dir in $PATH
  5337. do
  5338. IFS=$as_save_IFS
  5339. case $as_dir in #(((
  5340. '') as_dir=./ ;;
  5341. */) ;;
  5342. *) as_dir=$as_dir/ ;;
  5343. esac
  5344. for ac_exec_ext in '' $ac_executable_extensions; do
  5345. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5346. ac_cv_prog_LCOV="lcov"
  5347. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5348. break 2
  5349. fi
  5350. done
  5351. done
  5352. IFS=$as_save_IFS
  5353. fi
  5354. fi
  5355. LCOV=$ac_cv_prog_LCOV
  5356. if test -n "$LCOV"; then
  5357. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
  5358. printf "%s\n" "$LCOV" >&6; }
  5359. else
  5360. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5361. printf "%s\n" "no" >&6; }
  5362. fi
  5363. if test -z "$LCOV"; then
  5364. as_fn_error $? "needs lcov for code coverage" "$LINENO" 5
  5365. fi
  5366. CPPFLAGS="$CPPFLAGS -DNDEBUG"
  5367. CFLAGS="$CFLAGS -O0 -g -fprofile-arcs -ftest-coverage"
  5368. LIBS="$LIBS -lgcov"
  5369. fi
  5370. am__api_version='1.16'
  5371. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  5372. printf %s "checking whether build environment is sane... " >&6; }
  5373. # Reject unsafe characters in $srcdir or the absolute working directory
  5374. # name. Accept space and tab only in the latter.
  5375. am_lf='
  5376. '
  5377. case `pwd` in
  5378. *[\\\"\#\$\&\'\`$am_lf]*)
  5379. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  5380. esac
  5381. case $srcdir in
  5382. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  5383. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  5384. esac
  5385. # Do 'set' in a subshell so we don't clobber the current shell's
  5386. # arguments. Must try -L first in case configure is actually a
  5387. # symlink; some systems play weird games with the mod time of symlinks
  5388. # (eg FreeBSD returns the mod time of the symlink's containing
  5389. # directory).
  5390. if (
  5391. am_has_slept=no
  5392. for am_try in 1 2; do
  5393. echo "timestamp, slept: $am_has_slept" > conftest.file
  5394. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  5395. if test "$*" = "X"; then
  5396. # -L didn't work.
  5397. set X `ls -t "$srcdir/configure" conftest.file`
  5398. fi
  5399. if test "$*" != "X $srcdir/configure conftest.file" \
  5400. && test "$*" != "X conftest.file $srcdir/configure"; then
  5401. # If neither matched, then we have a broken ls. This can happen
  5402. # if, for instance, CONFIG_SHELL is bash and it inherits a
  5403. # broken ls alias from the environment. This has actually
  5404. # happened. Such a system could not be considered "sane".
  5405. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  5406. alias in your environment" "$LINENO" 5
  5407. fi
  5408. if test "$2" = conftest.file || test $am_try -eq 2; then
  5409. break
  5410. fi
  5411. # Just in case.
  5412. sleep 1
  5413. am_has_slept=yes
  5414. done
  5415. test "$2" = conftest.file
  5416. )
  5417. then
  5418. # Ok.
  5419. :
  5420. else
  5421. as_fn_error $? "newly created file is older than distributed files!
  5422. Check your system clock" "$LINENO" 5
  5423. fi
  5424. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5425. printf "%s\n" "yes" >&6; }
  5426. # If we didn't sleep, we still need to ensure time stamps of config.status and
  5427. # generated files are strictly newer.
  5428. am_sleep_pid=
  5429. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  5430. ( sleep 1 ) &
  5431. am_sleep_pid=$!
  5432. fi
  5433. rm -f conftest.file
  5434. test "$program_prefix" != NONE &&
  5435. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  5436. # Use a double $ so make ignores it.
  5437. test "$program_suffix" != NONE &&
  5438. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  5439. # Double any \ or $.
  5440. # By default was `s,x,x', remove it if useless.
  5441. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  5442. program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
  5443. if test x"${MISSING+set}" != xset; then
  5444. MISSING="\${SHELL} '$am_aux_dir/missing'"
  5445. fi
  5446. # Use eval to expand $SHELL
  5447. if eval "$MISSING --is-lightweight"; then
  5448. am_missing_run="$MISSING "
  5449. else
  5450. am_missing_run=
  5451. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  5452. printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  5453. fi
  5454. if test x"${install_sh+set}" != xset; then
  5455. case $am_aux_dir in
  5456. *\ * | *\ *)
  5457. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  5458. *)
  5459. install_sh="\${SHELL} $am_aux_dir/install-sh"
  5460. esac
  5461. fi
  5462. # Installed binaries are usually stripped using 'strip' when the user
  5463. # run "make install-strip". However 'strip' might not be the right
  5464. # tool to use in cross-compilation environments, therefore Automake
  5465. # will honor the 'STRIP' environment variable to overrule this program.
  5466. if test "$cross_compiling" != no; then
  5467. if test -n "$ac_tool_prefix"; then
  5468. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5469. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5470. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5471. printf %s "checking for $ac_word... " >&6; }
  5472. if test ${ac_cv_prog_STRIP+y}
  5473. then :
  5474. printf %s "(cached) " >&6
  5475. else $as_nop
  5476. if test -n "$STRIP"; then
  5477. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5478. else
  5479. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5480. for as_dir in $PATH
  5481. do
  5482. IFS=$as_save_IFS
  5483. case $as_dir in #(((
  5484. '') as_dir=./ ;;
  5485. */) ;;
  5486. *) as_dir=$as_dir/ ;;
  5487. esac
  5488. for ac_exec_ext in '' $ac_executable_extensions; do
  5489. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5490. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5491. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5492. break 2
  5493. fi
  5494. done
  5495. done
  5496. IFS=$as_save_IFS
  5497. fi
  5498. fi
  5499. STRIP=$ac_cv_prog_STRIP
  5500. if test -n "$STRIP"; then
  5501. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5502. printf "%s\n" "$STRIP" >&6; }
  5503. else
  5504. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5505. printf "%s\n" "no" >&6; }
  5506. fi
  5507. fi
  5508. if test -z "$ac_cv_prog_STRIP"; then
  5509. ac_ct_STRIP=$STRIP
  5510. # Extract the first word of "strip", so it can be a program name with args.
  5511. set dummy strip; ac_word=$2
  5512. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5513. printf %s "checking for $ac_word... " >&6; }
  5514. if test ${ac_cv_prog_ac_ct_STRIP+y}
  5515. then :
  5516. printf %s "(cached) " >&6
  5517. else $as_nop
  5518. if test -n "$ac_ct_STRIP"; then
  5519. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5520. else
  5521. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5522. for as_dir in $PATH
  5523. do
  5524. IFS=$as_save_IFS
  5525. case $as_dir in #(((
  5526. '') as_dir=./ ;;
  5527. */) ;;
  5528. *) as_dir=$as_dir/ ;;
  5529. esac
  5530. for ac_exec_ext in '' $ac_executable_extensions; do
  5531. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5532. ac_cv_prog_ac_ct_STRIP="strip"
  5533. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5534. break 2
  5535. fi
  5536. done
  5537. done
  5538. IFS=$as_save_IFS
  5539. fi
  5540. fi
  5541. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5542. if test -n "$ac_ct_STRIP"; then
  5543. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5544. printf "%s\n" "$ac_ct_STRIP" >&6; }
  5545. else
  5546. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5547. printf "%s\n" "no" >&6; }
  5548. fi
  5549. if test "x$ac_ct_STRIP" = x; then
  5550. STRIP=":"
  5551. else
  5552. case $cross_compiling:$ac_tool_warned in
  5553. yes:)
  5554. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5555. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5556. ac_tool_warned=yes ;;
  5557. esac
  5558. STRIP=$ac_ct_STRIP
  5559. fi
  5560. else
  5561. STRIP="$ac_cv_prog_STRIP"
  5562. fi
  5563. fi
  5564. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  5565. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
  5566. printf %s "checking for a race-free mkdir -p... " >&6; }
  5567. if test -z "$MKDIR_P"; then
  5568. if test ${ac_cv_path_mkdir+y}
  5569. then :
  5570. printf %s "(cached) " >&6
  5571. else $as_nop
  5572. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5573. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  5574. do
  5575. IFS=$as_save_IFS
  5576. case $as_dir in #(((
  5577. '') as_dir=./ ;;
  5578. */) ;;
  5579. *) as_dir=$as_dir/ ;;
  5580. esac
  5581. for ac_prog in mkdir gmkdir; do
  5582. for ac_exec_ext in '' $ac_executable_extensions; do
  5583. as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
  5584. case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
  5585. 'mkdir ('*'coreutils) '* | \
  5586. 'BusyBox '* | \
  5587. 'mkdir (fileutils) '4.1*)
  5588. ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
  5589. break 3;;
  5590. esac
  5591. done
  5592. done
  5593. done
  5594. IFS=$as_save_IFS
  5595. fi
  5596. test -d ./--version && rmdir ./--version
  5597. if test ${ac_cv_path_mkdir+y}; then
  5598. MKDIR_P="$ac_cv_path_mkdir -p"
  5599. else
  5600. # As a last resort, use the slow shell script. Don't cache a
  5601. # value for MKDIR_P within a source directory, because that will
  5602. # break other packages using the cache if that directory is
  5603. # removed, or if the value is a relative name.
  5604. MKDIR_P="$ac_install_sh -d"
  5605. fi
  5606. fi
  5607. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  5608. printf "%s\n" "$MKDIR_P" >&6; }
  5609. for ac_prog in gawk mawk nawk awk
  5610. do
  5611. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5612. set dummy $ac_prog; ac_word=$2
  5613. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5614. printf %s "checking for $ac_word... " >&6; }
  5615. if test ${ac_cv_prog_AWK+y}
  5616. then :
  5617. printf %s "(cached) " >&6
  5618. else $as_nop
  5619. if test -n "$AWK"; then
  5620. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  5621. else
  5622. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5623. for as_dir in $PATH
  5624. do
  5625. IFS=$as_save_IFS
  5626. case $as_dir in #(((
  5627. '') as_dir=./ ;;
  5628. */) ;;
  5629. *) as_dir=$as_dir/ ;;
  5630. esac
  5631. for ac_exec_ext in '' $ac_executable_extensions; do
  5632. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5633. ac_cv_prog_AWK="$ac_prog"
  5634. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5635. break 2
  5636. fi
  5637. done
  5638. done
  5639. IFS=$as_save_IFS
  5640. fi
  5641. fi
  5642. AWK=$ac_cv_prog_AWK
  5643. if test -n "$AWK"; then
  5644. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  5645. printf "%s\n" "$AWK" >&6; }
  5646. else
  5647. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5648. printf "%s\n" "no" >&6; }
  5649. fi
  5650. test -n "$AWK" && break
  5651. done
  5652. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  5653. printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  5654. set x ${MAKE-make}
  5655. ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  5656. if eval test \${ac_cv_prog_make_${ac_make}_set+y}
  5657. then :
  5658. printf %s "(cached) " >&6
  5659. else $as_nop
  5660. cat >conftest.make <<\_ACEOF
  5661. SHELL = /bin/sh
  5662. all:
  5663. @echo '@@@%%%=$(MAKE)=@@@%%%'
  5664. _ACEOF
  5665. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  5666. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  5667. *@@@%%%=?*=@@@%%%*)
  5668. eval ac_cv_prog_make_${ac_make}_set=yes;;
  5669. *)
  5670. eval ac_cv_prog_make_${ac_make}_set=no;;
  5671. esac
  5672. rm -f conftest.make
  5673. fi
  5674. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  5675. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5676. printf "%s\n" "yes" >&6; }
  5677. SET_MAKE=
  5678. else
  5679. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5680. printf "%s\n" "no" >&6; }
  5681. SET_MAKE="MAKE=${MAKE-make}"
  5682. fi
  5683. rm -rf .tst 2>/dev/null
  5684. mkdir .tst 2>/dev/null
  5685. if test -d .tst; then
  5686. am__leading_dot=.
  5687. else
  5688. am__leading_dot=_
  5689. fi
  5690. rmdir .tst 2>/dev/null
  5691. DEPDIR="${am__leading_dot}deps"
  5692. ac_config_commands="$ac_config_commands depfiles"
  5693. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
  5694. printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
  5695. cat > confinc.mk << 'END'
  5696. am__doit:
  5697. @echo this is the am__doit target >confinc.out
  5698. .PHONY: am__doit
  5699. END
  5700. am__include="#"
  5701. am__quote=
  5702. # BSD make does it like this.
  5703. echo '.include "confinc.mk" # ignored' > confmf.BSD
  5704. # Other make implementations (GNU, Solaris 10, AIX) do it like this.
  5705. echo 'include confinc.mk # ignored' > confmf.GNU
  5706. _am_result=no
  5707. for s in GNU BSD; do
  5708. { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
  5709. (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
  5710. ac_status=$?
  5711. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5712. (exit $ac_status); }
  5713. case $?:`cat confinc.out 2>/dev/null` in #(
  5714. '0:this is the am__doit target') :
  5715. case $s in #(
  5716. BSD) :
  5717. am__include='.include' am__quote='"' ;; #(
  5718. *) :
  5719. am__include='include' am__quote='' ;;
  5720. esac ;; #(
  5721. *) :
  5722. ;;
  5723. esac
  5724. if test "$am__include" != "#"; then
  5725. _am_result="yes ($s style)"
  5726. break
  5727. fi
  5728. done
  5729. rm -f confinc.* confmf.*
  5730. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
  5731. printf "%s\n" "${_am_result}" >&6; }
  5732. # Check whether --enable-dependency-tracking was given.
  5733. if test ${enable_dependency_tracking+y}
  5734. then :
  5735. enableval=$enable_dependency_tracking;
  5736. fi
  5737. if test "x$enable_dependency_tracking" != xno; then
  5738. am_depcomp="$ac_aux_dir/depcomp"
  5739. AMDEPBACKSLASH='\'
  5740. am__nodep='_no'
  5741. fi
  5742. if test "x$enable_dependency_tracking" != xno; then
  5743. AMDEP_TRUE=
  5744. AMDEP_FALSE='#'
  5745. else
  5746. AMDEP_TRUE='#'
  5747. AMDEP_FALSE=
  5748. fi
  5749. ## --------------------------------------- ##
  5750. ## Start of automake initialization code ##
  5751. ## --------------------------------------- ##
  5752. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  5753. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  5754. # is not polluted with repeated "-I."
  5755. am__isrc=' -I$(srcdir)'
  5756. # test to see if srcdir already configured
  5757. if test -f $srcdir/config.status; then
  5758. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  5759. fi
  5760. fi
  5761. # test whether we have cygpath
  5762. if test -z "$CYGPATH_W"; then
  5763. if (cygpath --version) >/dev/null 2>/dev/null; then
  5764. CYGPATH_W='cygpath -w'
  5765. else
  5766. CYGPATH_W=echo
  5767. fi
  5768. fi
  5769. # Define the identity of the package.
  5770. PACKAGE='curl'
  5771. VERSION='-'
  5772. printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
  5773. printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
  5774. # Some tools Automake needs.
  5775. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  5776. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  5777. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  5778. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  5779. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  5780. # For better backward compatibility. To be removed once Automake 1.9.x
  5781. # dies out for good. For more background, see:
  5782. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  5783. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  5784. mkdir_p='$(MKDIR_P)'
  5785. # We need awk for the "check" target (and possibly the TAP driver). The
  5786. # system "awk" is bad on some platforms.
  5787. # Always define AMTAR for backward compatibility. Yes, it's still used
  5788. # in the wild :-( We should find a proper way to deprecate it ...
  5789. AMTAR='$${TAR-tar}'
  5790. # We'll loop over all known methods to create a tar archive until one works.
  5791. _am_tools='gnutar pax cpio none'
  5792. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  5793. depcc="$CC" am_compiler_list=
  5794. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  5795. printf %s "checking dependency style of $depcc... " >&6; }
  5796. if test ${am_cv_CC_dependencies_compiler_type+y}
  5797. then :
  5798. printf %s "(cached) " >&6
  5799. else $as_nop
  5800. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  5801. # We make a subdir and do the tests there. Otherwise we can end up
  5802. # making bogus files that we don't know about and never remove. For
  5803. # instance it was reported that on HP-UX the gcc test will end up
  5804. # making a dummy file named 'D' -- because '-MD' means "put the output
  5805. # in D".
  5806. rm -rf conftest.dir
  5807. mkdir conftest.dir
  5808. # Copy depcomp to subdir because otherwise we won't find it if we're
  5809. # using a relative directory.
  5810. cp "$am_depcomp" conftest.dir
  5811. cd conftest.dir
  5812. # We will build objects and dependencies in a subdirectory because
  5813. # it helps to detect inapplicable dependency modes. For instance
  5814. # both Tru64's cc and ICC support -MD to output dependencies as a
  5815. # side effect of compilation, but ICC will put the dependencies in
  5816. # the current directory while Tru64 will put them in the object
  5817. # directory.
  5818. mkdir sub
  5819. am_cv_CC_dependencies_compiler_type=none
  5820. if test "$am_compiler_list" = ""; then
  5821. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  5822. fi
  5823. am__universal=false
  5824. case " $depcc " in #(
  5825. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  5826. esac
  5827. for depmode in $am_compiler_list; do
  5828. # Setup a source with many dependencies, because some compilers
  5829. # like to wrap large dependency lists on column 80 (with \), and
  5830. # we should not choose a depcomp mode which is confused by this.
  5831. #
  5832. # We need to recreate these files for each test, as the compiler may
  5833. # overwrite some of them when testing with obscure command lines.
  5834. # This happens at least with the AIX C compiler.
  5835. : > sub/conftest.c
  5836. for i in 1 2 3 4 5 6; do
  5837. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  5838. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  5839. # Solaris 10 /bin/sh.
  5840. echo '/* dummy */' > sub/conftst$i.h
  5841. done
  5842. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  5843. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  5844. # mode. It turns out that the SunPro C++ compiler does not properly
  5845. # handle '-M -o', and we need to detect this. Also, some Intel
  5846. # versions had trouble with output in subdirs.
  5847. am__obj=sub/conftest.${OBJEXT-o}
  5848. am__minus_obj="-o $am__obj"
  5849. case $depmode in
  5850. gcc)
  5851. # This depmode causes a compiler race in universal mode.
  5852. test "$am__universal" = false || continue
  5853. ;;
  5854. nosideeffect)
  5855. # After this tag, mechanisms are not by side-effect, so they'll
  5856. # only be used when explicitly requested.
  5857. if test "x$enable_dependency_tracking" = xyes; then
  5858. continue
  5859. else
  5860. break
  5861. fi
  5862. ;;
  5863. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  5864. # This compiler won't grok '-c -o', but also, the minuso test has
  5865. # not run yet. These depmodes are late enough in the game, and
  5866. # so weak that their functioning should not be impacted.
  5867. am__obj=conftest.${OBJEXT-o}
  5868. am__minus_obj=
  5869. ;;
  5870. none) break ;;
  5871. esac
  5872. if depmode=$depmode \
  5873. source=sub/conftest.c object=$am__obj \
  5874. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  5875. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  5876. >/dev/null 2>conftest.err &&
  5877. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  5878. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  5879. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  5880. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  5881. # icc doesn't choke on unknown options, it will just issue warnings
  5882. # or remarks (even with -Werror). So we grep stderr for any message
  5883. # that says an option was ignored or not supported.
  5884. # When given -MP, icc 7.0 and 7.1 complain thusly:
  5885. # icc: Command line warning: ignoring option '-M'; no argument required
  5886. # The diagnosis changed in icc 8.0:
  5887. # icc: Command line remark: option '-MP' not supported
  5888. if (grep 'ignoring option' conftest.err ||
  5889. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  5890. am_cv_CC_dependencies_compiler_type=$depmode
  5891. break
  5892. fi
  5893. fi
  5894. done
  5895. cd ..
  5896. rm -rf conftest.dir
  5897. else
  5898. am_cv_CC_dependencies_compiler_type=none
  5899. fi
  5900. fi
  5901. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  5902. printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
  5903. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  5904. if
  5905. test "x$enable_dependency_tracking" != xno \
  5906. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  5907. am__fastdepCC_TRUE=
  5908. am__fastdepCC_FALSE='#'
  5909. else
  5910. am__fastdepCC_TRUE='#'
  5911. am__fastdepCC_FALSE=
  5912. fi
  5913. # Variables for tags utilities; see am/tags.am
  5914. if test -z "$CTAGS"; then
  5915. CTAGS=ctags
  5916. fi
  5917. if test -z "$ETAGS"; then
  5918. ETAGS=etags
  5919. fi
  5920. if test -z "$CSCOPE"; then
  5921. CSCOPE=cscope
  5922. fi
  5923. # POSIX will say in a future version that running "rm -f" with no argument
  5924. # is OK; and we want to be able to make that assumption in our Makefile
  5925. # recipes. So use an aggressive probe to check that the usage we want is
  5926. # actually supported "in the wild" to an acceptable degree.
  5927. # See automake bug#10828.
  5928. # To make any issue more visible, cause the running configure to be aborted
  5929. # by default if the 'rm' program in use doesn't match our expectations; the
  5930. # user can still override this though.
  5931. if rm -f && rm -fr && rm -rf; then : OK; else
  5932. cat >&2 <<'END'
  5933. Oops!
  5934. Your 'rm' program seems unable to run without file operands specified
  5935. on the command line, even when the '-f' option is present. This is contrary
  5936. to the behaviour of most rm programs out there, and not conforming with
  5937. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  5938. Please tell [email protected] about your system, including the value
  5939. of your $PATH and any error possibly output before this message. This
  5940. can help us improve future automake versions.
  5941. END
  5942. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  5943. echo 'Configuration will proceed anyway, since you have set the' >&2
  5944. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  5945. echo >&2
  5946. else
  5947. cat >&2 <<'END'
  5948. Aborting the configuration process, to ensure you take notice of the issue.
  5949. You can download and install GNU coreutils to get an 'rm' implementation
  5950. that behaves properly: <https://www.gnu.org/software/coreutils/>.
  5951. If you want to complete the configuration process using your problematic
  5952. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  5953. to "yes", and re-run configure.
  5954. END
  5955. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  5956. fi
  5957. fi
  5958. ## ------------------------------------- ##
  5959. ## End of automake initialization code ##
  5960. ## ------------------------------------- ##
  5961. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking curl version" >&5
  5962. printf %s "checking curl version... " >&6; }
  5963. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CURLVERSION" >&5
  5964. printf "%s\n" "$CURLVERSION" >&6; }
  5965. VERSIONNUM=`$SED -ne 's/^#define LIBCURL_VERSION_NUM 0x\([0-9A-Fa-f]*\).*/\1/p' ${srcdir}/include/curl/curlver.h`
  5966. PKGADD_PKG="HAXXcurl"
  5967. PKGADD_NAME="curl - a client that groks URLs"
  5968. PKGADD_VENDOR="curl.se"
  5969. curl_ssl_msg="no (--with-{openssl,gnutls,nss,mbedtls,wolfssl,schannel,secure-transport,amissl,bearssl,rustls} )"
  5970. curl_ssh_msg="no (--with-{libssh,libssh2})"
  5971. curl_zlib_msg="no (--with-zlib)"
  5972. curl_brotli_msg="no (--with-brotli)"
  5973. curl_zstd_msg="no (--with-zstd)"
  5974. curl_gss_msg="no (--with-gssapi)"
  5975. curl_gsasl_msg="no (--with-gsasl)"
  5976. curl_tls_srp_msg="no (--enable-tls-srp)"
  5977. curl_res_msg="default (--enable-ares / --enable-threaded-resolver)"
  5978. curl_ipv6_msg="no (--enable-ipv6)"
  5979. curl_unix_sockets_msg="no (--enable-unix-sockets)"
  5980. curl_idn_msg="no (--with-{libidn2,winidn})"
  5981. curl_manual_msg="no (--enable-manual)"
  5982. curl_libcurl_msg="enabled (--disable-libcurl-option)"
  5983. curl_verbose_msg="enabled (--disable-verbose)"
  5984. curl_sspi_msg="no (--enable-sspi)"
  5985. curl_ldap_msg="no (--enable-ldap / --with-ldap-lib / --with-lber-lib)"
  5986. curl_ldaps_msg="no (--enable-ldaps)"
  5987. curl_rtsp_msg="no (--enable-rtsp)"
  5988. curl_rtmp_msg="no (--with-librtmp)"
  5989. curl_psl_msg="no (--with-libpsl)"
  5990. curl_altsvc_msg="enabled (--disable-alt-svc)"
  5991. curl_headers_msg="enabled (--disable-headers-api)"
  5992. curl_hsts_msg="enabled (--disable-hsts)"
  5993. ssl_backends=
  5994. curl_h1_msg="enabled (internal)"
  5995. curl_h2_msg="no (--with-nghttp2, --with-hyper)"
  5996. curl_h3_msg="no (--with-ngtcp2, --with-quiche --with-msh3)"
  5997. enable_altsvc="yes"
  5998. hsts="yes"
  5999. INITIAL_LDFLAGS=$LDFLAGS
  6000. INITIAL_LIBS=$LIBS
  6001. OPT_SCHANNEL=no
  6002. # Check whether --with-schannel was given.
  6003. if test ${with_schannel+y}
  6004. then :
  6005. withval=$with_schannel; OPT_SCHANNEL=$withval
  6006. TLSCHOICE="schannel"
  6007. fi
  6008. OPT_SECURETRANSPORT=no
  6009. # Check whether --with-secure-transport was given.
  6010. if test ${with_secure_transport+y}
  6011. then :
  6012. withval=$with_secure_transport;
  6013. OPT_SECURETRANSPORT=$withval
  6014. TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }Secure-Transport"
  6015. fi
  6016. OPT_AMISSL=no
  6017. # Check whether --with-amissl was given.
  6018. if test ${with_amissl+y}
  6019. then :
  6020. withval=$with_amissl;
  6021. OPT_AMISSL=$withval
  6022. TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }AmiSSL"
  6023. fi
  6024. OPT_OPENSSL=no
  6025. ca="no"
  6026. # Check whether --with-ssl was given.
  6027. if test ${with_ssl+y}
  6028. then :
  6029. withval=$with_ssl;
  6030. OPT_SSL=$withval
  6031. OPT_OPENSSL=$withval
  6032. if test X"$withval" != Xno; then
  6033. TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }OpenSSL"
  6034. else
  6035. SSL_DISABLED="D"
  6036. fi
  6037. fi
  6038. # Check whether --with-openssl was given.
  6039. if test ${with_openssl+y}
  6040. then :
  6041. withval=$with_openssl;
  6042. OPT_OPENSSL=$withval
  6043. if test X"$withval" != Xno; then
  6044. TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }OpenSSL"
  6045. fi
  6046. fi
  6047. OPT_GNUTLS=no
  6048. # Check whether --with-gnutls was given.
  6049. if test ${with_gnutls+y}
  6050. then :
  6051. withval=$with_gnutls;
  6052. OPT_GNUTLS=$withval
  6053. if test X"$withval" != Xno; then
  6054. TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }GnuTLS"
  6055. fi
  6056. fi
  6057. OPT_MBEDTLS=no
  6058. # Check whether --with-mbedtls was given.
  6059. if test ${with_mbedtls+y}
  6060. then :
  6061. withval=$with_mbedtls;
  6062. OPT_MBEDTLS=$withval
  6063. if test X"$withval" != Xno; then
  6064. TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }mbedTLS"
  6065. fi
  6066. fi
  6067. OPT_WOLFSSL=no
  6068. # Check whether --with-wolfssl was given.
  6069. if test ${with_wolfssl+y}
  6070. then :
  6071. withval=$with_wolfssl;
  6072. OPT_WOLFSSL=$withval
  6073. if test X"$withval" != Xno; then
  6074. TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }wolfSSL"
  6075. fi
  6076. fi
  6077. OPT_BEARSSL=no
  6078. # Check whether --with-bearssl was given.
  6079. if test ${with_bearssl+y}
  6080. then :
  6081. withval=$with_bearssl;
  6082. OPT_BEARSSL=$withval
  6083. if test X"$withval" != Xno; then
  6084. TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }BearSSL"
  6085. fi
  6086. fi
  6087. OPT_RUSTLS=no
  6088. # Check whether --with-rustls was given.
  6089. if test ${with_rustls+y}
  6090. then :
  6091. withval=$with_rustls;
  6092. OPT_RUSTLS=$withval
  6093. if test X"$withval" != Xno; then
  6094. TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }rustls"
  6095. experimental="$experimental rustls"
  6096. fi
  6097. fi
  6098. OPT_NSS_AWARE=no
  6099. # Check whether --with-nss-deprecated was given.
  6100. if test ${with_nss_deprecated+y}
  6101. then :
  6102. withval=$with_nss_deprecated; if test X"$withval" != Xno; then
  6103. OPT_NSS_AWARE=$withval
  6104. fi
  6105. fi
  6106. OPT_NSS=no
  6107. # Check whether --with-nss was given.
  6108. if test ${with_nss+y}
  6109. then :
  6110. withval=$with_nss; OPT_NSS=$withval
  6111. if test X"$withval" != Xno; then
  6112. if test X"$OPT_NSS_AWARE" = "Xno" ; then
  6113. as_fn_error $? "NSS use must be confirmed using --with-nss-deprecated. NSS support will be dropped from curl in August 2022. See docs/DEPRECATE.md" "$LINENO" 5
  6114. fi
  6115. TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }NSS"
  6116. fi
  6117. fi
  6118. if test -z "$TLSCHOICE"; then
  6119. if test "x$OPT_SSL" != "xno"; then
  6120. as_fn_error $? "select TLS backend(s) or disable TLS with --without-ssl.
  6121. Select from these:
  6122. --with-amissl
  6123. --with-bearssl
  6124. --with-gnutls
  6125. --with-mbedtls
  6126. --with-nss
  6127. --with-openssl (also works for BoringSSL and libressl)
  6128. --with-rustls
  6129. --with-schannel
  6130. --with-secure-transport
  6131. --with-wolfssl
  6132. " "$LINENO" 5
  6133. fi
  6134. fi
  6135. # Check whether --with-darwinssl was given.
  6136. if test ${with_darwinssl+y}
  6137. then :
  6138. withval=$with_darwinssl; as_fn_error $? "--with-darwin-ssl no longer works!" "$LINENO" 5
  6139. fi
  6140. # Make sure we can run config.sub.
  6141. $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
  6142. as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
  6143. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  6144. printf %s "checking build system type... " >&6; }
  6145. if test ${ac_cv_build+y}
  6146. then :
  6147. printf %s "(cached) " >&6
  6148. else $as_nop
  6149. ac_build_alias=$build_alias
  6150. test "x$ac_build_alias" = x &&
  6151. ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
  6152. test "x$ac_build_alias" = x &&
  6153. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  6154. ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
  6155. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
  6156. fi
  6157. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  6158. printf "%s\n" "$ac_cv_build" >&6; }
  6159. case $ac_cv_build in
  6160. *-*-*) ;;
  6161. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  6162. esac
  6163. build=$ac_cv_build
  6164. ac_save_IFS=$IFS; IFS='-'
  6165. set x $ac_cv_build
  6166. shift
  6167. build_cpu=$1
  6168. build_vendor=$2
  6169. shift; shift
  6170. # Remember, the first character of IFS is used to create $*,
  6171. # except with old shells:
  6172. build_os=$*
  6173. IFS=$ac_save_IFS
  6174. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  6175. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  6176. printf %s "checking host system type... " >&6; }
  6177. if test ${ac_cv_host+y}
  6178. then :
  6179. printf %s "(cached) " >&6
  6180. else $as_nop
  6181. if test "x$host_alias" = x; then
  6182. ac_cv_host=$ac_cv_build
  6183. else
  6184. ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
  6185. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
  6186. fi
  6187. fi
  6188. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  6189. printf "%s\n" "$ac_cv_host" >&6; }
  6190. case $ac_cv_host in
  6191. *-*-*) ;;
  6192. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  6193. esac
  6194. host=$ac_cv_host
  6195. ac_save_IFS=$IFS; IFS='-'
  6196. set x $ac_cv_host
  6197. shift
  6198. host_cpu=$1
  6199. host_vendor=$2
  6200. shift; shift
  6201. # Remember, the first character of IFS is used to create $*,
  6202. # except with old shells:
  6203. host_os=$*
  6204. IFS=$ac_save_IFS
  6205. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  6206. printf "%s\n" "#define OS \"${host}\"" >>confdefs.h
  6207. # Silence warning: ar: 'u' modifier ignored since 'D' is the default
  6208. AR_FLAGS=cr
  6209. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  6210. printf %s "checking for grep that handles long lines and -e... " >&6; }
  6211. if test ${ac_cv_path_GREP+y}
  6212. then :
  6213. printf %s "(cached) " >&6
  6214. else $as_nop
  6215. if test -z "$GREP"; then
  6216. ac_path_GREP_found=false
  6217. # Loop through the user's path and test for each of PROGNAME-LIST
  6218. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6219. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  6220. do
  6221. IFS=$as_save_IFS
  6222. case $as_dir in #(((
  6223. '') as_dir=./ ;;
  6224. */) ;;
  6225. *) as_dir=$as_dir/ ;;
  6226. esac
  6227. for ac_prog in grep ggrep
  6228. do
  6229. for ac_exec_ext in '' $ac_executable_extensions; do
  6230. ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
  6231. as_fn_executable_p "$ac_path_GREP" || continue
  6232. # Check for GNU ac_path_GREP and select it if it is found.
  6233. # Check for GNU $ac_path_GREP
  6234. case `"$ac_path_GREP" --version 2>&1` in
  6235. *GNU*)
  6236. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  6237. *)
  6238. ac_count=0
  6239. printf %s 0123456789 >"conftest.in"
  6240. while :
  6241. do
  6242. cat "conftest.in" "conftest.in" >"conftest.tmp"
  6243. mv "conftest.tmp" "conftest.in"
  6244. cp "conftest.in" "conftest.nl"
  6245. printf "%s\n" 'GREP' >> "conftest.nl"
  6246. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  6247. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  6248. as_fn_arith $ac_count + 1 && ac_count=$as_val
  6249. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  6250. # Best one so far, save it but keep looking for a better one
  6251. ac_cv_path_GREP="$ac_path_GREP"
  6252. ac_path_GREP_max=$ac_count
  6253. fi
  6254. # 10*(2^10) chars as input seems more than enough
  6255. test $ac_count -gt 10 && break
  6256. done
  6257. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  6258. esac
  6259. $ac_path_GREP_found && break 3
  6260. done
  6261. done
  6262. done
  6263. IFS=$as_save_IFS
  6264. if test -z "$ac_cv_path_GREP"; then
  6265. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  6266. fi
  6267. else
  6268. ac_cv_path_GREP=$GREP
  6269. fi
  6270. fi
  6271. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  6272. printf "%s\n" "$ac_cv_path_GREP" >&6; }
  6273. GREP="$ac_cv_path_GREP"
  6274. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  6275. printf %s "checking for egrep... " >&6; }
  6276. if test ${ac_cv_path_EGREP+y}
  6277. then :
  6278. printf %s "(cached) " >&6
  6279. else $as_nop
  6280. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  6281. then ac_cv_path_EGREP="$GREP -E"
  6282. else
  6283. if test -z "$EGREP"; then
  6284. ac_path_EGREP_found=false
  6285. # Loop through the user's path and test for each of PROGNAME-LIST
  6286. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6287. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  6288. do
  6289. IFS=$as_save_IFS
  6290. case $as_dir in #(((
  6291. '') as_dir=./ ;;
  6292. */) ;;
  6293. *) as_dir=$as_dir/ ;;
  6294. esac
  6295. for ac_prog in egrep
  6296. do
  6297. for ac_exec_ext in '' $ac_executable_extensions; do
  6298. ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
  6299. as_fn_executable_p "$ac_path_EGREP" || continue
  6300. # Check for GNU ac_path_EGREP and select it if it is found.
  6301. # Check for GNU $ac_path_EGREP
  6302. case `"$ac_path_EGREP" --version 2>&1` in
  6303. *GNU*)
  6304. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  6305. *)
  6306. ac_count=0
  6307. printf %s 0123456789 >"conftest.in"
  6308. while :
  6309. do
  6310. cat "conftest.in" "conftest.in" >"conftest.tmp"
  6311. mv "conftest.tmp" "conftest.in"
  6312. cp "conftest.in" "conftest.nl"
  6313. printf "%s\n" 'EGREP' >> "conftest.nl"
  6314. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  6315. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  6316. as_fn_arith $ac_count + 1 && ac_count=$as_val
  6317. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  6318. # Best one so far, save it but keep looking for a better one
  6319. ac_cv_path_EGREP="$ac_path_EGREP"
  6320. ac_path_EGREP_max=$ac_count
  6321. fi
  6322. # 10*(2^10) chars as input seems more than enough
  6323. test $ac_count -gt 10 && break
  6324. done
  6325. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  6326. esac
  6327. $ac_path_EGREP_found && break 3
  6328. done
  6329. done
  6330. done
  6331. IFS=$as_save_IFS
  6332. if test -z "$ac_cv_path_EGREP"; then
  6333. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  6334. fi
  6335. else
  6336. ac_cv_path_EGREP=$EGREP
  6337. fi
  6338. fi
  6339. fi
  6340. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  6341. printf "%s\n" "$ac_cv_path_EGREP" >&6; }
  6342. EGREP="$ac_cv_path_EGREP"
  6343. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if OS is AIX (to define _ALL_SOURCE)" >&5
  6344. printf %s "checking if OS is AIX (to define _ALL_SOURCE)... " >&6; }
  6345. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6346. /* end confdefs.h. */
  6347. #ifdef _AIX
  6348. yes_this_is_aix
  6349. #endif
  6350. _ACEOF
  6351. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6352. $EGREP "yes_this_is_aix" >/dev/null 2>&1
  6353. then :
  6354. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6355. printf "%s\n" "yes" >&6; }
  6356. printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
  6357. else $as_nop
  6358. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6359. printf "%s\n" "no" >&6; }
  6360. fi
  6361. rm -rf conftest*
  6362. #
  6363. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is already defined" >&5
  6364. printf %s "checking if _THREAD_SAFE is already defined... " >&6; }
  6365. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6366. /* end confdefs.h. */
  6367. int main (void)
  6368. {
  6369. #ifdef _THREAD_SAFE
  6370. int dummy=1;
  6371. #else
  6372. force compilation error
  6373. #endif
  6374. ;
  6375. return 0;
  6376. }
  6377. _ACEOF
  6378. if ac_fn_c_try_compile "$LINENO"
  6379. then :
  6380. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6381. printf "%s\n" "yes" >&6; }
  6382. tmp_thread_safe_initially_defined="yes"
  6383. else $as_nop
  6384. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6385. printf "%s\n" "no" >&6; }
  6386. tmp_thread_safe_initially_defined="no"
  6387. fi
  6388. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  6389. #
  6390. if test "$tmp_thread_safe_initially_defined" = "no"; then
  6391. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is actually needed" >&5
  6392. printf %s "checking if _THREAD_SAFE is actually needed... " >&6; }
  6393. case $host_os in
  6394. aix[123].* | aix4.[012].*)
  6395. tmp_need_thread_safe="no"
  6396. ;;
  6397. aix*)
  6398. tmp_need_thread_safe="yes"
  6399. ;;
  6400. *)
  6401. tmp_need_thread_safe="no"
  6402. ;;
  6403. esac
  6404. if test "$tmp_need_thread_safe" = "yes"; then
  6405. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6406. printf "%s\n" "yes" >&6; }
  6407. else
  6408. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6409. printf "%s\n" "no" >&6; }
  6410. fi
  6411. fi
  6412. #
  6413. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is onwards defined" >&5
  6414. printf %s "checking if _THREAD_SAFE is onwards defined... " >&6; }
  6415. if test "$tmp_thread_safe_initially_defined" = "yes" ||
  6416. test "$tmp_need_thread_safe" = "yes"; then
  6417. printf "%s\n" "#define NEED_THREAD_SAFE 1" >>confdefs.h
  6418. cat >>confdefs.h <<_EOF
  6419. #ifndef _THREAD_SAFE
  6420. # define _THREAD_SAFE
  6421. #endif
  6422. _EOF
  6423. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6424. printf "%s\n" "yes" >&6; }
  6425. else
  6426. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6427. printf "%s\n" "no" >&6; }
  6428. fi
  6429. #
  6430. #
  6431. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is already defined" >&5
  6432. printf %s "checking if _REENTRANT is already defined... " >&6; }
  6433. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6434. /* end confdefs.h. */
  6435. int main (void)
  6436. {
  6437. #ifdef _REENTRANT
  6438. int dummy=1;
  6439. #else
  6440. force compilation error
  6441. #endif
  6442. ;
  6443. return 0;
  6444. }
  6445. _ACEOF
  6446. if ac_fn_c_try_compile "$LINENO"
  6447. then :
  6448. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6449. printf "%s\n" "yes" >&6; }
  6450. tmp_reentrant_initially_defined="yes"
  6451. else $as_nop
  6452. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6453. printf "%s\n" "no" >&6; }
  6454. tmp_reentrant_initially_defined="no"
  6455. fi
  6456. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  6457. #
  6458. if test "$tmp_reentrant_initially_defined" = "no"; then
  6459. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is actually needed" >&5
  6460. printf %s "checking if _REENTRANT is actually needed... " >&6; }
  6461. case $host_os in
  6462. solaris*)
  6463. tmp_need_reentrant="yes"
  6464. ;;
  6465. *)
  6466. tmp_need_reentrant="no"
  6467. ;;
  6468. esac
  6469. if test "$tmp_need_reentrant" = "no"; then
  6470. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6471. /* end confdefs.h. */
  6472. #include <errno.h>
  6473. int main (void)
  6474. {
  6475. if(0 != errno)
  6476. return 1;
  6477. ;
  6478. return 0;
  6479. }
  6480. _ACEOF
  6481. if ac_fn_c_try_compile "$LINENO"
  6482. then :
  6483. tmp_errno="yes"
  6484. else $as_nop
  6485. tmp_errno="no"
  6486. fi
  6487. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  6488. if test "$tmp_errno" = "yes"; then
  6489. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6490. /* end confdefs.h. */
  6491. #include <errno.h>
  6492. int main (void)
  6493. {
  6494. #ifdef errno
  6495. int dummy=1;
  6496. #else
  6497. force compilation error
  6498. #endif
  6499. ;
  6500. return 0;
  6501. }
  6502. _ACEOF
  6503. if ac_fn_c_try_compile "$LINENO"
  6504. then :
  6505. tmp_errno="errno_macro_defined"
  6506. else $as_nop
  6507. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6508. /* end confdefs.h. */
  6509. #define _REENTRANT
  6510. #include <errno.h>
  6511. int main (void)
  6512. {
  6513. #ifdef errno
  6514. int dummy=1;
  6515. #else
  6516. force compilation error
  6517. #endif
  6518. ;
  6519. return 0;
  6520. }
  6521. _ACEOF
  6522. if ac_fn_c_try_compile "$LINENO"
  6523. then :
  6524. tmp_errno="errno_macro_needs_reentrant"
  6525. tmp_need_reentrant="yes"
  6526. fi
  6527. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  6528. fi
  6529. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  6530. fi
  6531. fi
  6532. if test "$tmp_need_reentrant" = "no"; then
  6533. if test "$tmp_need_reentrant" = "no"; then
  6534. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6535. /* end confdefs.h. */
  6536. #define gmtime_r innocuous_gmtime_r
  6537. #ifdef __STDC__
  6538. # include <limits.h>
  6539. #else
  6540. # include <assert.h>
  6541. #endif
  6542. #undef gmtime_r
  6543. #ifdef __cplusplus
  6544. extern "C"
  6545. #endif
  6546. char gmtime_r ();
  6547. #if defined __stub_gmtime_r || defined __stub___gmtime_r
  6548. choke me
  6549. #endif
  6550. int main (void)
  6551. {
  6552. return gmtime_r ();
  6553. ;
  6554. return 0;
  6555. }
  6556. _ACEOF
  6557. if ac_fn_c_try_link "$LINENO"
  6558. then :
  6559. tmp_gmtime_r="yes"
  6560. else $as_nop
  6561. tmp_gmtime_r="no"
  6562. fi
  6563. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  6564. conftest$ac_exeext conftest.$ac_ext
  6565. if test "$tmp_gmtime_r" = "yes"; then
  6566. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6567. /* end confdefs.h. */
  6568. #include <sys/types.h>
  6569. #include <time.h>
  6570. _ACEOF
  6571. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6572. $EGREP "gmtime_r" >/dev/null 2>&1
  6573. then :
  6574. tmp_gmtime_r="proto_declared"
  6575. else $as_nop
  6576. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6577. /* end confdefs.h. */
  6578. #define _REENTRANT
  6579. #include <sys/types.h>
  6580. #include <time.h>
  6581. _ACEOF
  6582. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6583. $EGREP "gmtime_r" >/dev/null 2>&1
  6584. then :
  6585. tmp_gmtime_r="proto_needs_reentrant"
  6586. tmp_need_reentrant="yes"
  6587. fi
  6588. rm -rf conftest*
  6589. fi
  6590. rm -rf conftest*
  6591. fi
  6592. fi
  6593. if test "$tmp_need_reentrant" = "no"; then
  6594. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6595. /* end confdefs.h. */
  6596. #define localtime_r innocuous_localtime_r
  6597. #ifdef __STDC__
  6598. # include <limits.h>
  6599. #else
  6600. # include <assert.h>
  6601. #endif
  6602. #undef localtime_r
  6603. #ifdef __cplusplus
  6604. extern "C"
  6605. #endif
  6606. char localtime_r ();
  6607. #if defined __stub_localtime_r || defined __stub___localtime_r
  6608. choke me
  6609. #endif
  6610. int main (void)
  6611. {
  6612. return localtime_r ();
  6613. ;
  6614. return 0;
  6615. }
  6616. _ACEOF
  6617. if ac_fn_c_try_link "$LINENO"
  6618. then :
  6619. tmp_localtime_r="yes"
  6620. else $as_nop
  6621. tmp_localtime_r="no"
  6622. fi
  6623. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  6624. conftest$ac_exeext conftest.$ac_ext
  6625. if test "$tmp_localtime_r" = "yes"; then
  6626. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6627. /* end confdefs.h. */
  6628. #include <sys/types.h>
  6629. #include <time.h>
  6630. _ACEOF
  6631. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6632. $EGREP "localtime_r" >/dev/null 2>&1
  6633. then :
  6634. tmp_localtime_r="proto_declared"
  6635. else $as_nop
  6636. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6637. /* end confdefs.h. */
  6638. #define _REENTRANT
  6639. #include <sys/types.h>
  6640. #include <time.h>
  6641. _ACEOF
  6642. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6643. $EGREP "localtime_r" >/dev/null 2>&1
  6644. then :
  6645. tmp_localtime_r="proto_needs_reentrant"
  6646. tmp_need_reentrant="yes"
  6647. fi
  6648. rm -rf conftest*
  6649. fi
  6650. rm -rf conftest*
  6651. fi
  6652. fi
  6653. if test "$tmp_need_reentrant" = "no"; then
  6654. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6655. /* end confdefs.h. */
  6656. #define strerror_r innocuous_strerror_r
  6657. #ifdef __STDC__
  6658. # include <limits.h>
  6659. #else
  6660. # include <assert.h>
  6661. #endif
  6662. #undef strerror_r
  6663. #ifdef __cplusplus
  6664. extern "C"
  6665. #endif
  6666. char strerror_r ();
  6667. #if defined __stub_strerror_r || defined __stub___strerror_r
  6668. choke me
  6669. #endif
  6670. int main (void)
  6671. {
  6672. return strerror_r ();
  6673. ;
  6674. return 0;
  6675. }
  6676. _ACEOF
  6677. if ac_fn_c_try_link "$LINENO"
  6678. then :
  6679. tmp_strerror_r="yes"
  6680. else $as_nop
  6681. tmp_strerror_r="no"
  6682. fi
  6683. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  6684. conftest$ac_exeext conftest.$ac_ext
  6685. if test "$tmp_strerror_r" = "yes"; then
  6686. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6687. /* end confdefs.h. */
  6688. #include <sys/types.h>
  6689. #include <string.h>
  6690. _ACEOF
  6691. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6692. $EGREP "strerror_r" >/dev/null 2>&1
  6693. then :
  6694. tmp_strerror_r="proto_declared"
  6695. else $as_nop
  6696. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6697. /* end confdefs.h. */
  6698. #define _REENTRANT
  6699. #include <sys/types.h>
  6700. #include <string.h>
  6701. _ACEOF
  6702. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6703. $EGREP "strerror_r" >/dev/null 2>&1
  6704. then :
  6705. tmp_strerror_r="proto_needs_reentrant"
  6706. tmp_need_reentrant="yes"
  6707. fi
  6708. rm -rf conftest*
  6709. fi
  6710. rm -rf conftest*
  6711. fi
  6712. fi
  6713. if test "$tmp_need_reentrant" = "no"; then
  6714. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6715. /* end confdefs.h. */
  6716. #define strtok_r innocuous_strtok_r
  6717. #ifdef __STDC__
  6718. # include <limits.h>
  6719. #else
  6720. # include <assert.h>
  6721. #endif
  6722. #undef strtok_r
  6723. #ifdef __cplusplus
  6724. extern "C"
  6725. #endif
  6726. char strtok_r ();
  6727. #if defined __stub_strtok_r || defined __stub___strtok_r
  6728. choke me
  6729. #endif
  6730. int main (void)
  6731. {
  6732. return strtok_r ();
  6733. ;
  6734. return 0;
  6735. }
  6736. _ACEOF
  6737. if ac_fn_c_try_link "$LINENO"
  6738. then :
  6739. tmp_strtok_r="yes"
  6740. else $as_nop
  6741. tmp_strtok_r="no"
  6742. fi
  6743. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  6744. conftest$ac_exeext conftest.$ac_ext
  6745. if test "$tmp_strtok_r" = "yes"; then
  6746. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6747. /* end confdefs.h. */
  6748. #include <sys/types.h>
  6749. #include <string.h>
  6750. _ACEOF
  6751. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6752. $EGREP "strtok_r" >/dev/null 2>&1
  6753. then :
  6754. tmp_strtok_r="proto_declared"
  6755. else $as_nop
  6756. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6757. /* end confdefs.h. */
  6758. #define _REENTRANT
  6759. #include <sys/types.h>
  6760. #include <string.h>
  6761. _ACEOF
  6762. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6763. $EGREP "strtok_r" >/dev/null 2>&1
  6764. then :
  6765. tmp_strtok_r="proto_needs_reentrant"
  6766. tmp_need_reentrant="yes"
  6767. fi
  6768. rm -rf conftest*
  6769. fi
  6770. rm -rf conftest*
  6771. fi
  6772. fi
  6773. if test "$tmp_need_reentrant" = "no"; then
  6774. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6775. /* end confdefs.h. */
  6776. #define gethostbyname_r innocuous_gethostbyname_r
  6777. #ifdef __STDC__
  6778. # include <limits.h>
  6779. #else
  6780. # include <assert.h>
  6781. #endif
  6782. #undef gethostbyname_r
  6783. #ifdef __cplusplus
  6784. extern "C"
  6785. #endif
  6786. char gethostbyname_r ();
  6787. #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
  6788. choke me
  6789. #endif
  6790. int main (void)
  6791. {
  6792. return gethostbyname_r ();
  6793. ;
  6794. return 0;
  6795. }
  6796. _ACEOF
  6797. if ac_fn_c_try_link "$LINENO"
  6798. then :
  6799. tmp_gethostbyname_r="yes"
  6800. else $as_nop
  6801. tmp_gethostbyname_r="no"
  6802. fi
  6803. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  6804. conftest$ac_exeext conftest.$ac_ext
  6805. if test "$tmp_gethostbyname_r" = "yes"; then
  6806. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6807. /* end confdefs.h. */
  6808. #include <sys/types.h>
  6809. #include <netdb.h>
  6810. _ACEOF
  6811. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6812. $EGREP "gethostbyname_r" >/dev/null 2>&1
  6813. then :
  6814. tmp_gethostbyname_r="proto_declared"
  6815. else $as_nop
  6816. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6817. /* end confdefs.h. */
  6818. #define _REENTRANT
  6819. #include <sys/types.h>
  6820. #include <netdb.h>
  6821. _ACEOF
  6822. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6823. $EGREP "gethostbyname_r" >/dev/null 2>&1
  6824. then :
  6825. tmp_gethostbyname_r="proto_needs_reentrant"
  6826. tmp_need_reentrant="yes"
  6827. fi
  6828. rm -rf conftest*
  6829. fi
  6830. rm -rf conftest*
  6831. fi
  6832. fi
  6833. if test "$tmp_need_reentrant" = "no"; then
  6834. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6835. /* end confdefs.h. */
  6836. #define getprotobyname_r innocuous_getprotobyname_r
  6837. #ifdef __STDC__
  6838. # include <limits.h>
  6839. #else
  6840. # include <assert.h>
  6841. #endif
  6842. #undef getprotobyname_r
  6843. #ifdef __cplusplus
  6844. extern "C"
  6845. #endif
  6846. char getprotobyname_r ();
  6847. #if defined __stub_getprotobyname_r || defined __stub___getprotobyname_r
  6848. choke me
  6849. #endif
  6850. int main (void)
  6851. {
  6852. return getprotobyname_r ();
  6853. ;
  6854. return 0;
  6855. }
  6856. _ACEOF
  6857. if ac_fn_c_try_link "$LINENO"
  6858. then :
  6859. tmp_getprotobyname_r="yes"
  6860. else $as_nop
  6861. tmp_getprotobyname_r="no"
  6862. fi
  6863. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  6864. conftest$ac_exeext conftest.$ac_ext
  6865. if test "$tmp_getprotobyname_r" = "yes"; then
  6866. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6867. /* end confdefs.h. */
  6868. #include <sys/types.h>
  6869. #include <netdb.h>
  6870. _ACEOF
  6871. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6872. $EGREP "getprotobyname_r" >/dev/null 2>&1
  6873. then :
  6874. tmp_getprotobyname_r="proto_declared"
  6875. else $as_nop
  6876. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6877. /* end confdefs.h. */
  6878. #define _REENTRANT
  6879. #include <sys/types.h>
  6880. #include <netdb.h>
  6881. _ACEOF
  6882. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6883. $EGREP "getprotobyname_r" >/dev/null 2>&1
  6884. then :
  6885. tmp_getprotobyname_r="proto_needs_reentrant"
  6886. tmp_need_reentrant="yes"
  6887. fi
  6888. rm -rf conftest*
  6889. fi
  6890. rm -rf conftest*
  6891. fi
  6892. fi
  6893. fi
  6894. if test "$tmp_need_reentrant" = "yes"; then
  6895. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6896. printf "%s\n" "yes" >&6; }
  6897. else
  6898. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6899. printf "%s\n" "no" >&6; }
  6900. fi
  6901. fi
  6902. #
  6903. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is onwards defined" >&5
  6904. printf %s "checking if _REENTRANT is onwards defined... " >&6; }
  6905. if test "$tmp_reentrant_initially_defined" = "yes" ||
  6906. test "$tmp_need_reentrant" = "yes"; then
  6907. printf "%s\n" "#define NEED_REENTRANT 1" >>confdefs.h
  6908. cat >>confdefs.h <<_EOF
  6909. #ifndef _REENTRANT
  6910. # define _REENTRANT
  6911. #endif
  6912. _EOF
  6913. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6914. printf "%s\n" "yes" >&6; }
  6915. else
  6916. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6917. printf "%s\n" "no" >&6; }
  6918. fi
  6919. #
  6920. # Check whether --enable-largefile was given.
  6921. if test ${enable_largefile+y}
  6922. then :
  6923. enableval=$enable_largefile;
  6924. fi
  6925. if test "$enable_largefile" != no; then
  6926. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  6927. printf %s "checking for special C compiler options needed for large files... " >&6; }
  6928. if test ${ac_cv_sys_largefile_CC+y}
  6929. then :
  6930. printf %s "(cached) " >&6
  6931. else $as_nop
  6932. ac_cv_sys_largefile_CC=no
  6933. if test "$GCC" != yes; then
  6934. ac_save_CC=$CC
  6935. while :; do
  6936. # IRIX 6.2 and later do not support large files by default,
  6937. # so use the C compiler's -n32 option if that helps.
  6938. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6939. /* end confdefs.h. */
  6940. #include <sys/types.h>
  6941. /* Check that off_t can represent 2**63 - 1 correctly.
  6942. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  6943. since some C++ compilers masquerading as C compilers
  6944. incorrectly reject 9223372036854775807. */
  6945. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  6946. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  6947. && LARGE_OFF_T % 2147483647 == 1)
  6948. ? 1 : -1];
  6949. int main (void)
  6950. {
  6951. ;
  6952. return 0;
  6953. }
  6954. _ACEOF
  6955. if ac_fn_c_try_compile "$LINENO"
  6956. then :
  6957. break
  6958. fi
  6959. rm -f core conftest.err conftest.$ac_objext conftest.beam
  6960. CC="$CC -n32"
  6961. if ac_fn_c_try_compile "$LINENO"
  6962. then :
  6963. ac_cv_sys_largefile_CC=' -n32'; break
  6964. fi
  6965. rm -f core conftest.err conftest.$ac_objext conftest.beam
  6966. break
  6967. done
  6968. CC=$ac_save_CC
  6969. rm -f conftest.$ac_ext
  6970. fi
  6971. fi
  6972. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  6973. printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
  6974. if test "$ac_cv_sys_largefile_CC" != no; then
  6975. CC=$CC$ac_cv_sys_largefile_CC
  6976. fi
  6977. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  6978. printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  6979. if test ${ac_cv_sys_file_offset_bits+y}
  6980. then :
  6981. printf %s "(cached) " >&6
  6982. else $as_nop
  6983. while :; do
  6984. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6985. /* end confdefs.h. */
  6986. #include <sys/types.h>
  6987. /* Check that off_t can represent 2**63 - 1 correctly.
  6988. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  6989. since some C++ compilers masquerading as C compilers
  6990. incorrectly reject 9223372036854775807. */
  6991. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  6992. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  6993. && LARGE_OFF_T % 2147483647 == 1)
  6994. ? 1 : -1];
  6995. int main (void)
  6996. {
  6997. ;
  6998. return 0;
  6999. }
  7000. _ACEOF
  7001. if ac_fn_c_try_compile "$LINENO"
  7002. then :
  7003. ac_cv_sys_file_offset_bits=no; break
  7004. fi
  7005. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  7006. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7007. /* end confdefs.h. */
  7008. #define _FILE_OFFSET_BITS 64
  7009. #include <sys/types.h>
  7010. /* Check that off_t can represent 2**63 - 1 correctly.
  7011. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7012. since some C++ compilers masquerading as C compilers
  7013. incorrectly reject 9223372036854775807. */
  7014. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  7015. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7016. && LARGE_OFF_T % 2147483647 == 1)
  7017. ? 1 : -1];
  7018. int main (void)
  7019. {
  7020. ;
  7021. return 0;
  7022. }
  7023. _ACEOF
  7024. if ac_fn_c_try_compile "$LINENO"
  7025. then :
  7026. ac_cv_sys_file_offset_bits=64; break
  7027. fi
  7028. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  7029. ac_cv_sys_file_offset_bits=unknown
  7030. break
  7031. done
  7032. fi
  7033. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  7034. printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
  7035. case $ac_cv_sys_file_offset_bits in #(
  7036. no | unknown) ;;
  7037. *)
  7038. printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
  7039. ;;
  7040. esac
  7041. rm -rf conftest*
  7042. if test $ac_cv_sys_file_offset_bits = unknown; then
  7043. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  7044. printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
  7045. if test ${ac_cv_sys_large_files+y}
  7046. then :
  7047. printf %s "(cached) " >&6
  7048. else $as_nop
  7049. while :; do
  7050. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7051. /* end confdefs.h. */
  7052. #include <sys/types.h>
  7053. /* Check that off_t can represent 2**63 - 1 correctly.
  7054. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7055. since some C++ compilers masquerading as C compilers
  7056. incorrectly reject 9223372036854775807. */
  7057. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  7058. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7059. && LARGE_OFF_T % 2147483647 == 1)
  7060. ? 1 : -1];
  7061. int main (void)
  7062. {
  7063. ;
  7064. return 0;
  7065. }
  7066. _ACEOF
  7067. if ac_fn_c_try_compile "$LINENO"
  7068. then :
  7069. ac_cv_sys_large_files=no; break
  7070. fi
  7071. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  7072. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7073. /* end confdefs.h. */
  7074. #define _LARGE_FILES 1
  7075. #include <sys/types.h>
  7076. /* Check that off_t can represent 2**63 - 1 correctly.
  7077. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7078. since some C++ compilers masquerading as C compilers
  7079. incorrectly reject 9223372036854775807. */
  7080. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  7081. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7082. && LARGE_OFF_T % 2147483647 == 1)
  7083. ? 1 : -1];
  7084. int main (void)
  7085. {
  7086. ;
  7087. return 0;
  7088. }
  7089. _ACEOF
  7090. if ac_fn_c_try_compile "$LINENO"
  7091. then :
  7092. ac_cv_sys_large_files=1; break
  7093. fi
  7094. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  7095. ac_cv_sys_large_files=unknown
  7096. break
  7097. done
  7098. fi
  7099. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  7100. printf "%s\n" "$ac_cv_sys_large_files" >&6; }
  7101. case $ac_cv_sys_large_files in #(
  7102. no | unknown) ;;
  7103. *)
  7104. printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
  7105. ;;
  7106. esac
  7107. rm -rf conftest*
  7108. fi
  7109. fi
  7110. case `pwd` in
  7111. *\ * | *\ *)
  7112. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  7113. printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  7114. esac
  7115. macro_version='2.4.7'
  7116. macro_revision='2.4.7'
  7117. ltmain=$ac_aux_dir/ltmain.sh
  7118. # Backslashify metacharacters that are still active within
  7119. # double-quoted strings.
  7120. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  7121. # Same as above, but do not quote variable references.
  7122. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  7123. # Sed substitution to delay expansion of an escaped shell variable in a
  7124. # double_quote_subst'ed string.
  7125. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  7126. # Sed substitution to delay expansion of an escaped single quote.
  7127. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  7128. # Sed substitution to avoid accidental globbing in evaled expressions
  7129. no_glob_subst='s/\*/\\\*/g'
  7130. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  7131. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  7132. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  7133. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  7134. printf %s "checking how to print strings... " >&6; }
  7135. # Test print first, because it will be a builtin if present.
  7136. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  7137. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  7138. ECHO='print -r --'
  7139. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  7140. ECHO='printf %s\n'
  7141. else
  7142. # Use this function as a fallback that always works.
  7143. func_fallback_echo ()
  7144. {
  7145. eval 'cat <<_LTECHO_EOF
  7146. $1
  7147. _LTECHO_EOF'
  7148. }
  7149. ECHO='func_fallback_echo'
  7150. fi
  7151. # func_echo_all arg...
  7152. # Invoke $ECHO with all args, space-separated.
  7153. func_echo_all ()
  7154. {
  7155. $ECHO ""
  7156. }
  7157. case $ECHO in
  7158. printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  7159. printf "%s\n" "printf" >&6; } ;;
  7160. print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  7161. printf "%s\n" "print -r" >&6; } ;;
  7162. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  7163. printf "%s\n" "cat" >&6; } ;;
  7164. esac
  7165. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  7166. printf %s "checking for a sed that does not truncate output... " >&6; }
  7167. if test ${ac_cv_path_SED+y}
  7168. then :
  7169. printf %s "(cached) " >&6
  7170. else $as_nop
  7171. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  7172. for ac_i in 1 2 3 4 5 6 7; do
  7173. ac_script="$ac_script$as_nl$ac_script"
  7174. done
  7175. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  7176. { ac_script=; unset ac_script;}
  7177. if test -z "$SED"; then
  7178. ac_path_SED_found=false
  7179. # Loop through the user's path and test for each of PROGNAME-LIST
  7180. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7181. for as_dir in $PATH
  7182. do
  7183. IFS=$as_save_IFS
  7184. case $as_dir in #(((
  7185. '') as_dir=./ ;;
  7186. */) ;;
  7187. *) as_dir=$as_dir/ ;;
  7188. esac
  7189. for ac_prog in sed gsed
  7190. do
  7191. for ac_exec_ext in '' $ac_executable_extensions; do
  7192. ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
  7193. as_fn_executable_p "$ac_path_SED" || continue
  7194. # Check for GNU ac_path_SED and select it if it is found.
  7195. # Check for GNU $ac_path_SED
  7196. case `"$ac_path_SED" --version 2>&1` in
  7197. *GNU*)
  7198. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  7199. *)
  7200. ac_count=0
  7201. printf %s 0123456789 >"conftest.in"
  7202. while :
  7203. do
  7204. cat "conftest.in" "conftest.in" >"conftest.tmp"
  7205. mv "conftest.tmp" "conftest.in"
  7206. cp "conftest.in" "conftest.nl"
  7207. printf "%s\n" '' >> "conftest.nl"
  7208. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  7209. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  7210. as_fn_arith $ac_count + 1 && ac_count=$as_val
  7211. if test $ac_count -gt ${ac_path_SED_max-0}; then
  7212. # Best one so far, save it but keep looking for a better one
  7213. ac_cv_path_SED="$ac_path_SED"
  7214. ac_path_SED_max=$ac_count
  7215. fi
  7216. # 10*(2^10) chars as input seems more than enough
  7217. test $ac_count -gt 10 && break
  7218. done
  7219. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  7220. esac
  7221. $ac_path_SED_found && break 3
  7222. done
  7223. done
  7224. done
  7225. IFS=$as_save_IFS
  7226. if test -z "$ac_cv_path_SED"; then
  7227. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  7228. fi
  7229. else
  7230. ac_cv_path_SED=$SED
  7231. fi
  7232. fi
  7233. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  7234. printf "%s\n" "$ac_cv_path_SED" >&6; }
  7235. SED="$ac_cv_path_SED"
  7236. rm -f conftest.sed
  7237. test -z "$SED" && SED=sed
  7238. Xsed="$SED -e 1s/^X//"
  7239. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  7240. printf %s "checking for fgrep... " >&6; }
  7241. if test ${ac_cv_path_FGREP+y}
  7242. then :
  7243. printf %s "(cached) " >&6
  7244. else $as_nop
  7245. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  7246. then ac_cv_path_FGREP="$GREP -F"
  7247. else
  7248. if test -z "$FGREP"; then
  7249. ac_path_FGREP_found=false
  7250. # Loop through the user's path and test for each of PROGNAME-LIST
  7251. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7252. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  7253. do
  7254. IFS=$as_save_IFS
  7255. case $as_dir in #(((
  7256. '') as_dir=./ ;;
  7257. */) ;;
  7258. *) as_dir=$as_dir/ ;;
  7259. esac
  7260. for ac_prog in fgrep
  7261. do
  7262. for ac_exec_ext in '' $ac_executable_extensions; do
  7263. ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
  7264. as_fn_executable_p "$ac_path_FGREP" || continue
  7265. # Check for GNU ac_path_FGREP and select it if it is found.
  7266. # Check for GNU $ac_path_FGREP
  7267. case `"$ac_path_FGREP" --version 2>&1` in
  7268. *GNU*)
  7269. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  7270. *)
  7271. ac_count=0
  7272. printf %s 0123456789 >"conftest.in"
  7273. while :
  7274. do
  7275. cat "conftest.in" "conftest.in" >"conftest.tmp"
  7276. mv "conftest.tmp" "conftest.in"
  7277. cp "conftest.in" "conftest.nl"
  7278. printf "%s\n" 'FGREP' >> "conftest.nl"
  7279. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  7280. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  7281. as_fn_arith $ac_count + 1 && ac_count=$as_val
  7282. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  7283. # Best one so far, save it but keep looking for a better one
  7284. ac_cv_path_FGREP="$ac_path_FGREP"
  7285. ac_path_FGREP_max=$ac_count
  7286. fi
  7287. # 10*(2^10) chars as input seems more than enough
  7288. test $ac_count -gt 10 && break
  7289. done
  7290. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  7291. esac
  7292. $ac_path_FGREP_found && break 3
  7293. done
  7294. done
  7295. done
  7296. IFS=$as_save_IFS
  7297. if test -z "$ac_cv_path_FGREP"; then
  7298. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  7299. fi
  7300. else
  7301. ac_cv_path_FGREP=$FGREP
  7302. fi
  7303. fi
  7304. fi
  7305. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  7306. printf "%s\n" "$ac_cv_path_FGREP" >&6; }
  7307. FGREP="$ac_cv_path_FGREP"
  7308. test -z "$GREP" && GREP=grep
  7309. # Check whether --with-gnu-ld was given.
  7310. if test ${with_gnu_ld+y}
  7311. then :
  7312. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  7313. else $as_nop
  7314. with_gnu_ld=no
  7315. fi
  7316. ac_prog=ld
  7317. if test yes = "$GCC"; then
  7318. # Check if gcc -print-prog-name=ld gives a path.
  7319. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  7320. printf %s "checking for ld used by $CC... " >&6; }
  7321. case $host in
  7322. *-*-mingw*)
  7323. # gcc leaves a trailing carriage return, which upsets mingw
  7324. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  7325. *)
  7326. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  7327. esac
  7328. case $ac_prog in
  7329. # Accept absolute paths.
  7330. [\\/]* | ?:[\\/]*)
  7331. re_direlt='/[^/][^/]*/\.\./'
  7332. # Canonicalize the pathname of ld
  7333. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  7334. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  7335. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  7336. done
  7337. test -z "$LD" && LD=$ac_prog
  7338. ;;
  7339. "")
  7340. # If it fails, then pretend we aren't using GCC.
  7341. ac_prog=ld
  7342. ;;
  7343. *)
  7344. # If it is relative, then search for the first ld in PATH.
  7345. with_gnu_ld=unknown
  7346. ;;
  7347. esac
  7348. elif test yes = "$with_gnu_ld"; then
  7349. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  7350. printf %s "checking for GNU ld... " >&6; }
  7351. else
  7352. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  7353. printf %s "checking for non-GNU ld... " >&6; }
  7354. fi
  7355. if test ${lt_cv_path_LD+y}
  7356. then :
  7357. printf %s "(cached) " >&6
  7358. else $as_nop
  7359. if test -z "$LD"; then
  7360. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7361. for ac_dir in $PATH; do
  7362. IFS=$lt_save_ifs
  7363. test -z "$ac_dir" && ac_dir=.
  7364. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  7365. lt_cv_path_LD=$ac_dir/$ac_prog
  7366. # Check to see if the program is GNU ld. I'd rather use --version,
  7367. # but apparently some variants of GNU ld only accept -v.
  7368. # Break only if it was the GNU/non-GNU ld that we prefer.
  7369. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  7370. *GNU* | *'with BFD'*)
  7371. test no != "$with_gnu_ld" && break
  7372. ;;
  7373. *)
  7374. test yes != "$with_gnu_ld" && break
  7375. ;;
  7376. esac
  7377. fi
  7378. done
  7379. IFS=$lt_save_ifs
  7380. else
  7381. lt_cv_path_LD=$LD # Let the user override the test with a path.
  7382. fi
  7383. fi
  7384. LD=$lt_cv_path_LD
  7385. if test -n "$LD"; then
  7386. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  7387. printf "%s\n" "$LD" >&6; }
  7388. else
  7389. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7390. printf "%s\n" "no" >&6; }
  7391. fi
  7392. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  7393. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  7394. printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
  7395. if test ${lt_cv_prog_gnu_ld+y}
  7396. then :
  7397. printf %s "(cached) " >&6
  7398. else $as_nop
  7399. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  7400. case `$LD -v 2>&1 </dev/null` in
  7401. *GNU* | *'with BFD'*)
  7402. lt_cv_prog_gnu_ld=yes
  7403. ;;
  7404. *)
  7405. lt_cv_prog_gnu_ld=no
  7406. ;;
  7407. esac
  7408. fi
  7409. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  7410. printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
  7411. with_gnu_ld=$lt_cv_prog_gnu_ld
  7412. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  7413. printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  7414. if test ${lt_cv_path_NM+y}
  7415. then :
  7416. printf %s "(cached) " >&6
  7417. else $as_nop
  7418. if test -n "$NM"; then
  7419. # Let the user override the test.
  7420. lt_cv_path_NM=$NM
  7421. else
  7422. lt_nm_to_check=${ac_tool_prefix}nm
  7423. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  7424. lt_nm_to_check="$lt_nm_to_check nm"
  7425. fi
  7426. for lt_tmp_nm in $lt_nm_to_check; do
  7427. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7428. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  7429. IFS=$lt_save_ifs
  7430. test -z "$ac_dir" && ac_dir=.
  7431. tmp_nm=$ac_dir/$lt_tmp_nm
  7432. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  7433. # Check to see if the nm accepts a BSD-compat flag.
  7434. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  7435. # nm: unknown option "B" ignored
  7436. # Tru64's nm complains that /dev/null is an invalid object file
  7437. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  7438. case $build_os in
  7439. mingw*) lt_bad_file=conftest.nm/nofile ;;
  7440. *) lt_bad_file=/dev/null ;;
  7441. esac
  7442. case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
  7443. *$lt_bad_file* | *'Invalid file or object type'*)
  7444. lt_cv_path_NM="$tmp_nm -B"
  7445. break 2
  7446. ;;
  7447. *)
  7448. case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
  7449. */dev/null*)
  7450. lt_cv_path_NM="$tmp_nm -p"
  7451. break 2
  7452. ;;
  7453. *)
  7454. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  7455. continue # so that we can try to find one that supports BSD flags
  7456. ;;
  7457. esac
  7458. ;;
  7459. esac
  7460. fi
  7461. done
  7462. IFS=$lt_save_ifs
  7463. done
  7464. : ${lt_cv_path_NM=no}
  7465. fi
  7466. fi
  7467. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  7468. printf "%s\n" "$lt_cv_path_NM" >&6; }
  7469. if test no != "$lt_cv_path_NM"; then
  7470. NM=$lt_cv_path_NM
  7471. else
  7472. # Didn't find any BSD compatible name lister, look for dumpbin.
  7473. if test -n "$DUMPBIN"; then :
  7474. # Let the user override the test.
  7475. else
  7476. if test -n "$ac_tool_prefix"; then
  7477. for ac_prog in dumpbin "link -dump"
  7478. do
  7479. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  7480. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  7481. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7482. printf %s "checking for $ac_word... " >&6; }
  7483. if test ${ac_cv_prog_DUMPBIN+y}
  7484. then :
  7485. printf %s "(cached) " >&6
  7486. else $as_nop
  7487. if test -n "$DUMPBIN"; then
  7488. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  7489. else
  7490. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7491. for as_dir in $PATH
  7492. do
  7493. IFS=$as_save_IFS
  7494. case $as_dir in #(((
  7495. '') as_dir=./ ;;
  7496. */) ;;
  7497. *) as_dir=$as_dir/ ;;
  7498. esac
  7499. for ac_exec_ext in '' $ac_executable_extensions; do
  7500. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7501. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  7502. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7503. break 2
  7504. fi
  7505. done
  7506. done
  7507. IFS=$as_save_IFS
  7508. fi
  7509. fi
  7510. DUMPBIN=$ac_cv_prog_DUMPBIN
  7511. if test -n "$DUMPBIN"; then
  7512. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  7513. printf "%s\n" "$DUMPBIN" >&6; }
  7514. else
  7515. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7516. printf "%s\n" "no" >&6; }
  7517. fi
  7518. test -n "$DUMPBIN" && break
  7519. done
  7520. fi
  7521. if test -z "$DUMPBIN"; then
  7522. ac_ct_DUMPBIN=$DUMPBIN
  7523. for ac_prog in dumpbin "link -dump"
  7524. do
  7525. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7526. set dummy $ac_prog; ac_word=$2
  7527. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7528. printf %s "checking for $ac_word... " >&6; }
  7529. if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
  7530. then :
  7531. printf %s "(cached) " >&6
  7532. else $as_nop
  7533. if test -n "$ac_ct_DUMPBIN"; then
  7534. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  7535. else
  7536. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7537. for as_dir in $PATH
  7538. do
  7539. IFS=$as_save_IFS
  7540. case $as_dir in #(((
  7541. '') as_dir=./ ;;
  7542. */) ;;
  7543. *) as_dir=$as_dir/ ;;
  7544. esac
  7545. for ac_exec_ext in '' $ac_executable_extensions; do
  7546. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7547. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  7548. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7549. break 2
  7550. fi
  7551. done
  7552. done
  7553. IFS=$as_save_IFS
  7554. fi
  7555. fi
  7556. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  7557. if test -n "$ac_ct_DUMPBIN"; then
  7558. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  7559. printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
  7560. else
  7561. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7562. printf "%s\n" "no" >&6; }
  7563. fi
  7564. test -n "$ac_ct_DUMPBIN" && break
  7565. done
  7566. if test "x$ac_ct_DUMPBIN" = x; then
  7567. DUMPBIN=":"
  7568. else
  7569. case $cross_compiling:$ac_tool_warned in
  7570. yes:)
  7571. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7572. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7573. ac_tool_warned=yes ;;
  7574. esac
  7575. DUMPBIN=$ac_ct_DUMPBIN
  7576. fi
  7577. fi
  7578. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
  7579. *COFF*)
  7580. DUMPBIN="$DUMPBIN -symbols -headers"
  7581. ;;
  7582. *)
  7583. DUMPBIN=:
  7584. ;;
  7585. esac
  7586. fi
  7587. if test : != "$DUMPBIN"; then
  7588. NM=$DUMPBIN
  7589. fi
  7590. fi
  7591. test -z "$NM" && NM=nm
  7592. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  7593. printf %s "checking the name lister ($NM) interface... " >&6; }
  7594. if test ${lt_cv_nm_interface+y}
  7595. then :
  7596. printf %s "(cached) " >&6
  7597. else $as_nop
  7598. lt_cv_nm_interface="BSD nm"
  7599. echo "int some_variable = 0;" > conftest.$ac_ext
  7600. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  7601. (eval "$ac_compile" 2>conftest.err)
  7602. cat conftest.err >&5
  7603. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  7604. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  7605. cat conftest.err >&5
  7606. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  7607. cat conftest.out >&5
  7608. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  7609. lt_cv_nm_interface="MS dumpbin"
  7610. fi
  7611. rm -f conftest*
  7612. fi
  7613. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  7614. printf "%s\n" "$lt_cv_nm_interface" >&6; }
  7615. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  7616. printf %s "checking whether ln -s works... " >&6; }
  7617. LN_S=$as_ln_s
  7618. if test "$LN_S" = "ln -s"; then
  7619. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7620. printf "%s\n" "yes" >&6; }
  7621. else
  7622. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  7623. printf "%s\n" "no, using $LN_S" >&6; }
  7624. fi
  7625. # find the maximum length of command line arguments
  7626. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  7627. printf %s "checking the maximum length of command line arguments... " >&6; }
  7628. if test ${lt_cv_sys_max_cmd_len+y}
  7629. then :
  7630. printf %s "(cached) " >&6
  7631. else $as_nop
  7632. i=0
  7633. teststring=ABCD
  7634. case $build_os in
  7635. msdosdjgpp*)
  7636. # On DJGPP, this test can blow up pretty badly due to problems in libc
  7637. # (any single argument exceeding 2000 bytes causes a buffer overrun
  7638. # during glob expansion). Even if it were fixed, the result of this
  7639. # check would be larger than it should be.
  7640. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  7641. ;;
  7642. gnu*)
  7643. # Under GNU Hurd, this test is not required because there is
  7644. # no limit to the length of command line arguments.
  7645. # Libtool will interpret -1 as no limit whatsoever
  7646. lt_cv_sys_max_cmd_len=-1;
  7647. ;;
  7648. cygwin* | mingw* | cegcc*)
  7649. # On Win9x/ME, this test blows up -- it succeeds, but takes
  7650. # about 5 minutes as the teststring grows exponentially.
  7651. # Worse, since 9x/ME are not pre-emptively multitasking,
  7652. # you end up with a "frozen" computer, even though with patience
  7653. # the test eventually succeeds (with a max line length of 256k).
  7654. # Instead, let's just punt: use the minimum linelength reported by
  7655. # all of the supported platforms: 8192 (on NT/2K/XP).
  7656. lt_cv_sys_max_cmd_len=8192;
  7657. ;;
  7658. mint*)
  7659. # On MiNT this can take a long time and run out of memory.
  7660. lt_cv_sys_max_cmd_len=8192;
  7661. ;;
  7662. amigaos*)
  7663. # On AmigaOS with pdksh, this test takes hours, literally.
  7664. # So we just punt and use a minimum line length of 8192.
  7665. lt_cv_sys_max_cmd_len=8192;
  7666. ;;
  7667. bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
  7668. # This has been around since 386BSD, at least. Likely further.
  7669. if test -x /sbin/sysctl; then
  7670. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  7671. elif test -x /usr/sbin/sysctl; then
  7672. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  7673. else
  7674. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  7675. fi
  7676. # And add a safety zone
  7677. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  7678. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  7679. ;;
  7680. interix*)
  7681. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  7682. lt_cv_sys_max_cmd_len=196608
  7683. ;;
  7684. os2*)
  7685. # The test takes a long time on OS/2.
  7686. lt_cv_sys_max_cmd_len=8192
  7687. ;;
  7688. osf*)
  7689. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  7690. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  7691. # nice to cause kernel panics so lets avoid the loop below.
  7692. # First set a reasonable default.
  7693. lt_cv_sys_max_cmd_len=16384
  7694. #
  7695. if test -x /sbin/sysconfig; then
  7696. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  7697. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  7698. esac
  7699. fi
  7700. ;;
  7701. sco3.2v5*)
  7702. lt_cv_sys_max_cmd_len=102400
  7703. ;;
  7704. sysv5* | sco5v6* | sysv4.2uw2*)
  7705. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  7706. if test -n "$kargmax"; then
  7707. lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
  7708. else
  7709. lt_cv_sys_max_cmd_len=32768
  7710. fi
  7711. ;;
  7712. *)
  7713. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  7714. if test -n "$lt_cv_sys_max_cmd_len" && \
  7715. test undefined != "$lt_cv_sys_max_cmd_len"; then
  7716. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  7717. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  7718. else
  7719. # Make teststring a little bigger before we do anything with it.
  7720. # a 1K string should be a reasonable start.
  7721. for i in 1 2 3 4 5 6 7 8; do
  7722. teststring=$teststring$teststring
  7723. done
  7724. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  7725. # If test is not a shell built-in, we'll probably end up computing a
  7726. # maximum length that is only half of the actual maximum length, but
  7727. # we can't tell.
  7728. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  7729. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  7730. test 17 != "$i" # 1/2 MB should be enough
  7731. do
  7732. i=`expr $i + 1`
  7733. teststring=$teststring$teststring
  7734. done
  7735. # Only check the string length outside the loop.
  7736. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  7737. teststring=
  7738. # Add a significant safety factor because C++ compilers can tack on
  7739. # massive amounts of additional arguments before passing them to the
  7740. # linker. It appears as though 1/2 is a usable value.
  7741. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  7742. fi
  7743. ;;
  7744. esac
  7745. fi
  7746. if test -n "$lt_cv_sys_max_cmd_len"; then
  7747. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  7748. printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
  7749. else
  7750. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
  7751. printf "%s\n" "none" >&6; }
  7752. fi
  7753. max_cmd_len=$lt_cv_sys_max_cmd_len
  7754. : ${CP="cp -f"}
  7755. : ${MV="mv -f"}
  7756. : ${RM="rm -f"}
  7757. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  7758. lt_unset=unset
  7759. else
  7760. lt_unset=false
  7761. fi
  7762. # test EBCDIC or ASCII
  7763. case `echo X|tr X '\101'` in
  7764. A) # ASCII based system
  7765. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  7766. lt_SP2NL='tr \040 \012'
  7767. lt_NL2SP='tr \015\012 \040\040'
  7768. ;;
  7769. *) # EBCDIC based system
  7770. lt_SP2NL='tr \100 \n'
  7771. lt_NL2SP='tr \r\n \100\100'
  7772. ;;
  7773. esac
  7774. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  7775. printf %s "checking how to convert $build file names to $host format... " >&6; }
  7776. if test ${lt_cv_to_host_file_cmd+y}
  7777. then :
  7778. printf %s "(cached) " >&6
  7779. else $as_nop
  7780. case $host in
  7781. *-*-mingw* )
  7782. case $build in
  7783. *-*-mingw* ) # actually msys
  7784. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  7785. ;;
  7786. *-*-cygwin* )
  7787. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  7788. ;;
  7789. * ) # otherwise, assume *nix
  7790. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  7791. ;;
  7792. esac
  7793. ;;
  7794. *-*-cygwin* )
  7795. case $build in
  7796. *-*-mingw* ) # actually msys
  7797. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  7798. ;;
  7799. *-*-cygwin* )
  7800. lt_cv_to_host_file_cmd=func_convert_file_noop
  7801. ;;
  7802. * ) # otherwise, assume *nix
  7803. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  7804. ;;
  7805. esac
  7806. ;;
  7807. * ) # unhandled hosts (and "normal" native builds)
  7808. lt_cv_to_host_file_cmd=func_convert_file_noop
  7809. ;;
  7810. esac
  7811. fi
  7812. to_host_file_cmd=$lt_cv_to_host_file_cmd
  7813. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  7814. printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
  7815. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  7816. printf %s "checking how to convert $build file names to toolchain format... " >&6; }
  7817. if test ${lt_cv_to_tool_file_cmd+y}
  7818. then :
  7819. printf %s "(cached) " >&6
  7820. else $as_nop
  7821. #assume ordinary cross tools, or native build.
  7822. lt_cv_to_tool_file_cmd=func_convert_file_noop
  7823. case $host in
  7824. *-*-mingw* )
  7825. case $build in
  7826. *-*-mingw* ) # actually msys
  7827. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  7828. ;;
  7829. esac
  7830. ;;
  7831. esac
  7832. fi
  7833. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  7834. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  7835. printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
  7836. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  7837. printf %s "checking for $LD option to reload object files... " >&6; }
  7838. if test ${lt_cv_ld_reload_flag+y}
  7839. then :
  7840. printf %s "(cached) " >&6
  7841. else $as_nop
  7842. lt_cv_ld_reload_flag='-r'
  7843. fi
  7844. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  7845. printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
  7846. reload_flag=$lt_cv_ld_reload_flag
  7847. case $reload_flag in
  7848. "" | " "*) ;;
  7849. *) reload_flag=" $reload_flag" ;;
  7850. esac
  7851. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  7852. case $host_os in
  7853. cygwin* | mingw* | pw32* | cegcc*)
  7854. if test yes != "$GCC"; then
  7855. reload_cmds=false
  7856. fi
  7857. ;;
  7858. darwin*)
  7859. if test yes = "$GCC"; then
  7860. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  7861. else
  7862. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  7863. fi
  7864. ;;
  7865. esac
  7866. if test -n "$ac_tool_prefix"; then
  7867. # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
  7868. set dummy ${ac_tool_prefix}file; ac_word=$2
  7869. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7870. printf %s "checking for $ac_word... " >&6; }
  7871. if test ${ac_cv_prog_FILECMD+y}
  7872. then :
  7873. printf %s "(cached) " >&6
  7874. else $as_nop
  7875. if test -n "$FILECMD"; then
  7876. ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
  7877. else
  7878. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7879. for as_dir in $PATH
  7880. do
  7881. IFS=$as_save_IFS
  7882. case $as_dir in #(((
  7883. '') as_dir=./ ;;
  7884. */) ;;
  7885. *) as_dir=$as_dir/ ;;
  7886. esac
  7887. for ac_exec_ext in '' $ac_executable_extensions; do
  7888. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7889. ac_cv_prog_FILECMD="${ac_tool_prefix}file"
  7890. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7891. break 2
  7892. fi
  7893. done
  7894. done
  7895. IFS=$as_save_IFS
  7896. fi
  7897. fi
  7898. FILECMD=$ac_cv_prog_FILECMD
  7899. if test -n "$FILECMD"; then
  7900. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
  7901. printf "%s\n" "$FILECMD" >&6; }
  7902. else
  7903. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7904. printf "%s\n" "no" >&6; }
  7905. fi
  7906. fi
  7907. if test -z "$ac_cv_prog_FILECMD"; then
  7908. ac_ct_FILECMD=$FILECMD
  7909. # Extract the first word of "file", so it can be a program name with args.
  7910. set dummy file; ac_word=$2
  7911. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7912. printf %s "checking for $ac_word... " >&6; }
  7913. if test ${ac_cv_prog_ac_ct_FILECMD+y}
  7914. then :
  7915. printf %s "(cached) " >&6
  7916. else $as_nop
  7917. if test -n "$ac_ct_FILECMD"; then
  7918. ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
  7919. else
  7920. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7921. for as_dir in $PATH
  7922. do
  7923. IFS=$as_save_IFS
  7924. case $as_dir in #(((
  7925. '') as_dir=./ ;;
  7926. */) ;;
  7927. *) as_dir=$as_dir/ ;;
  7928. esac
  7929. for ac_exec_ext in '' $ac_executable_extensions; do
  7930. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7931. ac_cv_prog_ac_ct_FILECMD="file"
  7932. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7933. break 2
  7934. fi
  7935. done
  7936. done
  7937. IFS=$as_save_IFS
  7938. fi
  7939. fi
  7940. ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
  7941. if test -n "$ac_ct_FILECMD"; then
  7942. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
  7943. printf "%s\n" "$ac_ct_FILECMD" >&6; }
  7944. else
  7945. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7946. printf "%s\n" "no" >&6; }
  7947. fi
  7948. if test "x$ac_ct_FILECMD" = x; then
  7949. FILECMD=":"
  7950. else
  7951. case $cross_compiling:$ac_tool_warned in
  7952. yes:)
  7953. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7954. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7955. ac_tool_warned=yes ;;
  7956. esac
  7957. FILECMD=$ac_ct_FILECMD
  7958. fi
  7959. else
  7960. FILECMD="$ac_cv_prog_FILECMD"
  7961. fi
  7962. if test -n "$ac_tool_prefix"; then
  7963. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  7964. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  7965. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7966. printf %s "checking for $ac_word... " >&6; }
  7967. if test ${ac_cv_prog_OBJDUMP+y}
  7968. then :
  7969. printf %s "(cached) " >&6
  7970. else $as_nop
  7971. if test -n "$OBJDUMP"; then
  7972. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  7973. else
  7974. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7975. for as_dir in $PATH
  7976. do
  7977. IFS=$as_save_IFS
  7978. case $as_dir in #(((
  7979. '') as_dir=./ ;;
  7980. */) ;;
  7981. *) as_dir=$as_dir/ ;;
  7982. esac
  7983. for ac_exec_ext in '' $ac_executable_extensions; do
  7984. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7985. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  7986. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7987. break 2
  7988. fi
  7989. done
  7990. done
  7991. IFS=$as_save_IFS
  7992. fi
  7993. fi
  7994. OBJDUMP=$ac_cv_prog_OBJDUMP
  7995. if test -n "$OBJDUMP"; then
  7996. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  7997. printf "%s\n" "$OBJDUMP" >&6; }
  7998. else
  7999. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8000. printf "%s\n" "no" >&6; }
  8001. fi
  8002. fi
  8003. if test -z "$ac_cv_prog_OBJDUMP"; then
  8004. ac_ct_OBJDUMP=$OBJDUMP
  8005. # Extract the first word of "objdump", so it can be a program name with args.
  8006. set dummy objdump; ac_word=$2
  8007. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8008. printf %s "checking for $ac_word... " >&6; }
  8009. if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
  8010. then :
  8011. printf %s "(cached) " >&6
  8012. else $as_nop
  8013. if test -n "$ac_ct_OBJDUMP"; then
  8014. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  8015. else
  8016. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8017. for as_dir in $PATH
  8018. do
  8019. IFS=$as_save_IFS
  8020. case $as_dir in #(((
  8021. '') as_dir=./ ;;
  8022. */) ;;
  8023. *) as_dir=$as_dir/ ;;
  8024. esac
  8025. for ac_exec_ext in '' $ac_executable_extensions; do
  8026. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8027. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  8028. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8029. break 2
  8030. fi
  8031. done
  8032. done
  8033. IFS=$as_save_IFS
  8034. fi
  8035. fi
  8036. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  8037. if test -n "$ac_ct_OBJDUMP"; then
  8038. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  8039. printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
  8040. else
  8041. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8042. printf "%s\n" "no" >&6; }
  8043. fi
  8044. if test "x$ac_ct_OBJDUMP" = x; then
  8045. OBJDUMP="false"
  8046. else
  8047. case $cross_compiling:$ac_tool_warned in
  8048. yes:)
  8049. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8050. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8051. ac_tool_warned=yes ;;
  8052. esac
  8053. OBJDUMP=$ac_ct_OBJDUMP
  8054. fi
  8055. else
  8056. OBJDUMP="$ac_cv_prog_OBJDUMP"
  8057. fi
  8058. test -z "$OBJDUMP" && OBJDUMP=objdump
  8059. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  8060. printf %s "checking how to recognize dependent libraries... " >&6; }
  8061. if test ${lt_cv_deplibs_check_method+y}
  8062. then :
  8063. printf %s "(cached) " >&6
  8064. else $as_nop
  8065. lt_cv_file_magic_cmd='$MAGIC_CMD'
  8066. lt_cv_file_magic_test_file=
  8067. lt_cv_deplibs_check_method='unknown'
  8068. # Need to set the preceding variable on all platforms that support
  8069. # interlibrary dependencies.
  8070. # 'none' -- dependencies not supported.
  8071. # 'unknown' -- same as none, but documents that we really don't know.
  8072. # 'pass_all' -- all dependencies passed with no checks.
  8073. # 'test_compile' -- check by making test program.
  8074. # 'file_magic [[regex]]' -- check by looking for files in library path
  8075. # that responds to the $file_magic_cmd with a given extended regex.
  8076. # If you have 'file' or equivalent on your system and you're not sure
  8077. # whether 'pass_all' will *always* work, you probably want this one.
  8078. case $host_os in
  8079. aix[4-9]*)
  8080. lt_cv_deplibs_check_method=pass_all
  8081. ;;
  8082. beos*)
  8083. lt_cv_deplibs_check_method=pass_all
  8084. ;;
  8085. bsdi[45]*)
  8086. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  8087. lt_cv_file_magic_cmd='$FILECMD -L'
  8088. lt_cv_file_magic_test_file=/shlib/libc.so
  8089. ;;
  8090. cygwin*)
  8091. # func_win32_libid is a shell function defined in ltmain.sh
  8092. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  8093. lt_cv_file_magic_cmd='func_win32_libid'
  8094. ;;
  8095. mingw* | pw32*)
  8096. # Base MSYS/MinGW do not provide the 'file' command needed by
  8097. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  8098. # unless we find 'file', for example because we are cross-compiling.
  8099. if ( file / ) >/dev/null 2>&1; then
  8100. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  8101. lt_cv_file_magic_cmd='func_win32_libid'
  8102. else
  8103. # Keep this pattern in sync with the one in func_win32_libid.
  8104. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  8105. lt_cv_file_magic_cmd='$OBJDUMP -f'
  8106. fi
  8107. ;;
  8108. cegcc*)
  8109. # use the weaker test based on 'objdump'. See mingw*.
  8110. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  8111. lt_cv_file_magic_cmd='$OBJDUMP -f'
  8112. ;;
  8113. darwin* | rhapsody*)
  8114. lt_cv_deplibs_check_method=pass_all
  8115. ;;
  8116. freebsd* | dragonfly* | midnightbsd*)
  8117. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  8118. case $host_cpu in
  8119. i*86 )
  8120. # Not sure whether the presence of OpenBSD here was a mistake.
  8121. # Let's accept both of them until this is cleared up.
  8122. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  8123. lt_cv_file_magic_cmd=$FILECMD
  8124. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  8125. ;;
  8126. esac
  8127. else
  8128. lt_cv_deplibs_check_method=pass_all
  8129. fi
  8130. ;;
  8131. haiku*)
  8132. lt_cv_deplibs_check_method=pass_all
  8133. ;;
  8134. hpux10.20* | hpux11*)
  8135. lt_cv_file_magic_cmd=$FILECMD
  8136. case $host_cpu in
  8137. ia64*)
  8138. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  8139. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  8140. ;;
  8141. hppa*64*)
  8142. 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]'
  8143. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  8144. ;;
  8145. *)
  8146. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  8147. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  8148. ;;
  8149. esac
  8150. ;;
  8151. interix[3-9]*)
  8152. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  8153. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  8154. ;;
  8155. irix5* | irix6* | nonstopux*)
  8156. case $LD in
  8157. *-32|*"-32 ") libmagic=32-bit;;
  8158. *-n32|*"-n32 ") libmagic=N32;;
  8159. *-64|*"-64 ") libmagic=64-bit;;
  8160. *) libmagic=never-match;;
  8161. esac
  8162. lt_cv_deplibs_check_method=pass_all
  8163. ;;
  8164. # This must be glibc/ELF.
  8165. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  8166. lt_cv_deplibs_check_method=pass_all
  8167. ;;
  8168. netbsd* | netbsdelf*-gnu)
  8169. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  8170. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  8171. else
  8172. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  8173. fi
  8174. ;;
  8175. newos6*)
  8176. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  8177. lt_cv_file_magic_cmd=$FILECMD
  8178. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  8179. ;;
  8180. *nto* | *qnx*)
  8181. lt_cv_deplibs_check_method=pass_all
  8182. ;;
  8183. openbsd* | bitrig*)
  8184. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  8185. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  8186. else
  8187. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  8188. fi
  8189. ;;
  8190. osf3* | osf4* | osf5*)
  8191. lt_cv_deplibs_check_method=pass_all
  8192. ;;
  8193. rdos*)
  8194. lt_cv_deplibs_check_method=pass_all
  8195. ;;
  8196. solaris*)
  8197. lt_cv_deplibs_check_method=pass_all
  8198. ;;
  8199. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  8200. lt_cv_deplibs_check_method=pass_all
  8201. ;;
  8202. sysv4 | sysv4.3*)
  8203. case $host_vendor in
  8204. motorola)
  8205. 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]'
  8206. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  8207. ;;
  8208. ncr)
  8209. lt_cv_deplibs_check_method=pass_all
  8210. ;;
  8211. sequent)
  8212. lt_cv_file_magic_cmd='/bin/file'
  8213. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  8214. ;;
  8215. sni)
  8216. lt_cv_file_magic_cmd='/bin/file'
  8217. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  8218. lt_cv_file_magic_test_file=/lib/libc.so
  8219. ;;
  8220. siemens)
  8221. lt_cv_deplibs_check_method=pass_all
  8222. ;;
  8223. pc)
  8224. lt_cv_deplibs_check_method=pass_all
  8225. ;;
  8226. esac
  8227. ;;
  8228. tpf*)
  8229. lt_cv_deplibs_check_method=pass_all
  8230. ;;
  8231. os2*)
  8232. lt_cv_deplibs_check_method=pass_all
  8233. ;;
  8234. esac
  8235. fi
  8236. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  8237. printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
  8238. file_magic_glob=
  8239. want_nocaseglob=no
  8240. if test "$build" = "$host"; then
  8241. case $host_os in
  8242. mingw* | pw32*)
  8243. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  8244. want_nocaseglob=yes
  8245. else
  8246. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  8247. fi
  8248. ;;
  8249. esac
  8250. fi
  8251. file_magic_cmd=$lt_cv_file_magic_cmd
  8252. deplibs_check_method=$lt_cv_deplibs_check_method
  8253. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  8254. if test -n "$ac_tool_prefix"; then
  8255. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  8256. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  8257. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8258. printf %s "checking for $ac_word... " >&6; }
  8259. if test ${ac_cv_prog_DLLTOOL+y}
  8260. then :
  8261. printf %s "(cached) " >&6
  8262. else $as_nop
  8263. if test -n "$DLLTOOL"; then
  8264. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  8265. else
  8266. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8267. for as_dir in $PATH
  8268. do
  8269. IFS=$as_save_IFS
  8270. case $as_dir in #(((
  8271. '') as_dir=./ ;;
  8272. */) ;;
  8273. *) as_dir=$as_dir/ ;;
  8274. esac
  8275. for ac_exec_ext in '' $ac_executable_extensions; do
  8276. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8277. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  8278. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8279. break 2
  8280. fi
  8281. done
  8282. done
  8283. IFS=$as_save_IFS
  8284. fi
  8285. fi
  8286. DLLTOOL=$ac_cv_prog_DLLTOOL
  8287. if test -n "$DLLTOOL"; then
  8288. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  8289. printf "%s\n" "$DLLTOOL" >&6; }
  8290. else
  8291. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8292. printf "%s\n" "no" >&6; }
  8293. fi
  8294. fi
  8295. if test -z "$ac_cv_prog_DLLTOOL"; then
  8296. ac_ct_DLLTOOL=$DLLTOOL
  8297. # Extract the first word of "dlltool", so it can be a program name with args.
  8298. set dummy dlltool; ac_word=$2
  8299. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8300. printf %s "checking for $ac_word... " >&6; }
  8301. if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
  8302. then :
  8303. printf %s "(cached) " >&6
  8304. else $as_nop
  8305. if test -n "$ac_ct_DLLTOOL"; then
  8306. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  8307. else
  8308. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8309. for as_dir in $PATH
  8310. do
  8311. IFS=$as_save_IFS
  8312. case $as_dir in #(((
  8313. '') as_dir=./ ;;
  8314. */) ;;
  8315. *) as_dir=$as_dir/ ;;
  8316. esac
  8317. for ac_exec_ext in '' $ac_executable_extensions; do
  8318. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8319. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  8320. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8321. break 2
  8322. fi
  8323. done
  8324. done
  8325. IFS=$as_save_IFS
  8326. fi
  8327. fi
  8328. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  8329. if test -n "$ac_ct_DLLTOOL"; then
  8330. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  8331. printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
  8332. else
  8333. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8334. printf "%s\n" "no" >&6; }
  8335. fi
  8336. if test "x$ac_ct_DLLTOOL" = x; then
  8337. DLLTOOL="false"
  8338. else
  8339. case $cross_compiling:$ac_tool_warned in
  8340. yes:)
  8341. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8342. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8343. ac_tool_warned=yes ;;
  8344. esac
  8345. DLLTOOL=$ac_ct_DLLTOOL
  8346. fi
  8347. else
  8348. DLLTOOL="$ac_cv_prog_DLLTOOL"
  8349. fi
  8350. test -z "$DLLTOOL" && DLLTOOL=dlltool
  8351. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  8352. printf %s "checking how to associate runtime and link libraries... " >&6; }
  8353. if test ${lt_cv_sharedlib_from_linklib_cmd+y}
  8354. then :
  8355. printf %s "(cached) " >&6
  8356. else $as_nop
  8357. lt_cv_sharedlib_from_linklib_cmd='unknown'
  8358. case $host_os in
  8359. cygwin* | mingw* | pw32* | cegcc*)
  8360. # two different shell functions defined in ltmain.sh;
  8361. # decide which one to use based on capabilities of $DLLTOOL
  8362. case `$DLLTOOL --help 2>&1` in
  8363. *--identify-strict*)
  8364. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  8365. ;;
  8366. *)
  8367. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  8368. ;;
  8369. esac
  8370. ;;
  8371. *)
  8372. # fallback: assume linklib IS sharedlib
  8373. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  8374. ;;
  8375. esac
  8376. fi
  8377. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  8378. printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  8379. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  8380. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  8381. if test -n "$ac_tool_prefix"; then
  8382. for ac_prog in ar
  8383. do
  8384. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  8385. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  8386. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8387. printf %s "checking for $ac_word... " >&6; }
  8388. if test ${ac_cv_prog_AR+y}
  8389. then :
  8390. printf %s "(cached) " >&6
  8391. else $as_nop
  8392. if test -n "$AR"; then
  8393. ac_cv_prog_AR="$AR" # Let the user override the test.
  8394. else
  8395. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8396. for as_dir in $PATH
  8397. do
  8398. IFS=$as_save_IFS
  8399. case $as_dir in #(((
  8400. '') as_dir=./ ;;
  8401. */) ;;
  8402. *) as_dir=$as_dir/ ;;
  8403. esac
  8404. for ac_exec_ext in '' $ac_executable_extensions; do
  8405. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8406. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  8407. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8408. break 2
  8409. fi
  8410. done
  8411. done
  8412. IFS=$as_save_IFS
  8413. fi
  8414. fi
  8415. AR=$ac_cv_prog_AR
  8416. if test -n "$AR"; then
  8417. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  8418. printf "%s\n" "$AR" >&6; }
  8419. else
  8420. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8421. printf "%s\n" "no" >&6; }
  8422. fi
  8423. test -n "$AR" && break
  8424. done
  8425. fi
  8426. if test -z "$AR"; then
  8427. ac_ct_AR=$AR
  8428. for ac_prog in ar
  8429. do
  8430. # Extract the first word of "$ac_prog", so it can be a program name with args.
  8431. set dummy $ac_prog; ac_word=$2
  8432. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8433. printf %s "checking for $ac_word... " >&6; }
  8434. if test ${ac_cv_prog_ac_ct_AR+y}
  8435. then :
  8436. printf %s "(cached) " >&6
  8437. else $as_nop
  8438. if test -n "$ac_ct_AR"; then
  8439. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  8440. else
  8441. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8442. for as_dir in $PATH
  8443. do
  8444. IFS=$as_save_IFS
  8445. case $as_dir in #(((
  8446. '') as_dir=./ ;;
  8447. */) ;;
  8448. *) as_dir=$as_dir/ ;;
  8449. esac
  8450. for ac_exec_ext in '' $ac_executable_extensions; do
  8451. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8452. ac_cv_prog_ac_ct_AR="$ac_prog"
  8453. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8454. break 2
  8455. fi
  8456. done
  8457. done
  8458. IFS=$as_save_IFS
  8459. fi
  8460. fi
  8461. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  8462. if test -n "$ac_ct_AR"; then
  8463. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  8464. printf "%s\n" "$ac_ct_AR" >&6; }
  8465. else
  8466. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8467. printf "%s\n" "no" >&6; }
  8468. fi
  8469. test -n "$ac_ct_AR" && break
  8470. done
  8471. if test "x$ac_ct_AR" = x; then
  8472. AR="false"
  8473. else
  8474. case $cross_compiling:$ac_tool_warned in
  8475. yes:)
  8476. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8477. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8478. ac_tool_warned=yes ;;
  8479. esac
  8480. AR=$ac_ct_AR
  8481. fi
  8482. fi
  8483. : ${AR=ar}
  8484. # Use ARFLAGS variable as AR's operation code to sync the variable naming with
  8485. # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
  8486. # higher priority because thats what people were doing historically (setting
  8487. # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
  8488. # variable obsoleted/removed.
  8489. test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
  8490. lt_ar_flags=$AR_FLAGS
  8491. # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
  8492. # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
  8493. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  8494. printf %s "checking for archiver @FILE support... " >&6; }
  8495. if test ${lt_cv_ar_at_file+y}
  8496. then :
  8497. printf %s "(cached) " >&6
  8498. else $as_nop
  8499. lt_cv_ar_at_file=no
  8500. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8501. /* end confdefs.h. */
  8502. int main (void)
  8503. {
  8504. ;
  8505. return 0;
  8506. }
  8507. _ACEOF
  8508. if ac_fn_c_try_compile "$LINENO"
  8509. then :
  8510. echo conftest.$ac_objext > conftest.lst
  8511. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  8512. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  8513. (eval $lt_ar_try) 2>&5
  8514. ac_status=$?
  8515. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8516. test $ac_status = 0; }
  8517. if test 0 -eq "$ac_status"; then
  8518. # Ensure the archiver fails upon bogus file names.
  8519. rm -f conftest.$ac_objext libconftest.a
  8520. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  8521. (eval $lt_ar_try) 2>&5
  8522. ac_status=$?
  8523. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8524. test $ac_status = 0; }
  8525. if test 0 -ne "$ac_status"; then
  8526. lt_cv_ar_at_file=@
  8527. fi
  8528. fi
  8529. rm -f conftest.* libconftest.a
  8530. fi
  8531. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  8532. fi
  8533. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  8534. printf "%s\n" "$lt_cv_ar_at_file" >&6; }
  8535. if test no = "$lt_cv_ar_at_file"; then
  8536. archiver_list_spec=
  8537. else
  8538. archiver_list_spec=$lt_cv_ar_at_file
  8539. fi
  8540. if test -n "$ac_tool_prefix"; then
  8541. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  8542. set dummy ${ac_tool_prefix}strip; ac_word=$2
  8543. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8544. printf %s "checking for $ac_word... " >&6; }
  8545. if test ${ac_cv_prog_STRIP+y}
  8546. then :
  8547. printf %s "(cached) " >&6
  8548. else $as_nop
  8549. if test -n "$STRIP"; then
  8550. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  8551. else
  8552. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8553. for as_dir in $PATH
  8554. do
  8555. IFS=$as_save_IFS
  8556. case $as_dir in #(((
  8557. '') as_dir=./ ;;
  8558. */) ;;
  8559. *) as_dir=$as_dir/ ;;
  8560. esac
  8561. for ac_exec_ext in '' $ac_executable_extensions; do
  8562. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8563. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  8564. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8565. break 2
  8566. fi
  8567. done
  8568. done
  8569. IFS=$as_save_IFS
  8570. fi
  8571. fi
  8572. STRIP=$ac_cv_prog_STRIP
  8573. if test -n "$STRIP"; then
  8574. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  8575. printf "%s\n" "$STRIP" >&6; }
  8576. else
  8577. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8578. printf "%s\n" "no" >&6; }
  8579. fi
  8580. fi
  8581. if test -z "$ac_cv_prog_STRIP"; then
  8582. ac_ct_STRIP=$STRIP
  8583. # Extract the first word of "strip", so it can be a program name with args.
  8584. set dummy strip; ac_word=$2
  8585. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8586. printf %s "checking for $ac_word... " >&6; }
  8587. if test ${ac_cv_prog_ac_ct_STRIP+y}
  8588. then :
  8589. printf %s "(cached) " >&6
  8590. else $as_nop
  8591. if test -n "$ac_ct_STRIP"; then
  8592. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  8593. else
  8594. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8595. for as_dir in $PATH
  8596. do
  8597. IFS=$as_save_IFS
  8598. case $as_dir in #(((
  8599. '') as_dir=./ ;;
  8600. */) ;;
  8601. *) as_dir=$as_dir/ ;;
  8602. esac
  8603. for ac_exec_ext in '' $ac_executable_extensions; do
  8604. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8605. ac_cv_prog_ac_ct_STRIP="strip"
  8606. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8607. break 2
  8608. fi
  8609. done
  8610. done
  8611. IFS=$as_save_IFS
  8612. fi
  8613. fi
  8614. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  8615. if test -n "$ac_ct_STRIP"; then
  8616. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  8617. printf "%s\n" "$ac_ct_STRIP" >&6; }
  8618. else
  8619. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8620. printf "%s\n" "no" >&6; }
  8621. fi
  8622. if test "x$ac_ct_STRIP" = x; then
  8623. STRIP=":"
  8624. else
  8625. case $cross_compiling:$ac_tool_warned in
  8626. yes:)
  8627. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8628. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8629. ac_tool_warned=yes ;;
  8630. esac
  8631. STRIP=$ac_ct_STRIP
  8632. fi
  8633. else
  8634. STRIP="$ac_cv_prog_STRIP"
  8635. fi
  8636. test -z "$STRIP" && STRIP=:
  8637. if test -n "$ac_tool_prefix"; then
  8638. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  8639. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  8640. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8641. printf %s "checking for $ac_word... " >&6; }
  8642. if test ${ac_cv_prog_RANLIB+y}
  8643. then :
  8644. printf %s "(cached) " >&6
  8645. else $as_nop
  8646. if test -n "$RANLIB"; then
  8647. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  8648. else
  8649. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8650. for as_dir in $PATH
  8651. do
  8652. IFS=$as_save_IFS
  8653. case $as_dir in #(((
  8654. '') as_dir=./ ;;
  8655. */) ;;
  8656. *) as_dir=$as_dir/ ;;
  8657. esac
  8658. for ac_exec_ext in '' $ac_executable_extensions; do
  8659. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8660. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  8661. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8662. break 2
  8663. fi
  8664. done
  8665. done
  8666. IFS=$as_save_IFS
  8667. fi
  8668. fi
  8669. RANLIB=$ac_cv_prog_RANLIB
  8670. if test -n "$RANLIB"; then
  8671. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  8672. printf "%s\n" "$RANLIB" >&6; }
  8673. else
  8674. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8675. printf "%s\n" "no" >&6; }
  8676. fi
  8677. fi
  8678. if test -z "$ac_cv_prog_RANLIB"; then
  8679. ac_ct_RANLIB=$RANLIB
  8680. # Extract the first word of "ranlib", so it can be a program name with args.
  8681. set dummy ranlib; ac_word=$2
  8682. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8683. printf %s "checking for $ac_word... " >&6; }
  8684. if test ${ac_cv_prog_ac_ct_RANLIB+y}
  8685. then :
  8686. printf %s "(cached) " >&6
  8687. else $as_nop
  8688. if test -n "$ac_ct_RANLIB"; then
  8689. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  8690. else
  8691. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8692. for as_dir in $PATH
  8693. do
  8694. IFS=$as_save_IFS
  8695. case $as_dir in #(((
  8696. '') as_dir=./ ;;
  8697. */) ;;
  8698. *) as_dir=$as_dir/ ;;
  8699. esac
  8700. for ac_exec_ext in '' $ac_executable_extensions; do
  8701. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8702. ac_cv_prog_ac_ct_RANLIB="ranlib"
  8703. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8704. break 2
  8705. fi
  8706. done
  8707. done
  8708. IFS=$as_save_IFS
  8709. fi
  8710. fi
  8711. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  8712. if test -n "$ac_ct_RANLIB"; then
  8713. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  8714. printf "%s\n" "$ac_ct_RANLIB" >&6; }
  8715. else
  8716. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8717. printf "%s\n" "no" >&6; }
  8718. fi
  8719. if test "x$ac_ct_RANLIB" = x; then
  8720. RANLIB=":"
  8721. else
  8722. case $cross_compiling:$ac_tool_warned in
  8723. yes:)
  8724. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8725. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8726. ac_tool_warned=yes ;;
  8727. esac
  8728. RANLIB=$ac_ct_RANLIB
  8729. fi
  8730. else
  8731. RANLIB="$ac_cv_prog_RANLIB"
  8732. fi
  8733. test -z "$RANLIB" && RANLIB=:
  8734. # Determine commands to create old-style static archives.
  8735. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  8736. old_postinstall_cmds='chmod 644 $oldlib'
  8737. old_postuninstall_cmds=
  8738. if test -n "$RANLIB"; then
  8739. case $host_os in
  8740. bitrig* | openbsd*)
  8741. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  8742. ;;
  8743. *)
  8744. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  8745. ;;
  8746. esac
  8747. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  8748. fi
  8749. case $host_os in
  8750. darwin*)
  8751. lock_old_archive_extraction=yes ;;
  8752. *)
  8753. lock_old_archive_extraction=no ;;
  8754. esac
  8755. # If no C compiler was specified, use CC.
  8756. LTCC=${LTCC-"$CC"}
  8757. # If no C compiler flags were specified, use CFLAGS.
  8758. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  8759. # Allow CC to be a program name with arguments.
  8760. compiler=$CC
  8761. # Check for command to grab the raw symbol name followed by C symbol from nm.
  8762. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  8763. printf %s "checking command to parse $NM output from $compiler object... " >&6; }
  8764. if test ${lt_cv_sys_global_symbol_pipe+y}
  8765. then :
  8766. printf %s "(cached) " >&6
  8767. else $as_nop
  8768. # These are sane defaults that work on at least a few old systems.
  8769. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  8770. # Character class describing NM global symbol codes.
  8771. symcode='[BCDEGRST]'
  8772. # Regexp to match symbols that can be accessed directly from C.
  8773. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  8774. # Define system-specific variables.
  8775. case $host_os in
  8776. aix*)
  8777. symcode='[BCDT]'
  8778. ;;
  8779. cygwin* | mingw* | pw32* | cegcc*)
  8780. symcode='[ABCDGISTW]'
  8781. ;;
  8782. hpux*)
  8783. if test ia64 = "$host_cpu"; then
  8784. symcode='[ABCDEGRST]'
  8785. fi
  8786. ;;
  8787. irix* | nonstopux*)
  8788. symcode='[BCDEGRST]'
  8789. ;;
  8790. osf*)
  8791. symcode='[BCDEGQRST]'
  8792. ;;
  8793. solaris*)
  8794. symcode='[BDRT]'
  8795. ;;
  8796. sco3.2v5*)
  8797. symcode='[DT]'
  8798. ;;
  8799. sysv4.2uw2*)
  8800. symcode='[DT]'
  8801. ;;
  8802. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  8803. symcode='[ABDT]'
  8804. ;;
  8805. sysv4)
  8806. symcode='[DFNSTU]'
  8807. ;;
  8808. esac
  8809. # If we're using GNU nm, then use its standard symbol codes.
  8810. case `$NM -V 2>&1` in
  8811. *GNU* | *'with BFD'*)
  8812. symcode='[ABCDGIRSTW]' ;;
  8813. esac
  8814. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  8815. # Gets list of data symbols to import.
  8816. lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
  8817. # Adjust the below global symbol transforms to fixup imported variables.
  8818. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  8819. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  8820. lt_c_name_lib_hook="\
  8821. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  8822. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  8823. else
  8824. # Disable hooks by default.
  8825. lt_cv_sys_global_symbol_to_import=
  8826. lt_cdecl_hook=
  8827. lt_c_name_hook=
  8828. lt_c_name_lib_hook=
  8829. fi
  8830. # Transform an extracted symbol line into a proper C declaration.
  8831. # Some systems (esp. on ia64) link data and code symbols differently,
  8832. # so use this general approach.
  8833. lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
  8834. $lt_cdecl_hook\
  8835. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  8836. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  8837. # Transform an extracted symbol line into symbol name and symbol address
  8838. lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
  8839. $lt_c_name_hook\
  8840. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  8841. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  8842. # Transform an extracted symbol line into symbol name with lib prefix and
  8843. # symbol address.
  8844. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
  8845. $lt_c_name_lib_hook\
  8846. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  8847. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  8848. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  8849. # Handle CRLF in mingw tool chain
  8850. opt_cr=
  8851. case $build_os in
  8852. mingw*)
  8853. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  8854. ;;
  8855. esac
  8856. # Try without a prefix underscore, then with it.
  8857. for ac_symprfx in "" "_"; do
  8858. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  8859. symxfrm="\\1 $ac_symprfx\\2 \\2"
  8860. # Write the raw and C identifiers.
  8861. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  8862. # Fake it for dumpbin and say T for any non-static function,
  8863. # D for any global variable and I for any imported variable.
  8864. # Also find C++ and __fastcall symbols from MSVC++ or ICC,
  8865. # which start with @ or ?.
  8866. lt_cv_sys_global_symbol_pipe="$AWK '"\
  8867. " {last_section=section; section=\$ 3};"\
  8868. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  8869. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  8870. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  8871. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  8872. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  8873. " \$ 0!~/External *\|/{next};"\
  8874. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  8875. " {if(hide[section]) next};"\
  8876. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  8877. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  8878. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  8879. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  8880. " ' prfx=^$ac_symprfx"
  8881. else
  8882. lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  8883. fi
  8884. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
  8885. # Check to see that the pipe works correctly.
  8886. pipe_works=no
  8887. rm -f conftest*
  8888. cat > conftest.$ac_ext <<_LT_EOF
  8889. #ifdef __cplusplus
  8890. extern "C" {
  8891. #endif
  8892. char nm_test_var;
  8893. void nm_test_func(void);
  8894. void nm_test_func(void){}
  8895. #ifdef __cplusplus
  8896. }
  8897. #endif
  8898. int main(){nm_test_var='a';nm_test_func();return(0);}
  8899. _LT_EOF
  8900. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8901. (eval $ac_compile) 2>&5
  8902. ac_status=$?
  8903. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8904. test $ac_status = 0; }; then
  8905. # Now try to grab the symbols.
  8906. nlist=conftest.nm
  8907. $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
  8908. if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
  8909. # Try sorting and uniquifying the output.
  8910. if sort "$nlist" | uniq > "$nlist"T; then
  8911. mv -f "$nlist"T "$nlist"
  8912. else
  8913. rm -f "$nlist"T
  8914. fi
  8915. # Make sure that we snagged all the symbols we need.
  8916. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  8917. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  8918. cat <<_LT_EOF > conftest.$ac_ext
  8919. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  8920. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  8921. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  8922. relocations are performed -- see ld's documentation on pseudo-relocs. */
  8923. # define LT_DLSYM_CONST
  8924. #elif defined __osf__
  8925. /* This system does not cope well with relocations in const data. */
  8926. # define LT_DLSYM_CONST
  8927. #else
  8928. # define LT_DLSYM_CONST const
  8929. #endif
  8930. #ifdef __cplusplus
  8931. extern "C" {
  8932. #endif
  8933. _LT_EOF
  8934. # Now generate the symbol file.
  8935. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  8936. cat <<_LT_EOF >> conftest.$ac_ext
  8937. /* The mapping between symbol names and symbols. */
  8938. LT_DLSYM_CONST struct {
  8939. const char *name;
  8940. void *address;
  8941. }
  8942. lt__PROGRAM__LTX_preloaded_symbols[] =
  8943. {
  8944. { "@PROGRAM@", (void *) 0 },
  8945. _LT_EOF
  8946. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  8947. cat <<\_LT_EOF >> conftest.$ac_ext
  8948. {0, (void *) 0}
  8949. };
  8950. /* This works around a problem in FreeBSD linker */
  8951. #ifdef FREEBSD_WORKAROUND
  8952. static const void *lt_preloaded_setup() {
  8953. return lt__PROGRAM__LTX_preloaded_symbols;
  8954. }
  8955. #endif
  8956. #ifdef __cplusplus
  8957. }
  8958. #endif
  8959. _LT_EOF
  8960. # Now try linking the two files.
  8961. mv conftest.$ac_objext conftstm.$ac_objext
  8962. lt_globsym_save_LIBS=$LIBS
  8963. lt_globsym_save_CFLAGS=$CFLAGS
  8964. LIBS=conftstm.$ac_objext
  8965. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  8966. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  8967. (eval $ac_link) 2>&5
  8968. ac_status=$?
  8969. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8970. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  8971. pipe_works=yes
  8972. fi
  8973. LIBS=$lt_globsym_save_LIBS
  8974. CFLAGS=$lt_globsym_save_CFLAGS
  8975. else
  8976. echo "cannot find nm_test_func in $nlist" >&5
  8977. fi
  8978. else
  8979. echo "cannot find nm_test_var in $nlist" >&5
  8980. fi
  8981. else
  8982. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  8983. fi
  8984. else
  8985. echo "$progname: failed program was:" >&5
  8986. cat conftest.$ac_ext >&5
  8987. fi
  8988. rm -rf conftest* conftst*
  8989. # Do not use the global_symbol_pipe unless it works.
  8990. if test yes = "$pipe_works"; then
  8991. break
  8992. else
  8993. lt_cv_sys_global_symbol_pipe=
  8994. fi
  8995. done
  8996. fi
  8997. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  8998. lt_cv_sys_global_symbol_to_cdecl=
  8999. fi
  9000. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  9001. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  9002. printf "%s\n" "failed" >&6; }
  9003. else
  9004. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  9005. printf "%s\n" "ok" >&6; }
  9006. fi
  9007. # Response file support.
  9008. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  9009. nm_file_list_spec='@'
  9010. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  9011. nm_file_list_spec='@'
  9012. fi
  9013. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  9014. printf %s "checking for sysroot... " >&6; }
  9015. # Check whether --with-sysroot was given.
  9016. if test ${with_sysroot+y}
  9017. then :
  9018. withval=$with_sysroot;
  9019. else $as_nop
  9020. with_sysroot=no
  9021. fi
  9022. lt_sysroot=
  9023. case $with_sysroot in #(
  9024. yes)
  9025. if test yes = "$GCC"; then
  9026. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  9027. fi
  9028. ;; #(
  9029. /*)
  9030. lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
  9031. ;; #(
  9032. no|'')
  9033. ;; #(
  9034. *)
  9035. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  9036. printf "%s\n" "$with_sysroot" >&6; }
  9037. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  9038. ;;
  9039. esac
  9040. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  9041. printf "%s\n" "${lt_sysroot:-no}" >&6; }
  9042. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  9043. printf %s "checking for a working dd... " >&6; }
  9044. if test ${ac_cv_path_lt_DD+y}
  9045. then :
  9046. printf %s "(cached) " >&6
  9047. else $as_nop
  9048. printf 0123456789abcdef0123456789abcdef >conftest.i
  9049. cat conftest.i conftest.i >conftest2.i
  9050. : ${lt_DD:=$DD}
  9051. if test -z "$lt_DD"; then
  9052. ac_path_lt_DD_found=false
  9053. # Loop through the user's path and test for each of PROGNAME-LIST
  9054. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9055. for as_dir in $PATH
  9056. do
  9057. IFS=$as_save_IFS
  9058. case $as_dir in #(((
  9059. '') as_dir=./ ;;
  9060. */) ;;
  9061. *) as_dir=$as_dir/ ;;
  9062. esac
  9063. for ac_prog in dd
  9064. do
  9065. for ac_exec_ext in '' $ac_executable_extensions; do
  9066. ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
  9067. as_fn_executable_p "$ac_path_lt_DD" || continue
  9068. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  9069. cmp -s conftest.i conftest.out \
  9070. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  9071. fi
  9072. $ac_path_lt_DD_found && break 3
  9073. done
  9074. done
  9075. done
  9076. IFS=$as_save_IFS
  9077. if test -z "$ac_cv_path_lt_DD"; then
  9078. :
  9079. fi
  9080. else
  9081. ac_cv_path_lt_DD=$lt_DD
  9082. fi
  9083. rm -f conftest.i conftest2.i conftest.out
  9084. fi
  9085. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  9086. printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
  9087. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  9088. printf %s "checking how to truncate binary pipes... " >&6; }
  9089. if test ${lt_cv_truncate_bin+y}
  9090. then :
  9091. printf %s "(cached) " >&6
  9092. else $as_nop
  9093. printf 0123456789abcdef0123456789abcdef >conftest.i
  9094. cat conftest.i conftest.i >conftest2.i
  9095. lt_cv_truncate_bin=
  9096. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  9097. cmp -s conftest.i conftest.out \
  9098. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  9099. fi
  9100. rm -f conftest.i conftest2.i conftest.out
  9101. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  9102. fi
  9103. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  9104. printf "%s\n" "$lt_cv_truncate_bin" >&6; }
  9105. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  9106. func_cc_basename ()
  9107. {
  9108. for cc_temp in $*""; do
  9109. case $cc_temp in
  9110. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  9111. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  9112. \-*) ;;
  9113. *) break;;
  9114. esac
  9115. done
  9116. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  9117. }
  9118. # Check whether --enable-libtool-lock was given.
  9119. if test ${enable_libtool_lock+y}
  9120. then :
  9121. enableval=$enable_libtool_lock;
  9122. fi
  9123. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  9124. # Some flags need to be propagated to the compiler or linker for good
  9125. # libtool support.
  9126. case $host in
  9127. ia64-*-hpux*)
  9128. # Find out what ABI is being produced by ac_compile, and set mode
  9129. # options accordingly.
  9130. echo 'int i;' > conftest.$ac_ext
  9131. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9132. (eval $ac_compile) 2>&5
  9133. ac_status=$?
  9134. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9135. test $ac_status = 0; }; then
  9136. case `$FILECMD conftest.$ac_objext` in
  9137. *ELF-32*)
  9138. HPUX_IA64_MODE=32
  9139. ;;
  9140. *ELF-64*)
  9141. HPUX_IA64_MODE=64
  9142. ;;
  9143. esac
  9144. fi
  9145. rm -rf conftest*
  9146. ;;
  9147. *-*-irix6*)
  9148. # Find out what ABI is being produced by ac_compile, and set linker
  9149. # options accordingly.
  9150. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  9151. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9152. (eval $ac_compile) 2>&5
  9153. ac_status=$?
  9154. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9155. test $ac_status = 0; }; then
  9156. if test yes = "$lt_cv_prog_gnu_ld"; then
  9157. case `$FILECMD conftest.$ac_objext` in
  9158. *32-bit*)
  9159. LD="${LD-ld} -melf32bsmip"
  9160. ;;
  9161. *N32*)
  9162. LD="${LD-ld} -melf32bmipn32"
  9163. ;;
  9164. *64-bit*)
  9165. LD="${LD-ld} -melf64bmip"
  9166. ;;
  9167. esac
  9168. else
  9169. case `$FILECMD conftest.$ac_objext` in
  9170. *32-bit*)
  9171. LD="${LD-ld} -32"
  9172. ;;
  9173. *N32*)
  9174. LD="${LD-ld} -n32"
  9175. ;;
  9176. *64-bit*)
  9177. LD="${LD-ld} -64"
  9178. ;;
  9179. esac
  9180. fi
  9181. fi
  9182. rm -rf conftest*
  9183. ;;
  9184. mips64*-*linux*)
  9185. # Find out what ABI is being produced by ac_compile, and set linker
  9186. # options accordingly.
  9187. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  9188. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9189. (eval $ac_compile) 2>&5
  9190. ac_status=$?
  9191. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9192. test $ac_status = 0; }; then
  9193. emul=elf
  9194. case `$FILECMD conftest.$ac_objext` in
  9195. *32-bit*)
  9196. emul="${emul}32"
  9197. ;;
  9198. *64-bit*)
  9199. emul="${emul}64"
  9200. ;;
  9201. esac
  9202. case `$FILECMD conftest.$ac_objext` in
  9203. *MSB*)
  9204. emul="${emul}btsmip"
  9205. ;;
  9206. *LSB*)
  9207. emul="${emul}ltsmip"
  9208. ;;
  9209. esac
  9210. case `$FILECMD conftest.$ac_objext` in
  9211. *N32*)
  9212. emul="${emul}n32"
  9213. ;;
  9214. esac
  9215. LD="${LD-ld} -m $emul"
  9216. fi
  9217. rm -rf conftest*
  9218. ;;
  9219. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  9220. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  9221. # Find out what ABI is being produced by ac_compile, and set linker
  9222. # options accordingly. Note that the listed cases only cover the
  9223. # situations where additional linker options are needed (such as when
  9224. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  9225. # vice versa); the common cases where no linker options are needed do
  9226. # not appear in the list.
  9227. echo 'int i;' > conftest.$ac_ext
  9228. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9229. (eval $ac_compile) 2>&5
  9230. ac_status=$?
  9231. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9232. test $ac_status = 0; }; then
  9233. case `$FILECMD conftest.o` in
  9234. *32-bit*)
  9235. case $host in
  9236. x86_64-*kfreebsd*-gnu)
  9237. LD="${LD-ld} -m elf_i386_fbsd"
  9238. ;;
  9239. x86_64-*linux*)
  9240. case `$FILECMD conftest.o` in
  9241. *x86-64*)
  9242. LD="${LD-ld} -m elf32_x86_64"
  9243. ;;
  9244. *)
  9245. LD="${LD-ld} -m elf_i386"
  9246. ;;
  9247. esac
  9248. ;;
  9249. powerpc64le-*linux*)
  9250. LD="${LD-ld} -m elf32lppclinux"
  9251. ;;
  9252. powerpc64-*linux*)
  9253. LD="${LD-ld} -m elf32ppclinux"
  9254. ;;
  9255. s390x-*linux*)
  9256. LD="${LD-ld} -m elf_s390"
  9257. ;;
  9258. sparc64-*linux*)
  9259. LD="${LD-ld} -m elf32_sparc"
  9260. ;;
  9261. esac
  9262. ;;
  9263. *64-bit*)
  9264. case $host in
  9265. x86_64-*kfreebsd*-gnu)
  9266. LD="${LD-ld} -m elf_x86_64_fbsd"
  9267. ;;
  9268. x86_64-*linux*)
  9269. LD="${LD-ld} -m elf_x86_64"
  9270. ;;
  9271. powerpcle-*linux*)
  9272. LD="${LD-ld} -m elf64lppc"
  9273. ;;
  9274. powerpc-*linux*)
  9275. LD="${LD-ld} -m elf64ppc"
  9276. ;;
  9277. s390*-*linux*|s390*-*tpf*)
  9278. LD="${LD-ld} -m elf64_s390"
  9279. ;;
  9280. sparc*-*linux*)
  9281. LD="${LD-ld} -m elf64_sparc"
  9282. ;;
  9283. esac
  9284. ;;
  9285. esac
  9286. fi
  9287. rm -rf conftest*
  9288. ;;
  9289. *-*-sco3.2v5*)
  9290. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  9291. SAVE_CFLAGS=$CFLAGS
  9292. CFLAGS="$CFLAGS -belf"
  9293. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  9294. printf %s "checking whether the C compiler needs -belf... " >&6; }
  9295. if test ${lt_cv_cc_needs_belf+y}
  9296. then :
  9297. printf %s "(cached) " >&6
  9298. else $as_nop
  9299. ac_ext=c
  9300. ac_cpp='$CPP $CPPFLAGS'
  9301. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9302. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9303. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9304. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9305. /* end confdefs.h. */
  9306. int main (void)
  9307. {
  9308. ;
  9309. return 0;
  9310. }
  9311. _ACEOF
  9312. if ac_fn_c_try_link "$LINENO"
  9313. then :
  9314. lt_cv_cc_needs_belf=yes
  9315. else $as_nop
  9316. lt_cv_cc_needs_belf=no
  9317. fi
  9318. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9319. conftest$ac_exeext conftest.$ac_ext
  9320. ac_ext=c
  9321. ac_cpp='$CPP $CPPFLAGS'
  9322. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9323. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9324. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9325. fi
  9326. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  9327. printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
  9328. if test yes != "$lt_cv_cc_needs_belf"; then
  9329. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  9330. CFLAGS=$SAVE_CFLAGS
  9331. fi
  9332. ;;
  9333. *-*solaris*)
  9334. # Find out what ABI is being produced by ac_compile, and set linker
  9335. # options accordingly.
  9336. echo 'int i;' > conftest.$ac_ext
  9337. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9338. (eval $ac_compile) 2>&5
  9339. ac_status=$?
  9340. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9341. test $ac_status = 0; }; then
  9342. case `$FILECMD conftest.o` in
  9343. *64-bit*)
  9344. case $lt_cv_prog_gnu_ld in
  9345. yes*)
  9346. case $host in
  9347. i?86-*-solaris*|x86_64-*-solaris*)
  9348. LD="${LD-ld} -m elf_x86_64"
  9349. ;;
  9350. sparc*-*-solaris*)
  9351. LD="${LD-ld} -m elf64_sparc"
  9352. ;;
  9353. esac
  9354. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  9355. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  9356. LD=${LD-ld}_sol2
  9357. fi
  9358. ;;
  9359. *)
  9360. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  9361. LD="${LD-ld} -64"
  9362. fi
  9363. ;;
  9364. esac
  9365. ;;
  9366. esac
  9367. fi
  9368. rm -rf conftest*
  9369. ;;
  9370. esac
  9371. need_locks=$enable_libtool_lock
  9372. if test -n "$ac_tool_prefix"; then
  9373. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  9374. set dummy ${ac_tool_prefix}mt; ac_word=$2
  9375. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9376. printf %s "checking for $ac_word... " >&6; }
  9377. if test ${ac_cv_prog_MANIFEST_TOOL+y}
  9378. then :
  9379. printf %s "(cached) " >&6
  9380. else $as_nop
  9381. if test -n "$MANIFEST_TOOL"; then
  9382. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  9383. else
  9384. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9385. for as_dir in $PATH
  9386. do
  9387. IFS=$as_save_IFS
  9388. case $as_dir in #(((
  9389. '') as_dir=./ ;;
  9390. */) ;;
  9391. *) as_dir=$as_dir/ ;;
  9392. esac
  9393. for ac_exec_ext in '' $ac_executable_extensions; do
  9394. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  9395. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  9396. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  9397. break 2
  9398. fi
  9399. done
  9400. done
  9401. IFS=$as_save_IFS
  9402. fi
  9403. fi
  9404. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  9405. if test -n "$MANIFEST_TOOL"; then
  9406. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  9407. printf "%s\n" "$MANIFEST_TOOL" >&6; }
  9408. else
  9409. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9410. printf "%s\n" "no" >&6; }
  9411. fi
  9412. fi
  9413. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  9414. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  9415. # Extract the first word of "mt", so it can be a program name with args.
  9416. set dummy mt; ac_word=$2
  9417. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9418. printf %s "checking for $ac_word... " >&6; }
  9419. if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
  9420. then :
  9421. printf %s "(cached) " >&6
  9422. else $as_nop
  9423. if test -n "$ac_ct_MANIFEST_TOOL"; then
  9424. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  9425. else
  9426. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9427. for as_dir in $PATH
  9428. do
  9429. IFS=$as_save_IFS
  9430. case $as_dir in #(((
  9431. '') as_dir=./ ;;
  9432. */) ;;
  9433. *) as_dir=$as_dir/ ;;
  9434. esac
  9435. for ac_exec_ext in '' $ac_executable_extensions; do
  9436. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  9437. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  9438. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  9439. break 2
  9440. fi
  9441. done
  9442. done
  9443. IFS=$as_save_IFS
  9444. fi
  9445. fi
  9446. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  9447. if test -n "$ac_ct_MANIFEST_TOOL"; then
  9448. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  9449. printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
  9450. else
  9451. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9452. printf "%s\n" "no" >&6; }
  9453. fi
  9454. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  9455. MANIFEST_TOOL=":"
  9456. else
  9457. case $cross_compiling:$ac_tool_warned in
  9458. yes:)
  9459. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9460. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9461. ac_tool_warned=yes ;;
  9462. esac
  9463. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  9464. fi
  9465. else
  9466. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  9467. fi
  9468. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  9469. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  9470. printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  9471. if test ${lt_cv_path_mainfest_tool+y}
  9472. then :
  9473. printf %s "(cached) " >&6
  9474. else $as_nop
  9475. lt_cv_path_mainfest_tool=no
  9476. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  9477. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  9478. cat conftest.err >&5
  9479. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  9480. lt_cv_path_mainfest_tool=yes
  9481. fi
  9482. rm -f conftest*
  9483. fi
  9484. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  9485. printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
  9486. if test yes != "$lt_cv_path_mainfest_tool"; then
  9487. MANIFEST_TOOL=:
  9488. fi
  9489. case $host_os in
  9490. rhapsody* | darwin*)
  9491. if test -n "$ac_tool_prefix"; then
  9492. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  9493. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  9494. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9495. printf %s "checking for $ac_word... " >&6; }
  9496. if test ${ac_cv_prog_DSYMUTIL+y}
  9497. then :
  9498. printf %s "(cached) " >&6
  9499. else $as_nop
  9500. if test -n "$DSYMUTIL"; then
  9501. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  9502. else
  9503. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9504. for as_dir in $PATH
  9505. do
  9506. IFS=$as_save_IFS
  9507. case $as_dir in #(((
  9508. '') as_dir=./ ;;
  9509. */) ;;
  9510. *) as_dir=$as_dir/ ;;
  9511. esac
  9512. for ac_exec_ext in '' $ac_executable_extensions; do
  9513. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  9514. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  9515. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  9516. break 2
  9517. fi
  9518. done
  9519. done
  9520. IFS=$as_save_IFS
  9521. fi
  9522. fi
  9523. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  9524. if test -n "$DSYMUTIL"; then
  9525. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  9526. printf "%s\n" "$DSYMUTIL" >&6; }
  9527. else
  9528. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9529. printf "%s\n" "no" >&6; }
  9530. fi
  9531. fi
  9532. if test -z "$ac_cv_prog_DSYMUTIL"; then
  9533. ac_ct_DSYMUTIL=$DSYMUTIL
  9534. # Extract the first word of "dsymutil", so it can be a program name with args.
  9535. set dummy dsymutil; ac_word=$2
  9536. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9537. printf %s "checking for $ac_word... " >&6; }
  9538. if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
  9539. then :
  9540. printf %s "(cached) " >&6
  9541. else $as_nop
  9542. if test -n "$ac_ct_DSYMUTIL"; then
  9543. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  9544. else
  9545. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9546. for as_dir in $PATH
  9547. do
  9548. IFS=$as_save_IFS
  9549. case $as_dir in #(((
  9550. '') as_dir=./ ;;
  9551. */) ;;
  9552. *) as_dir=$as_dir/ ;;
  9553. esac
  9554. for ac_exec_ext in '' $ac_executable_extensions; do
  9555. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  9556. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  9557. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  9558. break 2
  9559. fi
  9560. done
  9561. done
  9562. IFS=$as_save_IFS
  9563. fi
  9564. fi
  9565. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  9566. if test -n "$ac_ct_DSYMUTIL"; then
  9567. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  9568. printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
  9569. else
  9570. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9571. printf "%s\n" "no" >&6; }
  9572. fi
  9573. if test "x$ac_ct_DSYMUTIL" = x; then
  9574. DSYMUTIL=":"
  9575. else
  9576. case $cross_compiling:$ac_tool_warned in
  9577. yes:)
  9578. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9579. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9580. ac_tool_warned=yes ;;
  9581. esac
  9582. DSYMUTIL=$ac_ct_DSYMUTIL
  9583. fi
  9584. else
  9585. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  9586. fi
  9587. if test -n "$ac_tool_prefix"; then
  9588. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  9589. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  9590. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9591. printf %s "checking for $ac_word... " >&6; }
  9592. if test ${ac_cv_prog_NMEDIT+y}
  9593. then :
  9594. printf %s "(cached) " >&6
  9595. else $as_nop
  9596. if test -n "$NMEDIT"; then
  9597. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  9598. else
  9599. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9600. for as_dir in $PATH
  9601. do
  9602. IFS=$as_save_IFS
  9603. case $as_dir in #(((
  9604. '') as_dir=./ ;;
  9605. */) ;;
  9606. *) as_dir=$as_dir/ ;;
  9607. esac
  9608. for ac_exec_ext in '' $ac_executable_extensions; do
  9609. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  9610. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  9611. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  9612. break 2
  9613. fi
  9614. done
  9615. done
  9616. IFS=$as_save_IFS
  9617. fi
  9618. fi
  9619. NMEDIT=$ac_cv_prog_NMEDIT
  9620. if test -n "$NMEDIT"; then
  9621. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  9622. printf "%s\n" "$NMEDIT" >&6; }
  9623. else
  9624. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9625. printf "%s\n" "no" >&6; }
  9626. fi
  9627. fi
  9628. if test -z "$ac_cv_prog_NMEDIT"; then
  9629. ac_ct_NMEDIT=$NMEDIT
  9630. # Extract the first word of "nmedit", so it can be a program name with args.
  9631. set dummy nmedit; ac_word=$2
  9632. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9633. printf %s "checking for $ac_word... " >&6; }
  9634. if test ${ac_cv_prog_ac_ct_NMEDIT+y}
  9635. then :
  9636. printf %s "(cached) " >&6
  9637. else $as_nop
  9638. if test -n "$ac_ct_NMEDIT"; then
  9639. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  9640. else
  9641. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9642. for as_dir in $PATH
  9643. do
  9644. IFS=$as_save_IFS
  9645. case $as_dir in #(((
  9646. '') as_dir=./ ;;
  9647. */) ;;
  9648. *) as_dir=$as_dir/ ;;
  9649. esac
  9650. for ac_exec_ext in '' $ac_executable_extensions; do
  9651. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  9652. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  9653. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  9654. break 2
  9655. fi
  9656. done
  9657. done
  9658. IFS=$as_save_IFS
  9659. fi
  9660. fi
  9661. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  9662. if test -n "$ac_ct_NMEDIT"; then
  9663. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  9664. printf "%s\n" "$ac_ct_NMEDIT" >&6; }
  9665. else
  9666. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9667. printf "%s\n" "no" >&6; }
  9668. fi
  9669. if test "x$ac_ct_NMEDIT" = x; then
  9670. NMEDIT=":"
  9671. else
  9672. case $cross_compiling:$ac_tool_warned in
  9673. yes:)
  9674. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9675. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9676. ac_tool_warned=yes ;;
  9677. esac
  9678. NMEDIT=$ac_ct_NMEDIT
  9679. fi
  9680. else
  9681. NMEDIT="$ac_cv_prog_NMEDIT"
  9682. fi
  9683. if test -n "$ac_tool_prefix"; then
  9684. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  9685. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  9686. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9687. printf %s "checking for $ac_word... " >&6; }
  9688. if test ${ac_cv_prog_LIPO+y}
  9689. then :
  9690. printf %s "(cached) " >&6
  9691. else $as_nop
  9692. if test -n "$LIPO"; then
  9693. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  9694. else
  9695. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9696. for as_dir in $PATH
  9697. do
  9698. IFS=$as_save_IFS
  9699. case $as_dir in #(((
  9700. '') as_dir=./ ;;
  9701. */) ;;
  9702. *) as_dir=$as_dir/ ;;
  9703. esac
  9704. for ac_exec_ext in '' $ac_executable_extensions; do
  9705. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  9706. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  9707. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  9708. break 2
  9709. fi
  9710. done
  9711. done
  9712. IFS=$as_save_IFS
  9713. fi
  9714. fi
  9715. LIPO=$ac_cv_prog_LIPO
  9716. if test -n "$LIPO"; then
  9717. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  9718. printf "%s\n" "$LIPO" >&6; }
  9719. else
  9720. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9721. printf "%s\n" "no" >&6; }
  9722. fi
  9723. fi
  9724. if test -z "$ac_cv_prog_LIPO"; then
  9725. ac_ct_LIPO=$LIPO
  9726. # Extract the first word of "lipo", so it can be a program name with args.
  9727. set dummy lipo; ac_word=$2
  9728. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9729. printf %s "checking for $ac_word... " >&6; }
  9730. if test ${ac_cv_prog_ac_ct_LIPO+y}
  9731. then :
  9732. printf %s "(cached) " >&6
  9733. else $as_nop
  9734. if test -n "$ac_ct_LIPO"; then
  9735. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  9736. else
  9737. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9738. for as_dir in $PATH
  9739. do
  9740. IFS=$as_save_IFS
  9741. case $as_dir in #(((
  9742. '') as_dir=./ ;;
  9743. */) ;;
  9744. *) as_dir=$as_dir/ ;;
  9745. esac
  9746. for ac_exec_ext in '' $ac_executable_extensions; do
  9747. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  9748. ac_cv_prog_ac_ct_LIPO="lipo"
  9749. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  9750. break 2
  9751. fi
  9752. done
  9753. done
  9754. IFS=$as_save_IFS
  9755. fi
  9756. fi
  9757. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  9758. if test -n "$ac_ct_LIPO"; then
  9759. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  9760. printf "%s\n" "$ac_ct_LIPO" >&6; }
  9761. else
  9762. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9763. printf "%s\n" "no" >&6; }
  9764. fi
  9765. if test "x$ac_ct_LIPO" = x; then
  9766. LIPO=":"
  9767. else
  9768. case $cross_compiling:$ac_tool_warned in
  9769. yes:)
  9770. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9771. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9772. ac_tool_warned=yes ;;
  9773. esac
  9774. LIPO=$ac_ct_LIPO
  9775. fi
  9776. else
  9777. LIPO="$ac_cv_prog_LIPO"
  9778. fi
  9779. if test -n "$ac_tool_prefix"; then
  9780. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  9781. set dummy ${ac_tool_prefix}otool; ac_word=$2
  9782. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9783. printf %s "checking for $ac_word... " >&6; }
  9784. if test ${ac_cv_prog_OTOOL+y}
  9785. then :
  9786. printf %s "(cached) " >&6
  9787. else $as_nop
  9788. if test -n "$OTOOL"; then
  9789. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  9790. else
  9791. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9792. for as_dir in $PATH
  9793. do
  9794. IFS=$as_save_IFS
  9795. case $as_dir in #(((
  9796. '') as_dir=./ ;;
  9797. */) ;;
  9798. *) as_dir=$as_dir/ ;;
  9799. esac
  9800. for ac_exec_ext in '' $ac_executable_extensions; do
  9801. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  9802. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  9803. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  9804. break 2
  9805. fi
  9806. done
  9807. done
  9808. IFS=$as_save_IFS
  9809. fi
  9810. fi
  9811. OTOOL=$ac_cv_prog_OTOOL
  9812. if test -n "$OTOOL"; then
  9813. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  9814. printf "%s\n" "$OTOOL" >&6; }
  9815. else
  9816. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9817. printf "%s\n" "no" >&6; }
  9818. fi
  9819. fi
  9820. if test -z "$ac_cv_prog_OTOOL"; then
  9821. ac_ct_OTOOL=$OTOOL
  9822. # Extract the first word of "otool", so it can be a program name with args.
  9823. set dummy otool; ac_word=$2
  9824. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9825. printf %s "checking for $ac_word... " >&6; }
  9826. if test ${ac_cv_prog_ac_ct_OTOOL+y}
  9827. then :
  9828. printf %s "(cached) " >&6
  9829. else $as_nop
  9830. if test -n "$ac_ct_OTOOL"; then
  9831. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  9832. else
  9833. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9834. for as_dir in $PATH
  9835. do
  9836. IFS=$as_save_IFS
  9837. case $as_dir in #(((
  9838. '') as_dir=./ ;;
  9839. */) ;;
  9840. *) as_dir=$as_dir/ ;;
  9841. esac
  9842. for ac_exec_ext in '' $ac_executable_extensions; do
  9843. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  9844. ac_cv_prog_ac_ct_OTOOL="otool"
  9845. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  9846. break 2
  9847. fi
  9848. done
  9849. done
  9850. IFS=$as_save_IFS
  9851. fi
  9852. fi
  9853. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  9854. if test -n "$ac_ct_OTOOL"; then
  9855. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  9856. printf "%s\n" "$ac_ct_OTOOL" >&6; }
  9857. else
  9858. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9859. printf "%s\n" "no" >&6; }
  9860. fi
  9861. if test "x$ac_ct_OTOOL" = x; then
  9862. OTOOL=":"
  9863. else
  9864. case $cross_compiling:$ac_tool_warned in
  9865. yes:)
  9866. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9867. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9868. ac_tool_warned=yes ;;
  9869. esac
  9870. OTOOL=$ac_ct_OTOOL
  9871. fi
  9872. else
  9873. OTOOL="$ac_cv_prog_OTOOL"
  9874. fi
  9875. if test -n "$ac_tool_prefix"; then
  9876. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  9877. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  9878. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9879. printf %s "checking for $ac_word... " >&6; }
  9880. if test ${ac_cv_prog_OTOOL64+y}
  9881. then :
  9882. printf %s "(cached) " >&6
  9883. else $as_nop
  9884. if test -n "$OTOOL64"; then
  9885. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  9886. else
  9887. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9888. for as_dir in $PATH
  9889. do
  9890. IFS=$as_save_IFS
  9891. case $as_dir in #(((
  9892. '') as_dir=./ ;;
  9893. */) ;;
  9894. *) as_dir=$as_dir/ ;;
  9895. esac
  9896. for ac_exec_ext in '' $ac_executable_extensions; do
  9897. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  9898. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  9899. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  9900. break 2
  9901. fi
  9902. done
  9903. done
  9904. IFS=$as_save_IFS
  9905. fi
  9906. fi
  9907. OTOOL64=$ac_cv_prog_OTOOL64
  9908. if test -n "$OTOOL64"; then
  9909. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  9910. printf "%s\n" "$OTOOL64" >&6; }
  9911. else
  9912. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9913. printf "%s\n" "no" >&6; }
  9914. fi
  9915. fi
  9916. if test -z "$ac_cv_prog_OTOOL64"; then
  9917. ac_ct_OTOOL64=$OTOOL64
  9918. # Extract the first word of "otool64", so it can be a program name with args.
  9919. set dummy otool64; ac_word=$2
  9920. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9921. printf %s "checking for $ac_word... " >&6; }
  9922. if test ${ac_cv_prog_ac_ct_OTOOL64+y}
  9923. then :
  9924. printf %s "(cached) " >&6
  9925. else $as_nop
  9926. if test -n "$ac_ct_OTOOL64"; then
  9927. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  9928. else
  9929. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9930. for as_dir in $PATH
  9931. do
  9932. IFS=$as_save_IFS
  9933. case $as_dir in #(((
  9934. '') as_dir=./ ;;
  9935. */) ;;
  9936. *) as_dir=$as_dir/ ;;
  9937. esac
  9938. for ac_exec_ext in '' $ac_executable_extensions; do
  9939. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  9940. ac_cv_prog_ac_ct_OTOOL64="otool64"
  9941. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  9942. break 2
  9943. fi
  9944. done
  9945. done
  9946. IFS=$as_save_IFS
  9947. fi
  9948. fi
  9949. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  9950. if test -n "$ac_ct_OTOOL64"; then
  9951. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  9952. printf "%s\n" "$ac_ct_OTOOL64" >&6; }
  9953. else
  9954. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9955. printf "%s\n" "no" >&6; }
  9956. fi
  9957. if test "x$ac_ct_OTOOL64" = x; then
  9958. OTOOL64=":"
  9959. else
  9960. case $cross_compiling:$ac_tool_warned in
  9961. yes:)
  9962. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9963. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9964. ac_tool_warned=yes ;;
  9965. esac
  9966. OTOOL64=$ac_ct_OTOOL64
  9967. fi
  9968. else
  9969. OTOOL64="$ac_cv_prog_OTOOL64"
  9970. fi
  9971. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  9972. printf %s "checking for -single_module linker flag... " >&6; }
  9973. if test ${lt_cv_apple_cc_single_mod+y}
  9974. then :
  9975. printf %s "(cached) " >&6
  9976. else $as_nop
  9977. lt_cv_apple_cc_single_mod=no
  9978. if test -z "$LT_MULTI_MODULE"; then
  9979. # By default we will add the -single_module flag. You can override
  9980. # by either setting the environment variable LT_MULTI_MODULE
  9981. # non-empty at configure time, or by adding -multi_module to the
  9982. # link flags.
  9983. rm -rf libconftest.dylib*
  9984. echo "int foo(void){return 1;}" > conftest.c
  9985. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  9986. -dynamiclib -Wl,-single_module conftest.c" >&5
  9987. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  9988. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  9989. _lt_result=$?
  9990. # If there is a non-empty error log, and "single_module"
  9991. # appears in it, assume the flag caused a linker warning
  9992. if test -s conftest.err && $GREP single_module conftest.err; then
  9993. cat conftest.err >&5
  9994. # Otherwise, if the output was created with a 0 exit code from
  9995. # the compiler, it worked.
  9996. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  9997. lt_cv_apple_cc_single_mod=yes
  9998. else
  9999. cat conftest.err >&5
  10000. fi
  10001. rm -rf libconftest.dylib*
  10002. rm -f conftest.*
  10003. fi
  10004. fi
  10005. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  10006. printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
  10007. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  10008. printf %s "checking for -exported_symbols_list linker flag... " >&6; }
  10009. if test ${lt_cv_ld_exported_symbols_list+y}
  10010. then :
  10011. printf %s "(cached) " >&6
  10012. else $as_nop
  10013. lt_cv_ld_exported_symbols_list=no
  10014. save_LDFLAGS=$LDFLAGS
  10015. echo "_main" > conftest.sym
  10016. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  10017. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10018. /* end confdefs.h. */
  10019. int main (void)
  10020. {
  10021. ;
  10022. return 0;
  10023. }
  10024. _ACEOF
  10025. if ac_fn_c_try_link "$LINENO"
  10026. then :
  10027. lt_cv_ld_exported_symbols_list=yes
  10028. else $as_nop
  10029. lt_cv_ld_exported_symbols_list=no
  10030. fi
  10031. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10032. conftest$ac_exeext conftest.$ac_ext
  10033. LDFLAGS=$save_LDFLAGS
  10034. fi
  10035. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  10036. printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
  10037. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  10038. printf %s "checking for -force_load linker flag... " >&6; }
  10039. if test ${lt_cv_ld_force_load+y}
  10040. then :
  10041. printf %s "(cached) " >&6
  10042. else $as_nop
  10043. lt_cv_ld_force_load=no
  10044. cat > conftest.c << _LT_EOF
  10045. int forced_loaded() { return 2;}
  10046. _LT_EOF
  10047. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  10048. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  10049. echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
  10050. $AR $AR_FLAGS libconftest.a conftest.o 2>&5
  10051. echo "$RANLIB libconftest.a" >&5
  10052. $RANLIB libconftest.a 2>&5
  10053. cat > conftest.c << _LT_EOF
  10054. int main() { return 0;}
  10055. _LT_EOF
  10056. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  10057. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  10058. _lt_result=$?
  10059. if test -s conftest.err && $GREP force_load conftest.err; then
  10060. cat conftest.err >&5
  10061. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  10062. lt_cv_ld_force_load=yes
  10063. else
  10064. cat conftest.err >&5
  10065. fi
  10066. rm -f conftest.err libconftest.a conftest conftest.c
  10067. rm -rf conftest.dSYM
  10068. fi
  10069. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  10070. printf "%s\n" "$lt_cv_ld_force_load" >&6; }
  10071. case $host_os in
  10072. rhapsody* | darwin1.[012])
  10073. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  10074. darwin1.*)
  10075. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  10076. darwin*)
  10077. case $MACOSX_DEPLOYMENT_TARGET,$host in
  10078. 10.[012],*|,*powerpc*-darwin[5-8]*)
  10079. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  10080. *)
  10081. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  10082. esac
  10083. ;;
  10084. esac
  10085. if test yes = "$lt_cv_apple_cc_single_mod"; then
  10086. _lt_dar_single_mod='$single_module'
  10087. fi
  10088. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  10089. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  10090. else
  10091. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  10092. fi
  10093. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  10094. _lt_dsymutil='~$DSYMUTIL $lib || :'
  10095. else
  10096. _lt_dsymutil=
  10097. fi
  10098. ;;
  10099. esac
  10100. # func_munge_path_list VARIABLE PATH
  10101. # -----------------------------------
  10102. # VARIABLE is name of variable containing _space_ separated list of
  10103. # directories to be munged by the contents of PATH, which is string
  10104. # having a format:
  10105. # "DIR[:DIR]:"
  10106. # string "DIR[ DIR]" will be prepended to VARIABLE
  10107. # ":DIR[:DIR]"
  10108. # string "DIR[ DIR]" will be appended to VARIABLE
  10109. # "DIRP[:DIRP]::[DIRA:]DIRA"
  10110. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  10111. # "DIRA[ DIRA]" will be appended to VARIABLE
  10112. # "DIR[:DIR]"
  10113. # VARIABLE will be replaced by "DIR[ DIR]"
  10114. func_munge_path_list ()
  10115. {
  10116. case x$2 in
  10117. x)
  10118. ;;
  10119. *:)
  10120. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  10121. ;;
  10122. x:*)
  10123. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  10124. ;;
  10125. *::*)
  10126. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  10127. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  10128. ;;
  10129. *)
  10130. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  10131. ;;
  10132. esac
  10133. }
  10134. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  10135. "
  10136. if test "x$ac_cv_header_dlfcn_h" = xyes
  10137. then :
  10138. printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
  10139. fi
  10140. # ------------------------------------ #
  10141. # Determine libtool default behavior #
  10142. # ------------------------------------ #
  10143. #
  10144. # Default behavior is to enable shared and static libraries on systems
  10145. # where libtool knows how to build both library versions, and does not
  10146. # require separate configuration and build runs for each flavor.
  10147. #
  10148. xc_lt_want_enable_shared='yes'
  10149. xc_lt_want_enable_static='yes'
  10150. #
  10151. # User may have disabled shared or static libraries.
  10152. #
  10153. case "x$enable_shared" in # (
  10154. xno)
  10155. xc_lt_want_enable_shared='no'
  10156. ;;
  10157. esac
  10158. case "x$enable_static" in # (
  10159. xno)
  10160. xc_lt_want_enable_static='no'
  10161. ;;
  10162. esac
  10163. if test "x$xc_lt_want_enable_shared" = 'xno' &&
  10164. test "x$xc_lt_want_enable_static" = 'xno'; then
  10165. as_fn_error $? "can not disable shared and static libraries simultaneously" "$LINENO" 5
  10166. fi
  10167. #
  10168. # Default behavior on systems that require independent configuration
  10169. # and build runs for shared and static is to enable shared libraries
  10170. # and disable static ones. On these systems option '--disable-shared'
  10171. # must be used in order to build a proper static library.
  10172. #
  10173. if test "x$xc_lt_want_enable_shared" = 'xyes' &&
  10174. test "x$xc_lt_want_enable_static" = 'xyes'; then
  10175. case $host_os in # (
  10176. pw32* | cegcc* | os2* | aix*)
  10177. xc_lt_want_enable_static='no'
  10178. ;;
  10179. esac
  10180. fi
  10181. #
  10182. # Make libtool aware of current shared and static library preferences
  10183. # taking in account that, depending on host characteristics, libtool
  10184. # may modify these option preferences later in this configure script.
  10185. #
  10186. enable_shared=$xc_lt_want_enable_shared
  10187. enable_static=$xc_lt_want_enable_static
  10188. #
  10189. # Default behavior is to build PIC objects for shared libraries and
  10190. # non-PIC objects for static libraries.
  10191. #
  10192. xc_lt_want_with_pic='default'
  10193. #
  10194. # User may have specified PIC preference.
  10195. #
  10196. case "x$with_pic" in # ((
  10197. xno)
  10198. xc_lt_want_with_pic='no'
  10199. ;;
  10200. xyes)
  10201. xc_lt_want_with_pic='yes'
  10202. ;;
  10203. esac
  10204. #
  10205. # Default behavior on some systems where building a shared library out
  10206. # of non-PIC compiled objects will fail with following linker error
  10207. # "relocation R_X86_64_32 can not be used when making a shared object"
  10208. # is to build PIC objects even for static libraries. This behavior may
  10209. # be overridden using 'configure --disable-shared --without-pic'.
  10210. #
  10211. if test "x$xc_lt_want_with_pic" = 'xdefault'; then
  10212. case $host_cpu in # (
  10213. x86_64 | amd64 | ia64)
  10214. case $host_os in # (
  10215. linux* | freebsd* | midnightbsd*)
  10216. xc_lt_want_with_pic='yes'
  10217. ;;
  10218. esac
  10219. ;;
  10220. esac
  10221. fi
  10222. #
  10223. # Make libtool aware of current PIC preference taking in account that,
  10224. # depending on host characteristics, libtool may modify PIC default
  10225. # behavior to fit host system idiosyncrasies later in this script.
  10226. #
  10227. with_pic=$xc_lt_want_with_pic
  10228. ## ----------------------- ##
  10229. ## Start of libtool code ##
  10230. ## ----------------------- ##
  10231. # Set options
  10232. enable_win32_dll=yes
  10233. case $host in
  10234. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  10235. if test -n "$ac_tool_prefix"; then
  10236. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  10237. set dummy ${ac_tool_prefix}as; ac_word=$2
  10238. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10239. printf %s "checking for $ac_word... " >&6; }
  10240. if test ${ac_cv_prog_AS+y}
  10241. then :
  10242. printf %s "(cached) " >&6
  10243. else $as_nop
  10244. if test -n "$AS"; then
  10245. ac_cv_prog_AS="$AS" # Let the user override the test.
  10246. else
  10247. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10248. for as_dir in $PATH
  10249. do
  10250. IFS=$as_save_IFS
  10251. case $as_dir in #(((
  10252. '') as_dir=./ ;;
  10253. */) ;;
  10254. *) as_dir=$as_dir/ ;;
  10255. esac
  10256. for ac_exec_ext in '' $ac_executable_extensions; do
  10257. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  10258. ac_cv_prog_AS="${ac_tool_prefix}as"
  10259. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  10260. break 2
  10261. fi
  10262. done
  10263. done
  10264. IFS=$as_save_IFS
  10265. fi
  10266. fi
  10267. AS=$ac_cv_prog_AS
  10268. if test -n "$AS"; then
  10269. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  10270. printf "%s\n" "$AS" >&6; }
  10271. else
  10272. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10273. printf "%s\n" "no" >&6; }
  10274. fi
  10275. fi
  10276. if test -z "$ac_cv_prog_AS"; then
  10277. ac_ct_AS=$AS
  10278. # Extract the first word of "as", so it can be a program name with args.
  10279. set dummy as; ac_word=$2
  10280. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10281. printf %s "checking for $ac_word... " >&6; }
  10282. if test ${ac_cv_prog_ac_ct_AS+y}
  10283. then :
  10284. printf %s "(cached) " >&6
  10285. else $as_nop
  10286. if test -n "$ac_ct_AS"; then
  10287. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  10288. else
  10289. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10290. for as_dir in $PATH
  10291. do
  10292. IFS=$as_save_IFS
  10293. case $as_dir in #(((
  10294. '') as_dir=./ ;;
  10295. */) ;;
  10296. *) as_dir=$as_dir/ ;;
  10297. esac
  10298. for ac_exec_ext in '' $ac_executable_extensions; do
  10299. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  10300. ac_cv_prog_ac_ct_AS="as"
  10301. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  10302. break 2
  10303. fi
  10304. done
  10305. done
  10306. IFS=$as_save_IFS
  10307. fi
  10308. fi
  10309. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  10310. if test -n "$ac_ct_AS"; then
  10311. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  10312. printf "%s\n" "$ac_ct_AS" >&6; }
  10313. else
  10314. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10315. printf "%s\n" "no" >&6; }
  10316. fi
  10317. if test "x$ac_ct_AS" = x; then
  10318. AS="false"
  10319. else
  10320. case $cross_compiling:$ac_tool_warned in
  10321. yes:)
  10322. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10323. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10324. ac_tool_warned=yes ;;
  10325. esac
  10326. AS=$ac_ct_AS
  10327. fi
  10328. else
  10329. AS="$ac_cv_prog_AS"
  10330. fi
  10331. if test -n "$ac_tool_prefix"; then
  10332. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  10333. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  10334. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10335. printf %s "checking for $ac_word... " >&6; }
  10336. if test ${ac_cv_prog_DLLTOOL+y}
  10337. then :
  10338. printf %s "(cached) " >&6
  10339. else $as_nop
  10340. if test -n "$DLLTOOL"; then
  10341. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  10342. else
  10343. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10344. for as_dir in $PATH
  10345. do
  10346. IFS=$as_save_IFS
  10347. case $as_dir in #(((
  10348. '') as_dir=./ ;;
  10349. */) ;;
  10350. *) as_dir=$as_dir/ ;;
  10351. esac
  10352. for ac_exec_ext in '' $ac_executable_extensions; do
  10353. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  10354. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  10355. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  10356. break 2
  10357. fi
  10358. done
  10359. done
  10360. IFS=$as_save_IFS
  10361. fi
  10362. fi
  10363. DLLTOOL=$ac_cv_prog_DLLTOOL
  10364. if test -n "$DLLTOOL"; then
  10365. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  10366. printf "%s\n" "$DLLTOOL" >&6; }
  10367. else
  10368. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10369. printf "%s\n" "no" >&6; }
  10370. fi
  10371. fi
  10372. if test -z "$ac_cv_prog_DLLTOOL"; then
  10373. ac_ct_DLLTOOL=$DLLTOOL
  10374. # Extract the first word of "dlltool", so it can be a program name with args.
  10375. set dummy dlltool; ac_word=$2
  10376. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10377. printf %s "checking for $ac_word... " >&6; }
  10378. if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
  10379. then :
  10380. printf %s "(cached) " >&6
  10381. else $as_nop
  10382. if test -n "$ac_ct_DLLTOOL"; then
  10383. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  10384. else
  10385. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10386. for as_dir in $PATH
  10387. do
  10388. IFS=$as_save_IFS
  10389. case $as_dir in #(((
  10390. '') as_dir=./ ;;
  10391. */) ;;
  10392. *) as_dir=$as_dir/ ;;
  10393. esac
  10394. for ac_exec_ext in '' $ac_executable_extensions; do
  10395. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  10396. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  10397. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  10398. break 2
  10399. fi
  10400. done
  10401. done
  10402. IFS=$as_save_IFS
  10403. fi
  10404. fi
  10405. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  10406. if test -n "$ac_ct_DLLTOOL"; then
  10407. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  10408. printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
  10409. else
  10410. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10411. printf "%s\n" "no" >&6; }
  10412. fi
  10413. if test "x$ac_ct_DLLTOOL" = x; then
  10414. DLLTOOL="false"
  10415. else
  10416. case $cross_compiling:$ac_tool_warned in
  10417. yes:)
  10418. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10419. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10420. ac_tool_warned=yes ;;
  10421. esac
  10422. DLLTOOL=$ac_ct_DLLTOOL
  10423. fi
  10424. else
  10425. DLLTOOL="$ac_cv_prog_DLLTOOL"
  10426. fi
  10427. if test -n "$ac_tool_prefix"; then
  10428. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  10429. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  10430. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10431. printf %s "checking for $ac_word... " >&6; }
  10432. if test ${ac_cv_prog_OBJDUMP+y}
  10433. then :
  10434. printf %s "(cached) " >&6
  10435. else $as_nop
  10436. if test -n "$OBJDUMP"; then
  10437. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  10438. else
  10439. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10440. for as_dir in $PATH
  10441. do
  10442. IFS=$as_save_IFS
  10443. case $as_dir in #(((
  10444. '') as_dir=./ ;;
  10445. */) ;;
  10446. *) as_dir=$as_dir/ ;;
  10447. esac
  10448. for ac_exec_ext in '' $ac_executable_extensions; do
  10449. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  10450. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  10451. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  10452. break 2
  10453. fi
  10454. done
  10455. done
  10456. IFS=$as_save_IFS
  10457. fi
  10458. fi
  10459. OBJDUMP=$ac_cv_prog_OBJDUMP
  10460. if test -n "$OBJDUMP"; then
  10461. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  10462. printf "%s\n" "$OBJDUMP" >&6; }
  10463. else
  10464. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10465. printf "%s\n" "no" >&6; }
  10466. fi
  10467. fi
  10468. if test -z "$ac_cv_prog_OBJDUMP"; then
  10469. ac_ct_OBJDUMP=$OBJDUMP
  10470. # Extract the first word of "objdump", so it can be a program name with args.
  10471. set dummy objdump; ac_word=$2
  10472. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10473. printf %s "checking for $ac_word... " >&6; }
  10474. if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
  10475. then :
  10476. printf %s "(cached) " >&6
  10477. else $as_nop
  10478. if test -n "$ac_ct_OBJDUMP"; then
  10479. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  10480. else
  10481. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10482. for as_dir in $PATH
  10483. do
  10484. IFS=$as_save_IFS
  10485. case $as_dir in #(((
  10486. '') as_dir=./ ;;
  10487. */) ;;
  10488. *) as_dir=$as_dir/ ;;
  10489. esac
  10490. for ac_exec_ext in '' $ac_executable_extensions; do
  10491. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  10492. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  10493. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  10494. break 2
  10495. fi
  10496. done
  10497. done
  10498. IFS=$as_save_IFS
  10499. fi
  10500. fi
  10501. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  10502. if test -n "$ac_ct_OBJDUMP"; then
  10503. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  10504. printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
  10505. else
  10506. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10507. printf "%s\n" "no" >&6; }
  10508. fi
  10509. if test "x$ac_ct_OBJDUMP" = x; then
  10510. OBJDUMP="false"
  10511. else
  10512. case $cross_compiling:$ac_tool_warned in
  10513. yes:)
  10514. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10515. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10516. ac_tool_warned=yes ;;
  10517. esac
  10518. OBJDUMP=$ac_ct_OBJDUMP
  10519. fi
  10520. else
  10521. OBJDUMP="$ac_cv_prog_OBJDUMP"
  10522. fi
  10523. ;;
  10524. esac
  10525. test -z "$AS" && AS=as
  10526. test -z "$DLLTOOL" && DLLTOOL=dlltool
  10527. test -z "$OBJDUMP" && OBJDUMP=objdump
  10528. enable_dlopen=no
  10529. # Check whether --enable-shared was given.
  10530. if test ${enable_shared+y}
  10531. then :
  10532. enableval=$enable_shared; p=${PACKAGE-default}
  10533. case $enableval in
  10534. yes) enable_shared=yes ;;
  10535. no) enable_shared=no ;;
  10536. *)
  10537. enable_shared=no
  10538. # Look at the argument we got. We use all the common list separators.
  10539. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  10540. for pkg in $enableval; do
  10541. IFS=$lt_save_ifs
  10542. if test "X$pkg" = "X$p"; then
  10543. enable_shared=yes
  10544. fi
  10545. done
  10546. IFS=$lt_save_ifs
  10547. ;;
  10548. esac
  10549. else $as_nop
  10550. enable_shared=yes
  10551. fi
  10552. # Check whether --enable-static was given.
  10553. if test ${enable_static+y}
  10554. then :
  10555. enableval=$enable_static; p=${PACKAGE-default}
  10556. case $enableval in
  10557. yes) enable_static=yes ;;
  10558. no) enable_static=no ;;
  10559. *)
  10560. enable_static=no
  10561. # Look at the argument we got. We use all the common list separators.
  10562. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  10563. for pkg in $enableval; do
  10564. IFS=$lt_save_ifs
  10565. if test "X$pkg" = "X$p"; then
  10566. enable_static=yes
  10567. fi
  10568. done
  10569. IFS=$lt_save_ifs
  10570. ;;
  10571. esac
  10572. else $as_nop
  10573. enable_static=yes
  10574. fi
  10575. # Check whether --with-pic was given.
  10576. if test ${with_pic+y}
  10577. then :
  10578. withval=$with_pic; lt_p=${PACKAGE-default}
  10579. case $withval in
  10580. yes|no) pic_mode=$withval ;;
  10581. *)
  10582. pic_mode=default
  10583. # Look at the argument we got. We use all the common list separators.
  10584. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  10585. for lt_pkg in $withval; do
  10586. IFS=$lt_save_ifs
  10587. if test "X$lt_pkg" = "X$lt_p"; then
  10588. pic_mode=yes
  10589. fi
  10590. done
  10591. IFS=$lt_save_ifs
  10592. ;;
  10593. esac
  10594. else $as_nop
  10595. pic_mode=default
  10596. fi
  10597. # Check whether --enable-fast-install was given.
  10598. if test ${enable_fast_install+y}
  10599. then :
  10600. enableval=$enable_fast_install; p=${PACKAGE-default}
  10601. case $enableval in
  10602. yes) enable_fast_install=yes ;;
  10603. no) enable_fast_install=no ;;
  10604. *)
  10605. enable_fast_install=no
  10606. # Look at the argument we got. We use all the common list separators.
  10607. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  10608. for pkg in $enableval; do
  10609. IFS=$lt_save_ifs
  10610. if test "X$pkg" = "X$p"; then
  10611. enable_fast_install=yes
  10612. fi
  10613. done
  10614. IFS=$lt_save_ifs
  10615. ;;
  10616. esac
  10617. else $as_nop
  10618. enable_fast_install=yes
  10619. fi
  10620. shared_archive_member_spec=
  10621. case $host,$enable_shared in
  10622. power*-*-aix[5-9]*,yes)
  10623. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  10624. printf %s "checking which variant of shared library versioning to provide... " >&6; }
  10625. # Check whether --with-aix-soname was given.
  10626. if test ${with_aix_soname+y}
  10627. then :
  10628. withval=$with_aix_soname; case $withval in
  10629. aix|svr4|both)
  10630. ;;
  10631. *)
  10632. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  10633. ;;
  10634. esac
  10635. lt_cv_with_aix_soname=$with_aix_soname
  10636. else $as_nop
  10637. if test ${lt_cv_with_aix_soname+y}
  10638. then :
  10639. printf %s "(cached) " >&6
  10640. else $as_nop
  10641. lt_cv_with_aix_soname=aix
  10642. fi
  10643. with_aix_soname=$lt_cv_with_aix_soname
  10644. fi
  10645. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  10646. printf "%s\n" "$with_aix_soname" >&6; }
  10647. if test aix != "$with_aix_soname"; then
  10648. # For the AIX way of multilib, we name the shared archive member
  10649. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  10650. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  10651. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  10652. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  10653. if test 64 = "${OBJECT_MODE-32}"; then
  10654. shared_archive_member_spec=shr_64
  10655. else
  10656. shared_archive_member_spec=shr
  10657. fi
  10658. fi
  10659. ;;
  10660. *)
  10661. with_aix_soname=aix
  10662. ;;
  10663. esac
  10664. # This can be used to rebuild libtool when needed
  10665. LIBTOOL_DEPS=$ltmain
  10666. # Always use our own libtool.
  10667. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  10668. test -z "$LN_S" && LN_S="ln -s"
  10669. if test -n "${ZSH_VERSION+set}"; then
  10670. setopt NO_GLOB_SUBST
  10671. fi
  10672. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  10673. printf %s "checking for objdir... " >&6; }
  10674. if test ${lt_cv_objdir+y}
  10675. then :
  10676. printf %s "(cached) " >&6
  10677. else $as_nop
  10678. rm -f .libs 2>/dev/null
  10679. mkdir .libs 2>/dev/null
  10680. if test -d .libs; then
  10681. lt_cv_objdir=.libs
  10682. else
  10683. # MS-DOS does not allow filenames that begin with a dot.
  10684. lt_cv_objdir=_libs
  10685. fi
  10686. rmdir .libs 2>/dev/null
  10687. fi
  10688. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  10689. printf "%s\n" "$lt_cv_objdir" >&6; }
  10690. objdir=$lt_cv_objdir
  10691. printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
  10692. case $host_os in
  10693. aix3*)
  10694. # AIX sometimes has problems with the GCC collect2 program. For some
  10695. # reason, if we set the COLLECT_NAMES environment variable, the problems
  10696. # vanish in a puff of smoke.
  10697. if test set != "${COLLECT_NAMES+set}"; then
  10698. COLLECT_NAMES=
  10699. export COLLECT_NAMES
  10700. fi
  10701. ;;
  10702. esac
  10703. # Global variables:
  10704. ofile=libtool
  10705. can_build_shared=yes
  10706. # All known linkers require a '.a' archive for static linking (except MSVC and
  10707. # ICC, which need '.lib').
  10708. libext=a
  10709. with_gnu_ld=$lt_cv_prog_gnu_ld
  10710. old_CC=$CC
  10711. old_CFLAGS=$CFLAGS
  10712. # Set sane defaults for various variables
  10713. test -z "$CC" && CC=cc
  10714. test -z "$LTCC" && LTCC=$CC
  10715. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  10716. test -z "$LD" && LD=ld
  10717. test -z "$ac_objext" && ac_objext=o
  10718. func_cc_basename $compiler
  10719. cc_basename=$func_cc_basename_result
  10720. # Only perform the check for file, if the check method requires it
  10721. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  10722. case $deplibs_check_method in
  10723. file_magic*)
  10724. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  10725. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  10726. printf %s "checking for ${ac_tool_prefix}file... " >&6; }
  10727. if test ${lt_cv_path_MAGIC_CMD+y}
  10728. then :
  10729. printf %s "(cached) " >&6
  10730. else $as_nop
  10731. case $MAGIC_CMD in
  10732. [\\/*] | ?:[\\/]*)
  10733. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  10734. ;;
  10735. *)
  10736. lt_save_MAGIC_CMD=$MAGIC_CMD
  10737. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  10738. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  10739. for ac_dir in $ac_dummy; do
  10740. IFS=$lt_save_ifs
  10741. test -z "$ac_dir" && ac_dir=.
  10742. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  10743. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  10744. if test -n "$file_magic_test_file"; then
  10745. case $deplibs_check_method in
  10746. "file_magic "*)
  10747. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  10748. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  10749. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  10750. $EGREP "$file_magic_regex" > /dev/null; then
  10751. :
  10752. else
  10753. cat <<_LT_EOF 1>&2
  10754. *** Warning: the command libtool uses to detect shared libraries,
  10755. *** $file_magic_cmd, produces output that libtool cannot recognize.
  10756. *** The result is that libtool may fail to recognize shared libraries
  10757. *** as such. This will affect the creation of libtool libraries that
  10758. *** depend on shared libraries, but programs linked with such libtool
  10759. *** libraries will work regardless of this problem. Nevertheless, you
  10760. *** may want to report the problem to your system manager and/or to
  10761. *** [email protected]
  10762. _LT_EOF
  10763. fi ;;
  10764. esac
  10765. fi
  10766. break
  10767. fi
  10768. done
  10769. IFS=$lt_save_ifs
  10770. MAGIC_CMD=$lt_save_MAGIC_CMD
  10771. ;;
  10772. esac
  10773. fi
  10774. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  10775. if test -n "$MAGIC_CMD"; then
  10776. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  10777. printf "%s\n" "$MAGIC_CMD" >&6; }
  10778. else
  10779. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10780. printf "%s\n" "no" >&6; }
  10781. fi
  10782. if test -z "$lt_cv_path_MAGIC_CMD"; then
  10783. if test -n "$ac_tool_prefix"; then
  10784. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  10785. printf %s "checking for file... " >&6; }
  10786. if test ${lt_cv_path_MAGIC_CMD+y}
  10787. then :
  10788. printf %s "(cached) " >&6
  10789. else $as_nop
  10790. case $MAGIC_CMD in
  10791. [\\/*] | ?:[\\/]*)
  10792. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  10793. ;;
  10794. *)
  10795. lt_save_MAGIC_CMD=$MAGIC_CMD
  10796. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  10797. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  10798. for ac_dir in $ac_dummy; do
  10799. IFS=$lt_save_ifs
  10800. test -z "$ac_dir" && ac_dir=.
  10801. if test -f "$ac_dir/file"; then
  10802. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  10803. if test -n "$file_magic_test_file"; then
  10804. case $deplibs_check_method in
  10805. "file_magic "*)
  10806. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  10807. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  10808. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  10809. $EGREP "$file_magic_regex" > /dev/null; then
  10810. :
  10811. else
  10812. cat <<_LT_EOF 1>&2
  10813. *** Warning: the command libtool uses to detect shared libraries,
  10814. *** $file_magic_cmd, produces output that libtool cannot recognize.
  10815. *** The result is that libtool may fail to recognize shared libraries
  10816. *** as such. This will affect the creation of libtool libraries that
  10817. *** depend on shared libraries, but programs linked with such libtool
  10818. *** libraries will work regardless of this problem. Nevertheless, you
  10819. *** may want to report the problem to your system manager and/or to
  10820. *** [email protected]
  10821. _LT_EOF
  10822. fi ;;
  10823. esac
  10824. fi
  10825. break
  10826. fi
  10827. done
  10828. IFS=$lt_save_ifs
  10829. MAGIC_CMD=$lt_save_MAGIC_CMD
  10830. ;;
  10831. esac
  10832. fi
  10833. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  10834. if test -n "$MAGIC_CMD"; then
  10835. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  10836. printf "%s\n" "$MAGIC_CMD" >&6; }
  10837. else
  10838. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10839. printf "%s\n" "no" >&6; }
  10840. fi
  10841. else
  10842. MAGIC_CMD=:
  10843. fi
  10844. fi
  10845. fi
  10846. ;;
  10847. esac
  10848. # Use C for the default configuration in the libtool script
  10849. lt_save_CC=$CC
  10850. ac_ext=c
  10851. ac_cpp='$CPP $CPPFLAGS'
  10852. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10853. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10854. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10855. # Source file extension for C test sources.
  10856. ac_ext=c
  10857. # Object file extension for compiled C test sources.
  10858. objext=o
  10859. objext=$objext
  10860. # Code to be used in simple compile tests
  10861. lt_simple_compile_test_code="int some_variable = 0;"
  10862. # Code to be used in simple link tests
  10863. lt_simple_link_test_code='int main(){return(0);}'
  10864. # If no C compiler was specified, use CC.
  10865. LTCC=${LTCC-"$CC"}
  10866. # If no C compiler flags were specified, use CFLAGS.
  10867. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10868. # Allow CC to be a program name with arguments.
  10869. compiler=$CC
  10870. # Save the default compiler, since it gets overwritten when the other
  10871. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  10872. compiler_DEFAULT=$CC
  10873. # save warnings/boilerplate of simple test code
  10874. ac_outfile=conftest.$ac_objext
  10875. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10876. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10877. _lt_compiler_boilerplate=`cat conftest.err`
  10878. $RM conftest*
  10879. ac_outfile=conftest.$ac_objext
  10880. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10881. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10882. _lt_linker_boilerplate=`cat conftest.err`
  10883. $RM -r conftest*
  10884. ## CAVEAT EMPTOR:
  10885. ## There is no encapsulation within the following macros, do not change
  10886. ## the running order or otherwise move them around unless you know exactly
  10887. ## what you are doing...
  10888. if test -n "$compiler"; then
  10889. lt_prog_compiler_no_builtin_flag=
  10890. if test yes = "$GCC"; then
  10891. case $cc_basename in
  10892. nvcc*)
  10893. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  10894. *)
  10895. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  10896. esac
  10897. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  10898. printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  10899. if test ${lt_cv_prog_compiler_rtti_exceptions+y}
  10900. then :
  10901. printf %s "(cached) " >&6
  10902. else $as_nop
  10903. lt_cv_prog_compiler_rtti_exceptions=no
  10904. ac_outfile=conftest.$ac_objext
  10905. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10906. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  10907. # Insert the option either (1) after the last *FLAGS variable, or
  10908. # (2) before a word containing "conftest.", or (3) at the end.
  10909. # Note that $ac_compile itself does not contain backslashes and begins
  10910. # with a dollar sign (not a hyphen), so the echo should work correctly.
  10911. # The option is referenced via a variable to avoid confusing sed.
  10912. lt_compile=`echo "$ac_compile" | $SED \
  10913. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  10914. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  10915. -e 's:$: $lt_compiler_flag:'`
  10916. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  10917. (eval "$lt_compile" 2>conftest.err)
  10918. ac_status=$?
  10919. cat conftest.err >&5
  10920. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10921. if (exit $ac_status) && test -s "$ac_outfile"; then
  10922. # The compiler can only warn and ignore the option if not recognized
  10923. # So say no if there are warnings other than the usual output.
  10924. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  10925. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  10926. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  10927. lt_cv_prog_compiler_rtti_exceptions=yes
  10928. fi
  10929. fi
  10930. $RM conftest*
  10931. fi
  10932. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  10933. printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  10934. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  10935. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  10936. else
  10937. :
  10938. fi
  10939. fi
  10940. lt_prog_compiler_wl=
  10941. lt_prog_compiler_pic=
  10942. lt_prog_compiler_static=
  10943. if test yes = "$GCC"; then
  10944. lt_prog_compiler_wl='-Wl,'
  10945. lt_prog_compiler_static='-static'
  10946. case $host_os in
  10947. aix*)
  10948. # All AIX code is PIC.
  10949. if test ia64 = "$host_cpu"; then
  10950. # AIX 5 now supports IA64 processor
  10951. lt_prog_compiler_static='-Bstatic'
  10952. fi
  10953. lt_prog_compiler_pic='-fPIC'
  10954. ;;
  10955. amigaos*)
  10956. case $host_cpu in
  10957. powerpc)
  10958. # see comment about AmigaOS4 .so support
  10959. lt_prog_compiler_pic='-fPIC'
  10960. ;;
  10961. m68k)
  10962. # FIXME: we need at least 68020 code to build shared libraries, but
  10963. # adding the '-m68020' flag to GCC prevents building anything better,
  10964. # like '-m68040'.
  10965. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  10966. ;;
  10967. esac
  10968. ;;
  10969. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  10970. # PIC is the default for these OSes.
  10971. ;;
  10972. mingw* | cygwin* | pw32* | os2* | cegcc*)
  10973. # This hack is so that the source file can tell whether it is being
  10974. # built for inclusion in a dll (and should export symbols for example).
  10975. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  10976. # (--disable-auto-import) libraries
  10977. lt_prog_compiler_pic='-DDLL_EXPORT'
  10978. case $host_os in
  10979. os2*)
  10980. lt_prog_compiler_static='$wl-static'
  10981. ;;
  10982. esac
  10983. ;;
  10984. darwin* | rhapsody*)
  10985. # PIC is the default on this platform
  10986. # Common symbols not allowed in MH_DYLIB files
  10987. lt_prog_compiler_pic='-fno-common'
  10988. ;;
  10989. haiku*)
  10990. # PIC is the default for Haiku.
  10991. # The "-static" flag exists, but is broken.
  10992. lt_prog_compiler_static=
  10993. ;;
  10994. hpux*)
  10995. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  10996. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  10997. # sets the default TLS model and affects inlining.
  10998. case $host_cpu in
  10999. hppa*64*)
  11000. # +Z the default
  11001. ;;
  11002. *)
  11003. lt_prog_compiler_pic='-fPIC'
  11004. ;;
  11005. esac
  11006. ;;
  11007. interix[3-9]*)
  11008. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  11009. # Instead, we relocate shared libraries at runtime.
  11010. ;;
  11011. msdosdjgpp*)
  11012. # Just because we use GCC doesn't mean we suddenly get shared libraries
  11013. # on systems that don't support them.
  11014. lt_prog_compiler_can_build_shared=no
  11015. enable_shared=no
  11016. ;;
  11017. *nto* | *qnx*)
  11018. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11019. # it will coredump.
  11020. lt_prog_compiler_pic='-fPIC -shared'
  11021. ;;
  11022. sysv4*MP*)
  11023. if test -d /usr/nec; then
  11024. lt_prog_compiler_pic=-Kconform_pic
  11025. fi
  11026. ;;
  11027. *)
  11028. lt_prog_compiler_pic='-fPIC'
  11029. ;;
  11030. esac
  11031. case $cc_basename in
  11032. nvcc*) # Cuda Compiler Driver 2.2
  11033. lt_prog_compiler_wl='-Xlinker '
  11034. if test -n "$lt_prog_compiler_pic"; then
  11035. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  11036. fi
  11037. ;;
  11038. esac
  11039. else
  11040. # PORTME Check for flag to pass linker flags through the system compiler.
  11041. case $host_os in
  11042. aix*)
  11043. lt_prog_compiler_wl='-Wl,'
  11044. if test ia64 = "$host_cpu"; then
  11045. # AIX 5 now supports IA64 processor
  11046. lt_prog_compiler_static='-Bstatic'
  11047. else
  11048. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  11049. fi
  11050. ;;
  11051. darwin* | rhapsody*)
  11052. # PIC is the default on this platform
  11053. # Common symbols not allowed in MH_DYLIB files
  11054. lt_prog_compiler_pic='-fno-common'
  11055. case $cc_basename in
  11056. nagfor*)
  11057. # NAG Fortran compiler
  11058. lt_prog_compiler_wl='-Wl,-Wl,,'
  11059. lt_prog_compiler_pic='-PIC'
  11060. lt_prog_compiler_static='-Bstatic'
  11061. ;;
  11062. esac
  11063. ;;
  11064. mingw* | cygwin* | pw32* | os2* | cegcc*)
  11065. # This hack is so that the source file can tell whether it is being
  11066. # built for inclusion in a dll (and should export symbols for example).
  11067. lt_prog_compiler_pic='-DDLL_EXPORT'
  11068. case $host_os in
  11069. os2*)
  11070. lt_prog_compiler_static='$wl-static'
  11071. ;;
  11072. esac
  11073. ;;
  11074. hpux9* | hpux10* | hpux11*)
  11075. lt_prog_compiler_wl='-Wl,'
  11076. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  11077. # not for PA HP-UX.
  11078. case $host_cpu in
  11079. hppa*64*|ia64*)
  11080. # +Z the default
  11081. ;;
  11082. *)
  11083. lt_prog_compiler_pic='+Z'
  11084. ;;
  11085. esac
  11086. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  11087. lt_prog_compiler_static='$wl-a ${wl}archive'
  11088. ;;
  11089. irix5* | irix6* | nonstopux*)
  11090. lt_prog_compiler_wl='-Wl,'
  11091. # PIC (with -KPIC) is the default.
  11092. lt_prog_compiler_static='-non_shared'
  11093. ;;
  11094. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  11095. case $cc_basename in
  11096. # old Intel for x86_64, which still supported -KPIC.
  11097. ecc*)
  11098. lt_prog_compiler_wl='-Wl,'
  11099. lt_prog_compiler_pic='-KPIC'
  11100. lt_prog_compiler_static='-static'
  11101. ;;
  11102. # flang / f18. f95 an alias for gfortran or flang on Debian
  11103. flang* | f18* | f95*)
  11104. lt_prog_compiler_wl='-Wl,'
  11105. lt_prog_compiler_pic='-fPIC'
  11106. lt_prog_compiler_static='-static'
  11107. ;;
  11108. # icc used to be incompatible with GCC.
  11109. # ICC 10 doesn't accept -KPIC any more.
  11110. icc* | ifort*)
  11111. lt_prog_compiler_wl='-Wl,'
  11112. lt_prog_compiler_pic='-fPIC'
  11113. lt_prog_compiler_static='-static'
  11114. ;;
  11115. # Lahey Fortran 8.1.
  11116. lf95*)
  11117. lt_prog_compiler_wl='-Wl,'
  11118. lt_prog_compiler_pic='--shared'
  11119. lt_prog_compiler_static='--static'
  11120. ;;
  11121. nagfor*)
  11122. # NAG Fortran compiler
  11123. lt_prog_compiler_wl='-Wl,-Wl,,'
  11124. lt_prog_compiler_pic='-PIC'
  11125. lt_prog_compiler_static='-Bstatic'
  11126. ;;
  11127. tcc*)
  11128. # Fabrice Bellard et al's Tiny C Compiler
  11129. lt_prog_compiler_wl='-Wl,'
  11130. lt_prog_compiler_pic='-fPIC'
  11131. lt_prog_compiler_static='-static'
  11132. ;;
  11133. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  11134. # Portland Group compilers (*not* the Pentium gcc compiler,
  11135. # which looks to be a dead project)
  11136. lt_prog_compiler_wl='-Wl,'
  11137. lt_prog_compiler_pic='-fpic'
  11138. lt_prog_compiler_static='-Bstatic'
  11139. ;;
  11140. ccc*)
  11141. lt_prog_compiler_wl='-Wl,'
  11142. # All Alpha code is PIC.
  11143. lt_prog_compiler_static='-non_shared'
  11144. ;;
  11145. xl* | bgxl* | bgf* | mpixl*)
  11146. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  11147. lt_prog_compiler_wl='-Wl,'
  11148. lt_prog_compiler_pic='-qpic'
  11149. lt_prog_compiler_static='-qstaticlink'
  11150. ;;
  11151. *)
  11152. case `$CC -V 2>&1 | $SED 5q` in
  11153. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  11154. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  11155. lt_prog_compiler_pic='-KPIC'
  11156. lt_prog_compiler_static='-Bstatic'
  11157. lt_prog_compiler_wl=''
  11158. ;;
  11159. *Sun\ F* | *Sun*Fortran*)
  11160. lt_prog_compiler_pic='-KPIC'
  11161. lt_prog_compiler_static='-Bstatic'
  11162. lt_prog_compiler_wl='-Qoption ld '
  11163. ;;
  11164. *Sun\ C*)
  11165. # Sun C 5.9
  11166. lt_prog_compiler_pic='-KPIC'
  11167. lt_prog_compiler_static='-Bstatic'
  11168. lt_prog_compiler_wl='-Wl,'
  11169. ;;
  11170. *Intel*\ [CF]*Compiler*)
  11171. lt_prog_compiler_wl='-Wl,'
  11172. lt_prog_compiler_pic='-fPIC'
  11173. lt_prog_compiler_static='-static'
  11174. ;;
  11175. *Portland\ Group*)
  11176. lt_prog_compiler_wl='-Wl,'
  11177. lt_prog_compiler_pic='-fpic'
  11178. lt_prog_compiler_static='-Bstatic'
  11179. ;;
  11180. esac
  11181. ;;
  11182. esac
  11183. ;;
  11184. newsos6)
  11185. lt_prog_compiler_pic='-KPIC'
  11186. lt_prog_compiler_static='-Bstatic'
  11187. ;;
  11188. *nto* | *qnx*)
  11189. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11190. # it will coredump.
  11191. lt_prog_compiler_pic='-fPIC -shared'
  11192. ;;
  11193. osf3* | osf4* | osf5*)
  11194. lt_prog_compiler_wl='-Wl,'
  11195. # All OSF/1 code is PIC.
  11196. lt_prog_compiler_static='-non_shared'
  11197. ;;
  11198. rdos*)
  11199. lt_prog_compiler_static='-non_shared'
  11200. ;;
  11201. solaris*)
  11202. lt_prog_compiler_pic='-KPIC'
  11203. lt_prog_compiler_static='-Bstatic'
  11204. case $cc_basename in
  11205. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  11206. lt_prog_compiler_wl='-Qoption ld ';;
  11207. *)
  11208. lt_prog_compiler_wl='-Wl,';;
  11209. esac
  11210. ;;
  11211. sunos4*)
  11212. lt_prog_compiler_wl='-Qoption ld '
  11213. lt_prog_compiler_pic='-PIC'
  11214. lt_prog_compiler_static='-Bstatic'
  11215. ;;
  11216. sysv4 | sysv4.2uw2* | sysv4.3*)
  11217. lt_prog_compiler_wl='-Wl,'
  11218. lt_prog_compiler_pic='-KPIC'
  11219. lt_prog_compiler_static='-Bstatic'
  11220. ;;
  11221. sysv4*MP*)
  11222. if test -d /usr/nec; then
  11223. lt_prog_compiler_pic='-Kconform_pic'
  11224. lt_prog_compiler_static='-Bstatic'
  11225. fi
  11226. ;;
  11227. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  11228. lt_prog_compiler_wl='-Wl,'
  11229. lt_prog_compiler_pic='-KPIC'
  11230. lt_prog_compiler_static='-Bstatic'
  11231. ;;
  11232. unicos*)
  11233. lt_prog_compiler_wl='-Wl,'
  11234. lt_prog_compiler_can_build_shared=no
  11235. ;;
  11236. uts4*)
  11237. lt_prog_compiler_pic='-pic'
  11238. lt_prog_compiler_static='-Bstatic'
  11239. ;;
  11240. *)
  11241. lt_prog_compiler_can_build_shared=no
  11242. ;;
  11243. esac
  11244. fi
  11245. case $host_os in
  11246. # For platforms that do not support PIC, -DPIC is meaningless:
  11247. *djgpp*)
  11248. lt_prog_compiler_pic=
  11249. ;;
  11250. *)
  11251. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  11252. ;;
  11253. esac
  11254. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  11255. printf %s "checking for $compiler option to produce PIC... " >&6; }
  11256. if test ${lt_cv_prog_compiler_pic+y}
  11257. then :
  11258. printf %s "(cached) " >&6
  11259. else $as_nop
  11260. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  11261. fi
  11262. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  11263. printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
  11264. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  11265. #
  11266. # Check to make sure the PIC flag actually works.
  11267. #
  11268. if test -n "$lt_prog_compiler_pic"; then
  11269. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  11270. printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  11271. if test ${lt_cv_prog_compiler_pic_works+y}
  11272. then :
  11273. printf %s "(cached) " >&6
  11274. else $as_nop
  11275. lt_cv_prog_compiler_pic_works=no
  11276. ac_outfile=conftest.$ac_objext
  11277. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11278. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  11279. # Insert the option either (1) after the last *FLAGS variable, or
  11280. # (2) before a word containing "conftest.", or (3) at the end.
  11281. # Note that $ac_compile itself does not contain backslashes and begins
  11282. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11283. # The option is referenced via a variable to avoid confusing sed.
  11284. lt_compile=`echo "$ac_compile" | $SED \
  11285. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11286. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11287. -e 's:$: $lt_compiler_flag:'`
  11288. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  11289. (eval "$lt_compile" 2>conftest.err)
  11290. ac_status=$?
  11291. cat conftest.err >&5
  11292. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11293. if (exit $ac_status) && test -s "$ac_outfile"; then
  11294. # The compiler can only warn and ignore the option if not recognized
  11295. # So say no if there are warnings other than the usual output.
  11296. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  11297. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11298. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  11299. lt_cv_prog_compiler_pic_works=yes
  11300. fi
  11301. fi
  11302. $RM conftest*
  11303. fi
  11304. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  11305. printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
  11306. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  11307. case $lt_prog_compiler_pic in
  11308. "" | " "*) ;;
  11309. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  11310. esac
  11311. else
  11312. lt_prog_compiler_pic=
  11313. lt_prog_compiler_can_build_shared=no
  11314. fi
  11315. fi
  11316. #
  11317. # Check to make sure the static flag actually works.
  11318. #
  11319. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  11320. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  11321. printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  11322. if test ${lt_cv_prog_compiler_static_works+y}
  11323. then :
  11324. printf %s "(cached) " >&6
  11325. else $as_nop
  11326. lt_cv_prog_compiler_static_works=no
  11327. save_LDFLAGS=$LDFLAGS
  11328. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  11329. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  11330. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  11331. # The linker can only warn and ignore the option if not recognized
  11332. # So say no if there are warnings
  11333. if test -s conftest.err; then
  11334. # Append any errors to the config.log.
  11335. cat conftest.err 1>&5
  11336. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  11337. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11338. if diff conftest.exp conftest.er2 >/dev/null; then
  11339. lt_cv_prog_compiler_static_works=yes
  11340. fi
  11341. else
  11342. lt_cv_prog_compiler_static_works=yes
  11343. fi
  11344. fi
  11345. $RM -r conftest*
  11346. LDFLAGS=$save_LDFLAGS
  11347. fi
  11348. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  11349. printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
  11350. if test yes = "$lt_cv_prog_compiler_static_works"; then
  11351. :
  11352. else
  11353. lt_prog_compiler_static=
  11354. fi
  11355. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  11356. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  11357. if test ${lt_cv_prog_compiler_c_o+y}
  11358. then :
  11359. printf %s "(cached) " >&6
  11360. else $as_nop
  11361. lt_cv_prog_compiler_c_o=no
  11362. $RM -r conftest 2>/dev/null
  11363. mkdir conftest
  11364. cd conftest
  11365. mkdir out
  11366. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11367. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11368. # Insert the option either (1) after the last *FLAGS variable, or
  11369. # (2) before a word containing "conftest.", or (3) at the end.
  11370. # Note that $ac_compile itself does not contain backslashes and begins
  11371. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11372. lt_compile=`echo "$ac_compile" | $SED \
  11373. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11374. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11375. -e 's:$: $lt_compiler_flag:'`
  11376. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  11377. (eval "$lt_compile" 2>out/conftest.err)
  11378. ac_status=$?
  11379. cat out/conftest.err >&5
  11380. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11381. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11382. then
  11383. # The compiler can only warn and ignore the option if not recognized
  11384. # So say no if there are warnings
  11385. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  11386. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11387. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11388. lt_cv_prog_compiler_c_o=yes
  11389. fi
  11390. fi
  11391. chmod u+w . 2>&5
  11392. $RM conftest*
  11393. # SGI C++ compiler will create directory out/ii_files/ for
  11394. # template instantiation
  11395. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  11396. $RM out/* && rmdir out
  11397. cd ..
  11398. $RM -r conftest
  11399. $RM conftest*
  11400. fi
  11401. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  11402. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  11403. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  11404. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  11405. if test ${lt_cv_prog_compiler_c_o+y}
  11406. then :
  11407. printf %s "(cached) " >&6
  11408. else $as_nop
  11409. lt_cv_prog_compiler_c_o=no
  11410. $RM -r conftest 2>/dev/null
  11411. mkdir conftest
  11412. cd conftest
  11413. mkdir out
  11414. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11415. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11416. # Insert the option either (1) after the last *FLAGS variable, or
  11417. # (2) before a word containing "conftest.", or (3) at the end.
  11418. # Note that $ac_compile itself does not contain backslashes and begins
  11419. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11420. lt_compile=`echo "$ac_compile" | $SED \
  11421. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11422. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11423. -e 's:$: $lt_compiler_flag:'`
  11424. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  11425. (eval "$lt_compile" 2>out/conftest.err)
  11426. ac_status=$?
  11427. cat out/conftest.err >&5
  11428. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11429. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11430. then
  11431. # The compiler can only warn and ignore the option if not recognized
  11432. # So say no if there are warnings
  11433. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  11434. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11435. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11436. lt_cv_prog_compiler_c_o=yes
  11437. fi
  11438. fi
  11439. chmod u+w . 2>&5
  11440. $RM conftest*
  11441. # SGI C++ compiler will create directory out/ii_files/ for
  11442. # template instantiation
  11443. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  11444. $RM out/* && rmdir out
  11445. cd ..
  11446. $RM -r conftest
  11447. $RM conftest*
  11448. fi
  11449. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  11450. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  11451. hard_links=nottested
  11452. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  11453. # do not overwrite the value of need_locks provided by the user
  11454. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  11455. printf %s "checking if we can lock with hard links... " >&6; }
  11456. hard_links=yes
  11457. $RM conftest*
  11458. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11459. touch conftest.a
  11460. ln conftest.a conftest.b 2>&5 || hard_links=no
  11461. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11462. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  11463. printf "%s\n" "$hard_links" >&6; }
  11464. if test no = "$hard_links"; then
  11465. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  11466. printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  11467. need_locks=warn
  11468. fi
  11469. else
  11470. need_locks=no
  11471. fi
  11472. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11473. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11474. runpath_var=
  11475. allow_undefined_flag=
  11476. always_export_symbols=no
  11477. archive_cmds=
  11478. archive_expsym_cmds=
  11479. compiler_needs_object=no
  11480. enable_shared_with_static_runtimes=no
  11481. export_dynamic_flag_spec=
  11482. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11483. hardcode_automatic=no
  11484. hardcode_direct=no
  11485. hardcode_direct_absolute=no
  11486. hardcode_libdir_flag_spec=
  11487. hardcode_libdir_separator=
  11488. hardcode_minus_L=no
  11489. hardcode_shlibpath_var=unsupported
  11490. inherit_rpath=no
  11491. link_all_deplibs=unknown
  11492. module_cmds=
  11493. module_expsym_cmds=
  11494. old_archive_from_new_cmds=
  11495. old_archive_from_expsyms_cmds=
  11496. thread_safe_flag_spec=
  11497. whole_archive_flag_spec=
  11498. # include_expsyms should be a list of space-separated symbols to be *always*
  11499. # included in the symbol list
  11500. include_expsyms=
  11501. # exclude_expsyms can be an extended regexp of symbols to exclude
  11502. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  11503. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  11504. # as well as any symbol that contains 'd'.
  11505. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  11506. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  11507. # platforms (ab)use it in PIC code, but their linkers get confused if
  11508. # the symbol is explicitly referenced. Since portable code cannot
  11509. # rely on this symbol name, it's probably fine to never include it in
  11510. # preloaded symbol tables.
  11511. # Exclude shared library initialization/finalization symbols.
  11512. extract_expsyms_cmds=
  11513. case $host_os in
  11514. cygwin* | mingw* | pw32* | cegcc*)
  11515. # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
  11516. # When not using gcc, we currently assume that we are using
  11517. # Microsoft Visual C++ or Intel C++ Compiler.
  11518. if test yes != "$GCC"; then
  11519. with_gnu_ld=no
  11520. fi
  11521. ;;
  11522. interix*)
  11523. # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
  11524. with_gnu_ld=yes
  11525. ;;
  11526. openbsd* | bitrig*)
  11527. with_gnu_ld=no
  11528. ;;
  11529. linux* | k*bsd*-gnu | gnu*)
  11530. link_all_deplibs=no
  11531. ;;
  11532. esac
  11533. ld_shlibs=yes
  11534. # On some targets, GNU ld is compatible enough with the native linker
  11535. # that we're better off using the native interface for both.
  11536. lt_use_gnu_ld_interface=no
  11537. if test yes = "$with_gnu_ld"; then
  11538. case $host_os in
  11539. aix*)
  11540. # The AIX port of GNU ld has always aspired to compatibility
  11541. # with the native linker. However, as the warning in the GNU ld
  11542. # block says, versions before 2.19.5* couldn't really create working
  11543. # shared libraries, regardless of the interface used.
  11544. case `$LD -v 2>&1` in
  11545. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  11546. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  11547. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  11548. *)
  11549. lt_use_gnu_ld_interface=yes
  11550. ;;
  11551. esac
  11552. ;;
  11553. *)
  11554. lt_use_gnu_ld_interface=yes
  11555. ;;
  11556. esac
  11557. fi
  11558. if test yes = "$lt_use_gnu_ld_interface"; then
  11559. # If archive_cmds runs LD, not CC, wlarc should be empty
  11560. wlarc='$wl'
  11561. # Set some defaults for GNU ld with shared library support. These
  11562. # are reset later if shared libraries are not supported. Putting them
  11563. # here allows them to be overridden if necessary.
  11564. runpath_var=LD_RUN_PATH
  11565. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  11566. export_dynamic_flag_spec='$wl--export-dynamic'
  11567. # ancient GNU ld didn't support --whole-archive et. al.
  11568. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  11569. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  11570. else
  11571. whole_archive_flag_spec=
  11572. fi
  11573. supports_anon_versioning=no
  11574. case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
  11575. *GNU\ gold*) supports_anon_versioning=yes ;;
  11576. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  11577. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  11578. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  11579. *\ 2.11.*) ;; # other 2.11 versions
  11580. *) supports_anon_versioning=yes ;;
  11581. esac
  11582. # See if GNU ld supports shared libraries.
  11583. case $host_os in
  11584. aix[3-9]*)
  11585. # On AIX/PPC, the GNU linker is very broken
  11586. if test ia64 != "$host_cpu"; then
  11587. ld_shlibs=no
  11588. cat <<_LT_EOF 1>&2
  11589. *** Warning: the GNU linker, at least up to release 2.19, is reported
  11590. *** to be unable to reliably create shared libraries on AIX.
  11591. *** Therefore, libtool is disabling shared libraries support. If you
  11592. *** really care for shared libraries, you may want to install binutils
  11593. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  11594. *** You will then need to restart the configuration process.
  11595. _LT_EOF
  11596. fi
  11597. ;;
  11598. amigaos*)
  11599. case $host_cpu in
  11600. powerpc)
  11601. # see comment about AmigaOS4 .so support
  11602. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  11603. archive_expsym_cmds=''
  11604. ;;
  11605. m68k)
  11606. 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)'
  11607. hardcode_libdir_flag_spec='-L$libdir'
  11608. hardcode_minus_L=yes
  11609. ;;
  11610. esac
  11611. ;;
  11612. beos*)
  11613. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11614. allow_undefined_flag=unsupported
  11615. # Joseph Beckenbach <[email protected]> says some releases of gcc
  11616. # support --undefined. This deserves some investigation. FIXME
  11617. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  11618. else
  11619. ld_shlibs=no
  11620. fi
  11621. ;;
  11622. cygwin* | mingw* | pw32* | cegcc*)
  11623. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  11624. # as there is no search path for DLLs.
  11625. hardcode_libdir_flag_spec='-L$libdir'
  11626. export_dynamic_flag_spec='$wl--export-all-symbols'
  11627. allow_undefined_flag=unsupported
  11628. always_export_symbols=no
  11629. enable_shared_with_static_runtimes=yes
  11630. 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'
  11631. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  11632. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11633. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  11634. # If the export-symbols file already is a .def file, use it as
  11635. # is; otherwise, prepend EXPORTS...
  11636. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  11637. cp $export_symbols $output_objdir/$soname.def;
  11638. else
  11639. echo EXPORTS > $output_objdir/$soname.def;
  11640. cat $export_symbols >> $output_objdir/$soname.def;
  11641. fi~
  11642. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  11643. else
  11644. ld_shlibs=no
  11645. fi
  11646. ;;
  11647. haiku*)
  11648. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  11649. link_all_deplibs=yes
  11650. ;;
  11651. os2*)
  11652. hardcode_libdir_flag_spec='-L$libdir'
  11653. hardcode_minus_L=yes
  11654. allow_undefined_flag=unsupported
  11655. shrext_cmds=.dll
  11656. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  11657. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  11658. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  11659. $ECHO EXPORTS >> $output_objdir/$libname.def~
  11660. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  11661. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  11662. emximp -o $lib $output_objdir/$libname.def'
  11663. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  11664. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  11665. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  11666. $ECHO EXPORTS >> $output_objdir/$libname.def~
  11667. prefix_cmds="$SED"~
  11668. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  11669. prefix_cmds="$prefix_cmds -e 1d";
  11670. fi~
  11671. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  11672. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  11673. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  11674. emximp -o $lib $output_objdir/$libname.def'
  11675. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  11676. enable_shared_with_static_runtimes=yes
  11677. file_list_spec='@'
  11678. ;;
  11679. interix[3-9]*)
  11680. hardcode_direct=no
  11681. hardcode_shlibpath_var=no
  11682. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  11683. export_dynamic_flag_spec='$wl-E'
  11684. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11685. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11686. # default) and relocated if they conflict, which is a slow very memory
  11687. # consuming and fragmenting process. To avoid this, we pick a random,
  11688. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11689. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11690. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  11691. 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'
  11692. ;;
  11693. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  11694. tmp_diet=no
  11695. if test linux-dietlibc = "$host_os"; then
  11696. case $cc_basename in
  11697. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  11698. esac
  11699. fi
  11700. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  11701. && test no = "$tmp_diet"
  11702. then
  11703. tmp_addflag=' $pic_flag'
  11704. tmp_sharedflag='-shared'
  11705. case $cc_basename,$host_cpu in
  11706. pgcc*) # Portland Group C compiler
  11707. 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'
  11708. tmp_addflag=' $pic_flag'
  11709. ;;
  11710. pgf77* | pgf90* | pgf95* | pgfortran*)
  11711. # Portland Group f77 and f90 compilers
  11712. 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'
  11713. tmp_addflag=' $pic_flag -Mnomain' ;;
  11714. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  11715. tmp_addflag=' -i_dynamic' ;;
  11716. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  11717. tmp_addflag=' -i_dynamic -nofor_main' ;;
  11718. ifc* | ifort*) # Intel Fortran compiler
  11719. tmp_addflag=' -nofor_main' ;;
  11720. lf95*) # Lahey Fortran 8.1
  11721. whole_archive_flag_spec=
  11722. tmp_sharedflag='--shared' ;;
  11723. nagfor*) # NAGFOR 5.3
  11724. tmp_sharedflag='-Wl,-shared' ;;
  11725. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  11726. tmp_sharedflag='-qmkshrobj'
  11727. tmp_addflag= ;;
  11728. nvcc*) # Cuda Compiler Driver 2.2
  11729. 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'
  11730. compiler_needs_object=yes
  11731. ;;
  11732. esac
  11733. case `$CC -V 2>&1 | $SED 5q` in
  11734. *Sun\ C*) # Sun C 5.9
  11735. 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'
  11736. compiler_needs_object=yes
  11737. tmp_sharedflag='-G' ;;
  11738. *Sun\ F*) # Sun Fortran 8.3
  11739. tmp_sharedflag='-G' ;;
  11740. esac
  11741. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  11742. if test yes = "$supports_anon_versioning"; then
  11743. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  11744. cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11745. echo "local: *; };" >> $output_objdir/$libname.ver~
  11746. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  11747. fi
  11748. case $cc_basename in
  11749. tcc*)
  11750. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  11751. export_dynamic_flag_spec='-rdynamic'
  11752. ;;
  11753. xlf* | bgf* | bgxlf* | mpixlf*)
  11754. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  11755. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  11756. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  11757. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  11758. if test yes = "$supports_anon_versioning"; then
  11759. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  11760. cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11761. echo "local: *; };" >> $output_objdir/$libname.ver~
  11762. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  11763. fi
  11764. ;;
  11765. esac
  11766. else
  11767. ld_shlibs=no
  11768. fi
  11769. ;;
  11770. netbsd* | netbsdelf*-gnu)
  11771. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11772. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  11773. wlarc=
  11774. else
  11775. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  11776. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  11777. fi
  11778. ;;
  11779. solaris*)
  11780. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  11781. ld_shlibs=no
  11782. cat <<_LT_EOF 1>&2
  11783. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  11784. *** create shared libraries on Solaris systems. Therefore, libtool
  11785. *** is disabling shared libraries support. We urge you to upgrade GNU
  11786. *** binutils to release 2.9.1 or newer. Another option is to modify
  11787. *** your PATH or compiler configuration so that the native linker is
  11788. *** used, and then restart.
  11789. _LT_EOF
  11790. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11791. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  11792. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  11793. else
  11794. ld_shlibs=no
  11795. fi
  11796. ;;
  11797. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  11798. case `$LD -v 2>&1` in
  11799. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  11800. ld_shlibs=no
  11801. cat <<_LT_EOF 1>&2
  11802. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  11803. *** reliably create shared libraries on SCO systems. Therefore, libtool
  11804. *** is disabling shared libraries support. We urge you to upgrade GNU
  11805. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  11806. *** your PATH or compiler configuration so that the native linker is
  11807. *** used, and then restart.
  11808. _LT_EOF
  11809. ;;
  11810. *)
  11811. # For security reasons, it is highly recommended that you always
  11812. # use absolute paths for naming shared libraries, and exclude the
  11813. # DT_RUNPATH tag from executables and libraries. But doing so
  11814. # requires that you compile everything twice, which is a pain.
  11815. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11816. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  11817. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  11818. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  11819. else
  11820. ld_shlibs=no
  11821. fi
  11822. ;;
  11823. esac
  11824. ;;
  11825. sunos4*)
  11826. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  11827. wlarc=
  11828. hardcode_direct=yes
  11829. hardcode_shlibpath_var=no
  11830. ;;
  11831. *)
  11832. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11833. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  11834. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  11835. else
  11836. ld_shlibs=no
  11837. fi
  11838. ;;
  11839. esac
  11840. if test no = "$ld_shlibs"; then
  11841. runpath_var=
  11842. hardcode_libdir_flag_spec=
  11843. export_dynamic_flag_spec=
  11844. whole_archive_flag_spec=
  11845. fi
  11846. else
  11847. # PORTME fill in a description of your system's linker (not GNU ld)
  11848. case $host_os in
  11849. aix3*)
  11850. allow_undefined_flag=unsupported
  11851. always_export_symbols=yes
  11852. 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'
  11853. # Note: this linker hardcodes the directories in LIBPATH if there
  11854. # are no directories specified by -L.
  11855. hardcode_minus_L=yes
  11856. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  11857. # Neither direct hardcoding nor static linking is supported with a
  11858. # broken collect2.
  11859. hardcode_direct=unsupported
  11860. fi
  11861. ;;
  11862. aix[4-9]*)
  11863. if test ia64 = "$host_cpu"; then
  11864. # On IA64, the linker does run time linking by default, so we don't
  11865. # have to do anything special.
  11866. aix_use_runtimelinking=no
  11867. exp_sym_flag='-Bexport'
  11868. no_entry_flag=
  11869. else
  11870. # If we're using GNU nm, then we don't want the "-C" option.
  11871. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  11872. # Without the "-l" option, or with the "-B" option, AIX nm treats
  11873. # weak defined symbols like other global defined symbols, whereas
  11874. # GNU nm marks them as "W".
  11875. # While the 'weak' keyword is ignored in the Export File, we need
  11876. # it in the Import File for the 'aix-soname' feature, so we have
  11877. # to replace the "-B" option with "-P" for AIX nm.
  11878. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  11879. 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'
  11880. else
  11881. 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 == "L") || (\$ 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'
  11882. fi
  11883. aix_use_runtimelinking=no
  11884. # Test if we are trying to use run time linking or normal
  11885. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11886. # have runtime linking enabled, and use it for executables.
  11887. # For shared libraries, we enable/disable runtime linking
  11888. # depending on the kind of the shared library created -
  11889. # when "with_aix_soname,aix_use_runtimelinking" is:
  11890. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  11891. # "aix,yes" lib.so shared, rtl:yes, for executables
  11892. # lib.a static archive
  11893. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  11894. # lib.a(lib.so.V) shared, rtl:no, for executables
  11895. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  11896. # lib.a(lib.so.V) shared, rtl:no
  11897. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  11898. # lib.a static archive
  11899. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  11900. for ld_flag in $LDFLAGS; do
  11901. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  11902. aix_use_runtimelinking=yes
  11903. break
  11904. fi
  11905. done
  11906. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  11907. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  11908. # so we don't have lib.a shared libs to link our executables.
  11909. # We have to force runtime linking in this case.
  11910. aix_use_runtimelinking=yes
  11911. LDFLAGS="$LDFLAGS -Wl,-brtl"
  11912. fi
  11913. ;;
  11914. esac
  11915. exp_sym_flag='-bexport'
  11916. no_entry_flag='-bnoentry'
  11917. fi
  11918. # When large executables or shared objects are built, AIX ld can
  11919. # have problems creating the table of contents. If linking a library
  11920. # or program results in "error TOC overflow" add -mminimal-toc to
  11921. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11922. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11923. archive_cmds=''
  11924. hardcode_direct=yes
  11925. hardcode_direct_absolute=yes
  11926. hardcode_libdir_separator=':'
  11927. link_all_deplibs=yes
  11928. file_list_spec='$wl-f,'
  11929. case $with_aix_soname,$aix_use_runtimelinking in
  11930. aix,*) ;; # traditional, no import file
  11931. svr4,* | *,yes) # use import file
  11932. # The Import File defines what to hardcode.
  11933. hardcode_direct=no
  11934. hardcode_direct_absolute=no
  11935. ;;
  11936. esac
  11937. if test yes = "$GCC"; then
  11938. case $host_os in aix4.[012]|aix4.[012].*)
  11939. # We only want to do this on AIX 4.2 and lower, the check
  11940. # below for broken collect2 doesn't work under 4.3+
  11941. collect2name=`$CC -print-prog-name=collect2`
  11942. if test -f "$collect2name" &&
  11943. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  11944. then
  11945. # We have reworked collect2
  11946. :
  11947. else
  11948. # We have old collect2
  11949. hardcode_direct=unsupported
  11950. # It fails to find uninstalled libraries when the uninstalled
  11951. # path is not listed in the libpath. Setting hardcode_minus_L
  11952. # to unsupported forces relinking
  11953. hardcode_minus_L=yes
  11954. hardcode_libdir_flag_spec='-L$libdir'
  11955. hardcode_libdir_separator=
  11956. fi
  11957. ;;
  11958. esac
  11959. shared_flag='-shared'
  11960. if test yes = "$aix_use_runtimelinking"; then
  11961. shared_flag="$shared_flag "'$wl-G'
  11962. fi
  11963. # Need to ensure runtime linking is disabled for the traditional
  11964. # shared library, or the linker may eventually find shared libraries
  11965. # /with/ Import File - we do not want to mix them.
  11966. shared_flag_aix='-shared'
  11967. shared_flag_svr4='-shared $wl-G'
  11968. else
  11969. # not using gcc
  11970. if test ia64 = "$host_cpu"; then
  11971. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11972. # chokes on -Wl,-G. The following line is correct:
  11973. shared_flag='-G'
  11974. else
  11975. if test yes = "$aix_use_runtimelinking"; then
  11976. shared_flag='$wl-G'
  11977. else
  11978. shared_flag='$wl-bM:SRE'
  11979. fi
  11980. shared_flag_aix='$wl-bM:SRE'
  11981. shared_flag_svr4='$wl-G'
  11982. fi
  11983. fi
  11984. export_dynamic_flag_spec='$wl-bexpall'
  11985. # It seems that -bexpall does not export symbols beginning with
  11986. # underscore (_), so it is better to generate a list of symbols to export.
  11987. always_export_symbols=yes
  11988. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  11989. # Warning - without using the other runtime loading flags (-brtl),
  11990. # -berok will link without error, but may produce a broken library.
  11991. allow_undefined_flag='-berok'
  11992. # Determine the default libpath from the value encoded in an
  11993. # empty executable.
  11994. if test set = "${lt_cv_aix_libpath+set}"; then
  11995. aix_libpath=$lt_cv_aix_libpath
  11996. else
  11997. if test ${lt_cv_aix_libpath_+y}
  11998. then :
  11999. printf %s "(cached) " >&6
  12000. else $as_nop
  12001. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12002. /* end confdefs.h. */
  12003. int main (void)
  12004. {
  12005. ;
  12006. return 0;
  12007. }
  12008. _ACEOF
  12009. if ac_fn_c_try_link "$LINENO"
  12010. then :
  12011. lt_aix_libpath_sed='
  12012. /Import File Strings/,/^$/ {
  12013. /^0/ {
  12014. s/^0 *\([^ ]*\) *$/\1/
  12015. p
  12016. }
  12017. }'
  12018. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12019. # Check for a 64-bit object if we didn't find anything.
  12020. if test -z "$lt_cv_aix_libpath_"; then
  12021. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12022. fi
  12023. fi
  12024. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12025. conftest$ac_exeext conftest.$ac_ext
  12026. if test -z "$lt_cv_aix_libpath_"; then
  12027. lt_cv_aix_libpath_=/usr/lib:/lib
  12028. fi
  12029. fi
  12030. aix_libpath=$lt_cv_aix_libpath_
  12031. fi
  12032. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  12033. 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
  12034. else
  12035. if test ia64 = "$host_cpu"; then
  12036. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  12037. allow_undefined_flag="-z nodefs"
  12038. 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"
  12039. else
  12040. # Determine the default libpath from the value encoded in an
  12041. # empty executable.
  12042. if test set = "${lt_cv_aix_libpath+set}"; then
  12043. aix_libpath=$lt_cv_aix_libpath
  12044. else
  12045. if test ${lt_cv_aix_libpath_+y}
  12046. then :
  12047. printf %s "(cached) " >&6
  12048. else $as_nop
  12049. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12050. /* end confdefs.h. */
  12051. int main (void)
  12052. {
  12053. ;
  12054. return 0;
  12055. }
  12056. _ACEOF
  12057. if ac_fn_c_try_link "$LINENO"
  12058. then :
  12059. lt_aix_libpath_sed='
  12060. /Import File Strings/,/^$/ {
  12061. /^0/ {
  12062. s/^0 *\([^ ]*\) *$/\1/
  12063. p
  12064. }
  12065. }'
  12066. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12067. # Check for a 64-bit object if we didn't find anything.
  12068. if test -z "$lt_cv_aix_libpath_"; then
  12069. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12070. fi
  12071. fi
  12072. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12073. conftest$ac_exeext conftest.$ac_ext
  12074. if test -z "$lt_cv_aix_libpath_"; then
  12075. lt_cv_aix_libpath_=/usr/lib:/lib
  12076. fi
  12077. fi
  12078. aix_libpath=$lt_cv_aix_libpath_
  12079. fi
  12080. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  12081. # Warning - without using the other run time loading flags,
  12082. # -berok will link without error, but may produce a broken library.
  12083. no_undefined_flag=' $wl-bernotok'
  12084. allow_undefined_flag=' $wl-berok'
  12085. if test yes = "$with_gnu_ld"; then
  12086. # We only use this code for GNU lds that support --whole-archive.
  12087. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  12088. else
  12089. # Exported symbols can be pulled into shared objects from archives
  12090. whole_archive_flag_spec='$convenience'
  12091. fi
  12092. archive_cmds_need_lc=yes
  12093. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  12094. # -brtl affects multiple linker settings, -berok does not and is overridden later
  12095. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  12096. if test svr4 != "$with_aix_soname"; then
  12097. # This is similar to how AIX traditionally builds its shared libraries.
  12098. 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'
  12099. fi
  12100. if test aix != "$with_aix_soname"; then
  12101. 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'
  12102. else
  12103. # used by -dlpreopen to get the symbols
  12104. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  12105. fi
  12106. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  12107. fi
  12108. fi
  12109. ;;
  12110. amigaos*)
  12111. case $host_cpu in
  12112. powerpc)
  12113. # see comment about AmigaOS4 .so support
  12114. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12115. archive_expsym_cmds=''
  12116. ;;
  12117. m68k)
  12118. 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)'
  12119. hardcode_libdir_flag_spec='-L$libdir'
  12120. hardcode_minus_L=yes
  12121. ;;
  12122. esac
  12123. ;;
  12124. bsdi[45]*)
  12125. export_dynamic_flag_spec=-rdynamic
  12126. ;;
  12127. cygwin* | mingw* | pw32* | cegcc*)
  12128. # When not using gcc, we currently assume that we are using
  12129. # Microsoft Visual C++ or Intel C++ Compiler.
  12130. # hardcode_libdir_flag_spec is actually meaningless, as there is
  12131. # no search path for DLLs.
  12132. case $cc_basename in
  12133. cl* | icl*)
  12134. # Native MSVC or ICC
  12135. hardcode_libdir_flag_spec=' '
  12136. allow_undefined_flag=unsupported
  12137. always_export_symbols=yes
  12138. file_list_spec='@'
  12139. # Tell ltmain to make .lib files, not .a files.
  12140. libext=lib
  12141. # Tell ltmain to make .dll files, not .so files.
  12142. shrext_cmds=.dll
  12143. # FIXME: Setting linknames here is a bad hack.
  12144. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  12145. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  12146. cp "$export_symbols" "$output_objdir/$soname.def";
  12147. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  12148. else
  12149. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  12150. fi~
  12151. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  12152. linknames='
  12153. # The linker will not automatically build a static lib if we build a DLL.
  12154. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  12155. enable_shared_with_static_runtimes=yes
  12156. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  12157. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  12158. # Don't use ranlib
  12159. old_postinstall_cmds='chmod 644 $oldlib'
  12160. postlink_cmds='lt_outputfile="@OUTPUT@"~
  12161. lt_tool_outputfile="@TOOL_OUTPUT@"~
  12162. case $lt_outputfile in
  12163. *.exe|*.EXE) ;;
  12164. *)
  12165. lt_outputfile=$lt_outputfile.exe
  12166. lt_tool_outputfile=$lt_tool_outputfile.exe
  12167. ;;
  12168. esac~
  12169. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  12170. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  12171. $RM "$lt_outputfile.manifest";
  12172. fi'
  12173. ;;
  12174. *)
  12175. # Assume MSVC and ICC wrapper
  12176. hardcode_libdir_flag_spec=' '
  12177. allow_undefined_flag=unsupported
  12178. # Tell ltmain to make .lib files, not .a files.
  12179. libext=lib
  12180. # Tell ltmain to make .dll files, not .so files.
  12181. shrext_cmds=.dll
  12182. # FIXME: Setting linknames here is a bad hack.
  12183. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  12184. # The linker will automatically build a .lib file if we build a DLL.
  12185. old_archive_from_new_cmds='true'
  12186. # FIXME: Should let the user specify the lib program.
  12187. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  12188. enable_shared_with_static_runtimes=yes
  12189. ;;
  12190. esac
  12191. ;;
  12192. darwin* | rhapsody*)
  12193. archive_cmds_need_lc=no
  12194. hardcode_direct=no
  12195. hardcode_automatic=yes
  12196. hardcode_shlibpath_var=unsupported
  12197. if test yes = "$lt_cv_ld_force_load"; then
  12198. 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\"`'
  12199. else
  12200. whole_archive_flag_spec=''
  12201. fi
  12202. link_all_deplibs=yes
  12203. allow_undefined_flag=$_lt_dar_allow_undefined
  12204. case $cc_basename in
  12205. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  12206. *) _lt_dar_can_shared=$GCC ;;
  12207. esac
  12208. if test yes = "$_lt_dar_can_shared"; then
  12209. output_verbose_link_cmd=func_echo_all
  12210. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  12211. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  12212. 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"
  12213. 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"
  12214. else
  12215. ld_shlibs=no
  12216. fi
  12217. ;;
  12218. dgux*)
  12219. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12220. hardcode_libdir_flag_spec='-L$libdir'
  12221. hardcode_shlibpath_var=no
  12222. ;;
  12223. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  12224. # support. Future versions do this automatically, but an explicit c++rt0.o
  12225. # does not break anything, and helps significantly (at the cost of a little
  12226. # extra space).
  12227. freebsd2.2*)
  12228. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  12229. hardcode_libdir_flag_spec='-R$libdir'
  12230. hardcode_direct=yes
  12231. hardcode_shlibpath_var=no
  12232. ;;
  12233. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  12234. freebsd2.*)
  12235. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  12236. hardcode_direct=yes
  12237. hardcode_minus_L=yes
  12238. hardcode_shlibpath_var=no
  12239. ;;
  12240. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  12241. freebsd* | dragonfly* | midnightbsd*)
  12242. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  12243. hardcode_libdir_flag_spec='-R$libdir'
  12244. hardcode_direct=yes
  12245. hardcode_shlibpath_var=no
  12246. ;;
  12247. hpux9*)
  12248. if test yes = "$GCC"; then
  12249. 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'
  12250. else
  12251. 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'
  12252. fi
  12253. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  12254. hardcode_libdir_separator=:
  12255. hardcode_direct=yes
  12256. # hardcode_minus_L: Not really in the search PATH,
  12257. # but as the default location of the library.
  12258. hardcode_minus_L=yes
  12259. export_dynamic_flag_spec='$wl-E'
  12260. ;;
  12261. hpux10*)
  12262. if test yes,no = "$GCC,$with_gnu_ld"; then
  12263. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  12264. else
  12265. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  12266. fi
  12267. if test no = "$with_gnu_ld"; then
  12268. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  12269. hardcode_libdir_separator=:
  12270. hardcode_direct=yes
  12271. hardcode_direct_absolute=yes
  12272. export_dynamic_flag_spec='$wl-E'
  12273. # hardcode_minus_L: Not really in the search PATH,
  12274. # but as the default location of the library.
  12275. hardcode_minus_L=yes
  12276. fi
  12277. ;;
  12278. hpux11*)
  12279. if test yes,no = "$GCC,$with_gnu_ld"; then
  12280. case $host_cpu in
  12281. hppa*64*)
  12282. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  12283. ;;
  12284. ia64*)
  12285. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  12286. ;;
  12287. *)
  12288. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  12289. ;;
  12290. esac
  12291. else
  12292. case $host_cpu in
  12293. hppa*64*)
  12294. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  12295. ;;
  12296. ia64*)
  12297. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  12298. ;;
  12299. *)
  12300. # Older versions of the 11.00 compiler do not understand -b yet
  12301. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  12302. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  12303. printf %s "checking if $CC understands -b... " >&6; }
  12304. if test ${lt_cv_prog_compiler__b+y}
  12305. then :
  12306. printf %s "(cached) " >&6
  12307. else $as_nop
  12308. lt_cv_prog_compiler__b=no
  12309. save_LDFLAGS=$LDFLAGS
  12310. LDFLAGS="$LDFLAGS -b"
  12311. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12312. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12313. # The linker can only warn and ignore the option if not recognized
  12314. # So say no if there are warnings
  12315. if test -s conftest.err; then
  12316. # Append any errors to the config.log.
  12317. cat conftest.err 1>&5
  12318. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12319. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12320. if diff conftest.exp conftest.er2 >/dev/null; then
  12321. lt_cv_prog_compiler__b=yes
  12322. fi
  12323. else
  12324. lt_cv_prog_compiler__b=yes
  12325. fi
  12326. fi
  12327. $RM -r conftest*
  12328. LDFLAGS=$save_LDFLAGS
  12329. fi
  12330. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  12331. printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
  12332. if test yes = "$lt_cv_prog_compiler__b"; then
  12333. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  12334. else
  12335. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  12336. fi
  12337. ;;
  12338. esac
  12339. fi
  12340. if test no = "$with_gnu_ld"; then
  12341. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  12342. hardcode_libdir_separator=:
  12343. case $host_cpu in
  12344. hppa*64*|ia64*)
  12345. hardcode_direct=no
  12346. hardcode_shlibpath_var=no
  12347. ;;
  12348. *)
  12349. hardcode_direct=yes
  12350. hardcode_direct_absolute=yes
  12351. export_dynamic_flag_spec='$wl-E'
  12352. # hardcode_minus_L: Not really in the search PATH,
  12353. # but as the default location of the library.
  12354. hardcode_minus_L=yes
  12355. ;;
  12356. esac
  12357. fi
  12358. ;;
  12359. irix5* | irix6* | nonstopux*)
  12360. if test yes = "$GCC"; then
  12361. 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'
  12362. # Try to use the -exported_symbol ld option, if it does not
  12363. # work, assume that -exports_file does not work either and
  12364. # implicitly export all symbols.
  12365. # This should be the same for all languages, so no per-tag cache variable.
  12366. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  12367. printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  12368. if test ${lt_cv_irix_exported_symbol+y}
  12369. then :
  12370. printf %s "(cached) " >&6
  12371. else $as_nop
  12372. save_LDFLAGS=$LDFLAGS
  12373. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  12374. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12375. /* end confdefs.h. */
  12376. int foo (void) { return 0; }
  12377. _ACEOF
  12378. if ac_fn_c_try_link "$LINENO"
  12379. then :
  12380. lt_cv_irix_exported_symbol=yes
  12381. else $as_nop
  12382. lt_cv_irix_exported_symbol=no
  12383. fi
  12384. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12385. conftest$ac_exeext conftest.$ac_ext
  12386. LDFLAGS=$save_LDFLAGS
  12387. fi
  12388. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  12389. printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
  12390. if test yes = "$lt_cv_irix_exported_symbol"; then
  12391. 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'
  12392. fi
  12393. link_all_deplibs=no
  12394. else
  12395. 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'
  12396. 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'
  12397. fi
  12398. archive_cmds_need_lc='no'
  12399. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  12400. hardcode_libdir_separator=:
  12401. inherit_rpath=yes
  12402. link_all_deplibs=yes
  12403. ;;
  12404. linux*)
  12405. case $cc_basename in
  12406. tcc*)
  12407. # Fabrice Bellard et al's Tiny C Compiler
  12408. ld_shlibs=yes
  12409. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  12410. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  12411. ;;
  12412. esac
  12413. ;;
  12414. netbsd* | netbsdelf*-gnu)
  12415. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12416. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  12417. else
  12418. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  12419. fi
  12420. hardcode_libdir_flag_spec='-R$libdir'
  12421. hardcode_direct=yes
  12422. hardcode_shlibpath_var=no
  12423. ;;
  12424. newsos6)
  12425. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12426. hardcode_direct=yes
  12427. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  12428. hardcode_libdir_separator=:
  12429. hardcode_shlibpath_var=no
  12430. ;;
  12431. *nto* | *qnx*)
  12432. ;;
  12433. openbsd* | bitrig*)
  12434. if test -f /usr/libexec/ld.so; then
  12435. hardcode_direct=yes
  12436. hardcode_shlibpath_var=no
  12437. hardcode_direct_absolute=yes
  12438. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  12439. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  12440. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  12441. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  12442. export_dynamic_flag_spec='$wl-E'
  12443. else
  12444. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  12445. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  12446. fi
  12447. else
  12448. ld_shlibs=no
  12449. fi
  12450. ;;
  12451. os2*)
  12452. hardcode_libdir_flag_spec='-L$libdir'
  12453. hardcode_minus_L=yes
  12454. allow_undefined_flag=unsupported
  12455. shrext_cmds=.dll
  12456. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  12457. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  12458. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  12459. $ECHO EXPORTS >> $output_objdir/$libname.def~
  12460. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  12461. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  12462. emximp -o $lib $output_objdir/$libname.def'
  12463. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  12464. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  12465. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  12466. $ECHO EXPORTS >> $output_objdir/$libname.def~
  12467. prefix_cmds="$SED"~
  12468. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  12469. prefix_cmds="$prefix_cmds -e 1d";
  12470. fi~
  12471. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  12472. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  12473. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  12474. emximp -o $lib $output_objdir/$libname.def'
  12475. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  12476. enable_shared_with_static_runtimes=yes
  12477. file_list_spec='@'
  12478. ;;
  12479. osf3*)
  12480. if test yes = "$GCC"; then
  12481. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  12482. 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'
  12483. else
  12484. allow_undefined_flag=' -expect_unresolved \*'
  12485. 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'
  12486. fi
  12487. archive_cmds_need_lc='no'
  12488. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  12489. hardcode_libdir_separator=:
  12490. ;;
  12491. osf4* | osf5*) # as osf3* with the addition of -msym flag
  12492. if test yes = "$GCC"; then
  12493. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  12494. 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'
  12495. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  12496. else
  12497. allow_undefined_flag=' -expect_unresolved \*'
  12498. 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'
  12499. 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~
  12500. $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'
  12501. # Both c and cxx compiler support -rpath directly
  12502. hardcode_libdir_flag_spec='-rpath $libdir'
  12503. fi
  12504. archive_cmds_need_lc='no'
  12505. hardcode_libdir_separator=:
  12506. ;;
  12507. solaris*)
  12508. no_undefined_flag=' -z defs'
  12509. if test yes = "$GCC"; then
  12510. wlarc='$wl'
  12511. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  12512. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12513. $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'
  12514. else
  12515. case `$CC -V 2>&1` in
  12516. *"Compilers 5.0"*)
  12517. wlarc=''
  12518. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12519. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12520. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  12521. ;;
  12522. *)
  12523. wlarc='$wl'
  12524. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  12525. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12526. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  12527. ;;
  12528. esac
  12529. fi
  12530. hardcode_libdir_flag_spec='-R$libdir'
  12531. hardcode_shlibpath_var=no
  12532. case $host_os in
  12533. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12534. *)
  12535. # The compiler driver will combine and reorder linker options,
  12536. # but understands '-z linker_flag'. GCC discards it without '$wl',
  12537. # but is careful enough not to reorder.
  12538. # Supported since Solaris 2.6 (maybe 2.5.1?)
  12539. if test yes = "$GCC"; then
  12540. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  12541. else
  12542. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  12543. fi
  12544. ;;
  12545. esac
  12546. link_all_deplibs=yes
  12547. ;;
  12548. sunos4*)
  12549. if test sequent = "$host_vendor"; then
  12550. # Use $CC to link under sequent, because it throws in some extra .o
  12551. # files that make .init and .fini sections work.
  12552. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  12553. else
  12554. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  12555. fi
  12556. hardcode_libdir_flag_spec='-L$libdir'
  12557. hardcode_direct=yes
  12558. hardcode_minus_L=yes
  12559. hardcode_shlibpath_var=no
  12560. ;;
  12561. sysv4)
  12562. case $host_vendor in
  12563. sni)
  12564. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12565. hardcode_direct=yes # is this really true???
  12566. ;;
  12567. siemens)
  12568. ## LD is ld it makes a PLAMLIB
  12569. ## CC just makes a GrossModule.
  12570. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  12571. reload_cmds='$CC -r -o $output$reload_objs'
  12572. hardcode_direct=no
  12573. ;;
  12574. motorola)
  12575. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12576. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  12577. ;;
  12578. esac
  12579. runpath_var='LD_RUN_PATH'
  12580. hardcode_shlibpath_var=no
  12581. ;;
  12582. sysv4.3*)
  12583. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12584. hardcode_shlibpath_var=no
  12585. export_dynamic_flag_spec='-Bexport'
  12586. ;;
  12587. sysv4*MP*)
  12588. if test -d /usr/nec; then
  12589. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12590. hardcode_shlibpath_var=no
  12591. runpath_var=LD_RUN_PATH
  12592. hardcode_runpath_var=yes
  12593. ld_shlibs=yes
  12594. fi
  12595. ;;
  12596. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  12597. no_undefined_flag='$wl-z,text'
  12598. archive_cmds_need_lc=no
  12599. hardcode_shlibpath_var=no
  12600. runpath_var='LD_RUN_PATH'
  12601. if test yes = "$GCC"; then
  12602. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12603. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12604. else
  12605. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12606. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12607. fi
  12608. ;;
  12609. sysv5* | sco3.2v5* | sco5v6*)
  12610. # Note: We CANNOT use -z defs as we might desire, because we do not
  12611. # link with -lc, and that would cause any symbols used from libc to
  12612. # always be unresolved, which means just about no library would
  12613. # ever link correctly. If we're not using GNU ld we use -z text
  12614. # though, which does catch some bad symbols but isn't as heavy-handed
  12615. # as -z defs.
  12616. no_undefined_flag='$wl-z,text'
  12617. allow_undefined_flag='$wl-z,nodefs'
  12618. archive_cmds_need_lc=no
  12619. hardcode_shlibpath_var=no
  12620. hardcode_libdir_flag_spec='$wl-R,$libdir'
  12621. hardcode_libdir_separator=':'
  12622. link_all_deplibs=yes
  12623. export_dynamic_flag_spec='$wl-Bexport'
  12624. runpath_var='LD_RUN_PATH'
  12625. if test yes = "$GCC"; then
  12626. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12627. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12628. else
  12629. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12630. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12631. fi
  12632. ;;
  12633. uts4*)
  12634. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12635. hardcode_libdir_flag_spec='-L$libdir'
  12636. hardcode_shlibpath_var=no
  12637. ;;
  12638. *)
  12639. ld_shlibs=no
  12640. ;;
  12641. esac
  12642. if test sni = "$host_vendor"; then
  12643. case $host in
  12644. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  12645. export_dynamic_flag_spec='$wl-Blargedynsym'
  12646. ;;
  12647. esac
  12648. fi
  12649. fi
  12650. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  12651. printf "%s\n" "$ld_shlibs" >&6; }
  12652. test no = "$ld_shlibs" && can_build_shared=no
  12653. with_gnu_ld=$with_gnu_ld
  12654. #
  12655. # Do we need to explicitly link libc?
  12656. #
  12657. case "x$archive_cmds_need_lc" in
  12658. x|xyes)
  12659. # Assume -lc should be added
  12660. archive_cmds_need_lc=yes
  12661. if test yes,yes = "$GCC,$enable_shared"; then
  12662. case $archive_cmds in
  12663. *'~'*)
  12664. # FIXME: we may have to deal with multi-command sequences.
  12665. ;;
  12666. '$CC '*)
  12667. # Test whether the compiler implicitly links with -lc since on some
  12668. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12669. # to ld, don't add -lc before -lgcc.
  12670. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12671. printf %s "checking whether -lc should be explicitly linked in... " >&6; }
  12672. if test ${lt_cv_archive_cmds_need_lc+y}
  12673. then :
  12674. printf %s "(cached) " >&6
  12675. else $as_nop
  12676. $RM conftest*
  12677. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12678. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12679. (eval $ac_compile) 2>&5
  12680. ac_status=$?
  12681. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12682. test $ac_status = 0; } 2>conftest.err; then
  12683. soname=conftest
  12684. lib=conftest
  12685. libobjs=conftest.$ac_objext
  12686. deplibs=
  12687. wl=$lt_prog_compiler_wl
  12688. pic_flag=$lt_prog_compiler_pic
  12689. compiler_flags=-v
  12690. linker_flags=-v
  12691. verstring=
  12692. output_objdir=.
  12693. libname=conftest
  12694. lt_save_allow_undefined_flag=$allow_undefined_flag
  12695. allow_undefined_flag=
  12696. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12697. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12698. ac_status=$?
  12699. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12700. test $ac_status = 0; }
  12701. then
  12702. lt_cv_archive_cmds_need_lc=no
  12703. else
  12704. lt_cv_archive_cmds_need_lc=yes
  12705. fi
  12706. allow_undefined_flag=$lt_save_allow_undefined_flag
  12707. else
  12708. cat conftest.err 1>&5
  12709. fi
  12710. $RM conftest*
  12711. fi
  12712. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  12713. printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
  12714. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  12715. ;;
  12716. esac
  12717. fi
  12718. ;;
  12719. esac
  12720. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12721. printf %s "checking dynamic linker characteristics... " >&6; }
  12722. if test yes = "$GCC"; then
  12723. case $host_os in
  12724. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  12725. *) lt_awk_arg='/^libraries:/' ;;
  12726. esac
  12727. case $host_os in
  12728. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  12729. *) lt_sed_strip_eq='s|=/|/|g' ;;
  12730. esac
  12731. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  12732. case $lt_search_path_spec in
  12733. *\;*)
  12734. # if the path contains ";" then we assume it to be the separator
  12735. # otherwise default to the standard path separator (i.e. ":") - it is
  12736. # assumed that no part of a normal pathname contains ";" but that should
  12737. # okay in the real world where ";" in dirpaths is itself problematic.
  12738. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  12739. ;;
  12740. *)
  12741. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  12742. ;;
  12743. esac
  12744. # Ok, now we have the path, separated by spaces, we can step through it
  12745. # and add multilib dir if necessary...
  12746. lt_tmp_lt_search_path_spec=
  12747. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  12748. # ...but if some path component already ends with the multilib dir we assume
  12749. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  12750. case "$lt_multi_os_dir; $lt_search_path_spec " in
  12751. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  12752. lt_multi_os_dir=
  12753. ;;
  12754. esac
  12755. for lt_sys_path in $lt_search_path_spec; do
  12756. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  12757. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  12758. elif test -n "$lt_multi_os_dir"; then
  12759. test -d "$lt_sys_path" && \
  12760. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  12761. fi
  12762. done
  12763. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  12764. BEGIN {RS = " "; FS = "/|\n";} {
  12765. lt_foo = "";
  12766. lt_count = 0;
  12767. for (lt_i = NF; lt_i > 0; lt_i--) {
  12768. if ($lt_i != "" && $lt_i != ".") {
  12769. if ($lt_i == "..") {
  12770. lt_count++;
  12771. } else {
  12772. if (lt_count == 0) {
  12773. lt_foo = "/" $lt_i lt_foo;
  12774. } else {
  12775. lt_count--;
  12776. }
  12777. }
  12778. }
  12779. }
  12780. if (lt_foo != "") { lt_freq[lt_foo]++; }
  12781. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  12782. }'`
  12783. # AWK program above erroneously prepends '/' to C:/dos/paths
  12784. # for these hosts.
  12785. case $host_os in
  12786. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  12787. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  12788. esac
  12789. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  12790. else
  12791. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  12792. fi
  12793. library_names_spec=
  12794. libname_spec='lib$name'
  12795. soname_spec=
  12796. shrext_cmds=.so
  12797. postinstall_cmds=
  12798. postuninstall_cmds=
  12799. finish_cmds=
  12800. finish_eval=
  12801. shlibpath_var=
  12802. shlibpath_overrides_runpath=unknown
  12803. version_type=none
  12804. dynamic_linker="$host_os ld.so"
  12805. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12806. need_lib_prefix=unknown
  12807. hardcode_into_libs=no
  12808. # when you set need_version to no, make sure it does not cause -set_version
  12809. # flags to be left without arguments
  12810. need_version=unknown
  12811. case $host_os in
  12812. aix3*)
  12813. version_type=linux # correct to gnu/linux during the next big refactor
  12814. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  12815. shlibpath_var=LIBPATH
  12816. # AIX 3 has no versioning support, so we append a major version to the name.
  12817. soname_spec='$libname$release$shared_ext$major'
  12818. ;;
  12819. aix[4-9]*)
  12820. version_type=linux # correct to gnu/linux during the next big refactor
  12821. need_lib_prefix=no
  12822. need_version=no
  12823. hardcode_into_libs=yes
  12824. if test ia64 = "$host_cpu"; then
  12825. # AIX 5 supports IA64
  12826. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  12827. shlibpath_var=LD_LIBRARY_PATH
  12828. else
  12829. # With GCC up to 2.95.x, collect2 would create an import file
  12830. # for dependence libraries. The import file would start with
  12831. # the line '#! .'. This would cause the generated library to
  12832. # depend on '.', always an invalid library. This was fixed in
  12833. # development snapshots of GCC prior to 3.0.
  12834. case $host_os in
  12835. aix4 | aix4.[01] | aix4.[01].*)
  12836. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12837. echo ' yes '
  12838. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  12839. :
  12840. else
  12841. can_build_shared=no
  12842. fi
  12843. ;;
  12844. esac
  12845. # Using Import Files as archive members, it is possible to support
  12846. # filename-based versioning of shared library archives on AIX. While
  12847. # this would work for both with and without runtime linking, it will
  12848. # prevent static linking of such archives. So we do filename-based
  12849. # shared library versioning with .so extension only, which is used
  12850. # when both runtime linking and shared linking is enabled.
  12851. # Unfortunately, runtime linking may impact performance, so we do
  12852. # not want this to be the default eventually. Also, we use the
  12853. # versioned .so libs for executables only if there is the -brtl
  12854. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  12855. # To allow for filename-based versioning support, we need to create
  12856. # libNAME.so.V as an archive file, containing:
  12857. # *) an Import File, referring to the versioned filename of the
  12858. # archive as well as the shared archive member, telling the
  12859. # bitwidth (32 or 64) of that shared object, and providing the
  12860. # list of exported symbols of that shared object, eventually
  12861. # decorated with the 'weak' keyword
  12862. # *) the shared object with the F_LOADONLY flag set, to really avoid
  12863. # it being seen by the linker.
  12864. # At run time we better use the real file rather than another symlink,
  12865. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  12866. case $with_aix_soname,$aix_use_runtimelinking in
  12867. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  12868. # soname into executable. Probably we can add versioning support to
  12869. # collect2, so additional links can be useful in future.
  12870. aix,yes) # traditional libtool
  12871. dynamic_linker='AIX unversionable lib.so'
  12872. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12873. # instead of lib<name>.a to let people know that these are not
  12874. # typical AIX shared libraries.
  12875. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  12876. ;;
  12877. aix,no) # traditional AIX only
  12878. dynamic_linker='AIX lib.a(lib.so.V)'
  12879. # We preserve .a as extension for shared libraries through AIX4.2
  12880. # and later when we are not doing run time linking.
  12881. library_names_spec='$libname$release.a $libname.a'
  12882. soname_spec='$libname$release$shared_ext$major'
  12883. ;;
  12884. svr4,*) # full svr4 only
  12885. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  12886. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  12887. # We do not specify a path in Import Files, so LIBPATH fires.
  12888. shlibpath_overrides_runpath=yes
  12889. ;;
  12890. *,yes) # both, prefer svr4
  12891. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  12892. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  12893. # unpreferred sharedlib libNAME.a needs extra handling
  12894. 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"'
  12895. 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"'
  12896. # We do not specify a path in Import Files, so LIBPATH fires.
  12897. shlibpath_overrides_runpath=yes
  12898. ;;
  12899. *,no) # both, prefer aix
  12900. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  12901. library_names_spec='$libname$release.a $libname.a'
  12902. soname_spec='$libname$release$shared_ext$major'
  12903. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  12904. 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)'
  12905. 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"'
  12906. ;;
  12907. esac
  12908. shlibpath_var=LIBPATH
  12909. fi
  12910. ;;
  12911. amigaos*)
  12912. case $host_cpu in
  12913. powerpc)
  12914. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12915. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12916. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  12917. ;;
  12918. m68k)
  12919. library_names_spec='$libname.ixlibrary $libname.a'
  12920. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12921. 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'
  12922. ;;
  12923. esac
  12924. ;;
  12925. beos*)
  12926. library_names_spec='$libname$shared_ext'
  12927. dynamic_linker="$host_os ld.so"
  12928. shlibpath_var=LIBRARY_PATH
  12929. ;;
  12930. bsdi[45]*)
  12931. version_type=linux # correct to gnu/linux during the next big refactor
  12932. need_version=no
  12933. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  12934. soname_spec='$libname$release$shared_ext$major'
  12935. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12936. shlibpath_var=LD_LIBRARY_PATH
  12937. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12938. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12939. # the default ld.so.conf also contains /usr/contrib/lib and
  12940. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12941. # libtool to hard-code these into programs
  12942. ;;
  12943. cygwin* | mingw* | pw32* | cegcc*)
  12944. version_type=windows
  12945. shrext_cmds=.dll
  12946. need_version=no
  12947. need_lib_prefix=no
  12948. case $GCC,$cc_basename in
  12949. yes,*)
  12950. # gcc
  12951. library_names_spec='$libname.dll.a'
  12952. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12953. postinstall_cmds='base_file=`basename \$file`~
  12954. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  12955. dldir=$destdir/`dirname \$dlpath`~
  12956. test -d \$dldir || mkdir -p \$dldir~
  12957. $install_prog $dir/$dlname \$dldir/$dlname~
  12958. chmod a+x \$dldir/$dlname~
  12959. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12960. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12961. fi'
  12962. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12963. dlpath=$dir/\$dldll~
  12964. $RM \$dlpath'
  12965. shlibpath_overrides_runpath=yes
  12966. case $host_os in
  12967. cygwin*)
  12968. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12969. soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  12970. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  12971. ;;
  12972. mingw* | cegcc*)
  12973. # MinGW DLLs use traditional 'lib' prefix
  12974. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  12975. ;;
  12976. pw32*)
  12977. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12978. library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  12979. ;;
  12980. esac
  12981. dynamic_linker='Win32 ld.exe'
  12982. ;;
  12983. *,cl* | *,icl*)
  12984. # Native MSVC or ICC
  12985. libname_spec='$name'
  12986. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  12987. library_names_spec='$libname.dll.lib'
  12988. case $build_os in
  12989. mingw*)
  12990. sys_lib_search_path_spec=
  12991. lt_save_ifs=$IFS
  12992. IFS=';'
  12993. for lt_path in $LIB
  12994. do
  12995. IFS=$lt_save_ifs
  12996. # Let DOS variable expansion print the short 8.3 style file name.
  12997. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  12998. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  12999. done
  13000. IFS=$lt_save_ifs
  13001. # Convert to MSYS style.
  13002. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  13003. ;;
  13004. cygwin*)
  13005. # Convert to unix form, then to dos form, then back to unix form
  13006. # but this time dos style (no spaces!) so that the unix form looks
  13007. # like /cygdrive/c/PROGRA~1:/cygdr...
  13008. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  13009. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  13010. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13011. ;;
  13012. *)
  13013. sys_lib_search_path_spec=$LIB
  13014. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  13015. # It is most probably a Windows format PATH.
  13016. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13017. else
  13018. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13019. fi
  13020. # FIXME: find the short name or the path components, as spaces are
  13021. # common. (e.g. "Program Files" -> "PROGRA~1")
  13022. ;;
  13023. esac
  13024. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13025. postinstall_cmds='base_file=`basename \$file`~
  13026. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  13027. dldir=$destdir/`dirname \$dlpath`~
  13028. test -d \$dldir || mkdir -p \$dldir~
  13029. $install_prog $dir/$dlname \$dldir/$dlname'
  13030. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13031. dlpath=$dir/\$dldll~
  13032. $RM \$dlpath'
  13033. shlibpath_overrides_runpath=yes
  13034. dynamic_linker='Win32 link.exe'
  13035. ;;
  13036. *)
  13037. # Assume MSVC and ICC wrapper
  13038. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  13039. dynamic_linker='Win32 ld.exe'
  13040. ;;
  13041. esac
  13042. # FIXME: first we should search . and the directory the executable is in
  13043. shlibpath_var=PATH
  13044. ;;
  13045. darwin* | rhapsody*)
  13046. dynamic_linker="$host_os dyld"
  13047. version_type=darwin
  13048. need_lib_prefix=no
  13049. need_version=no
  13050. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  13051. soname_spec='$libname$release$major$shared_ext'
  13052. shlibpath_overrides_runpath=yes
  13053. shlibpath_var=DYLD_LIBRARY_PATH
  13054. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  13055. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  13056. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  13057. ;;
  13058. dgux*)
  13059. version_type=linux # correct to gnu/linux during the next big refactor
  13060. need_lib_prefix=no
  13061. need_version=no
  13062. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13063. soname_spec='$libname$release$shared_ext$major'
  13064. shlibpath_var=LD_LIBRARY_PATH
  13065. ;;
  13066. freebsd* | dragonfly* | midnightbsd*)
  13067. # DragonFly does not have aout. When/if they implement a new
  13068. # versioning mechanism, adjust this.
  13069. if test -x /usr/bin/objformat; then
  13070. objformat=`/usr/bin/objformat`
  13071. else
  13072. case $host_os in
  13073. freebsd[23].*) objformat=aout ;;
  13074. *) objformat=elf ;;
  13075. esac
  13076. fi
  13077. version_type=freebsd-$objformat
  13078. case $version_type in
  13079. freebsd-elf*)
  13080. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13081. soname_spec='$libname$release$shared_ext$major'
  13082. need_version=no
  13083. need_lib_prefix=no
  13084. ;;
  13085. freebsd-*)
  13086. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  13087. need_version=yes
  13088. ;;
  13089. esac
  13090. shlibpath_var=LD_LIBRARY_PATH
  13091. case $host_os in
  13092. freebsd2.*)
  13093. shlibpath_overrides_runpath=yes
  13094. ;;
  13095. freebsd3.[01]* | freebsdelf3.[01]*)
  13096. shlibpath_overrides_runpath=yes
  13097. hardcode_into_libs=yes
  13098. ;;
  13099. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  13100. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  13101. shlibpath_overrides_runpath=no
  13102. hardcode_into_libs=yes
  13103. ;;
  13104. *) # from 4.6 on, and DragonFly
  13105. shlibpath_overrides_runpath=yes
  13106. hardcode_into_libs=yes
  13107. ;;
  13108. esac
  13109. ;;
  13110. haiku*)
  13111. version_type=linux # correct to gnu/linux during the next big refactor
  13112. need_lib_prefix=no
  13113. need_version=no
  13114. dynamic_linker="$host_os runtime_loader"
  13115. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13116. soname_spec='$libname$release$shared_ext$major'
  13117. shlibpath_var=LIBRARY_PATH
  13118. shlibpath_overrides_runpath=no
  13119. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  13120. hardcode_into_libs=yes
  13121. ;;
  13122. hpux9* | hpux10* | hpux11*)
  13123. # Give a soname corresponding to the major version so that dld.sl refuses to
  13124. # link against other versions.
  13125. version_type=sunos
  13126. need_lib_prefix=no
  13127. need_version=no
  13128. case $host_cpu in
  13129. ia64*)
  13130. shrext_cmds='.so'
  13131. hardcode_into_libs=yes
  13132. dynamic_linker="$host_os dld.so"
  13133. shlibpath_var=LD_LIBRARY_PATH
  13134. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13135. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13136. soname_spec='$libname$release$shared_ext$major'
  13137. if test 32 = "$HPUX_IA64_MODE"; then
  13138. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13139. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  13140. else
  13141. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13142. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  13143. fi
  13144. ;;
  13145. hppa*64*)
  13146. shrext_cmds='.sl'
  13147. hardcode_into_libs=yes
  13148. dynamic_linker="$host_os dld.sl"
  13149. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13150. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13151. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13152. soname_spec='$libname$release$shared_ext$major'
  13153. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13154. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13155. ;;
  13156. *)
  13157. shrext_cmds='.sl'
  13158. dynamic_linker="$host_os dld.sl"
  13159. shlibpath_var=SHLIB_PATH
  13160. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13161. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13162. soname_spec='$libname$release$shared_ext$major'
  13163. ;;
  13164. esac
  13165. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  13166. postinstall_cmds='chmod 555 $lib'
  13167. # or fails outright, so override atomically:
  13168. install_override_mode=555
  13169. ;;
  13170. interix[3-9]*)
  13171. version_type=linux # correct to gnu/linux during the next big refactor
  13172. need_lib_prefix=no
  13173. need_version=no
  13174. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13175. soname_spec='$libname$release$shared_ext$major'
  13176. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13177. shlibpath_var=LD_LIBRARY_PATH
  13178. shlibpath_overrides_runpath=no
  13179. hardcode_into_libs=yes
  13180. ;;
  13181. irix5* | irix6* | nonstopux*)
  13182. case $host_os in
  13183. nonstopux*) version_type=nonstopux ;;
  13184. *)
  13185. if test yes = "$lt_cv_prog_gnu_ld"; then
  13186. version_type=linux # correct to gnu/linux during the next big refactor
  13187. else
  13188. version_type=irix
  13189. fi ;;
  13190. esac
  13191. need_lib_prefix=no
  13192. need_version=no
  13193. soname_spec='$libname$release$shared_ext$major'
  13194. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  13195. case $host_os in
  13196. irix5* | nonstopux*)
  13197. libsuff= shlibsuff=
  13198. ;;
  13199. *)
  13200. case $LD in # libtool.m4 will add one of these switches to LD
  13201. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13202. libsuff= shlibsuff= libmagic=32-bit;;
  13203. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13204. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13205. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13206. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13207. *) libsuff= shlibsuff= libmagic=never-match;;
  13208. esac
  13209. ;;
  13210. esac
  13211. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13212. shlibpath_overrides_runpath=no
  13213. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  13214. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  13215. hardcode_into_libs=yes
  13216. ;;
  13217. # No shared lib support for Linux oldld, aout, or coff.
  13218. linux*oldld* | linux*aout* | linux*coff*)
  13219. dynamic_linker=no
  13220. ;;
  13221. linux*android*)
  13222. version_type=none # Android doesn't support versioned libraries.
  13223. need_lib_prefix=no
  13224. need_version=no
  13225. library_names_spec='$libname$release$shared_ext'
  13226. soname_spec='$libname$release$shared_ext'
  13227. finish_cmds=
  13228. shlibpath_var=LD_LIBRARY_PATH
  13229. shlibpath_overrides_runpath=yes
  13230. # This implies no fast_install, which is unacceptable.
  13231. # Some rework will be needed to allow for fast_install
  13232. # before this can be enabled.
  13233. hardcode_into_libs=yes
  13234. dynamic_linker='Android linker'
  13235. # Don't embed -rpath directories since the linker doesn't support them.
  13236. hardcode_libdir_flag_spec='-L$libdir'
  13237. ;;
  13238. # This must be glibc/ELF.
  13239. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  13240. version_type=linux # correct to gnu/linux during the next big refactor
  13241. need_lib_prefix=no
  13242. need_version=no
  13243. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13244. soname_spec='$libname$release$shared_ext$major'
  13245. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13246. shlibpath_var=LD_LIBRARY_PATH
  13247. shlibpath_overrides_runpath=no
  13248. # Some binutils ld are patched to set DT_RUNPATH
  13249. if test ${lt_cv_shlibpath_overrides_runpath+y}
  13250. then :
  13251. printf %s "(cached) " >&6
  13252. else $as_nop
  13253. lt_cv_shlibpath_overrides_runpath=no
  13254. save_LDFLAGS=$LDFLAGS
  13255. save_libdir=$libdir
  13256. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  13257. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  13258. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13259. /* end confdefs.h. */
  13260. int main (void)
  13261. {
  13262. ;
  13263. return 0;
  13264. }
  13265. _ACEOF
  13266. if ac_fn_c_try_link "$LINENO"
  13267. then :
  13268. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
  13269. then :
  13270. lt_cv_shlibpath_overrides_runpath=yes
  13271. fi
  13272. fi
  13273. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  13274. conftest$ac_exeext conftest.$ac_ext
  13275. LDFLAGS=$save_LDFLAGS
  13276. libdir=$save_libdir
  13277. fi
  13278. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13279. # This implies no fast_install, which is unacceptable.
  13280. # Some rework will be needed to allow for fast_install
  13281. # before this can be enabled.
  13282. hardcode_into_libs=yes
  13283. # Ideally, we could use ldconfig to report *all* directores which are
  13284. # searched for libraries, however this is still not possible. Aside from not
  13285. # being certain /sbin/ldconfig is available, command
  13286. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  13287. # even though it is searched at run-time. Try to do the best guess by
  13288. # appending ld.so.conf contents (and includes) to the search path.
  13289. if test -f /etc/ld.so.conf; then
  13290. 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' ' '`
  13291. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13292. fi
  13293. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13294. # powerpc, because MkLinux only supported shared libraries with the
  13295. # GNU dynamic linker. Since this was broken with cross compilers,
  13296. # most powerpc-linux boxes support dynamic linking these days and
  13297. # people can always --disable-shared, the test was removed, and we
  13298. # assume the GNU/Linux dynamic linker is in use.
  13299. dynamic_linker='GNU/Linux ld.so'
  13300. ;;
  13301. netbsdelf*-gnu)
  13302. version_type=linux
  13303. need_lib_prefix=no
  13304. need_version=no
  13305. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13306. soname_spec='${libname}${release}${shared_ext}$major'
  13307. shlibpath_var=LD_LIBRARY_PATH
  13308. shlibpath_overrides_runpath=no
  13309. hardcode_into_libs=yes
  13310. dynamic_linker='NetBSD ld.elf_so'
  13311. ;;
  13312. netbsd*)
  13313. version_type=sunos
  13314. need_lib_prefix=no
  13315. need_version=no
  13316. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13317. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  13318. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13319. dynamic_linker='NetBSD (a.out) ld.so'
  13320. else
  13321. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13322. soname_spec='$libname$release$shared_ext$major'
  13323. dynamic_linker='NetBSD ld.elf_so'
  13324. fi
  13325. shlibpath_var=LD_LIBRARY_PATH
  13326. shlibpath_overrides_runpath=yes
  13327. hardcode_into_libs=yes
  13328. ;;
  13329. newsos6)
  13330. version_type=linux # correct to gnu/linux during the next big refactor
  13331. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13332. shlibpath_var=LD_LIBRARY_PATH
  13333. shlibpath_overrides_runpath=yes
  13334. ;;
  13335. *nto* | *qnx*)
  13336. version_type=qnx
  13337. need_lib_prefix=no
  13338. need_version=no
  13339. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13340. soname_spec='$libname$release$shared_ext$major'
  13341. shlibpath_var=LD_LIBRARY_PATH
  13342. shlibpath_overrides_runpath=no
  13343. hardcode_into_libs=yes
  13344. dynamic_linker='ldqnx.so'
  13345. ;;
  13346. openbsd* | bitrig*)
  13347. version_type=sunos
  13348. sys_lib_dlsearch_path_spec=/usr/lib
  13349. need_lib_prefix=no
  13350. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  13351. need_version=no
  13352. else
  13353. need_version=yes
  13354. fi
  13355. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  13356. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13357. shlibpath_var=LD_LIBRARY_PATH
  13358. shlibpath_overrides_runpath=yes
  13359. ;;
  13360. os2*)
  13361. libname_spec='$name'
  13362. version_type=windows
  13363. shrext_cmds=.dll
  13364. need_version=no
  13365. need_lib_prefix=no
  13366. # OS/2 can only load a DLL with a base name of 8 characters or less.
  13367. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  13368. v=$($ECHO $release$versuffix | tr -d .-);
  13369. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  13370. $ECHO $n$v`$shared_ext'
  13371. library_names_spec='${libname}_dll.$libext'
  13372. dynamic_linker='OS/2 ld.exe'
  13373. shlibpath_var=BEGINLIBPATH
  13374. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  13375. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13376. postinstall_cmds='base_file=`basename \$file`~
  13377. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  13378. dldir=$destdir/`dirname \$dlpath`~
  13379. test -d \$dldir || mkdir -p \$dldir~
  13380. $install_prog $dir/$dlname \$dldir/$dlname~
  13381. chmod a+x \$dldir/$dlname~
  13382. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  13383. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  13384. fi'
  13385. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  13386. dlpath=$dir/\$dldll~
  13387. $RM \$dlpath'
  13388. ;;
  13389. osf3* | osf4* | osf5*)
  13390. version_type=osf
  13391. need_lib_prefix=no
  13392. need_version=no
  13393. soname_spec='$libname$release$shared_ext$major'
  13394. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13395. shlibpath_var=LD_LIBRARY_PATH
  13396. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13397. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13398. ;;
  13399. rdos*)
  13400. dynamic_linker=no
  13401. ;;
  13402. solaris*)
  13403. version_type=linux # correct to gnu/linux during the next big refactor
  13404. need_lib_prefix=no
  13405. need_version=no
  13406. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13407. soname_spec='$libname$release$shared_ext$major'
  13408. shlibpath_var=LD_LIBRARY_PATH
  13409. shlibpath_overrides_runpath=yes
  13410. hardcode_into_libs=yes
  13411. # ldd complains unless libraries are executable
  13412. postinstall_cmds='chmod +x $lib'
  13413. ;;
  13414. sunos4*)
  13415. version_type=sunos
  13416. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  13417. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13418. shlibpath_var=LD_LIBRARY_PATH
  13419. shlibpath_overrides_runpath=yes
  13420. if test yes = "$with_gnu_ld"; then
  13421. need_lib_prefix=no
  13422. fi
  13423. need_version=yes
  13424. ;;
  13425. sysv4 | sysv4.3*)
  13426. version_type=linux # correct to gnu/linux during the next big refactor
  13427. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13428. soname_spec='$libname$release$shared_ext$major'
  13429. shlibpath_var=LD_LIBRARY_PATH
  13430. case $host_vendor in
  13431. sni)
  13432. shlibpath_overrides_runpath=no
  13433. need_lib_prefix=no
  13434. runpath_var=LD_RUN_PATH
  13435. ;;
  13436. siemens)
  13437. need_lib_prefix=no
  13438. ;;
  13439. motorola)
  13440. need_lib_prefix=no
  13441. need_version=no
  13442. shlibpath_overrides_runpath=no
  13443. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13444. ;;
  13445. esac
  13446. ;;
  13447. sysv4*MP*)
  13448. if test -d /usr/nec; then
  13449. version_type=linux # correct to gnu/linux during the next big refactor
  13450. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  13451. soname_spec='$libname$shared_ext.$major'
  13452. shlibpath_var=LD_LIBRARY_PATH
  13453. fi
  13454. ;;
  13455. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13456. version_type=sco
  13457. need_lib_prefix=no
  13458. need_version=no
  13459. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  13460. soname_spec='$libname$release$shared_ext$major'
  13461. shlibpath_var=LD_LIBRARY_PATH
  13462. shlibpath_overrides_runpath=yes
  13463. hardcode_into_libs=yes
  13464. if test yes = "$with_gnu_ld"; then
  13465. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13466. else
  13467. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13468. case $host_os in
  13469. sco3.2v5*)
  13470. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13471. ;;
  13472. esac
  13473. fi
  13474. sys_lib_dlsearch_path_spec='/usr/lib'
  13475. ;;
  13476. tpf*)
  13477. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13478. version_type=linux # correct to gnu/linux during the next big refactor
  13479. need_lib_prefix=no
  13480. need_version=no
  13481. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13482. shlibpath_var=LD_LIBRARY_PATH
  13483. shlibpath_overrides_runpath=no
  13484. hardcode_into_libs=yes
  13485. ;;
  13486. uts4*)
  13487. version_type=linux # correct to gnu/linux during the next big refactor
  13488. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13489. soname_spec='$libname$release$shared_ext$major'
  13490. shlibpath_var=LD_LIBRARY_PATH
  13491. ;;
  13492. *)
  13493. dynamic_linker=no
  13494. ;;
  13495. esac
  13496. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13497. printf "%s\n" "$dynamic_linker" >&6; }
  13498. test no = "$dynamic_linker" && can_build_shared=no
  13499. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13500. if test yes = "$GCC"; then
  13501. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13502. fi
  13503. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  13504. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  13505. fi
  13506. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  13507. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  13508. fi
  13509. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  13510. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  13511. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  13512. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  13513. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  13514. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  13515. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13516. printf %s "checking how to hardcode library paths into programs... " >&6; }
  13517. hardcode_action=
  13518. if test -n "$hardcode_libdir_flag_spec" ||
  13519. test -n "$runpath_var" ||
  13520. test yes = "$hardcode_automatic"; then
  13521. # We can hardcode non-existent directories.
  13522. if test no != "$hardcode_direct" &&
  13523. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13524. # have to relink, otherwise we might link with an installed library
  13525. # when we should be linking with a yet-to-be-installed one
  13526. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  13527. test no != "$hardcode_minus_L"; then
  13528. # Linking always hardcodes the temporary library directory.
  13529. hardcode_action=relink
  13530. else
  13531. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13532. hardcode_action=immediate
  13533. fi
  13534. else
  13535. # We cannot hardcode anything, or else we can only hardcode existing
  13536. # directories.
  13537. hardcode_action=unsupported
  13538. fi
  13539. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  13540. printf "%s\n" "$hardcode_action" >&6; }
  13541. if test relink = "$hardcode_action" ||
  13542. test yes = "$inherit_rpath"; then
  13543. # Fast installation is not supported
  13544. enable_fast_install=no
  13545. elif test yes = "$shlibpath_overrides_runpath" ||
  13546. test no = "$enable_shared"; then
  13547. # Fast installation is not necessary
  13548. enable_fast_install=needless
  13549. fi
  13550. if test yes != "$enable_dlopen"; then
  13551. enable_dlopen=unknown
  13552. enable_dlopen_self=unknown
  13553. enable_dlopen_self_static=unknown
  13554. else
  13555. lt_cv_dlopen=no
  13556. lt_cv_dlopen_libs=
  13557. case $host_os in
  13558. beos*)
  13559. lt_cv_dlopen=load_add_on
  13560. lt_cv_dlopen_libs=
  13561. lt_cv_dlopen_self=yes
  13562. ;;
  13563. mingw* | pw32* | cegcc*)
  13564. lt_cv_dlopen=LoadLibrary
  13565. lt_cv_dlopen_libs=
  13566. ;;
  13567. cygwin*)
  13568. lt_cv_dlopen=dlopen
  13569. lt_cv_dlopen_libs=
  13570. ;;
  13571. darwin*)
  13572. # if libdl is installed we need to link against it
  13573. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  13574. printf %s "checking for dlopen in -ldl... " >&6; }
  13575. if test ${ac_cv_lib_dl_dlopen+y}
  13576. then :
  13577. printf %s "(cached) " >&6
  13578. else $as_nop
  13579. ac_check_lib_save_LIBS=$LIBS
  13580. LIBS="-ldl $LIBS"
  13581. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13582. /* end confdefs.h. */
  13583. #ifdef __cplusplus
  13584. extern "C"
  13585. #endif
  13586. char dlopen ();
  13587. int main (void)
  13588. {
  13589. return dlopen ();
  13590. ;
  13591. return 0;
  13592. }
  13593. _ACEOF
  13594. if ac_fn_c_try_link "$LINENO"
  13595. then :
  13596. ac_cv_lib_dl_dlopen=yes
  13597. else $as_nop
  13598. ac_cv_lib_dl_dlopen=no
  13599. fi
  13600. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  13601. conftest$ac_exeext conftest.$ac_ext
  13602. LIBS=$ac_check_lib_save_LIBS
  13603. fi
  13604. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  13605. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  13606. if test "x$ac_cv_lib_dl_dlopen" = xyes
  13607. then :
  13608. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  13609. else $as_nop
  13610. lt_cv_dlopen=dyld
  13611. lt_cv_dlopen_libs=
  13612. lt_cv_dlopen_self=yes
  13613. fi
  13614. ;;
  13615. tpf*)
  13616. # Don't try to run any link tests for TPF. We know it's impossible
  13617. # because TPF is a cross-compiler, and we know how we open DSOs.
  13618. lt_cv_dlopen=dlopen
  13619. lt_cv_dlopen_libs=
  13620. lt_cv_dlopen_self=no
  13621. ;;
  13622. *)
  13623. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  13624. if test "x$ac_cv_func_shl_load" = xyes
  13625. then :
  13626. lt_cv_dlopen=shl_load
  13627. else $as_nop
  13628. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  13629. printf %s "checking for shl_load in -ldld... " >&6; }
  13630. if test ${ac_cv_lib_dld_shl_load+y}
  13631. then :
  13632. printf %s "(cached) " >&6
  13633. else $as_nop
  13634. ac_check_lib_save_LIBS=$LIBS
  13635. LIBS="-ldld $LIBS"
  13636. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13637. /* end confdefs.h. */
  13638. #ifdef __cplusplus
  13639. extern "C"
  13640. #endif
  13641. char shl_load ();
  13642. int main (void)
  13643. {
  13644. return shl_load ();
  13645. ;
  13646. return 0;
  13647. }
  13648. _ACEOF
  13649. if ac_fn_c_try_link "$LINENO"
  13650. then :
  13651. ac_cv_lib_dld_shl_load=yes
  13652. else $as_nop
  13653. ac_cv_lib_dld_shl_load=no
  13654. fi
  13655. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  13656. conftest$ac_exeext conftest.$ac_ext
  13657. LIBS=$ac_check_lib_save_LIBS
  13658. fi
  13659. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  13660. printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
  13661. if test "x$ac_cv_lib_dld_shl_load" = xyes
  13662. then :
  13663. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  13664. else $as_nop
  13665. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  13666. if test "x$ac_cv_func_dlopen" = xyes
  13667. then :
  13668. lt_cv_dlopen=dlopen
  13669. else $as_nop
  13670. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  13671. printf %s "checking for dlopen in -ldl... " >&6; }
  13672. if test ${ac_cv_lib_dl_dlopen+y}
  13673. then :
  13674. printf %s "(cached) " >&6
  13675. else $as_nop
  13676. ac_check_lib_save_LIBS=$LIBS
  13677. LIBS="-ldl $LIBS"
  13678. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13679. /* end confdefs.h. */
  13680. #ifdef __cplusplus
  13681. extern "C"
  13682. #endif
  13683. char dlopen ();
  13684. int main (void)
  13685. {
  13686. return dlopen ();
  13687. ;
  13688. return 0;
  13689. }
  13690. _ACEOF
  13691. if ac_fn_c_try_link "$LINENO"
  13692. then :
  13693. ac_cv_lib_dl_dlopen=yes
  13694. else $as_nop
  13695. ac_cv_lib_dl_dlopen=no
  13696. fi
  13697. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  13698. conftest$ac_exeext conftest.$ac_ext
  13699. LIBS=$ac_check_lib_save_LIBS
  13700. fi
  13701. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  13702. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  13703. if test "x$ac_cv_lib_dl_dlopen" = xyes
  13704. then :
  13705. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  13706. else $as_nop
  13707. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  13708. printf %s "checking for dlopen in -lsvld... " >&6; }
  13709. if test ${ac_cv_lib_svld_dlopen+y}
  13710. then :
  13711. printf %s "(cached) " >&6
  13712. else $as_nop
  13713. ac_check_lib_save_LIBS=$LIBS
  13714. LIBS="-lsvld $LIBS"
  13715. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13716. /* end confdefs.h. */
  13717. #ifdef __cplusplus
  13718. extern "C"
  13719. #endif
  13720. char dlopen ();
  13721. int main (void)
  13722. {
  13723. return dlopen ();
  13724. ;
  13725. return 0;
  13726. }
  13727. _ACEOF
  13728. if ac_fn_c_try_link "$LINENO"
  13729. then :
  13730. ac_cv_lib_svld_dlopen=yes
  13731. else $as_nop
  13732. ac_cv_lib_svld_dlopen=no
  13733. fi
  13734. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  13735. conftest$ac_exeext conftest.$ac_ext
  13736. LIBS=$ac_check_lib_save_LIBS
  13737. fi
  13738. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  13739. printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
  13740. if test "x$ac_cv_lib_svld_dlopen" = xyes
  13741. then :
  13742. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  13743. else $as_nop
  13744. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  13745. printf %s "checking for dld_link in -ldld... " >&6; }
  13746. if test ${ac_cv_lib_dld_dld_link+y}
  13747. then :
  13748. printf %s "(cached) " >&6
  13749. else $as_nop
  13750. ac_check_lib_save_LIBS=$LIBS
  13751. LIBS="-ldld $LIBS"
  13752. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13753. /* end confdefs.h. */
  13754. #ifdef __cplusplus
  13755. extern "C"
  13756. #endif
  13757. char dld_link ();
  13758. int main (void)
  13759. {
  13760. return dld_link ();
  13761. ;
  13762. return 0;
  13763. }
  13764. _ACEOF
  13765. if ac_fn_c_try_link "$LINENO"
  13766. then :
  13767. ac_cv_lib_dld_dld_link=yes
  13768. else $as_nop
  13769. ac_cv_lib_dld_dld_link=no
  13770. fi
  13771. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  13772. conftest$ac_exeext conftest.$ac_ext
  13773. LIBS=$ac_check_lib_save_LIBS
  13774. fi
  13775. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  13776. printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
  13777. if test "x$ac_cv_lib_dld_dld_link" = xyes
  13778. then :
  13779. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  13780. fi
  13781. fi
  13782. fi
  13783. fi
  13784. fi
  13785. fi
  13786. ;;
  13787. esac
  13788. if test no = "$lt_cv_dlopen"; then
  13789. enable_dlopen=no
  13790. else
  13791. enable_dlopen=yes
  13792. fi
  13793. case $lt_cv_dlopen in
  13794. dlopen)
  13795. save_CPPFLAGS=$CPPFLAGS
  13796. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  13797. save_LDFLAGS=$LDFLAGS
  13798. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  13799. save_LIBS=$LIBS
  13800. LIBS="$lt_cv_dlopen_libs $LIBS"
  13801. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  13802. printf %s "checking whether a program can dlopen itself... " >&6; }
  13803. if test ${lt_cv_dlopen_self+y}
  13804. then :
  13805. printf %s "(cached) " >&6
  13806. else $as_nop
  13807. if test yes = "$cross_compiling"; then :
  13808. lt_cv_dlopen_self=cross
  13809. else
  13810. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  13811. lt_status=$lt_dlunknown
  13812. cat > conftest.$ac_ext <<_LT_EOF
  13813. #line $LINENO "configure"
  13814. #include "confdefs.h"
  13815. #if HAVE_DLFCN_H
  13816. #include <dlfcn.h>
  13817. #endif
  13818. #include <stdio.h>
  13819. #ifdef RTLD_GLOBAL
  13820. # define LT_DLGLOBAL RTLD_GLOBAL
  13821. #else
  13822. # ifdef DL_GLOBAL
  13823. # define LT_DLGLOBAL DL_GLOBAL
  13824. # else
  13825. # define LT_DLGLOBAL 0
  13826. # endif
  13827. #endif
  13828. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  13829. find out it does not work in some platform. */
  13830. #ifndef LT_DLLAZY_OR_NOW
  13831. # ifdef RTLD_LAZY
  13832. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  13833. # else
  13834. # ifdef DL_LAZY
  13835. # define LT_DLLAZY_OR_NOW DL_LAZY
  13836. # else
  13837. # ifdef RTLD_NOW
  13838. # define LT_DLLAZY_OR_NOW RTLD_NOW
  13839. # else
  13840. # ifdef DL_NOW
  13841. # define LT_DLLAZY_OR_NOW DL_NOW
  13842. # else
  13843. # define LT_DLLAZY_OR_NOW 0
  13844. # endif
  13845. # endif
  13846. # endif
  13847. # endif
  13848. #endif
  13849. /* When -fvisibility=hidden is used, assume the code has been annotated
  13850. correspondingly for the symbols needed. */
  13851. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  13852. int fnord () __attribute__((visibility("default")));
  13853. #endif
  13854. int fnord () { return 42; }
  13855. int main ()
  13856. {
  13857. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  13858. int status = $lt_dlunknown;
  13859. if (self)
  13860. {
  13861. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  13862. else
  13863. {
  13864. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  13865. else puts (dlerror ());
  13866. }
  13867. /* dlclose (self); */
  13868. }
  13869. else
  13870. puts (dlerror ());
  13871. return status;
  13872. }
  13873. _LT_EOF
  13874. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  13875. (eval $ac_link) 2>&5
  13876. ac_status=$?
  13877. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13878. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  13879. (./conftest; exit; ) >&5 2>/dev/null
  13880. lt_status=$?
  13881. case x$lt_status in
  13882. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  13883. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  13884. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  13885. esac
  13886. else :
  13887. # compilation failed
  13888. lt_cv_dlopen_self=no
  13889. fi
  13890. fi
  13891. rm -fr conftest*
  13892. fi
  13893. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  13894. printf "%s\n" "$lt_cv_dlopen_self" >&6; }
  13895. if test yes = "$lt_cv_dlopen_self"; then
  13896. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  13897. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  13898. printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
  13899. if test ${lt_cv_dlopen_self_static+y}
  13900. then :
  13901. printf %s "(cached) " >&6
  13902. else $as_nop
  13903. if test yes = "$cross_compiling"; then :
  13904. lt_cv_dlopen_self_static=cross
  13905. else
  13906. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  13907. lt_status=$lt_dlunknown
  13908. cat > conftest.$ac_ext <<_LT_EOF
  13909. #line $LINENO "configure"
  13910. #include "confdefs.h"
  13911. #if HAVE_DLFCN_H
  13912. #include <dlfcn.h>
  13913. #endif
  13914. #include <stdio.h>
  13915. #ifdef RTLD_GLOBAL
  13916. # define LT_DLGLOBAL RTLD_GLOBAL
  13917. #else
  13918. # ifdef DL_GLOBAL
  13919. # define LT_DLGLOBAL DL_GLOBAL
  13920. # else
  13921. # define LT_DLGLOBAL 0
  13922. # endif
  13923. #endif
  13924. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  13925. find out it does not work in some platform. */
  13926. #ifndef LT_DLLAZY_OR_NOW
  13927. # ifdef RTLD_LAZY
  13928. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  13929. # else
  13930. # ifdef DL_LAZY
  13931. # define LT_DLLAZY_OR_NOW DL_LAZY
  13932. # else
  13933. # ifdef RTLD_NOW
  13934. # define LT_DLLAZY_OR_NOW RTLD_NOW
  13935. # else
  13936. # ifdef DL_NOW
  13937. # define LT_DLLAZY_OR_NOW DL_NOW
  13938. # else
  13939. # define LT_DLLAZY_OR_NOW 0
  13940. # endif
  13941. # endif
  13942. # endif
  13943. # endif
  13944. #endif
  13945. /* When -fvisibility=hidden is used, assume the code has been annotated
  13946. correspondingly for the symbols needed. */
  13947. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  13948. int fnord () __attribute__((visibility("default")));
  13949. #endif
  13950. int fnord () { return 42; }
  13951. int main ()
  13952. {
  13953. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  13954. int status = $lt_dlunknown;
  13955. if (self)
  13956. {
  13957. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  13958. else
  13959. {
  13960. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  13961. else puts (dlerror ());
  13962. }
  13963. /* dlclose (self); */
  13964. }
  13965. else
  13966. puts (dlerror ());
  13967. return status;
  13968. }
  13969. _LT_EOF
  13970. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  13971. (eval $ac_link) 2>&5
  13972. ac_status=$?
  13973. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13974. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  13975. (./conftest; exit; ) >&5 2>/dev/null
  13976. lt_status=$?
  13977. case x$lt_status in
  13978. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  13979. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  13980. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  13981. esac
  13982. else :
  13983. # compilation failed
  13984. lt_cv_dlopen_self_static=no
  13985. fi
  13986. fi
  13987. rm -fr conftest*
  13988. fi
  13989. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  13990. printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
  13991. fi
  13992. CPPFLAGS=$save_CPPFLAGS
  13993. LDFLAGS=$save_LDFLAGS
  13994. LIBS=$save_LIBS
  13995. ;;
  13996. esac
  13997. case $lt_cv_dlopen_self in
  13998. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  13999. *) enable_dlopen_self=unknown ;;
  14000. esac
  14001. case $lt_cv_dlopen_self_static in
  14002. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  14003. *) enable_dlopen_self_static=unknown ;;
  14004. esac
  14005. fi
  14006. striplib=
  14007. old_striplib=
  14008. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  14009. printf %s "checking whether stripping libraries is possible... " >&6; }
  14010. if test -z "$STRIP"; then
  14011. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14012. printf "%s\n" "no" >&6; }
  14013. else
  14014. if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  14015. old_striplib="$STRIP --strip-debug"
  14016. striplib="$STRIP --strip-unneeded"
  14017. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14018. printf "%s\n" "yes" >&6; }
  14019. else
  14020. case $host_os in
  14021. darwin*)
  14022. # FIXME - insert some real tests, host_os isn't really good enough
  14023. striplib="$STRIP -x"
  14024. old_striplib="$STRIP -S"
  14025. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14026. printf "%s\n" "yes" >&6; }
  14027. ;;
  14028. freebsd*)
  14029. if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
  14030. old_striplib="$STRIP --strip-debug"
  14031. striplib="$STRIP --strip-unneeded"
  14032. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14033. printf "%s\n" "yes" >&6; }
  14034. else
  14035. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14036. printf "%s\n" "no" >&6; }
  14037. fi
  14038. ;;
  14039. *)
  14040. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14041. printf "%s\n" "no" >&6; }
  14042. ;;
  14043. esac
  14044. fi
  14045. fi
  14046. # Report what library types will actually be built
  14047. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  14048. printf %s "checking if libtool supports shared libraries... " >&6; }
  14049. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  14050. printf "%s\n" "$can_build_shared" >&6; }
  14051. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  14052. printf %s "checking whether to build shared libraries... " >&6; }
  14053. test no = "$can_build_shared" && enable_shared=no
  14054. # On AIX, shared libraries and static libraries use the same namespace, and
  14055. # are all built from PIC.
  14056. case $host_os in
  14057. aix3*)
  14058. test yes = "$enable_shared" && enable_static=no
  14059. if test -n "$RANLIB"; then
  14060. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  14061. postinstall_cmds='$RANLIB $lib'
  14062. fi
  14063. ;;
  14064. aix[4-9]*)
  14065. if test ia64 != "$host_cpu"; then
  14066. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  14067. yes,aix,yes) ;; # shared object as lib.so file only
  14068. yes,svr4,*) ;; # shared object as lib.so archive member only
  14069. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  14070. esac
  14071. fi
  14072. ;;
  14073. esac
  14074. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  14075. printf "%s\n" "$enable_shared" >&6; }
  14076. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  14077. printf %s "checking whether to build static libraries... " >&6; }
  14078. # Make sure either enable_shared or enable_static is yes.
  14079. test yes = "$enable_shared" || enable_static=yes
  14080. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  14081. printf "%s\n" "$enable_static" >&6; }
  14082. fi
  14083. ac_ext=c
  14084. ac_cpp='$CPP $CPPFLAGS'
  14085. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14086. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14087. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14088. CC=$lt_save_CC
  14089. ac_config_commands="$ac_config_commands libtool"
  14090. # Only expand once:
  14091. ## --------------------- ##
  14092. ## End of libtool code ##
  14093. ## --------------------- ##
  14094. #
  14095. # Verify if finally libtool shared libraries will be built
  14096. #
  14097. case "x$enable_shared" in # ((
  14098. xyes | xno)
  14099. xc_lt_build_shared=$enable_shared
  14100. ;;
  14101. *)
  14102. as_fn_error $? "unexpected libtool enable_shared value: $enable_shared" "$LINENO" 5
  14103. ;;
  14104. esac
  14105. #
  14106. # Verify if finally libtool static libraries will be built
  14107. #
  14108. case "x$enable_static" in # ((
  14109. xyes | xno)
  14110. xc_lt_build_static=$enable_static
  14111. ;;
  14112. *)
  14113. as_fn_error $? "unexpected libtool enable_static value: $enable_static" "$LINENO" 5
  14114. ;;
  14115. esac
  14116. #
  14117. # Verify if libtool shared libraries should be linked using flag -version-info
  14118. #
  14119. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -version-info" >&5
  14120. printf %s "checking whether to build shared libraries with -version-info... " >&6; }
  14121. xc_lt_shlib_use_version_info='yes'
  14122. if test "x$version_type" = 'xnone'; then
  14123. xc_lt_shlib_use_version_info='no'
  14124. fi
  14125. case $host_os in # (
  14126. amigaos*)
  14127. xc_lt_shlib_use_version_info='yes'
  14128. ;;
  14129. esac
  14130. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_version_info" >&5
  14131. printf "%s\n" "$xc_lt_shlib_use_version_info" >&6; }
  14132. #
  14133. # Verify if libtool shared libraries should be linked using flag -no-undefined
  14134. #
  14135. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -no-undefined" >&5
  14136. printf %s "checking whether to build shared libraries with -no-undefined... " >&6; }
  14137. xc_lt_shlib_use_no_undefined='no'
  14138. if test "x$allow_undefined" = 'xno'; then
  14139. xc_lt_shlib_use_no_undefined='yes'
  14140. elif test "x$allow_undefined_flag" = 'xunsupported'; then
  14141. xc_lt_shlib_use_no_undefined='yes'
  14142. fi
  14143. case $host_os in # (
  14144. cygwin* | mingw* | pw32* | cegcc* | os2* | aix*)
  14145. xc_lt_shlib_use_no_undefined='yes'
  14146. ;;
  14147. esac
  14148. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_no_undefined" >&5
  14149. printf "%s\n" "$xc_lt_shlib_use_no_undefined" >&6; }
  14150. #
  14151. # Verify if libtool shared libraries should be linked using flag -mimpure-text
  14152. #
  14153. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -mimpure-text" >&5
  14154. printf %s "checking whether to build shared libraries with -mimpure-text... " >&6; }
  14155. xc_lt_shlib_use_mimpure_text='no'
  14156. case $host_os in # (
  14157. solaris2*)
  14158. if test "x$GCC" = 'xyes'; then
  14159. xc_lt_shlib_use_mimpure_text='yes'
  14160. fi
  14161. ;;
  14162. esac
  14163. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_mimpure_text" >&5
  14164. printf "%s\n" "$xc_lt_shlib_use_mimpure_text" >&6; }
  14165. #
  14166. # Find out whether libtool libraries would be built wit PIC
  14167. #
  14168. case "x$pic_mode" in # ((((
  14169. xdefault)
  14170. xc_lt_build_shared_with_pic='yes'
  14171. xc_lt_build_static_with_pic='no'
  14172. ;;
  14173. xyes)
  14174. xc_lt_build_shared_with_pic='yes'
  14175. xc_lt_build_static_with_pic='yes'
  14176. ;;
  14177. xno)
  14178. xc_lt_build_shared_with_pic='no'
  14179. xc_lt_build_static_with_pic='no'
  14180. ;;
  14181. *)
  14182. xc_lt_build_shared_with_pic='unknown'
  14183. xc_lt_build_static_with_pic='unknown'
  14184. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unexpected libtool pic_mode value: $pic_mode" >&5
  14185. printf "%s\n" "$as_me: WARNING: unexpected libtool pic_mode value: $pic_mode" >&2;}
  14186. ;;
  14187. esac
  14188. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with PIC" >&5
  14189. printf %s "checking whether to build shared libraries with PIC... " >&6; }
  14190. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_with_pic" >&5
  14191. printf "%s\n" "$xc_lt_build_shared_with_pic" >&6; }
  14192. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries with PIC" >&5
  14193. printf %s "checking whether to build static libraries with PIC... " >&6; }
  14194. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_with_pic" >&5
  14195. printf "%s\n" "$xc_lt_build_static_with_pic" >&6; }
  14196. #
  14197. # Verify if libtool shared libraries will be built while static not built
  14198. #
  14199. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries only" >&5
  14200. printf %s "checking whether to build shared libraries only... " >&6; }
  14201. if test "$xc_lt_build_shared" = 'yes' &&
  14202. test "$xc_lt_build_static" = 'no'; then
  14203. xc_lt_build_shared_only='yes'
  14204. else
  14205. xc_lt_build_shared_only='no'
  14206. fi
  14207. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_only" >&5
  14208. printf "%s\n" "$xc_lt_build_shared_only" >&6; }
  14209. #
  14210. # Verify if libtool static libraries will be built while shared not built
  14211. #
  14212. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries only" >&5
  14213. printf %s "checking whether to build static libraries only... " >&6; }
  14214. if test "$xc_lt_build_static" = 'yes' &&
  14215. test "$xc_lt_build_shared" = 'no'; then
  14216. xc_lt_build_static_only='yes'
  14217. else
  14218. xc_lt_build_static_only='no'
  14219. fi
  14220. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_only" >&5
  14221. printf "%s\n" "$xc_lt_build_static_only" >&6; }
  14222. #
  14223. # Automake conditionals based on libtool related checks
  14224. #
  14225. if test "x$xc_lt_shlib_use_version_info" = 'xyes'; then
  14226. CURL_LT_SHLIB_USE_VERSION_INFO_TRUE=
  14227. CURL_LT_SHLIB_USE_VERSION_INFO_FALSE='#'
  14228. else
  14229. CURL_LT_SHLIB_USE_VERSION_INFO_TRUE='#'
  14230. CURL_LT_SHLIB_USE_VERSION_INFO_FALSE=
  14231. fi
  14232. if test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
  14233. CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE=
  14234. CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE='#'
  14235. else
  14236. CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE='#'
  14237. CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE=
  14238. fi
  14239. if test "x$xc_lt_shlib_use_mimpure_text" = 'xyes'; then
  14240. CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE=
  14241. CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE='#'
  14242. else
  14243. CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE='#'
  14244. CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE=
  14245. fi
  14246. #
  14247. # Due to libtool and automake machinery limitations of not allowing
  14248. # specifying separate CPPFLAGS or CFLAGS when compiling objects for
  14249. # inclusion of these in shared or static libraries, we are forced to
  14250. # build using separate configure runs for shared and static libraries
  14251. # on systems where different CPPFLAGS or CFLAGS are mandatory in order
  14252. # to compile objects for each kind of library. Notice that relying on
  14253. # the '-DPIC' CFLAG that libtool provides is not valid given that the
  14254. # user might for example choose to build static libraries with PIC.
  14255. #
  14256. #
  14257. # Make our Makefile.am files use the staticlib CPPFLAG only when strictly
  14258. # targeting a static library and not building its shared counterpart.
  14259. #
  14260. if test "x$xc_lt_build_static_only" = 'xyes'; then
  14261. USE_CPPFLAG_CURL_STATICLIB_TRUE=
  14262. USE_CPPFLAG_CURL_STATICLIB_FALSE='#'
  14263. else
  14264. USE_CPPFLAG_CURL_STATICLIB_TRUE='#'
  14265. USE_CPPFLAG_CURL_STATICLIB_FALSE=
  14266. fi
  14267. #
  14268. # Make staticlib CPPFLAG variable and its definition visible in output
  14269. # files unconditionally, providing an empty definition unless strictly
  14270. # targeting a static library and not building its shared counterpart.
  14271. #
  14272. CPPFLAG_CURL_STATICLIB=
  14273. if test "x$xc_lt_build_static_only" = 'xyes'; then
  14274. CPPFLAG_CURL_STATICLIB='-DCURL_STATICLIB'
  14275. fi
  14276. # Determine whether all dependent libraries must be specified when linking
  14277. if test "X$enable_shared" = "Xyes" -a "X$link_all_deplibs" = "Xno"
  14278. then
  14279. REQUIRE_LIB_DEPS=no
  14280. else
  14281. REQUIRE_LIB_DEPS=yes
  14282. fi
  14283. if test x$REQUIRE_LIB_DEPS = xyes; then
  14284. USE_EXPLICIT_LIB_DEPS_TRUE=
  14285. USE_EXPLICIT_LIB_DEPS_FALSE='#'
  14286. else
  14287. USE_EXPLICIT_LIB_DEPS_TRUE='#'
  14288. USE_EXPLICIT_LIB_DEPS_FALSE=
  14289. fi
  14290. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  14291. printf %s "checking for inline... " >&6; }
  14292. if test ${ac_cv_c_inline+y}
  14293. then :
  14294. printf %s "(cached) " >&6
  14295. else $as_nop
  14296. ac_cv_c_inline=no
  14297. for ac_kw in inline __inline__ __inline; do
  14298. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14299. /* end confdefs.h. */
  14300. #ifndef __cplusplus
  14301. typedef int foo_t;
  14302. static $ac_kw foo_t static_foo (void) {return 0; }
  14303. $ac_kw foo_t foo (void) {return 0; }
  14304. #endif
  14305. _ACEOF
  14306. if ac_fn_c_try_compile "$LINENO"
  14307. then :
  14308. ac_cv_c_inline=$ac_kw
  14309. fi
  14310. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  14311. test "$ac_cv_c_inline" != no && break
  14312. done
  14313. fi
  14314. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  14315. printf "%s\n" "$ac_cv_c_inline" >&6; }
  14316. case $ac_cv_c_inline in
  14317. inline | yes) ;;
  14318. *)
  14319. case $ac_cv_c_inline in
  14320. no) ac_val=;;
  14321. *) ac_val=$ac_cv_c_inline;;
  14322. esac
  14323. cat >>confdefs.h <<_ACEOF
  14324. #ifndef __cplusplus
  14325. #define inline $ac_val
  14326. #endif
  14327. _ACEOF
  14328. ;;
  14329. esac
  14330. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if cpp -P is needed" >&5
  14331. printf %s "checking if cpp -P is needed... " >&6; }
  14332. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14333. /* end confdefs.h. */
  14334. #include <errno.h>
  14335. TEST EINVAL TEST
  14336. _ACEOF
  14337. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14338. $EGREP "TEST.*TEST" >/dev/null 2>&1
  14339. then :
  14340. cpp=no
  14341. else $as_nop
  14342. cpp=yes
  14343. fi
  14344. rm -rf conftest*
  14345. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cpp" >&5
  14346. printf "%s\n" "$cpp" >&6; }
  14347. if test "x$cpp" = "xyes"; then
  14348. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if cpp -P works" >&5
  14349. printf %s "checking if cpp -P works... " >&6; }
  14350. OLDCPPFLAGS=$CPPFLAGS
  14351. CPPFLAGS="$CPPFLAGS -P"
  14352. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14353. /* end confdefs.h. */
  14354. #include <errno.h>
  14355. TEST EINVAL TEST
  14356. _ACEOF
  14357. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14358. $EGREP "TEST.*TEST" >/dev/null 2>&1
  14359. then :
  14360. cpp_p=yes
  14361. else $as_nop
  14362. cpp_p=no
  14363. fi
  14364. rm -rf conftest*
  14365. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cpp_p" >&5
  14366. printf "%s\n" "$cpp_p" >&6; }
  14367. if test "x$cpp_p" = "xno"; then
  14368. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: failed to figure out cpp -P alternative" >&5
  14369. printf "%s\n" "$as_me: WARNING: failed to figure out cpp -P alternative" >&2;}
  14370. # without -P
  14371. CPPPFLAG=""
  14372. else
  14373. # with -P
  14374. CPPPFLAG="-P"
  14375. fi
  14376. CPPFLAGS=$OLDCPPFLAGS
  14377. else
  14378. # without -P
  14379. CPPPFLAG=""
  14380. fi
  14381. #
  14382. compiler_id="unknown"
  14383. compiler_num="0"
  14384. #
  14385. flags_dbg_yes="unknown"
  14386. flags_opt_all="unknown"
  14387. flags_opt_yes="unknown"
  14388. flags_opt_off="unknown"
  14389. #
  14390. flags_prefer_cppflags="no"
  14391. #
  14392. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is DEC/Compaq/HP C" >&5
  14393. printf %s "checking if compiler is DEC/Compaq/HP C... " >&6; }
  14394. OLDCPPFLAGS=$CPPFLAGS
  14395. # CPPPFLAG comes from CURL_CPP_P
  14396. CPPFLAGS="$CPPFLAGS $CPPPFLAG"
  14397. if test -z "$SED"; then
  14398. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  14399. fi
  14400. if test -z "$GREP"; then
  14401. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  14402. fi
  14403. tmp_exp=""
  14404. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14405. /* end confdefs.h. */
  14406. #ifdef __DECC
  14407. CURL_DEF_TOKEN __DECC
  14408. #endif
  14409. _ACEOF
  14410. if ac_fn_c_try_cpp "$LINENO"
  14411. then :
  14412. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  14413. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  14414. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  14415. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  14416. if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC"; then
  14417. tmp_exp=""
  14418. fi
  14419. fi
  14420. rm -f conftest.err conftest.i conftest.$ac_ext
  14421. if test -z "$tmp_exp"; then
  14422. curl_cv_have_def___DECC=no
  14423. else
  14424. curl_cv_have_def___DECC=yes
  14425. curl_cv_def___DECC=$tmp_exp
  14426. fi
  14427. CPPFLAGS=$OLDCPPFLAGS
  14428. OLDCPPFLAGS=$CPPFLAGS
  14429. # CPPPFLAG comes from CURL_CPP_P
  14430. CPPFLAGS="$CPPFLAGS $CPPPFLAG"
  14431. if test -z "$SED"; then
  14432. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  14433. fi
  14434. if test -z "$GREP"; then
  14435. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  14436. fi
  14437. tmp_exp=""
  14438. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14439. /* end confdefs.h. */
  14440. #ifdef __DECC_VER
  14441. CURL_DEF_TOKEN __DECC_VER
  14442. #endif
  14443. _ACEOF
  14444. if ac_fn_c_try_cpp "$LINENO"
  14445. then :
  14446. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  14447. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  14448. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  14449. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  14450. if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC_VER"; then
  14451. tmp_exp=""
  14452. fi
  14453. fi
  14454. rm -f conftest.err conftest.i conftest.$ac_ext
  14455. if test -z "$tmp_exp"; then
  14456. curl_cv_have_def___DECC_VER=no
  14457. else
  14458. curl_cv_have_def___DECC_VER=yes
  14459. curl_cv_def___DECC_VER=$tmp_exp
  14460. fi
  14461. CPPFLAGS=$OLDCPPFLAGS
  14462. if test "$curl_cv_have_def___DECC" = "yes" &&
  14463. test "$curl_cv_have_def___DECC_VER" = "yes"; then
  14464. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14465. printf "%s\n" "yes" >&6; }
  14466. compiler_id="DEC_C"
  14467. flags_dbg_yes="-g2"
  14468. flags_opt_all="-O -O0 -O1 -O2 -O3 -O4"
  14469. flags_opt_yes="-O1"
  14470. flags_opt_off="-O0"
  14471. else
  14472. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14473. printf "%s\n" "no" >&6; }
  14474. fi
  14475. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is HP-UX C" >&5
  14476. printf %s "checking if compiler is HP-UX C... " >&6; }
  14477. OLDCPPFLAGS=$CPPFLAGS
  14478. # CPPPFLAG comes from CURL_CPP_P
  14479. CPPFLAGS="$CPPFLAGS $CPPPFLAG"
  14480. if test -z "$SED"; then
  14481. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  14482. fi
  14483. if test -z "$GREP"; then
  14484. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  14485. fi
  14486. tmp_exp=""
  14487. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14488. /* end confdefs.h. */
  14489. #ifdef __HP_cc
  14490. CURL_DEF_TOKEN __HP_cc
  14491. #endif
  14492. _ACEOF
  14493. if ac_fn_c_try_cpp "$LINENO"
  14494. then :
  14495. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  14496. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  14497. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  14498. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  14499. if test -z "$tmp_exp" || test "$tmp_exp" = "__HP_cc"; then
  14500. tmp_exp=""
  14501. fi
  14502. fi
  14503. rm -f conftest.err conftest.i conftest.$ac_ext
  14504. if test -z "$tmp_exp"; then
  14505. curl_cv_have_def___HP_cc=no
  14506. else
  14507. curl_cv_have_def___HP_cc=yes
  14508. curl_cv_def___HP_cc=$tmp_exp
  14509. fi
  14510. CPPFLAGS=$OLDCPPFLAGS
  14511. if test "$curl_cv_have_def___HP_cc" = "yes"; then
  14512. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14513. printf "%s\n" "yes" >&6; }
  14514. compiler_id="HP_UX_C"
  14515. flags_dbg_yes="-g"
  14516. flags_opt_all="-O +O0 +O1 +O2 +O3 +O4"
  14517. flags_opt_yes="+O2"
  14518. flags_opt_off="+O0"
  14519. else
  14520. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14521. printf "%s\n" "no" >&6; }
  14522. fi
  14523. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is IBM C" >&5
  14524. printf %s "checking if compiler is IBM C... " >&6; }
  14525. OLDCPPFLAGS=$CPPFLAGS
  14526. # CPPPFLAG comes from CURL_CPP_P
  14527. CPPFLAGS="$CPPFLAGS $CPPPFLAG"
  14528. if test -z "$SED"; then
  14529. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  14530. fi
  14531. if test -z "$GREP"; then
  14532. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  14533. fi
  14534. tmp_exp=""
  14535. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14536. /* end confdefs.h. */
  14537. #ifdef __IBMC__
  14538. CURL_DEF_TOKEN __IBMC__
  14539. #endif
  14540. _ACEOF
  14541. if ac_fn_c_try_cpp "$LINENO"
  14542. then :
  14543. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  14544. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  14545. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  14546. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  14547. if test -z "$tmp_exp" || test "$tmp_exp" = "__IBMC__"; then
  14548. tmp_exp=""
  14549. fi
  14550. fi
  14551. rm -f conftest.err conftest.i conftest.$ac_ext
  14552. if test -z "$tmp_exp"; then
  14553. curl_cv_have_def___IBMC__=no
  14554. else
  14555. curl_cv_have_def___IBMC__=yes
  14556. curl_cv_def___IBMC__=$tmp_exp
  14557. fi
  14558. CPPFLAGS=$OLDCPPFLAGS
  14559. if test "$curl_cv_have_def___IBMC__" = "yes"; then
  14560. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14561. printf "%s\n" "yes" >&6; }
  14562. compiler_id="IBM_C"
  14563. flags_dbg_yes="-g"
  14564. flags_opt_all="-O -O0 -O1 -O2 -O3 -O4 -O5"
  14565. flags_opt_all="$flags_opt_all -qnooptimize"
  14566. flags_opt_all="$flags_opt_all -qoptimize=0"
  14567. flags_opt_all="$flags_opt_all -qoptimize=1"
  14568. flags_opt_all="$flags_opt_all -qoptimize=2"
  14569. flags_opt_all="$flags_opt_all -qoptimize=3"
  14570. flags_opt_all="$flags_opt_all -qoptimize=4"
  14571. flags_opt_all="$flags_opt_all -qoptimize=5"
  14572. flags_opt_yes="-O2"
  14573. flags_opt_off="-qnooptimize"
  14574. flags_prefer_cppflags="yes"
  14575. else
  14576. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14577. printf "%s\n" "no" >&6; }
  14578. fi
  14579. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is Intel C" >&5
  14580. printf %s "checking if compiler is Intel C... " >&6; }
  14581. OLDCPPFLAGS=$CPPFLAGS
  14582. # CPPPFLAG comes from CURL_CPP_P
  14583. CPPFLAGS="$CPPFLAGS $CPPPFLAG"
  14584. if test -z "$SED"; then
  14585. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  14586. fi
  14587. if test -z "$GREP"; then
  14588. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  14589. fi
  14590. tmp_exp=""
  14591. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14592. /* end confdefs.h. */
  14593. #ifdef __INTEL_COMPILER
  14594. CURL_DEF_TOKEN __INTEL_COMPILER
  14595. #endif
  14596. _ACEOF
  14597. if ac_fn_c_try_cpp "$LINENO"
  14598. then :
  14599. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  14600. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  14601. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  14602. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  14603. if test -z "$tmp_exp" || test "$tmp_exp" = "__INTEL_COMPILER"; then
  14604. tmp_exp=""
  14605. fi
  14606. fi
  14607. rm -f conftest.err conftest.i conftest.$ac_ext
  14608. if test -z "$tmp_exp"; then
  14609. curl_cv_have_def___INTEL_COMPILER=no
  14610. else
  14611. curl_cv_have_def___INTEL_COMPILER=yes
  14612. curl_cv_def___INTEL_COMPILER=$tmp_exp
  14613. fi
  14614. CPPFLAGS=$OLDCPPFLAGS
  14615. if test "$curl_cv_have_def___INTEL_COMPILER" = "yes"; then
  14616. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14617. printf "%s\n" "yes" >&6; }
  14618. compiler_num="$curl_cv_def___INTEL_COMPILER"
  14619. OLDCPPFLAGS=$CPPFLAGS
  14620. # CPPPFLAG comes from CURL_CPP_P
  14621. CPPFLAGS="$CPPFLAGS $CPPPFLAG"
  14622. if test -z "$SED"; then
  14623. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  14624. fi
  14625. if test -z "$GREP"; then
  14626. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  14627. fi
  14628. tmp_exp=""
  14629. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14630. /* end confdefs.h. */
  14631. #ifdef __unix__
  14632. CURL_DEF_TOKEN __unix__
  14633. #endif
  14634. _ACEOF
  14635. if ac_fn_c_try_cpp "$LINENO"
  14636. then :
  14637. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  14638. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  14639. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  14640. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  14641. if test -z "$tmp_exp" || test "$tmp_exp" = ""; then
  14642. tmp_exp=""
  14643. fi
  14644. fi
  14645. rm -f conftest.err conftest.i conftest.$ac_ext
  14646. if test -z "$tmp_exp"; then
  14647. curl_cv_have_def___unix__=no
  14648. else
  14649. curl_cv_have_def___unix__=yes
  14650. curl_cv_def___unix__=$tmp_exp
  14651. fi
  14652. CPPFLAGS=$OLDCPPFLAGS
  14653. if test "$curl_cv_have_def___unix__" = "yes"; then
  14654. compiler_id="INTEL_UNIX_C"
  14655. flags_dbg_yes="-g"
  14656. flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
  14657. flags_opt_yes="-O2"
  14658. flags_opt_off="-O0"
  14659. else
  14660. compiler_id="INTEL_WINDOWS_C"
  14661. flags_dbg_yes="/Zi /Oy-"
  14662. flags_opt_all="/O /O0 /O1 /O2 /O3 /Od /Og /Og- /Oi /Oi-"
  14663. flags_opt_yes="/O2"
  14664. flags_opt_off="/Od"
  14665. fi
  14666. else
  14667. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14668. printf "%s\n" "no" >&6; }
  14669. fi
  14670. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is clang" >&5
  14671. printf %s "checking if compiler is clang... " >&6; }
  14672. OLDCPPFLAGS=$CPPFLAGS
  14673. # CPPPFLAG comes from CURL_CPP_P
  14674. CPPFLAGS="$CPPFLAGS $CPPPFLAG"
  14675. if test -z "$SED"; then
  14676. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  14677. fi
  14678. if test -z "$GREP"; then
  14679. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  14680. fi
  14681. tmp_exp=""
  14682. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14683. /* end confdefs.h. */
  14684. #ifdef __clang__
  14685. CURL_DEF_TOKEN __clang__
  14686. #endif
  14687. _ACEOF
  14688. if ac_fn_c_try_cpp "$LINENO"
  14689. then :
  14690. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  14691. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  14692. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  14693. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  14694. if test -z "$tmp_exp" || test "$tmp_exp" = "__clang__"; then
  14695. tmp_exp=""
  14696. fi
  14697. fi
  14698. rm -f conftest.err conftest.i conftest.$ac_ext
  14699. if test -z "$tmp_exp"; then
  14700. curl_cv_have_def___clang__=no
  14701. else
  14702. curl_cv_have_def___clang__=yes
  14703. curl_cv_def___clang__=$tmp_exp
  14704. fi
  14705. CPPFLAGS=$OLDCPPFLAGS
  14706. if test "$curl_cv_have_def___clang__" = "yes"; then
  14707. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14708. printf "%s\n" "yes" >&6; }
  14709. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is xlclang" >&5
  14710. printf %s "checking if compiler is xlclang... " >&6; }
  14711. OLDCPPFLAGS=$CPPFLAGS
  14712. # CPPPFLAG comes from CURL_CPP_P
  14713. CPPFLAGS="$CPPFLAGS $CPPPFLAG"
  14714. if test -z "$SED"; then
  14715. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  14716. fi
  14717. if test -z "$GREP"; then
  14718. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  14719. fi
  14720. tmp_exp=""
  14721. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14722. /* end confdefs.h. */
  14723. #ifdef __ibmxl__
  14724. CURL_DEF_TOKEN __ibmxl__
  14725. #endif
  14726. _ACEOF
  14727. if ac_fn_c_try_cpp "$LINENO"
  14728. then :
  14729. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  14730. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  14731. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  14732. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  14733. if test -z "$tmp_exp" || test "$tmp_exp" = "__ibmxl__"; then
  14734. tmp_exp=""
  14735. fi
  14736. fi
  14737. rm -f conftest.err conftest.i conftest.$ac_ext
  14738. if test -z "$tmp_exp"; then
  14739. curl_cv_have_def___ibmxl__=no
  14740. else
  14741. curl_cv_have_def___ibmxl__=yes
  14742. curl_cv_def___ibmxl__=$tmp_exp
  14743. fi
  14744. CPPFLAGS=$OLDCPPFLAGS
  14745. if test "$curl_cv_have_def___ibmxl__" = "yes" ; then
  14746. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14747. printf "%s\n" "yes" >&6; }
  14748. compiler_id="XLCLANG"
  14749. else
  14750. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14751. printf "%s\n" "no" >&6; }
  14752. compiler_id="CLANG"
  14753. fi
  14754. fullclangver=`$CC -v 2>&1 | grep version`
  14755. clangver=`echo $fullclangver | grep "based on LLVM " | "$SED" 's/.*(based on LLVM \([0-9]*\.[0-9]*\).*)/\1/'`
  14756. if test -z "$clangver"; then
  14757. if echo $fullclangver | grep "Apple LLVM version " >/dev/null; then
  14758. clangver="3.7"
  14759. else
  14760. clangver=`echo $fullclangver | "$SED" 's/.*version \([0-9]*\.[0-9]*\).*/\1/'`
  14761. fi
  14762. fi
  14763. clangvhi=`echo $clangver | cut -d . -f1`
  14764. clangvlo=`echo $clangver | cut -d . -f2`
  14765. compiler_num=`(expr $clangvhi "*" 100 + $clangvlo) 2>/dev/null`
  14766. flags_dbg_yes="-g"
  14767. flags_opt_all="-O -O0 -O1 -O2 -Os -O3 -O4"
  14768. flags_opt_yes="-Os"
  14769. flags_opt_off="-O0"
  14770. else
  14771. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14772. printf "%s\n" "no" >&6; }
  14773. fi
  14774. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is GNU C" >&5
  14775. printf %s "checking if compiler is GNU C... " >&6; }
  14776. OLDCPPFLAGS=$CPPFLAGS
  14777. # CPPPFLAG comes from CURL_CPP_P
  14778. CPPFLAGS="$CPPFLAGS $CPPPFLAG"
  14779. if test -z "$SED"; then
  14780. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  14781. fi
  14782. if test -z "$GREP"; then
  14783. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  14784. fi
  14785. tmp_exp=""
  14786. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14787. /* end confdefs.h. */
  14788. #ifdef __GNUC__
  14789. CURL_DEF_TOKEN __GNUC__
  14790. #endif
  14791. _ACEOF
  14792. if ac_fn_c_try_cpp "$LINENO"
  14793. then :
  14794. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  14795. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  14796. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  14797. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  14798. if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
  14799. tmp_exp=""
  14800. fi
  14801. fi
  14802. rm -f conftest.err conftest.i conftest.$ac_ext
  14803. if test -z "$tmp_exp"; then
  14804. curl_cv_have_def___GNUC__=no
  14805. else
  14806. curl_cv_have_def___GNUC__=yes
  14807. curl_cv_def___GNUC__=$tmp_exp
  14808. fi
  14809. CPPFLAGS=$OLDCPPFLAGS
  14810. if test "$curl_cv_have_def___GNUC__" = "yes" &&
  14811. test "$compiler_id" = "unknown"; then
  14812. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14813. printf "%s\n" "yes" >&6; }
  14814. compiler_id="GNU_C"
  14815. gccver=`$CC -dumpversion`
  14816. gccvhi=`echo $gccver | cut -d . -f1`
  14817. gccvlo=`echo $gccver | cut -d . -f2`
  14818. compiler_num=`(expr $gccvhi "*" 100 + $gccvlo) 2>/dev/null`
  14819. flags_dbg_yes="-g"
  14820. flags_opt_all="-O -O0 -O1 -O2 -O3 -Os -Og -Ofast"
  14821. flags_opt_yes="-O2"
  14822. flags_opt_off="-O0"
  14823. OLDCPPFLAGS=$CPPFLAGS
  14824. # CPPPFLAG comes from CURL_CPP_P
  14825. CPPFLAGS="$CPPFLAGS $CPPPFLAG"
  14826. if test -z "$SED"; then
  14827. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  14828. fi
  14829. if test -z "$GREP"; then
  14830. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  14831. fi
  14832. tmp_exp=""
  14833. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14834. /* end confdefs.h. */
  14835. #ifdef _WIN32
  14836. CURL_DEF_TOKEN _WIN32
  14837. #endif
  14838. _ACEOF
  14839. if ac_fn_c_try_cpp "$LINENO"
  14840. then :
  14841. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  14842. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  14843. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  14844. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  14845. if test -z "$tmp_exp" || test "$tmp_exp" = "_WIN32"; then
  14846. tmp_exp=""
  14847. fi
  14848. fi
  14849. rm -f conftest.err conftest.i conftest.$ac_ext
  14850. if test -z "$tmp_exp"; then
  14851. curl_cv_have_def__WIN32=no
  14852. else
  14853. curl_cv_have_def__WIN32=yes
  14854. curl_cv_def__WIN32=$tmp_exp
  14855. fi
  14856. CPPFLAGS=$OLDCPPFLAGS
  14857. else
  14858. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14859. printf "%s\n" "no" >&6; }
  14860. fi
  14861. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is LCC" >&5
  14862. printf %s "checking if compiler is LCC... " >&6; }
  14863. OLDCPPFLAGS=$CPPFLAGS
  14864. # CPPPFLAG comes from CURL_CPP_P
  14865. CPPFLAGS="$CPPFLAGS $CPPPFLAG"
  14866. if test -z "$SED"; then
  14867. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  14868. fi
  14869. if test -z "$GREP"; then
  14870. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  14871. fi
  14872. tmp_exp=""
  14873. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14874. /* end confdefs.h. */
  14875. #ifdef __LCC__
  14876. CURL_DEF_TOKEN __LCC__
  14877. #endif
  14878. _ACEOF
  14879. if ac_fn_c_try_cpp "$LINENO"
  14880. then :
  14881. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  14882. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  14883. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  14884. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  14885. if test -z "$tmp_exp" || test "$tmp_exp" = "__LCC__"; then
  14886. tmp_exp=""
  14887. fi
  14888. fi
  14889. rm -f conftest.err conftest.i conftest.$ac_ext
  14890. if test -z "$tmp_exp"; then
  14891. curl_cv_have_def___LCC__=no
  14892. else
  14893. curl_cv_have_def___LCC__=yes
  14894. curl_cv_def___LCC__=$tmp_exp
  14895. fi
  14896. CPPFLAGS=$OLDCPPFLAGS
  14897. if test "$curl_cv_have_def___LCC__" = "yes"; then
  14898. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14899. printf "%s\n" "yes" >&6; }
  14900. compiler_id="LCC"
  14901. flags_dbg_yes="-g"
  14902. flags_opt_all=""
  14903. flags_opt_yes=""
  14904. flags_opt_off=""
  14905. else
  14906. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14907. printf "%s\n" "no" >&6; }
  14908. fi
  14909. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPSpro C" >&5
  14910. printf %s "checking if compiler is SGI MIPSpro C... " >&6; }
  14911. OLDCPPFLAGS=$CPPFLAGS
  14912. # CPPPFLAG comes from CURL_CPP_P
  14913. CPPFLAGS="$CPPFLAGS $CPPPFLAG"
  14914. if test -z "$SED"; then
  14915. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  14916. fi
  14917. if test -z "$GREP"; then
  14918. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  14919. fi
  14920. tmp_exp=""
  14921. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14922. /* end confdefs.h. */
  14923. #ifdef __GNUC__
  14924. CURL_DEF_TOKEN __GNUC__
  14925. #endif
  14926. _ACEOF
  14927. if ac_fn_c_try_cpp "$LINENO"
  14928. then :
  14929. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  14930. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  14931. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  14932. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  14933. if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
  14934. tmp_exp=""
  14935. fi
  14936. fi
  14937. rm -f conftest.err conftest.i conftest.$ac_ext
  14938. if test -z "$tmp_exp"; then
  14939. curl_cv_have_def___GNUC__=no
  14940. else
  14941. curl_cv_have_def___GNUC__=yes
  14942. curl_cv_def___GNUC__=$tmp_exp
  14943. fi
  14944. CPPFLAGS=$OLDCPPFLAGS
  14945. OLDCPPFLAGS=$CPPFLAGS
  14946. # CPPPFLAG comes from CURL_CPP_P
  14947. CPPFLAGS="$CPPFLAGS $CPPPFLAG"
  14948. if test -z "$SED"; then
  14949. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  14950. fi
  14951. if test -z "$GREP"; then
  14952. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  14953. fi
  14954. tmp_exp=""
  14955. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14956. /* end confdefs.h. */
  14957. #ifdef _COMPILER_VERSION
  14958. CURL_DEF_TOKEN _COMPILER_VERSION
  14959. #endif
  14960. _ACEOF
  14961. if ac_fn_c_try_cpp "$LINENO"
  14962. then :
  14963. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  14964. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  14965. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  14966. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  14967. if test -z "$tmp_exp" || test "$tmp_exp" = "_COMPILER_VERSION"; then
  14968. tmp_exp=""
  14969. fi
  14970. fi
  14971. rm -f conftest.err conftest.i conftest.$ac_ext
  14972. if test -z "$tmp_exp"; then
  14973. curl_cv_have_def__COMPILER_VERSION=no
  14974. else
  14975. curl_cv_have_def__COMPILER_VERSION=yes
  14976. curl_cv_def__COMPILER_VERSION=$tmp_exp
  14977. fi
  14978. CPPFLAGS=$OLDCPPFLAGS
  14979. OLDCPPFLAGS=$CPPFLAGS
  14980. # CPPPFLAG comes from CURL_CPP_P
  14981. CPPFLAGS="$CPPFLAGS $CPPPFLAG"
  14982. if test -z "$SED"; then
  14983. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  14984. fi
  14985. if test -z "$GREP"; then
  14986. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  14987. fi
  14988. tmp_exp=""
  14989. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14990. /* end confdefs.h. */
  14991. #ifdef _SGI_COMPILER_VERSION
  14992. CURL_DEF_TOKEN _SGI_COMPILER_VERSION
  14993. #endif
  14994. _ACEOF
  14995. if ac_fn_c_try_cpp "$LINENO"
  14996. then :
  14997. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  14998. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  14999. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  15000. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  15001. if test -z "$tmp_exp" || test "$tmp_exp" = "_SGI_COMPILER_VERSION"; then
  15002. tmp_exp=""
  15003. fi
  15004. fi
  15005. rm -f conftest.err conftest.i conftest.$ac_ext
  15006. if test -z "$tmp_exp"; then
  15007. curl_cv_have_def__SGI_COMPILER_VERSION=no
  15008. else
  15009. curl_cv_have_def__SGI_COMPILER_VERSION=yes
  15010. curl_cv_def__SGI_COMPILER_VERSION=$tmp_exp
  15011. fi
  15012. CPPFLAGS=$OLDCPPFLAGS
  15013. if test "$curl_cv_have_def___GNUC__" = "no" &&
  15014. (test "$curl_cv_have_def__SGI_COMPILER_VERSION" = "yes" ||
  15015. test "$curl_cv_have_def__COMPILER_VERSION" = "yes"); then
  15016. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15017. printf "%s\n" "yes" >&6; }
  15018. compiler_id="SGI_MIPSPRO_C"
  15019. flags_dbg_yes="-g"
  15020. flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
  15021. flags_opt_yes="-O2"
  15022. flags_opt_off="-O0"
  15023. else
  15024. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15025. printf "%s\n" "no" >&6; }
  15026. fi
  15027. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPS C" >&5
  15028. printf %s "checking if compiler is SGI MIPS C... " >&6; }
  15029. OLDCPPFLAGS=$CPPFLAGS
  15030. # CPPPFLAG comes from CURL_CPP_P
  15031. CPPFLAGS="$CPPFLAGS $CPPPFLAG"
  15032. if test -z "$SED"; then
  15033. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  15034. fi
  15035. if test -z "$GREP"; then
  15036. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  15037. fi
  15038. tmp_exp=""
  15039. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15040. /* end confdefs.h. */
  15041. #ifdef __GNUC__
  15042. CURL_DEF_TOKEN __GNUC__
  15043. #endif
  15044. _ACEOF
  15045. if ac_fn_c_try_cpp "$LINENO"
  15046. then :
  15047. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  15048. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  15049. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  15050. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  15051. if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
  15052. tmp_exp=""
  15053. fi
  15054. fi
  15055. rm -f conftest.err conftest.i conftest.$ac_ext
  15056. if test -z "$tmp_exp"; then
  15057. curl_cv_have_def___GNUC__=no
  15058. else
  15059. curl_cv_have_def___GNUC__=yes
  15060. curl_cv_def___GNUC__=$tmp_exp
  15061. fi
  15062. CPPFLAGS=$OLDCPPFLAGS
  15063. OLDCPPFLAGS=$CPPFLAGS
  15064. # CPPPFLAG comes from CURL_CPP_P
  15065. CPPFLAGS="$CPPFLAGS $CPPPFLAG"
  15066. if test -z "$SED"; then
  15067. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  15068. fi
  15069. if test -z "$GREP"; then
  15070. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  15071. fi
  15072. tmp_exp=""
  15073. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15074. /* end confdefs.h. */
  15075. #ifdef __sgi
  15076. CURL_DEF_TOKEN __sgi
  15077. #endif
  15078. _ACEOF
  15079. if ac_fn_c_try_cpp "$LINENO"
  15080. then :
  15081. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  15082. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  15083. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  15084. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  15085. if test -z "$tmp_exp" || test "$tmp_exp" = "__sgi"; then
  15086. tmp_exp=""
  15087. fi
  15088. fi
  15089. rm -f conftest.err conftest.i conftest.$ac_ext
  15090. if test -z "$tmp_exp"; then
  15091. curl_cv_have_def___sgi=no
  15092. else
  15093. curl_cv_have_def___sgi=yes
  15094. curl_cv_def___sgi=$tmp_exp
  15095. fi
  15096. CPPFLAGS=$OLDCPPFLAGS
  15097. if test "$curl_cv_have_def___GNUC__" = "no" &&
  15098. test "$curl_cv_have_def___sgi" = "yes" &&
  15099. test "$compiler_id" = "unknown"; then
  15100. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15101. printf "%s\n" "yes" >&6; }
  15102. compiler_id="SGI_MIPS_C"
  15103. flags_dbg_yes="-g"
  15104. flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
  15105. flags_opt_yes="-O2"
  15106. flags_opt_off="-O0"
  15107. else
  15108. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15109. printf "%s\n" "no" >&6; }
  15110. fi
  15111. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is SunPro C" >&5
  15112. printf %s "checking if compiler is SunPro C... " >&6; }
  15113. OLDCPPFLAGS=$CPPFLAGS
  15114. # CPPPFLAG comes from CURL_CPP_P
  15115. CPPFLAGS="$CPPFLAGS $CPPPFLAG"
  15116. if test -z "$SED"; then
  15117. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  15118. fi
  15119. if test -z "$GREP"; then
  15120. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  15121. fi
  15122. tmp_exp=""
  15123. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15124. /* end confdefs.h. */
  15125. #ifdef __SUNPRO_C
  15126. CURL_DEF_TOKEN __SUNPRO_C
  15127. #endif
  15128. _ACEOF
  15129. if ac_fn_c_try_cpp "$LINENO"
  15130. then :
  15131. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  15132. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  15133. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  15134. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  15135. if test -z "$tmp_exp" || test "$tmp_exp" = "__SUNPRO_C"; then
  15136. tmp_exp=""
  15137. fi
  15138. fi
  15139. rm -f conftest.err conftest.i conftest.$ac_ext
  15140. if test -z "$tmp_exp"; then
  15141. curl_cv_have_def___SUNPRO_C=no
  15142. else
  15143. curl_cv_have_def___SUNPRO_C=yes
  15144. curl_cv_def___SUNPRO_C=$tmp_exp
  15145. fi
  15146. CPPFLAGS=$OLDCPPFLAGS
  15147. if test "$curl_cv_have_def___SUNPRO_C" = "yes"; then
  15148. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15149. printf "%s\n" "yes" >&6; }
  15150. compiler_id="SUNPRO_C"
  15151. flags_dbg_yes="-g"
  15152. flags_opt_all="-O -xO -xO1 -xO2 -xO3 -xO4 -xO5"
  15153. flags_opt_yes="-xO2"
  15154. flags_opt_off=""
  15155. else
  15156. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15157. printf "%s\n" "no" >&6; }
  15158. fi
  15159. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is Tiny C" >&5
  15160. printf %s "checking if compiler is Tiny C... " >&6; }
  15161. OLDCPPFLAGS=$CPPFLAGS
  15162. # CPPPFLAG comes from CURL_CPP_P
  15163. CPPFLAGS="$CPPFLAGS $CPPPFLAG"
  15164. if test -z "$SED"; then
  15165. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  15166. fi
  15167. if test -z "$GREP"; then
  15168. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  15169. fi
  15170. tmp_exp=""
  15171. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15172. /* end confdefs.h. */
  15173. #ifdef __TINYC__
  15174. CURL_DEF_TOKEN __TINYC__
  15175. #endif
  15176. _ACEOF
  15177. if ac_fn_c_try_cpp "$LINENO"
  15178. then :
  15179. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  15180. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  15181. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  15182. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  15183. if test -z "$tmp_exp" || test "$tmp_exp" = "__TINYC__"; then
  15184. tmp_exp=""
  15185. fi
  15186. fi
  15187. rm -f conftest.err conftest.i conftest.$ac_ext
  15188. if test -z "$tmp_exp"; then
  15189. curl_cv_have_def___TINYC__=no
  15190. else
  15191. curl_cv_have_def___TINYC__=yes
  15192. curl_cv_def___TINYC__=$tmp_exp
  15193. fi
  15194. CPPFLAGS=$OLDCPPFLAGS
  15195. if test "$curl_cv_have_def___TINYC__" = "yes"; then
  15196. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15197. printf "%s\n" "yes" >&6; }
  15198. compiler_id="TINY_C"
  15199. flags_dbg_yes="-g"
  15200. flags_opt_all=""
  15201. flags_opt_yes=""
  15202. flags_opt_off=""
  15203. else
  15204. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15205. printf "%s\n" "no" >&6; }
  15206. fi
  15207. #
  15208. if test "$compiler_id" = "unknown"; then
  15209. cat <<_EOF 1>&2
  15210. ***
  15211. *** Warning: This configure script does not have information about the
  15212. *** compiler you are using, relative to the flags required to enable or
  15213. *** disable generation of debug info, optimization options or warnings.
  15214. ***
  15215. *** Whatever settings are present in CFLAGS will be used for this run.
  15216. ***
  15217. *** If you wish to help the curl project to better support your compiler
  15218. *** you can report this and the required info on the libcurl development
  15219. *** mailing list: https://lists.haxx.selistinfo/curl-library/
  15220. ***
  15221. _EOF
  15222. fi
  15223. squeeze() {
  15224. _sqz_result=""
  15225. eval _sqz_input=\$$1
  15226. for _sqz_token in $_sqz_input; do
  15227. if test -z "$_sqz_result"; then
  15228. _sqz_result="$_sqz_token"
  15229. else
  15230. _sqz_result="$_sqz_result $_sqz_token"
  15231. fi
  15232. done
  15233. eval $1=\$_sqz_result
  15234. return 0
  15235. }
  15236. #
  15237. if test "$compiler_id" != "unknown"; then
  15238. #
  15239. tmp_save_CPPFLAGS="$CPPFLAGS"
  15240. tmp_save_CFLAGS="$CFLAGS"
  15241. tmp_CPPFLAGS=""
  15242. tmp_CFLAGS=""
  15243. #
  15244. case "$compiler_id" in
  15245. #
  15246. CLANG)
  15247. #
  15248. tmp_CFLAGS="$tmp_CFLAGS -Qunused-arguments"
  15249. tmp_CFLAGS="$tmp_CFLAGS -Wno-pointer-bool-conversion"
  15250. ;;
  15251. #
  15252. DEC_C)
  15253. #
  15254. tmp_CFLAGS="$tmp_CFLAGS -std1"
  15255. tmp_CFLAGS="$tmp_CFLAGS -noansi_alias"
  15256. tmp_CFLAGS="$tmp_CFLAGS -warnprotos"
  15257. tmp_CFLAGS="$tmp_CFLAGS -msg_fatal toofewargs,toomanyargs"
  15258. ;;
  15259. #
  15260. GNU_C)
  15261. #
  15262. if test "$compiler_num" -ge "295"; then
  15263. tmp_CFLAGS="$tmp_CFLAGS -Werror-implicit-function-declaration"
  15264. fi
  15265. ;;
  15266. #
  15267. HP_UX_C)
  15268. #
  15269. tmp_CFLAGS="$tmp_CFLAGS -z"
  15270. tmp_CFLAGS="$tmp_CFLAGS +W 4227,4255"
  15271. ;;
  15272. #
  15273. IBM_C)
  15274. #
  15275. tmp_CPPFLAGS="$tmp_CPPFLAGS -qthreaded"
  15276. tmp_CPPFLAGS="$tmp_CPPFLAGS -qnoansialias"
  15277. tmp_CPPFLAGS="$tmp_CPPFLAGS -qhalt=e"
  15278. ;;
  15279. #
  15280. INTEL_UNIX_C)
  15281. #
  15282. tmp_CFLAGS="$tmp_CFLAGS -std=gnu89"
  15283. tmp_CPPFLAGS="$tmp_CPPFLAGS -diag-error 140,147,165,266"
  15284. tmp_CPPFLAGS="$tmp_CPPFLAGS -diag-disable 279,981,1025,1469,2259"
  15285. ;;
  15286. #
  15287. INTEL_WINDOWS_C)
  15288. #
  15289. tmp_CFLAGS="$tmp_CFLAGS"
  15290. ;;
  15291. #
  15292. LCC)
  15293. #
  15294. tmp_CFLAGS="$tmp_CFLAGS -n"
  15295. ;;
  15296. #
  15297. SGI_MIPS_C)
  15298. #
  15299. tmp_CFLAGS="$tmp_CFLAGS"
  15300. ;;
  15301. #
  15302. SGI_MIPSPRO_C)
  15303. #
  15304. tmp_CFLAGS="$tmp_CFLAGS"
  15305. ;;
  15306. #
  15307. SUNPRO_C)
  15308. #
  15309. tmp_CFLAGS="$tmp_CFLAGS"
  15310. ;;
  15311. #
  15312. TINY_C)
  15313. #
  15314. tmp_CFLAGS="$tmp_CFLAGS"
  15315. ;;
  15316. #
  15317. esac
  15318. #
  15319. squeeze tmp_CPPFLAGS
  15320. squeeze tmp_CFLAGS
  15321. #
  15322. if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
  15323. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts some basic options" >&5
  15324. printf %s "checking if compiler accepts some basic options... " >&6; }
  15325. CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
  15326. CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
  15327. squeeze CPPFLAGS
  15328. squeeze CFLAGS
  15329. tmp_compiler_works="unknown"
  15330. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15331. /* end confdefs.h. */
  15332. int main (void)
  15333. {
  15334. int i = 1;
  15335. return i;
  15336. ;
  15337. return 0;
  15338. }
  15339. _ACEOF
  15340. if ac_fn_c_try_compile "$LINENO"
  15341. then :
  15342. tmp_compiler_works="yes"
  15343. else $as_nop
  15344. tmp_compiler_works="no"
  15345. echo " " >&6
  15346. sed 's/^/cc-fail: /' conftest.err >&6
  15347. echo " " >&6
  15348. fi
  15349. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15350. if test "$tmp_compiler_works" = "yes"; then
  15351. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15352. /* end confdefs.h. */
  15353. int main (void)
  15354. {
  15355. int i = 1;
  15356. return i;
  15357. ;
  15358. return 0;
  15359. }
  15360. _ACEOF
  15361. if ac_fn_c_try_link "$LINENO"
  15362. then :
  15363. tmp_compiler_works="yes"
  15364. else $as_nop
  15365. tmp_compiler_works="no"
  15366. echo " " >&6
  15367. sed 's/^/link-fail: /' conftest.err >&6
  15368. echo " " >&6
  15369. fi
  15370. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  15371. conftest$ac_exeext conftest.$ac_ext
  15372. fi
  15373. if test "x$cross_compiling" != "xyes" &&
  15374. test "$tmp_compiler_works" = "yes"; then
  15375. case $host_os in
  15376. darwin*)
  15377. if test "$cross_compiling" = yes
  15378. then :
  15379. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15380. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  15381. as_fn_error $? "cannot run test program while cross compiling
  15382. See \`config.log' for more details" "$LINENO" 5; }
  15383. else $as_nop
  15384. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15385. /* end confdefs.h. */
  15386. # ifdef __STDC__
  15387. # include <stdlib.h>
  15388. # endif
  15389. int main (void)
  15390. {
  15391. int i = 0;
  15392. exit(i);
  15393. ;
  15394. return 0;
  15395. }
  15396. _ACEOF
  15397. if ac_fn_c_try_run "$LINENO"
  15398. then :
  15399. tmp_compiler_works="yes"
  15400. else $as_nop
  15401. tmp_compiler_works="no"
  15402. echo " " >&6
  15403. echo "run-fail: test program exited with status $ac_status" >&6
  15404. echo " " >&6
  15405. fi
  15406. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15407. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15408. fi
  15409. ;;
  15410. *)
  15411. old=$LD_LIBRARY_PATH
  15412. LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
  15413. export LD_LIBRARY_PATH
  15414. if test "$cross_compiling" = yes
  15415. then :
  15416. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15417. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  15418. as_fn_error $? "cannot run test program while cross compiling
  15419. See \`config.log' for more details" "$LINENO" 5; }
  15420. else $as_nop
  15421. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15422. /* end confdefs.h. */
  15423. # ifdef __STDC__
  15424. # include <stdlib.h>
  15425. # endif
  15426. int main (void)
  15427. {
  15428. int i = 0;
  15429. exit(i);
  15430. ;
  15431. return 0;
  15432. }
  15433. _ACEOF
  15434. if ac_fn_c_try_run "$LINENO"
  15435. then :
  15436. tmp_compiler_works="yes"
  15437. else $as_nop
  15438. tmp_compiler_works="no"
  15439. echo " " >&6
  15440. echo "run-fail: test program exited with status $ac_status" >&6
  15441. echo " " >&6
  15442. fi
  15443. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15444. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15445. fi
  15446. LD_LIBRARY_PATH=$old # restore
  15447. ;;
  15448. esac
  15449. fi
  15450. if test "$tmp_compiler_works" = "yes"; then
  15451. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15452. printf "%s\n" "yes" >&6; }
  15453. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
  15454. printf "%s\n" "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
  15455. else
  15456. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15457. printf "%s\n" "no" >&6; }
  15458. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
  15459. printf "%s\n" "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
  15460. CPPFLAGS="$tmp_save_CPPFLAGS"
  15461. CFLAGS="$tmp_save_CFLAGS"
  15462. fi
  15463. fi
  15464. #
  15465. fi
  15466. #
  15467. if test "$compiler_id" != "unknown"; then
  15468. #
  15469. tmp_save_CFLAGS="$CFLAGS"
  15470. tmp_save_CPPFLAGS="$CPPFLAGS"
  15471. #
  15472. tmp_options=""
  15473. tmp_CFLAGS="$CFLAGS"
  15474. tmp_CPPFLAGS="$CPPFLAGS"
  15475. #
  15476. if test "$want_debug" = "yes"; then
  15477. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug enabling options" >&5
  15478. printf %s "checking if compiler accepts debug enabling options... " >&6; }
  15479. tmp_options="$flags_dbg_yes"
  15480. fi
  15481. #
  15482. if test "$flags_prefer_cppflags" = "yes"; then
  15483. CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
  15484. CFLAGS="$tmp_CFLAGS"
  15485. else
  15486. CPPFLAGS="$tmp_CPPFLAGS"
  15487. CFLAGS="$tmp_CFLAGS $tmp_options"
  15488. fi
  15489. squeeze CPPFLAGS
  15490. squeeze CFLAGS
  15491. fi
  15492. #
  15493. if test "$compiler_id" != "unknown"; then
  15494. #
  15495. tmp_save_CFLAGS="$CFLAGS"
  15496. tmp_save_CPPFLAGS="$CPPFLAGS"
  15497. #
  15498. tmp_options=""
  15499. tmp_CFLAGS="$CFLAGS"
  15500. tmp_CPPFLAGS="$CPPFLAGS"
  15501. honor_optimize_option="yes"
  15502. #
  15503. #
  15504. if test "$want_optimize" = "assume_no" ||
  15505. test "$want_optimize" = "assume_yes"; then
  15506. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler optimizer assumed setting might be used" >&5
  15507. printf %s "checking if compiler optimizer assumed setting might be used... " >&6; }
  15508. ac_var_match_word="no"
  15509. for word1 in $tmp_CFLAGS; do
  15510. for word2 in $flags_opt_all; do
  15511. if test "$word1" = "$word2"; then
  15512. ac_var_match_word="yes"
  15513. fi
  15514. done
  15515. done
  15516. if test "$ac_var_match_word" = "yes"; then
  15517. honor_optimize_option="no"
  15518. fi
  15519. ac_var_match_word="no"
  15520. for word1 in $tmp_CPPFLAGS; do
  15521. for word2 in $flags_opt_all; do
  15522. if test "$word1" = "$word2"; then
  15523. ac_var_match_word="yes"
  15524. fi
  15525. done
  15526. done
  15527. if test "$ac_var_match_word" = "yes"; then
  15528. honor_optimize_option="no"
  15529. fi
  15530. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $honor_optimize_option" >&5
  15531. printf "%s\n" "$honor_optimize_option" >&6; }
  15532. if test "$honor_optimize_option" = "yes"; then
  15533. if test "$want_optimize" = "assume_yes"; then
  15534. want_optimize="yes"
  15535. fi
  15536. if test "$want_optimize" = "assume_no"; then
  15537. want_optimize="no"
  15538. fi
  15539. fi
  15540. fi
  15541. #
  15542. if test "$honor_optimize_option" = "yes"; then
  15543. ac_var_stripped=""
  15544. for word1 in $tmp_CFLAGS; do
  15545. ac_var_strip_word="no"
  15546. for word2 in $flags_opt_all; do
  15547. if test "$word1" = "$word2"; then
  15548. ac_var_strip_word="yes"
  15549. fi
  15550. done
  15551. if test "$ac_var_strip_word" = "no"; then
  15552. ac_var_stripped="$ac_var_stripped $word1"
  15553. fi
  15554. done
  15555. tmp_CFLAGS="$ac_var_stripped"
  15556. squeeze tmp_CFLAGS
  15557. ac_var_stripped=""
  15558. for word1 in $tmp_CPPFLAGS; do
  15559. ac_var_strip_word="no"
  15560. for word2 in $flags_opt_all; do
  15561. if test "$word1" = "$word2"; then
  15562. ac_var_strip_word="yes"
  15563. fi
  15564. done
  15565. if test "$ac_var_strip_word" = "no"; then
  15566. ac_var_stripped="$ac_var_stripped $word1"
  15567. fi
  15568. done
  15569. tmp_CPPFLAGS="$ac_var_stripped"
  15570. squeeze tmp_CPPFLAGS
  15571. if test "$want_optimize" = "yes"; then
  15572. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer enabling options" >&5
  15573. printf %s "checking if compiler accepts optimizer enabling options... " >&6; }
  15574. tmp_options="$flags_opt_yes"
  15575. fi
  15576. if test "$want_optimize" = "no"; then
  15577. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer disabling options" >&5
  15578. printf %s "checking if compiler accepts optimizer disabling options... " >&6; }
  15579. tmp_options="$flags_opt_off"
  15580. fi
  15581. if test "$flags_prefer_cppflags" = "yes"; then
  15582. CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
  15583. CFLAGS="$tmp_CFLAGS"
  15584. else
  15585. CPPFLAGS="$tmp_CPPFLAGS"
  15586. CFLAGS="$tmp_CFLAGS $tmp_options"
  15587. fi
  15588. squeeze CPPFLAGS
  15589. squeeze CFLAGS
  15590. tmp_compiler_works="unknown"
  15591. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15592. /* end confdefs.h. */
  15593. int main (void)
  15594. {
  15595. int i = 1;
  15596. return i;
  15597. ;
  15598. return 0;
  15599. }
  15600. _ACEOF
  15601. if ac_fn_c_try_compile "$LINENO"
  15602. then :
  15603. tmp_compiler_works="yes"
  15604. else $as_nop
  15605. tmp_compiler_works="no"
  15606. echo " " >&6
  15607. sed 's/^/cc-fail: /' conftest.err >&6
  15608. echo " " >&6
  15609. fi
  15610. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15611. if test "$tmp_compiler_works" = "yes"; then
  15612. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15613. /* end confdefs.h. */
  15614. int main (void)
  15615. {
  15616. int i = 1;
  15617. return i;
  15618. ;
  15619. return 0;
  15620. }
  15621. _ACEOF
  15622. if ac_fn_c_try_link "$LINENO"
  15623. then :
  15624. tmp_compiler_works="yes"
  15625. else $as_nop
  15626. tmp_compiler_works="no"
  15627. echo " " >&6
  15628. sed 's/^/link-fail: /' conftest.err >&6
  15629. echo " " >&6
  15630. fi
  15631. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  15632. conftest$ac_exeext conftest.$ac_ext
  15633. fi
  15634. if test "x$cross_compiling" != "xyes" &&
  15635. test "$tmp_compiler_works" = "yes"; then
  15636. case $host_os in
  15637. darwin*)
  15638. if test "$cross_compiling" = yes
  15639. then :
  15640. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15641. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  15642. as_fn_error $? "cannot run test program while cross compiling
  15643. See \`config.log' for more details" "$LINENO" 5; }
  15644. else $as_nop
  15645. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15646. /* end confdefs.h. */
  15647. # ifdef __STDC__
  15648. # include <stdlib.h>
  15649. # endif
  15650. int main (void)
  15651. {
  15652. int i = 0;
  15653. exit(i);
  15654. ;
  15655. return 0;
  15656. }
  15657. _ACEOF
  15658. if ac_fn_c_try_run "$LINENO"
  15659. then :
  15660. tmp_compiler_works="yes"
  15661. else $as_nop
  15662. tmp_compiler_works="no"
  15663. echo " " >&6
  15664. echo "run-fail: test program exited with status $ac_status" >&6
  15665. echo " " >&6
  15666. fi
  15667. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15668. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15669. fi
  15670. ;;
  15671. *)
  15672. old=$LD_LIBRARY_PATH
  15673. LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
  15674. export LD_LIBRARY_PATH
  15675. if test "$cross_compiling" = yes
  15676. then :
  15677. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15678. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  15679. as_fn_error $? "cannot run test program while cross compiling
  15680. See \`config.log' for more details" "$LINENO" 5; }
  15681. else $as_nop
  15682. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15683. /* end confdefs.h. */
  15684. # ifdef __STDC__
  15685. # include <stdlib.h>
  15686. # endif
  15687. int main (void)
  15688. {
  15689. int i = 0;
  15690. exit(i);
  15691. ;
  15692. return 0;
  15693. }
  15694. _ACEOF
  15695. if ac_fn_c_try_run "$LINENO"
  15696. then :
  15697. tmp_compiler_works="yes"
  15698. else $as_nop
  15699. tmp_compiler_works="no"
  15700. echo " " >&6
  15701. echo "run-fail: test program exited with status $ac_status" >&6
  15702. echo " " >&6
  15703. fi
  15704. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15705. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15706. fi
  15707. LD_LIBRARY_PATH=$old # restore
  15708. ;;
  15709. esac
  15710. fi
  15711. if test "$tmp_compiler_works" = "yes"; then
  15712. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15713. printf "%s\n" "yes" >&6; }
  15714. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
  15715. printf "%s\n" "$as_me: compiler options added: $tmp_options" >&6;}
  15716. else
  15717. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15718. printf "%s\n" "no" >&6; }
  15719. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
  15720. printf "%s\n" "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
  15721. CPPFLAGS="$tmp_save_CPPFLAGS"
  15722. CFLAGS="$tmp_save_CFLAGS"
  15723. fi
  15724. fi
  15725. #
  15726. fi
  15727. #
  15728. if test "$compiler_id" != "unknown"; then
  15729. #
  15730. tmp_save_CPPFLAGS="$CPPFLAGS"
  15731. tmp_save_CFLAGS="$CFLAGS"
  15732. tmp_CPPFLAGS=""
  15733. tmp_CFLAGS=""
  15734. #
  15735. case "$compiler_id" in
  15736. #
  15737. CLANG)
  15738. #
  15739. if test "$want_warnings" = "yes"; then
  15740. tmp_CFLAGS="$tmp_CFLAGS -pedantic"
  15741. ac_var_added_warnings=""
  15742. for warning in all extra; do
  15743. ac_var_match_word="no"
  15744. for word1 in $CFLAGS; do
  15745. for word2 in -Wno-$warning -W$warning; do
  15746. if test "$word1" = "$word2"; then
  15747. ac_var_match_word="yes"
  15748. fi
  15749. done
  15750. done
  15751. if test "$ac_var_match_word" = "no"; then
  15752. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  15753. fi
  15754. done
  15755. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  15756. squeeze tmp_CFLAGS
  15757. ac_var_added_warnings=""
  15758. for warning in pointer-arith write-strings; do
  15759. ac_var_match_word="no"
  15760. for word1 in $CFLAGS; do
  15761. for word2 in -Wno-$warning -W$warning; do
  15762. if test "$word1" = "$word2"; then
  15763. ac_var_match_word="yes"
  15764. fi
  15765. done
  15766. done
  15767. if test "$ac_var_match_word" = "no"; then
  15768. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  15769. fi
  15770. done
  15771. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  15772. squeeze tmp_CFLAGS
  15773. ac_var_added_warnings=""
  15774. for warning in shadow; do
  15775. ac_var_match_word="no"
  15776. for word1 in $CFLAGS; do
  15777. for word2 in -Wno-$warning -W$warning; do
  15778. if test "$word1" = "$word2"; then
  15779. ac_var_match_word="yes"
  15780. fi
  15781. done
  15782. done
  15783. if test "$ac_var_match_word" = "no"; then
  15784. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  15785. fi
  15786. done
  15787. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  15788. squeeze tmp_CFLAGS
  15789. ac_var_added_warnings=""
  15790. for warning in inline nested-externs; do
  15791. ac_var_match_word="no"
  15792. for word1 in $CFLAGS; do
  15793. for word2 in -Wno-$warning -W$warning; do
  15794. if test "$word1" = "$word2"; then
  15795. ac_var_match_word="yes"
  15796. fi
  15797. done
  15798. done
  15799. if test "$ac_var_match_word" = "no"; then
  15800. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  15801. fi
  15802. done
  15803. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  15804. squeeze tmp_CFLAGS
  15805. ac_var_added_warnings=""
  15806. for warning in missing-declarations; do
  15807. ac_var_match_word="no"
  15808. for word1 in $CFLAGS; do
  15809. for word2 in -Wno-$warning -W$warning; do
  15810. if test "$word1" = "$word2"; then
  15811. ac_var_match_word="yes"
  15812. fi
  15813. done
  15814. done
  15815. if test "$ac_var_match_word" = "no"; then
  15816. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  15817. fi
  15818. done
  15819. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  15820. squeeze tmp_CFLAGS
  15821. ac_var_added_warnings=""
  15822. for warning in missing-prototypes; do
  15823. ac_var_match_word="no"
  15824. for word1 in $CFLAGS; do
  15825. for word2 in -Wno-$warning -W$warning; do
  15826. if test "$word1" = "$word2"; then
  15827. ac_var_match_word="yes"
  15828. fi
  15829. done
  15830. done
  15831. if test "$ac_var_match_word" = "no"; then
  15832. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  15833. fi
  15834. done
  15835. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  15836. squeeze tmp_CFLAGS
  15837. tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
  15838. ac_var_added_warnings=""
  15839. for warning in float-equal; do
  15840. ac_var_match_word="no"
  15841. for word1 in $CFLAGS; do
  15842. for word2 in -Wno-$warning -W$warning; do
  15843. if test "$word1" = "$word2"; then
  15844. ac_var_match_word="yes"
  15845. fi
  15846. done
  15847. done
  15848. if test "$ac_var_match_word" = "no"; then
  15849. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  15850. fi
  15851. done
  15852. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  15853. squeeze tmp_CFLAGS
  15854. ac_var_added_warnings=""
  15855. for warning in no-multichar sign-compare; do
  15856. ac_var_match_word="no"
  15857. for word1 in $CFLAGS; do
  15858. for word2 in -Wno-$warning -W$warning; do
  15859. if test "$word1" = "$word2"; then
  15860. ac_var_match_word="yes"
  15861. fi
  15862. done
  15863. done
  15864. if test "$ac_var_match_word" = "no"; then
  15865. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  15866. fi
  15867. done
  15868. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  15869. squeeze tmp_CFLAGS
  15870. ac_var_added_warnings=""
  15871. for warning in undef; do
  15872. ac_var_match_word="no"
  15873. for word1 in $CFLAGS; do
  15874. for word2 in -Wno-$warning -W$warning; do
  15875. if test "$word1" = "$word2"; then
  15876. ac_var_match_word="yes"
  15877. fi
  15878. done
  15879. done
  15880. if test "$ac_var_match_word" = "no"; then
  15881. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  15882. fi
  15883. done
  15884. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  15885. squeeze tmp_CFLAGS
  15886. tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
  15887. ac_var_added_warnings=""
  15888. for warning in endif-labels strict-prototypes; do
  15889. ac_var_match_word="no"
  15890. for word1 in $CFLAGS; do
  15891. for word2 in -Wno-$warning -W$warning; do
  15892. if test "$word1" = "$word2"; then
  15893. ac_var_match_word="yes"
  15894. fi
  15895. done
  15896. done
  15897. if test "$ac_var_match_word" = "no"; then
  15898. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  15899. fi
  15900. done
  15901. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  15902. squeeze tmp_CFLAGS
  15903. ac_var_added_warnings=""
  15904. for warning in declaration-after-statement; do
  15905. ac_var_match_word="no"
  15906. for word1 in $CFLAGS; do
  15907. for word2 in -Wno-$warning -W$warning; do
  15908. if test "$word1" = "$word2"; then
  15909. ac_var_match_word="yes"
  15910. fi
  15911. done
  15912. done
  15913. if test "$ac_var_match_word" = "no"; then
  15914. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  15915. fi
  15916. done
  15917. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  15918. squeeze tmp_CFLAGS
  15919. ac_var_added_warnings=""
  15920. for warning in cast-align; do
  15921. ac_var_match_word="no"
  15922. for word1 in $CFLAGS; do
  15923. for word2 in -Wno-$warning -W$warning; do
  15924. if test "$word1" = "$word2"; then
  15925. ac_var_match_word="yes"
  15926. fi
  15927. done
  15928. done
  15929. if test "$ac_var_match_word" = "no"; then
  15930. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  15931. fi
  15932. done
  15933. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  15934. squeeze tmp_CFLAGS
  15935. tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
  15936. ac_var_added_warnings=""
  15937. for warning in shorten-64-to-32; do
  15938. ac_var_match_word="no"
  15939. for word1 in $CFLAGS; do
  15940. for word2 in -Wno-$warning -W$warning; do
  15941. if test "$word1" = "$word2"; then
  15942. ac_var_match_word="yes"
  15943. fi
  15944. done
  15945. done
  15946. if test "$ac_var_match_word" = "no"; then
  15947. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  15948. fi
  15949. done
  15950. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  15951. squeeze tmp_CFLAGS
  15952. #
  15953. if test "$compiler_num" -ge "101"; then
  15954. ac_var_added_warnings=""
  15955. for warning in unused; do
  15956. ac_var_match_word="no"
  15957. for word1 in $CFLAGS; do
  15958. for word2 in -Wno-$warning -W$warning; do
  15959. if test "$word1" = "$word2"; then
  15960. ac_var_match_word="yes"
  15961. fi
  15962. done
  15963. done
  15964. if test "$ac_var_match_word" = "no"; then
  15965. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  15966. fi
  15967. done
  15968. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  15969. squeeze tmp_CFLAGS
  15970. fi
  15971. #
  15972. if test "$compiler_num" -ge "208"; then
  15973. ac_var_added_warnings=""
  15974. for warning in vla; do
  15975. ac_var_match_word="no"
  15976. for word1 in $CFLAGS; do
  15977. for word2 in -Wno-$warning -W$warning; do
  15978. if test "$word1" = "$word2"; then
  15979. ac_var_match_word="yes"
  15980. fi
  15981. done
  15982. done
  15983. if test "$ac_var_match_word" = "no"; then
  15984. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  15985. fi
  15986. done
  15987. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  15988. squeeze tmp_CFLAGS
  15989. fi
  15990. #
  15991. if test "$compiler_num" -ge "209"; then
  15992. ac_var_added_warnings=""
  15993. for warning in shift-sign-overflow; do
  15994. ac_var_match_word="no"
  15995. for word1 in $CFLAGS; do
  15996. for word2 in -Wno-$warning -W$warning; do
  15997. if test "$word1" = "$word2"; then
  15998. ac_var_match_word="yes"
  15999. fi
  16000. done
  16001. done
  16002. if test "$ac_var_match_word" = "no"; then
  16003. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  16004. fi
  16005. done
  16006. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  16007. squeeze tmp_CFLAGS
  16008. fi
  16009. #
  16010. if test "$compiler_num" -ge "302"; then
  16011. case $host_os in
  16012. cygwin* | mingw*)
  16013. ;;
  16014. *)
  16015. ac_var_added_warnings=""
  16016. for warning in missing-variable-declarations; do
  16017. ac_var_match_word="no"
  16018. for word1 in $CFLAGS; do
  16019. for word2 in -Wno-$warning -W$warning; do
  16020. if test "$word1" = "$word2"; then
  16021. ac_var_match_word="yes"
  16022. fi
  16023. done
  16024. done
  16025. if test "$ac_var_match_word" = "no"; then
  16026. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  16027. fi
  16028. done
  16029. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  16030. squeeze tmp_CFLAGS
  16031. ;;
  16032. esac
  16033. fi
  16034. #
  16035. if test "$compiler_num" -ge "306"; then
  16036. ac_var_added_warnings=""
  16037. for warning in double-promotion; do
  16038. ac_var_match_word="no"
  16039. for word1 in $CFLAGS; do
  16040. for word2 in -Wno-$warning -W$warning; do
  16041. if test "$word1" = "$word2"; then
  16042. ac_var_match_word="yes"
  16043. fi
  16044. done
  16045. done
  16046. if test "$ac_var_match_word" = "no"; then
  16047. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  16048. fi
  16049. done
  16050. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  16051. squeeze tmp_CFLAGS
  16052. fi
  16053. #
  16054. if test "$compiler_num" -ge "309"; then
  16055. ac_var_added_warnings=""
  16056. for warning in comma; do
  16057. ac_var_match_word="no"
  16058. for word1 in $CFLAGS; do
  16059. for word2 in -Wno-$warning -W$warning; do
  16060. if test "$word1" = "$word2"; then
  16061. ac_var_match_word="yes"
  16062. fi
  16063. done
  16064. done
  16065. if test "$ac_var_match_word" = "no"; then
  16066. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  16067. fi
  16068. done
  16069. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  16070. squeeze tmp_CFLAGS
  16071. # avoid the varargs warning, fixed in 4.0
  16072. # https://bugs.llvm.org/show_bug.cgi?id=29140
  16073. if test "$compiler_num" -lt "400"; then
  16074. tmp_CFLAGS="$tmp_CFLAGS -Wno-varargs"
  16075. fi
  16076. fi
  16077. if test "$compiler_num" -ge "700"; then
  16078. ac_var_added_warnings=""
  16079. for warning in assign-enum; do
  16080. ac_var_match_word="no"
  16081. for word1 in $CFLAGS; do
  16082. for word2 in -Wno-$warning -W$warning; do
  16083. if test "$word1" = "$word2"; then
  16084. ac_var_match_word="yes"
  16085. fi
  16086. done
  16087. done
  16088. if test "$ac_var_match_word" = "no"; then
  16089. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  16090. fi
  16091. done
  16092. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  16093. squeeze tmp_CFLAGS
  16094. ac_var_added_warnings=""
  16095. for warning in extra-semi-stmt; do
  16096. ac_var_match_word="no"
  16097. for word1 in $CFLAGS; do
  16098. for word2 in -Wno-$warning -W$warning; do
  16099. if test "$word1" = "$word2"; then
  16100. ac_var_match_word="yes"
  16101. fi
  16102. done
  16103. done
  16104. if test "$ac_var_match_word" = "no"; then
  16105. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  16106. fi
  16107. done
  16108. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  16109. squeeze tmp_CFLAGS
  16110. fi
  16111. fi
  16112. ;;
  16113. #
  16114. DEC_C)
  16115. #
  16116. if test "$want_warnings" = "yes"; then
  16117. tmp_CFLAGS="$tmp_CFLAGS -msg_enable level3"
  16118. fi
  16119. ;;
  16120. #
  16121. GNU_C)
  16122. #
  16123. if test "$want_warnings" = "yes"; then
  16124. #
  16125. if test "x$cross_compiling" != "xyes" ||
  16126. test "$compiler_num" -ge "300"; then
  16127. tmp_CFLAGS="$tmp_CFLAGS -pedantic"
  16128. fi
  16129. #
  16130. ac_var_added_warnings=""
  16131. for warning in all; do
  16132. ac_var_match_word="no"
  16133. for word1 in $CFLAGS; do
  16134. for word2 in -Wno-$warning -W$warning; do
  16135. if test "$word1" = "$word2"; then
  16136. ac_var_match_word="yes"
  16137. fi
  16138. done
  16139. done
  16140. if test "$ac_var_match_word" = "no"; then
  16141. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  16142. fi
  16143. done
  16144. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  16145. squeeze tmp_CFLAGS
  16146. tmp_CFLAGS="$tmp_CFLAGS -W"
  16147. #
  16148. if test "$compiler_num" -ge "104"; then
  16149. ac_var_added_warnings=""
  16150. for warning in pointer-arith write-strings; do
  16151. ac_var_match_word="no"
  16152. for word1 in $CFLAGS; do
  16153. for word2 in -Wno-$warning -W$warning; do
  16154. if test "$word1" = "$word2"; then
  16155. ac_var_match_word="yes"
  16156. fi
  16157. done
  16158. done
  16159. if test "$ac_var_match_word" = "no"; then
  16160. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  16161. fi
  16162. done
  16163. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  16164. squeeze tmp_CFLAGS
  16165. if test "x$cross_compiling" != "xyes" ||
  16166. test "$compiler_num" -ge "300"; then
  16167. ac_var_added_warnings=""
  16168. for warning in unused shadow; do
  16169. ac_var_match_word="no"
  16170. for word1 in $CFLAGS; do
  16171. for word2 in -Wno-$warning -W$warning; do
  16172. if test "$word1" = "$word2"; then
  16173. ac_var_match_word="yes"
  16174. fi
  16175. done
  16176. done
  16177. if test "$ac_var_match_word" = "no"; then
  16178. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  16179. fi
  16180. done
  16181. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  16182. squeeze tmp_CFLAGS
  16183. fi
  16184. fi
  16185. #
  16186. if test "$compiler_num" -ge "207"; then
  16187. ac_var_added_warnings=""
  16188. for warning in inline nested-externs; do
  16189. ac_var_match_word="no"
  16190. for word1 in $CFLAGS; do
  16191. for word2 in -Wno-$warning -W$warning; do
  16192. if test "$word1" = "$word2"; then
  16193. ac_var_match_word="yes"
  16194. fi
  16195. done
  16196. done
  16197. if test "$ac_var_match_word" = "no"; then
  16198. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  16199. fi
  16200. done
  16201. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  16202. squeeze tmp_CFLAGS
  16203. if test "x$cross_compiling" != "xyes" ||
  16204. test "$compiler_num" -ge "300"; then
  16205. ac_var_added_warnings=""
  16206. for warning in missing-declarations; do
  16207. ac_var_match_word="no"
  16208. for word1 in $CFLAGS; do
  16209. for word2 in -Wno-$warning -W$warning; do
  16210. if test "$word1" = "$word2"; then
  16211. ac_var_match_word="yes"
  16212. fi
  16213. done
  16214. done
  16215. if test "$ac_var_match_word" = "no"; then
  16216. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  16217. fi
  16218. done
  16219. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  16220. squeeze tmp_CFLAGS
  16221. ac_var_added_warnings=""
  16222. for warning in missing-prototypes; do
  16223. ac_var_match_word="no"
  16224. for word1 in $CFLAGS; do
  16225. for word2 in -Wno-$warning -W$warning; do
  16226. if test "$word1" = "$word2"; then
  16227. ac_var_match_word="yes"
  16228. fi
  16229. done
  16230. done
  16231. if test "$ac_var_match_word" = "no"; then
  16232. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  16233. fi
  16234. done
  16235. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  16236. squeeze tmp_CFLAGS
  16237. fi
  16238. fi
  16239. #
  16240. if test "$compiler_num" -ge "295"; then
  16241. tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
  16242. ac_var_added_warnings=""
  16243. for warning in bad-function-cast; do
  16244. ac_var_match_word="no"
  16245. for word1 in $CFLAGS; do
  16246. for word2 in -Wno-$warning -W$warning; do
  16247. if test "$word1" = "$word2"; then
  16248. ac_var_match_word="yes"
  16249. fi
  16250. done
  16251. done
  16252. if test "$ac_var_match_word" = "no"; then
  16253. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  16254. fi
  16255. done
  16256. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  16257. squeeze tmp_CFLAGS
  16258. fi
  16259. #
  16260. if test "$compiler_num" -ge "296"; then
  16261. ac_var_added_warnings=""
  16262. for warning in float-equal; do
  16263. ac_var_match_word="no"
  16264. for word1 in $CFLAGS; do
  16265. for word2 in -Wno-$warning -W$warning; do
  16266. if test "$word1" = "$word2"; then
  16267. ac_var_match_word="yes"
  16268. fi
  16269. done
  16270. done
  16271. if test "$ac_var_match_word" = "no"; then
  16272. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  16273. fi
  16274. done
  16275. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  16276. squeeze tmp_CFLAGS
  16277. tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar"
  16278. ac_var_added_warnings=""
  16279. for warning in sign-compare; do
  16280. ac_var_match_word="no"
  16281. for word1 in $CFLAGS; do
  16282. for word2 in -Wno-$warning -W$warning; do
  16283. if test "$word1" = "$word2"; then
  16284. ac_var_match_word="yes"
  16285. fi
  16286. done
  16287. done
  16288. if test "$ac_var_match_word" = "no"; then
  16289. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  16290. fi
  16291. done
  16292. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  16293. squeeze tmp_CFLAGS
  16294. ac_var_added_warnings=""
  16295. for warning in undef; do
  16296. ac_var_match_word="no"
  16297. for word1 in $CFLAGS; do
  16298. for word2 in -Wno-$warning -W$warning; do
  16299. if test "$word1" = "$word2"; then
  16300. ac_var_match_word="yes"
  16301. fi
  16302. done
  16303. done
  16304. if test "$ac_var_match_word" = "no"; then
  16305. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  16306. fi
  16307. done
  16308. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  16309. squeeze tmp_CFLAGS
  16310. fi
  16311. #
  16312. if test "$compiler_num" -ge "297"; then
  16313. tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
  16314. fi
  16315. #
  16316. if test "$compiler_num" -ge "300"; then
  16317. tmp_CFLAGS="$tmp_CFLAGS"
  16318. fi
  16319. #
  16320. if test "$compiler_num" -ge "303"; then
  16321. ac_var_added_warnings=""
  16322. for warning in endif-labels strict-prototypes; do
  16323. ac_var_match_word="no"
  16324. for word1 in $CFLAGS; do
  16325. for word2 in -Wno-$warning -W$warning; do
  16326. if test "$word1" = "$word2"; then
  16327. ac_var_match_word="yes"
  16328. fi
  16329. done
  16330. done
  16331. if test "$ac_var_match_word" = "no"; then
  16332. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  16333. fi
  16334. done
  16335. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  16336. squeeze tmp_CFLAGS
  16337. fi
  16338. #
  16339. if test "$compiler_num" -ge "304"; then
  16340. ac_var_added_warnings=""
  16341. for warning in declaration-after-statement; do
  16342. ac_var_match_word="no"
  16343. for word1 in $CFLAGS; do
  16344. for word2 in -Wno-$warning -W$warning; do
  16345. if test "$word1" = "$word2"; then
  16346. ac_var_match_word="yes"
  16347. fi
  16348. done
  16349. done
  16350. if test "$ac_var_match_word" = "no"; then
  16351. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  16352. fi
  16353. done
  16354. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  16355. squeeze tmp_CFLAGS
  16356. ac_var_added_warnings=""
  16357. for warning in old-style-definition; do
  16358. ac_var_match_word="no"
  16359. for word1 in $CFLAGS; do
  16360. for word2 in -Wno-$warning -W$warning; do
  16361. if test "$word1" = "$word2"; then
  16362. ac_var_match_word="yes"
  16363. fi
  16364. done
  16365. done
  16366. if test "$ac_var_match_word" = "no"; then
  16367. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  16368. fi
  16369. done
  16370. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  16371. squeeze tmp_CFLAGS
  16372. fi
  16373. #
  16374. if test "$compiler_num" -ge "400"; then
  16375. tmp_CFLAGS="$tmp_CFLAGS -Wstrict-aliasing=3"
  16376. fi
  16377. #
  16378. if test "$compiler_num" -ge "402"; then
  16379. ac_var_added_warnings=""
  16380. for warning in cast-align; do
  16381. ac_var_match_word="no"
  16382. for word1 in $CFLAGS; do
  16383. for word2 in -Wno-$warning -W$warning; do
  16384. if test "$word1" = "$word2"; then
  16385. ac_var_match_word="yes"
  16386. fi
  16387. done
  16388. done
  16389. if test "$ac_var_match_word" = "no"; then
  16390. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  16391. fi
  16392. done
  16393. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  16394. squeeze tmp_CFLAGS
  16395. fi
  16396. #
  16397. if test "$compiler_num" -ge "403"; then
  16398. ac_var_added_warnings=""
  16399. for warning in type-limits old-style-declaration; do
  16400. ac_var_match_word="no"
  16401. for word1 in $CFLAGS; do
  16402. for word2 in -Wno-$warning -W$warning; do
  16403. if test "$word1" = "$word2"; then
  16404. ac_var_match_word="yes"
  16405. fi
  16406. done
  16407. done
  16408. if test "$ac_var_match_word" = "no"; then
  16409. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  16410. fi
  16411. done
  16412. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  16413. squeeze tmp_CFLAGS
  16414. ac_var_added_warnings=""
  16415. for warning in missing-parameter-type empty-body; do
  16416. ac_var_match_word="no"
  16417. for word1 in $CFLAGS; do
  16418. for word2 in -Wno-$warning -W$warning; do
  16419. if test "$word1" = "$word2"; then
  16420. ac_var_match_word="yes"
  16421. fi
  16422. done
  16423. done
  16424. if test "$ac_var_match_word" = "no"; then
  16425. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  16426. fi
  16427. done
  16428. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  16429. squeeze tmp_CFLAGS
  16430. ac_var_added_warnings=""
  16431. for warning in clobbered ignored-qualifiers; do
  16432. ac_var_match_word="no"
  16433. for word1 in $CFLAGS; do
  16434. for word2 in -Wno-$warning -W$warning; do
  16435. if test "$word1" = "$word2"; then
  16436. ac_var_match_word="yes"
  16437. fi
  16438. done
  16439. done
  16440. if test "$ac_var_match_word" = "no"; then
  16441. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  16442. fi
  16443. done
  16444. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  16445. squeeze tmp_CFLAGS
  16446. ac_var_added_warnings=""
  16447. for warning in conversion; do
  16448. ac_var_match_word="no"
  16449. for word1 in $CFLAGS; do
  16450. for word2 in -Wno-$warning -W$warning; do
  16451. if test "$word1" = "$word2"; then
  16452. ac_var_match_word="yes"
  16453. fi
  16454. done
  16455. done
  16456. if test "$ac_var_match_word" = "no"; then
  16457. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  16458. fi
  16459. done
  16460. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  16461. squeeze tmp_CFLAGS
  16462. tmp_CFLAGS="$tmp_CFLAGS -Wno-sign-conversion"
  16463. ac_var_added_warnings=""
  16464. for warning in vla; do
  16465. ac_var_match_word="no"
  16466. for word1 in $CFLAGS; do
  16467. for word2 in -Wno-$warning -W$warning; do
  16468. if test "$word1" = "$word2"; then
  16469. ac_var_match_word="yes"
  16470. fi
  16471. done
  16472. done
  16473. if test "$ac_var_match_word" = "no"; then
  16474. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  16475. fi
  16476. done
  16477. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  16478. squeeze tmp_CFLAGS
  16479. tmp_CFLAGS="$tmp_CFLAGS -ftree-vrp"
  16480. fi
  16481. #
  16482. if test "$compiler_num" -ge "405"; then
  16483. if test "$curl_cv_have_def__WIN32" = "yes"; then
  16484. tmp_CFLAGS="$tmp_CFLAGS -Wno-pedantic-ms-format"
  16485. fi
  16486. fi
  16487. #
  16488. if test "$compiler_num" -ge "406"; then
  16489. ac_var_added_warnings=""
  16490. for warning in double-promotion; do
  16491. ac_var_match_word="no"
  16492. for word1 in $CFLAGS; do
  16493. for word2 in -Wno-$warning -W$warning; do
  16494. if test "$word1" = "$word2"; then
  16495. ac_var_match_word="yes"
  16496. fi
  16497. done
  16498. done
  16499. if test "$ac_var_match_word" = "no"; then
  16500. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  16501. fi
  16502. done
  16503. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  16504. squeeze tmp_CFLAGS
  16505. fi
  16506. #
  16507. if test "$compiler_num" -ge "408"; then
  16508. tmp_CFLAGS="$tmp_CFLAGS -Wformat=2"
  16509. fi
  16510. #
  16511. if test "$compiler_num" -ge "500"; then
  16512. tmp_CFLAGS="$tmp_CFLAGS -Warray-bounds=2"
  16513. fi
  16514. #
  16515. if test "$compiler_num" -ge "600"; then
  16516. ac_var_added_warnings=""
  16517. for warning in shift-negative-value; do
  16518. ac_var_match_word="no"
  16519. for word1 in $CFLAGS; do
  16520. for word2 in -Wno-$warning -W$warning; do
  16521. if test "$word1" = "$word2"; then
  16522. ac_var_match_word="yes"
  16523. fi
  16524. done
  16525. done
  16526. if test "$ac_var_match_word" = "no"; then
  16527. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  16528. fi
  16529. done
  16530. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  16531. squeeze tmp_CFLAGS
  16532. tmp_CFLAGS="$tmp_CFLAGS -Wshift-overflow=2"
  16533. ac_var_added_warnings=""
  16534. for warning in null-dereference; do
  16535. ac_var_match_word="no"
  16536. for word1 in $CFLAGS; do
  16537. for word2 in -Wno-$warning -W$warning; do
  16538. if test "$word1" = "$word2"; then
  16539. ac_var_match_word="yes"
  16540. fi
  16541. done
  16542. done
  16543. if test "$ac_var_match_word" = "no"; then
  16544. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  16545. fi
  16546. done
  16547. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  16548. squeeze tmp_CFLAGS
  16549. tmp_CFLAGS="$tmp_CFLAGS -fdelete-null-pointer-checks"
  16550. ac_var_added_warnings=""
  16551. for warning in duplicated-cond; do
  16552. ac_var_match_word="no"
  16553. for word1 in $CFLAGS; do
  16554. for word2 in -Wno-$warning -W$warning; do
  16555. if test "$word1" = "$word2"; then
  16556. ac_var_match_word="yes"
  16557. fi
  16558. done
  16559. done
  16560. if test "$ac_var_match_word" = "no"; then
  16561. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  16562. fi
  16563. done
  16564. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  16565. squeeze tmp_CFLAGS
  16566. ac_var_added_warnings=""
  16567. for warning in unused-const-variable; do
  16568. ac_var_match_word="no"
  16569. for word1 in $CFLAGS; do
  16570. for word2 in -Wno-$warning -W$warning; do
  16571. if test "$word1" = "$word2"; then
  16572. ac_var_match_word="yes"
  16573. fi
  16574. done
  16575. done
  16576. if test "$ac_var_match_word" = "no"; then
  16577. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  16578. fi
  16579. done
  16580. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  16581. squeeze tmp_CFLAGS
  16582. fi
  16583. #
  16584. if test "$compiler_num" -ge "700"; then
  16585. ac_var_added_warnings=""
  16586. for warning in duplicated-branches; do
  16587. ac_var_match_word="no"
  16588. for word1 in $CFLAGS; do
  16589. for word2 in -Wno-$warning -W$warning; do
  16590. if test "$word1" = "$word2"; then
  16591. ac_var_match_word="yes"
  16592. fi
  16593. done
  16594. done
  16595. if test "$ac_var_match_word" = "no"; then
  16596. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  16597. fi
  16598. done
  16599. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  16600. squeeze tmp_CFLAGS
  16601. ac_var_added_warnings=""
  16602. for warning in restrict; do
  16603. ac_var_match_word="no"
  16604. for word1 in $CFLAGS; do
  16605. for word2 in -Wno-$warning -W$warning; do
  16606. if test "$word1" = "$word2"; then
  16607. ac_var_match_word="yes"
  16608. fi
  16609. done
  16610. done
  16611. if test "$ac_var_match_word" = "no"; then
  16612. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  16613. fi
  16614. done
  16615. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  16616. squeeze tmp_CFLAGS
  16617. ac_var_added_warnings=""
  16618. for warning in alloc-zero; do
  16619. ac_var_match_word="no"
  16620. for word1 in $CFLAGS; do
  16621. for word2 in -Wno-$warning -W$warning; do
  16622. if test "$word1" = "$word2"; then
  16623. ac_var_match_word="yes"
  16624. fi
  16625. done
  16626. done
  16627. if test "$ac_var_match_word" = "no"; then
  16628. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  16629. fi
  16630. done
  16631. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  16632. squeeze tmp_CFLAGS
  16633. tmp_CFLAGS="$tmp_CFLAGS -Wformat-overflow=2"
  16634. tmp_CFLAGS="$tmp_CFLAGS -Wformat-truncation=2"
  16635. if test "$compiler_num" -lt "1200"; then
  16636. tmp_CFLAGS="$tmp_CFLAGS -Wimplicit-fallthrough=4"
  16637. fi
  16638. fi
  16639. #
  16640. if test "$compiler_num" -ge "1000"; then
  16641. ac_var_added_warnings=""
  16642. for warning in arith-conversion; do
  16643. ac_var_match_word="no"
  16644. for word1 in $CFLAGS; do
  16645. for word2 in -Wno-$warning -W$warning; do
  16646. if test "$word1" = "$word2"; then
  16647. ac_var_match_word="yes"
  16648. fi
  16649. done
  16650. done
  16651. if test "$ac_var_match_word" = "no"; then
  16652. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  16653. fi
  16654. done
  16655. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  16656. squeeze tmp_CFLAGS
  16657. ac_var_added_warnings=""
  16658. for warning in enum-conversion; do
  16659. ac_var_match_word="no"
  16660. for word1 in $CFLAGS; do
  16661. for word2 in -Wno-$warning -W$warning; do
  16662. if test "$word1" = "$word2"; then
  16663. ac_var_match_word="yes"
  16664. fi
  16665. done
  16666. done
  16667. if test "$ac_var_match_word" = "no"; then
  16668. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  16669. fi
  16670. done
  16671. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  16672. squeeze tmp_CFLAGS
  16673. fi
  16674. #
  16675. fi
  16676. #
  16677. if test "$compiler_num" -ge "300"; then
  16678. tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
  16679. else
  16680. if test "x$cross_compiling" = "xyes"; then
  16681. if test "$compiler_num" -ge "104"; then
  16682. tmp_CFLAGS="$tmp_CFLAGS -Wno-unused -Wno-shadow"
  16683. fi
  16684. if test "$compiler_num" -ge "207"; then
  16685. tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-declarations"
  16686. tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-prototypes"
  16687. fi
  16688. fi
  16689. fi
  16690. ;;
  16691. #
  16692. HP_UX_C)
  16693. #
  16694. if test "$want_warnings" = "yes"; then
  16695. tmp_CFLAGS="$tmp_CFLAGS +w1"
  16696. fi
  16697. ;;
  16698. #
  16699. IBM_C)
  16700. #
  16701. tmp_CFLAGS="$tmp_CFLAGS"
  16702. ;;
  16703. #
  16704. INTEL_UNIX_C)
  16705. #
  16706. if test "$want_warnings" = "yes"; then
  16707. if test "$compiler_num" -gt "600"; then
  16708. tmp_CPPFLAGS="$tmp_CPPFLAGS -Wall -w2"
  16709. tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcheck"
  16710. tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcomment"
  16711. tmp_CPPFLAGS="$tmp_CPPFLAGS -Wdeprecated"
  16712. tmp_CPPFLAGS="$tmp_CPPFLAGS -Wmissing-prototypes"
  16713. tmp_CPPFLAGS="$tmp_CPPFLAGS -Wp64"
  16714. tmp_CPPFLAGS="$tmp_CPPFLAGS -Wpointer-arith"
  16715. tmp_CPPFLAGS="$tmp_CPPFLAGS -Wreturn-type"
  16716. tmp_CPPFLAGS="$tmp_CPPFLAGS -Wshadow"
  16717. tmp_CPPFLAGS="$tmp_CPPFLAGS -Wuninitialized"
  16718. tmp_CPPFLAGS="$tmp_CPPFLAGS -Wunused-function"
  16719. fi
  16720. fi
  16721. tmp_CFLAGS="$tmp_CFLAGS -fno-omit-frame-pointer"
  16722. tmp_CFLAGS="$tmp_CFLAGS -fno-strict-aliasing"
  16723. tmp_CFLAGS="$tmp_CFLAGS -fp-model precise"
  16724. ;;
  16725. #
  16726. INTEL_WINDOWS_C)
  16727. #
  16728. tmp_CFLAGS="$tmp_CFLAGS"
  16729. ;;
  16730. #
  16731. LCC)
  16732. #
  16733. if test "$want_warnings" = "yes"; then
  16734. tmp_CFLAGS="$tmp_CFLAGS"
  16735. fi
  16736. ;;
  16737. #
  16738. SGI_MIPS_C)
  16739. #
  16740. if test "$want_warnings" = "yes"; then
  16741. tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
  16742. fi
  16743. ;;
  16744. #
  16745. SGI_MIPSPRO_C)
  16746. #
  16747. if test "$want_warnings" = "yes"; then
  16748. tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
  16749. tmp_CFLAGS="$tmp_CFLAGS -woff 1209"
  16750. fi
  16751. ;;
  16752. #
  16753. SUNPRO_C)
  16754. #
  16755. if test "$want_warnings" = "yes"; then
  16756. tmp_CFLAGS="$tmp_CFLAGS -v"
  16757. fi
  16758. ;;
  16759. #
  16760. TINY_C)
  16761. #
  16762. if test "$want_warnings" = "yes"; then
  16763. ac_var_added_warnings=""
  16764. for warning in all; do
  16765. ac_var_match_word="no"
  16766. for word1 in $CFLAGS; do
  16767. for word2 in -Wno-$warning -W$warning; do
  16768. if test "$word1" = "$word2"; then
  16769. ac_var_match_word="yes"
  16770. fi
  16771. done
  16772. done
  16773. if test "$ac_var_match_word" = "no"; then
  16774. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  16775. fi
  16776. done
  16777. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  16778. squeeze tmp_CFLAGS
  16779. ac_var_added_warnings=""
  16780. for warning in write-strings; do
  16781. ac_var_match_word="no"
  16782. for word1 in $CFLAGS; do
  16783. for word2 in -Wno-$warning -W$warning; do
  16784. if test "$word1" = "$word2"; then
  16785. ac_var_match_word="yes"
  16786. fi
  16787. done
  16788. done
  16789. if test "$ac_var_match_word" = "no"; then
  16790. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  16791. fi
  16792. done
  16793. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  16794. squeeze tmp_CFLAGS
  16795. ac_var_added_warnings=""
  16796. for warning in unsupported; do
  16797. ac_var_match_word="no"
  16798. for word1 in $CFLAGS; do
  16799. for word2 in -Wno-$warning -W$warning; do
  16800. if test "$word1" = "$word2"; then
  16801. ac_var_match_word="yes"
  16802. fi
  16803. done
  16804. done
  16805. if test "$ac_var_match_word" = "no"; then
  16806. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  16807. fi
  16808. done
  16809. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  16810. squeeze tmp_CFLAGS
  16811. fi
  16812. ;;
  16813. #
  16814. esac
  16815. #
  16816. squeeze tmp_CPPFLAGS
  16817. squeeze tmp_CFLAGS
  16818. #
  16819. if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
  16820. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts strict warning options" >&5
  16821. printf %s "checking if compiler accepts strict warning options... " >&6; }
  16822. CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
  16823. CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
  16824. squeeze CPPFLAGS
  16825. squeeze CFLAGS
  16826. tmp_compiler_works="unknown"
  16827. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16828. /* end confdefs.h. */
  16829. int main (void)
  16830. {
  16831. int i = 1;
  16832. return i;
  16833. ;
  16834. return 0;
  16835. }
  16836. _ACEOF
  16837. if ac_fn_c_try_compile "$LINENO"
  16838. then :
  16839. tmp_compiler_works="yes"
  16840. else $as_nop
  16841. tmp_compiler_works="no"
  16842. echo " " >&6
  16843. sed 's/^/cc-fail: /' conftest.err >&6
  16844. echo " " >&6
  16845. fi
  16846. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16847. if test "$tmp_compiler_works" = "yes"; then
  16848. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16849. /* end confdefs.h. */
  16850. int main (void)
  16851. {
  16852. int i = 1;
  16853. return i;
  16854. ;
  16855. return 0;
  16856. }
  16857. _ACEOF
  16858. if ac_fn_c_try_link "$LINENO"
  16859. then :
  16860. tmp_compiler_works="yes"
  16861. else $as_nop
  16862. tmp_compiler_works="no"
  16863. echo " " >&6
  16864. sed 's/^/link-fail: /' conftest.err >&6
  16865. echo " " >&6
  16866. fi
  16867. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16868. conftest$ac_exeext conftest.$ac_ext
  16869. fi
  16870. if test "x$cross_compiling" != "xyes" &&
  16871. test "$tmp_compiler_works" = "yes"; then
  16872. case $host_os in
  16873. darwin*)
  16874. if test "$cross_compiling" = yes
  16875. then :
  16876. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  16877. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  16878. as_fn_error $? "cannot run test program while cross compiling
  16879. See \`config.log' for more details" "$LINENO" 5; }
  16880. else $as_nop
  16881. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16882. /* end confdefs.h. */
  16883. # ifdef __STDC__
  16884. # include <stdlib.h>
  16885. # endif
  16886. int main (void)
  16887. {
  16888. int i = 0;
  16889. exit(i);
  16890. ;
  16891. return 0;
  16892. }
  16893. _ACEOF
  16894. if ac_fn_c_try_run "$LINENO"
  16895. then :
  16896. tmp_compiler_works="yes"
  16897. else $as_nop
  16898. tmp_compiler_works="no"
  16899. echo " " >&6
  16900. echo "run-fail: test program exited with status $ac_status" >&6
  16901. echo " " >&6
  16902. fi
  16903. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16904. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16905. fi
  16906. ;;
  16907. *)
  16908. old=$LD_LIBRARY_PATH
  16909. LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
  16910. export LD_LIBRARY_PATH
  16911. if test "$cross_compiling" = yes
  16912. then :
  16913. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  16914. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  16915. as_fn_error $? "cannot run test program while cross compiling
  16916. See \`config.log' for more details" "$LINENO" 5; }
  16917. else $as_nop
  16918. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16919. /* end confdefs.h. */
  16920. # ifdef __STDC__
  16921. # include <stdlib.h>
  16922. # endif
  16923. int main (void)
  16924. {
  16925. int i = 0;
  16926. exit(i);
  16927. ;
  16928. return 0;
  16929. }
  16930. _ACEOF
  16931. if ac_fn_c_try_run "$LINENO"
  16932. then :
  16933. tmp_compiler_works="yes"
  16934. else $as_nop
  16935. tmp_compiler_works="no"
  16936. echo " " >&6
  16937. echo "run-fail: test program exited with status $ac_status" >&6
  16938. echo " " >&6
  16939. fi
  16940. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16941. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16942. fi
  16943. LD_LIBRARY_PATH=$old # restore
  16944. ;;
  16945. esac
  16946. fi
  16947. if test "$tmp_compiler_works" = "yes"; then
  16948. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16949. printf "%s\n" "yes" >&6; }
  16950. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
  16951. printf "%s\n" "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
  16952. else
  16953. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16954. printf "%s\n" "no" >&6; }
  16955. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
  16956. printf "%s\n" "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
  16957. CPPFLAGS="$tmp_save_CPPFLAGS"
  16958. CFLAGS="$tmp_save_CFLAGS"
  16959. fi
  16960. fi
  16961. #
  16962. fi
  16963. if test "$compiler_id" = "INTEL_UNIX_C"; then
  16964. #
  16965. if test "$compiler_num" -ge "1000"; then
  16966. CFLAGS="$CFLAGS -shared-intel"
  16967. elif test "$compiler_num" -ge "900"; then
  16968. CFLAGS="$CFLAGS -i-dynamic"
  16969. fi
  16970. #
  16971. fi
  16972. CURL_CFLAG_EXTRAS=""
  16973. if test X"$want_werror" = Xyes; then
  16974. CURL_CFLAG_EXTRAS="-Werror"
  16975. if test "$compiler_id" = "GNU_C"; then
  16976. if test "$compiler_num" -ge "500"; then
  16977. CURL_CFLAG_EXTRAS="$CURL_CFLAG_EXTRAS -pedantic-errors"
  16978. fi
  16979. fi
  16980. fi
  16981. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler halts on compilation errors" >&5
  16982. printf %s "checking if compiler halts on compilation errors... " >&6; }
  16983. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16984. /* end confdefs.h. */
  16985. int main (void)
  16986. {
  16987. force compilation error
  16988. ;
  16989. return 0;
  16990. }
  16991. _ACEOF
  16992. if ac_fn_c_try_compile "$LINENO"
  16993. then :
  16994. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16995. printf "%s\n" "no" >&6; }
  16996. as_fn_error $? "compiler does not halt on compilation errors." "$LINENO" 5
  16997. else $as_nop
  16998. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16999. printf "%s\n" "yes" >&6; }
  17000. fi
  17001. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17002. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler halts on negative sized arrays" >&5
  17003. printf %s "checking if compiler halts on negative sized arrays... " >&6; }
  17004. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17005. /* end confdefs.h. */
  17006. typedef char bad_t[sizeof(char) == sizeof(int) ? -1 : -1 ];
  17007. int main (void)
  17008. {
  17009. bad_t dummy;
  17010. ;
  17011. return 0;
  17012. }
  17013. _ACEOF
  17014. if ac_fn_c_try_compile "$LINENO"
  17015. then :
  17016. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17017. printf "%s\n" "no" >&6; }
  17018. as_fn_error $? "compiler does not halt on negative sized arrays." "$LINENO" 5
  17019. else $as_nop
  17020. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17021. printf "%s\n" "yes" >&6; }
  17022. fi
  17023. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17024. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler halts on function prototype mismatch" >&5
  17025. printf %s "checking if compiler halts on function prototype mismatch... " >&6; }
  17026. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17027. /* end confdefs.h. */
  17028. # include <stdlib.h>
  17029. int rand(int n);
  17030. int rand(int n)
  17031. {
  17032. if(n)
  17033. return ++n;
  17034. else
  17035. return n;
  17036. }
  17037. int main (void)
  17038. {
  17039. int i[2]={0,0};
  17040. int j = rand(i[0]);
  17041. if(j)
  17042. return j;
  17043. ;
  17044. return 0;
  17045. }
  17046. _ACEOF
  17047. if ac_fn_c_try_compile "$LINENO"
  17048. then :
  17049. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17050. printf "%s\n" "no" >&6; }
  17051. as_fn_error $? "compiler does not halt on function prototype mismatch." "$LINENO" 5
  17052. else $as_nop
  17053. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17054. printf "%s\n" "yes" >&6; }
  17055. fi
  17056. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17057. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler supports hiding library internal symbols" >&5
  17058. printf %s "checking if compiler supports hiding library internal symbols... " >&6; }
  17059. supports_symbol_hiding="no"
  17060. symbol_hiding_CFLAGS=""
  17061. symbol_hiding_EXTERN=""
  17062. tmp_CFLAGS=""
  17063. tmp_EXTERN=""
  17064. case "$compiler_id" in
  17065. CLANG)
  17066. tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
  17067. tmp_CFLAGS="-fvisibility=hidden"
  17068. supports_symbol_hiding="yes"
  17069. ;;
  17070. GNU_C)
  17071. if test "$compiler_num" -ge "304"; then
  17072. if $CC --help --verbose 2>/dev/null | grep fvisibility= >/dev/null ; then
  17073. tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
  17074. tmp_CFLAGS="-fvisibility=hidden"
  17075. supports_symbol_hiding="yes"
  17076. fi
  17077. fi
  17078. ;;
  17079. INTEL_UNIX_C)
  17080. if test "$compiler_num" -ge "900"; then
  17081. if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
  17082. tmp_save_CFLAGS="$CFLAGS"
  17083. CFLAGS="$CFLAGS -fvisibility=hidden"
  17084. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17085. /* end confdefs.h. */
  17086. # include <stdio.h>
  17087. int main (void)
  17088. {
  17089. printf("icc fvisibility bug test");
  17090. ;
  17091. return 0;
  17092. }
  17093. _ACEOF
  17094. if ac_fn_c_try_link "$LINENO"
  17095. then :
  17096. tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
  17097. tmp_CFLAGS="-fvisibility=hidden"
  17098. supports_symbol_hiding="yes"
  17099. fi
  17100. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17101. conftest$ac_exeext conftest.$ac_ext
  17102. CFLAGS="$tmp_save_CFLAGS"
  17103. fi
  17104. fi
  17105. ;;
  17106. SUNPRO_C)
  17107. if $CC 2>&1 | grep flags >/dev/null && $CC -flags | grep xldscope= >/dev/null ; then
  17108. tmp_EXTERN="__global"
  17109. tmp_CFLAGS="-xldscope=hidden"
  17110. supports_symbol_hiding="yes"
  17111. fi
  17112. ;;
  17113. esac
  17114. if test "$supports_symbol_hiding" = "yes"; then
  17115. tmp_save_CFLAGS="$CFLAGS"
  17116. CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
  17117. squeeze CFLAGS
  17118. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17119. /* end confdefs.h. */
  17120. $tmp_EXTERN char *dummy(char *buff);
  17121. char *dummy(char *buff)
  17122. {
  17123. if(buff)
  17124. return ++buff;
  17125. else
  17126. return buff;
  17127. }
  17128. int main (void)
  17129. {
  17130. char b[16];
  17131. char *r = dummy(&b[0]);
  17132. if(r)
  17133. return (int)*r;
  17134. ;
  17135. return 0;
  17136. }
  17137. _ACEOF
  17138. if ac_fn_c_try_compile "$LINENO"
  17139. then :
  17140. supports_symbol_hiding="yes"
  17141. if test -f conftest.err; then
  17142. grep 'visibility' conftest.err >/dev/null
  17143. if test "$?" -eq "0"; then
  17144. supports_symbol_hiding="no"
  17145. fi
  17146. fi
  17147. else $as_nop
  17148. supports_symbol_hiding="no"
  17149. echo " " >&6
  17150. sed 's/^/cc-src: /' conftest.$ac_ext >&6
  17151. sed 's/^/cc-err: /' conftest.err >&6
  17152. echo " " >&6
  17153. fi
  17154. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17155. CFLAGS="$tmp_save_CFLAGS"
  17156. fi
  17157. if test "$supports_symbol_hiding" = "yes"; then
  17158. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17159. printf "%s\n" "yes" >&6; }
  17160. symbol_hiding_CFLAGS="$tmp_CFLAGS"
  17161. symbol_hiding_EXTERN="$tmp_EXTERN"
  17162. else
  17163. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17164. printf "%s\n" "no" >&6; }
  17165. fi
  17166. supports_curldebug="unknown"
  17167. if test "$want_curldebug" = "yes"; then
  17168. if test "x$enable_shared" != "xno" &&
  17169. test "x$enable_shared" != "xyes"; then
  17170. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_shared setting." >&5
  17171. printf "%s\n" "$as_me: WARNING: unknown enable_shared setting." >&2;}
  17172. supports_curldebug="no"
  17173. fi
  17174. if test "x$enable_static" != "xno" &&
  17175. test "x$enable_static" != "xyes"; then
  17176. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_static setting." >&5
  17177. printf "%s\n" "$as_me: WARNING: unknown enable_static setting." >&2;}
  17178. supports_curldebug="no"
  17179. fi
  17180. if test "$supports_curldebug" != "no"; then
  17181. if test "$enable_shared" = "yes" &&
  17182. test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
  17183. supports_curldebug="no"
  17184. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: shared library does not support undefined symbols." >&5
  17185. printf "%s\n" "$as_me: WARNING: shared library does not support undefined symbols." >&2;}
  17186. fi
  17187. fi
  17188. fi
  17189. #
  17190. if test "$want_curldebug" = "yes"; then
  17191. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if curl debug memory tracking can be enabled" >&5
  17192. printf %s "checking if curl debug memory tracking can be enabled... " >&6; }
  17193. test "$supports_curldebug" = "no" || supports_curldebug="yes"
  17194. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supports_curldebug" >&5
  17195. printf "%s\n" "$supports_curldebug" >&6; }
  17196. if test "$supports_curldebug" = "no"; then
  17197. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot enable curl debug memory tracking." >&5
  17198. printf "%s\n" "$as_me: WARNING: cannot enable curl debug memory tracking." >&2;}
  17199. want_curldebug="no"
  17200. fi
  17201. fi
  17202. if test x$want_curldebug = xyes; then
  17203. CURLDEBUG_TRUE=
  17204. CURLDEBUG_FALSE='#'
  17205. else
  17206. CURLDEBUG_TRUE='#'
  17207. CURLDEBUG_FALSE=
  17208. fi
  17209. supports_unittests=yes
  17210. # cross-compilation of unit tests static library/programs fails when
  17211. # libcurl shared library is built. This might be due to a libtool or
  17212. # automake issue. In this case we disable unit tests.
  17213. if test "x$cross_compiling" != "xno" &&
  17214. test "x$enable_shared" != "xno"; then
  17215. supports_unittests=no
  17216. fi
  17217. # IRIX 6.5.24 gcc 3.3 autobuilds fail unittests library compilation due to
  17218. # a problem related with OpenSSL headers and library versions not matching.
  17219. # Disable unit tests while time to further investigate this is found.
  17220. case $host in
  17221. mips-sgi-irix6.5)
  17222. if test "$compiler_id" = "GNU_C"; then
  17223. supports_unittests=no
  17224. fi
  17225. ;;
  17226. esac
  17227. # All AIX autobuilds fails unit tests linking against unittests library
  17228. # due to unittests library being built with no symbols or members. Libtool ?
  17229. # Disable unit tests while time to further investigate this is found.
  17230. case $host_os in
  17231. aix*)
  17232. supports_unittests=no
  17233. ;;
  17234. esac
  17235. if test "x$want_debug" = "xyes" &&
  17236. test "x$supports_unittests" = "xyes"; then
  17237. want_unittests=yes
  17238. else
  17239. want_unittests=no
  17240. fi
  17241. if test x$want_unittests = xyes; then
  17242. BUILD_UNITTESTS_TRUE=
  17243. BUILD_UNITTESTS_FALSE='#'
  17244. else
  17245. BUILD_UNITTESTS_TRUE='#'
  17246. BUILD_UNITTESTS_FALSE=
  17247. fi
  17248. # For original MinGW (ie not MinGW-w64) define the Windows minimum supported OS
  17249. # version to Windows XP (0x501) if it hasn't already been defined by the user.
  17250. # Without this override original MinGW defaults the version to Windows NT 4.0.
  17251. # Note original MinGW sets _WIN32_WINNT if not defined to whatever WINVER is.
  17252. case $host in
  17253. *-*-mingw32*)
  17254. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if MinGW minimum supported OS should be set to XP" >&5
  17255. printf %s "checking if MinGW minimum supported OS should be set to XP... " >&6; }
  17256. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17257. /* end confdefs.h. */
  17258. #include <_mingw.h>
  17259. int main (void)
  17260. {
  17261. #if defined(__MINGW64_VERSION_MAJOR) || \
  17262. defined(WINVER) || \
  17263. defined(_WIN32_WINNT)
  17264. #error
  17265. #endif
  17266. ;
  17267. return 0;
  17268. }
  17269. _ACEOF
  17270. if ac_fn_c_try_compile "$LINENO"
  17271. then :
  17272. CPPFLAGS="$CPPFLAGS -DWINVER=0x501"
  17273. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17274. printf "%s\n" "yes" >&6; }
  17275. else $as_nop
  17276. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17277. printf "%s\n" "no" >&6; }
  17278. fi
  17279. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17280. ;;
  17281. esac
  17282. # Detect original MinGW (not MinGW-w64)
  17283. curl_mingw_original=no
  17284. case $host in
  17285. *-*-mingw32*)
  17286. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking using original MinGW (not MinGW-w64)" >&5
  17287. printf %s "checking using original MinGW (not MinGW-w64)... " >&6; }
  17288. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17289. /* end confdefs.h. */
  17290. #include <_mingw.h>
  17291. int main (void)
  17292. {
  17293. #if defined(__MINGW64_VERSION_MAJOR)
  17294. #error
  17295. #endif
  17296. ;
  17297. return 0;
  17298. }
  17299. _ACEOF
  17300. if ac_fn_c_try_compile "$LINENO"
  17301. then :
  17302. curl_mingw_original=yes
  17303. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17304. printf "%s\n" "yes" >&6; }
  17305. else $as_nop
  17306. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17307. printf "%s\n" "no" >&6; }
  17308. fi
  17309. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17310. ;;
  17311. esac
  17312. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
  17313. printf %s "checking for windows.h... " >&6; }
  17314. if test ${curl_cv_header_windows_h+y}
  17315. then :
  17316. printf %s "(cached) " >&6
  17317. else $as_nop
  17318. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17319. /* end confdefs.h. */
  17320. #undef inline
  17321. #ifndef WIN32_LEAN_AND_MEAN
  17322. #define WIN32_LEAN_AND_MEAN
  17323. #endif
  17324. #include <windows.h>
  17325. int main (void)
  17326. {
  17327. #if defined(__CYGWIN__) || defined(__CEGCC__)
  17328. HAVE_WINDOWS_H shall not be defined.
  17329. #else
  17330. int dummy=2*WINVER;
  17331. #endif
  17332. ;
  17333. return 0;
  17334. }
  17335. _ACEOF
  17336. if ac_fn_c_try_compile "$LINENO"
  17337. then :
  17338. curl_cv_header_windows_h="yes"
  17339. else $as_nop
  17340. curl_cv_header_windows_h="no"
  17341. fi
  17342. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17343. fi
  17344. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
  17345. printf "%s\n" "$curl_cv_header_windows_h" >&6; }
  17346. case "$curl_cv_header_windows_h" in
  17347. yes)
  17348. printf "%s\n" "#define HAVE_WINDOWS_H 1" >>confdefs.h
  17349. ;;
  17350. esac
  17351. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build target is a native Windows one" >&5
  17352. printf %s "checking whether build target is a native Windows one... " >&6; }
  17353. if test ${curl_cv_native_windows+y}
  17354. then :
  17355. printf %s "(cached) " >&6
  17356. else $as_nop
  17357. if test "$curl_cv_header_windows_h" = "no"; then
  17358. curl_cv_native_windows="no"
  17359. else
  17360. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17361. /* end confdefs.h. */
  17362. int main (void)
  17363. {
  17364. #if defined(__MINGW32__) || defined(__MINGW32CE__) || \
  17365. (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64)))
  17366. int dummy=1;
  17367. #else
  17368. Not a native Windows build target.
  17369. #endif
  17370. ;
  17371. return 0;
  17372. }
  17373. _ACEOF
  17374. if ac_fn_c_try_compile "$LINENO"
  17375. then :
  17376. curl_cv_native_windows="yes"
  17377. else $as_nop
  17378. curl_cv_native_windows="no"
  17379. fi
  17380. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17381. fi
  17382. fi
  17383. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_native_windows" >&5
  17384. printf "%s\n" "$curl_cv_native_windows" >&6; }
  17385. if test "x$curl_cv_native_windows" = xyes; then
  17386. DOING_NATIVE_WINDOWS_TRUE=
  17387. DOING_NATIVE_WINDOWS_FALSE='#'
  17388. else
  17389. DOING_NATIVE_WINDOWS_TRUE='#'
  17390. DOING_NATIVE_WINDOWS_FALSE=
  17391. fi
  17392. case X-"$curl_cv_native_windows" in
  17393. X-yes)
  17394. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
  17395. printf %s "checking for winsock2.h... " >&6; }
  17396. if test ${curl_cv_header_winsock2_h+y}
  17397. then :
  17398. printf %s "(cached) " >&6
  17399. else $as_nop
  17400. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17401. /* end confdefs.h. */
  17402. #undef inline
  17403. #ifndef WIN32_LEAN_AND_MEAN
  17404. #define WIN32_LEAN_AND_MEAN
  17405. #endif
  17406. #include <windows.h>
  17407. #include <winsock2.h>
  17408. int main (void)
  17409. {
  17410. #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
  17411. HAVE_WINSOCK2_H shall not be defined.
  17412. #else
  17413. int dummy=2*IPPROTO_ESP;
  17414. #endif
  17415. ;
  17416. return 0;
  17417. }
  17418. _ACEOF
  17419. if ac_fn_c_try_compile "$LINENO"
  17420. then :
  17421. curl_cv_header_winsock2_h="yes"
  17422. else $as_nop
  17423. curl_cv_header_winsock2_h="no"
  17424. fi
  17425. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17426. fi
  17427. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
  17428. printf "%s\n" "$curl_cv_header_winsock2_h" >&6; }
  17429. case "$curl_cv_header_winsock2_h" in
  17430. yes)
  17431. printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h
  17432. ;;
  17433. esac
  17434. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
  17435. printf %s "checking for ws2tcpip.h... " >&6; }
  17436. if test ${curl_cv_header_ws2tcpip_h+y}
  17437. then :
  17438. printf %s "(cached) " >&6
  17439. else $as_nop
  17440. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17441. /* end confdefs.h. */
  17442. #undef inline
  17443. #ifndef WIN32_LEAN_AND_MEAN
  17444. #define WIN32_LEAN_AND_MEAN
  17445. #endif
  17446. #include <windows.h>
  17447. #include <winsock2.h>
  17448. #include <ws2tcpip.h>
  17449. int main (void)
  17450. {
  17451. #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
  17452. HAVE_WS2TCPIP_H shall not be defined.
  17453. #else
  17454. int dummy=2*IP_PKTINFO;
  17455. #endif
  17456. ;
  17457. return 0;
  17458. }
  17459. _ACEOF
  17460. if ac_fn_c_try_compile "$LINENO"
  17461. then :
  17462. curl_cv_header_ws2tcpip_h="yes"
  17463. else $as_nop
  17464. curl_cv_header_ws2tcpip_h="no"
  17465. fi
  17466. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17467. fi
  17468. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ws2tcpip_h" >&5
  17469. printf "%s\n" "$curl_cv_header_ws2tcpip_h" >&6; }
  17470. case "$curl_cv_header_ws2tcpip_h" in
  17471. yes)
  17472. printf "%s\n" "#define HAVE_WS2TCPIP_H 1" >>confdefs.h
  17473. ;;
  17474. esac
  17475. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wincrypt.h" >&5
  17476. printf %s "checking for wincrypt.h... " >&6; }
  17477. if test ${curl_cv_header_wincrypt_h+y}
  17478. then :
  17479. printf %s "(cached) " >&6
  17480. else $as_nop
  17481. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17482. /* end confdefs.h. */
  17483. #undef inline
  17484. #ifndef WIN32_LEAN_AND_MEAN
  17485. #define WIN32_LEAN_AND_MEAN
  17486. #endif
  17487. #include <windows.h>
  17488. #include <wincrypt.h>
  17489. int main (void)
  17490. {
  17491. int dummy=2*PROV_RSA_FULL;
  17492. ;
  17493. return 0;
  17494. }
  17495. _ACEOF
  17496. if ac_fn_c_try_compile "$LINENO"
  17497. then :
  17498. curl_cv_header_wincrypt_h="yes"
  17499. else $as_nop
  17500. curl_cv_header_wincrypt_h="no"
  17501. fi
  17502. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17503. fi
  17504. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_wincrypt_h" >&5
  17505. printf "%s\n" "$curl_cv_header_wincrypt_h" >&6; }
  17506. case "$curl_cv_header_wincrypt_h" in
  17507. yes)
  17508. printf "%s\n" "#define HAVE_WINCRYPT_H 1" >>confdefs.h
  17509. ;;
  17510. esac
  17511. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for winldap.h" >&5
  17512. printf %s "checking for winldap.h... " >&6; }
  17513. if test ${curl_cv_header_winldap_h+y}
  17514. then :
  17515. printf %s "(cached) " >&6
  17516. else $as_nop
  17517. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17518. /* end confdefs.h. */
  17519. #undef inline
  17520. #ifdef HAVE_WINDOWS_H
  17521. #ifndef WIN32_LEAN_AND_MEAN
  17522. #define WIN32_LEAN_AND_MEAN
  17523. #endif
  17524. #include <windows.h>
  17525. #endif
  17526. #include <winldap.h>
  17527. int main (void)
  17528. {
  17529. #if defined(__CYGWIN__) || defined(__CEGCC__)
  17530. HAVE_WINLDAP_H shall not be defined.
  17531. #else
  17532. LDAP *ldp = ldap_init("dummy", LDAP_PORT);
  17533. ULONG res = ldap_unbind(ldp);
  17534. #endif
  17535. ;
  17536. return 0;
  17537. }
  17538. _ACEOF
  17539. if ac_fn_c_try_compile "$LINENO"
  17540. then :
  17541. curl_cv_header_winldap_h="yes"
  17542. else $as_nop
  17543. curl_cv_header_winldap_h="no"
  17544. fi
  17545. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17546. fi
  17547. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winldap_h" >&5
  17548. printf "%s\n" "$curl_cv_header_winldap_h" >&6; }
  17549. case "$curl_cv_header_winldap_h" in
  17550. yes)
  17551. printf "%s\n" "#define HAVE_WINLDAP_H 1" >>confdefs.h
  17552. ;;
  17553. esac
  17554. ;;
  17555. *)
  17556. curl_cv_header_winsock2_h="no"
  17557. curl_cv_header_ws2tcpip_h="no"
  17558. curl_cv_header_wincrypt_h="no"
  17559. curl_cv_header_winldap_h="no"
  17560. ;;
  17561. esac
  17562. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build target supports WIN32 file API" >&5
  17563. printf %s "checking whether build target supports WIN32 file API... " >&6; }
  17564. curl_win32_file_api="no"
  17565. if test "$curl_cv_header_windows_h" = "yes"; then
  17566. if test x"$enable_largefile" != "xno"; then
  17567. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17568. /* end confdefs.h. */
  17569. int main (void)
  17570. {
  17571. #if !defined(_WIN32_WCE) && \
  17572. (defined(__MINGW32__) || \
  17573. (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64))))
  17574. int dummy=1;
  17575. #else
  17576. WIN32 large file API not supported.
  17577. #endif
  17578. ;
  17579. return 0;
  17580. }
  17581. _ACEOF
  17582. if ac_fn_c_try_compile "$LINENO"
  17583. then :
  17584. curl_win32_file_api="win32_large_files"
  17585. fi
  17586. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17587. fi
  17588. if test "$curl_win32_file_api" = "no"; then
  17589. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17590. /* end confdefs.h. */
  17591. int main (void)
  17592. {
  17593. #if defined(_WIN32_WCE) || defined(__MINGW32__) || defined(_MSC_VER)
  17594. int dummy=1;
  17595. #else
  17596. WIN32 small file API not supported.
  17597. #endif
  17598. ;
  17599. return 0;
  17600. }
  17601. _ACEOF
  17602. if ac_fn_c_try_compile "$LINENO"
  17603. then :
  17604. curl_win32_file_api="win32_small_files"
  17605. fi
  17606. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17607. fi
  17608. fi
  17609. case "$curl_win32_file_api" in
  17610. win32_large_files)
  17611. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes (large file enabled)" >&5
  17612. printf "%s\n" "yes (large file enabled)" >&6; }
  17613. printf "%s\n" "#define USE_WIN32_LARGE_FILES 1" >>confdefs.h
  17614. USE_WIN32_LARGE_FILES=1
  17615. ;;
  17616. win32_small_files)
  17617. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes (large file disabled)" >&5
  17618. printf "%s\n" "yes (large file disabled)" >&6; }
  17619. printf "%s\n" "#define USE_WIN32_SMALL_FILES 1" >>confdefs.h
  17620. USE_WIN32_SMALL_FILES=1
  17621. ;;
  17622. *)
  17623. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17624. printf "%s\n" "no" >&6; }
  17625. ;;
  17626. esac
  17627. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build target supports WIN32 crypto API" >&5
  17628. printf %s "checking whether build target supports WIN32 crypto API... " >&6; }
  17629. curl_win32_crypto_api="no"
  17630. if test "$curl_cv_header_wincrypt_h" = "yes"; then
  17631. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17632. /* end confdefs.h. */
  17633. #undef inline
  17634. #ifndef WIN32_LEAN_AND_MEAN
  17635. #define WIN32_LEAN_AND_MEAN
  17636. #endif
  17637. #include <windows.h>
  17638. #include <wincrypt.h>
  17639. int main (void)
  17640. {
  17641. HCRYPTPROV hCryptProv;
  17642. if(CryptAcquireContext(&hCryptProv, NULL, NULL, PROV_RSA_FULL,
  17643. CRYPT_VERIFYCONTEXT | CRYPT_SILENT)) {
  17644. CryptReleaseContext(hCryptProv, 0);
  17645. }
  17646. ;
  17647. return 0;
  17648. }
  17649. _ACEOF
  17650. if ac_fn_c_try_compile "$LINENO"
  17651. then :
  17652. curl_win32_crypto_api="yes"
  17653. fi
  17654. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17655. fi
  17656. case "$curl_win32_crypto_api" in
  17657. yes)
  17658. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17659. printf "%s\n" "yes" >&6; }
  17660. printf "%s\n" "#define USE_WIN32_CRYPTO 1" >>confdefs.h
  17661. USE_WIN32_CRYPTO=1
  17662. ;;
  17663. *)
  17664. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17665. printf "%s\n" "no" >&6; }
  17666. ;;
  17667. esac
  17668. tst_cflags="no"
  17669. case $host_os in
  17670. darwin*)
  17671. tst_cflags="yes"
  17672. ;;
  17673. esac
  17674. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for good-to-use Darwin CFLAGS" >&5
  17675. printf %s "checking for good-to-use Darwin CFLAGS... " >&6; }
  17676. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_cflags" >&5
  17677. printf "%s\n" "$tst_cflags" >&6; };
  17678. if test "$tst_cflags" = "yes"; then
  17679. old_CFLAGS=$CFLAGS
  17680. CFLAGS="$CFLAGS -Werror=partial-availability"
  17681. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Werror=partial-availability" >&5
  17682. printf %s "checking whether $CC accepts -Werror=partial-availability... " >&6; }
  17683. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17684. /* end confdefs.h. */
  17685. int main (void)
  17686. {
  17687. ;
  17688. return 0;
  17689. }
  17690. _ACEOF
  17691. if ac_fn_c_try_compile "$LINENO"
  17692. then :
  17693. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17694. printf "%s\n" "yes" >&6; }
  17695. else $as_nop
  17696. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17697. printf "%s\n" "no" >&6; }
  17698. CFLAGS=$old_CFLAGS
  17699. fi
  17700. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17701. fi
  17702. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to link macOS CoreFoundation and SystemConfiguration framework" >&5
  17703. printf %s "checking whether to link macOS CoreFoundation and SystemConfiguration framework... " >&6; }
  17704. case $host_os in
  17705. darwin*)
  17706. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17707. /* end confdefs.h. */
  17708. #include <TargetConditionals.h>
  17709. int main (void)
  17710. {
  17711. #if (TARGET_OS_OSX)
  17712. return 0;
  17713. #else
  17714. #error Not a macOS
  17715. #endif
  17716. ;
  17717. return 0;
  17718. }
  17719. _ACEOF
  17720. if ac_fn_c_try_compile "$LINENO"
  17721. then :
  17722. build_for_macos="yes"
  17723. else $as_nop
  17724. build_for_macos="no"
  17725. fi
  17726. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17727. if test "x$build_for_macos" != xno; then
  17728. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17729. printf "%s\n" "yes" >&6; }
  17730. LDFLAGS="$LDFLAGS -framework CoreFoundation -framework SystemConfiguration"
  17731. else
  17732. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17733. printf "%s\n" "no" >&6; }
  17734. fi
  17735. ;;
  17736. *)
  17737. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17738. printf "%s\n" "no" >&6; }
  17739. esac
  17740. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking to see if the compiler supports __builtin_available()" >&5
  17741. printf %s "checking to see if the compiler supports __builtin_available()... " >&6; }
  17742. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17743. /* end confdefs.h. */
  17744. #include <stdlib.h>
  17745. int main (void)
  17746. {
  17747. if (__builtin_available(macOS 10.8, iOS 5.0, *)) {}
  17748. ;
  17749. return 0;
  17750. }
  17751. _ACEOF
  17752. if ac_fn_c_try_compile "$LINENO"
  17753. then :
  17754. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17755. printf "%s\n" "yes" >&6; }
  17756. printf "%s\n" "#define HAVE_BUILTIN_AVAILABLE 1" >>confdefs.h
  17757. else $as_nop
  17758. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17759. printf "%s\n" "no" >&6; }
  17760. fi
  17761. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17762. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support http" >&5
  17763. printf %s "checking whether to support http... " >&6; }
  17764. # Check whether --enable-http was given.
  17765. if test ${enable_http+y}
  17766. then :
  17767. enableval=$enable_http; case "$enableval" in
  17768. no)
  17769. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17770. printf "%s\n" "no" >&6; }
  17771. printf "%s\n" "#define CURL_DISABLE_HTTP 1" >>confdefs.h
  17772. disable_http="yes"
  17773. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: disable HTTP disables FTP over proxy and RTSP" >&5
  17774. printf "%s\n" "$as_me: WARNING: disable HTTP disables FTP over proxy and RTSP" >&2;}
  17775. CURL_DISABLE_HTTP=1
  17776. printf "%s\n" "#define CURL_DISABLE_RTSP 1" >>confdefs.h
  17777. CURL_DISABLE_RTSP=1
  17778. printf "%s\n" "#define CURL_DISABLE_ALTSVC 1" >>confdefs.h
  17779. printf "%s\n" "#define CURL_DISABLE_HSTS 1" >>confdefs.h
  17780. curl_h1_msg="no (--enable-http, --with-hyper)"
  17781. curl_altsvc_msg="no";
  17782. curl_hsts_msg="no (--enable-hsts)";
  17783. enable_altsvc="no"
  17784. hsts="no"
  17785. ;;
  17786. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17787. printf "%s\n" "yes" >&6; }
  17788. ;;
  17789. esac
  17790. else $as_nop
  17791. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17792. printf "%s\n" "yes" >&6; }
  17793. fi
  17794. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support ftp" >&5
  17795. printf %s "checking whether to support ftp... " >&6; }
  17796. # Check whether --enable-ftp was given.
  17797. if test ${enable_ftp+y}
  17798. then :
  17799. enableval=$enable_ftp; case "$enableval" in
  17800. no)
  17801. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17802. printf "%s\n" "no" >&6; }
  17803. printf "%s\n" "#define CURL_DISABLE_FTP 1" >>confdefs.h
  17804. CURL_DISABLE_FTP=1
  17805. ;;
  17806. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17807. printf "%s\n" "yes" >&6; }
  17808. ;;
  17809. esac
  17810. else $as_nop
  17811. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17812. printf "%s\n" "yes" >&6; }
  17813. fi
  17814. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support file" >&5
  17815. printf %s "checking whether to support file... " >&6; }
  17816. # Check whether --enable-file was given.
  17817. if test ${enable_file+y}
  17818. then :
  17819. enableval=$enable_file; case "$enableval" in
  17820. no)
  17821. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17822. printf "%s\n" "no" >&6; }
  17823. printf "%s\n" "#define CURL_DISABLE_FILE 1" >>confdefs.h
  17824. CURL_DISABLE_FILE=1
  17825. ;;
  17826. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17827. printf "%s\n" "yes" >&6; }
  17828. ;;
  17829. esac
  17830. else $as_nop
  17831. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17832. printf "%s\n" "yes" >&6; }
  17833. fi
  17834. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support ldap" >&5
  17835. printf %s "checking whether to support ldap... " >&6; }
  17836. # Check whether --enable-ldap was given.
  17837. if test ${enable_ldap+y}
  17838. then :
  17839. enableval=$enable_ldap; case "$enableval" in
  17840. no)
  17841. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17842. printf "%s\n" "no" >&6; }
  17843. printf "%s\n" "#define CURL_DISABLE_LDAP 1" >>confdefs.h
  17844. CURL_DISABLE_LDAP=1
  17845. ;;
  17846. yes)
  17847. ldap_askedfor="yes"
  17848. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17849. printf "%s\n" "yes" >&6; }
  17850. ;;
  17851. *)
  17852. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17853. printf "%s\n" "yes" >&6; }
  17854. ;;
  17855. esac
  17856. else $as_nop
  17857. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17858. printf "%s\n" "yes" >&6; }
  17859. fi
  17860. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support ldaps" >&5
  17861. printf %s "checking whether to support ldaps... " >&6; }
  17862. # Check whether --enable-ldaps was given.
  17863. if test ${enable_ldaps+y}
  17864. then :
  17865. enableval=$enable_ldaps; case "$enableval" in
  17866. no)
  17867. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17868. printf "%s\n" "no" >&6; }
  17869. printf "%s\n" "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
  17870. CURL_DISABLE_LDAPS=1
  17871. ;;
  17872. *) if test "x$CURL_DISABLE_LDAP" = "x1" ; then
  17873. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: LDAP needs to be enabled to support LDAPS" >&5
  17874. printf "%s\n" "LDAP needs to be enabled to support LDAPS" >&6; }
  17875. printf "%s\n" "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
  17876. CURL_DISABLE_LDAPS=1
  17877. else
  17878. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17879. printf "%s\n" "yes" >&6; }
  17880. printf "%s\n" "#define HAVE_LDAP_SSL 1" >>confdefs.h
  17881. HAVE_LDAP_SSL=1
  17882. fi
  17883. ;;
  17884. esac
  17885. else $as_nop
  17886. if test "x$CURL_DISABLE_LDAP" = "x1" ; then
  17887. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17888. printf "%s\n" "no" >&6; }
  17889. printf "%s\n" "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
  17890. CURL_DISABLE_LDAPS=1
  17891. else
  17892. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17893. printf "%s\n" "yes" >&6; }
  17894. printf "%s\n" "#define HAVE_LDAP_SSL 1" >>confdefs.h
  17895. HAVE_LDAP_SSL=1
  17896. fi
  17897. fi
  17898. OPT_HYPER="no"
  17899. # Check whether --with-hyper was given.
  17900. if test ${with_hyper+y}
  17901. then :
  17902. withval=$with_hyper; OPT_HYPER=$withval
  17903. fi
  17904. case "$OPT_HYPER" in
  17905. no)
  17906. want_hyper="no"
  17907. ;;
  17908. yes)
  17909. want_hyper="default"
  17910. want_hyper_path=""
  17911. ;;
  17912. *)
  17913. want_hyper="yes"
  17914. want_hyper_path="$withval"
  17915. ;;
  17916. esac
  17917. if test X"$want_hyper" != Xno; then
  17918. if test "x$disable_http" = "xyes"; then
  17919. as_fn_error $? "--with-hyper is not compatible with --disable-http" "$LINENO" 5
  17920. fi
  17921. CLEANLDFLAGS="$LDFLAGS"
  17922. CLEANCPPFLAGS="$CPPFLAGS"
  17923. CLEANLIBS="$LIBS"
  17924. if test -n "$PKG_CONFIG"; then
  17925. PKGCONFIG="$PKG_CONFIG"
  17926. else
  17927. if test -n "$ac_tool_prefix"; then
  17928. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  17929. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  17930. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17931. printf %s "checking for $ac_word... " >&6; }
  17932. if test ${ac_cv_path_PKGCONFIG+y}
  17933. then :
  17934. printf %s "(cached) " >&6
  17935. else $as_nop
  17936. case $PKGCONFIG in
  17937. [\\/]* | ?:[\\/]*)
  17938. ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
  17939. ;;
  17940. *)
  17941. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17942. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  17943. for as_dir in $as_dummy
  17944. do
  17945. IFS=$as_save_IFS
  17946. case $as_dir in #(((
  17947. '') as_dir=./ ;;
  17948. */) ;;
  17949. *) as_dir=$as_dir/ ;;
  17950. esac
  17951. for ac_exec_ext in '' $ac_executable_extensions; do
  17952. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  17953. ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  17954. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  17955. break 2
  17956. fi
  17957. done
  17958. done
  17959. IFS=$as_save_IFS
  17960. ;;
  17961. esac
  17962. fi
  17963. PKGCONFIG=$ac_cv_path_PKGCONFIG
  17964. if test -n "$PKGCONFIG"; then
  17965. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
  17966. printf "%s\n" "$PKGCONFIG" >&6; }
  17967. else
  17968. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17969. printf "%s\n" "no" >&6; }
  17970. fi
  17971. fi
  17972. if test -z "$ac_cv_path_PKGCONFIG"; then
  17973. ac_pt_PKGCONFIG=$PKGCONFIG
  17974. # Extract the first word of "pkg-config", so it can be a program name with args.
  17975. set dummy pkg-config; ac_word=$2
  17976. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17977. printf %s "checking for $ac_word... " >&6; }
  17978. if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
  17979. then :
  17980. printf %s "(cached) " >&6
  17981. else $as_nop
  17982. case $ac_pt_PKGCONFIG in
  17983. [\\/]* | ?:[\\/]*)
  17984. ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
  17985. ;;
  17986. *)
  17987. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17988. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  17989. for as_dir in $as_dummy
  17990. do
  17991. IFS=$as_save_IFS
  17992. case $as_dir in #(((
  17993. '') as_dir=./ ;;
  17994. */) ;;
  17995. *) as_dir=$as_dir/ ;;
  17996. esac
  17997. for ac_exec_ext in '' $ac_executable_extensions; do
  17998. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  17999. ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  18000. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  18001. break 2
  18002. fi
  18003. done
  18004. done
  18005. IFS=$as_save_IFS
  18006. ;;
  18007. esac
  18008. fi
  18009. ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
  18010. if test -n "$ac_pt_PKGCONFIG"; then
  18011. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
  18012. printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
  18013. else
  18014. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18015. printf "%s\n" "no" >&6; }
  18016. fi
  18017. if test "x$ac_pt_PKGCONFIG" = x; then
  18018. PKGCONFIG="no"
  18019. else
  18020. case $cross_compiling:$ac_tool_warned in
  18021. yes:)
  18022. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  18023. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  18024. ac_tool_warned=yes ;;
  18025. esac
  18026. PKGCONFIG=$ac_pt_PKGCONFIG
  18027. fi
  18028. else
  18029. PKGCONFIG="$ac_cv_path_PKGCONFIG"
  18030. fi
  18031. fi
  18032. if test "x$PKGCONFIG" != "xno"; then
  18033. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hyper options with pkg-config" >&5
  18034. printf %s "checking for hyper options with pkg-config... " >&6; }
  18035. itexists=`
  18036. if test -n "$want_hyper_path"; then
  18037. PKG_CONFIG_LIBDIR="$want_hyper_path"
  18038. export PKG_CONFIG_LIBDIR
  18039. fi
  18040. $PKGCONFIG --exists hyper >/dev/null 2>&1 && echo 1`
  18041. if test -z "$itexists"; then
  18042. PKGCONFIG="no"
  18043. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18044. printf "%s\n" "no" >&6; }
  18045. else
  18046. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
  18047. printf "%s\n" "found" >&6; }
  18048. fi
  18049. fi
  18050. if test "$PKGCONFIG" != "no" ; then
  18051. LIB_HYPER=`
  18052. if test -n "$want_hyper_path"; then
  18053. PKG_CONFIG_LIBDIR="$want_hyper_path"
  18054. export PKG_CONFIG_LIBDIR
  18055. fi
  18056. $PKGCONFIG --libs-only-l hyper`
  18057. CPP_HYPER=`
  18058. if test -n "$want_hyper_path"; then
  18059. PKG_CONFIG_LIBDIR="$want_hyper_path"
  18060. export PKG_CONFIG_LIBDIR
  18061. fi
  18062. $PKGCONFIG --cflags-only-I hyper`
  18063. LD_HYPER=`
  18064. if test -n "$want_hyper_path"; then
  18065. PKG_CONFIG_LIBDIR="$want_hyper_path"
  18066. export PKG_CONFIG_LIBDIR
  18067. fi
  18068. $PKGCONFIG --libs-only-L hyper`
  18069. else
  18070. LIB_HYPER="-lhyper -ldl -lpthread -lm"
  18071. if test X"$want_hyper" != Xdefault; then
  18072. CPP_HYPER=-I"$want_hyper_path/capi/include"
  18073. LD_HYPER="-L$want_hyper_path/target/release -L$want_hyper_path/target/debug"
  18074. fi
  18075. fi
  18076. if test -n "$LIB_HYPER"; then
  18077. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_HYPER" >&5
  18078. printf "%s\n" "$as_me: -l is $LIB_HYPER" >&6;}
  18079. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_HYPER" >&5
  18080. printf "%s\n" "$as_me: -I is $CPP_HYPER" >&6;}
  18081. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_HYPER" >&5
  18082. printf "%s\n" "$as_me: -L is $LD_HYPER" >&6;}
  18083. LDFLAGS="$LDFLAGS $LD_HYPER"
  18084. CPPFLAGS="$CPPFLAGS $CPP_HYPER"
  18085. LIBS="$LIB_HYPER $LIBS"
  18086. if test "x$cross_compiling" != "xyes"; then
  18087. DIR_HYPER=`echo $LD_HYPER | $SED -e 's/^-L//' -e 's/ -L/:/g'`
  18088. fi
  18089. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hyper_io_new in -lhyper" >&5
  18090. printf %s "checking for hyper_io_new in -lhyper... " >&6; }
  18091. if test ${ac_cv_lib_hyper_hyper_io_new+y}
  18092. then :
  18093. printf %s "(cached) " >&6
  18094. else $as_nop
  18095. ac_check_lib_save_LIBS=$LIBS
  18096. LIBS="-lhyper $LIBS"
  18097. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18098. /* end confdefs.h. */
  18099. #ifdef __cplusplus
  18100. extern "C"
  18101. #endif
  18102. char hyper_io_new ();
  18103. int main (void)
  18104. {
  18105. return hyper_io_new ();
  18106. ;
  18107. return 0;
  18108. }
  18109. _ACEOF
  18110. if ac_fn_c_try_link "$LINENO"
  18111. then :
  18112. ac_cv_lib_hyper_hyper_io_new=yes
  18113. else $as_nop
  18114. ac_cv_lib_hyper_hyper_io_new=no
  18115. fi
  18116. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18117. conftest$ac_exeext conftest.$ac_ext
  18118. LIBS=$ac_check_lib_save_LIBS
  18119. fi
  18120. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hyper_hyper_io_new" >&5
  18121. printf "%s\n" "$ac_cv_lib_hyper_hyper_io_new" >&6; }
  18122. if test "x$ac_cv_lib_hyper_hyper_io_new" = xyes
  18123. then :
  18124. for ac_header in hyper.h
  18125. do :
  18126. ac_fn_c_check_header_compile "$LINENO" "hyper.h" "ac_cv_header_hyper_h" "$ac_includes_default"
  18127. if test "x$ac_cv_header_hyper_h" = xyes
  18128. then :
  18129. printf "%s\n" "#define HAVE_HYPER_H 1" >>confdefs.h
  18130. experimental="$experimental Hyper"
  18131. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Hyper support is experimental" >&5
  18132. printf "%s\n" "$as_me: Hyper support is experimental" >&6;}
  18133. curl_h1_msg="enabled (Hyper)"
  18134. curl_h2_msg=$curl_h1_msg
  18135. HYPER_ENABLED=1
  18136. printf "%s\n" "#define USE_HYPER 1" >>confdefs.h
  18137. USE_HYPER=1
  18138. CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_HYPER"
  18139. export CURL_LIBRARY_PATH
  18140. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_HYPER to CURL_LIBRARY_PATH" >&5
  18141. printf "%s\n" "$as_me: Added $DIR_HYPER to CURL_LIBRARY_PATH" >&6;}
  18142. fi
  18143. done
  18144. else $as_nop
  18145. for d in `echo $DIR_HYPER | $SED -e 's/:/ /'`; do
  18146. if test -f "$d/libhyper.a"; then
  18147. as_fn_error $? "hyper was found in $d but was probably built with wrong flags. See docs/HYPER.md." "$LINENO" 5
  18148. fi
  18149. done
  18150. as_fn_error $? "--with-hyper but hyper was not found. See docs/HYPER.md." "$LINENO" 5
  18151. fi
  18152. fi
  18153. fi
  18154. if test X"$want_hyper" != Xno; then
  18155. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Disable RTSP support with hyper" >&5
  18156. printf "%s\n" "$as_me: Disable RTSP support with hyper" >&6;}
  18157. printf "%s\n" "#define CURL_DISABLE_RTSP 1" >>confdefs.h
  18158. CURL_DISABLE_RTSP=1
  18159. else
  18160. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support rtsp" >&5
  18161. printf %s "checking whether to support rtsp... " >&6; }
  18162. # Check whether --enable-rtsp was given.
  18163. if test ${enable_rtsp+y}
  18164. then :
  18165. enableval=$enable_rtsp; case "$enableval" in
  18166. no)
  18167. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18168. printf "%s\n" "no" >&6; }
  18169. printf "%s\n" "#define CURL_DISABLE_RTSP 1" >>confdefs.h
  18170. CURL_DISABLE_RTSP=1
  18171. ;;
  18172. *)
  18173. if test x$CURL_DISABLE_HTTP = x1 ; then
  18174. as_fn_error $? "HTTP support needs to be enabled in order to enable RTSP support!" "$LINENO" 5
  18175. else
  18176. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18177. printf "%s\n" "yes" >&6; }
  18178. curl_rtsp_msg="enabled"
  18179. fi
  18180. ;;
  18181. esac
  18182. else $as_nop
  18183. if test "x$CURL_DISABLE_HTTP" != "x1"; then
  18184. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18185. printf "%s\n" "yes" >&6; }
  18186. curl_rtsp_msg="enabled"
  18187. else
  18188. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18189. printf "%s\n" "no" >&6; }
  18190. fi
  18191. fi
  18192. fi
  18193. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support proxies" >&5
  18194. printf %s "checking whether to support proxies... " >&6; }
  18195. # Check whether --enable-proxy was given.
  18196. if test ${enable_proxy+y}
  18197. then :
  18198. enableval=$enable_proxy; case "$enableval" in
  18199. no)
  18200. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18201. printf "%s\n" "no" >&6; }
  18202. printf "%s\n" "#define CURL_DISABLE_PROXY 1" >>confdefs.h
  18203. CURL_DISABLE_PROXY=1
  18204. https_proxy="no"
  18205. ;;
  18206. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18207. printf "%s\n" "yes" >&6; }
  18208. ;;
  18209. esac
  18210. else $as_nop
  18211. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18212. printf "%s\n" "yes" >&6; }
  18213. fi
  18214. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support dict" >&5
  18215. printf %s "checking whether to support dict... " >&6; }
  18216. # Check whether --enable-dict was given.
  18217. if test ${enable_dict+y}
  18218. then :
  18219. enableval=$enable_dict; case "$enableval" in
  18220. no)
  18221. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18222. printf "%s\n" "no" >&6; }
  18223. printf "%s\n" "#define CURL_DISABLE_DICT 1" >>confdefs.h
  18224. CURL_DISABLE_DICT=1
  18225. ;;
  18226. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18227. printf "%s\n" "yes" >&6; }
  18228. ;;
  18229. esac
  18230. else $as_nop
  18231. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18232. printf "%s\n" "yes" >&6; }
  18233. fi
  18234. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support telnet" >&5
  18235. printf %s "checking whether to support telnet... " >&6; }
  18236. # Check whether --enable-telnet was given.
  18237. if test ${enable_telnet+y}
  18238. then :
  18239. enableval=$enable_telnet; case "$enableval" in
  18240. no)
  18241. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18242. printf "%s\n" "no" >&6; }
  18243. printf "%s\n" "#define CURL_DISABLE_TELNET 1" >>confdefs.h
  18244. CURL_DISABLE_TELNET=1
  18245. ;;
  18246. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18247. printf "%s\n" "yes" >&6; }
  18248. ;;
  18249. esac
  18250. else $as_nop
  18251. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18252. printf "%s\n" "yes" >&6; }
  18253. fi
  18254. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support tftp" >&5
  18255. printf %s "checking whether to support tftp... " >&6; }
  18256. # Check whether --enable-tftp was given.
  18257. if test ${enable_tftp+y}
  18258. then :
  18259. enableval=$enable_tftp; case "$enableval" in
  18260. no)
  18261. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18262. printf "%s\n" "no" >&6; }
  18263. printf "%s\n" "#define CURL_DISABLE_TFTP 1" >>confdefs.h
  18264. CURL_DISABLE_TFTP=1
  18265. ;;
  18266. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18267. printf "%s\n" "yes" >&6; }
  18268. ;;
  18269. esac
  18270. else $as_nop
  18271. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18272. printf "%s\n" "yes" >&6; }
  18273. fi
  18274. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support pop3" >&5
  18275. printf %s "checking whether to support pop3... " >&6; }
  18276. # Check whether --enable-pop3 was given.
  18277. if test ${enable_pop3+y}
  18278. then :
  18279. enableval=$enable_pop3; case "$enableval" in
  18280. no)
  18281. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18282. printf "%s\n" "no" >&6; }
  18283. printf "%s\n" "#define CURL_DISABLE_POP3 1" >>confdefs.h
  18284. CURL_DISABLE_POP3=1
  18285. ;;
  18286. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18287. printf "%s\n" "yes" >&6; }
  18288. ;;
  18289. esac
  18290. else $as_nop
  18291. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18292. printf "%s\n" "yes" >&6; }
  18293. fi
  18294. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support imap" >&5
  18295. printf %s "checking whether to support imap... " >&6; }
  18296. # Check whether --enable-imap was given.
  18297. if test ${enable_imap+y}
  18298. then :
  18299. enableval=$enable_imap; case "$enableval" in
  18300. no)
  18301. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18302. printf "%s\n" "no" >&6; }
  18303. printf "%s\n" "#define CURL_DISABLE_IMAP 1" >>confdefs.h
  18304. CURL_DISABLE_IMAP=1
  18305. ;;
  18306. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18307. printf "%s\n" "yes" >&6; }
  18308. ;;
  18309. esac
  18310. else $as_nop
  18311. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18312. printf "%s\n" "yes" >&6; }
  18313. fi
  18314. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support smb" >&5
  18315. printf %s "checking whether to support smb... " >&6; }
  18316. # Check whether --enable-smb was given.
  18317. if test ${enable_smb+y}
  18318. then :
  18319. enableval=$enable_smb; case "$enableval" in
  18320. no)
  18321. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18322. printf "%s\n" "no" >&6; }
  18323. printf "%s\n" "#define CURL_DISABLE_SMB 1" >>confdefs.h
  18324. CURL_DISABLE_SMB=1
  18325. ;;
  18326. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18327. printf "%s\n" "yes" >&6; }
  18328. ;;
  18329. esac
  18330. else $as_nop
  18331. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18332. printf "%s\n" "yes" >&6; }
  18333. fi
  18334. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support smtp" >&5
  18335. printf %s "checking whether to support smtp... " >&6; }
  18336. # Check whether --enable-smtp was given.
  18337. if test ${enable_smtp+y}
  18338. then :
  18339. enableval=$enable_smtp; case "$enableval" in
  18340. no)
  18341. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18342. printf "%s\n" "no" >&6; }
  18343. printf "%s\n" "#define CURL_DISABLE_SMTP 1" >>confdefs.h
  18344. CURL_DISABLE_SMTP=1
  18345. ;;
  18346. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18347. printf "%s\n" "yes" >&6; }
  18348. ;;
  18349. esac
  18350. else $as_nop
  18351. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18352. printf "%s\n" "yes" >&6; }
  18353. fi
  18354. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support gopher" >&5
  18355. printf %s "checking whether to support gopher... " >&6; }
  18356. # Check whether --enable-gopher was given.
  18357. if test ${enable_gopher+y}
  18358. then :
  18359. enableval=$enable_gopher; case "$enableval" in
  18360. no)
  18361. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18362. printf "%s\n" "no" >&6; }
  18363. printf "%s\n" "#define CURL_DISABLE_GOPHER 1" >>confdefs.h
  18364. CURL_DISABLE_GOPHER=1
  18365. ;;
  18366. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18367. printf "%s\n" "yes" >&6; }
  18368. ;;
  18369. esac
  18370. else $as_nop
  18371. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18372. printf "%s\n" "yes" >&6; }
  18373. fi
  18374. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support mqtt" >&5
  18375. printf %s "checking whether to support mqtt... " >&6; }
  18376. # Check whether --enable-mqtt was given.
  18377. if test ${enable_mqtt+y}
  18378. then :
  18379. enableval=$enable_mqtt; case "$enableval" in
  18380. no)
  18381. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18382. printf "%s\n" "no" >&6; }
  18383. printf "%s\n" "#define CURL_DISABLE_MQTT 1" >>confdefs.h
  18384. CURL_DISABLE_MQTT=1
  18385. ;;
  18386. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18387. printf "%s\n" "yes" >&6; }
  18388. ;;
  18389. esac
  18390. else $as_nop
  18391. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18392. printf "%s\n" "no" >&6; }
  18393. fi
  18394. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to provide built-in manual" >&5
  18395. printf %s "checking whether to provide built-in manual... " >&6; }
  18396. # Check whether --enable-manual was given.
  18397. if test ${enable_manual+y}
  18398. then :
  18399. enableval=$enable_manual; case "$enableval" in
  18400. no)
  18401. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18402. printf "%s\n" "no" >&6; }
  18403. ;;
  18404. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18405. printf "%s\n" "yes" >&6; }
  18406. USE_MANUAL="1"
  18407. ;;
  18408. esac
  18409. else $as_nop
  18410. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18411. printf "%s\n" "yes" >&6; }
  18412. USE_MANUAL="1"
  18413. fi
  18414. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable generation of C code" >&5
  18415. printf %s "checking whether to enable generation of C code... " >&6; }
  18416. # Check whether --enable-libcurl_option was given.
  18417. if test ${enable_libcurl_option+y}
  18418. then :
  18419. enableval=$enable_libcurl_option; case "$enableval" in
  18420. no)
  18421. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18422. printf "%s\n" "no" >&6; }
  18423. printf "%s\n" "#define CURL_DISABLE_LIBCURL_OPTION 1" >>confdefs.h
  18424. curl_libcurl_msg="no"
  18425. ;;
  18426. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18427. printf "%s\n" "yes" >&6; }
  18428. ;;
  18429. esac
  18430. else $as_nop
  18431. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18432. printf "%s\n" "yes" >&6; }
  18433. fi
  18434. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use libgcc" >&5
  18435. printf %s "checking whether to use libgcc... " >&6; }
  18436. # Check whether --enable-libgcc was given.
  18437. if test ${enable_libgcc+y}
  18438. then :
  18439. enableval=$enable_libgcc; case "$enableval" in
  18440. yes)
  18441. LIBS="-lgcc $LIBS"
  18442. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18443. printf "%s\n" "yes" >&6; }
  18444. ;;
  18445. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18446. printf "%s\n" "no" >&6; }
  18447. ;;
  18448. esac
  18449. else $as_nop
  18450. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18451. printf "%s\n" "no" >&6; }
  18452. fi
  18453. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if X/Open network library is required" >&5
  18454. printf %s "checking if X/Open network library is required... " >&6; }
  18455. tst_lib_xnet_required="no"
  18456. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18457. /* end confdefs.h. */
  18458. int main (void)
  18459. {
  18460. #if defined(__hpux) && defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 600)
  18461. return 0;
  18462. #elif defined(__hpux) && defined(_XOPEN_SOURCE_EXTENDED)
  18463. return 0;
  18464. #else
  18465. force compilation error
  18466. #endif
  18467. }
  18468. _ACEOF
  18469. if ac_fn_c_try_compile "$LINENO"
  18470. then :
  18471. tst_lib_xnet_required="yes"
  18472. LIBS="-lxnet $LIBS"
  18473. fi
  18474. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18475. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_lib_xnet_required" >&5
  18476. printf "%s\n" "$tst_lib_xnet_required" >&6; }
  18477. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  18478. if test "x$ac_cv_func_gethostbyname" = xyes
  18479. then :
  18480. HAVE_GETHOSTBYNAME="1"
  18481. else $as_nop
  18482. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  18483. printf %s "checking for gethostbyname in -lnsl... " >&6; }
  18484. if test ${ac_cv_lib_nsl_gethostbyname+y}
  18485. then :
  18486. printf %s "(cached) " >&6
  18487. else $as_nop
  18488. ac_check_lib_save_LIBS=$LIBS
  18489. LIBS="-lnsl $LIBS"
  18490. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18491. /* end confdefs.h. */
  18492. #ifdef __cplusplus
  18493. extern "C"
  18494. #endif
  18495. char gethostbyname ();
  18496. int main (void)
  18497. {
  18498. return gethostbyname ();
  18499. ;
  18500. return 0;
  18501. }
  18502. _ACEOF
  18503. if ac_fn_c_try_link "$LINENO"
  18504. then :
  18505. ac_cv_lib_nsl_gethostbyname=yes
  18506. else $as_nop
  18507. ac_cv_lib_nsl_gethostbyname=no
  18508. fi
  18509. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18510. conftest$ac_exeext conftest.$ac_ext
  18511. LIBS=$ac_check_lib_save_LIBS
  18512. fi
  18513. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  18514. printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; }
  18515. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
  18516. then :
  18517. HAVE_GETHOSTBYNAME="1"
  18518. LIBS="-lnsl $LIBS"
  18519. fi
  18520. fi
  18521. if test "$HAVE_GETHOSTBYNAME" != "1"
  18522. then
  18523. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5
  18524. printf %s "checking for gethostbyname in -lsocket... " >&6; }
  18525. if test ${ac_cv_lib_socket_gethostbyname+y}
  18526. then :
  18527. printf %s "(cached) " >&6
  18528. else $as_nop
  18529. ac_check_lib_save_LIBS=$LIBS
  18530. LIBS="-lsocket $LIBS"
  18531. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18532. /* end confdefs.h. */
  18533. #ifdef __cplusplus
  18534. extern "C"
  18535. #endif
  18536. char gethostbyname ();
  18537. int main (void)
  18538. {
  18539. return gethostbyname ();
  18540. ;
  18541. return 0;
  18542. }
  18543. _ACEOF
  18544. if ac_fn_c_try_link "$LINENO"
  18545. then :
  18546. ac_cv_lib_socket_gethostbyname=yes
  18547. else $as_nop
  18548. ac_cv_lib_socket_gethostbyname=no
  18549. fi
  18550. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18551. conftest$ac_exeext conftest.$ac_ext
  18552. LIBS=$ac_check_lib_save_LIBS
  18553. fi
  18554. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5
  18555. printf "%s\n" "$ac_cv_lib_socket_gethostbyname" >&6; }
  18556. if test "x$ac_cv_lib_socket_gethostbyname" = xyes
  18557. then :
  18558. HAVE_GETHOSTBYNAME="1"
  18559. LIBS="-lsocket $LIBS"
  18560. fi
  18561. fi
  18562. if test "$HAVE_GETHOSTBYNAME" != "1"
  18563. then
  18564. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lwatt" >&5
  18565. printf %s "checking for gethostbyname in -lwatt... " >&6; }
  18566. if test ${ac_cv_lib_watt_gethostbyname+y}
  18567. then :
  18568. printf %s "(cached) " >&6
  18569. else $as_nop
  18570. ac_check_lib_save_LIBS=$LIBS
  18571. LIBS="-lwatt $LIBS"
  18572. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18573. /* end confdefs.h. */
  18574. #ifdef __cplusplus
  18575. extern "C"
  18576. #endif
  18577. char gethostbyname ();
  18578. int main (void)
  18579. {
  18580. return gethostbyname ();
  18581. ;
  18582. return 0;
  18583. }
  18584. _ACEOF
  18585. if ac_fn_c_try_link "$LINENO"
  18586. then :
  18587. ac_cv_lib_watt_gethostbyname=yes
  18588. else $as_nop
  18589. ac_cv_lib_watt_gethostbyname=no
  18590. fi
  18591. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18592. conftest$ac_exeext conftest.$ac_ext
  18593. LIBS=$ac_check_lib_save_LIBS
  18594. fi
  18595. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_watt_gethostbyname" >&5
  18596. printf "%s\n" "$ac_cv_lib_watt_gethostbyname" >&6; }
  18597. if test "x$ac_cv_lib_watt_gethostbyname" = xyes
  18598. then :
  18599. HAVE_GETHOSTBYNAME="1"
  18600. CPPFLAGS="-I/dev/env/WATT_ROOT/inc"
  18601. LDFLAGS="-L/dev/env/WATT_ROOT/lib"
  18602. LIBS="-lwatt $LIBS"
  18603. fi
  18604. fi
  18605. if test "$HAVE_GETHOSTBYNAME" != "1"
  18606. then
  18607. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname with both nsl and socket libs" >&5
  18608. printf %s "checking for gethostbyname with both nsl and socket libs... " >&6; }
  18609. my_ac_save_LIBS=$LIBS
  18610. LIBS="-lnsl -lsocket $LIBS"
  18611. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18612. /* end confdefs.h. */
  18613. int main (void)
  18614. {
  18615. gethostbyname();
  18616. ;
  18617. return 0;
  18618. }
  18619. _ACEOF
  18620. if ac_fn_c_try_link "$LINENO"
  18621. then :
  18622. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18623. printf "%s\n" "yes" >&6; }
  18624. HAVE_GETHOSTBYNAME="1"
  18625. else $as_nop
  18626. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18627. printf "%s\n" "no" >&6; }
  18628. LIBS=$my_ac_save_LIBS
  18629. fi
  18630. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18631. conftest$ac_exeext conftest.$ac_ext
  18632. fi
  18633. if test "$HAVE_GETHOSTBYNAME" != "1"
  18634. then
  18635. if test "$curl_cv_header_windows_h" = "yes"; then
  18636. if test "$curl_cv_header_winsock2_h" = "yes"; then
  18637. winsock_LIB="-lws2_32"
  18638. fi
  18639. if test ! -z "$winsock_LIB"; then
  18640. my_ac_save_LIBS=$LIBS
  18641. LIBS="$winsock_LIB $LIBS"
  18642. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in $winsock_LIB" >&5
  18643. printf %s "checking for gethostbyname in $winsock_LIB... " >&6; }
  18644. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18645. /* end confdefs.h. */
  18646. #ifdef HAVE_WINDOWS_H
  18647. #ifndef WIN32_LEAN_AND_MEAN
  18648. #define WIN32_LEAN_AND_MEAN
  18649. #endif
  18650. #include <windows.h>
  18651. #ifdef HAVE_WINSOCK2_H
  18652. #include <winsock2.h>
  18653. #endif
  18654. #endif
  18655. int main (void)
  18656. {
  18657. gethostbyname("www.dummysite.com");
  18658. ;
  18659. return 0;
  18660. }
  18661. _ACEOF
  18662. if ac_fn_c_try_link "$LINENO"
  18663. then :
  18664. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18665. printf "%s\n" "yes" >&6; }
  18666. HAVE_GETHOSTBYNAME="1"
  18667. else $as_nop
  18668. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18669. printf "%s\n" "no" >&6; }
  18670. winsock_LIB=""
  18671. LIBS=$my_ac_save_LIBS
  18672. fi
  18673. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18674. conftest$ac_exeext conftest.$ac_ext
  18675. fi
  18676. fi
  18677. fi
  18678. if test "$HAVE_GETHOSTBYNAME" != "1"
  18679. then
  18680. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for Minix 3" >&5
  18681. printf %s "checking for gethostbyname for Minix 3... " >&6; }
  18682. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18683. /* end confdefs.h. */
  18684. /* Older Minix versions may need <net/gen/netdb.h> here instead */
  18685. #include <netdb.h>
  18686. int main (void)
  18687. {
  18688. gethostbyname("www.dummysite.com");
  18689. ;
  18690. return 0;
  18691. }
  18692. _ACEOF
  18693. if ac_fn_c_try_link "$LINENO"
  18694. then :
  18695. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18696. printf "%s\n" "yes" >&6; }
  18697. HAVE_GETHOSTBYNAME="1"
  18698. else $as_nop
  18699. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18700. printf "%s\n" "no" >&6; }
  18701. fi
  18702. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18703. conftest$ac_exeext conftest.$ac_ext
  18704. fi
  18705. if test "$HAVE_GETHOSTBYNAME" != "1"
  18706. then
  18707. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for eCos" >&5
  18708. printf %s "checking for gethostbyname for eCos... " >&6; }
  18709. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18710. /* end confdefs.h. */
  18711. #include <stdio.h>
  18712. #include <netdb.h>
  18713. int main (void)
  18714. {
  18715. gethostbyname("www.dummysite.com");
  18716. ;
  18717. return 0;
  18718. }
  18719. _ACEOF
  18720. if ac_fn_c_try_link "$LINENO"
  18721. then :
  18722. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18723. printf "%s\n" "yes" >&6; }
  18724. HAVE_GETHOSTBYNAME="1"
  18725. else $as_nop
  18726. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18727. printf "%s\n" "no" >&6; }
  18728. fi
  18729. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18730. conftest$ac_exeext conftest.$ac_ext
  18731. fi
  18732. if test "$HAVE_GETHOSTBYNAME" != "1" -o "${with_amissl+set}" = set
  18733. then
  18734. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for AmigaOS bsdsocket.library" >&5
  18735. printf %s "checking for gethostbyname for AmigaOS bsdsocket.library... " >&6; }
  18736. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18737. /* end confdefs.h. */
  18738. #define __USE_INLINE__
  18739. #include <proto/bsdsocket.h>
  18740. #ifdef __amigaos4__
  18741. struct SocketIFace *ISocket = NULL;
  18742. #else
  18743. struct Library *SocketBase = NULL;
  18744. #endif
  18745. int main (void)
  18746. {
  18747. gethostbyname("www.dummysite.com");
  18748. ;
  18749. return 0;
  18750. }
  18751. _ACEOF
  18752. if ac_fn_c_try_link "$LINENO"
  18753. then :
  18754. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18755. printf "%s\n" "yes" >&6; }
  18756. HAVE_GETHOSTBYNAME="1"
  18757. HAVE_PROTO_BSDSOCKET_H="1"
  18758. printf "%s\n" "#define HAVE_PROTO_BSDSOCKET_H 1" >>confdefs.h
  18759. HAVE_PROTO_BSDSOCKET_H=1
  18760. else $as_nop
  18761. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18762. printf "%s\n" "no" >&6; }
  18763. fi
  18764. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18765. conftest$ac_exeext conftest.$ac_ext
  18766. fi
  18767. if test "$HAVE_GETHOSTBYNAME" != "1"
  18768. then
  18769. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnetwork" >&5
  18770. printf %s "checking for gethostbyname in -lnetwork... " >&6; }
  18771. if test ${ac_cv_lib_network_gethostbyname+y}
  18772. then :
  18773. printf %s "(cached) " >&6
  18774. else $as_nop
  18775. ac_check_lib_save_LIBS=$LIBS
  18776. LIBS="-lnetwork $LIBS"
  18777. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18778. /* end confdefs.h. */
  18779. #ifdef __cplusplus
  18780. extern "C"
  18781. #endif
  18782. char gethostbyname ();
  18783. int main (void)
  18784. {
  18785. return gethostbyname ();
  18786. ;
  18787. return 0;
  18788. }
  18789. _ACEOF
  18790. if ac_fn_c_try_link "$LINENO"
  18791. then :
  18792. ac_cv_lib_network_gethostbyname=yes
  18793. else $as_nop
  18794. ac_cv_lib_network_gethostbyname=no
  18795. fi
  18796. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18797. conftest$ac_exeext conftest.$ac_ext
  18798. LIBS=$ac_check_lib_save_LIBS
  18799. fi
  18800. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_gethostbyname" >&5
  18801. printf "%s\n" "$ac_cv_lib_network_gethostbyname" >&6; }
  18802. if test "x$ac_cv_lib_network_gethostbyname" = xyes
  18803. then :
  18804. HAVE_GETHOSTBYNAME="1"
  18805. LIBS="-lnetwork $LIBS"
  18806. fi
  18807. fi
  18808. if test "$HAVE_GETHOSTBYNAME" != "1"; then
  18809. as_fn_error $? "couldn't find libraries for gethostbyname()" "$LINENO" 5
  18810. fi
  18811. curl_includes_winsock2="\
  18812. /* includes start */
  18813. #ifdef HAVE_WINDOWS_H
  18814. # ifndef WIN32_LEAN_AND_MEAN
  18815. # define WIN32_LEAN_AND_MEAN
  18816. # endif
  18817. # include <windows.h>
  18818. # ifdef HAVE_WINSOCK2_H
  18819. # include <winsock2.h>
  18820. # endif
  18821. #endif
  18822. /* includes end */"
  18823. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
  18824. printf %s "checking for windows.h... " >&6; }
  18825. if test ${curl_cv_header_windows_h+y}
  18826. then :
  18827. printf %s "(cached) " >&6
  18828. else $as_nop
  18829. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18830. /* end confdefs.h. */
  18831. #undef inline
  18832. #ifndef WIN32_LEAN_AND_MEAN
  18833. #define WIN32_LEAN_AND_MEAN
  18834. #endif
  18835. #include <windows.h>
  18836. int main (void)
  18837. {
  18838. #if defined(__CYGWIN__) || defined(__CEGCC__)
  18839. HAVE_WINDOWS_H shall not be defined.
  18840. #else
  18841. int dummy=2*WINVER;
  18842. #endif
  18843. ;
  18844. return 0;
  18845. }
  18846. _ACEOF
  18847. if ac_fn_c_try_compile "$LINENO"
  18848. then :
  18849. curl_cv_header_windows_h="yes"
  18850. else $as_nop
  18851. curl_cv_header_windows_h="no"
  18852. fi
  18853. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18854. fi
  18855. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
  18856. printf "%s\n" "$curl_cv_header_windows_h" >&6; }
  18857. case "$curl_cv_header_windows_h" in
  18858. yes)
  18859. printf "%s\n" "#define HAVE_WINDOWS_H 1" >>confdefs.h
  18860. ;;
  18861. esac
  18862. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
  18863. printf %s "checking for winsock2.h... " >&6; }
  18864. if test ${curl_cv_header_winsock2_h+y}
  18865. then :
  18866. printf %s "(cached) " >&6
  18867. else $as_nop
  18868. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18869. /* end confdefs.h. */
  18870. #undef inline
  18871. #ifndef WIN32_LEAN_AND_MEAN
  18872. #define WIN32_LEAN_AND_MEAN
  18873. #endif
  18874. #include <windows.h>
  18875. #include <winsock2.h>
  18876. int main (void)
  18877. {
  18878. #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
  18879. HAVE_WINSOCK2_H shall not be defined.
  18880. #else
  18881. int dummy=2*IPPROTO_ESP;
  18882. #endif
  18883. ;
  18884. return 0;
  18885. }
  18886. _ACEOF
  18887. if ac_fn_c_try_compile "$LINENO"
  18888. then :
  18889. curl_cv_header_winsock2_h="yes"
  18890. else $as_nop
  18891. curl_cv_header_winsock2_h="no"
  18892. fi
  18893. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18894. fi
  18895. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
  18896. printf "%s\n" "$curl_cv_header_winsock2_h" >&6; }
  18897. case "$curl_cv_header_winsock2_h" in
  18898. yes)
  18899. printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h
  18900. ;;
  18901. esac
  18902. curl_includes_bsdsocket="\
  18903. /* includes start */
  18904. #if defined(HAVE_PROTO_BSDSOCKET_H)
  18905. # define __NO_NET_API
  18906. # define __USE_INLINE__
  18907. # include <proto/bsdsocket.h>
  18908. # ifdef HAVE_SYS_IOCTL_H
  18909. # include <sys/ioctl.h>
  18910. # endif
  18911. # ifdef __amigaos4__
  18912. struct SocketIFace *ISocket = NULL;
  18913. # else
  18914. struct Library *SocketBase = NULL;
  18915. # endif
  18916. # define select(a,b,c,d,e) WaitSelect(a,b,c,d,e,0)
  18917. #endif
  18918. /* includes end */"
  18919. ac_fn_c_check_header_compile "$LINENO" "proto/bsdsocket.h" "ac_cv_header_proto_bsdsocket_h" "$curl_includes_bsdsocket
  18920. "
  18921. if test "x$ac_cv_header_proto_bsdsocket_h" = xyes
  18922. then :
  18923. printf "%s\n" "#define HAVE_PROTO_BSDSOCKET_H 1" >>confdefs.h
  18924. fi
  18925. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for connect in libraries" >&5
  18926. printf %s "checking for connect in libraries... " >&6; }
  18927. tst_connect_save_LIBS="$LIBS"
  18928. tst_connect_need_LIBS="unknown"
  18929. for tst_lib in '' '-lsocket' ; do
  18930. if test "$tst_connect_need_LIBS" = "unknown"; then
  18931. LIBS="$tst_lib $tst_connect_save_LIBS"
  18932. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18933. /* end confdefs.h. */
  18934. $curl_includes_winsock2
  18935. $curl_includes_bsdsocket
  18936. #if !defined(HAVE_WINDOWS_H) && !defined(HAVE_PROTO_BSDSOCKET_H)
  18937. int connect(int, void*, int);
  18938. #endif
  18939. int main (void)
  18940. {
  18941. if(0 != connect(0, 0, 0))
  18942. return 1;
  18943. ;
  18944. return 0;
  18945. }
  18946. _ACEOF
  18947. if ac_fn_c_try_link "$LINENO"
  18948. then :
  18949. tst_connect_need_LIBS="$tst_lib"
  18950. fi
  18951. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18952. conftest$ac_exeext conftest.$ac_ext
  18953. fi
  18954. done
  18955. LIBS="$tst_connect_save_LIBS"
  18956. #
  18957. case X-"$tst_connect_need_LIBS" in
  18958. X-unknown)
  18959. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot find connect" >&5
  18960. printf "%s\n" "cannot find connect" >&6; }
  18961. as_fn_error $? "cannot find connect function in libraries." "$LINENO" 5
  18962. ;;
  18963. X-)
  18964. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18965. printf "%s\n" "yes" >&6; }
  18966. ;;
  18967. *)
  18968. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_connect_need_LIBS" >&5
  18969. printf "%s\n" "$tst_connect_need_LIBS" >&6; }
  18970. LIBS="$tst_connect_need_LIBS $tst_connect_save_LIBS"
  18971. ;;
  18972. esac
  18973. CURL_NETWORK_LIBS=$LIBS
  18974. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
  18975. if test "x$ac_cv_header_sys_types_h" = xyes
  18976. then :
  18977. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  18978. fi
  18979. ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
  18980. if test "x$ac_cv_header_sys_time_h" = xyes
  18981. then :
  18982. printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
  18983. fi
  18984. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for monotonic clock_gettime" >&5
  18985. printf %s "checking for monotonic clock_gettime... " >&6; }
  18986. #
  18987. if test "x$dontwant_rt" = "xno" ; then
  18988. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18989. /* end confdefs.h. */
  18990. #ifdef HAVE_SYS_TYPES_H
  18991. #include <sys/types.h>
  18992. #endif
  18993. #ifdef HAVE_SYS_TIME_H
  18994. #include <sys/time.h>
  18995. #endif
  18996. #include <time.h>
  18997. int main (void)
  18998. {
  18999. struct timespec ts;
  19000. (void)clock_gettime(CLOCK_MONOTONIC, &ts);
  19001. ;
  19002. return 0;
  19003. }
  19004. _ACEOF
  19005. if ac_fn_c_try_compile "$LINENO"
  19006. then :
  19007. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19008. printf "%s\n" "yes" >&6; }
  19009. curl_func_clock_gettime="yes"
  19010. else $as_nop
  19011. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19012. printf "%s\n" "no" >&6; }
  19013. curl_func_clock_gettime="no"
  19014. fi
  19015. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19016. fi
  19017. #
  19018. if test "$curl_func_clock_gettime" = "yes"; then
  19019. #
  19020. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in libraries" >&5
  19021. printf %s "checking for clock_gettime in libraries... " >&6; }
  19022. #
  19023. curl_cv_save_LIBS="$LIBS"
  19024. curl_cv_gclk_LIBS="unknown"
  19025. #
  19026. for x_xlibs in '' '-lrt' '-lposix4' ; do
  19027. if test "$curl_cv_gclk_LIBS" = "unknown"; then
  19028. if test -z "$x_xlibs"; then
  19029. LIBS="$curl_cv_save_LIBS"
  19030. else
  19031. LIBS="$x_xlibs $curl_cv_save_LIBS"
  19032. fi
  19033. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19034. /* end confdefs.h. */
  19035. #ifdef HAVE_SYS_TYPES_H
  19036. #include <sys/types.h>
  19037. #endif
  19038. #ifdef HAVE_SYS_TIME_H
  19039. #include <sys/time.h>
  19040. #endif
  19041. #include <time.h>
  19042. int main (void)
  19043. {
  19044. struct timespec ts;
  19045. (void)clock_gettime(CLOCK_MONOTONIC, &ts);
  19046. ;
  19047. return 0;
  19048. }
  19049. _ACEOF
  19050. if ac_fn_c_try_link "$LINENO"
  19051. then :
  19052. curl_cv_gclk_LIBS="$x_xlibs"
  19053. fi
  19054. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19055. conftest$ac_exeext conftest.$ac_ext
  19056. fi
  19057. done
  19058. #
  19059. LIBS="$curl_cv_save_LIBS"
  19060. #
  19061. case X-"$curl_cv_gclk_LIBS" in
  19062. X-unknown)
  19063. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot find clock_gettime" >&5
  19064. printf "%s\n" "cannot find clock_gettime" >&6; }
  19065. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
  19066. printf "%s\n" "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
  19067. curl_func_clock_gettime="no"
  19068. ;;
  19069. X-)
  19070. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
  19071. printf "%s\n" "no additional lib required" >&6; }
  19072. curl_func_clock_gettime="yes"
  19073. ;;
  19074. *)
  19075. if test -z "$curl_cv_save_LIBS"; then
  19076. LIBS="$curl_cv_gclk_LIBS"
  19077. else
  19078. LIBS="$curl_cv_gclk_LIBS $curl_cv_save_LIBS"
  19079. fi
  19080. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_gclk_LIBS" >&5
  19081. printf "%s\n" "$curl_cv_gclk_LIBS" >&6; }
  19082. curl_func_clock_gettime="yes"
  19083. ;;
  19084. esac
  19085. #
  19086. if test "x$cross_compiling" != "xyes" &&
  19087. test "$curl_func_clock_gettime" = "yes"; then
  19088. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if monotonic clock_gettime works" >&5
  19089. printf %s "checking if monotonic clock_gettime works... " >&6; }
  19090. case $host_os in
  19091. darwin*)
  19092. if test "$cross_compiling" = yes
  19093. then :
  19094. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  19095. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  19096. as_fn_error $? "cannot run test program while cross compiling
  19097. See \`config.log' for more details" "$LINENO" 5; }
  19098. else $as_nop
  19099. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19100. /* end confdefs.h. */
  19101. #ifdef HAVE_STDLIB_H
  19102. #include <stdlib.h>
  19103. #endif
  19104. #ifdef HAVE_SYS_TYPES_H
  19105. #include <sys/types.h>
  19106. #endif
  19107. #ifdef HAVE_SYS_TIME_H
  19108. #include <sys/time.h>
  19109. #endif
  19110. #include <time.h>
  19111. int main (void)
  19112. {
  19113. struct timespec ts;
  19114. if (0 == clock_gettime(CLOCK_MONOTONIC, &ts))
  19115. exit(0);
  19116. else
  19117. exit(1);
  19118. ;
  19119. return 0;
  19120. }
  19121. _ACEOF
  19122. if ac_fn_c_try_run "$LINENO"
  19123. then :
  19124. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19125. printf "%s\n" "yes" >&6; }
  19126. else $as_nop
  19127. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19128. printf "%s\n" "no" >&6; }
  19129. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
  19130. printf "%s\n" "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
  19131. curl_func_clock_gettime="no"
  19132. LIBS="$curl_cv_save_LIBS"
  19133. fi
  19134. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  19135. conftest.$ac_objext conftest.beam conftest.$ac_ext
  19136. fi
  19137. ;;
  19138. *)
  19139. old=$LD_LIBRARY_PATH
  19140. LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
  19141. export LD_LIBRARY_PATH
  19142. if test "$cross_compiling" = yes
  19143. then :
  19144. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  19145. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  19146. as_fn_error $? "cannot run test program while cross compiling
  19147. See \`config.log' for more details" "$LINENO" 5; }
  19148. else $as_nop
  19149. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19150. /* end confdefs.h. */
  19151. #ifdef HAVE_STDLIB_H
  19152. #include <stdlib.h>
  19153. #endif
  19154. #ifdef HAVE_SYS_TYPES_H
  19155. #include <sys/types.h>
  19156. #endif
  19157. #ifdef HAVE_SYS_TIME_H
  19158. #include <sys/time.h>
  19159. #endif
  19160. #include <time.h>
  19161. int main (void)
  19162. {
  19163. struct timespec ts;
  19164. if (0 == clock_gettime(CLOCK_MONOTONIC, &ts))
  19165. exit(0);
  19166. else
  19167. exit(1);
  19168. ;
  19169. return 0;
  19170. }
  19171. _ACEOF
  19172. if ac_fn_c_try_run "$LINENO"
  19173. then :
  19174. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19175. printf "%s\n" "yes" >&6; }
  19176. else $as_nop
  19177. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19178. printf "%s\n" "no" >&6; }
  19179. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
  19180. printf "%s\n" "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
  19181. curl_func_clock_gettime="no"
  19182. LIBS="$curl_cv_save_LIBS"
  19183. fi
  19184. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  19185. conftest.$ac_objext conftest.beam conftest.$ac_ext
  19186. fi
  19187. LD_LIBRARY_PATH=$old # restore
  19188. ;;
  19189. esac
  19190. fi
  19191. #
  19192. case "$curl_func_clock_gettime" in
  19193. yes)
  19194. printf "%s\n" "#define HAVE_CLOCK_GETTIME_MONOTONIC 1" >>confdefs.h
  19195. ;;
  19196. esac
  19197. #
  19198. fi
  19199. #
  19200. CURL_NETWORK_AND_TIME_LIBS=$LIBS
  19201. clean_CPPFLAGS=$CPPFLAGS
  19202. clean_LDFLAGS=$LDFLAGS
  19203. clean_LIBS=$LIBS
  19204. ZLIB_LIBS=""
  19205. # Check whether --with-zlib was given.
  19206. if test ${with_zlib+y}
  19207. then :
  19208. withval=$with_zlib; OPT_ZLIB="$withval"
  19209. fi
  19210. if test "$OPT_ZLIB" = "no" ; then
  19211. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: zlib disabled" >&5
  19212. printf "%s\n" "$as_me: WARNING: zlib disabled" >&2;}
  19213. else
  19214. if test "$OPT_ZLIB" = "yes" ; then
  19215. OPT_ZLIB=""
  19216. fi
  19217. if test -z "$OPT_ZLIB" ; then
  19218. if test -n "$PKG_CONFIG"; then
  19219. PKGCONFIG="$PKG_CONFIG"
  19220. else
  19221. if test -n "$ac_tool_prefix"; then
  19222. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  19223. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  19224. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19225. printf %s "checking for $ac_word... " >&6; }
  19226. if test ${ac_cv_path_PKGCONFIG+y}
  19227. then :
  19228. printf %s "(cached) " >&6
  19229. else $as_nop
  19230. case $PKGCONFIG in
  19231. [\\/]* | ?:[\\/]*)
  19232. ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
  19233. ;;
  19234. *)
  19235. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19236. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  19237. for as_dir in $as_dummy
  19238. do
  19239. IFS=$as_save_IFS
  19240. case $as_dir in #(((
  19241. '') as_dir=./ ;;
  19242. */) ;;
  19243. *) as_dir=$as_dir/ ;;
  19244. esac
  19245. for ac_exec_ext in '' $ac_executable_extensions; do
  19246. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  19247. ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  19248. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  19249. break 2
  19250. fi
  19251. done
  19252. done
  19253. IFS=$as_save_IFS
  19254. ;;
  19255. esac
  19256. fi
  19257. PKGCONFIG=$ac_cv_path_PKGCONFIG
  19258. if test -n "$PKGCONFIG"; then
  19259. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
  19260. printf "%s\n" "$PKGCONFIG" >&6; }
  19261. else
  19262. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19263. printf "%s\n" "no" >&6; }
  19264. fi
  19265. fi
  19266. if test -z "$ac_cv_path_PKGCONFIG"; then
  19267. ac_pt_PKGCONFIG=$PKGCONFIG
  19268. # Extract the first word of "pkg-config", so it can be a program name with args.
  19269. set dummy pkg-config; ac_word=$2
  19270. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19271. printf %s "checking for $ac_word... " >&6; }
  19272. if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
  19273. then :
  19274. printf %s "(cached) " >&6
  19275. else $as_nop
  19276. case $ac_pt_PKGCONFIG in
  19277. [\\/]* | ?:[\\/]*)
  19278. ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
  19279. ;;
  19280. *)
  19281. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19282. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  19283. for as_dir in $as_dummy
  19284. do
  19285. IFS=$as_save_IFS
  19286. case $as_dir in #(((
  19287. '') as_dir=./ ;;
  19288. */) ;;
  19289. *) as_dir=$as_dir/ ;;
  19290. esac
  19291. for ac_exec_ext in '' $ac_executable_extensions; do
  19292. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  19293. ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  19294. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  19295. break 2
  19296. fi
  19297. done
  19298. done
  19299. IFS=$as_save_IFS
  19300. ;;
  19301. esac
  19302. fi
  19303. ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
  19304. if test -n "$ac_pt_PKGCONFIG"; then
  19305. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
  19306. printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
  19307. else
  19308. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19309. printf "%s\n" "no" >&6; }
  19310. fi
  19311. if test "x$ac_pt_PKGCONFIG" = x; then
  19312. PKGCONFIG="no"
  19313. else
  19314. case $cross_compiling:$ac_tool_warned in
  19315. yes:)
  19316. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  19317. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  19318. ac_tool_warned=yes ;;
  19319. esac
  19320. PKGCONFIG=$ac_pt_PKGCONFIG
  19321. fi
  19322. else
  19323. PKGCONFIG="$ac_cv_path_PKGCONFIG"
  19324. fi
  19325. fi
  19326. if test "x$PKGCONFIG" != "xno"; then
  19327. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for zlib options with pkg-config" >&5
  19328. printf %s "checking for zlib options with pkg-config... " >&6; }
  19329. itexists=`
  19330. if test -n ""; then
  19331. PKG_CONFIG_LIBDIR=""
  19332. export PKG_CONFIG_LIBDIR
  19333. fi
  19334. $PKGCONFIG --exists zlib >/dev/null 2>&1 && echo 1`
  19335. if test -z "$itexists"; then
  19336. PKGCONFIG="no"
  19337. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19338. printf "%s\n" "no" >&6; }
  19339. else
  19340. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
  19341. printf "%s\n" "found" >&6; }
  19342. fi
  19343. fi
  19344. if test "$PKGCONFIG" != "no" ; then
  19345. LIBS="`$PKGCONFIG --libs-only-l zlib` $LIBS"
  19346. LDFLAGS="$LDFLAGS `$PKGCONFIG --libs-only-L zlib`"
  19347. CPPFLAGS="$CPPFLAGS `$PKGCONFIG --cflags-only-I zlib`"
  19348. OPT_ZLIB=""
  19349. HAVE_LIBZ="1"
  19350. fi
  19351. if test -z "$HAVE_LIBZ"; then
  19352. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5
  19353. printf %s "checking for inflateEnd in -lz... " >&6; }
  19354. if test ${ac_cv_lib_z_inflateEnd+y}
  19355. then :
  19356. printf %s "(cached) " >&6
  19357. else $as_nop
  19358. ac_check_lib_save_LIBS=$LIBS
  19359. LIBS="-lz $LIBS"
  19360. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19361. /* end confdefs.h. */
  19362. #ifdef __cplusplus
  19363. extern "C"
  19364. #endif
  19365. char inflateEnd ();
  19366. int main (void)
  19367. {
  19368. return inflateEnd ();
  19369. ;
  19370. return 0;
  19371. }
  19372. _ACEOF
  19373. if ac_fn_c_try_link "$LINENO"
  19374. then :
  19375. ac_cv_lib_z_inflateEnd=yes
  19376. else $as_nop
  19377. ac_cv_lib_z_inflateEnd=no
  19378. fi
  19379. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19380. conftest$ac_exeext conftest.$ac_ext
  19381. LIBS=$ac_check_lib_save_LIBS
  19382. fi
  19383. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5
  19384. printf "%s\n" "$ac_cv_lib_z_inflateEnd" >&6; }
  19385. if test "x$ac_cv_lib_z_inflateEnd" = xyes
  19386. then :
  19387. HAVE_LIBZ="1"
  19388. LIBS="-lz $LIBS"
  19389. else $as_nop
  19390. OPT_ZLIB="/usr/local"
  19391. fi
  19392. fi
  19393. fi
  19394. if test -n "$OPT_ZLIB"; then
  19395. CPPFLAGS="$CPPFLAGS -I$OPT_ZLIB/include"
  19396. LDFLAGS="$LDFLAGS -L$OPT_ZLIB/lib$libsuff"
  19397. fi
  19398. ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
  19399. if test "x$ac_cv_header_zlib_h" = xyes
  19400. then :
  19401. HAVE_ZLIB_H="1"
  19402. if test "$HAVE_LIBZ" != "1"; then
  19403. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gzread in -lz" >&5
  19404. printf %s "checking for gzread in -lz... " >&6; }
  19405. if test ${ac_cv_lib_z_gzread+y}
  19406. then :
  19407. printf %s "(cached) " >&6
  19408. else $as_nop
  19409. ac_check_lib_save_LIBS=$LIBS
  19410. LIBS="-lz $LIBS"
  19411. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19412. /* end confdefs.h. */
  19413. #ifdef __cplusplus
  19414. extern "C"
  19415. #endif
  19416. char gzread ();
  19417. int main (void)
  19418. {
  19419. return gzread ();
  19420. ;
  19421. return 0;
  19422. }
  19423. _ACEOF
  19424. if ac_fn_c_try_link "$LINENO"
  19425. then :
  19426. ac_cv_lib_z_gzread=yes
  19427. else $as_nop
  19428. ac_cv_lib_z_gzread=no
  19429. fi
  19430. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19431. conftest$ac_exeext conftest.$ac_ext
  19432. LIBS=$ac_check_lib_save_LIBS
  19433. fi
  19434. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzread" >&5
  19435. printf "%s\n" "$ac_cv_lib_z_gzread" >&6; }
  19436. if test "x$ac_cv_lib_z_gzread" = xyes
  19437. then :
  19438. HAVE_LIBZ="1"
  19439. LIBS="-lz $LIBS"
  19440. else $as_nop
  19441. CPPFLAGS=$clean_CPPFLAGS
  19442. LDFLAGS=$clean_LDFLAGS
  19443. fi
  19444. fi
  19445. else $as_nop
  19446. CPPFLAGS=$clean_CPPFLAGS
  19447. LDFLAGS=$clean_LDFLAGS
  19448. fi
  19449. if test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" != "1"
  19450. then
  19451. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz lib, not the header file!" >&5
  19452. printf "%s\n" "$as_me: WARNING: configure found only the libz lib, not the header file!" >&2;}
  19453. HAVE_LIBZ=""
  19454. CPPFLAGS=$clean_CPPFLAGS
  19455. LDFLAGS=$clean_LDFLAGS
  19456. LIBS=$clean_LIBS
  19457. elif test "$HAVE_LIBZ" != "1" && test "$HAVE_ZLIB_H" = "1"
  19458. then
  19459. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz header file, not the lib!" >&5
  19460. printf "%s\n" "$as_me: WARNING: configure found only the libz header file, not the lib!" >&2;}
  19461. CPPFLAGS=$clean_CPPFLAGS
  19462. LDFLAGS=$clean_LDFLAGS
  19463. LIBS=$clean_LIBS
  19464. elif test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" = "1"
  19465. then
  19466. printf "%s\n" "#define HAVE_ZLIB_H 1" >>confdefs.h
  19467. printf "%s\n" "#define HAVE_LIBZ 1" >>confdefs.h
  19468. ZLIB_LIBS="-lz"
  19469. LIBS="-lz $clean_LIBS"
  19470. AMFIXLIB="1"
  19471. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: found both libz and libz.h header" >&5
  19472. printf "%s\n" "$as_me: found both libz and libz.h header" >&6;}
  19473. curl_zlib_msg="enabled"
  19474. fi
  19475. fi
  19476. if test x"$AMFIXLIB" = x1; then
  19477. HAVE_LIBZ_TRUE=
  19478. HAVE_LIBZ_FALSE='#'
  19479. else
  19480. HAVE_LIBZ_TRUE='#'
  19481. HAVE_LIBZ_FALSE=
  19482. fi
  19483. OPT_BROTLI=off
  19484. # Check whether --with-brotli was given.
  19485. if test ${with_brotli+y}
  19486. then :
  19487. withval=$with_brotli; OPT_BROTLI=$withval
  19488. fi
  19489. if test X"$OPT_BROTLI" != Xno; then
  19490. CLEANLDFLAGS="$LDFLAGS"
  19491. CLEANCPPFLAGS="$CPPFLAGS"
  19492. CLEANLIBS="$LIBS"
  19493. case "$OPT_BROTLI" in
  19494. yes)
  19495. if test -n "$PKG_CONFIG"; then
  19496. PKGCONFIG="$PKG_CONFIG"
  19497. else
  19498. if test -n "$ac_tool_prefix"; then
  19499. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  19500. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  19501. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19502. printf %s "checking for $ac_word... " >&6; }
  19503. if test ${ac_cv_path_PKGCONFIG+y}
  19504. then :
  19505. printf %s "(cached) " >&6
  19506. else $as_nop
  19507. case $PKGCONFIG in
  19508. [\\/]* | ?:[\\/]*)
  19509. ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
  19510. ;;
  19511. *)
  19512. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19513. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  19514. for as_dir in $as_dummy
  19515. do
  19516. IFS=$as_save_IFS
  19517. case $as_dir in #(((
  19518. '') as_dir=./ ;;
  19519. */) ;;
  19520. *) as_dir=$as_dir/ ;;
  19521. esac
  19522. for ac_exec_ext in '' $ac_executable_extensions; do
  19523. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  19524. ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  19525. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  19526. break 2
  19527. fi
  19528. done
  19529. done
  19530. IFS=$as_save_IFS
  19531. ;;
  19532. esac
  19533. fi
  19534. PKGCONFIG=$ac_cv_path_PKGCONFIG
  19535. if test -n "$PKGCONFIG"; then
  19536. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
  19537. printf "%s\n" "$PKGCONFIG" >&6; }
  19538. else
  19539. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19540. printf "%s\n" "no" >&6; }
  19541. fi
  19542. fi
  19543. if test -z "$ac_cv_path_PKGCONFIG"; then
  19544. ac_pt_PKGCONFIG=$PKGCONFIG
  19545. # Extract the first word of "pkg-config", so it can be a program name with args.
  19546. set dummy pkg-config; ac_word=$2
  19547. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19548. printf %s "checking for $ac_word... " >&6; }
  19549. if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
  19550. then :
  19551. printf %s "(cached) " >&6
  19552. else $as_nop
  19553. case $ac_pt_PKGCONFIG in
  19554. [\\/]* | ?:[\\/]*)
  19555. ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
  19556. ;;
  19557. *)
  19558. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19559. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  19560. for as_dir in $as_dummy
  19561. do
  19562. IFS=$as_save_IFS
  19563. case $as_dir in #(((
  19564. '') as_dir=./ ;;
  19565. */) ;;
  19566. *) as_dir=$as_dir/ ;;
  19567. esac
  19568. for ac_exec_ext in '' $ac_executable_extensions; do
  19569. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  19570. ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  19571. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  19572. break 2
  19573. fi
  19574. done
  19575. done
  19576. IFS=$as_save_IFS
  19577. ;;
  19578. esac
  19579. fi
  19580. ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
  19581. if test -n "$ac_pt_PKGCONFIG"; then
  19582. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
  19583. printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
  19584. else
  19585. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19586. printf "%s\n" "no" >&6; }
  19587. fi
  19588. if test "x$ac_pt_PKGCONFIG" = x; then
  19589. PKGCONFIG="no"
  19590. else
  19591. case $cross_compiling:$ac_tool_warned in
  19592. yes:)
  19593. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  19594. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  19595. ac_tool_warned=yes ;;
  19596. esac
  19597. PKGCONFIG=$ac_pt_PKGCONFIG
  19598. fi
  19599. else
  19600. PKGCONFIG="$ac_cv_path_PKGCONFIG"
  19601. fi
  19602. fi
  19603. if test "x$PKGCONFIG" != "xno"; then
  19604. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libbrotlidec options with pkg-config" >&5
  19605. printf %s "checking for libbrotlidec options with pkg-config... " >&6; }
  19606. itexists=`
  19607. if test -n ""; then
  19608. PKG_CONFIG_LIBDIR=""
  19609. export PKG_CONFIG_LIBDIR
  19610. fi
  19611. $PKGCONFIG --exists libbrotlidec >/dev/null 2>&1 && echo 1`
  19612. if test -z "$itexists"; then
  19613. PKGCONFIG="no"
  19614. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19615. printf "%s\n" "no" >&6; }
  19616. else
  19617. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
  19618. printf "%s\n" "found" >&6; }
  19619. fi
  19620. fi
  19621. if test "$PKGCONFIG" != "no" ; then
  19622. LIB_BROTLI=`$PKGCONFIG --libs-only-l libbrotlidec`
  19623. LD_BROTLI=`$PKGCONFIG --libs-only-L libbrotlidec`
  19624. CPP_BROTLI=`$PKGCONFIG --cflags-only-I libbrotlidec`
  19625. version=`$PKGCONFIG --modversion libbrotlidec`
  19626. DIR_BROTLI=`echo $LD_BROTLI | $SED -e 's/^-L//'`
  19627. fi
  19628. ;;
  19629. off)
  19630. ;;
  19631. *)
  19632. PREFIX_BROTLI=$OPT_BROTLI
  19633. ;;
  19634. esac
  19635. if test -n "$PREFIX_BROTLI"; then
  19636. LIB_BROTLI="-lbrotlidec"
  19637. LD_BROTLI=-L${PREFIX_BROTLI}/lib$libsuff
  19638. CPP_BROTLI=-I${PREFIX_BROTLI}/include
  19639. DIR_BROTLI=${PREFIX_BROTLI}/lib$libsuff
  19640. fi
  19641. LDFLAGS="$LDFLAGS $LD_BROTLI"
  19642. CPPFLAGS="$CPPFLAGS $CPP_BROTLI"
  19643. LIBS="$LIB_BROTLI $LIBS"
  19644. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BrotliDecoderDecompress in -lbrotlidec" >&5
  19645. printf %s "checking for BrotliDecoderDecompress in -lbrotlidec... " >&6; }
  19646. if test ${ac_cv_lib_brotlidec_BrotliDecoderDecompress+y}
  19647. then :
  19648. printf %s "(cached) " >&6
  19649. else $as_nop
  19650. ac_check_lib_save_LIBS=$LIBS
  19651. LIBS="-lbrotlidec $LIBS"
  19652. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19653. /* end confdefs.h. */
  19654. #ifdef __cplusplus
  19655. extern "C"
  19656. #endif
  19657. char BrotliDecoderDecompress ();
  19658. int main (void)
  19659. {
  19660. return BrotliDecoderDecompress ();
  19661. ;
  19662. return 0;
  19663. }
  19664. _ACEOF
  19665. if ac_fn_c_try_link "$LINENO"
  19666. then :
  19667. ac_cv_lib_brotlidec_BrotliDecoderDecompress=yes
  19668. else $as_nop
  19669. ac_cv_lib_brotlidec_BrotliDecoderDecompress=no
  19670. fi
  19671. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19672. conftest$ac_exeext conftest.$ac_ext
  19673. LIBS=$ac_check_lib_save_LIBS
  19674. fi
  19675. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_brotlidec_BrotliDecoderDecompress" >&5
  19676. printf "%s\n" "$ac_cv_lib_brotlidec_BrotliDecoderDecompress" >&6; }
  19677. if test "x$ac_cv_lib_brotlidec_BrotliDecoderDecompress" = xyes
  19678. then :
  19679. printf "%s\n" "#define HAVE_LIBBROTLIDEC 1" >>confdefs.h
  19680. LIBS="-lbrotlidec $LIBS"
  19681. fi
  19682. for ac_header in brotli/decode.h
  19683. do :
  19684. ac_fn_c_check_header_compile "$LINENO" "brotli/decode.h" "ac_cv_header_brotli_decode_h" "$ac_includes_default"
  19685. if test "x$ac_cv_header_brotli_decode_h" = xyes
  19686. then :
  19687. printf "%s\n" "#define HAVE_BROTLI_DECODE_H 1" >>confdefs.h
  19688. curl_brotli_msg="enabled (libbrotlidec)"
  19689. HAVE_BROTLI=1
  19690. printf "%s\n" "#define HAVE_BROTLI 1" >>confdefs.h
  19691. HAVE_BROTLI=1
  19692. fi
  19693. done
  19694. if test X"$OPT_BROTLI" != Xoff &&
  19695. test "$HAVE_BROTLI" != "1"; then
  19696. as_fn_error $? "BROTLI libs and/or directories were not found where specified!" "$LINENO" 5
  19697. fi
  19698. if test "$HAVE_BROTLI" = "1"; then
  19699. if test -n "$DIR_BROTLI"; then
  19700. if test "x$cross_compiling" != "xyes"; then
  19701. CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_BROTLI"
  19702. export CURL_LIBRARY_PATH
  19703. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_BROTLI to CURL_LIBRARY_PATH" >&5
  19704. printf "%s\n" "$as_me: Added $DIR_BROTLI to CURL_LIBRARY_PATH" >&6;}
  19705. fi
  19706. fi
  19707. else
  19708. LDFLAGS=$CLEANLDFLAGS
  19709. CPPFLAGS=$CLEANCPPFLAGS
  19710. LIBS=$CLEANLIBS
  19711. fi
  19712. fi
  19713. OPT_ZSTD=off
  19714. # Check whether --with-zstd was given.
  19715. if test ${with_zstd+y}
  19716. then :
  19717. withval=$with_zstd; OPT_ZSTD=$withval
  19718. fi
  19719. if test X"$OPT_ZSTD" != Xno; then
  19720. CLEANLDFLAGS="$LDFLAGS"
  19721. CLEANCPPFLAGS="$CPPFLAGS"
  19722. CLEANLIBS="$LIBS"
  19723. case "$OPT_ZSTD" in
  19724. yes)
  19725. if test -n "$PKG_CONFIG"; then
  19726. PKGCONFIG="$PKG_CONFIG"
  19727. else
  19728. if test -n "$ac_tool_prefix"; then
  19729. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  19730. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  19731. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19732. printf %s "checking for $ac_word... " >&6; }
  19733. if test ${ac_cv_path_PKGCONFIG+y}
  19734. then :
  19735. printf %s "(cached) " >&6
  19736. else $as_nop
  19737. case $PKGCONFIG in
  19738. [\\/]* | ?:[\\/]*)
  19739. ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
  19740. ;;
  19741. *)
  19742. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19743. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  19744. for as_dir in $as_dummy
  19745. do
  19746. IFS=$as_save_IFS
  19747. case $as_dir in #(((
  19748. '') as_dir=./ ;;
  19749. */) ;;
  19750. *) as_dir=$as_dir/ ;;
  19751. esac
  19752. for ac_exec_ext in '' $ac_executable_extensions; do
  19753. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  19754. ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  19755. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  19756. break 2
  19757. fi
  19758. done
  19759. done
  19760. IFS=$as_save_IFS
  19761. ;;
  19762. esac
  19763. fi
  19764. PKGCONFIG=$ac_cv_path_PKGCONFIG
  19765. if test -n "$PKGCONFIG"; then
  19766. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
  19767. printf "%s\n" "$PKGCONFIG" >&6; }
  19768. else
  19769. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19770. printf "%s\n" "no" >&6; }
  19771. fi
  19772. fi
  19773. if test -z "$ac_cv_path_PKGCONFIG"; then
  19774. ac_pt_PKGCONFIG=$PKGCONFIG
  19775. # Extract the first word of "pkg-config", so it can be a program name with args.
  19776. set dummy pkg-config; ac_word=$2
  19777. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19778. printf %s "checking for $ac_word... " >&6; }
  19779. if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
  19780. then :
  19781. printf %s "(cached) " >&6
  19782. else $as_nop
  19783. case $ac_pt_PKGCONFIG in
  19784. [\\/]* | ?:[\\/]*)
  19785. ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
  19786. ;;
  19787. *)
  19788. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19789. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  19790. for as_dir in $as_dummy
  19791. do
  19792. IFS=$as_save_IFS
  19793. case $as_dir in #(((
  19794. '') as_dir=./ ;;
  19795. */) ;;
  19796. *) as_dir=$as_dir/ ;;
  19797. esac
  19798. for ac_exec_ext in '' $ac_executable_extensions; do
  19799. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  19800. ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  19801. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  19802. break 2
  19803. fi
  19804. done
  19805. done
  19806. IFS=$as_save_IFS
  19807. ;;
  19808. esac
  19809. fi
  19810. ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
  19811. if test -n "$ac_pt_PKGCONFIG"; then
  19812. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
  19813. printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
  19814. else
  19815. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19816. printf "%s\n" "no" >&6; }
  19817. fi
  19818. if test "x$ac_pt_PKGCONFIG" = x; then
  19819. PKGCONFIG="no"
  19820. else
  19821. case $cross_compiling:$ac_tool_warned in
  19822. yes:)
  19823. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  19824. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  19825. ac_tool_warned=yes ;;
  19826. esac
  19827. PKGCONFIG=$ac_pt_PKGCONFIG
  19828. fi
  19829. else
  19830. PKGCONFIG="$ac_cv_path_PKGCONFIG"
  19831. fi
  19832. fi
  19833. if test "x$PKGCONFIG" != "xno"; then
  19834. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libzstd options with pkg-config" >&5
  19835. printf %s "checking for libzstd options with pkg-config... " >&6; }
  19836. itexists=`
  19837. if test -n ""; then
  19838. PKG_CONFIG_LIBDIR=""
  19839. export PKG_CONFIG_LIBDIR
  19840. fi
  19841. $PKGCONFIG --exists libzstd >/dev/null 2>&1 && echo 1`
  19842. if test -z "$itexists"; then
  19843. PKGCONFIG="no"
  19844. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19845. printf "%s\n" "no" >&6; }
  19846. else
  19847. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
  19848. printf "%s\n" "found" >&6; }
  19849. fi
  19850. fi
  19851. if test "$PKGCONFIG" != "no" ; then
  19852. LIB_ZSTD=`$PKGCONFIG --libs-only-l libzstd`
  19853. LD_ZSTD=`$PKGCONFIG --libs-only-L libzstd`
  19854. CPP_ZSTD=`$PKGCONFIG --cflags-only-I libzstd`
  19855. version=`$PKGCONFIG --modversion libzstd`
  19856. DIR_ZSTD=`echo $LD_ZSTD | $SED -e 's/-L//'`
  19857. fi
  19858. ;;
  19859. off)
  19860. ;;
  19861. *)
  19862. PREFIX_ZSTD=$OPT_ZSTD
  19863. ;;
  19864. esac
  19865. if test -n "$PREFIX_ZSTD"; then
  19866. LIB_ZSTD="-lzstd"
  19867. LD_ZSTD=-L${PREFIX_ZSTD}/lib$libsuff
  19868. CPP_ZSTD=-I${PREFIX_ZSTD}/include
  19869. DIR_ZSTD=${PREFIX_ZSTD}/lib$libsuff
  19870. fi
  19871. LDFLAGS="$LDFLAGS $LD_ZSTD"
  19872. CPPFLAGS="$CPPFLAGS $CPP_ZSTD"
  19873. LIBS="$LIB_ZSTD $LIBS"
  19874. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ZSTD_createDStream in -lzstd" >&5
  19875. printf %s "checking for ZSTD_createDStream in -lzstd... " >&6; }
  19876. if test ${ac_cv_lib_zstd_ZSTD_createDStream+y}
  19877. then :
  19878. printf %s "(cached) " >&6
  19879. else $as_nop
  19880. ac_check_lib_save_LIBS=$LIBS
  19881. LIBS="-lzstd $LIBS"
  19882. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19883. /* end confdefs.h. */
  19884. #ifdef __cplusplus
  19885. extern "C"
  19886. #endif
  19887. char ZSTD_createDStream ();
  19888. int main (void)
  19889. {
  19890. return ZSTD_createDStream ();
  19891. ;
  19892. return 0;
  19893. }
  19894. _ACEOF
  19895. if ac_fn_c_try_link "$LINENO"
  19896. then :
  19897. ac_cv_lib_zstd_ZSTD_createDStream=yes
  19898. else $as_nop
  19899. ac_cv_lib_zstd_ZSTD_createDStream=no
  19900. fi
  19901. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19902. conftest$ac_exeext conftest.$ac_ext
  19903. LIBS=$ac_check_lib_save_LIBS
  19904. fi
  19905. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zstd_ZSTD_createDStream" >&5
  19906. printf "%s\n" "$ac_cv_lib_zstd_ZSTD_createDStream" >&6; }
  19907. if test "x$ac_cv_lib_zstd_ZSTD_createDStream" = xyes
  19908. then :
  19909. printf "%s\n" "#define HAVE_LIBZSTD 1" >>confdefs.h
  19910. LIBS="-lzstd $LIBS"
  19911. fi
  19912. for ac_header in zstd.h
  19913. do :
  19914. ac_fn_c_check_header_compile "$LINENO" "zstd.h" "ac_cv_header_zstd_h" "$ac_includes_default"
  19915. if test "x$ac_cv_header_zstd_h" = xyes
  19916. then :
  19917. printf "%s\n" "#define HAVE_ZSTD_H 1" >>confdefs.h
  19918. curl_zstd_msg="enabled (libzstd)"
  19919. HAVE_ZSTD=1
  19920. printf "%s\n" "#define HAVE_ZSTD 1" >>confdefs.h
  19921. HAVE_ZSTD=1
  19922. fi
  19923. done
  19924. if test X"$OPT_ZSTD" != Xoff &&
  19925. test "$HAVE_ZSTD" != "1"; then
  19926. as_fn_error $? "libzstd was not found where specified!" "$LINENO" 5
  19927. fi
  19928. if test "$HAVE_ZSTD" = "1"; then
  19929. if test -n "$DIR_ZSTD"; then
  19930. if test "x$cross_compiling" != "xyes"; then
  19931. CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_ZSTD"
  19932. export CURL_LIBRARY_PATH
  19933. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_ZSTD to CURL_LIBRARY_PATH" >&5
  19934. printf "%s\n" "$as_me: Added $DIR_ZSTD to CURL_LIBRARY_PATH" >&6;}
  19935. fi
  19936. fi
  19937. else
  19938. LDFLAGS=$CLEANLDFLAGS
  19939. CPPFLAGS=$CLEANCPPFLAGS
  19940. LIBS=$CLEANLIBS
  19941. fi
  19942. fi
  19943. LDAPLIBNAME=""
  19944. # Check whether --with-ldap-lib was given.
  19945. if test ${with_ldap_lib+y}
  19946. then :
  19947. withval=$with_ldap_lib; LDAPLIBNAME="$withval"
  19948. fi
  19949. LBERLIBNAME=""
  19950. # Check whether --with-lber-lib was given.
  19951. if test ${with_lber_lib+y}
  19952. then :
  19953. withval=$with_lber_lib; LBERLIBNAME="$withval"
  19954. fi
  19955. if test x$CURL_DISABLE_LDAP != x1 ; then
  19956. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lber.h" >&5
  19957. printf %s "checking for lber.h... " >&6; }
  19958. if test ${curl_cv_header_lber_h+y}
  19959. then :
  19960. printf %s "(cached) " >&6
  19961. else $as_nop
  19962. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19963. /* end confdefs.h. */
  19964. #undef inline
  19965. #ifdef HAVE_WINDOWS_H
  19966. #ifndef WIN32_LEAN_AND_MEAN
  19967. #define WIN32_LEAN_AND_MEAN
  19968. #endif
  19969. #include <windows.h>
  19970. #else
  19971. #ifdef HAVE_SYS_TYPES_H
  19972. #include <sys/types.h>
  19973. #endif
  19974. #endif
  19975. #ifndef NULL
  19976. #define NULL (void *)0
  19977. #endif
  19978. #include <lber.h>
  19979. int main (void)
  19980. {
  19981. BerValue *bvp = NULL;
  19982. BerElement *bep = ber_init(bvp);
  19983. ber_free(bep, 1);
  19984. ;
  19985. return 0;
  19986. }
  19987. _ACEOF
  19988. if ac_fn_c_try_compile "$LINENO"
  19989. then :
  19990. curl_cv_header_lber_h="yes"
  19991. else $as_nop
  19992. curl_cv_header_lber_h="no"
  19993. fi
  19994. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19995. fi
  19996. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_lber_h" >&5
  19997. printf "%s\n" "$curl_cv_header_lber_h" >&6; }
  19998. if test "$curl_cv_header_lber_h" = "yes"; then
  19999. printf "%s\n" "#define HAVE_LBER_H 1" >>confdefs.h
  20000. #
  20001. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20002. /* end confdefs.h. */
  20003. #undef inline
  20004. #ifdef HAVE_WINDOWS_H
  20005. #ifndef WIN32_LEAN_AND_MEAN
  20006. #define WIN32_LEAN_AND_MEAN
  20007. #endif
  20008. #include <windows.h>
  20009. #else
  20010. #ifdef HAVE_SYS_TYPES_H
  20011. #include <sys/types.h>
  20012. #endif
  20013. #endif
  20014. #ifndef NULL
  20015. #define NULL (void *)0
  20016. #endif
  20017. #ifndef LDAP_DEPRECATED
  20018. #define LDAP_DEPRECATED 1
  20019. #endif
  20020. #include <ldap.h>
  20021. int main (void)
  20022. {
  20023. BerValue *bvp = NULL;
  20024. BerElement *bep = ber_init(bvp);
  20025. ber_free(bep, 1);
  20026. ;
  20027. return 0;
  20028. }
  20029. _ACEOF
  20030. if ac_fn_c_try_compile "$LINENO"
  20031. then :
  20032. curl_cv_need_header_lber_h="no"
  20033. else $as_nop
  20034. curl_cv_need_header_lber_h="yes"
  20035. fi
  20036. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20037. #
  20038. case "$curl_cv_need_header_lber_h" in
  20039. yes)
  20040. printf "%s\n" "#define NEED_LBER_H 1" >>confdefs.h
  20041. ;;
  20042. esac
  20043. fi
  20044. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ldap.h" >&5
  20045. printf %s "checking for ldap.h... " >&6; }
  20046. if test ${curl_cv_header_ldap_h+y}
  20047. then :
  20048. printf %s "(cached) " >&6
  20049. else $as_nop
  20050. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20051. /* end confdefs.h. */
  20052. #undef inline
  20053. #ifdef HAVE_WINDOWS_H
  20054. #ifndef WIN32_LEAN_AND_MEAN
  20055. #define WIN32_LEAN_AND_MEAN
  20056. #endif
  20057. #include <windows.h>
  20058. #else
  20059. #ifdef HAVE_SYS_TYPES_H
  20060. #include <sys/types.h>
  20061. #endif
  20062. #endif
  20063. #ifndef LDAP_DEPRECATED
  20064. #define LDAP_DEPRECATED 1
  20065. #endif
  20066. #ifdef NEED_LBER_H
  20067. #include <lber.h>
  20068. #endif
  20069. #include <ldap.h>
  20070. int main (void)
  20071. {
  20072. LDAP *ldp = ldap_init("dummy", LDAP_PORT);
  20073. int res = ldap_unbind(ldp);
  20074. ;
  20075. return 0;
  20076. }
  20077. _ACEOF
  20078. if ac_fn_c_try_compile "$LINENO"
  20079. then :
  20080. curl_cv_header_ldap_h="yes"
  20081. else $as_nop
  20082. curl_cv_header_ldap_h="no"
  20083. fi
  20084. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20085. fi
  20086. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldap_h" >&5
  20087. printf "%s\n" "$curl_cv_header_ldap_h" >&6; }
  20088. case "$curl_cv_header_ldap_h" in
  20089. yes)
  20090. printf "%s\n" "#define HAVE_LDAP_H 1" >>confdefs.h
  20091. ;;
  20092. esac
  20093. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ldap_ssl.h" >&5
  20094. printf %s "checking for ldap_ssl.h... " >&6; }
  20095. if test ${curl_cv_header_ldap_ssl_h+y}
  20096. then :
  20097. printf %s "(cached) " >&6
  20098. else $as_nop
  20099. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20100. /* end confdefs.h. */
  20101. #undef inline
  20102. #ifdef HAVE_WINDOWS_H
  20103. #ifndef WIN32_LEAN_AND_MEAN
  20104. #define WIN32_LEAN_AND_MEAN
  20105. #endif
  20106. #include <windows.h>
  20107. #else
  20108. #ifdef HAVE_SYS_TYPES_H
  20109. #include <sys/types.h>
  20110. #endif
  20111. #endif
  20112. #ifndef LDAP_DEPRECATED
  20113. #define LDAP_DEPRECATED 1
  20114. #endif
  20115. #ifdef NEED_LBER_H
  20116. #include <lber.h>
  20117. #endif
  20118. #ifdef HAVE_LDAP_H
  20119. #include <ldap.h>
  20120. #endif
  20121. #include <ldap_ssl.h>
  20122. int main (void)
  20123. {
  20124. LDAP *ldp = ldapssl_init("dummy", LDAPS_PORT, 1);
  20125. ;
  20126. return 0;
  20127. }
  20128. _ACEOF
  20129. if ac_fn_c_try_compile "$LINENO"
  20130. then :
  20131. curl_cv_header_ldap_ssl_h="yes"
  20132. else $as_nop
  20133. curl_cv_header_ldap_ssl_h="no"
  20134. fi
  20135. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20136. fi
  20137. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldap_ssl_h" >&5
  20138. printf "%s\n" "$curl_cv_header_ldap_ssl_h" >&6; }
  20139. case "$curl_cv_header_ldap_ssl_h" in
  20140. yes)
  20141. printf "%s\n" "#define HAVE_LDAP_SSL_H 1" >>confdefs.h
  20142. ;;
  20143. esac
  20144. if test -z "$LDAPLIBNAME" ; then
  20145. if test "$curl_cv_native_windows" = "yes"; then
  20146. LDAPLIBNAME="wldap32"
  20147. LBERLIBNAME="no"
  20148. fi
  20149. fi
  20150. if test "$LDAPLIBNAME" ; then
  20151. as_ac_Lib=`printf "%s\n" "ac_cv_lib_"$LDAPLIBNAME"""_ldap_init" | $as_tr_sh`
  20152. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l\"$LDAPLIBNAME\"" >&5
  20153. printf %s "checking for ldap_init in -l\"$LDAPLIBNAME\"... " >&6; }
  20154. if eval test \${$as_ac_Lib+y}
  20155. then :
  20156. printf %s "(cached) " >&6
  20157. else $as_nop
  20158. ac_check_lib_save_LIBS=$LIBS
  20159. LIBS="-l"$LDAPLIBNAME" $LIBS"
  20160. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20161. /* end confdefs.h. */
  20162. #ifdef __cplusplus
  20163. extern "C"
  20164. #endif
  20165. char ldap_init ();
  20166. int main (void)
  20167. {
  20168. return ldap_init ();
  20169. ;
  20170. return 0;
  20171. }
  20172. _ACEOF
  20173. if ac_fn_c_try_link "$LINENO"
  20174. then :
  20175. eval "$as_ac_Lib=yes"
  20176. else $as_nop
  20177. eval "$as_ac_Lib=no"
  20178. fi
  20179. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20180. conftest$ac_exeext conftest.$ac_ext
  20181. LIBS=$ac_check_lib_save_LIBS
  20182. fi
  20183. eval ac_res=\$$as_ac_Lib
  20184. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  20185. printf "%s\n" "$ac_res" >&6; }
  20186. if eval test \"x\$"$as_ac_Lib"\" = x"yes"
  20187. then :
  20188. cat >>confdefs.h <<_ACEOF
  20189. #define `printf "%s\n" "HAVE_LIB"$LDAPLIBNAME"" | $as_tr_cpp` 1
  20190. _ACEOF
  20191. LIBS="-l"$LDAPLIBNAME" $LIBS"
  20192. else $as_nop
  20193. if test -n "$ldap_askedfor"; then
  20194. as_fn_error $? "couldn't detect the LDAP libraries" "$LINENO" 5
  20195. fi
  20196. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&5
  20197. printf "%s\n" "$as_me: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&2;}
  20198. printf "%s\n" "#define CURL_DISABLE_LDAP 1" >>confdefs.h
  20199. CURL_DISABLE_LDAP=1
  20200. printf "%s\n" "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
  20201. CURL_DISABLE_LDAPS=1
  20202. fi
  20203. else
  20204. #
  20205. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LDAP libraries" >&5
  20206. printf %s "checking for LDAP libraries... " >&6; }
  20207. #
  20208. u_libs=""
  20209. #
  20210. #
  20211. curl_cv_save_LIBS="$LIBS"
  20212. curl_cv_ldap_LIBS="unknown"
  20213. #
  20214. for x_nlibs in '' "$u_libs" \
  20215. '-lldap' \
  20216. '-lldap -llber' \
  20217. '-llber -lldap' \
  20218. '-lldapssl -lldapx -lldapsdk' \
  20219. '-lldapsdk -lldapx -lldapssl' \
  20220. '-lldap -llber -lssl -lcrypto' ; do
  20221. if test "$curl_cv_ldap_LIBS" = "unknown"; then
  20222. if test -z "$x_nlibs"; then
  20223. LIBS="$curl_cv_save_LIBS"
  20224. else
  20225. LIBS="$x_nlibs $curl_cv_save_LIBS"
  20226. fi
  20227. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20228. /* end confdefs.h. */
  20229. #undef inline
  20230. #ifdef HAVE_WINDOWS_H
  20231. #ifndef WIN32_LEAN_AND_MEAN
  20232. #define WIN32_LEAN_AND_MEAN
  20233. #endif
  20234. #include <windows.h>
  20235. #else
  20236. #ifdef HAVE_SYS_TYPES_H
  20237. #include <sys/types.h>
  20238. #endif
  20239. #endif
  20240. #ifndef NULL
  20241. #define NULL (void *)0
  20242. #endif
  20243. #ifndef LDAP_DEPRECATED
  20244. #define LDAP_DEPRECATED 1
  20245. #endif
  20246. #ifdef NEED_LBER_H
  20247. #include <lber.h>
  20248. #endif
  20249. #ifdef HAVE_LDAP_H
  20250. #include <ldap.h>
  20251. #endif
  20252. int main (void)
  20253. {
  20254. BerValue *bvp = NULL;
  20255. BerElement *bep = ber_init(bvp);
  20256. LDAP *ldp = ldap_init("dummy", LDAP_PORT);
  20257. int res = ldap_unbind(ldp);
  20258. ber_free(bep, 1);
  20259. ;
  20260. return 0;
  20261. }
  20262. _ACEOF
  20263. if ac_fn_c_try_link "$LINENO"
  20264. then :
  20265. curl_cv_ldap_LIBS="$x_nlibs"
  20266. fi
  20267. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20268. conftest$ac_exeext conftest.$ac_ext
  20269. fi
  20270. done
  20271. #
  20272. LIBS="$curl_cv_save_LIBS"
  20273. #
  20274. case X-"$curl_cv_ldap_LIBS" in
  20275. X-unknown)
  20276. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot find LDAP libraries" >&5
  20277. printf "%s\n" "cannot find LDAP libraries" >&6; }
  20278. ;;
  20279. X-)
  20280. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
  20281. printf "%s\n" "no additional lib required" >&6; }
  20282. ;;
  20283. *)
  20284. if test -z "$curl_cv_save_LIBS"; then
  20285. LIBS="$curl_cv_ldap_LIBS"
  20286. else
  20287. LIBS="$curl_cv_ldap_LIBS $curl_cv_save_LIBS"
  20288. fi
  20289. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_ldap_LIBS" >&5
  20290. printf "%s\n" "$curl_cv_ldap_LIBS" >&6; }
  20291. ;;
  20292. esac
  20293. #
  20294. case X-"$curl_cv_ldap_LIBS" in
  20295. X-unknown)
  20296. if test -n "$ldap_askedfor"; then
  20297. as_fn_error $? "couldn't detect the LDAP libraries" "$LINENO" 5
  20298. fi
  20299. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&5
  20300. printf "%s\n" "$as_me: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&2;}
  20301. printf "%s\n" "#define CURL_DISABLE_LDAP 1" >>confdefs.h
  20302. CURL_DISABLE_LDAP=1
  20303. printf "%s\n" "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
  20304. CURL_DISABLE_LDAPS=1
  20305. ;;
  20306. esac
  20307. fi
  20308. fi
  20309. if test x$CURL_DISABLE_LDAP != x1 ; then
  20310. if test "$LBERLIBNAME" ; then
  20311. if test "$LBERLIBNAME" != "no" ; then
  20312. as_ac_Lib=`printf "%s\n" "ac_cv_lib_"$LBERLIBNAME"""_ber_free" | $as_tr_sh`
  20313. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ber_free in -l\"$LBERLIBNAME\"" >&5
  20314. printf %s "checking for ber_free in -l\"$LBERLIBNAME\"... " >&6; }
  20315. if eval test \${$as_ac_Lib+y}
  20316. then :
  20317. printf %s "(cached) " >&6
  20318. else $as_nop
  20319. ac_check_lib_save_LIBS=$LIBS
  20320. LIBS="-l"$LBERLIBNAME" $LIBS"
  20321. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20322. /* end confdefs.h. */
  20323. #ifdef __cplusplus
  20324. extern "C"
  20325. #endif
  20326. char ber_free ();
  20327. int main (void)
  20328. {
  20329. return ber_free ();
  20330. ;
  20331. return 0;
  20332. }
  20333. _ACEOF
  20334. if ac_fn_c_try_link "$LINENO"
  20335. then :
  20336. eval "$as_ac_Lib=yes"
  20337. else $as_nop
  20338. eval "$as_ac_Lib=no"
  20339. fi
  20340. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20341. conftest$ac_exeext conftest.$ac_ext
  20342. LIBS=$ac_check_lib_save_LIBS
  20343. fi
  20344. eval ac_res=\$$as_ac_Lib
  20345. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  20346. printf "%s\n" "$ac_res" >&6; }
  20347. if eval test \"x\$"$as_ac_Lib"\" = x"yes"
  20348. then :
  20349. cat >>confdefs.h <<_ACEOF
  20350. #define `printf "%s\n" "HAVE_LIB"$LBERLIBNAME"" | $as_tr_cpp` 1
  20351. _ACEOF
  20352. LIBS="-l"$LBERLIBNAME" $LIBS"
  20353. else $as_nop
  20354. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&5
  20355. printf "%s\n" "$as_me: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&2;}
  20356. printf "%s\n" "#define CURL_DISABLE_LDAP 1" >>confdefs.h
  20357. CURL_DISABLE_LDAP=1
  20358. printf "%s\n" "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
  20359. CURL_DISABLE_LDAPS=1
  20360. fi
  20361. fi
  20362. fi
  20363. fi
  20364. if test x$CURL_DISABLE_LDAP != x1 ; then
  20365. ac_fn_c_check_func "$LINENO" "ldap_url_parse" "ac_cv_func_ldap_url_parse"
  20366. if test "x$ac_cv_func_ldap_url_parse" = xyes
  20367. then :
  20368. printf "%s\n" "#define HAVE_LDAP_URL_PARSE 1" >>confdefs.h
  20369. fi
  20370. if test "$LDAPLIBNAME" = "wldap32"; then
  20371. curl_ldap_msg="enabled (winldap)"
  20372. printf "%s\n" "#define USE_WIN32_LDAP 1" >>confdefs.h
  20373. else
  20374. curl_ldap_msg="enabled (OpenLDAP)"
  20375. if test "x$ac_cv_func_ldap_init_fd" = "xyes"; then
  20376. printf "%s\n" "#define USE_OPENLDAP 1" >>confdefs.h
  20377. USE_OPENLDAP=1
  20378. fi
  20379. fi
  20380. fi
  20381. if test x$CURL_DISABLE_LDAPS != x1 ; then
  20382. curl_ldaps_msg="enabled"
  20383. fi
  20384. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable IPv6" >&5
  20385. printf %s "checking whether to enable IPv6... " >&6; }
  20386. # Check whether --enable-ipv6 was given.
  20387. if test ${enable_ipv6+y}
  20388. then :
  20389. enableval=$enable_ipv6; case "$enableval" in
  20390. no)
  20391. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20392. printf "%s\n" "no" >&6; }
  20393. ipv6=no
  20394. ;;
  20395. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20396. printf "%s\n" "yes" >&6; }
  20397. ipv6=yes
  20398. ;;
  20399. esac
  20400. else $as_nop
  20401. if test "$cross_compiling" = yes
  20402. then :
  20403. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20404. printf "%s\n" "yes" >&6; }
  20405. ipv6=yes
  20406. else $as_nop
  20407. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20408. /* end confdefs.h. */
  20409. /* are AF_INET6 and sockaddr_in6 available? */
  20410. #include <sys/types.h>
  20411. #ifdef HAVE_WINSOCK2_H
  20412. #include <winsock2.h>
  20413. #include <ws2tcpip.h>
  20414. #else
  20415. #include <sys/socket.h>
  20416. #include <netinet/in.h>
  20417. #if defined (__TANDEM)
  20418. # include <netinet/in6.h>
  20419. #endif
  20420. #endif
  20421. #include <stdlib.h> /* for exit() */
  20422. main()
  20423. {
  20424. struct sockaddr_in6 s;
  20425. (void)s;
  20426. if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
  20427. exit(1);
  20428. else
  20429. exit(0);
  20430. }
  20431. _ACEOF
  20432. if ac_fn_c_try_run "$LINENO"
  20433. then :
  20434. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20435. printf "%s\n" "yes" >&6; }
  20436. ipv6=yes
  20437. else $as_nop
  20438. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20439. printf "%s\n" "no" >&6; }
  20440. ipv6=no
  20441. fi
  20442. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  20443. conftest.$ac_objext conftest.beam conftest.$ac_ext
  20444. fi
  20445. fi
  20446. if test "$ipv6" = yes; then
  20447. curl_ipv6_msg="enabled"
  20448. printf "%s\n" "#define ENABLE_IPV6 1" >>confdefs.h
  20449. IPV6_ENABLED=1
  20450. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if struct sockaddr_in6 has sin6_scope_id member" >&5
  20451. printf %s "checking if struct sockaddr_in6 has sin6_scope_id member... " >&6; }
  20452. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20453. /* end confdefs.h. */
  20454. #include <sys/types.h>
  20455. #ifdef HAVE_WINSOCK2_H
  20456. #include <winsock2.h>
  20457. #include <ws2tcpip.h>
  20458. #else
  20459. #include <netinet/in.h>
  20460. #if defined (__TANDEM)
  20461. # include <netinet/in6.h>
  20462. #endif
  20463. #endif
  20464. int main (void)
  20465. {
  20466. struct sockaddr_in6 s;
  20467. s.sin6_scope_id = 0;
  20468. ;
  20469. return 0;
  20470. }
  20471. _ACEOF
  20472. if ac_fn_c_try_compile "$LINENO"
  20473. then :
  20474. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20475. printf "%s\n" "yes" >&6; }
  20476. printf "%s\n" "#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1" >>confdefs.h
  20477. else $as_nop
  20478. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20479. printf "%s\n" "no" >&6; }
  20480. fi
  20481. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20482. fi
  20483. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if argv can be written to" >&5
  20484. printf %s "checking if argv can be written to... " >&6; }
  20485. case $host_os in
  20486. darwin*)
  20487. if test "$cross_compiling" = yes
  20488. then :
  20489. curl_cv_writable_argv=cross
  20490. else $as_nop
  20491. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20492. /* end confdefs.h. */
  20493. int main(int argc, char **argv)
  20494. {
  20495. (void)argc;
  20496. argv[0][0] = ' ';
  20497. return (argv[0][0] == ' ')?0:1;
  20498. }
  20499. _ACEOF
  20500. if ac_fn_c_try_run "$LINENO"
  20501. then :
  20502. curl_cv_writable_argv=yes
  20503. else $as_nop
  20504. curl_cv_writable_argv=no
  20505. fi
  20506. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  20507. conftest.$ac_objext conftest.beam conftest.$ac_ext
  20508. fi
  20509. ;;
  20510. *)
  20511. old=$LD_LIBRARY_PATH
  20512. LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
  20513. export LD_LIBRARY_PATH
  20514. if test "$cross_compiling" = yes
  20515. then :
  20516. curl_cv_writable_argv=cross
  20517. else $as_nop
  20518. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20519. /* end confdefs.h. */
  20520. int main(int argc, char **argv)
  20521. {
  20522. (void)argc;
  20523. argv[0][0] = ' ';
  20524. return (argv[0][0] == ' ')?0:1;
  20525. }
  20526. _ACEOF
  20527. if ac_fn_c_try_run "$LINENO"
  20528. then :
  20529. curl_cv_writable_argv=yes
  20530. else $as_nop
  20531. curl_cv_writable_argv=no
  20532. fi
  20533. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  20534. conftest.$ac_objext conftest.beam conftest.$ac_ext
  20535. fi
  20536. LD_LIBRARY_PATH=$old # restore
  20537. ;;
  20538. esac
  20539. case $curl_cv_writable_argv in
  20540. yes)
  20541. printf "%s\n" "#define HAVE_WRITABLE_ARGV 1" >>confdefs.h
  20542. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20543. printf "%s\n" "yes" >&6; }
  20544. ;;
  20545. no)
  20546. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20547. printf "%s\n" "no" >&6; }
  20548. ;;
  20549. *)
  20550. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20551. printf "%s\n" "no" >&6; }
  20552. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: the previous check could not be made default was used" >&5
  20553. printf "%s\n" "$as_me: WARNING: the previous check could not be made default was used" >&2;}
  20554. ;;
  20555. esac
  20556. GSSAPI_ROOT="/usr"
  20557. # Check whether --with-gssapi-includes was given.
  20558. if test ${with_gssapi_includes+y}
  20559. then :
  20560. withval=$with_gssapi_includes; GSSAPI_INCS="-I$withval"
  20561. want_gss="yes"
  20562. fi
  20563. # Check whether --with-gssapi-libs was given.
  20564. if test ${with_gssapi_libs+y}
  20565. then :
  20566. withval=$with_gssapi_libs; GSSAPI_LIB_DIR="-L$withval"
  20567. want_gss="yes"
  20568. fi
  20569. # Check whether --with-gssapi was given.
  20570. if test ${with_gssapi+y}
  20571. then :
  20572. withval=$with_gssapi;
  20573. GSSAPI_ROOT="$withval"
  20574. if test x"$GSSAPI_ROOT" != xno; then
  20575. want_gss="yes"
  20576. if test x"$GSSAPI_ROOT" = xyes; then
  20577. GSSAPI_ROOT="/usr"
  20578. fi
  20579. fi
  20580. fi
  20581. : ${KRB5CONFIG:="$GSSAPI_ROOT/bin/krb5-config"}
  20582. save_CPPFLAGS="$CPPFLAGS"
  20583. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if GSS-API support is requested" >&5
  20584. printf %s "checking if GSS-API support is requested... " >&6; }
  20585. if test x"$want_gss" = xyes; then
  20586. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20587. printf "%s\n" "yes" >&6; }
  20588. if test $GSSAPI_ROOT != "/usr"; then
  20589. if test -n "$PKG_CONFIG"; then
  20590. PKGCONFIG="$PKG_CONFIG"
  20591. else
  20592. if test -n "$ac_tool_prefix"; then
  20593. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  20594. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  20595. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20596. printf %s "checking for $ac_word... " >&6; }
  20597. if test ${ac_cv_path_PKGCONFIG+y}
  20598. then :
  20599. printf %s "(cached) " >&6
  20600. else $as_nop
  20601. case $PKGCONFIG in
  20602. [\\/]* | ?:[\\/]*)
  20603. ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
  20604. ;;
  20605. *)
  20606. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20607. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  20608. for as_dir in $as_dummy
  20609. do
  20610. IFS=$as_save_IFS
  20611. case $as_dir in #(((
  20612. '') as_dir=./ ;;
  20613. */) ;;
  20614. *) as_dir=$as_dir/ ;;
  20615. esac
  20616. for ac_exec_ext in '' $ac_executable_extensions; do
  20617. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  20618. ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  20619. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  20620. break 2
  20621. fi
  20622. done
  20623. done
  20624. IFS=$as_save_IFS
  20625. ;;
  20626. esac
  20627. fi
  20628. PKGCONFIG=$ac_cv_path_PKGCONFIG
  20629. if test -n "$PKGCONFIG"; then
  20630. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
  20631. printf "%s\n" "$PKGCONFIG" >&6; }
  20632. else
  20633. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20634. printf "%s\n" "no" >&6; }
  20635. fi
  20636. fi
  20637. if test -z "$ac_cv_path_PKGCONFIG"; then
  20638. ac_pt_PKGCONFIG=$PKGCONFIG
  20639. # Extract the first word of "pkg-config", so it can be a program name with args.
  20640. set dummy pkg-config; ac_word=$2
  20641. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20642. printf %s "checking for $ac_word... " >&6; }
  20643. if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
  20644. then :
  20645. printf %s "(cached) " >&6
  20646. else $as_nop
  20647. case $ac_pt_PKGCONFIG in
  20648. [\\/]* | ?:[\\/]*)
  20649. ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
  20650. ;;
  20651. *)
  20652. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20653. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  20654. for as_dir in $as_dummy
  20655. do
  20656. IFS=$as_save_IFS
  20657. case $as_dir in #(((
  20658. '') as_dir=./ ;;
  20659. */) ;;
  20660. *) as_dir=$as_dir/ ;;
  20661. esac
  20662. for ac_exec_ext in '' $ac_executable_extensions; do
  20663. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  20664. ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  20665. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  20666. break 2
  20667. fi
  20668. done
  20669. done
  20670. IFS=$as_save_IFS
  20671. ;;
  20672. esac
  20673. fi
  20674. ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
  20675. if test -n "$ac_pt_PKGCONFIG"; then
  20676. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
  20677. printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
  20678. else
  20679. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20680. printf "%s\n" "no" >&6; }
  20681. fi
  20682. if test "x$ac_pt_PKGCONFIG" = x; then
  20683. PKGCONFIG="no"
  20684. else
  20685. case $cross_compiling:$ac_tool_warned in
  20686. yes:)
  20687. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  20688. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  20689. ac_tool_warned=yes ;;
  20690. esac
  20691. PKGCONFIG=$ac_pt_PKGCONFIG
  20692. fi
  20693. else
  20694. PKGCONFIG="$ac_cv_path_PKGCONFIG"
  20695. fi
  20696. fi
  20697. if test "x$PKGCONFIG" != "xno"; then
  20698. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mit-krb5-gssapi options with pkg-config" >&5
  20699. printf %s "checking for mit-krb5-gssapi options with pkg-config... " >&6; }
  20700. itexists=`
  20701. if test -n "$GSSAPI_ROOT/lib/pkgconfig"; then
  20702. PKG_CONFIG_LIBDIR="$GSSAPI_ROOT/lib/pkgconfig"
  20703. export PKG_CONFIG_LIBDIR
  20704. fi
  20705. $PKGCONFIG --exists mit-krb5-gssapi >/dev/null 2>&1 && echo 1`
  20706. if test -z "$itexists"; then
  20707. PKGCONFIG="no"
  20708. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20709. printf "%s\n" "no" >&6; }
  20710. else
  20711. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
  20712. printf "%s\n" "found" >&6; }
  20713. fi
  20714. fi
  20715. else
  20716. if test -n "$PKG_CONFIG"; then
  20717. PKGCONFIG="$PKG_CONFIG"
  20718. else
  20719. if test -n "$ac_tool_prefix"; then
  20720. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  20721. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  20722. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20723. printf %s "checking for $ac_word... " >&6; }
  20724. if test ${ac_cv_path_PKGCONFIG+y}
  20725. then :
  20726. printf %s "(cached) " >&6
  20727. else $as_nop
  20728. case $PKGCONFIG in
  20729. [\\/]* | ?:[\\/]*)
  20730. ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
  20731. ;;
  20732. *)
  20733. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20734. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  20735. for as_dir in $as_dummy
  20736. do
  20737. IFS=$as_save_IFS
  20738. case $as_dir in #(((
  20739. '') as_dir=./ ;;
  20740. */) ;;
  20741. *) as_dir=$as_dir/ ;;
  20742. esac
  20743. for ac_exec_ext in '' $ac_executable_extensions; do
  20744. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  20745. ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  20746. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  20747. break 2
  20748. fi
  20749. done
  20750. done
  20751. IFS=$as_save_IFS
  20752. ;;
  20753. esac
  20754. fi
  20755. PKGCONFIG=$ac_cv_path_PKGCONFIG
  20756. if test -n "$PKGCONFIG"; then
  20757. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
  20758. printf "%s\n" "$PKGCONFIG" >&6; }
  20759. else
  20760. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20761. printf "%s\n" "no" >&6; }
  20762. fi
  20763. fi
  20764. if test -z "$ac_cv_path_PKGCONFIG"; then
  20765. ac_pt_PKGCONFIG=$PKGCONFIG
  20766. # Extract the first word of "pkg-config", so it can be a program name with args.
  20767. set dummy pkg-config; ac_word=$2
  20768. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20769. printf %s "checking for $ac_word... " >&6; }
  20770. if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
  20771. then :
  20772. printf %s "(cached) " >&6
  20773. else $as_nop
  20774. case $ac_pt_PKGCONFIG in
  20775. [\\/]* | ?:[\\/]*)
  20776. ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
  20777. ;;
  20778. *)
  20779. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20780. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  20781. for as_dir in $as_dummy
  20782. do
  20783. IFS=$as_save_IFS
  20784. case $as_dir in #(((
  20785. '') as_dir=./ ;;
  20786. */) ;;
  20787. *) as_dir=$as_dir/ ;;
  20788. esac
  20789. for ac_exec_ext in '' $ac_executable_extensions; do
  20790. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  20791. ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  20792. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  20793. break 2
  20794. fi
  20795. done
  20796. done
  20797. IFS=$as_save_IFS
  20798. ;;
  20799. esac
  20800. fi
  20801. ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
  20802. if test -n "$ac_pt_PKGCONFIG"; then
  20803. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
  20804. printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
  20805. else
  20806. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20807. printf "%s\n" "no" >&6; }
  20808. fi
  20809. if test "x$ac_pt_PKGCONFIG" = x; then
  20810. PKGCONFIG="no"
  20811. else
  20812. case $cross_compiling:$ac_tool_warned in
  20813. yes:)
  20814. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  20815. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  20816. ac_tool_warned=yes ;;
  20817. esac
  20818. PKGCONFIG=$ac_pt_PKGCONFIG
  20819. fi
  20820. else
  20821. PKGCONFIG="$ac_cv_path_PKGCONFIG"
  20822. fi
  20823. fi
  20824. if test "x$PKGCONFIG" != "xno"; then
  20825. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mit-krb5-gssapi options with pkg-config" >&5
  20826. printf %s "checking for mit-krb5-gssapi options with pkg-config... " >&6; }
  20827. itexists=`
  20828. if test -n ""; then
  20829. PKG_CONFIG_LIBDIR=""
  20830. export PKG_CONFIG_LIBDIR
  20831. fi
  20832. $PKGCONFIG --exists mit-krb5-gssapi >/dev/null 2>&1 && echo 1`
  20833. if test -z "$itexists"; then
  20834. PKGCONFIG="no"
  20835. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20836. printf "%s\n" "no" >&6; }
  20837. else
  20838. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
  20839. printf "%s\n" "found" >&6; }
  20840. fi
  20841. fi
  20842. fi
  20843. if test -z "$GSSAPI_INCS"; then
  20844. if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
  20845. GSSAPI_INCS=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --cflags gssapi`
  20846. elif test "$PKGCONFIG" != "no" ; then
  20847. GSSAPI_INCS=`$PKGCONFIG --cflags mit-krb5-gssapi`
  20848. elif test -f "$KRB5CONFIG"; then
  20849. GSSAPI_INCS=`$KRB5CONFIG --cflags gssapi`
  20850. elif test "$GSSAPI_ROOT" != "yes"; then
  20851. GSSAPI_INCS="-I$GSSAPI_ROOT/include"
  20852. fi
  20853. fi
  20854. CPPFLAGS="$CPPFLAGS $GSSAPI_INCS"
  20855. ac_fn_c_check_header_compile "$LINENO" "gss.h" "ac_cv_header_gss_h" "$ac_includes_default"
  20856. if test "x$ac_cv_header_gss_h" = xyes
  20857. then :
  20858. printf "%s\n" "#define HAVE_GSSGNU 1" >>confdefs.h
  20859. gnu_gss=yes
  20860. else $as_nop
  20861. for ac_header in gssapi/gssapi.h
  20862. do :
  20863. ac_fn_c_check_header_compile "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
  20864. if test "x$ac_cv_header_gssapi_gssapi_h" = xyes
  20865. then :
  20866. printf "%s\n" "#define HAVE_GSSAPI_GSSAPI_H 1" >>confdefs.h
  20867. else $as_nop
  20868. not_mit=1
  20869. fi
  20870. done
  20871. for ac_header in gssapi/gssapi_generic.h gssapi/gssapi_krb5.h
  20872. do :
  20873. as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
  20874. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
  20875. $ac_includes_default
  20876. #ifdef HAVE_GSSAPI_GSSAPI_H
  20877. #include <gssapi/gssapi.h>
  20878. #endif
  20879. "
  20880. if eval test \"x\$"$as_ac_Header"\" = x"yes"
  20881. then :
  20882. cat >>confdefs.h <<_ACEOF
  20883. #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
  20884. _ACEOF
  20885. else $as_nop
  20886. not_mit=1
  20887. fi
  20888. done
  20889. if test "x$not_mit" = "x1"; then
  20890. ac_fn_c_check_header_compile "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
  20891. if test "x$ac_cv_header_gssapi_h" = xyes
  20892. then :
  20893. printf "%s\n" "#define HAVE_GSSHEIMDAL 1" >>confdefs.h
  20894. else $as_nop
  20895. want_gss=no
  20896. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: disabling GSS-API support since no header files were found" >&5
  20897. printf "%s\n" "$as_me: WARNING: disabling GSS-API support since no header files were found" >&2;}
  20898. fi
  20899. else
  20900. printf "%s\n" "#define HAVE_GSSMIT 1" >>confdefs.h
  20901. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE" >&5
  20902. printf %s "checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE... " >&6; }
  20903. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20904. /* end confdefs.h. */
  20905. #include <gssapi/gssapi.h>
  20906. #include <gssapi/gssapi_generic.h>
  20907. #include <gssapi/gssapi_krb5.h>
  20908. int main (void)
  20909. {
  20910. gss_import_name(
  20911. (OM_uint32 *)0,
  20912. (gss_buffer_t)0,
  20913. GSS_C_NT_HOSTBASED_SERVICE,
  20914. (gss_name_t *)0);
  20915. ;
  20916. return 0;
  20917. }
  20918. _ACEOF
  20919. if ac_fn_c_try_compile "$LINENO"
  20920. then :
  20921. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20922. printf "%s\n" "yes" >&6; }
  20923. else $as_nop
  20924. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20925. printf "%s\n" "no" >&6; }
  20926. printf "%s\n" "#define HAVE_OLD_GSSMIT 1" >>confdefs.h
  20927. fi
  20928. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20929. fi
  20930. fi
  20931. else
  20932. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20933. printf "%s\n" "no" >&6; }
  20934. fi
  20935. if test x"$want_gss" = xyes; then
  20936. printf "%s\n" "#define HAVE_GSSAPI 1" >>confdefs.h
  20937. HAVE_GSSAPI=1
  20938. curl_gss_msg="enabled (MIT Kerberos/Heimdal)"
  20939. if test -n "$gnu_gss"; then
  20940. curl_gss_msg="enabled (GNU GSS)"
  20941. LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
  20942. LIBS="-lgss $LIBS"
  20943. elif test -z "$GSSAPI_LIB_DIR"; then
  20944. case $host in
  20945. *-*-darwin*)
  20946. LIBS="-lgssapi_krb5 -lresolv $LIBS"
  20947. ;;
  20948. *)
  20949. if test $GSSAPI_ROOT != "/usr"; then
  20950. if test -n "$PKG_CONFIG"; then
  20951. PKGCONFIG="$PKG_CONFIG"
  20952. else
  20953. if test -n "$ac_tool_prefix"; then
  20954. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  20955. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  20956. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20957. printf %s "checking for $ac_word... " >&6; }
  20958. if test ${ac_cv_path_PKGCONFIG+y}
  20959. then :
  20960. printf %s "(cached) " >&6
  20961. else $as_nop
  20962. case $PKGCONFIG in
  20963. [\\/]* | ?:[\\/]*)
  20964. ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
  20965. ;;
  20966. *)
  20967. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20968. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  20969. for as_dir in $as_dummy
  20970. do
  20971. IFS=$as_save_IFS
  20972. case $as_dir in #(((
  20973. '') as_dir=./ ;;
  20974. */) ;;
  20975. *) as_dir=$as_dir/ ;;
  20976. esac
  20977. for ac_exec_ext in '' $ac_executable_extensions; do
  20978. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  20979. ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  20980. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  20981. break 2
  20982. fi
  20983. done
  20984. done
  20985. IFS=$as_save_IFS
  20986. ;;
  20987. esac
  20988. fi
  20989. PKGCONFIG=$ac_cv_path_PKGCONFIG
  20990. if test -n "$PKGCONFIG"; then
  20991. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
  20992. printf "%s\n" "$PKGCONFIG" >&6; }
  20993. else
  20994. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20995. printf "%s\n" "no" >&6; }
  20996. fi
  20997. fi
  20998. if test -z "$ac_cv_path_PKGCONFIG"; then
  20999. ac_pt_PKGCONFIG=$PKGCONFIG
  21000. # Extract the first word of "pkg-config", so it can be a program name with args.
  21001. set dummy pkg-config; ac_word=$2
  21002. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  21003. printf %s "checking for $ac_word... " >&6; }
  21004. if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
  21005. then :
  21006. printf %s "(cached) " >&6
  21007. else $as_nop
  21008. case $ac_pt_PKGCONFIG in
  21009. [\\/]* | ?:[\\/]*)
  21010. ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
  21011. ;;
  21012. *)
  21013. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21014. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  21015. for as_dir in $as_dummy
  21016. do
  21017. IFS=$as_save_IFS
  21018. case $as_dir in #(((
  21019. '') as_dir=./ ;;
  21020. */) ;;
  21021. *) as_dir=$as_dir/ ;;
  21022. esac
  21023. for ac_exec_ext in '' $ac_executable_extensions; do
  21024. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  21025. ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  21026. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  21027. break 2
  21028. fi
  21029. done
  21030. done
  21031. IFS=$as_save_IFS
  21032. ;;
  21033. esac
  21034. fi
  21035. ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
  21036. if test -n "$ac_pt_PKGCONFIG"; then
  21037. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
  21038. printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
  21039. else
  21040. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21041. printf "%s\n" "no" >&6; }
  21042. fi
  21043. if test "x$ac_pt_PKGCONFIG" = x; then
  21044. PKGCONFIG="no"
  21045. else
  21046. case $cross_compiling:$ac_tool_warned in
  21047. yes:)
  21048. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  21049. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  21050. ac_tool_warned=yes ;;
  21051. esac
  21052. PKGCONFIG=$ac_pt_PKGCONFIG
  21053. fi
  21054. else
  21055. PKGCONFIG="$ac_cv_path_PKGCONFIG"
  21056. fi
  21057. fi
  21058. if test "x$PKGCONFIG" != "xno"; then
  21059. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mit-krb5-gssapi options with pkg-config" >&5
  21060. printf %s "checking for mit-krb5-gssapi options with pkg-config... " >&6; }
  21061. itexists=`
  21062. if test -n "$GSSAPI_ROOT/lib/pkgconfig"; then
  21063. PKG_CONFIG_LIBDIR="$GSSAPI_ROOT/lib/pkgconfig"
  21064. export PKG_CONFIG_LIBDIR
  21065. fi
  21066. $PKGCONFIG --exists mit-krb5-gssapi >/dev/null 2>&1 && echo 1`
  21067. if test -z "$itexists"; then
  21068. PKGCONFIG="no"
  21069. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21070. printf "%s\n" "no" >&6; }
  21071. else
  21072. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
  21073. printf "%s\n" "found" >&6; }
  21074. fi
  21075. fi
  21076. else
  21077. if test -n "$PKG_CONFIG"; then
  21078. PKGCONFIG="$PKG_CONFIG"
  21079. else
  21080. if test -n "$ac_tool_prefix"; then
  21081. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  21082. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  21083. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  21084. printf %s "checking for $ac_word... " >&6; }
  21085. if test ${ac_cv_path_PKGCONFIG+y}
  21086. then :
  21087. printf %s "(cached) " >&6
  21088. else $as_nop
  21089. case $PKGCONFIG in
  21090. [\\/]* | ?:[\\/]*)
  21091. ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
  21092. ;;
  21093. *)
  21094. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21095. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  21096. for as_dir in $as_dummy
  21097. do
  21098. IFS=$as_save_IFS
  21099. case $as_dir in #(((
  21100. '') as_dir=./ ;;
  21101. */) ;;
  21102. *) as_dir=$as_dir/ ;;
  21103. esac
  21104. for ac_exec_ext in '' $ac_executable_extensions; do
  21105. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  21106. ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  21107. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  21108. break 2
  21109. fi
  21110. done
  21111. done
  21112. IFS=$as_save_IFS
  21113. ;;
  21114. esac
  21115. fi
  21116. PKGCONFIG=$ac_cv_path_PKGCONFIG
  21117. if test -n "$PKGCONFIG"; then
  21118. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
  21119. printf "%s\n" "$PKGCONFIG" >&6; }
  21120. else
  21121. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21122. printf "%s\n" "no" >&6; }
  21123. fi
  21124. fi
  21125. if test -z "$ac_cv_path_PKGCONFIG"; then
  21126. ac_pt_PKGCONFIG=$PKGCONFIG
  21127. # Extract the first word of "pkg-config", so it can be a program name with args.
  21128. set dummy pkg-config; ac_word=$2
  21129. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  21130. printf %s "checking for $ac_word... " >&6; }
  21131. if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
  21132. then :
  21133. printf %s "(cached) " >&6
  21134. else $as_nop
  21135. case $ac_pt_PKGCONFIG in
  21136. [\\/]* | ?:[\\/]*)
  21137. ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
  21138. ;;
  21139. *)
  21140. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21141. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  21142. for as_dir in $as_dummy
  21143. do
  21144. IFS=$as_save_IFS
  21145. case $as_dir in #(((
  21146. '') as_dir=./ ;;
  21147. */) ;;
  21148. *) as_dir=$as_dir/ ;;
  21149. esac
  21150. for ac_exec_ext in '' $ac_executable_extensions; do
  21151. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  21152. ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  21153. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  21154. break 2
  21155. fi
  21156. done
  21157. done
  21158. IFS=$as_save_IFS
  21159. ;;
  21160. esac
  21161. fi
  21162. ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
  21163. if test -n "$ac_pt_PKGCONFIG"; then
  21164. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
  21165. printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
  21166. else
  21167. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21168. printf "%s\n" "no" >&6; }
  21169. fi
  21170. if test "x$ac_pt_PKGCONFIG" = x; then
  21171. PKGCONFIG="no"
  21172. else
  21173. case $cross_compiling:$ac_tool_warned in
  21174. yes:)
  21175. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  21176. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  21177. ac_tool_warned=yes ;;
  21178. esac
  21179. PKGCONFIG=$ac_pt_PKGCONFIG
  21180. fi
  21181. else
  21182. PKGCONFIG="$ac_cv_path_PKGCONFIG"
  21183. fi
  21184. fi
  21185. if test "x$PKGCONFIG" != "xno"; then
  21186. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mit-krb5-gssapi options with pkg-config" >&5
  21187. printf %s "checking for mit-krb5-gssapi options with pkg-config... " >&6; }
  21188. itexists=`
  21189. if test -n ""; then
  21190. PKG_CONFIG_LIBDIR=""
  21191. export PKG_CONFIG_LIBDIR
  21192. fi
  21193. $PKGCONFIG --exists mit-krb5-gssapi >/dev/null 2>&1 && echo 1`
  21194. if test -z "$itexists"; then
  21195. PKGCONFIG="no"
  21196. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21197. printf "%s\n" "no" >&6; }
  21198. else
  21199. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
  21200. printf "%s\n" "found" >&6; }
  21201. fi
  21202. fi
  21203. fi
  21204. if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
  21205. gss_libs=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --libs gssapi`
  21206. LIBS="$gss_libs $LIBS"
  21207. elif test "$PKGCONFIG" != "no" ; then
  21208. gss_libs=`$PKGCONFIG --libs mit-krb5-gssapi`
  21209. LIBS="$gss_libs $LIBS"
  21210. elif test -f "$KRB5CONFIG"; then
  21211. gss_libs=`$KRB5CONFIG --libs gssapi`
  21212. LIBS="$gss_libs $LIBS"
  21213. else
  21214. case $host in
  21215. *-hp-hpux*)
  21216. gss_libname="gss"
  21217. ;;
  21218. *)
  21219. gss_libname="gssapi"
  21220. ;;
  21221. esac
  21222. if test "$GSSAPI_ROOT" != "yes"; then
  21223. LDFLAGS="$LDFLAGS -L$GSSAPI_ROOT/lib$libsuff"
  21224. LIBS="-l$gss_libname $LIBS"
  21225. else
  21226. LIBS="-l$gss_libname $LIBS"
  21227. fi
  21228. fi
  21229. ;;
  21230. esac
  21231. else
  21232. LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
  21233. case $host in
  21234. *-hp-hpux*)
  21235. LIBS="-lgss $LIBS"
  21236. ;;
  21237. *)
  21238. LIBS="-lgssapi $LIBS"
  21239. ;;
  21240. esac
  21241. fi
  21242. else
  21243. CPPFLAGS="$save_CPPFLAGS"
  21244. fi
  21245. if test x"$want_gss" = xyes; then
  21246. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can link against GSS-API library" >&5
  21247. printf %s "checking if we can link against GSS-API library... " >&6; }
  21248. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21249. /* end confdefs.h. */
  21250. #define gss_init_sec_context innocuous_gss_init_sec_context
  21251. #ifdef __STDC__
  21252. # include <limits.h>
  21253. #else
  21254. # include <assert.h>
  21255. #endif
  21256. #undef gss_init_sec_context
  21257. #ifdef __cplusplus
  21258. extern "C"
  21259. #endif
  21260. char gss_init_sec_context ();
  21261. #if defined __stub_gss_init_sec_context || defined __stub___gss_init_sec_context
  21262. choke me
  21263. #endif
  21264. int main (void)
  21265. {
  21266. return gss_init_sec_context ();
  21267. ;
  21268. return 0;
  21269. }
  21270. _ACEOF
  21271. if ac_fn_c_try_link "$LINENO"
  21272. then :
  21273. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21274. printf "%s\n" "yes" >&6; }
  21275. else $as_nop
  21276. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21277. printf "%s\n" "no" >&6; }
  21278. as_fn_error $? "--with-gssapi was specified, but a GSS-API library was not found." "$LINENO" 5
  21279. fi
  21280. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21281. conftest$ac_exeext conftest.$ac_ext
  21282. fi
  21283. build_libstubgss=no
  21284. if test x"$want_gss" = "xyes"; then
  21285. build_libstubgss=yes
  21286. fi
  21287. if test "x$build_libstubgss" = "xyes"; then
  21288. BUILD_STUB_GSS_TRUE=
  21289. BUILD_STUB_GSS_FALSE='#'
  21290. else
  21291. BUILD_STUB_GSS_TRUE='#'
  21292. BUILD_STUB_GSS_FALSE=
  21293. fi
  21294. DEFAULT_SSL_BACKEND=no
  21295. VALID_DEFAULT_SSL_BACKEND=
  21296. # Check whether --with-default-ssl-backend was given.
  21297. if test ${with_default_ssl_backend+y}
  21298. then :
  21299. withval=$with_default_ssl_backend; DEFAULT_SSL_BACKEND=$withval
  21300. fi
  21301. case "$DEFAULT_SSL_BACKEND" in
  21302. no)
  21303. ;;
  21304. default|yes)
  21305. as_fn_error $? "The name of the default SSL backend is required." "$LINENO" 5
  21306. ;;
  21307. *)
  21308. VALID_DEFAULT_SSL_BACKEND=no
  21309. ;;
  21310. esac
  21311. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native SSL/TLS" >&5
  21312. printf %s "checking whether to enable Windows native SSL/TLS... " >&6; }
  21313. if test "x$OPT_SCHANNEL" != xno; then
  21314. ssl_msg=
  21315. if test "x$OPT_SCHANNEL" != "xno" &&
  21316. test "x$curl_cv_native_windows" = "xyes"; then
  21317. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21318. printf "%s\n" "yes" >&6; }
  21319. printf "%s\n" "#define USE_SCHANNEL 1" >>confdefs.h
  21320. USE_SCHANNEL=1
  21321. ssl_msg="Schannel"
  21322. test schannel != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
  21323. SCHANNEL_ENABLED=1
  21324. # --with-schannel implies --enable-sspi
  21325. printf "%s\n" "#define USE_WINDOWS_SSPI 1" >>confdefs.h
  21326. USE_WINDOWS_SSPI=1
  21327. curl_sspi_msg="enabled"
  21328. else
  21329. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21330. printf "%s\n" "no" >&6; }
  21331. fi
  21332. test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
  21333. else
  21334. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21335. printf "%s\n" "no" >&6; }
  21336. fi
  21337. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable Secure Transport" >&5
  21338. printf %s "checking whether to enable Secure Transport... " >&6; }
  21339. if test "x$OPT_SECURETRANSPORT" != xno; then
  21340. if test "x$OPT_SECURETRANSPORT" != "xno" &&
  21341. (test "x$cross_compiling" != "xno" || test -d "/System/Library/Frameworks/Security.framework"); then
  21342. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21343. printf "%s\n" "yes" >&6; }
  21344. printf "%s\n" "#define USE_SECTRANSP 1" >>confdefs.h
  21345. USE_SECTRANSP=1
  21346. ssl_msg="Secure Transport"
  21347. test secure-transport != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
  21348. SECURETRANSPORT_ENABLED=1
  21349. LDFLAGS="$LDFLAGS -framework CoreFoundation -framework Security"
  21350. else
  21351. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21352. printf "%s\n" "no" >&6; }
  21353. fi
  21354. test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
  21355. else
  21356. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21357. printf "%s\n" "no" >&6; }
  21358. fi
  21359. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable Amiga native SSL/TLS (AmiSSL v5)" >&5
  21360. printf %s "checking whether to enable Amiga native SSL/TLS (AmiSSL v5)... " >&6; }
  21361. if test "$HAVE_PROTO_BSDSOCKET_H" = "1"; then
  21362. if test "x$OPT_AMISSL" != xno; then
  21363. ssl_msg=
  21364. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21365. /* end confdefs.h. */
  21366. #include <libraries/amisslmaster.h>
  21367. #include <openssl/opensslv.h>
  21368. int main (void)
  21369. {
  21370. #if defined(AMISSL_CURRENT_VERSION) && (AMISSL_CURRENT_VERSION >= AMISSL_V303) && \
  21371. defined(OPENSSL_VERSION_MAJOR) && (OPENSSL_VERSION_MAJOR >= 3) && \
  21372. defined(PROTO_AMISSL_H)
  21373. return 0;
  21374. #else
  21375. #error not AmiSSL v5 / OpenSSL 3
  21376. #endif
  21377. ;
  21378. return 0;
  21379. }
  21380. _ACEOF
  21381. if ac_fn_c_try_compile "$LINENO"
  21382. then :
  21383. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21384. printf "%s\n" "yes" >&6; }
  21385. ssl_msg="AmiSSL"
  21386. test amissl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
  21387. AMISSL_ENABLED=1
  21388. OPENSSL_ENABLED=1
  21389. # Use AmiSSL's built-in ca bundle
  21390. check_for_ca_bundle=1
  21391. with_ca_fallback=yes
  21392. LIBS="-lamisslstubs -lamisslauto $LIBS"
  21393. printf "%s\n" "#define USE_AMISSL 1" >>confdefs.h
  21394. printf "%s\n" "#define USE_OPENSSL 1" >>confdefs.h
  21395. printf "%s\n" "#define HAVE_OPENSSL3 1" >>confdefs.h
  21396. ac_fn_c_check_header_compile "$LINENO" "openssl/x509.h" "ac_cv_header_openssl_x509_h" "$ac_includes_default"
  21397. if test "x$ac_cv_header_openssl_x509_h" = xyes
  21398. then :
  21399. printf "%s\n" "#define HAVE_OPENSSL_X509_H 1" >>confdefs.h
  21400. fi
  21401. ac_fn_c_check_header_compile "$LINENO" "openssl/rsa.h" "ac_cv_header_openssl_rsa_h" "$ac_includes_default"
  21402. if test "x$ac_cv_header_openssl_rsa_h" = xyes
  21403. then :
  21404. printf "%s\n" "#define HAVE_OPENSSL_RSA_H 1" >>confdefs.h
  21405. fi
  21406. ac_fn_c_check_header_compile "$LINENO" "openssl/crypto.h" "ac_cv_header_openssl_crypto_h" "$ac_includes_default"
  21407. if test "x$ac_cv_header_openssl_crypto_h" = xyes
  21408. then :
  21409. printf "%s\n" "#define HAVE_OPENSSL_CRYPTO_H 1" >>confdefs.h
  21410. fi
  21411. ac_fn_c_check_header_compile "$LINENO" "openssl/pem.h" "ac_cv_header_openssl_pem_h" "$ac_includes_default"
  21412. if test "x$ac_cv_header_openssl_pem_h" = xyes
  21413. then :
  21414. printf "%s\n" "#define HAVE_OPENSSL_PEM_H 1" >>confdefs.h
  21415. fi
  21416. ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
  21417. if test "x$ac_cv_header_openssl_ssl_h" = xyes
  21418. then :
  21419. printf "%s\n" "#define HAVE_OPENSSL_SSL_H 1" >>confdefs.h
  21420. fi
  21421. ac_fn_c_check_header_compile "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default"
  21422. if test "x$ac_cv_header_openssl_err_h" = xyes
  21423. then :
  21424. printf "%s\n" "#define HAVE_OPENSSL_ERR_H 1" >>confdefs.h
  21425. fi
  21426. CPPFLAGS="$CPPFLAGS -DOPENSSL_SUPPRESS_DEPRECATED"
  21427. else $as_nop
  21428. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21429. printf "%s\n" "no" >&6; }
  21430. fi
  21431. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21432. test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
  21433. else
  21434. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21435. printf "%s\n" "no" >&6; }
  21436. fi
  21437. else
  21438. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21439. printf "%s\n" "no" >&6; }
  21440. fi
  21441. if test "x$OPT_OPENSSL" != xno; then
  21442. ssl_msg=
  21443. CLEANLDFLAGS="$LDFLAGS"
  21444. CLEANCPPFLAGS="$CPPFLAGS"
  21445. CLEANLIBS="$LIBS"
  21446. case $host in
  21447. *-*-msys* | *-*-mingw*)
  21448. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gdi32" >&5
  21449. printf %s "checking for gdi32... " >&6; }
  21450. my_ac_save_LIBS=$LIBS
  21451. LIBS="-lgdi32 $LIBS"
  21452. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21453. /* end confdefs.h. */
  21454. #include <windef.h>
  21455. #include <wingdi.h>
  21456. int main (void)
  21457. {
  21458. GdiFlush();
  21459. ;
  21460. return 0;
  21461. }
  21462. _ACEOF
  21463. if ac_fn_c_try_link "$LINENO"
  21464. then :
  21465. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21466. printf "%s\n" "yes" >&6; }
  21467. else $as_nop
  21468. LIBS=$my_ac_save_LIBS
  21469. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21470. printf "%s\n" "no" >&6; }
  21471. fi
  21472. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21473. conftest$ac_exeext conftest.$ac_ext
  21474. ;;
  21475. esac
  21476. case "$OPT_OPENSSL" in
  21477. yes)
  21478. PKGTEST="yes"
  21479. PREFIX_OPENSSL=
  21480. ;;
  21481. *)
  21482. PKGTEST="no"
  21483. PREFIX_OPENSSL=$OPT_OPENSSL
  21484. OPENSSL_PCDIR="$OPT_OPENSSL/lib/pkgconfig"
  21485. if test -f "$OPENSSL_PCDIR/openssl.pc"; then
  21486. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&5
  21487. printf "%s\n" "$as_me: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&6;}
  21488. PKGTEST="yes"
  21489. fi
  21490. if test "$PKGTEST" != "yes"; then
  21491. # try lib64 instead
  21492. OPENSSL_PCDIR="$OPT_OPENSSL/lib64/pkgconfig"
  21493. if test -f "$OPENSSL_PCDIR/openssl.pc"; then
  21494. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&5
  21495. printf "%s\n" "$as_me: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&6;}
  21496. PKGTEST="yes"
  21497. fi
  21498. fi
  21499. if test "$PKGTEST" != "yes"; then
  21500. if test ! -f "$PREFIX_OPENSSL/include/openssl/ssl.h"; then
  21501. as_fn_error $? "$PREFIX_OPENSSL is a bad --with-openssl prefix!" "$LINENO" 5
  21502. fi
  21503. fi
  21504. LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
  21505. if test "$PREFIX_OPENSSL" != "/usr" ; then
  21506. SSL_LDFLAGS="-L$LIB_OPENSSL"
  21507. SSL_CPPFLAGS="-I$PREFIX_OPENSSL/include"
  21508. fi
  21509. SSL_CPPFLAGS="$SSL_CPPFLAGS -I$PREFIX_OPENSSL/include/openssl"
  21510. ;;
  21511. esac
  21512. if test "$PKGTEST" = "yes"; then
  21513. if test -n "$PKG_CONFIG"; then
  21514. PKGCONFIG="$PKG_CONFIG"
  21515. else
  21516. if test -n "$ac_tool_prefix"; then
  21517. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  21518. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  21519. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  21520. printf %s "checking for $ac_word... " >&6; }
  21521. if test ${ac_cv_path_PKGCONFIG+y}
  21522. then :
  21523. printf %s "(cached) " >&6
  21524. else $as_nop
  21525. case $PKGCONFIG in
  21526. [\\/]* | ?:[\\/]*)
  21527. ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
  21528. ;;
  21529. *)
  21530. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21531. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  21532. for as_dir in $as_dummy
  21533. do
  21534. IFS=$as_save_IFS
  21535. case $as_dir in #(((
  21536. '') as_dir=./ ;;
  21537. */) ;;
  21538. *) as_dir=$as_dir/ ;;
  21539. esac
  21540. for ac_exec_ext in '' $ac_executable_extensions; do
  21541. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  21542. ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  21543. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  21544. break 2
  21545. fi
  21546. done
  21547. done
  21548. IFS=$as_save_IFS
  21549. ;;
  21550. esac
  21551. fi
  21552. PKGCONFIG=$ac_cv_path_PKGCONFIG
  21553. if test -n "$PKGCONFIG"; then
  21554. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
  21555. printf "%s\n" "$PKGCONFIG" >&6; }
  21556. else
  21557. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21558. printf "%s\n" "no" >&6; }
  21559. fi
  21560. fi
  21561. if test -z "$ac_cv_path_PKGCONFIG"; then
  21562. ac_pt_PKGCONFIG=$PKGCONFIG
  21563. # Extract the first word of "pkg-config", so it can be a program name with args.
  21564. set dummy pkg-config; ac_word=$2
  21565. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  21566. printf %s "checking for $ac_word... " >&6; }
  21567. if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
  21568. then :
  21569. printf %s "(cached) " >&6
  21570. else $as_nop
  21571. case $ac_pt_PKGCONFIG in
  21572. [\\/]* | ?:[\\/]*)
  21573. ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
  21574. ;;
  21575. *)
  21576. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21577. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  21578. for as_dir in $as_dummy
  21579. do
  21580. IFS=$as_save_IFS
  21581. case $as_dir in #(((
  21582. '') as_dir=./ ;;
  21583. */) ;;
  21584. *) as_dir=$as_dir/ ;;
  21585. esac
  21586. for ac_exec_ext in '' $ac_executable_extensions; do
  21587. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  21588. ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  21589. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  21590. break 2
  21591. fi
  21592. done
  21593. done
  21594. IFS=$as_save_IFS
  21595. ;;
  21596. esac
  21597. fi
  21598. ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
  21599. if test -n "$ac_pt_PKGCONFIG"; then
  21600. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
  21601. printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
  21602. else
  21603. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21604. printf "%s\n" "no" >&6; }
  21605. fi
  21606. if test "x$ac_pt_PKGCONFIG" = x; then
  21607. PKGCONFIG="no"
  21608. else
  21609. case $cross_compiling:$ac_tool_warned in
  21610. yes:)
  21611. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  21612. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  21613. ac_tool_warned=yes ;;
  21614. esac
  21615. PKGCONFIG=$ac_pt_PKGCONFIG
  21616. fi
  21617. else
  21618. PKGCONFIG="$ac_cv_path_PKGCONFIG"
  21619. fi
  21620. fi
  21621. if test "x$PKGCONFIG" != "xno"; then
  21622. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openssl options with pkg-config" >&5
  21623. printf %s "checking for openssl options with pkg-config... " >&6; }
  21624. itexists=`
  21625. if test -n "$OPENSSL_PCDIR"; then
  21626. PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
  21627. export PKG_CONFIG_LIBDIR
  21628. fi
  21629. $PKGCONFIG --exists openssl >/dev/null 2>&1 && echo 1`
  21630. if test -z "$itexists"; then
  21631. PKGCONFIG="no"
  21632. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21633. printf "%s\n" "no" >&6; }
  21634. else
  21635. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
  21636. printf "%s\n" "found" >&6; }
  21637. fi
  21638. fi
  21639. if test "$PKGCONFIG" != "no" ; then
  21640. SSL_LIBS=`
  21641. if test -n "$OPENSSL_PCDIR"; then
  21642. PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
  21643. export PKG_CONFIG_LIBDIR
  21644. fi
  21645. $PKGCONFIG --libs-only-l --libs-only-other openssl 2>/dev/null`
  21646. SSL_LDFLAGS=`
  21647. if test -n "$OPENSSL_PCDIR"; then
  21648. PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
  21649. export PKG_CONFIG_LIBDIR
  21650. fi
  21651. $PKGCONFIG --libs-only-L openssl 2>/dev/null`
  21652. SSL_CPPFLAGS=`
  21653. if test -n "$OPENSSL_PCDIR"; then
  21654. PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
  21655. export PKG_CONFIG_LIBDIR
  21656. fi
  21657. $PKGCONFIG --cflags-only-I openssl 2>/dev/null`
  21658. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&5
  21659. printf "%s\n" "$as_me: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&6;}
  21660. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&5
  21661. printf "%s\n" "$as_me: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&6;}
  21662. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&5
  21663. printf "%s\n" "$as_me: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&6;}
  21664. LIB_OPENSSL=`echo $SSL_LDFLAGS | sed -e 's/^-L//'`
  21665. LIBS="$SSL_LIBS $LIBS"
  21666. fi
  21667. fi
  21668. CPPFLAGS="$CPPFLAGS $SSL_CPPFLAGS"
  21669. LDFLAGS="$LDFLAGS $SSL_LDFLAGS"
  21670. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for HMAC_Update in -lcrypto" >&5
  21671. printf %s "checking for HMAC_Update in -lcrypto... " >&6; }
  21672. if test ${ac_cv_lib_crypto_HMAC_Update+y}
  21673. then :
  21674. printf %s "(cached) " >&6
  21675. else $as_nop
  21676. ac_check_lib_save_LIBS=$LIBS
  21677. LIBS="-lcrypto $LIBS"
  21678. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21679. /* end confdefs.h. */
  21680. #ifdef __cplusplus
  21681. extern "C"
  21682. #endif
  21683. char HMAC_Update ();
  21684. int main (void)
  21685. {
  21686. return HMAC_Update ();
  21687. ;
  21688. return 0;
  21689. }
  21690. _ACEOF
  21691. if ac_fn_c_try_link "$LINENO"
  21692. then :
  21693. ac_cv_lib_crypto_HMAC_Update=yes
  21694. else $as_nop
  21695. ac_cv_lib_crypto_HMAC_Update=no
  21696. fi
  21697. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21698. conftest$ac_exeext conftest.$ac_ext
  21699. LIBS=$ac_check_lib_save_LIBS
  21700. fi
  21701. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Update" >&5
  21702. printf "%s\n" "$ac_cv_lib_crypto_HMAC_Update" >&6; }
  21703. if test "x$ac_cv_lib_crypto_HMAC_Update" = xyes
  21704. then :
  21705. HAVECRYPTO="yes"
  21706. LIBS="-lcrypto $LIBS"
  21707. else $as_nop
  21708. if test -n "$LIB_OPENSSL" ; then
  21709. LDFLAGS="$CLEANLDFLAGS -L$LIB_OPENSSL"
  21710. fi
  21711. if test "$PKGCONFIG" = "no" -a -n "$PREFIX_OPENSSL" ; then
  21712. # only set this if pkg-config wasn't used
  21713. CPPFLAGS="$CLEANCPPFLAGS -I$PREFIX_OPENSSL/include/openssl -I$PREFIX_OPENSSL/include"
  21714. fi
  21715. # Linking previously failed, try extra paths from --with-openssl or
  21716. # pkg-config. Use a different function name to avoid reusing the earlier
  21717. # cached result.
  21718. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for HMAC_Init_ex in -lcrypto" >&5
  21719. printf %s "checking for HMAC_Init_ex in -lcrypto... " >&6; }
  21720. if test ${ac_cv_lib_crypto_HMAC_Init_ex+y}
  21721. then :
  21722. printf %s "(cached) " >&6
  21723. else $as_nop
  21724. ac_check_lib_save_LIBS=$LIBS
  21725. LIBS="-lcrypto $LIBS"
  21726. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21727. /* end confdefs.h. */
  21728. #ifdef __cplusplus
  21729. extern "C"
  21730. #endif
  21731. char HMAC_Init_ex ();
  21732. int main (void)
  21733. {
  21734. return HMAC_Init_ex ();
  21735. ;
  21736. return 0;
  21737. }
  21738. _ACEOF
  21739. if ac_fn_c_try_link "$LINENO"
  21740. then :
  21741. ac_cv_lib_crypto_HMAC_Init_ex=yes
  21742. else $as_nop
  21743. ac_cv_lib_crypto_HMAC_Init_ex=no
  21744. fi
  21745. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21746. conftest$ac_exeext conftest.$ac_ext
  21747. LIBS=$ac_check_lib_save_LIBS
  21748. fi
  21749. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Init_ex" >&5
  21750. printf "%s\n" "$ac_cv_lib_crypto_HMAC_Init_ex" >&6; }
  21751. if test "x$ac_cv_lib_crypto_HMAC_Init_ex" = xyes
  21752. then :
  21753. HAVECRYPTO="yes"
  21754. LIBS="-lcrypto $LIBS"
  21755. else $as_nop
  21756. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking with -ldl" >&5
  21757. printf %s "checking OpenSSL linking with -ldl... " >&6; }
  21758. LIBS="-lcrypto $CLEANLIBS -ldl"
  21759. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21760. /* end confdefs.h. */
  21761. #include <openssl/err.h>
  21762. int main (void)
  21763. {
  21764. ERR_clear_error();
  21765. ;
  21766. return 0;
  21767. }
  21768. _ACEOF
  21769. if ac_fn_c_try_link "$LINENO"
  21770. then :
  21771. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21772. printf "%s\n" "yes" >&6; }
  21773. HAVECRYPTO="yes"
  21774. else $as_nop
  21775. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21776. printf "%s\n" "no" >&6; }
  21777. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking with -ldl and -lpthread" >&5
  21778. printf %s "checking OpenSSL linking with -ldl and -lpthread... " >&6; }
  21779. LIBS="-lcrypto $CLEANLIBS -ldl -lpthread"
  21780. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21781. /* end confdefs.h. */
  21782. #include <openssl/err.h>
  21783. int main (void)
  21784. {
  21785. ERR_clear_error();
  21786. ;
  21787. return 0;
  21788. }
  21789. _ACEOF
  21790. if ac_fn_c_try_link "$LINENO"
  21791. then :
  21792. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21793. printf "%s\n" "yes" >&6; }
  21794. HAVECRYPTO="yes"
  21795. else $as_nop
  21796. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21797. printf "%s\n" "no" >&6; }
  21798. LDFLAGS="$CLEANLDFLAGS"
  21799. CPPFLAGS="$CLEANCPPFLAGS"
  21800. LIBS="$CLEANLIBS"
  21801. fi
  21802. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21803. conftest$ac_exeext conftest.$ac_ext
  21804. fi
  21805. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21806. conftest$ac_exeext conftest.$ac_ext
  21807. fi
  21808. fi
  21809. if test X"$HAVECRYPTO" = X"yes"; then
  21810. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
  21811. printf %s "checking for SSL_connect in -lssl... " >&6; }
  21812. if test ${ac_cv_lib_ssl_SSL_connect+y}
  21813. then :
  21814. printf %s "(cached) " >&6
  21815. else $as_nop
  21816. ac_check_lib_save_LIBS=$LIBS
  21817. LIBS="-lssl $LIBS"
  21818. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21819. /* end confdefs.h. */
  21820. #ifdef __cplusplus
  21821. extern "C"
  21822. #endif
  21823. char SSL_connect ();
  21824. int main (void)
  21825. {
  21826. return SSL_connect ();
  21827. ;
  21828. return 0;
  21829. }
  21830. _ACEOF
  21831. if ac_fn_c_try_link "$LINENO"
  21832. then :
  21833. ac_cv_lib_ssl_SSL_connect=yes
  21834. else $as_nop
  21835. ac_cv_lib_ssl_SSL_connect=no
  21836. fi
  21837. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21838. conftest$ac_exeext conftest.$ac_ext
  21839. LIBS=$ac_check_lib_save_LIBS
  21840. fi
  21841. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
  21842. printf "%s\n" "$ac_cv_lib_ssl_SSL_connect" >&6; }
  21843. if test "x$ac_cv_lib_ssl_SSL_connect" = xyes
  21844. then :
  21845. printf "%s\n" "#define HAVE_LIBSSL 1" >>confdefs.h
  21846. LIBS="-lssl $LIBS"
  21847. fi
  21848. if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
  21849. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ssl with RSAglue/rsaref libs in use" >&5
  21850. printf %s "checking for ssl with RSAglue/rsaref libs in use... " >&6; };
  21851. OLIBS=$LIBS
  21852. LIBS="-lRSAglue -lrsaref $LIBS"
  21853. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
  21854. printf %s "checking for SSL_connect in -lssl... " >&6; }
  21855. if test ${ac_cv_lib_ssl_SSL_connect+y}
  21856. then :
  21857. printf %s "(cached) " >&6
  21858. else $as_nop
  21859. ac_check_lib_save_LIBS=$LIBS
  21860. LIBS="-lssl $LIBS"
  21861. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21862. /* end confdefs.h. */
  21863. #ifdef __cplusplus
  21864. extern "C"
  21865. #endif
  21866. char SSL_connect ();
  21867. int main (void)
  21868. {
  21869. return SSL_connect ();
  21870. ;
  21871. return 0;
  21872. }
  21873. _ACEOF
  21874. if ac_fn_c_try_link "$LINENO"
  21875. then :
  21876. ac_cv_lib_ssl_SSL_connect=yes
  21877. else $as_nop
  21878. ac_cv_lib_ssl_SSL_connect=no
  21879. fi
  21880. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21881. conftest$ac_exeext conftest.$ac_ext
  21882. LIBS=$ac_check_lib_save_LIBS
  21883. fi
  21884. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
  21885. printf "%s\n" "$ac_cv_lib_ssl_SSL_connect" >&6; }
  21886. if test "x$ac_cv_lib_ssl_SSL_connect" = xyes
  21887. then :
  21888. printf "%s\n" "#define HAVE_LIBSSL 1" >>confdefs.h
  21889. LIBS="-lssl $LIBS"
  21890. fi
  21891. if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
  21892. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21893. printf "%s\n" "no" >&6; }
  21894. LIBS=$OLIBS
  21895. else
  21896. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21897. printf "%s\n" "yes" >&6; }
  21898. fi
  21899. else
  21900. for ac_header in openssl/x509.h openssl/rsa.h openssl/crypto.h openssl/pem.h openssl/ssl.h openssl/err.h
  21901. do :
  21902. as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
  21903. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  21904. if eval test \"x\$"$as_ac_Header"\" = x"yes"
  21905. then :
  21906. cat >>confdefs.h <<_ACEOF
  21907. #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
  21908. _ACEOF
  21909. ssl_msg="OpenSSL"
  21910. test openssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
  21911. OPENSSL_ENABLED=1
  21912. printf "%s\n" "#define USE_OPENSSL 1" >>confdefs.h
  21913. fi
  21914. done
  21915. if test $ac_cv_header_openssl_x509_h = no; then
  21916. ac_fn_c_check_header_compile "$LINENO" "x509.h" "ac_cv_header_x509_h" "$ac_includes_default"
  21917. if test "x$ac_cv_header_x509_h" = xyes
  21918. then :
  21919. printf "%s\n" "#define HAVE_X509_H 1" >>confdefs.h
  21920. fi
  21921. ac_fn_c_check_header_compile "$LINENO" "rsa.h" "ac_cv_header_rsa_h" "$ac_includes_default"
  21922. if test "x$ac_cv_header_rsa_h" = xyes
  21923. then :
  21924. printf "%s\n" "#define HAVE_RSA_H 1" >>confdefs.h
  21925. fi
  21926. ac_fn_c_check_header_compile "$LINENO" "crypto.h" "ac_cv_header_crypto_h" "$ac_includes_default"
  21927. if test "x$ac_cv_header_crypto_h" = xyes
  21928. then :
  21929. printf "%s\n" "#define HAVE_CRYPTO_H 1" >>confdefs.h
  21930. fi
  21931. ac_fn_c_check_header_compile "$LINENO" "pem.h" "ac_cv_header_pem_h" "$ac_includes_default"
  21932. if test "x$ac_cv_header_pem_h" = xyes
  21933. then :
  21934. printf "%s\n" "#define HAVE_PEM_H 1" >>confdefs.h
  21935. fi
  21936. ac_fn_c_check_header_compile "$LINENO" "ssl.h" "ac_cv_header_ssl_h" "$ac_includes_default"
  21937. if test "x$ac_cv_header_ssl_h" = xyes
  21938. then :
  21939. printf "%s\n" "#define HAVE_SSL_H 1" >>confdefs.h
  21940. fi
  21941. ac_fn_c_check_header_compile "$LINENO" "err.h" "ac_cv_header_err_h" "$ac_includes_default"
  21942. if test "x$ac_cv_header_err_h" = xyes
  21943. then :
  21944. printf "%s\n" "#define HAVE_ERR_H 1" >>confdefs.h
  21945. fi
  21946. if test $ac_cv_header_x509_h = yes &&
  21947. test $ac_cv_header_crypto_h = yes &&
  21948. test $ac_cv_header_ssl_h = yes; then
  21949. ssl_msg="OpenSSL"
  21950. OPENSSL_ENABLED=1
  21951. fi
  21952. fi
  21953. fi
  21954. if test X"$OPENSSL_ENABLED" != X"1"; then
  21955. LIBS="$CLEANLIBS"
  21956. fi
  21957. if test X"$OPT_OPENSSL" != Xoff &&
  21958. test "$OPENSSL_ENABLED" != "1"; then
  21959. as_fn_error $? "OpenSSL libs and/or directories were not found where specified!" "$LINENO" 5
  21960. fi
  21961. fi
  21962. if test X"$OPENSSL_ENABLED" = X"1"; then
  21963. ac_fn_c_check_func "$LINENO" "RAND_egd" "ac_cv_func_RAND_egd"
  21964. if test "x$ac_cv_func_RAND_egd" = xyes
  21965. then :
  21966. printf "%s\n" "#define HAVE_RAND_EGD 1" >>confdefs.h
  21967. fi
  21968. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BoringSSL" >&5
  21969. printf %s "checking for BoringSSL... " >&6; }
  21970. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21971. /* end confdefs.h. */
  21972. #include <openssl/base.h>
  21973. int main (void)
  21974. {
  21975. #ifndef OPENSSL_IS_BORINGSSL
  21976. #error not boringssl
  21977. #endif
  21978. ;
  21979. return 0;
  21980. }
  21981. _ACEOF
  21982. if ac_fn_c_try_compile "$LINENO"
  21983. then :
  21984. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21985. printf "%s\n" "yes" >&6; }
  21986. printf "%s\n" "#define HAVE_BORINGSSL 1" >>confdefs.h
  21987. ssl_msg="BoringSSL"
  21988. else $as_nop
  21989. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21990. printf "%s\n" "no" >&6; }
  21991. fi
  21992. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21993. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libressl" >&5
  21994. printf %s "checking for libressl... " >&6; }
  21995. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21996. /* end confdefs.h. */
  21997. #include <openssl/opensslv.h>
  21998. int main (void)
  21999. {
  22000. int dummy = LIBRESSL_VERSION_NUMBER;
  22001. ;
  22002. return 0;
  22003. }
  22004. _ACEOF
  22005. if ac_fn_c_try_compile "$LINENO"
  22006. then :
  22007. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22008. printf "%s\n" "yes" >&6; }
  22009. printf "%s\n" "#define HAVE_LIBRESSL 1" >>confdefs.h
  22010. ssl_msg="libressl"
  22011. else $as_nop
  22012. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22013. printf "%s\n" "no" >&6; }
  22014. fi
  22015. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22016. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenSSL >= v3" >&5
  22017. printf %s "checking for OpenSSL >= v3... " >&6; }
  22018. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22019. /* end confdefs.h. */
  22020. #include <openssl/opensslv.h>
  22021. int main (void)
  22022. {
  22023. #if defined(OPENSSL_VERSION_MAJOR) && (OPENSSL_VERSION_MAJOR >= 3)
  22024. return 0;
  22025. #else
  22026. #error older than 3
  22027. #endif
  22028. ;
  22029. return 0;
  22030. }
  22031. _ACEOF
  22032. if ac_fn_c_try_compile "$LINENO"
  22033. then :
  22034. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22035. printf "%s\n" "yes" >&6; }
  22036. printf "%s\n" "#define HAVE_OPENSSL3 1" >>confdefs.h
  22037. CPPFLAGS="$CPPFLAGS -DOPENSSL_SUPPRESS_DEPRECATED"
  22038. ssl_msg="OpenSSL v3+"
  22039. else $as_nop
  22040. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22041. printf "%s\n" "no" >&6; }
  22042. fi
  22043. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22044. fi
  22045. if test "$OPENSSL_ENABLED" = "1"; then
  22046. if test -n "$LIB_OPENSSL"; then
  22047. if test "x$cross_compiling" != "xyes"; then
  22048. CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$LIB_OPENSSL"
  22049. export CURL_LIBRARY_PATH
  22050. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $LIB_OPENSSL to CURL_LIBRARY_PATH" >&5
  22051. printf "%s\n" "$as_me: Added $LIB_OPENSSL to CURL_LIBRARY_PATH" >&6;}
  22052. fi
  22053. fi
  22054. check_for_ca_bundle=1
  22055. fi
  22056. test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
  22057. fi
  22058. if test X"$OPT_OPENSSL" != Xno &&
  22059. test "$OPENSSL_ENABLED" != "1"; then
  22060. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: OPT_OPENSSL: $OPT_OPENSSL" >&5
  22061. printf "%s\n" "$as_me: OPT_OPENSSL: $OPT_OPENSSL" >&6;}
  22062. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: OPENSSL_ENABLED: $OPENSSL_ENABLED" >&5
  22063. printf "%s\n" "$as_me: OPENSSL_ENABLED: $OPENSSL_ENABLED" >&6;}
  22064. as_fn_error $? "--with-openssl was given but OpenSSL could not be detected" "$LINENO" 5
  22065. fi
  22066. if test X"$OPENSSL_ENABLED" = X"1"; then
  22067. # Check whether --with-egd-socket was given.
  22068. if test ${with_egd_socket+y}
  22069. then :
  22070. withval=$with_egd_socket; EGD_SOCKET="$withval"
  22071. fi
  22072. if test -n "$EGD_SOCKET" ; then
  22073. printf "%s\n" "#define EGD_SOCKET \"$EGD_SOCKET\"" >>confdefs.h
  22074. fi
  22075. # Check whether --with-random was given.
  22076. if test ${with_random+y}
  22077. then :
  22078. withval=$with_random; RANDOM_FILE="$withval"
  22079. else $as_nop
  22080. if test x$cross_compiling != xyes; then
  22081. as_ac_File=`printf "%s\n" "ac_cv_file_"/dev/urandom"" | $as_tr_sh`
  22082. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for \"/dev/urandom\"" >&5
  22083. printf %s "checking for \"/dev/urandom\"... " >&6; }
  22084. if eval test \${$as_ac_File+y}
  22085. then :
  22086. printf %s "(cached) " >&6
  22087. else $as_nop
  22088. test "$cross_compiling" = yes &&
  22089. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  22090. if test -r ""/dev/urandom""; then
  22091. eval "$as_ac_File=yes"
  22092. else
  22093. eval "$as_ac_File=no"
  22094. fi
  22095. fi
  22096. eval ac_res=\$$as_ac_File
  22097. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  22098. printf "%s\n" "$ac_res" >&6; }
  22099. if eval test \"x\$"$as_ac_File"\" = x"yes"
  22100. then :
  22101. RANDOM_FILE="/dev/urandom"
  22102. fi
  22103. else
  22104. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: skipped the /dev/urandom detection when cross-compiling" >&5
  22105. printf "%s\n" "$as_me: WARNING: skipped the /dev/urandom detection when cross-compiling" >&2;}
  22106. fi
  22107. fi
  22108. if test -n "$RANDOM_FILE" && test X"$RANDOM_FILE" != Xno ; then
  22109. printf "%s\n" "#define RANDOM_FILE \"$RANDOM_FILE\"" >>confdefs.h
  22110. fi
  22111. fi
  22112. if test "$OPENSSL_ENABLED" = "1"; then
  22113. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SRP support in OpenSSL" >&5
  22114. printf %s "checking for SRP support in OpenSSL... " >&6; }
  22115. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22116. /* end confdefs.h. */
  22117. #include <openssl/ssl.h>
  22118. int main (void)
  22119. {
  22120. SSL_CTX_set_srp_username(NULL, "");
  22121. SSL_CTX_set_srp_password(NULL, "");
  22122. ;
  22123. return 0;
  22124. }
  22125. _ACEOF
  22126. if ac_fn_c_try_link "$LINENO"
  22127. then :
  22128. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22129. printf "%s\n" "yes" >&6; }
  22130. printf "%s\n" "#define HAVE_OPENSSL_SRP 1" >>confdefs.h
  22131. HAVE_OPENSSL_SRP=1
  22132. else $as_nop
  22133. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22134. printf "%s\n" "no" >&6; }
  22135. fi
  22136. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22137. conftest$ac_exeext conftest.$ac_ext
  22138. fi
  22139. if test X"$OPENSSL_ENABLED" = X"1"; then
  22140. # Check whether --enable-openssl-auto-load-config was given.
  22141. if test ${enable_openssl_auto_load_config+y}
  22142. then :
  22143. enableval=$enable_openssl_auto_load_config; if test X"$enableval" = X"no"; then
  22144. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: automatic loading of OpenSSL configuration disabled" >&5
  22145. printf "%s\n" "$as_me: automatic loading of OpenSSL configuration disabled" >&6;}
  22146. printf "%s\n" "#define CURL_DISABLE_OPENSSL_AUTO_LOAD_CONFIG 1" >>confdefs.h
  22147. fi
  22148. fi
  22149. fi
  22150. if test "x$OPT_GNUTLS" != xno; then
  22151. ssl_msg=
  22152. if test X"$OPT_GNUTLS" != Xno; then
  22153. addld=""
  22154. addlib=""
  22155. gtlslib=""
  22156. version=""
  22157. addcflags=""
  22158. if test "x$OPT_GNUTLS" = "xyes"; then
  22159. if test -n "$PKG_CONFIG"; then
  22160. PKGCONFIG="$PKG_CONFIG"
  22161. else
  22162. if test -n "$ac_tool_prefix"; then
  22163. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  22164. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  22165. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  22166. printf %s "checking for $ac_word... " >&6; }
  22167. if test ${ac_cv_path_PKGCONFIG+y}
  22168. then :
  22169. printf %s "(cached) " >&6
  22170. else $as_nop
  22171. case $PKGCONFIG in
  22172. [\\/]* | ?:[\\/]*)
  22173. ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
  22174. ;;
  22175. *)
  22176. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22177. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  22178. for as_dir in $as_dummy
  22179. do
  22180. IFS=$as_save_IFS
  22181. case $as_dir in #(((
  22182. '') as_dir=./ ;;
  22183. */) ;;
  22184. *) as_dir=$as_dir/ ;;
  22185. esac
  22186. for ac_exec_ext in '' $ac_executable_extensions; do
  22187. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  22188. ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  22189. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  22190. break 2
  22191. fi
  22192. done
  22193. done
  22194. IFS=$as_save_IFS
  22195. ;;
  22196. esac
  22197. fi
  22198. PKGCONFIG=$ac_cv_path_PKGCONFIG
  22199. if test -n "$PKGCONFIG"; then
  22200. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
  22201. printf "%s\n" "$PKGCONFIG" >&6; }
  22202. else
  22203. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22204. printf "%s\n" "no" >&6; }
  22205. fi
  22206. fi
  22207. if test -z "$ac_cv_path_PKGCONFIG"; then
  22208. ac_pt_PKGCONFIG=$PKGCONFIG
  22209. # Extract the first word of "pkg-config", so it can be a program name with args.
  22210. set dummy pkg-config; ac_word=$2
  22211. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  22212. printf %s "checking for $ac_word... " >&6; }
  22213. if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
  22214. then :
  22215. printf %s "(cached) " >&6
  22216. else $as_nop
  22217. case $ac_pt_PKGCONFIG in
  22218. [\\/]* | ?:[\\/]*)
  22219. ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
  22220. ;;
  22221. *)
  22222. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22223. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  22224. for as_dir in $as_dummy
  22225. do
  22226. IFS=$as_save_IFS
  22227. case $as_dir in #(((
  22228. '') as_dir=./ ;;
  22229. */) ;;
  22230. *) as_dir=$as_dir/ ;;
  22231. esac
  22232. for ac_exec_ext in '' $ac_executable_extensions; do
  22233. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  22234. ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  22235. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  22236. break 2
  22237. fi
  22238. done
  22239. done
  22240. IFS=$as_save_IFS
  22241. ;;
  22242. esac
  22243. fi
  22244. ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
  22245. if test -n "$ac_pt_PKGCONFIG"; then
  22246. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
  22247. printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
  22248. else
  22249. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22250. printf "%s\n" "no" >&6; }
  22251. fi
  22252. if test "x$ac_pt_PKGCONFIG" = x; then
  22253. PKGCONFIG="no"
  22254. else
  22255. case $cross_compiling:$ac_tool_warned in
  22256. yes:)
  22257. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  22258. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  22259. ac_tool_warned=yes ;;
  22260. esac
  22261. PKGCONFIG=$ac_pt_PKGCONFIG
  22262. fi
  22263. else
  22264. PKGCONFIG="$ac_cv_path_PKGCONFIG"
  22265. fi
  22266. fi
  22267. if test "x$PKGCONFIG" != "xno"; then
  22268. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gnutls options with pkg-config" >&5
  22269. printf %s "checking for gnutls options with pkg-config... " >&6; }
  22270. itexists=`
  22271. if test -n ""; then
  22272. PKG_CONFIG_LIBDIR=""
  22273. export PKG_CONFIG_LIBDIR
  22274. fi
  22275. $PKGCONFIG --exists gnutls >/dev/null 2>&1 && echo 1`
  22276. if test -z "$itexists"; then
  22277. PKGCONFIG="no"
  22278. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22279. printf "%s\n" "no" >&6; }
  22280. else
  22281. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
  22282. printf "%s\n" "found" >&6; }
  22283. fi
  22284. fi
  22285. if test "$PKGCONFIG" != "no" ; then
  22286. addlib=`$PKGCONFIG --libs-only-l gnutls`
  22287. addld=`$PKGCONFIG --libs-only-L gnutls`
  22288. addcflags=`$PKGCONFIG --cflags-only-I gnutls`
  22289. version=`$PKGCONFIG --modversion gnutls`
  22290. gtlslib=`echo $addld | $SED -e 's/^-L//'`
  22291. else
  22292. check=`libgnutls-config --version 2>/dev/null`
  22293. if test -n "$check"; then
  22294. addlib=`libgnutls-config --libs`
  22295. addcflags=`libgnutls-config --cflags`
  22296. version=`libgnutls-config --version`
  22297. gtlslib=`libgnutls-config --prefix`/lib$libsuff
  22298. fi
  22299. fi
  22300. else
  22301. cfg=$OPT_GNUTLS/bin/libgnutls-config
  22302. check=`$cfg --version 2>/dev/null`
  22303. if test -n "$check"; then
  22304. addlib=`$cfg --libs`
  22305. addcflags=`$cfg --cflags`
  22306. version=`$cfg --version`
  22307. gtlslib=`$cfg --prefix`/lib$libsuff
  22308. else
  22309. addlib=-lgnutls
  22310. addld=-L$OPT_GNUTLS/lib$libsuff
  22311. addcflags=-I$OPT_GNUTLS/include
  22312. version="" # we just don't know
  22313. gtlslib=$OPT_GNUTLS/lib$libsuff
  22314. fi
  22315. fi
  22316. if test -z "$version"; then
  22317. version="unknown"
  22318. fi
  22319. if test -n "$addlib"; then
  22320. CLEANLIBS="$LIBS"
  22321. CLEANCPPFLAGS="$CPPFLAGS"
  22322. CLEANLDFLAGS="$LDFLAGS"
  22323. LIBS="$addlib $LIBS"
  22324. LDFLAGS="$LDFLAGS $addld"
  22325. if test "$addcflags" != "-I/usr/include"; then
  22326. CPPFLAGS="$CPPFLAGS $addcflags"
  22327. fi
  22328. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gnutls_x509_crt_get_dn2 in -lgnutls" >&5
  22329. printf %s "checking for gnutls_x509_crt_get_dn2 in -lgnutls... " >&6; }
  22330. if test ${ac_cv_lib_gnutls_gnutls_x509_crt_get_dn2+y}
  22331. then :
  22332. printf %s "(cached) " >&6
  22333. else $as_nop
  22334. ac_check_lib_save_LIBS=$LIBS
  22335. LIBS="-lgnutls $LIBS"
  22336. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22337. /* end confdefs.h. */
  22338. #ifdef __cplusplus
  22339. extern "C"
  22340. #endif
  22341. char gnutls_x509_crt_get_dn2 ();
  22342. int main (void)
  22343. {
  22344. return gnutls_x509_crt_get_dn2 ();
  22345. ;
  22346. return 0;
  22347. }
  22348. _ACEOF
  22349. if ac_fn_c_try_link "$LINENO"
  22350. then :
  22351. ac_cv_lib_gnutls_gnutls_x509_crt_get_dn2=yes
  22352. else $as_nop
  22353. ac_cv_lib_gnutls_gnutls_x509_crt_get_dn2=no
  22354. fi
  22355. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22356. conftest$ac_exeext conftest.$ac_ext
  22357. LIBS=$ac_check_lib_save_LIBS
  22358. fi
  22359. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_x509_crt_get_dn2" >&5
  22360. printf "%s\n" "$ac_cv_lib_gnutls_gnutls_x509_crt_get_dn2" >&6; }
  22361. if test "x$ac_cv_lib_gnutls_gnutls_x509_crt_get_dn2" = xyes
  22362. then :
  22363. printf "%s\n" "#define USE_GNUTLS 1" >>confdefs.h
  22364. USE_GNUTLS=1
  22365. GNUTLS_ENABLED=1
  22366. USE_GNUTLS="yes"
  22367. ssl_msg="GnuTLS"
  22368. test gnutls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
  22369. else $as_nop
  22370. LIBS="$CLEANLIBS"
  22371. CPPFLAGS="$CLEANCPPFLAGS"
  22372. fi
  22373. if test "x$USE_GNUTLS" = "xyes"; then
  22374. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: detected GnuTLS version $version" >&5
  22375. printf "%s\n" "$as_me: detected GnuTLS version $version" >&6;}
  22376. check_for_ca_bundle=1
  22377. if test -n "$gtlslib"; then
  22378. if test "x$cross_compiling" != "xyes"; then
  22379. CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$gtlslib"
  22380. export CURL_LIBRARY_PATH
  22381. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $gtlslib to CURL_LIBRARY_PATH" >&5
  22382. printf "%s\n" "$as_me: Added $gtlslib to CURL_LIBRARY_PATH" >&6;}
  22383. fi
  22384. fi
  22385. fi
  22386. fi
  22387. fi
  22388. test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
  22389. fi
  22390. if test "$GNUTLS_ENABLED" = "1"; then
  22391. USE_GNUTLS_NETTLE=
  22392. # First check if we can detect either crypto library via transitive linking
  22393. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lgnutls" >&5
  22394. printf %s "checking for nettle_MD5Init in -lgnutls... " >&6; }
  22395. if test ${ac_cv_lib_gnutls_nettle_MD5Init+y}
  22396. then :
  22397. printf %s "(cached) " >&6
  22398. else $as_nop
  22399. ac_check_lib_save_LIBS=$LIBS
  22400. LIBS="-lgnutls $LIBS"
  22401. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22402. /* end confdefs.h. */
  22403. #ifdef __cplusplus
  22404. extern "C"
  22405. #endif
  22406. char nettle_MD5Init ();
  22407. int main (void)
  22408. {
  22409. return nettle_MD5Init ();
  22410. ;
  22411. return 0;
  22412. }
  22413. _ACEOF
  22414. if ac_fn_c_try_link "$LINENO"
  22415. then :
  22416. ac_cv_lib_gnutls_nettle_MD5Init=yes
  22417. else $as_nop
  22418. ac_cv_lib_gnutls_nettle_MD5Init=no
  22419. fi
  22420. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22421. conftest$ac_exeext conftest.$ac_ext
  22422. LIBS=$ac_check_lib_save_LIBS
  22423. fi
  22424. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_nettle_MD5Init" >&5
  22425. printf "%s\n" "$ac_cv_lib_gnutls_nettle_MD5Init" >&6; }
  22426. if test "x$ac_cv_lib_gnutls_nettle_MD5Init" = xyes
  22427. then :
  22428. USE_GNUTLS_NETTLE=1
  22429. fi
  22430. # If not, try linking directly to both of them to see if they are available
  22431. if test "$USE_GNUTLS_NETTLE" = ""; then
  22432. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lnettle" >&5
  22433. printf %s "checking for nettle_MD5Init in -lnettle... " >&6; }
  22434. if test ${ac_cv_lib_nettle_nettle_MD5Init+y}
  22435. then :
  22436. printf %s "(cached) " >&6
  22437. else $as_nop
  22438. ac_check_lib_save_LIBS=$LIBS
  22439. LIBS="-lnettle $LIBS"
  22440. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22441. /* end confdefs.h. */
  22442. #ifdef __cplusplus
  22443. extern "C"
  22444. #endif
  22445. char nettle_MD5Init ();
  22446. int main (void)
  22447. {
  22448. return nettle_MD5Init ();
  22449. ;
  22450. return 0;
  22451. }
  22452. _ACEOF
  22453. if ac_fn_c_try_link "$LINENO"
  22454. then :
  22455. ac_cv_lib_nettle_nettle_MD5Init=yes
  22456. else $as_nop
  22457. ac_cv_lib_nettle_nettle_MD5Init=no
  22458. fi
  22459. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22460. conftest$ac_exeext conftest.$ac_ext
  22461. LIBS=$ac_check_lib_save_LIBS
  22462. fi
  22463. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nettle_nettle_MD5Init" >&5
  22464. printf "%s\n" "$ac_cv_lib_nettle_nettle_MD5Init" >&6; }
  22465. if test "x$ac_cv_lib_nettle_nettle_MD5Init" = xyes
  22466. then :
  22467. USE_GNUTLS_NETTLE=1
  22468. fi
  22469. fi
  22470. if test "$USE_GNUTLS_NETTLE" = ""; then
  22471. as_fn_error $? "GnuTLS found, but nettle was not found" "$LINENO" 5
  22472. fi
  22473. LIBS="-lnettle $LIBS"
  22474. fi
  22475. if test "$GNUTLS_ENABLED" = "1"; then
  22476. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gnutls_srp_verifier in -lgnutls" >&5
  22477. printf %s "checking for gnutls_srp_verifier in -lgnutls... " >&6; }
  22478. if test ${ac_cv_lib_gnutls_gnutls_srp_verifier+y}
  22479. then :
  22480. printf %s "(cached) " >&6
  22481. else $as_nop
  22482. ac_check_lib_save_LIBS=$LIBS
  22483. LIBS="-lgnutls $LIBS"
  22484. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22485. /* end confdefs.h. */
  22486. #ifdef __cplusplus
  22487. extern "C"
  22488. #endif
  22489. char gnutls_srp_verifier ();
  22490. int main (void)
  22491. {
  22492. return gnutls_srp_verifier ();
  22493. ;
  22494. return 0;
  22495. }
  22496. _ACEOF
  22497. if ac_fn_c_try_link "$LINENO"
  22498. then :
  22499. ac_cv_lib_gnutls_gnutls_srp_verifier=yes
  22500. else $as_nop
  22501. ac_cv_lib_gnutls_gnutls_srp_verifier=no
  22502. fi
  22503. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22504. conftest$ac_exeext conftest.$ac_ext
  22505. LIBS=$ac_check_lib_save_LIBS
  22506. fi
  22507. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_srp_verifier" >&5
  22508. printf "%s\n" "$ac_cv_lib_gnutls_gnutls_srp_verifier" >&6; }
  22509. if test "x$ac_cv_lib_gnutls_gnutls_srp_verifier" = xyes
  22510. then :
  22511. printf "%s\n" "#define HAVE_GNUTLS_SRP 1" >>confdefs.h
  22512. HAVE_GNUTLS_SRP=1
  22513. fi
  22514. fi
  22515. if test "x$OPT_MBEDTLS" != xno; then
  22516. _cppflags=$CPPFLAGS
  22517. _ldflags=$LDFLAGS
  22518. ssl_msg=
  22519. if test X"$OPT_MBEDTLS" != Xno; then
  22520. if test "$OPT_MBEDTLS" = "yes"; then
  22521. OPT_MBEDTLS=""
  22522. fi
  22523. if test -z "$OPT_MBEDTLS" ; then
  22524. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mbedtls_havege_init in -lmbedtls" >&5
  22525. printf %s "checking for mbedtls_havege_init in -lmbedtls... " >&6; }
  22526. if test ${ac_cv_lib_mbedtls_mbedtls_havege_init+y}
  22527. then :
  22528. printf %s "(cached) " >&6
  22529. else $as_nop
  22530. ac_check_lib_save_LIBS=$LIBS
  22531. LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
  22532. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22533. /* end confdefs.h. */
  22534. #ifdef __cplusplus
  22535. extern "C"
  22536. #endif
  22537. char mbedtls_havege_init ();
  22538. int main (void)
  22539. {
  22540. return mbedtls_havege_init ();
  22541. ;
  22542. return 0;
  22543. }
  22544. _ACEOF
  22545. if ac_fn_c_try_link "$LINENO"
  22546. then :
  22547. ac_cv_lib_mbedtls_mbedtls_havege_init=yes
  22548. else $as_nop
  22549. ac_cv_lib_mbedtls_mbedtls_havege_init=no
  22550. fi
  22551. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22552. conftest$ac_exeext conftest.$ac_ext
  22553. LIBS=$ac_check_lib_save_LIBS
  22554. fi
  22555. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedtls_mbedtls_havege_init" >&5
  22556. printf "%s\n" "$ac_cv_lib_mbedtls_mbedtls_havege_init" >&6; }
  22557. if test "x$ac_cv_lib_mbedtls_mbedtls_havege_init" = xyes
  22558. then :
  22559. printf "%s\n" "#define USE_MBEDTLS 1" >>confdefs.h
  22560. USE_MBEDTLS=1
  22561. MBEDTLS_ENABLED=1
  22562. USE_MBEDTLS="yes"
  22563. ssl_msg="mbedTLS"
  22564. test mbedtls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
  22565. fi
  22566. fi
  22567. addld=""
  22568. addlib=""
  22569. addcflags=""
  22570. mbedtlslib=""
  22571. if test "x$USE_MBEDTLS" != "xyes"; then
  22572. addld=-L$OPT_MBEDTLS/lib$libsuff
  22573. addcflags=-I$OPT_MBEDTLS/include
  22574. mbedtlslib=$OPT_MBEDTLS/lib$libsuff
  22575. LDFLAGS="$LDFLAGS $addld"
  22576. if test "$addcflags" != "-I/usr/include"; then
  22577. CPPFLAGS="$CPPFLAGS $addcflags"
  22578. fi
  22579. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mbedtls_ssl_init in -lmbedtls" >&5
  22580. printf %s "checking for mbedtls_ssl_init in -lmbedtls... " >&6; }
  22581. if test ${ac_cv_lib_mbedtls_mbedtls_ssl_init+y}
  22582. then :
  22583. printf %s "(cached) " >&6
  22584. else $as_nop
  22585. ac_check_lib_save_LIBS=$LIBS
  22586. LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
  22587. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22588. /* end confdefs.h. */
  22589. #ifdef __cplusplus
  22590. extern "C"
  22591. #endif
  22592. char mbedtls_ssl_init ();
  22593. int main (void)
  22594. {
  22595. return mbedtls_ssl_init ();
  22596. ;
  22597. return 0;
  22598. }
  22599. _ACEOF
  22600. if ac_fn_c_try_link "$LINENO"
  22601. then :
  22602. ac_cv_lib_mbedtls_mbedtls_ssl_init=yes
  22603. else $as_nop
  22604. ac_cv_lib_mbedtls_mbedtls_ssl_init=no
  22605. fi
  22606. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22607. conftest$ac_exeext conftest.$ac_ext
  22608. LIBS=$ac_check_lib_save_LIBS
  22609. fi
  22610. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedtls_mbedtls_ssl_init" >&5
  22611. printf "%s\n" "$ac_cv_lib_mbedtls_mbedtls_ssl_init" >&6; }
  22612. if test "x$ac_cv_lib_mbedtls_mbedtls_ssl_init" = xyes
  22613. then :
  22614. printf "%s\n" "#define USE_MBEDTLS 1" >>confdefs.h
  22615. USE_MBEDTLS=1
  22616. MBEDTLS_ENABLED=1
  22617. USE_MBEDTLS="yes"
  22618. ssl_msg="mbedTLS"
  22619. test mbedtls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
  22620. else $as_nop
  22621. CPPFLAGS=$_cppflags
  22622. LDFLAGS=$_ldflags
  22623. fi
  22624. fi
  22625. if test "x$USE_MBEDTLS" = "xyes"; then
  22626. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: detected mbedTLS" >&5
  22627. printf "%s\n" "$as_me: detected mbedTLS" >&6;}
  22628. check_for_ca_bundle=1
  22629. LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
  22630. if test -n "$mbedtlslib"; then
  22631. if test "x$cross_compiling" != "xyes"; then
  22632. CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$mbedtlslib"
  22633. export CURL_LIBRARY_PATH
  22634. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $mbedtlslib to CURL_LIBRARY_PATH" >&5
  22635. printf "%s\n" "$as_me: Added $mbedtlslib to CURL_LIBRARY_PATH" >&6;}
  22636. fi
  22637. fi
  22638. fi
  22639. fi
  22640. test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
  22641. fi
  22642. case "$OPT_WOLFSSL" in
  22643. yes|no)
  22644. wolfpkg=""
  22645. ;;
  22646. *)
  22647. wolfpkg="$withval/lib/pkgconfig"
  22648. ;;
  22649. esac
  22650. if test "x$OPT_WOLFSSL" != xno; then
  22651. _cppflags=$CPPFLAGS
  22652. _ldflags=$LDFLAGS
  22653. ssl_msg=
  22654. if test X"$OPT_WOLFSSL" != Xno; then
  22655. if test "$OPT_WOLFSSL" = "yes"; then
  22656. OPT_WOLFSSL=""
  22657. fi
  22658. if test -n "$PKG_CONFIG"; then
  22659. PKGCONFIG="$PKG_CONFIG"
  22660. else
  22661. if test -n "$ac_tool_prefix"; then
  22662. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  22663. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  22664. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  22665. printf %s "checking for $ac_word... " >&6; }
  22666. if test ${ac_cv_path_PKGCONFIG+y}
  22667. then :
  22668. printf %s "(cached) " >&6
  22669. else $as_nop
  22670. case $PKGCONFIG in
  22671. [\\/]* | ?:[\\/]*)
  22672. ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
  22673. ;;
  22674. *)
  22675. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22676. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  22677. for as_dir in $as_dummy
  22678. do
  22679. IFS=$as_save_IFS
  22680. case $as_dir in #(((
  22681. '') as_dir=./ ;;
  22682. */) ;;
  22683. *) as_dir=$as_dir/ ;;
  22684. esac
  22685. for ac_exec_ext in '' $ac_executable_extensions; do
  22686. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  22687. ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  22688. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  22689. break 2
  22690. fi
  22691. done
  22692. done
  22693. IFS=$as_save_IFS
  22694. ;;
  22695. esac
  22696. fi
  22697. PKGCONFIG=$ac_cv_path_PKGCONFIG
  22698. if test -n "$PKGCONFIG"; then
  22699. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
  22700. printf "%s\n" "$PKGCONFIG" >&6; }
  22701. else
  22702. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22703. printf "%s\n" "no" >&6; }
  22704. fi
  22705. fi
  22706. if test -z "$ac_cv_path_PKGCONFIG"; then
  22707. ac_pt_PKGCONFIG=$PKGCONFIG
  22708. # Extract the first word of "pkg-config", so it can be a program name with args.
  22709. set dummy pkg-config; ac_word=$2
  22710. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  22711. printf %s "checking for $ac_word... " >&6; }
  22712. if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
  22713. then :
  22714. printf %s "(cached) " >&6
  22715. else $as_nop
  22716. case $ac_pt_PKGCONFIG in
  22717. [\\/]* | ?:[\\/]*)
  22718. ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
  22719. ;;
  22720. *)
  22721. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22722. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  22723. for as_dir in $as_dummy
  22724. do
  22725. IFS=$as_save_IFS
  22726. case $as_dir in #(((
  22727. '') as_dir=./ ;;
  22728. */) ;;
  22729. *) as_dir=$as_dir/ ;;
  22730. esac
  22731. for ac_exec_ext in '' $ac_executable_extensions; do
  22732. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  22733. ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  22734. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  22735. break 2
  22736. fi
  22737. done
  22738. done
  22739. IFS=$as_save_IFS
  22740. ;;
  22741. esac
  22742. fi
  22743. ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
  22744. if test -n "$ac_pt_PKGCONFIG"; then
  22745. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
  22746. printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
  22747. else
  22748. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22749. printf "%s\n" "no" >&6; }
  22750. fi
  22751. if test "x$ac_pt_PKGCONFIG" = x; then
  22752. PKGCONFIG="no"
  22753. else
  22754. case $cross_compiling:$ac_tool_warned in
  22755. yes:)
  22756. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  22757. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  22758. ac_tool_warned=yes ;;
  22759. esac
  22760. PKGCONFIG=$ac_pt_PKGCONFIG
  22761. fi
  22762. else
  22763. PKGCONFIG="$ac_cv_path_PKGCONFIG"
  22764. fi
  22765. fi
  22766. if test "x$PKGCONFIG" != "xno"; then
  22767. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wolfssl options with pkg-config" >&5
  22768. printf %s "checking for wolfssl options with pkg-config... " >&6; }
  22769. itexists=`
  22770. if test -n "$wolfpkg"; then
  22771. PKG_CONFIG_LIBDIR="$wolfpkg"
  22772. export PKG_CONFIG_LIBDIR
  22773. fi
  22774. $PKGCONFIG --exists wolfssl >/dev/null 2>&1 && echo 1`
  22775. if test -z "$itexists"; then
  22776. PKGCONFIG="no"
  22777. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22778. printf "%s\n" "no" >&6; }
  22779. else
  22780. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
  22781. printf "%s\n" "found" >&6; }
  22782. fi
  22783. fi
  22784. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Check dir $wolfpkg" >&5
  22785. printf "%s\n" "$as_me: Check dir $wolfpkg" >&6;}
  22786. addld=""
  22787. addlib=""
  22788. addcflags=""
  22789. if test "$PKGCONFIG" != "no" ; then
  22790. addlib=`
  22791. if test -n "$wolfpkg"; then
  22792. PKG_CONFIG_LIBDIR="$wolfpkg"
  22793. export PKG_CONFIG_LIBDIR
  22794. fi
  22795. $PKGCONFIG --libs-only-l wolfssl`
  22796. addld=`
  22797. if test -n "$wolfpkg"; then
  22798. PKG_CONFIG_LIBDIR="$wolfpkg"
  22799. export PKG_CONFIG_LIBDIR
  22800. fi
  22801. $PKGCONFIG --libs-only-L wolfssl`
  22802. addcflags=`
  22803. if test -n "$wolfpkg"; then
  22804. PKG_CONFIG_LIBDIR="$wolfpkg"
  22805. export PKG_CONFIG_LIBDIR
  22806. fi
  22807. $PKGCONFIG --cflags-only-I wolfssl`
  22808. version=`
  22809. if test -n "$wolfpkg"; then
  22810. PKG_CONFIG_LIBDIR="$wolfpkg"
  22811. export PKG_CONFIG_LIBDIR
  22812. fi
  22813. $PKGCONFIG --modversion wolfssl`
  22814. wolfssllibpath=`echo $addld | $SED -e 's/^-L//'`
  22815. else
  22816. addlib=-lwolfssl
  22817. if test -n "$OPT_WOLFSSL"; then
  22818. addld=-L$OPT_WOLFSSL/lib$libsuff
  22819. addcflags=-I$OPT_WOLFSSL/include
  22820. wolfssllibpath=$OPT_WOLFSSL/lib$libsuff
  22821. fi
  22822. fi
  22823. if test "x$USE_WOLFSSL" != "xyes"; then
  22824. LDFLAGS="$LDFLAGS $addld"
  22825. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Add $addld to LDFLAGS" >&5
  22826. printf "%s\n" "$as_me: Add $addld to LDFLAGS" >&6;}
  22827. if test "$addcflags" != "-I/usr/include"; then
  22828. CPPFLAGS="$CPPFLAGS $addcflags"
  22829. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Add $addcflags to CPPFLAGS" >&5
  22830. printf "%s\n" "$as_me: Add $addcflags to CPPFLAGS" >&6;}
  22831. fi
  22832. my_ac_save_LIBS="$LIBS"
  22833. LIBS="$addlib $LIBS"
  22834. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Add $addlib to LIBS" >&5
  22835. printf "%s\n" "$as_me: Add $addlib to LIBS" >&6;}
  22836. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wolfSSL_Init in -lwolfssl" >&5
  22837. printf %s "checking for wolfSSL_Init in -lwolfssl... " >&6; }
  22838. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22839. /* end confdefs.h. */
  22840. /* These aren't needed for detection and confuse WolfSSL.
  22841. They are set up properly later if it is detected. */
  22842. #undef SIZEOF_LONG
  22843. #undef SIZEOF_LONG_LONG
  22844. #include <wolfssl/options.h>
  22845. #include <wolfssl/ssl.h>
  22846. int main (void)
  22847. {
  22848. return wolfSSL_Init();
  22849. ;
  22850. return 0;
  22851. }
  22852. _ACEOF
  22853. if ac_fn_c_try_link "$LINENO"
  22854. then :
  22855. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22856. printf "%s\n" "yes" >&6; }
  22857. printf "%s\n" "#define USE_WOLFSSL 1" >>confdefs.h
  22858. USE_WOLFSSL=1
  22859. WOLFSSL_ENABLED=1
  22860. USE_WOLFSSL="yes"
  22861. ssl_msg="WolfSSL"
  22862. test wolfssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
  22863. else $as_nop
  22864. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22865. printf "%s\n" "no" >&6; }
  22866. CPPFLAGS=$_cppflags
  22867. LDFLAGS=$_ldflags
  22868. wolfssllibpath=""
  22869. fi
  22870. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22871. conftest$ac_exeext conftest.$ac_ext
  22872. LIBS="$my_ac_save_LIBS"
  22873. fi
  22874. if test "x$USE_WOLFSSL" = "xyes"; then
  22875. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: detected wolfSSL" >&5
  22876. printf "%s\n" "$as_me: detected wolfSSL" >&6;}
  22877. check_for_ca_bundle=1
  22878. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
  22879. printf %s "checking size of long long... " >&6; }
  22880. r=0
  22881. for typesize in 8 4 2 16 1; do
  22882. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22883. /* end confdefs.h. */
  22884. #include <sys/types.h>
  22885. int main (void)
  22886. {
  22887. switch(0) {
  22888. case 0:
  22889. case (sizeof(long long) == $typesize):;
  22890. }
  22891. ;
  22892. return 0;
  22893. }
  22894. _ACEOF
  22895. if ac_fn_c_try_compile "$LINENO"
  22896. then :
  22897. r=$typesize
  22898. else $as_nop
  22899. r=0
  22900. fi
  22901. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22902. if test $r -gt 0; then
  22903. break;
  22904. fi
  22905. done
  22906. if test $r -eq 0; then
  22907. as_fn_error $? "Failed to find size of long long" "$LINENO" 5
  22908. fi
  22909. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r" >&5
  22910. printf "%s\n" "$r" >&6; }
  22911. tname=$(echo "ac_cv_sizeof_long long" | tr A-Z a-z | tr " " "_")
  22912. eval "$tname=$r"
  22913. printf "%s\n" "#define SIZEOF_LONG_LONG $r" >>confdefs.h
  22914. LIBS="$addlib -lm $LIBS"
  22915. ac_fn_c_check_func "$LINENO" "wolfSSL_get_peer_certificate" "ac_cv_func_wolfSSL_get_peer_certificate"
  22916. if test "x$ac_cv_func_wolfSSL_get_peer_certificate" = xyes
  22917. then :
  22918. printf "%s\n" "#define HAVE_WOLFSSL_GET_PEER_CERTIFICATE 1" >>confdefs.h
  22919. fi
  22920. ac_fn_c_check_func "$LINENO" "wolfSSL_UseALPN" "ac_cv_func_wolfSSL_UseALPN"
  22921. if test "x$ac_cv_func_wolfSSL_UseALPN" = xyes
  22922. then :
  22923. printf "%s\n" "#define HAVE_WOLFSSL_USEALPN 1" >>confdefs.h
  22924. fi
  22925. ac_fn_c_check_func "$LINENO" "wolfSSL_DES_ecb_encrypt" "ac_cv_func_wolfSSL_DES_ecb_encrypt"
  22926. if test "x$ac_cv_func_wolfSSL_DES_ecb_encrypt" = xyes
  22927. then :
  22928. printf "%s\n" "#define HAVE_WOLFSSL_DES_ECB_ENCRYPT 1" >>confdefs.h
  22929. WOLFSSL_NTLM=1
  22930. fi
  22931. if test -n "$wolfssllibpath"; then
  22932. if test "x$cross_compiling" != "xyes"; then
  22933. CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$wolfssllibpath"
  22934. export CURL_LIBRARY_PATH
  22935. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $wolfssllibpath to CURL_LIBRARY_PATH" >&5
  22936. printf "%s\n" "$as_me: Added $wolfssllibpath to CURL_LIBRARY_PATH" >&6;}
  22937. fi
  22938. fi
  22939. fi
  22940. fi
  22941. test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
  22942. fi
  22943. if test "x$OPT_BEARSSL" != xno; then
  22944. _cppflags=$CPPFLAGS
  22945. _ldflags=$LDFLAGS
  22946. ssl_msg=
  22947. if test X"$OPT_BEARSSL" != Xno; then
  22948. if test "$OPT_BEARSSL" = "yes"; then
  22949. OPT_BEARSSL=""
  22950. fi
  22951. if test -z "$OPT_BEARSSL" ; then
  22952. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for br_ssl_client_init_full in -lbearssl" >&5
  22953. printf %s "checking for br_ssl_client_init_full in -lbearssl... " >&6; }
  22954. if test ${ac_cv_lib_bearssl_br_ssl_client_init_full+y}
  22955. then :
  22956. printf %s "(cached) " >&6
  22957. else $as_nop
  22958. ac_check_lib_save_LIBS=$LIBS
  22959. LIBS="-lbearssl -lbearssl $LIBS"
  22960. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22961. /* end confdefs.h. */
  22962. #ifdef __cplusplus
  22963. extern "C"
  22964. #endif
  22965. char br_ssl_client_init_full ();
  22966. int main (void)
  22967. {
  22968. return br_ssl_client_init_full ();
  22969. ;
  22970. return 0;
  22971. }
  22972. _ACEOF
  22973. if ac_fn_c_try_link "$LINENO"
  22974. then :
  22975. ac_cv_lib_bearssl_br_ssl_client_init_full=yes
  22976. else $as_nop
  22977. ac_cv_lib_bearssl_br_ssl_client_init_full=no
  22978. fi
  22979. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22980. conftest$ac_exeext conftest.$ac_ext
  22981. LIBS=$ac_check_lib_save_LIBS
  22982. fi
  22983. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bearssl_br_ssl_client_init_full" >&5
  22984. printf "%s\n" "$ac_cv_lib_bearssl_br_ssl_client_init_full" >&6; }
  22985. if test "x$ac_cv_lib_bearssl_br_ssl_client_init_full" = xyes
  22986. then :
  22987. printf "%s\n" "#define USE_BEARSSL 1" >>confdefs.h
  22988. USE_BEARSSL=1
  22989. BEARSSL_ENABLED=1
  22990. USE_BEARSSL="yes"
  22991. ssl_msg="BearSSL"
  22992. test bearssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
  22993. fi
  22994. fi
  22995. addld=""
  22996. addlib=""
  22997. addcflags=""
  22998. bearssllib=""
  22999. if test "x$USE_BEARSSL" != "xyes"; then
  23000. addld=-L$OPT_BEARSSL/lib$libsuff
  23001. addcflags=-I$OPT_BEARSSL/include
  23002. bearssllib=$OPT_BEARSSL/lib$libsuff
  23003. LDFLAGS="$LDFLAGS $addld"
  23004. if test "$addcflags" != "-I/usr/include"; then
  23005. CPPFLAGS="$CPPFLAGS $addcflags"
  23006. fi
  23007. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for br_ssl_client_init_full in -lbearssl" >&5
  23008. printf %s "checking for br_ssl_client_init_full in -lbearssl... " >&6; }
  23009. if test ${ac_cv_lib_bearssl_br_ssl_client_init_full+y}
  23010. then :
  23011. printf %s "(cached) " >&6
  23012. else $as_nop
  23013. ac_check_lib_save_LIBS=$LIBS
  23014. LIBS="-lbearssl -lbearssl $LIBS"
  23015. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23016. /* end confdefs.h. */
  23017. #ifdef __cplusplus
  23018. extern "C"
  23019. #endif
  23020. char br_ssl_client_init_full ();
  23021. int main (void)
  23022. {
  23023. return br_ssl_client_init_full ();
  23024. ;
  23025. return 0;
  23026. }
  23027. _ACEOF
  23028. if ac_fn_c_try_link "$LINENO"
  23029. then :
  23030. ac_cv_lib_bearssl_br_ssl_client_init_full=yes
  23031. else $as_nop
  23032. ac_cv_lib_bearssl_br_ssl_client_init_full=no
  23033. fi
  23034. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23035. conftest$ac_exeext conftest.$ac_ext
  23036. LIBS=$ac_check_lib_save_LIBS
  23037. fi
  23038. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bearssl_br_ssl_client_init_full" >&5
  23039. printf "%s\n" "$ac_cv_lib_bearssl_br_ssl_client_init_full" >&6; }
  23040. if test "x$ac_cv_lib_bearssl_br_ssl_client_init_full" = xyes
  23041. then :
  23042. printf "%s\n" "#define USE_BEARSSL 1" >>confdefs.h
  23043. USE_BEARSSL=1
  23044. BEARSSL_ENABLED=1
  23045. USE_BEARSSL="yes"
  23046. ssl_msg="BearSSL"
  23047. test bearssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
  23048. else $as_nop
  23049. CPPFLAGS=$_cppflags
  23050. LDFLAGS=$_ldflags
  23051. fi
  23052. fi
  23053. if test "x$USE_BEARSSL" = "xyes"; then
  23054. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: detected BearSSL" >&5
  23055. printf "%s\n" "$as_me: detected BearSSL" >&6;}
  23056. check_for_ca_bundle=1
  23057. LIBS="-lbearssl $LIBS"
  23058. if test -n "$bearssllib"; then
  23059. if test "x$cross_compiling" != "xyes"; then
  23060. CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$bearssllib"
  23061. export CURL_LIBRARY_PATH
  23062. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $bearssllib to CURL_LIBRARY_PATH" >&5
  23063. printf "%s\n" "$as_me: Added $bearssllib to CURL_LIBRARY_PATH" >&6;}
  23064. fi
  23065. fi
  23066. fi
  23067. fi
  23068. test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
  23069. fi
  23070. if test "x$OPT_RUSTLS" != xno; then
  23071. _cppflags=$CPPFLAGS
  23072. _ldflags=$LDFLAGS
  23073. ssl_msg=
  23074. if test X"$OPT_RUSTLS" != Xno; then
  23075. if test "$OPT_RUSTLS" = "yes"; then
  23076. OPT_RUSTLS=""
  23077. fi
  23078. if test -z "$OPT_RUSTLS" ; then
  23079. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rustls_client_session_read in -lrustls" >&5
  23080. printf %s "checking for rustls_client_session_read in -lrustls... " >&6; }
  23081. if test ${ac_cv_lib_rustls_rustls_client_session_read+y}
  23082. then :
  23083. printf %s "(cached) " >&6
  23084. else $as_nop
  23085. ac_check_lib_save_LIBS=$LIBS
  23086. LIBS="-lrustls -lpthread -ldl -lm $LIBS"
  23087. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23088. /* end confdefs.h. */
  23089. #ifdef __cplusplus
  23090. extern "C"
  23091. #endif
  23092. char rustls_client_session_read ();
  23093. int main (void)
  23094. {
  23095. return rustls_client_session_read ();
  23096. ;
  23097. return 0;
  23098. }
  23099. _ACEOF
  23100. if ac_fn_c_try_link "$LINENO"
  23101. then :
  23102. ac_cv_lib_rustls_rustls_client_session_read=yes
  23103. else $as_nop
  23104. ac_cv_lib_rustls_rustls_client_session_read=no
  23105. fi
  23106. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23107. conftest$ac_exeext conftest.$ac_ext
  23108. LIBS=$ac_check_lib_save_LIBS
  23109. fi
  23110. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rustls_rustls_client_session_read" >&5
  23111. printf "%s\n" "$ac_cv_lib_rustls_rustls_client_session_read" >&6; }
  23112. if test "x$ac_cv_lib_rustls_rustls_client_session_read" = xyes
  23113. then :
  23114. printf "%s\n" "#define USE_RUSTLS 1" >>confdefs.h
  23115. USE_RUSTLS=1
  23116. RUSTLS_ENABLED=1
  23117. USE_RUSTLS="yes"
  23118. ssl_msg="rustls"
  23119. test rustls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
  23120. fi
  23121. fi
  23122. if test "x$USE_RUSTLS" != "xyes"; then
  23123. addld=-L$OPT_RUSTLS/lib$libsuff
  23124. addcflags=-I$OPT_RUSTLS/include
  23125. rustlslib=$OPT_RUSTLS/lib$libsuff
  23126. LDFLAGS="$LDFLAGS $addld"
  23127. if test "$addcflags" != "-I/usr/include"; then
  23128. CPPFLAGS="$CPPFLAGS $addcflags"
  23129. fi
  23130. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rustls_connection_read in -lrustls" >&5
  23131. printf %s "checking for rustls_connection_read in -lrustls... " >&6; }
  23132. if test ${ac_cv_lib_rustls_rustls_connection_read+y}
  23133. then :
  23134. printf %s "(cached) " >&6
  23135. else $as_nop
  23136. ac_check_lib_save_LIBS=$LIBS
  23137. LIBS="-lrustls -lpthread -ldl -lm $LIBS"
  23138. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23139. /* end confdefs.h. */
  23140. #ifdef __cplusplus
  23141. extern "C"
  23142. #endif
  23143. char rustls_connection_read ();
  23144. int main (void)
  23145. {
  23146. return rustls_connection_read ();
  23147. ;
  23148. return 0;
  23149. }
  23150. _ACEOF
  23151. if ac_fn_c_try_link "$LINENO"
  23152. then :
  23153. ac_cv_lib_rustls_rustls_connection_read=yes
  23154. else $as_nop
  23155. ac_cv_lib_rustls_rustls_connection_read=no
  23156. fi
  23157. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23158. conftest$ac_exeext conftest.$ac_ext
  23159. LIBS=$ac_check_lib_save_LIBS
  23160. fi
  23161. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rustls_rustls_connection_read" >&5
  23162. printf "%s\n" "$ac_cv_lib_rustls_rustls_connection_read" >&6; }
  23163. if test "x$ac_cv_lib_rustls_rustls_connection_read" = xyes
  23164. then :
  23165. printf "%s\n" "#define USE_RUSTLS 1" >>confdefs.h
  23166. USE_RUSTLS=1
  23167. RUSTLS_ENABLED=1
  23168. USE_RUSTLS="yes"
  23169. ssl_msg="rustls"
  23170. test rustls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
  23171. else $as_nop
  23172. as_fn_error $? "--with-rustls was specified but could not find rustls." "$LINENO" 5
  23173. fi
  23174. fi
  23175. if test "x$USE_RUSTLS" = "xyes"; then
  23176. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: detected rustls" >&5
  23177. printf "%s\n" "$as_me: detected rustls" >&6;}
  23178. check_for_ca_bundle=1
  23179. LIBS="-lrustls -lpthread -ldl -lm $LIBS"
  23180. if test -n "$rustlslib"; then
  23181. if test "x$cross_compiling" != "xyes"; then
  23182. CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$rustlslib"
  23183. export CURL_LIBRARY_PATH
  23184. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $rustlslib to CURL_LIBRARY_PATH" >&5
  23185. printf "%s\n" "$as_me: Added $rustlslib to CURL_LIBRARY_PATH" >&6;}
  23186. fi
  23187. fi
  23188. fi
  23189. fi
  23190. test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
  23191. fi
  23192. if test "x$OPT_NSS" != xno; then
  23193. ssl_msg=
  23194. if test X"$OPT_NSS" != Xno; then
  23195. addld=""
  23196. addlib=""
  23197. addcflags=""
  23198. nssprefix=""
  23199. version=""
  23200. if test "x$OPT_NSS" = "xyes"; then
  23201. if test -n "$PKG_CONFIG"; then
  23202. PKGCONFIG="$PKG_CONFIG"
  23203. else
  23204. if test -n "$ac_tool_prefix"; then
  23205. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  23206. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  23207. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  23208. printf %s "checking for $ac_word... " >&6; }
  23209. if test ${ac_cv_path_PKGCONFIG+y}
  23210. then :
  23211. printf %s "(cached) " >&6
  23212. else $as_nop
  23213. case $PKGCONFIG in
  23214. [\\/]* | ?:[\\/]*)
  23215. ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
  23216. ;;
  23217. *)
  23218. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23219. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  23220. for as_dir in $as_dummy
  23221. do
  23222. IFS=$as_save_IFS
  23223. case $as_dir in #(((
  23224. '') as_dir=./ ;;
  23225. */) ;;
  23226. *) as_dir=$as_dir/ ;;
  23227. esac
  23228. for ac_exec_ext in '' $ac_executable_extensions; do
  23229. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  23230. ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  23231. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  23232. break 2
  23233. fi
  23234. done
  23235. done
  23236. IFS=$as_save_IFS
  23237. ;;
  23238. esac
  23239. fi
  23240. PKGCONFIG=$ac_cv_path_PKGCONFIG
  23241. if test -n "$PKGCONFIG"; then
  23242. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
  23243. printf "%s\n" "$PKGCONFIG" >&6; }
  23244. else
  23245. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23246. printf "%s\n" "no" >&6; }
  23247. fi
  23248. fi
  23249. if test -z "$ac_cv_path_PKGCONFIG"; then
  23250. ac_pt_PKGCONFIG=$PKGCONFIG
  23251. # Extract the first word of "pkg-config", so it can be a program name with args.
  23252. set dummy pkg-config; ac_word=$2
  23253. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  23254. printf %s "checking for $ac_word... " >&6; }
  23255. if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
  23256. then :
  23257. printf %s "(cached) " >&6
  23258. else $as_nop
  23259. case $ac_pt_PKGCONFIG in
  23260. [\\/]* | ?:[\\/]*)
  23261. ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
  23262. ;;
  23263. *)
  23264. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23265. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  23266. for as_dir in $as_dummy
  23267. do
  23268. IFS=$as_save_IFS
  23269. case $as_dir in #(((
  23270. '') as_dir=./ ;;
  23271. */) ;;
  23272. *) as_dir=$as_dir/ ;;
  23273. esac
  23274. for ac_exec_ext in '' $ac_executable_extensions; do
  23275. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  23276. ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  23277. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  23278. break 2
  23279. fi
  23280. done
  23281. done
  23282. IFS=$as_save_IFS
  23283. ;;
  23284. esac
  23285. fi
  23286. ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
  23287. if test -n "$ac_pt_PKGCONFIG"; then
  23288. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
  23289. printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
  23290. else
  23291. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23292. printf "%s\n" "no" >&6; }
  23293. fi
  23294. if test "x$ac_pt_PKGCONFIG" = x; then
  23295. PKGCONFIG="no"
  23296. else
  23297. case $cross_compiling:$ac_tool_warned in
  23298. yes:)
  23299. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  23300. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  23301. ac_tool_warned=yes ;;
  23302. esac
  23303. PKGCONFIG=$ac_pt_PKGCONFIG
  23304. fi
  23305. else
  23306. PKGCONFIG="$ac_cv_path_PKGCONFIG"
  23307. fi
  23308. fi
  23309. if test "x$PKGCONFIG" != "xno"; then
  23310. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nss options with pkg-config" >&5
  23311. printf %s "checking for nss options with pkg-config... " >&6; }
  23312. itexists=`
  23313. if test -n ""; then
  23314. PKG_CONFIG_LIBDIR=""
  23315. export PKG_CONFIG_LIBDIR
  23316. fi
  23317. $PKGCONFIG --exists nss >/dev/null 2>&1 && echo 1`
  23318. if test -z "$itexists"; then
  23319. PKGCONFIG="no"
  23320. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23321. printf "%s\n" "no" >&6; }
  23322. else
  23323. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
  23324. printf "%s\n" "found" >&6; }
  23325. fi
  23326. fi
  23327. if test "$PKGCONFIG" != "no" ; then
  23328. addlib=`$PKGCONFIG --libs nss`
  23329. addcflags=`$PKGCONFIG --cflags nss`
  23330. version=`$PKGCONFIG --modversion nss`
  23331. nssprefix=`$PKGCONFIG --variable=prefix nss`
  23332. else
  23333. check=`nss-config --version 2>/dev/null`
  23334. if test -n "$check"; then
  23335. addlib=`nss-config --libs`
  23336. addcflags=`nss-config --cflags`
  23337. version=`nss-config --version`
  23338. nssprefix=`nss-config --prefix`
  23339. else
  23340. addlib="-lnss3"
  23341. addcflags=""
  23342. version="unknown"
  23343. fi
  23344. fi
  23345. else
  23346. NSS_PCDIR="$OPT_NSS/lib/pkgconfig"
  23347. if test -f "$NSS_PCDIR/nss.pc"; then
  23348. if test -n "$PKG_CONFIG"; then
  23349. PKGCONFIG="$PKG_CONFIG"
  23350. else
  23351. if test -n "$ac_tool_prefix"; then
  23352. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  23353. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  23354. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  23355. printf %s "checking for $ac_word... " >&6; }
  23356. if test ${ac_cv_path_PKGCONFIG+y}
  23357. then :
  23358. printf %s "(cached) " >&6
  23359. else $as_nop
  23360. case $PKGCONFIG in
  23361. [\\/]* | ?:[\\/]*)
  23362. ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
  23363. ;;
  23364. *)
  23365. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23366. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  23367. for as_dir in $as_dummy
  23368. do
  23369. IFS=$as_save_IFS
  23370. case $as_dir in #(((
  23371. '') as_dir=./ ;;
  23372. */) ;;
  23373. *) as_dir=$as_dir/ ;;
  23374. esac
  23375. for ac_exec_ext in '' $ac_executable_extensions; do
  23376. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  23377. ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  23378. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  23379. break 2
  23380. fi
  23381. done
  23382. done
  23383. IFS=$as_save_IFS
  23384. ;;
  23385. esac
  23386. fi
  23387. PKGCONFIG=$ac_cv_path_PKGCONFIG
  23388. if test -n "$PKGCONFIG"; then
  23389. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
  23390. printf "%s\n" "$PKGCONFIG" >&6; }
  23391. else
  23392. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23393. printf "%s\n" "no" >&6; }
  23394. fi
  23395. fi
  23396. if test -z "$ac_cv_path_PKGCONFIG"; then
  23397. ac_pt_PKGCONFIG=$PKGCONFIG
  23398. # Extract the first word of "pkg-config", so it can be a program name with args.
  23399. set dummy pkg-config; ac_word=$2
  23400. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  23401. printf %s "checking for $ac_word... " >&6; }
  23402. if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
  23403. then :
  23404. printf %s "(cached) " >&6
  23405. else $as_nop
  23406. case $ac_pt_PKGCONFIG in
  23407. [\\/]* | ?:[\\/]*)
  23408. ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
  23409. ;;
  23410. *)
  23411. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23412. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  23413. for as_dir in $as_dummy
  23414. do
  23415. IFS=$as_save_IFS
  23416. case $as_dir in #(((
  23417. '') as_dir=./ ;;
  23418. */) ;;
  23419. *) as_dir=$as_dir/ ;;
  23420. esac
  23421. for ac_exec_ext in '' $ac_executable_extensions; do
  23422. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  23423. ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  23424. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  23425. break 2
  23426. fi
  23427. done
  23428. done
  23429. IFS=$as_save_IFS
  23430. ;;
  23431. esac
  23432. fi
  23433. ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
  23434. if test -n "$ac_pt_PKGCONFIG"; then
  23435. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
  23436. printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
  23437. else
  23438. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23439. printf "%s\n" "no" >&6; }
  23440. fi
  23441. if test "x$ac_pt_PKGCONFIG" = x; then
  23442. PKGCONFIG="no"
  23443. else
  23444. case $cross_compiling:$ac_tool_warned in
  23445. yes:)
  23446. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  23447. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  23448. ac_tool_warned=yes ;;
  23449. esac
  23450. PKGCONFIG=$ac_pt_PKGCONFIG
  23451. fi
  23452. else
  23453. PKGCONFIG="$ac_cv_path_PKGCONFIG"
  23454. fi
  23455. fi
  23456. if test "x$PKGCONFIG" != "xno"; then
  23457. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nss options with pkg-config" >&5
  23458. printf %s "checking for nss options with pkg-config... " >&6; }
  23459. itexists=`
  23460. if test -n "$NSS_PCDIR"; then
  23461. PKG_CONFIG_LIBDIR="$NSS_PCDIR"
  23462. export PKG_CONFIG_LIBDIR
  23463. fi
  23464. $PKGCONFIG --exists nss >/dev/null 2>&1 && echo 1`
  23465. if test -z "$itexists"; then
  23466. PKGCONFIG="no"
  23467. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23468. printf "%s\n" "no" >&6; }
  23469. else
  23470. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
  23471. printf "%s\n" "found" >&6; }
  23472. fi
  23473. fi
  23474. if test "$PKGCONFIG" != "no" ; then
  23475. addld=`
  23476. if test -n "$NSS_PCDIR"; then
  23477. PKG_CONFIG_LIBDIR="$NSS_PCDIR"
  23478. export PKG_CONFIG_LIBDIR
  23479. fi
  23480. $PKGCONFIG --libs-only-L nss`
  23481. addlib=`
  23482. if test -n "$NSS_PCDIR"; then
  23483. PKG_CONFIG_LIBDIR="$NSS_PCDIR"
  23484. export PKG_CONFIG_LIBDIR
  23485. fi
  23486. $PKGCONFIG --libs-only-l nss`
  23487. addcflags=`
  23488. if test -n "$NSS_PCDIR"; then
  23489. PKG_CONFIG_LIBDIR="$NSS_PCDIR"
  23490. export PKG_CONFIG_LIBDIR
  23491. fi
  23492. $PKGCONFIG --cflags nss`
  23493. version=`
  23494. if test -n "$NSS_PCDIR"; then
  23495. PKG_CONFIG_LIBDIR="$NSS_PCDIR"
  23496. export PKG_CONFIG_LIBDIR
  23497. fi
  23498. $PKGCONFIG --modversion nss`
  23499. nssprefix=`
  23500. if test -n "$NSS_PCDIR"; then
  23501. PKG_CONFIG_LIBDIR="$NSS_PCDIR"
  23502. export PKG_CONFIG_LIBDIR
  23503. fi
  23504. $PKGCONFIG --variable=prefix nss`
  23505. fi
  23506. fi
  23507. fi
  23508. if test -z "$addlib"; then
  23509. # Without pkg-config, we'll kludge in some defaults
  23510. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Using hard-wired libraries and compilation flags for NSS." >&5
  23511. printf "%s\n" "$as_me: WARNING: Using hard-wired libraries and compilation flags for NSS." >&2;}
  23512. addld="-L$OPT_NSS/lib"
  23513. addlib="-lssl3 -lsmime3 -lnss3 -lplds4 -lplc4 -lnspr4"
  23514. addcflags="-I$OPT_NSS/include"
  23515. version="unknown"
  23516. nssprefix=$OPT_NSS
  23517. fi
  23518. CLEANLDFLAGS="$LDFLAGS"
  23519. CLEANLIBS="$LIBS"
  23520. CLEANCPPFLAGS="$CPPFLAGS"
  23521. LDFLAGS="$addld $LDFLAGS"
  23522. LIBS="$addlib $LIBS"
  23523. if test "$addcflags" != "-I/usr/include"; then
  23524. CPPFLAGS="$CPPFLAGS $addcflags"
  23525. fi
  23526. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SSL_VersionRangeSet in -lnss3" >&5
  23527. printf %s "checking for SSL_VersionRangeSet in -lnss3... " >&6; }
  23528. if test ${ac_cv_lib_nss3_SSL_VersionRangeSet+y}
  23529. then :
  23530. printf %s "(cached) " >&6
  23531. else $as_nop
  23532. ac_check_lib_save_LIBS=$LIBS
  23533. LIBS="-lnss3 $LIBS"
  23534. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23535. /* end confdefs.h. */
  23536. #ifdef __cplusplus
  23537. extern "C"
  23538. #endif
  23539. char SSL_VersionRangeSet ();
  23540. int main (void)
  23541. {
  23542. return SSL_VersionRangeSet ();
  23543. ;
  23544. return 0;
  23545. }
  23546. _ACEOF
  23547. if ac_fn_c_try_link "$LINENO"
  23548. then :
  23549. ac_cv_lib_nss3_SSL_VersionRangeSet=yes
  23550. else $as_nop
  23551. ac_cv_lib_nss3_SSL_VersionRangeSet=no
  23552. fi
  23553. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23554. conftest$ac_exeext conftest.$ac_ext
  23555. LIBS=$ac_check_lib_save_LIBS
  23556. fi
  23557. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_SSL_VersionRangeSet" >&5
  23558. printf "%s\n" "$ac_cv_lib_nss3_SSL_VersionRangeSet" >&6; }
  23559. if test "x$ac_cv_lib_nss3_SSL_VersionRangeSet" = xyes
  23560. then :
  23561. printf "%s\n" "#define USE_NSS 1" >>confdefs.h
  23562. USE_NSS=1
  23563. USE_NSS="yes"
  23564. NSS_ENABLED=1
  23565. ssl_msg="NSS"
  23566. test nss != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
  23567. else $as_nop
  23568. LDFLAGS="$CLEANLDFLAGS"
  23569. LIBS="$CLEANLIBS"
  23570. CPPFLAGS="$CLEANCPPFLAGS"
  23571. fi
  23572. if test "x$USE_NSS" = "xyes"; then
  23573. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: detected NSS version $version" >&5
  23574. printf "%s\n" "$as_me: detected NSS version $version" >&6;}
  23575. ac_fn_c_check_func "$LINENO" "PK11_CreateManagedGenericObject" "ac_cv_func_PK11_CreateManagedGenericObject"
  23576. if test "x$ac_cv_func_PK11_CreateManagedGenericObject" = xyes
  23577. then :
  23578. printf "%s\n" "#define HAVE_PK11_CREATEMANAGEDGENERICOBJECT 1" >>confdefs.h
  23579. fi
  23580. NSS_LIBS=$addlib
  23581. if test "x$cross_compiling" != "xyes"; then
  23582. CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$nssprefix/lib$libsuff"
  23583. export CURL_LIBRARY_PATH
  23584. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $nssprefix/lib$libsuff to CURL_LIBRARY_PATH" >&5
  23585. printf "%s\n" "$as_me: Added $nssprefix/lib$libsuff to CURL_LIBRARY_PATH" >&6;}
  23586. fi
  23587. fi
  23588. fi
  23589. test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
  23590. fi
  23591. if test "x$USE_WIN32_CRYPTO" = "x1" -o "x$USE_SCHANNEL" = "x1"; then
  23592. LIBS="-ladvapi32 -lcrypt32 $LIBS"
  23593. fi
  23594. if test "x$curl_cv_native_windows" = "xyes" &&
  23595. test "x$curl_mingw_original" = "xno"; then
  23596. LIBS="-lbcrypt $LIBS"
  23597. fi
  23598. case "x$OPENSSL_ENABLED$GNUTLS_ENABLED$NSS_ENABLED$MBEDTLS_ENABLED$WOLFSSL_ENABLED$SCHANNEL_ENABLED$SECURETRANSPORT_ENABLED$BEARSSL_ENABLED$RUSTLS_ENABLED$SSL_DISABLED"
  23599. in
  23600. x)
  23601. as_fn_error $? "TLS not detected, you will not be able to use HTTPS, FTPS, NTLM and more.
  23602. Use --with-openssl, --with-gnutls, --with-wolfssl, --with-mbedtls, --with-nss, --with-schannel, --with-secure-transport, --with-amissl, --with-bearssl or --with-rustls to address this." "$LINENO" 5
  23603. ;;
  23604. x1)
  23605. # one SSL backend is enabled
  23606. SSL_ENABLED="1"
  23607. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: built with one SSL backend" >&5
  23608. printf "%s\n" "$as_me: built with one SSL backend" >&6;}
  23609. ;;
  23610. xD)
  23611. # explicitly built without TLS
  23612. ;;
  23613. *)
  23614. # more than one SSL backend is enabled
  23615. SSL_ENABLED="1"
  23616. CURL_WITH_MULTI_SSL="1"
  23617. printf "%s\n" "#define CURL_WITH_MULTI_SSL 1" >>confdefs.h
  23618. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: built with multiple SSL backends" >&5
  23619. printf "%s\n" "$as_me: built with multiple SSL backends" >&6;}
  23620. ;;
  23621. esac
  23622. if test -n "$ssl_backends"; then
  23623. curl_ssl_msg="enabled ($ssl_backends)"
  23624. fi
  23625. if test no = "$VALID_DEFAULT_SSL_BACKEND"
  23626. then
  23627. if test -n "$SSL_ENABLED"
  23628. then
  23629. as_fn_error $? "Default SSL backend $DEFAULT_SSL_BACKEND not enabled!" "$LINENO" 5
  23630. else
  23631. as_fn_error $? "Default SSL backend requires SSL!" "$LINENO" 5
  23632. fi
  23633. elif test yes = "$VALID_DEFAULT_SSL_BACKEND"
  23634. then
  23635. printf "%s\n" "#define CURL_DEFAULT_SSL_BACKEND \"$DEFAULT_SSL_BACKEND\"" >>confdefs.h
  23636. fi
  23637. if test -n "$check_for_ca_bundle"; then
  23638. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking default CA cert bundle/path" >&5
  23639. printf %s "checking default CA cert bundle/path... " >&6; }
  23640. # Check whether --with-ca-bundle was given.
  23641. if test ${with_ca_bundle+y}
  23642. then :
  23643. withval=$with_ca_bundle;
  23644. want_ca="$withval"
  23645. if test "x$want_ca" = "xyes"; then
  23646. as_fn_error $? "--with-ca-bundle=FILE requires a path to the CA bundle" "$LINENO" 5
  23647. fi
  23648. else $as_nop
  23649. want_ca="unset"
  23650. fi
  23651. # Check whether --with-ca-path was given.
  23652. if test ${with_ca_path+y}
  23653. then :
  23654. withval=$with_ca_path;
  23655. want_capath="$withval"
  23656. if test "x$want_capath" = "xyes"; then
  23657. as_fn_error $? "--with-ca-path=DIRECTORY requires a path to the CA path directory" "$LINENO" 5
  23658. fi
  23659. else $as_nop
  23660. want_capath="unset"
  23661. fi
  23662. ca_warning=" (warning: certs not found)"
  23663. capath_warning=" (warning: certs not found)"
  23664. check_capath=""
  23665. if test "x$want_ca" != "xno" -a "x$want_ca" != "xunset" -a \
  23666. "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
  23667. ca="$want_ca"
  23668. capath="$want_capath"
  23669. elif test "x$want_ca" != "xno" -a "x$want_ca" != "xunset"; then
  23670. ca="$want_ca"
  23671. capath="no"
  23672. elif test "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
  23673. if test "x$OPENSSL_ENABLED" != "x1" -a "x$GNUTLS_ENABLED" != "x1" -a "x$MBEDTLS_ENABLED" != "x1"; then
  23674. as_fn_error $? "--with-ca-path only works with OpenSSL, GnuTLS or mbedTLS" "$LINENO" 5
  23675. fi
  23676. capath="$want_capath"
  23677. ca="no"
  23678. else
  23679. ca="no"
  23680. capath="no"
  23681. if test "x$cross_compiling" != "xyes"; then
  23682. if test "x$want_ca" = "xunset"; then
  23683. if test "x$prefix" != xNONE; then
  23684. cac="${prefix}/share/curl/curl-ca-bundle.crt"
  23685. else
  23686. cac="$ac_default_prefix/share/curl/curl-ca-bundle.crt"
  23687. fi
  23688. for a in /etc/ssl/certs/ca-certificates.crt \
  23689. /etc/pki/tls/certs/ca-bundle.crt \
  23690. /usr/share/ssl/certs/ca-bundle.crt \
  23691. /usr/local/share/certs/ca-root-nss.crt \
  23692. /etc/ssl/cert.pem \
  23693. "$cac"; do
  23694. if test -f "$a"; then
  23695. ca="$a"
  23696. break
  23697. fi
  23698. done
  23699. fi
  23700. if test "x$want_capath" = "xunset" -a "x$ca" = "xno" -a \
  23701. "x$OPENSSL_ENABLED" = "x1"; then
  23702. check_capath="/etc/ssl/certs/"
  23703. fi
  23704. else
  23705. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: skipped the ca-cert path detection when cross-compiling" >&5
  23706. printf "%s\n" "$as_me: WARNING: skipped the ca-cert path detection when cross-compiling" >&2;}
  23707. fi
  23708. fi
  23709. if test "x$ca" = "xno" || test -f "$ca"; then
  23710. ca_warning=""
  23711. fi
  23712. if test "x$capath" != "xno"; then
  23713. check_capath="$capath"
  23714. fi
  23715. if test ! -z "$check_capath"; then
  23716. for a in "$check_capath"; do
  23717. if test -d "$a" && ls "$a"/[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f].0 >/dev/null 2>/dev/null; then
  23718. if test "x$capath" = "xno"; then
  23719. capath="$a"
  23720. fi
  23721. capath_warning=""
  23722. break
  23723. fi
  23724. done
  23725. fi
  23726. if test "x$capath" = "xno"; then
  23727. capath_warning=""
  23728. fi
  23729. if test "x$ca" != "xno"; then
  23730. CURL_CA_BUNDLE='"'$ca'"'
  23731. printf "%s\n" "#define CURL_CA_BUNDLE \"$ca\"" >>confdefs.h
  23732. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ca" >&5
  23733. printf "%s\n" "$ca" >&6; }
  23734. fi
  23735. if test "x$capath" != "xno"; then
  23736. CURL_CA_PATH="\"$capath\""
  23737. printf "%s\n" "#define CURL_CA_PATH \"$capath\"" >>confdefs.h
  23738. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $capath (capath)" >&5
  23739. printf "%s\n" "$capath (capath)" >&6; }
  23740. fi
  23741. if test "x$ca" = "xno" && test "x$capath" = "xno"; then
  23742. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23743. printf "%s\n" "no" >&6; }
  23744. fi
  23745. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use builtin CA store of SSL library" >&5
  23746. printf %s "checking whether to use builtin CA store of SSL library... " >&6; }
  23747. # Check whether --with-ca-fallback was given.
  23748. if test ${with_ca_fallback+y}
  23749. then :
  23750. withval=$with_ca_fallback;
  23751. if test "x$with_ca_fallback" != "xyes" -a "x$with_ca_fallback" != "xno"; then
  23752. as_fn_error $? "--with-ca-fallback only allows yes or no as parameter" "$LINENO" 5
  23753. fi
  23754. else $as_nop
  23755. with_ca_fallback="no"
  23756. fi
  23757. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_ca_fallback" >&5
  23758. printf "%s\n" "$with_ca_fallback" >&6; }
  23759. if test "x$with_ca_fallback" = "xyes"; then
  23760. if test "x$OPENSSL_ENABLED" != "x1" -a "x$GNUTLS_ENABLED" != "x1"; then
  23761. as_fn_error $? "--with-ca-fallback only works with OpenSSL or GnuTLS" "$LINENO" 5
  23762. fi
  23763. printf "%s\n" "#define CURL_CA_FALLBACK 1" >>confdefs.h
  23764. fi
  23765. fi
  23766. # Check whether --with-libpsl was given.
  23767. if test ${with_libpsl+y}
  23768. then :
  23769. withval=$with_libpsl; with_libpsl=$withval
  23770. else $as_nop
  23771. with_libpsl=yes
  23772. fi
  23773. if test $with_libpsl != "no"; then
  23774. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing psl_builtin" >&5
  23775. printf %s "checking for library containing psl_builtin... " >&6; }
  23776. if test ${ac_cv_search_psl_builtin+y}
  23777. then :
  23778. printf %s "(cached) " >&6
  23779. else $as_nop
  23780. ac_func_search_save_LIBS=$LIBS
  23781. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23782. /* end confdefs.h. */
  23783. #ifdef __cplusplus
  23784. extern "C"
  23785. #endif
  23786. char psl_builtin ();
  23787. int main (void)
  23788. {
  23789. return psl_builtin ();
  23790. ;
  23791. return 0;
  23792. }
  23793. _ACEOF
  23794. for ac_lib in '' psl
  23795. do
  23796. if test -z "$ac_lib"; then
  23797. ac_res="none required"
  23798. else
  23799. ac_res=-l$ac_lib
  23800. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  23801. fi
  23802. if ac_fn_c_try_link "$LINENO"
  23803. then :
  23804. ac_cv_search_psl_builtin=$ac_res
  23805. fi
  23806. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23807. conftest$ac_exeext
  23808. if test ${ac_cv_search_psl_builtin+y}
  23809. then :
  23810. break
  23811. fi
  23812. done
  23813. if test ${ac_cv_search_psl_builtin+y}
  23814. then :
  23815. else $as_nop
  23816. ac_cv_search_psl_builtin=no
  23817. fi
  23818. rm conftest.$ac_ext
  23819. LIBS=$ac_func_search_save_LIBS
  23820. fi
  23821. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_psl_builtin" >&5
  23822. printf "%s\n" "$ac_cv_search_psl_builtin" >&6; }
  23823. ac_res=$ac_cv_search_psl_builtin
  23824. if test "$ac_res" != no
  23825. then :
  23826. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  23827. curl_psl_msg="enabled";
  23828. printf "%s\n" "#define USE_LIBPSL 1" >>confdefs.h
  23829. else $as_nop
  23830. curl_psl_msg="no (libpsl not found)";
  23831. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: libpsl was not found" >&5
  23832. printf "%s\n" "$as_me: WARNING: libpsl was not found" >&2;}
  23833. fi
  23834. fi
  23835. if test "$curl_psl_msg" = "enabled"; then
  23836. USE_LIBPSL_TRUE=
  23837. USE_LIBPSL_FALSE='#'
  23838. else
  23839. USE_LIBPSL_TRUE='#'
  23840. USE_LIBPSL_FALSE=
  23841. fi
  23842. # Check whether --with-libgsasl was given.
  23843. if test ${with_libgsasl+y}
  23844. then :
  23845. withval=$with_libgsasl; with_libgsasl=$withval
  23846. else $as_nop
  23847. with_libgsasl=yes
  23848. fi
  23849. if test $with_libgsasl != "no"; then
  23850. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gsasl_init" >&5
  23851. printf %s "checking for library containing gsasl_init... " >&6; }
  23852. if test ${ac_cv_search_gsasl_init+y}
  23853. then :
  23854. printf %s "(cached) " >&6
  23855. else $as_nop
  23856. ac_func_search_save_LIBS=$LIBS
  23857. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23858. /* end confdefs.h. */
  23859. #ifdef __cplusplus
  23860. extern "C"
  23861. #endif
  23862. char gsasl_init ();
  23863. int main (void)
  23864. {
  23865. return gsasl_init ();
  23866. ;
  23867. return 0;
  23868. }
  23869. _ACEOF
  23870. for ac_lib in '' gsasl
  23871. do
  23872. if test -z "$ac_lib"; then
  23873. ac_res="none required"
  23874. else
  23875. ac_res=-l$ac_lib
  23876. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  23877. fi
  23878. if ac_fn_c_try_link "$LINENO"
  23879. then :
  23880. ac_cv_search_gsasl_init=$ac_res
  23881. fi
  23882. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23883. conftest$ac_exeext
  23884. if test ${ac_cv_search_gsasl_init+y}
  23885. then :
  23886. break
  23887. fi
  23888. done
  23889. if test ${ac_cv_search_gsasl_init+y}
  23890. then :
  23891. else $as_nop
  23892. ac_cv_search_gsasl_init=no
  23893. fi
  23894. rm conftest.$ac_ext
  23895. LIBS=$ac_func_search_save_LIBS
  23896. fi
  23897. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gsasl_init" >&5
  23898. printf "%s\n" "$ac_cv_search_gsasl_init" >&6; }
  23899. ac_res=$ac_cv_search_gsasl_init
  23900. if test "$ac_res" != no
  23901. then :
  23902. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  23903. curl_gsasl_msg="enabled";
  23904. printf "%s\n" "#define USE_GSASL 1" >>confdefs.h
  23905. else $as_nop
  23906. curl_gsasl_msg="no (libgsasl not found)";
  23907. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: libgsasl was not found" >&5
  23908. printf "%s\n" "$as_me: WARNING: libgsasl was not found" >&2;}
  23909. fi
  23910. fi
  23911. if test "$curl_gsasl_msg" = "enabled"; then
  23912. USE_GSASL_TRUE=
  23913. USE_GSASL_FALSE='#'
  23914. else
  23915. USE_GSASL_TRUE='#'
  23916. USE_GSASL_FALSE=
  23917. fi
  23918. # Check whether --with-libmetalink was given.
  23919. if test ${with_libmetalink+y}
  23920. then :
  23921. withval=$with_libmetalink; as_fn_error $? "--with-libmetalink no longer works!" "$LINENO" 5
  23922. fi
  23923. OPT_LIBSSH2=off
  23924. # Check whether --with-libssh2 was given.
  23925. if test ${with_libssh2+y}
  23926. then :
  23927. withval=$with_libssh2; OPT_LIBSSH2=$withval
  23928. else $as_nop
  23929. OPT_LIBSSH2=no
  23930. fi
  23931. OPT_LIBSSH=off
  23932. # Check whether --with-libssh was given.
  23933. if test ${with_libssh+y}
  23934. then :
  23935. withval=$with_libssh; OPT_LIBSSH=$withval
  23936. else $as_nop
  23937. OPT_LIBSSH=no
  23938. fi
  23939. OPT_WOLFSSH=off
  23940. # Check whether --with-wolfssh was given.
  23941. if test ${with_wolfssh+y}
  23942. then :
  23943. withval=$with_wolfssh; OPT_WOLFSSH=$withval
  23944. else $as_nop
  23945. OPT_WOLFSSH=no
  23946. fi
  23947. if test X"$OPT_LIBSSH2" != Xno; then
  23948. CLEANLDFLAGS="$LDFLAGS"
  23949. CLEANCPPFLAGS="$CPPFLAGS"
  23950. CLEANLIBS="$LIBS"
  23951. case "$OPT_LIBSSH2" in
  23952. yes)
  23953. if test -n "$PKG_CONFIG"; then
  23954. PKGCONFIG="$PKG_CONFIG"
  23955. else
  23956. if test -n "$ac_tool_prefix"; then
  23957. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  23958. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  23959. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  23960. printf %s "checking for $ac_word... " >&6; }
  23961. if test ${ac_cv_path_PKGCONFIG+y}
  23962. then :
  23963. printf %s "(cached) " >&6
  23964. else $as_nop
  23965. case $PKGCONFIG in
  23966. [\\/]* | ?:[\\/]*)
  23967. ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
  23968. ;;
  23969. *)
  23970. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23971. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  23972. for as_dir in $as_dummy
  23973. do
  23974. IFS=$as_save_IFS
  23975. case $as_dir in #(((
  23976. '') as_dir=./ ;;
  23977. */) ;;
  23978. *) as_dir=$as_dir/ ;;
  23979. esac
  23980. for ac_exec_ext in '' $ac_executable_extensions; do
  23981. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  23982. ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  23983. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  23984. break 2
  23985. fi
  23986. done
  23987. done
  23988. IFS=$as_save_IFS
  23989. ;;
  23990. esac
  23991. fi
  23992. PKGCONFIG=$ac_cv_path_PKGCONFIG
  23993. if test -n "$PKGCONFIG"; then
  23994. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
  23995. printf "%s\n" "$PKGCONFIG" >&6; }
  23996. else
  23997. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23998. printf "%s\n" "no" >&6; }
  23999. fi
  24000. fi
  24001. if test -z "$ac_cv_path_PKGCONFIG"; then
  24002. ac_pt_PKGCONFIG=$PKGCONFIG
  24003. # Extract the first word of "pkg-config", so it can be a program name with args.
  24004. set dummy pkg-config; ac_word=$2
  24005. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24006. printf %s "checking for $ac_word... " >&6; }
  24007. if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
  24008. then :
  24009. printf %s "(cached) " >&6
  24010. else $as_nop
  24011. case $ac_pt_PKGCONFIG in
  24012. [\\/]* | ?:[\\/]*)
  24013. ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
  24014. ;;
  24015. *)
  24016. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24017. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  24018. for as_dir in $as_dummy
  24019. do
  24020. IFS=$as_save_IFS
  24021. case $as_dir in #(((
  24022. '') as_dir=./ ;;
  24023. */) ;;
  24024. *) as_dir=$as_dir/ ;;
  24025. esac
  24026. for ac_exec_ext in '' $ac_executable_extensions; do
  24027. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  24028. ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  24029. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  24030. break 2
  24031. fi
  24032. done
  24033. done
  24034. IFS=$as_save_IFS
  24035. ;;
  24036. esac
  24037. fi
  24038. ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
  24039. if test -n "$ac_pt_PKGCONFIG"; then
  24040. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
  24041. printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
  24042. else
  24043. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24044. printf "%s\n" "no" >&6; }
  24045. fi
  24046. if test "x$ac_pt_PKGCONFIG" = x; then
  24047. PKGCONFIG="no"
  24048. else
  24049. case $cross_compiling:$ac_tool_warned in
  24050. yes:)
  24051. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  24052. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  24053. ac_tool_warned=yes ;;
  24054. esac
  24055. PKGCONFIG=$ac_pt_PKGCONFIG
  24056. fi
  24057. else
  24058. PKGCONFIG="$ac_cv_path_PKGCONFIG"
  24059. fi
  24060. fi
  24061. if test "x$PKGCONFIG" != "xno"; then
  24062. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libssh2 options with pkg-config" >&5
  24063. printf %s "checking for libssh2 options with pkg-config... " >&6; }
  24064. itexists=`
  24065. if test -n ""; then
  24066. PKG_CONFIG_LIBDIR=""
  24067. export PKG_CONFIG_LIBDIR
  24068. fi
  24069. $PKGCONFIG --exists libssh2 >/dev/null 2>&1 && echo 1`
  24070. if test -z "$itexists"; then
  24071. PKGCONFIG="no"
  24072. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24073. printf "%s\n" "no" >&6; }
  24074. else
  24075. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
  24076. printf "%s\n" "found" >&6; }
  24077. fi
  24078. fi
  24079. if test "$PKGCONFIG" != "no" ; then
  24080. LIB_SSH2=`$PKGCONFIG --libs libssh2`
  24081. LD_SSH2=`$PKGCONFIG --libs-only-L libssh2`
  24082. CPP_SSH2=`$PKGCONFIG --cflags-only-I libssh2`
  24083. version=`$PKGCONFIG --modversion libssh2`
  24084. DIR_SSH2=`echo $LD_SSH2 | $SED -e 's/^-L//'`
  24085. fi
  24086. ;;
  24087. off)
  24088. ;;
  24089. *)
  24090. PREFIX_SSH2=$OPT_LIBSSH2
  24091. ;;
  24092. esac
  24093. if test -n "$PREFIX_SSH2"; then
  24094. LIB_SSH2="-lssh2"
  24095. LD_SSH2=-L${PREFIX_SSH2}/lib$libsuff
  24096. CPP_SSH2=-I${PREFIX_SSH2}/include
  24097. DIR_SSH2=${PREFIX_SSH2}/lib$libsuff
  24098. fi
  24099. LDFLAGS="$LDFLAGS $LD_SSH2"
  24100. CPPFLAGS="$CPPFLAGS $CPP_SSH2"
  24101. LIBS="$LIB_SSH2 $LIBS"
  24102. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libssh2_session_block_directions in -lssh2" >&5
  24103. printf %s "checking for libssh2_session_block_directions in -lssh2... " >&6; }
  24104. if test ${ac_cv_lib_ssh2_libssh2_session_block_directions+y}
  24105. then :
  24106. printf %s "(cached) " >&6
  24107. else $as_nop
  24108. ac_check_lib_save_LIBS=$LIBS
  24109. LIBS="-lssh2 $LIBS"
  24110. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24111. /* end confdefs.h. */
  24112. #ifdef __cplusplus
  24113. extern "C"
  24114. #endif
  24115. char libssh2_session_block_directions ();
  24116. int main (void)
  24117. {
  24118. return libssh2_session_block_directions ();
  24119. ;
  24120. return 0;
  24121. }
  24122. _ACEOF
  24123. if ac_fn_c_try_link "$LINENO"
  24124. then :
  24125. ac_cv_lib_ssh2_libssh2_session_block_directions=yes
  24126. else $as_nop
  24127. ac_cv_lib_ssh2_libssh2_session_block_directions=no
  24128. fi
  24129. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24130. conftest$ac_exeext conftest.$ac_ext
  24131. LIBS=$ac_check_lib_save_LIBS
  24132. fi
  24133. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssh2_libssh2_session_block_directions" >&5
  24134. printf "%s\n" "$ac_cv_lib_ssh2_libssh2_session_block_directions" >&6; }
  24135. if test "x$ac_cv_lib_ssh2_libssh2_session_block_directions" = xyes
  24136. then :
  24137. printf "%s\n" "#define HAVE_LIBSSH2 1" >>confdefs.h
  24138. LIBS="-lssh2 $LIBS"
  24139. fi
  24140. for ac_header in libssh2.h
  24141. do :
  24142. ac_fn_c_check_header_compile "$LINENO" "libssh2.h" "ac_cv_header_libssh2_h" "$ac_includes_default"
  24143. if test "x$ac_cv_header_libssh2_h" = xyes
  24144. then :
  24145. printf "%s\n" "#define HAVE_LIBSSH2_H 1" >>confdefs.h
  24146. curl_ssh_msg="enabled (libSSH2)"
  24147. LIBSSH2_ENABLED=1
  24148. printf "%s\n" "#define USE_LIBSSH2 1" >>confdefs.h
  24149. USE_LIBSSH2=1
  24150. fi
  24151. done
  24152. if test X"$OPT_LIBSSH2" != Xoff &&
  24153. test "$LIBSSH2_ENABLED" != "1"; then
  24154. as_fn_error $? "libSSH2 libs and/or directories were not found where specified!" "$LINENO" 5
  24155. fi
  24156. if test "$LIBSSH2_ENABLED" = "1"; then
  24157. if test -n "$DIR_SSH2"; then
  24158. if test "x$cross_compiling" != "xyes"; then
  24159. CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_SSH2"
  24160. export CURL_LIBRARY_PATH
  24161. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_SSH2 to CURL_LIBRARY_PATH" >&5
  24162. printf "%s\n" "$as_me: Added $DIR_SSH2 to CURL_LIBRARY_PATH" >&6;}
  24163. fi
  24164. fi
  24165. else
  24166. LDFLAGS=$CLEANLDFLAGS
  24167. CPPFLAGS=$CLEANCPPFLAGS
  24168. LIBS=$CLEANLIBS
  24169. fi
  24170. elif test X"$OPT_LIBSSH" != Xno; then
  24171. CLEANLDFLAGS="$LDFLAGS"
  24172. CLEANCPPFLAGS="$CPPFLAGS"
  24173. CLEANLIBS="$LIBS"
  24174. case "$OPT_LIBSSH" in
  24175. yes)
  24176. if test -n "$PKG_CONFIG"; then
  24177. PKGCONFIG="$PKG_CONFIG"
  24178. else
  24179. if test -n "$ac_tool_prefix"; then
  24180. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  24181. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  24182. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24183. printf %s "checking for $ac_word... " >&6; }
  24184. if test ${ac_cv_path_PKGCONFIG+y}
  24185. then :
  24186. printf %s "(cached) " >&6
  24187. else $as_nop
  24188. case $PKGCONFIG in
  24189. [\\/]* | ?:[\\/]*)
  24190. ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
  24191. ;;
  24192. *)
  24193. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24194. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  24195. for as_dir in $as_dummy
  24196. do
  24197. IFS=$as_save_IFS
  24198. case $as_dir in #(((
  24199. '') as_dir=./ ;;
  24200. */) ;;
  24201. *) as_dir=$as_dir/ ;;
  24202. esac
  24203. for ac_exec_ext in '' $ac_executable_extensions; do
  24204. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  24205. ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  24206. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  24207. break 2
  24208. fi
  24209. done
  24210. done
  24211. IFS=$as_save_IFS
  24212. ;;
  24213. esac
  24214. fi
  24215. PKGCONFIG=$ac_cv_path_PKGCONFIG
  24216. if test -n "$PKGCONFIG"; then
  24217. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
  24218. printf "%s\n" "$PKGCONFIG" >&6; }
  24219. else
  24220. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24221. printf "%s\n" "no" >&6; }
  24222. fi
  24223. fi
  24224. if test -z "$ac_cv_path_PKGCONFIG"; then
  24225. ac_pt_PKGCONFIG=$PKGCONFIG
  24226. # Extract the first word of "pkg-config", so it can be a program name with args.
  24227. set dummy pkg-config; ac_word=$2
  24228. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24229. printf %s "checking for $ac_word... " >&6; }
  24230. if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
  24231. then :
  24232. printf %s "(cached) " >&6
  24233. else $as_nop
  24234. case $ac_pt_PKGCONFIG in
  24235. [\\/]* | ?:[\\/]*)
  24236. ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
  24237. ;;
  24238. *)
  24239. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24240. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  24241. for as_dir in $as_dummy
  24242. do
  24243. IFS=$as_save_IFS
  24244. case $as_dir in #(((
  24245. '') as_dir=./ ;;
  24246. */) ;;
  24247. *) as_dir=$as_dir/ ;;
  24248. esac
  24249. for ac_exec_ext in '' $ac_executable_extensions; do
  24250. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  24251. ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  24252. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  24253. break 2
  24254. fi
  24255. done
  24256. done
  24257. IFS=$as_save_IFS
  24258. ;;
  24259. esac
  24260. fi
  24261. ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
  24262. if test -n "$ac_pt_PKGCONFIG"; then
  24263. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
  24264. printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
  24265. else
  24266. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24267. printf "%s\n" "no" >&6; }
  24268. fi
  24269. if test "x$ac_pt_PKGCONFIG" = x; then
  24270. PKGCONFIG="no"
  24271. else
  24272. case $cross_compiling:$ac_tool_warned in
  24273. yes:)
  24274. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  24275. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  24276. ac_tool_warned=yes ;;
  24277. esac
  24278. PKGCONFIG=$ac_pt_PKGCONFIG
  24279. fi
  24280. else
  24281. PKGCONFIG="$ac_cv_path_PKGCONFIG"
  24282. fi
  24283. fi
  24284. if test "x$PKGCONFIG" != "xno"; then
  24285. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libssh options with pkg-config" >&5
  24286. printf %s "checking for libssh options with pkg-config... " >&6; }
  24287. itexists=`
  24288. if test -n ""; then
  24289. PKG_CONFIG_LIBDIR=""
  24290. export PKG_CONFIG_LIBDIR
  24291. fi
  24292. $PKGCONFIG --exists libssh >/dev/null 2>&1 && echo 1`
  24293. if test -z "$itexists"; then
  24294. PKGCONFIG="no"
  24295. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24296. printf "%s\n" "no" >&6; }
  24297. else
  24298. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
  24299. printf "%s\n" "found" >&6; }
  24300. fi
  24301. fi
  24302. if test "$PKGCONFIG" != "no" ; then
  24303. LIB_SSH=`$PKGCONFIG --libs-only-l libssh`
  24304. LD_SSH=`$PKGCONFIG --libs-only-L libssh`
  24305. CPP_SSH=`$PKGCONFIG --cflags-only-I libssh`
  24306. version=`$PKGCONFIG --modversion libssh`
  24307. DIR_SSH=`echo $LD_SSH | $SED -e 's/^-L//'`
  24308. fi
  24309. ;;
  24310. off)
  24311. ;;
  24312. *)
  24313. PREFIX_SSH=$OPT_LIBSSH
  24314. ;;
  24315. esac
  24316. if test -n "$PREFIX_SSH"; then
  24317. LIB_SSH="-lssh"
  24318. LD_SSH=-L${PREFIX_SSH}/lib$libsuff
  24319. CPP_SSH=-I${PREFIX_SSH}/include
  24320. DIR_SSH=${PREFIX_SSH}/lib$libsuff
  24321. fi
  24322. LDFLAGS="$LDFLAGS $LD_SSH"
  24323. CPPFLAGS="$CPPFLAGS $CPP_SSH"
  24324. LIBS="$LIB_SSH $LIBS"
  24325. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ssh_new in -lssh" >&5
  24326. printf %s "checking for ssh_new in -lssh... " >&6; }
  24327. if test ${ac_cv_lib_ssh_ssh_new+y}
  24328. then :
  24329. printf %s "(cached) " >&6
  24330. else $as_nop
  24331. ac_check_lib_save_LIBS=$LIBS
  24332. LIBS="-lssh $LIBS"
  24333. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24334. /* end confdefs.h. */
  24335. #ifdef __cplusplus
  24336. extern "C"
  24337. #endif
  24338. char ssh_new ();
  24339. int main (void)
  24340. {
  24341. return ssh_new ();
  24342. ;
  24343. return 0;
  24344. }
  24345. _ACEOF
  24346. if ac_fn_c_try_link "$LINENO"
  24347. then :
  24348. ac_cv_lib_ssh_ssh_new=yes
  24349. else $as_nop
  24350. ac_cv_lib_ssh_ssh_new=no
  24351. fi
  24352. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24353. conftest$ac_exeext conftest.$ac_ext
  24354. LIBS=$ac_check_lib_save_LIBS
  24355. fi
  24356. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssh_ssh_new" >&5
  24357. printf "%s\n" "$ac_cv_lib_ssh_ssh_new" >&6; }
  24358. if test "x$ac_cv_lib_ssh_ssh_new" = xyes
  24359. then :
  24360. printf "%s\n" "#define HAVE_LIBSSH 1" >>confdefs.h
  24361. LIBS="-lssh $LIBS"
  24362. fi
  24363. for ac_header in libssh/libssh.h
  24364. do :
  24365. ac_fn_c_check_header_compile "$LINENO" "libssh/libssh.h" "ac_cv_header_libssh_libssh_h" "$ac_includes_default"
  24366. if test "x$ac_cv_header_libssh_libssh_h" = xyes
  24367. then :
  24368. printf "%s\n" "#define HAVE_LIBSSH_LIBSSH_H 1" >>confdefs.h
  24369. curl_ssh_msg="enabled (libSSH)"
  24370. LIBSSH_ENABLED=1
  24371. printf "%s\n" "#define USE_LIBSSH 1" >>confdefs.h
  24372. USE_LIBSSH=1
  24373. fi
  24374. done
  24375. if test X"$OPT_LIBSSH" != Xoff &&
  24376. test "$LIBSSH_ENABLED" != "1"; then
  24377. as_fn_error $? "libSSH libs and/or directories were not found where specified!" "$LINENO" 5
  24378. fi
  24379. if test "$LIBSSH_ENABLED" = "1"; then
  24380. if test -n "$DIR_SSH"; then
  24381. if test "x$cross_compiling" != "xyes"; then
  24382. CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_SSH"
  24383. export CURL_LIBRARY_PATH
  24384. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_SSH to CURL_LIBRARY_PATH" >&5
  24385. printf "%s\n" "$as_me: Added $DIR_SSH to CURL_LIBRARY_PATH" >&6;}
  24386. fi
  24387. fi
  24388. else
  24389. LDFLAGS=$CLEANLDFLAGS
  24390. CPPFLAGS=$CLEANCPPFLAGS
  24391. LIBS=$CLEANLIBS
  24392. fi
  24393. elif test X"$OPT_WOLFSSH" != Xno; then
  24394. CLEANLDFLAGS="$LDFLAGS"
  24395. CLEANCPPFLAGS="$CPPFLAGS"
  24396. CLEANLIBS="$LIBS"
  24397. if test "$OPT_WOLFSSH" != yes; then
  24398. WOLFCONFIG="$OPT_WOLFSSH/bin/wolfssh-config"
  24399. LDFLAGS="$LDFLAGS `$WOLFCONFIG --libs`"
  24400. CPPFLAGS="$CPPFLAGS `$WOLFCONFIG --cflags`"
  24401. fi
  24402. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wolfSSH_Init in -lwolfssh" >&5
  24403. printf %s "checking for wolfSSH_Init in -lwolfssh... " >&6; }
  24404. if test ${ac_cv_lib_wolfssh_wolfSSH_Init+y}
  24405. then :
  24406. printf %s "(cached) " >&6
  24407. else $as_nop
  24408. ac_check_lib_save_LIBS=$LIBS
  24409. LIBS="-lwolfssh $LIBS"
  24410. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24411. /* end confdefs.h. */
  24412. #ifdef __cplusplus
  24413. extern "C"
  24414. #endif
  24415. char wolfSSH_Init ();
  24416. int main (void)
  24417. {
  24418. return wolfSSH_Init ();
  24419. ;
  24420. return 0;
  24421. }
  24422. _ACEOF
  24423. if ac_fn_c_try_link "$LINENO"
  24424. then :
  24425. ac_cv_lib_wolfssh_wolfSSH_Init=yes
  24426. else $as_nop
  24427. ac_cv_lib_wolfssh_wolfSSH_Init=no
  24428. fi
  24429. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24430. conftest$ac_exeext conftest.$ac_ext
  24431. LIBS=$ac_check_lib_save_LIBS
  24432. fi
  24433. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wolfssh_wolfSSH_Init" >&5
  24434. printf "%s\n" "$ac_cv_lib_wolfssh_wolfSSH_Init" >&6; }
  24435. if test "x$ac_cv_lib_wolfssh_wolfSSH_Init" = xyes
  24436. then :
  24437. printf "%s\n" "#define HAVE_LIBWOLFSSH 1" >>confdefs.h
  24438. LIBS="-lwolfssh $LIBS"
  24439. fi
  24440. for ac_header in wolfssh/ssh.h
  24441. do :
  24442. ac_fn_c_check_header_compile "$LINENO" "wolfssh/ssh.h" "ac_cv_header_wolfssh_ssh_h" "$ac_includes_default"
  24443. if test "x$ac_cv_header_wolfssh_ssh_h" = xyes
  24444. then :
  24445. printf "%s\n" "#define HAVE_WOLFSSH_SSH_H 1" >>confdefs.h
  24446. curl_ssh_msg="enabled (wolfSSH)"
  24447. WOLFSSH_ENABLED=1
  24448. printf "%s\n" "#define USE_WOLFSSH 1" >>confdefs.h
  24449. USE_WOLFSSH=1
  24450. fi
  24451. done
  24452. fi
  24453. OPT_LIBRTMP=off
  24454. # Check whether --with-librtmp was given.
  24455. if test ${with_librtmp+y}
  24456. then :
  24457. withval=$with_librtmp; OPT_LIBRTMP=$withval
  24458. fi
  24459. if test X"$OPT_LIBRTMP" != Xno; then
  24460. CLEANLDFLAGS="$LDFLAGS"
  24461. CLEANCPPFLAGS="$CPPFLAGS"
  24462. CLEANLIBS="$LIBS"
  24463. case "$OPT_LIBRTMP" in
  24464. yes)
  24465. if test -n "$PKG_CONFIG"; then
  24466. PKGCONFIG="$PKG_CONFIG"
  24467. else
  24468. if test -n "$ac_tool_prefix"; then
  24469. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  24470. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  24471. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24472. printf %s "checking for $ac_word... " >&6; }
  24473. if test ${ac_cv_path_PKGCONFIG+y}
  24474. then :
  24475. printf %s "(cached) " >&6
  24476. else $as_nop
  24477. case $PKGCONFIG in
  24478. [\\/]* | ?:[\\/]*)
  24479. ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
  24480. ;;
  24481. *)
  24482. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24483. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  24484. for as_dir in $as_dummy
  24485. do
  24486. IFS=$as_save_IFS
  24487. case $as_dir in #(((
  24488. '') as_dir=./ ;;
  24489. */) ;;
  24490. *) as_dir=$as_dir/ ;;
  24491. esac
  24492. for ac_exec_ext in '' $ac_executable_extensions; do
  24493. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  24494. ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  24495. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  24496. break 2
  24497. fi
  24498. done
  24499. done
  24500. IFS=$as_save_IFS
  24501. ;;
  24502. esac
  24503. fi
  24504. PKGCONFIG=$ac_cv_path_PKGCONFIG
  24505. if test -n "$PKGCONFIG"; then
  24506. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
  24507. printf "%s\n" "$PKGCONFIG" >&6; }
  24508. else
  24509. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24510. printf "%s\n" "no" >&6; }
  24511. fi
  24512. fi
  24513. if test -z "$ac_cv_path_PKGCONFIG"; then
  24514. ac_pt_PKGCONFIG=$PKGCONFIG
  24515. # Extract the first word of "pkg-config", so it can be a program name with args.
  24516. set dummy pkg-config; ac_word=$2
  24517. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24518. printf %s "checking for $ac_word... " >&6; }
  24519. if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
  24520. then :
  24521. printf %s "(cached) " >&6
  24522. else $as_nop
  24523. case $ac_pt_PKGCONFIG in
  24524. [\\/]* | ?:[\\/]*)
  24525. ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
  24526. ;;
  24527. *)
  24528. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24529. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  24530. for as_dir in $as_dummy
  24531. do
  24532. IFS=$as_save_IFS
  24533. case $as_dir in #(((
  24534. '') as_dir=./ ;;
  24535. */) ;;
  24536. *) as_dir=$as_dir/ ;;
  24537. esac
  24538. for ac_exec_ext in '' $ac_executable_extensions; do
  24539. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  24540. ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  24541. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  24542. break 2
  24543. fi
  24544. done
  24545. done
  24546. IFS=$as_save_IFS
  24547. ;;
  24548. esac
  24549. fi
  24550. ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
  24551. if test -n "$ac_pt_PKGCONFIG"; then
  24552. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
  24553. printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
  24554. else
  24555. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24556. printf "%s\n" "no" >&6; }
  24557. fi
  24558. if test "x$ac_pt_PKGCONFIG" = x; then
  24559. PKGCONFIG="no"
  24560. else
  24561. case $cross_compiling:$ac_tool_warned in
  24562. yes:)
  24563. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  24564. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  24565. ac_tool_warned=yes ;;
  24566. esac
  24567. PKGCONFIG=$ac_pt_PKGCONFIG
  24568. fi
  24569. else
  24570. PKGCONFIG="$ac_cv_path_PKGCONFIG"
  24571. fi
  24572. fi
  24573. if test "x$PKGCONFIG" != "xno"; then
  24574. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for librtmp options with pkg-config" >&5
  24575. printf %s "checking for librtmp options with pkg-config... " >&6; }
  24576. itexists=`
  24577. if test -n ""; then
  24578. PKG_CONFIG_LIBDIR=""
  24579. export PKG_CONFIG_LIBDIR
  24580. fi
  24581. $PKGCONFIG --exists librtmp >/dev/null 2>&1 && echo 1`
  24582. if test -z "$itexists"; then
  24583. PKGCONFIG="no"
  24584. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24585. printf "%s\n" "no" >&6; }
  24586. else
  24587. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
  24588. printf "%s\n" "found" >&6; }
  24589. fi
  24590. fi
  24591. if test "$PKGCONFIG" != "no" ; then
  24592. LIB_RTMP=`$PKGCONFIG --libs-only-l librtmp`
  24593. LD_RTMP=`$PKGCONFIG --libs-only-L librtmp`
  24594. CPP_RTMP=`$PKGCONFIG --cflags-only-I librtmp`
  24595. version=`$PKGCONFIG --modversion librtmp`
  24596. DIR_RTMP=`echo $LD_RTMP | $SED -e 's/^-L//'`
  24597. else
  24598. as_fn_error $? "--librtmp was specified but could not find librtmp pkgconfig file." "$LINENO" 5
  24599. fi
  24600. ;;
  24601. off)
  24602. LIB_RTMP="-lrtmp"
  24603. ;;
  24604. *)
  24605. LIB_RTMP="-lrtmp"
  24606. PREFIX_RTMP=$OPT_LIBRTMP
  24607. ;;
  24608. esac
  24609. if test -n "$PREFIX_RTMP"; then
  24610. LD_RTMP=-L${PREFIX_RTMP}/lib$libsuff
  24611. CPP_RTMP=-I${PREFIX_RTMP}/include
  24612. DIR_RTMP=${PREFIX_RTMP}/lib$libsuff
  24613. fi
  24614. LDFLAGS="$LDFLAGS $LD_RTMP"
  24615. CPPFLAGS="$CPPFLAGS $CPP_RTMP"
  24616. LIBS="$LIB_RTMP $LIBS"
  24617. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for RTMP_Init in -lrtmp" >&5
  24618. printf %s "checking for RTMP_Init in -lrtmp... " >&6; }
  24619. if test ${ac_cv_lib_rtmp_RTMP_Init+y}
  24620. then :
  24621. printf %s "(cached) " >&6
  24622. else $as_nop
  24623. ac_check_lib_save_LIBS=$LIBS
  24624. LIBS="-lrtmp $LIBS"
  24625. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24626. /* end confdefs.h. */
  24627. #ifdef __cplusplus
  24628. extern "C"
  24629. #endif
  24630. char RTMP_Init ();
  24631. int main (void)
  24632. {
  24633. return RTMP_Init ();
  24634. ;
  24635. return 0;
  24636. }
  24637. _ACEOF
  24638. if ac_fn_c_try_link "$LINENO"
  24639. then :
  24640. ac_cv_lib_rtmp_RTMP_Init=yes
  24641. else $as_nop
  24642. ac_cv_lib_rtmp_RTMP_Init=no
  24643. fi
  24644. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24645. conftest$ac_exeext conftest.$ac_ext
  24646. LIBS=$ac_check_lib_save_LIBS
  24647. fi
  24648. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rtmp_RTMP_Init" >&5
  24649. printf "%s\n" "$ac_cv_lib_rtmp_RTMP_Init" >&6; }
  24650. if test "x$ac_cv_lib_rtmp_RTMP_Init" = xyes
  24651. then :
  24652. for ac_header in librtmp/rtmp.h
  24653. do :
  24654. ac_fn_c_check_header_compile "$LINENO" "librtmp/rtmp.h" "ac_cv_header_librtmp_rtmp_h" "$ac_includes_default"
  24655. if test "x$ac_cv_header_librtmp_rtmp_h" = xyes
  24656. then :
  24657. printf "%s\n" "#define HAVE_LIBRTMP_RTMP_H 1" >>confdefs.h
  24658. curl_rtmp_msg="enabled (librtmp)"
  24659. LIBRTMP_ENABLED=1
  24660. printf "%s\n" "#define USE_LIBRTMP 1" >>confdefs.h
  24661. USE_LIBRTMP=1
  24662. fi
  24663. done
  24664. else $as_nop
  24665. LDFLAGS=$CLEANLDFLAGS
  24666. CPPFLAGS=$CLEANCPPFLAGS
  24667. LIBS=$CLEANLIBS
  24668. fi
  24669. if test X"$OPT_LIBRTMP" != Xoff &&
  24670. test "$LIBRTMP_ENABLED" != "1"; then
  24671. as_fn_error $? "librtmp libs and/or directories were not found where specified!" "$LINENO" 5
  24672. fi
  24673. fi
  24674. versioned_symbols_flavour=
  24675. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether versioned symbols are wanted" >&5
  24676. printf %s "checking whether versioned symbols are wanted... " >&6; }
  24677. # Check whether --enable-versioned-symbols was given.
  24678. if test ${enable_versioned_symbols+y}
  24679. then :
  24680. enableval=$enable_versioned_symbols; case "$enableval" in
  24681. yes) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24682. printf "%s\n" "yes" >&6; }
  24683. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libraries can be versioned" >&5
  24684. printf %s "checking if libraries can be versioned... " >&6; }
  24685. GLD=`$LD --help < /dev/null 2>/dev/null | grep version-script`
  24686. if test -z "$GLD"; then
  24687. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24688. printf "%s\n" "no" >&6; }
  24689. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You need an ld version supporting the --version-script option" >&5
  24690. printf "%s\n" "$as_me: WARNING: You need an ld version supporting the --version-script option" >&2;}
  24691. else
  24692. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24693. printf "%s\n" "yes" >&6; }
  24694. if test "x$CURL_WITH_MULTI_SSL" = "x1"; then
  24695. versioned_symbols_flavour="MULTISSL_"
  24696. elif test "x$OPENSSL_ENABLED" = "x1"; then
  24697. versioned_symbols_flavour="OPENSSL_"
  24698. elif test "x$GNUTLS_ENABLED" = "x1"; then
  24699. versioned_symbols_flavour="GNUTLS_"
  24700. elif test "x$NSS_ENABLED" = "x1"; then
  24701. versioned_symbols_flavour="NSS_"
  24702. elif test "x$WOLFSSL_ENABLED" = "x1"; then
  24703. versioned_symbols_flavour="WOLFSSL_"
  24704. elif test "x$SCHANNEL_ENABLED" = "x1"; then
  24705. versioned_symbols_flavour="SCHANNEL_"
  24706. elif test "x$SECURETRANSPORT_ENABLED" = "x1"; then
  24707. versioned_symbols_flavour="SECURE_TRANSPORT_"
  24708. else
  24709. versioned_symbols_flavour=""
  24710. fi
  24711. versioned_symbols="yes"
  24712. fi
  24713. ;;
  24714. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24715. printf "%s\n" "no" >&6; }
  24716. ;;
  24717. esac
  24718. else $as_nop
  24719. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24720. printf "%s\n" "no" >&6; }
  24721. fi
  24722. CURL_LT_SHLIB_VERSIONED_FLAVOUR="$versioned_symbols_flavour"
  24723. if test "x$versioned_symbols" = 'xyes'; then
  24724. CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE=
  24725. CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE='#'
  24726. else
  24727. CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE='#'
  24728. CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE=
  24729. fi
  24730. CURL_PLIST_VERSION="$CURLVERSION"
  24731. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native IDN (Windows native builds only)" >&5
  24732. printf %s "checking whether to enable Windows native IDN (Windows native builds only)... " >&6; }
  24733. OPT_WINIDN="default"
  24734. # Check whether --with-winidn was given.
  24735. if test ${with_winidn+y}
  24736. then :
  24737. withval=$with_winidn; OPT_WINIDN=$withval
  24738. fi
  24739. case "$OPT_WINIDN" in
  24740. no|default)
  24741. want_winidn="no"
  24742. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24743. printf "%s\n" "no" >&6; }
  24744. ;;
  24745. yes)
  24746. want_winidn="yes"
  24747. want_winidn_path="default"
  24748. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24749. printf "%s\n" "yes" >&6; }
  24750. ;;
  24751. *)
  24752. want_winidn="yes"
  24753. want_winidn_path="$withval"
  24754. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5
  24755. printf "%s\n" "yes ($withval)" >&6; }
  24756. ;;
  24757. esac
  24758. if test "$want_winidn" = "yes"; then
  24759. clean_CFLAGS="$CFLAGS"
  24760. clean_CPPFLAGS="$CPPFLAGS"
  24761. clean_LDFLAGS="$LDFLAGS"
  24762. clean_LIBS="$LIBS"
  24763. WINIDN_LIBS="-lnormaliz"
  24764. WINIDN_CPPFLAGS=""
  24765. #
  24766. if test "$want_winidn_path" != "default"; then
  24767. WINIDN_LDFLAGS="-L$want_winidn_path/lib$libsuff"
  24768. WINIDN_CPPFLAGS="-I$want_winidn_path/include"
  24769. WINIDN_DIR="$want_winidn_path/lib$libsuff"
  24770. fi
  24771. #
  24772. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24773. /* end confdefs.h. */
  24774. #include <windows.h>
  24775. int main (void)
  24776. {
  24777. #if (WINVER < 0x600) && (_WIN32_WINNT < 0x600)
  24778. #error
  24779. #endif
  24780. ;
  24781. return 0;
  24782. }
  24783. _ACEOF
  24784. if ac_fn_c_try_compile "$LINENO"
  24785. then :
  24786. else $as_nop
  24787. CFLAGS=`echo $CFLAGS | $SED -e 's/-DWINVER=[^ ]*//g'`
  24788. CFLAGS=`echo $CFLAGS | $SED -e 's/-D_WIN32_WINNT=[^ ]*//g'`
  24789. CPPFLAGS=`echo $CPPFLAGS | $SED -e 's/-DWINVER=[^ ]*//g'`
  24790. CPPFLAGS=`echo $CPPFLAGS | $SED -e 's/-D_WIN32_WINNT=[^ ]*//g'`
  24791. WINIDN_CPPFLAGS="$WINIDN_CPPFLAGS -DWINVER=0x0600"
  24792. fi
  24793. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24794. #
  24795. CPPFLAGS="$CPPFLAGS $WINIDN_CPPFLAGS"
  24796. LDFLAGS="$LDFLAGS $WINIDN_LDFLAGS"
  24797. LIBS="$WINIDN_LIBS $LIBS"
  24798. #
  24799. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IdnToUnicode can be linked" >&5
  24800. printf %s "checking if IdnToUnicode can be linked... " >&6; }
  24801. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24802. /* end confdefs.h. */
  24803. #include <windows.h>
  24804. int main (void)
  24805. {
  24806. IdnToUnicode(0, NULL, 0, NULL, 0);
  24807. ;
  24808. return 0;
  24809. }
  24810. _ACEOF
  24811. if ac_fn_c_try_link "$LINENO"
  24812. then :
  24813. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24814. printf "%s\n" "yes" >&6; }
  24815. tst_links_winidn="yes"
  24816. else $as_nop
  24817. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24818. printf "%s\n" "no" >&6; }
  24819. tst_links_winidn="no"
  24820. fi
  24821. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24822. conftest$ac_exeext conftest.$ac_ext
  24823. #
  24824. if test "$tst_links_winidn" = "yes"; then
  24825. printf "%s\n" "#define USE_WIN32_IDN 1" >>confdefs.h
  24826. printf "%s\n" "#define WANT_IDN_PROTOTYPES 1" >>confdefs.h
  24827. IDN_ENABLED=1
  24828. curl_idn_msg="enabled (Windows-native)"
  24829. else
  24830. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5
  24831. printf "%s\n" "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;}
  24832. CFLAGS="$clean_CFLAGS"
  24833. CPPFLAGS="$clean_CPPFLAGS"
  24834. LDFLAGS="$clean_LDFLAGS"
  24835. LIBS="$clean_LIBS"
  24836. fi
  24837. fi
  24838. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build with libidn2" >&5
  24839. printf %s "checking whether to build with libidn2... " >&6; }
  24840. OPT_IDN="default"
  24841. # Check whether --with-libidn2 was given.
  24842. if test ${with_libidn2+y}
  24843. then :
  24844. withval=$with_libidn2; OPT_IDN=$withval
  24845. fi
  24846. if test "x$tst_links_winidn" = "xyes"; then
  24847. want_idn="no"
  24848. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no (using winidn instead)" >&5
  24849. printf "%s\n" "no (using winidn instead)" >&6; }
  24850. else
  24851. case "$OPT_IDN" in
  24852. no)
  24853. want_idn="no"
  24854. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24855. printf "%s\n" "no" >&6; }
  24856. ;;
  24857. default)
  24858. want_idn="yes"
  24859. want_idn_path="default"
  24860. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
  24861. printf "%s\n" "(assumed) yes" >&6; }
  24862. ;;
  24863. yes)
  24864. want_idn="yes"
  24865. want_idn_path="default"
  24866. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24867. printf "%s\n" "yes" >&6; }
  24868. ;;
  24869. *)
  24870. want_idn="yes"
  24871. want_idn_path="$withval"
  24872. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5
  24873. printf "%s\n" "yes ($withval)" >&6; }
  24874. ;;
  24875. esac
  24876. fi
  24877. if test "$want_idn" = "yes"; then
  24878. clean_CPPFLAGS="$CPPFLAGS"
  24879. clean_LDFLAGS="$LDFLAGS"
  24880. clean_LIBS="$LIBS"
  24881. PKGCONFIG="no"
  24882. #
  24883. if test "$want_idn_path" != "default"; then
  24884. IDN_PCDIR="$want_idn_path/lib$libsuff/pkgconfig"
  24885. if test -n "$PKG_CONFIG"; then
  24886. PKGCONFIG="$PKG_CONFIG"
  24887. else
  24888. if test -n "$ac_tool_prefix"; then
  24889. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  24890. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  24891. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24892. printf %s "checking for $ac_word... " >&6; }
  24893. if test ${ac_cv_path_PKGCONFIG+y}
  24894. then :
  24895. printf %s "(cached) " >&6
  24896. else $as_nop
  24897. case $PKGCONFIG in
  24898. [\\/]* | ?:[\\/]*)
  24899. ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
  24900. ;;
  24901. *)
  24902. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24903. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  24904. for as_dir in $as_dummy
  24905. do
  24906. IFS=$as_save_IFS
  24907. case $as_dir in #(((
  24908. '') as_dir=./ ;;
  24909. */) ;;
  24910. *) as_dir=$as_dir/ ;;
  24911. esac
  24912. for ac_exec_ext in '' $ac_executable_extensions; do
  24913. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  24914. ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  24915. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  24916. break 2
  24917. fi
  24918. done
  24919. done
  24920. IFS=$as_save_IFS
  24921. ;;
  24922. esac
  24923. fi
  24924. PKGCONFIG=$ac_cv_path_PKGCONFIG
  24925. if test -n "$PKGCONFIG"; then
  24926. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
  24927. printf "%s\n" "$PKGCONFIG" >&6; }
  24928. else
  24929. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24930. printf "%s\n" "no" >&6; }
  24931. fi
  24932. fi
  24933. if test -z "$ac_cv_path_PKGCONFIG"; then
  24934. ac_pt_PKGCONFIG=$PKGCONFIG
  24935. # Extract the first word of "pkg-config", so it can be a program name with args.
  24936. set dummy pkg-config; ac_word=$2
  24937. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24938. printf %s "checking for $ac_word... " >&6; }
  24939. if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
  24940. then :
  24941. printf %s "(cached) " >&6
  24942. else $as_nop
  24943. case $ac_pt_PKGCONFIG in
  24944. [\\/]* | ?:[\\/]*)
  24945. ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
  24946. ;;
  24947. *)
  24948. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24949. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  24950. for as_dir in $as_dummy
  24951. do
  24952. IFS=$as_save_IFS
  24953. case $as_dir in #(((
  24954. '') as_dir=./ ;;
  24955. */) ;;
  24956. *) as_dir=$as_dir/ ;;
  24957. esac
  24958. for ac_exec_ext in '' $ac_executable_extensions; do
  24959. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  24960. ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  24961. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  24962. break 2
  24963. fi
  24964. done
  24965. done
  24966. IFS=$as_save_IFS
  24967. ;;
  24968. esac
  24969. fi
  24970. ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
  24971. if test -n "$ac_pt_PKGCONFIG"; then
  24972. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
  24973. printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
  24974. else
  24975. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24976. printf "%s\n" "no" >&6; }
  24977. fi
  24978. if test "x$ac_pt_PKGCONFIG" = x; then
  24979. PKGCONFIG="no"
  24980. else
  24981. case $cross_compiling:$ac_tool_warned in
  24982. yes:)
  24983. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  24984. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  24985. ac_tool_warned=yes ;;
  24986. esac
  24987. PKGCONFIG=$ac_pt_PKGCONFIG
  24988. fi
  24989. else
  24990. PKGCONFIG="$ac_cv_path_PKGCONFIG"
  24991. fi
  24992. fi
  24993. if test "x$PKGCONFIG" != "xno"; then
  24994. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libidn2 options with pkg-config" >&5
  24995. printf %s "checking for libidn2 options with pkg-config... " >&6; }
  24996. itexists=`
  24997. if test -n "$IDN_PCDIR"; then
  24998. PKG_CONFIG_LIBDIR="$IDN_PCDIR"
  24999. export PKG_CONFIG_LIBDIR
  25000. fi
  25001. $PKGCONFIG --exists libidn2 >/dev/null 2>&1 && echo 1`
  25002. if test -z "$itexists"; then
  25003. PKGCONFIG="no"
  25004. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25005. printf "%s\n" "no" >&6; }
  25006. else
  25007. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
  25008. printf "%s\n" "found" >&6; }
  25009. fi
  25010. fi
  25011. if test "$PKGCONFIG" != "no"; then
  25012. IDN_LIBS=`
  25013. if test -n "$IDN_PCDIR"; then
  25014. PKG_CONFIG_LIBDIR="$IDN_PCDIR"
  25015. export PKG_CONFIG_LIBDIR
  25016. fi
  25017. $PKGCONFIG --libs-only-l libidn2 2>/dev/null`
  25018. IDN_LDFLAGS=`
  25019. if test -n "$IDN_PCDIR"; then
  25020. PKG_CONFIG_LIBDIR="$IDN_PCDIR"
  25021. export PKG_CONFIG_LIBDIR
  25022. fi
  25023. $PKGCONFIG --libs-only-L libidn2 2>/dev/null`
  25024. IDN_CPPFLAGS=`
  25025. if test -n "$IDN_PCDIR"; then
  25026. PKG_CONFIG_LIBDIR="$IDN_PCDIR"
  25027. export PKG_CONFIG_LIBDIR
  25028. fi
  25029. $PKGCONFIG --cflags-only-I libidn2 2>/dev/null`
  25030. IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/^-L//'`
  25031. else
  25032. IDN_LIBS="-lidn2"
  25033. IDN_LDFLAGS="-L$want_idn_path/lib$libsuff"
  25034. IDN_CPPFLAGS="-I$want_idn_path/include"
  25035. IDN_DIR="$want_idn_path/lib$libsuff"
  25036. fi
  25037. else
  25038. if test -n "$PKG_CONFIG"; then
  25039. PKGCONFIG="$PKG_CONFIG"
  25040. else
  25041. if test -n "$ac_tool_prefix"; then
  25042. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  25043. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  25044. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  25045. printf %s "checking for $ac_word... " >&6; }
  25046. if test ${ac_cv_path_PKGCONFIG+y}
  25047. then :
  25048. printf %s "(cached) " >&6
  25049. else $as_nop
  25050. case $PKGCONFIG in
  25051. [\\/]* | ?:[\\/]*)
  25052. ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
  25053. ;;
  25054. *)
  25055. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25056. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  25057. for as_dir in $as_dummy
  25058. do
  25059. IFS=$as_save_IFS
  25060. case $as_dir in #(((
  25061. '') as_dir=./ ;;
  25062. */) ;;
  25063. *) as_dir=$as_dir/ ;;
  25064. esac
  25065. for ac_exec_ext in '' $ac_executable_extensions; do
  25066. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  25067. ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  25068. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  25069. break 2
  25070. fi
  25071. done
  25072. done
  25073. IFS=$as_save_IFS
  25074. ;;
  25075. esac
  25076. fi
  25077. PKGCONFIG=$ac_cv_path_PKGCONFIG
  25078. if test -n "$PKGCONFIG"; then
  25079. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
  25080. printf "%s\n" "$PKGCONFIG" >&6; }
  25081. else
  25082. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25083. printf "%s\n" "no" >&6; }
  25084. fi
  25085. fi
  25086. if test -z "$ac_cv_path_PKGCONFIG"; then
  25087. ac_pt_PKGCONFIG=$PKGCONFIG
  25088. # Extract the first word of "pkg-config", so it can be a program name with args.
  25089. set dummy pkg-config; ac_word=$2
  25090. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  25091. printf %s "checking for $ac_word... " >&6; }
  25092. if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
  25093. then :
  25094. printf %s "(cached) " >&6
  25095. else $as_nop
  25096. case $ac_pt_PKGCONFIG in
  25097. [\\/]* | ?:[\\/]*)
  25098. ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
  25099. ;;
  25100. *)
  25101. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25102. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  25103. for as_dir in $as_dummy
  25104. do
  25105. IFS=$as_save_IFS
  25106. case $as_dir in #(((
  25107. '') as_dir=./ ;;
  25108. */) ;;
  25109. *) as_dir=$as_dir/ ;;
  25110. esac
  25111. for ac_exec_ext in '' $ac_executable_extensions; do
  25112. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  25113. ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  25114. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  25115. break 2
  25116. fi
  25117. done
  25118. done
  25119. IFS=$as_save_IFS
  25120. ;;
  25121. esac
  25122. fi
  25123. ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
  25124. if test -n "$ac_pt_PKGCONFIG"; then
  25125. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
  25126. printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
  25127. else
  25128. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25129. printf "%s\n" "no" >&6; }
  25130. fi
  25131. if test "x$ac_pt_PKGCONFIG" = x; then
  25132. PKGCONFIG="no"
  25133. else
  25134. case $cross_compiling:$ac_tool_warned in
  25135. yes:)
  25136. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  25137. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  25138. ac_tool_warned=yes ;;
  25139. esac
  25140. PKGCONFIG=$ac_pt_PKGCONFIG
  25141. fi
  25142. else
  25143. PKGCONFIG="$ac_cv_path_PKGCONFIG"
  25144. fi
  25145. fi
  25146. if test "x$PKGCONFIG" != "xno"; then
  25147. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libidn2 options with pkg-config" >&5
  25148. printf %s "checking for libidn2 options with pkg-config... " >&6; }
  25149. itexists=`
  25150. if test -n ""; then
  25151. PKG_CONFIG_LIBDIR=""
  25152. export PKG_CONFIG_LIBDIR
  25153. fi
  25154. $PKGCONFIG --exists libidn2 >/dev/null 2>&1 && echo 1`
  25155. if test -z "$itexists"; then
  25156. PKGCONFIG="no"
  25157. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25158. printf "%s\n" "no" >&6; }
  25159. else
  25160. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
  25161. printf "%s\n" "found" >&6; }
  25162. fi
  25163. fi
  25164. if test "$PKGCONFIG" != "no"; then
  25165. IDN_LIBS=`$PKGCONFIG --libs-only-l libidn2 2>/dev/null`
  25166. IDN_LDFLAGS=`$PKGCONFIG --libs-only-L libidn2 2>/dev/null`
  25167. IDN_CPPFLAGS=`$PKGCONFIG --cflags-only-I libidn2 2>/dev/null`
  25168. IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/^-L//'`
  25169. else
  25170. IDN_LIBS="-lidn2"
  25171. fi
  25172. fi
  25173. #
  25174. if test "$PKGCONFIG" != "no"; then
  25175. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&5
  25176. printf "%s\n" "$as_me: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&6;}
  25177. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5
  25178. printf "%s\n" "$as_me: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;}
  25179. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5
  25180. printf "%s\n" "$as_me: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;}
  25181. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&5
  25182. printf "%s\n" "$as_me: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&6;}
  25183. else
  25184. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: IDN_LIBS: \"$IDN_LIBS\"" >&5
  25185. printf "%s\n" "$as_me: IDN_LIBS: \"$IDN_LIBS\"" >&6;}
  25186. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5
  25187. printf "%s\n" "$as_me: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;}
  25188. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5
  25189. printf "%s\n" "$as_me: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;}
  25190. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: IDN_DIR: \"$IDN_DIR\"" >&5
  25191. printf "%s\n" "$as_me: IDN_DIR: \"$IDN_DIR\"" >&6;}
  25192. fi
  25193. #
  25194. CPPFLAGS="$CPPFLAGS $IDN_CPPFLAGS"
  25195. LDFLAGS="$LDFLAGS $IDN_LDFLAGS"
  25196. LIBS="$IDN_LIBS $LIBS"
  25197. #
  25198. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if idn2_lookup_ul can be linked" >&5
  25199. printf %s "checking if idn2_lookup_ul can be linked... " >&6; }
  25200. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25201. /* end confdefs.h. */
  25202. #define idn2_lookup_ul innocuous_idn2_lookup_ul
  25203. #ifdef __STDC__
  25204. # include <limits.h>
  25205. #else
  25206. # include <assert.h>
  25207. #endif
  25208. #undef idn2_lookup_ul
  25209. #ifdef __cplusplus
  25210. extern "C"
  25211. #endif
  25212. char idn2_lookup_ul ();
  25213. #if defined __stub_idn2_lookup_ul || defined __stub___idn2_lookup_ul
  25214. choke me
  25215. #endif
  25216. int main (void)
  25217. {
  25218. return idn2_lookup_ul ();
  25219. ;
  25220. return 0;
  25221. }
  25222. _ACEOF
  25223. if ac_fn_c_try_link "$LINENO"
  25224. then :
  25225. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25226. printf "%s\n" "yes" >&6; }
  25227. tst_links_libidn="yes"
  25228. else $as_nop
  25229. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25230. printf "%s\n" "no" >&6; }
  25231. tst_links_libidn="no"
  25232. fi
  25233. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  25234. conftest$ac_exeext conftest.$ac_ext
  25235. #
  25236. ac_fn_c_check_header_compile "$LINENO" "idn2.h" "ac_cv_header_idn2_h" "$ac_includes_default"
  25237. if test "x$ac_cv_header_idn2_h" = xyes
  25238. then :
  25239. printf "%s\n" "#define HAVE_IDN2_H 1" >>confdefs.h
  25240. fi
  25241. if test "$tst_links_libidn" = "yes"; then
  25242. printf "%s\n" "#define HAVE_LIBIDN2 1" >>confdefs.h
  25243. IDN_ENABLED=1
  25244. curl_idn_msg="enabled (libidn2)"
  25245. if test -n "$IDN_DIR" -a "x$cross_compiling" != "xyes"; then
  25246. CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$IDN_DIR"
  25247. export CURL_LIBRARY_PATH
  25248. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $IDN_DIR to CURL_LIBRARY_PATH" >&5
  25249. printf "%s\n" "$as_me: Added $IDN_DIR to CURL_LIBRARY_PATH" >&6;}
  25250. fi
  25251. else
  25252. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5
  25253. printf "%s\n" "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;}
  25254. CPPFLAGS="$clean_CPPFLAGS"
  25255. LDFLAGS="$clean_LDFLAGS"
  25256. LIBS="$clean_LIBS"
  25257. fi
  25258. fi
  25259. OPT_H2="yes"
  25260. if test "x$disable_http" = "xyes" -o X"$want_hyper" != Xno; then
  25261. # without HTTP or with Hyper, nghttp2 is no use
  25262. OPT_H2="no"
  25263. fi
  25264. # Check whether --with-nghttp2 was given.
  25265. if test ${with_nghttp2+y}
  25266. then :
  25267. withval=$with_nghttp2; OPT_H2=$withval
  25268. fi
  25269. case "$OPT_H2" in
  25270. no)
  25271. want_nghttp2="no"
  25272. ;;
  25273. yes)
  25274. want_nghttp2="default"
  25275. want_nghttp2_path=""
  25276. want_nghttp2_pkg_config_path=""
  25277. ;;
  25278. *)
  25279. want_nghttp2="yes"
  25280. want_nghttp2_path="$withval"
  25281. want_nghttp2_pkg_config_path="$withval/lib/pkgconfig"
  25282. ;;
  25283. esac
  25284. if test X"$want_nghttp2" != Xno; then
  25285. CLEANLDFLAGS="$LDFLAGS"
  25286. CLEANCPPFLAGS="$CPPFLAGS"
  25287. CLEANLIBS="$LIBS"
  25288. if test -n "$PKG_CONFIG"; then
  25289. PKGCONFIG="$PKG_CONFIG"
  25290. else
  25291. if test -n "$ac_tool_prefix"; then
  25292. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  25293. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  25294. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  25295. printf %s "checking for $ac_word... " >&6; }
  25296. if test ${ac_cv_path_PKGCONFIG+y}
  25297. then :
  25298. printf %s "(cached) " >&6
  25299. else $as_nop
  25300. case $PKGCONFIG in
  25301. [\\/]* | ?:[\\/]*)
  25302. ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
  25303. ;;
  25304. *)
  25305. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25306. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  25307. for as_dir in $as_dummy
  25308. do
  25309. IFS=$as_save_IFS
  25310. case $as_dir in #(((
  25311. '') as_dir=./ ;;
  25312. */) ;;
  25313. *) as_dir=$as_dir/ ;;
  25314. esac
  25315. for ac_exec_ext in '' $ac_executable_extensions; do
  25316. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  25317. ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  25318. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  25319. break 2
  25320. fi
  25321. done
  25322. done
  25323. IFS=$as_save_IFS
  25324. ;;
  25325. esac
  25326. fi
  25327. PKGCONFIG=$ac_cv_path_PKGCONFIG
  25328. if test -n "$PKGCONFIG"; then
  25329. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
  25330. printf "%s\n" "$PKGCONFIG" >&6; }
  25331. else
  25332. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25333. printf "%s\n" "no" >&6; }
  25334. fi
  25335. fi
  25336. if test -z "$ac_cv_path_PKGCONFIG"; then
  25337. ac_pt_PKGCONFIG=$PKGCONFIG
  25338. # Extract the first word of "pkg-config", so it can be a program name with args.
  25339. set dummy pkg-config; ac_word=$2
  25340. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  25341. printf %s "checking for $ac_word... " >&6; }
  25342. if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
  25343. then :
  25344. printf %s "(cached) " >&6
  25345. else $as_nop
  25346. case $ac_pt_PKGCONFIG in
  25347. [\\/]* | ?:[\\/]*)
  25348. ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
  25349. ;;
  25350. *)
  25351. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25352. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  25353. for as_dir in $as_dummy
  25354. do
  25355. IFS=$as_save_IFS
  25356. case $as_dir in #(((
  25357. '') as_dir=./ ;;
  25358. */) ;;
  25359. *) as_dir=$as_dir/ ;;
  25360. esac
  25361. for ac_exec_ext in '' $ac_executable_extensions; do
  25362. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  25363. ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  25364. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  25365. break 2
  25366. fi
  25367. done
  25368. done
  25369. IFS=$as_save_IFS
  25370. ;;
  25371. esac
  25372. fi
  25373. ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
  25374. if test -n "$ac_pt_PKGCONFIG"; then
  25375. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
  25376. printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
  25377. else
  25378. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25379. printf "%s\n" "no" >&6; }
  25380. fi
  25381. if test "x$ac_pt_PKGCONFIG" = x; then
  25382. PKGCONFIG="no"
  25383. else
  25384. case $cross_compiling:$ac_tool_warned in
  25385. yes:)
  25386. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  25387. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  25388. ac_tool_warned=yes ;;
  25389. esac
  25390. PKGCONFIG=$ac_pt_PKGCONFIG
  25391. fi
  25392. else
  25393. PKGCONFIG="$ac_cv_path_PKGCONFIG"
  25394. fi
  25395. fi
  25396. if test "x$PKGCONFIG" != "xno"; then
  25397. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libnghttp2 options with pkg-config" >&5
  25398. printf %s "checking for libnghttp2 options with pkg-config... " >&6; }
  25399. itexists=`
  25400. if test -n "$want_nghttp2_pkg_config_path"; then
  25401. PKG_CONFIG_LIBDIR="$want_nghttp2_pkg_config_path"
  25402. export PKG_CONFIG_LIBDIR
  25403. fi
  25404. $PKGCONFIG --exists libnghttp2 >/dev/null 2>&1 && echo 1`
  25405. if test -z "$itexists"; then
  25406. PKGCONFIG="no"
  25407. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25408. printf "%s\n" "no" >&6; }
  25409. else
  25410. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
  25411. printf "%s\n" "found" >&6; }
  25412. fi
  25413. fi
  25414. if test "$PKGCONFIG" != "no" ; then
  25415. LIB_H2=`
  25416. if test -n "$want_nghttp2_pkg_config_path"; then
  25417. PKG_CONFIG_LIBDIR="$want_nghttp2_pkg_config_path"
  25418. export PKG_CONFIG_LIBDIR
  25419. fi
  25420. $PKGCONFIG --libs-only-l libnghttp2`
  25421. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_H2" >&5
  25422. printf "%s\n" "$as_me: -l is $LIB_H2" >&6;}
  25423. CPP_H2=`
  25424. if test -n "$want_nghttp2_pkg_config_path"; then
  25425. PKG_CONFIG_LIBDIR="$want_nghttp2_pkg_config_path"
  25426. export PKG_CONFIG_LIBDIR
  25427. fi
  25428. $PKGCONFIG --cflags-only-I libnghttp2`
  25429. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_H2" >&5
  25430. printf "%s\n" "$as_me: -I is $CPP_H2" >&6;}
  25431. LD_H2=`
  25432. if test -n "$want_nghttp2_pkg_config_path"; then
  25433. PKG_CONFIG_LIBDIR="$want_nghttp2_pkg_config_path"
  25434. export PKG_CONFIG_LIBDIR
  25435. fi
  25436. $PKGCONFIG --libs-only-L libnghttp2`
  25437. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_H2" >&5
  25438. printf "%s\n" "$as_me: -L is $LD_H2" >&6;}
  25439. DIR_H2=`echo $LD_H2 | $SED -e 's/^-L//'`
  25440. elif test x"$want_nghttp2_path" != x; then
  25441. LIB_H2="-lnghttp2"
  25442. LD_H2=-L${want_nghttp2_path}/lib$libsuff
  25443. CPP_H2=-I${want_nghttp2_path}/include
  25444. DIR_H2=${want_nghttp2_path}/lib$libsuff
  25445. elif test X"$want_nghttp2" != Xdefault; then
  25446. as_fn_error $? "--with-nghttp2 was specified but could not find libnghttp2 pkg-config file." "$LINENO" 5
  25447. fi
  25448. LDFLAGS="$LDFLAGS $LD_H2"
  25449. CPPFLAGS="$CPPFLAGS $CPP_H2"
  25450. LIBS="$LIB_H2 $LIBS"
  25451. # use nghttp2_session_set_local_window_size to require nghttp2
  25452. # >= 1.12.0
  25453. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nghttp2_session_set_local_window_size in -lnghttp2" >&5
  25454. printf %s "checking for nghttp2_session_set_local_window_size in -lnghttp2... " >&6; }
  25455. if test ${ac_cv_lib_nghttp2_nghttp2_session_set_local_window_size+y}
  25456. then :
  25457. printf %s "(cached) " >&6
  25458. else $as_nop
  25459. ac_check_lib_save_LIBS=$LIBS
  25460. LIBS="-lnghttp2 $LIBS"
  25461. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25462. /* end confdefs.h. */
  25463. #ifdef __cplusplus
  25464. extern "C"
  25465. #endif
  25466. char nghttp2_session_set_local_window_size ();
  25467. int main (void)
  25468. {
  25469. return nghttp2_session_set_local_window_size ();
  25470. ;
  25471. return 0;
  25472. }
  25473. _ACEOF
  25474. if ac_fn_c_try_link "$LINENO"
  25475. then :
  25476. ac_cv_lib_nghttp2_nghttp2_session_set_local_window_size=yes
  25477. else $as_nop
  25478. ac_cv_lib_nghttp2_nghttp2_session_set_local_window_size=no
  25479. fi
  25480. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  25481. conftest$ac_exeext conftest.$ac_ext
  25482. LIBS=$ac_check_lib_save_LIBS
  25483. fi
  25484. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nghttp2_nghttp2_session_set_local_window_size" >&5
  25485. printf "%s\n" "$ac_cv_lib_nghttp2_nghttp2_session_set_local_window_size" >&6; }
  25486. if test "x$ac_cv_lib_nghttp2_nghttp2_session_set_local_window_size" = xyes
  25487. then :
  25488. for ac_header in nghttp2/nghttp2.h
  25489. do :
  25490. ac_fn_c_check_header_compile "$LINENO" "nghttp2/nghttp2.h" "ac_cv_header_nghttp2_nghttp2_h" "$ac_includes_default"
  25491. if test "x$ac_cv_header_nghttp2_nghttp2_h" = xyes
  25492. then :
  25493. printf "%s\n" "#define HAVE_NGHTTP2_NGHTTP2_H 1" >>confdefs.h
  25494. curl_h2_msg="enabled (nghttp2)"
  25495. NGHTTP2_ENABLED=1
  25496. printf "%s\n" "#define USE_NGHTTP2 1" >>confdefs.h
  25497. USE_NGHTTP2=1
  25498. fi
  25499. done
  25500. CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_H2"
  25501. export CURL_LIBRARY_PATH
  25502. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_H2 to CURL_LIBRARY_PATH" >&5
  25503. printf "%s\n" "$as_me: Added $DIR_H2 to CURL_LIBRARY_PATH" >&6;}
  25504. else $as_nop
  25505. LDFLAGS=$CLEANLDFLAGS
  25506. CPPFLAGS=$CLEANCPPFLAGS
  25507. LIBS=$CLEANLIBS
  25508. fi
  25509. fi
  25510. OPT_TCP2="yes"
  25511. if test "x$disable_http" = "xyes"; then
  25512. # without HTTP, ngtcp2 is no use
  25513. OPT_TCP2="no"
  25514. fi
  25515. # Check whether --with-ngtcp2 was given.
  25516. if test ${with_ngtcp2+y}
  25517. then :
  25518. withval=$with_ngtcp2; OPT_TCP2=$withval
  25519. fi
  25520. case "$OPT_TCP2" in
  25521. no)
  25522. want_tcp2="no"
  25523. ;;
  25524. yes)
  25525. want_tcp2="default"
  25526. want_tcp2_path=""
  25527. ;;
  25528. *)
  25529. want_tcp2="yes"
  25530. want_tcp2_path="$withval/lib/pkgconfig"
  25531. ;;
  25532. esac
  25533. curl_tcp2_msg="no (--with-ngtcp2)"
  25534. if test X"$want_tcp2" != Xno; then
  25535. CLEANLDFLAGS="$LDFLAGS"
  25536. CLEANCPPFLAGS="$CPPFLAGS"
  25537. CLEANLIBS="$LIBS"
  25538. if test -n "$PKG_CONFIG"; then
  25539. PKGCONFIG="$PKG_CONFIG"
  25540. else
  25541. if test -n "$ac_tool_prefix"; then
  25542. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  25543. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  25544. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  25545. printf %s "checking for $ac_word... " >&6; }
  25546. if test ${ac_cv_path_PKGCONFIG+y}
  25547. then :
  25548. printf %s "(cached) " >&6
  25549. else $as_nop
  25550. case $PKGCONFIG in
  25551. [\\/]* | ?:[\\/]*)
  25552. ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
  25553. ;;
  25554. *)
  25555. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25556. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  25557. for as_dir in $as_dummy
  25558. do
  25559. IFS=$as_save_IFS
  25560. case $as_dir in #(((
  25561. '') as_dir=./ ;;
  25562. */) ;;
  25563. *) as_dir=$as_dir/ ;;
  25564. esac
  25565. for ac_exec_ext in '' $ac_executable_extensions; do
  25566. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  25567. ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  25568. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  25569. break 2
  25570. fi
  25571. done
  25572. done
  25573. IFS=$as_save_IFS
  25574. ;;
  25575. esac
  25576. fi
  25577. PKGCONFIG=$ac_cv_path_PKGCONFIG
  25578. if test -n "$PKGCONFIG"; then
  25579. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
  25580. printf "%s\n" "$PKGCONFIG" >&6; }
  25581. else
  25582. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25583. printf "%s\n" "no" >&6; }
  25584. fi
  25585. fi
  25586. if test -z "$ac_cv_path_PKGCONFIG"; then
  25587. ac_pt_PKGCONFIG=$PKGCONFIG
  25588. # Extract the first word of "pkg-config", so it can be a program name with args.
  25589. set dummy pkg-config; ac_word=$2
  25590. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  25591. printf %s "checking for $ac_word... " >&6; }
  25592. if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
  25593. then :
  25594. printf %s "(cached) " >&6
  25595. else $as_nop
  25596. case $ac_pt_PKGCONFIG in
  25597. [\\/]* | ?:[\\/]*)
  25598. ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
  25599. ;;
  25600. *)
  25601. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25602. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  25603. for as_dir in $as_dummy
  25604. do
  25605. IFS=$as_save_IFS
  25606. case $as_dir in #(((
  25607. '') as_dir=./ ;;
  25608. */) ;;
  25609. *) as_dir=$as_dir/ ;;
  25610. esac
  25611. for ac_exec_ext in '' $ac_executable_extensions; do
  25612. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  25613. ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  25614. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  25615. break 2
  25616. fi
  25617. done
  25618. done
  25619. IFS=$as_save_IFS
  25620. ;;
  25621. esac
  25622. fi
  25623. ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
  25624. if test -n "$ac_pt_PKGCONFIG"; then
  25625. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
  25626. printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
  25627. else
  25628. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25629. printf "%s\n" "no" >&6; }
  25630. fi
  25631. if test "x$ac_pt_PKGCONFIG" = x; then
  25632. PKGCONFIG="no"
  25633. else
  25634. case $cross_compiling:$ac_tool_warned in
  25635. yes:)
  25636. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  25637. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  25638. ac_tool_warned=yes ;;
  25639. esac
  25640. PKGCONFIG=$ac_pt_PKGCONFIG
  25641. fi
  25642. else
  25643. PKGCONFIG="$ac_cv_path_PKGCONFIG"
  25644. fi
  25645. fi
  25646. if test "x$PKGCONFIG" != "xno"; then
  25647. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libngtcp2 options with pkg-config" >&5
  25648. printf %s "checking for libngtcp2 options with pkg-config... " >&6; }
  25649. itexists=`
  25650. if test -n "$want_tcp2_path"; then
  25651. PKG_CONFIG_LIBDIR="$want_tcp2_path"
  25652. export PKG_CONFIG_LIBDIR
  25653. fi
  25654. $PKGCONFIG --exists libngtcp2 >/dev/null 2>&1 && echo 1`
  25655. if test -z "$itexists"; then
  25656. PKGCONFIG="no"
  25657. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25658. printf "%s\n" "no" >&6; }
  25659. else
  25660. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
  25661. printf "%s\n" "found" >&6; }
  25662. fi
  25663. fi
  25664. if test "$PKGCONFIG" != "no" ; then
  25665. LIB_TCP2=`
  25666. if test -n "$want_tcp2_path"; then
  25667. PKG_CONFIG_LIBDIR="$want_tcp2_path"
  25668. export PKG_CONFIG_LIBDIR
  25669. fi
  25670. $PKGCONFIG --libs-only-l libngtcp2`
  25671. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_TCP2" >&5
  25672. printf "%s\n" "$as_me: -l is $LIB_TCP2" >&6;}
  25673. CPP_TCP2=`
  25674. if test -n "$want_tcp2_path"; then
  25675. PKG_CONFIG_LIBDIR="$want_tcp2_path"
  25676. export PKG_CONFIG_LIBDIR
  25677. fi
  25678. $PKGCONFIG --cflags-only-I libngtcp2`
  25679. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_TCP2" >&5
  25680. printf "%s\n" "$as_me: -I is $CPP_TCP2" >&6;}
  25681. LD_TCP2=`
  25682. if test -n "$want_tcp2_path"; then
  25683. PKG_CONFIG_LIBDIR="$want_tcp2_path"
  25684. export PKG_CONFIG_LIBDIR
  25685. fi
  25686. $PKGCONFIG --libs-only-L libngtcp2`
  25687. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_TCP2" >&5
  25688. printf "%s\n" "$as_me: -L is $LD_TCP2" >&6;}
  25689. LDFLAGS="$LDFLAGS $LD_TCP2"
  25690. CPPFLAGS="$CPPFLAGS $CPP_TCP2"
  25691. LIBS="$LIB_TCP2 $LIBS"
  25692. if test "x$cross_compiling" != "xyes"; then
  25693. DIR_TCP2=`echo $LD_TCP2 | $SED -e 's/^-L//'`
  25694. fi
  25695. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ngtcp2_conn_client_new_versioned in -lngtcp2" >&5
  25696. printf %s "checking for ngtcp2_conn_client_new_versioned in -lngtcp2... " >&6; }
  25697. if test ${ac_cv_lib_ngtcp2_ngtcp2_conn_client_new_versioned+y}
  25698. then :
  25699. printf %s "(cached) " >&6
  25700. else $as_nop
  25701. ac_check_lib_save_LIBS=$LIBS
  25702. LIBS="-lngtcp2 $LIBS"
  25703. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25704. /* end confdefs.h. */
  25705. #ifdef __cplusplus
  25706. extern "C"
  25707. #endif
  25708. char ngtcp2_conn_client_new_versioned ();
  25709. int main (void)
  25710. {
  25711. return ngtcp2_conn_client_new_versioned ();
  25712. ;
  25713. return 0;
  25714. }
  25715. _ACEOF
  25716. if ac_fn_c_try_link "$LINENO"
  25717. then :
  25718. ac_cv_lib_ngtcp2_ngtcp2_conn_client_new_versioned=yes
  25719. else $as_nop
  25720. ac_cv_lib_ngtcp2_ngtcp2_conn_client_new_versioned=no
  25721. fi
  25722. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  25723. conftest$ac_exeext conftest.$ac_ext
  25724. LIBS=$ac_check_lib_save_LIBS
  25725. fi
  25726. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ngtcp2_ngtcp2_conn_client_new_versioned" >&5
  25727. printf "%s\n" "$ac_cv_lib_ngtcp2_ngtcp2_conn_client_new_versioned" >&6; }
  25728. if test "x$ac_cv_lib_ngtcp2_ngtcp2_conn_client_new_versioned" = xyes
  25729. then :
  25730. for ac_header in ngtcp2/ngtcp2.h
  25731. do :
  25732. ac_fn_c_check_header_compile "$LINENO" "ngtcp2/ngtcp2.h" "ac_cv_header_ngtcp2_ngtcp2_h" "$ac_includes_default"
  25733. if test "x$ac_cv_header_ngtcp2_ngtcp2_h" = xyes
  25734. then :
  25735. printf "%s\n" "#define HAVE_NGTCP2_NGTCP2_H 1" >>confdefs.h
  25736. NGTCP2_ENABLED=1
  25737. printf "%s\n" "#define USE_NGTCP2 1" >>confdefs.h
  25738. USE_NGTCP2=1
  25739. CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_TCP2"
  25740. export CURL_LIBRARY_PATH
  25741. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_TCP2 to CURL_LIBRARY_PATH" >&5
  25742. printf "%s\n" "$as_me: Added $DIR_TCP2 to CURL_LIBRARY_PATH" >&6;}
  25743. fi
  25744. done
  25745. else $as_nop
  25746. LDFLAGS=$CLEANLDFLAGS
  25747. CPPFLAGS=$CLEANCPPFLAGS
  25748. LIBS=$CLEANLIBS
  25749. fi
  25750. else
  25751. if test X"$want_tcp2" != Xdefault; then
  25752. as_fn_error $? "--with-ngtcp2 was specified but could not find ngtcp2 pkg-config file." "$LINENO" 5
  25753. fi
  25754. fi
  25755. fi
  25756. if test "x$NGTCP2_ENABLED" = "x1" -a "x$OPENSSL_ENABLED" = "x1"; then
  25757. CLEANLDFLAGS="$LDFLAGS"
  25758. CLEANCPPFLAGS="$CPPFLAGS"
  25759. CLEANLIBS="$LIBS"
  25760. if test -n "$PKG_CONFIG"; then
  25761. PKGCONFIG="$PKG_CONFIG"
  25762. else
  25763. if test -n "$ac_tool_prefix"; then
  25764. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  25765. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  25766. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  25767. printf %s "checking for $ac_word... " >&6; }
  25768. if test ${ac_cv_path_PKGCONFIG+y}
  25769. then :
  25770. printf %s "(cached) " >&6
  25771. else $as_nop
  25772. case $PKGCONFIG in
  25773. [\\/]* | ?:[\\/]*)
  25774. ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
  25775. ;;
  25776. *)
  25777. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25778. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  25779. for as_dir in $as_dummy
  25780. do
  25781. IFS=$as_save_IFS
  25782. case $as_dir in #(((
  25783. '') as_dir=./ ;;
  25784. */) ;;
  25785. *) as_dir=$as_dir/ ;;
  25786. esac
  25787. for ac_exec_ext in '' $ac_executable_extensions; do
  25788. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  25789. ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  25790. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  25791. break 2
  25792. fi
  25793. done
  25794. done
  25795. IFS=$as_save_IFS
  25796. ;;
  25797. esac
  25798. fi
  25799. PKGCONFIG=$ac_cv_path_PKGCONFIG
  25800. if test -n "$PKGCONFIG"; then
  25801. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
  25802. printf "%s\n" "$PKGCONFIG" >&6; }
  25803. else
  25804. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25805. printf "%s\n" "no" >&6; }
  25806. fi
  25807. fi
  25808. if test -z "$ac_cv_path_PKGCONFIG"; then
  25809. ac_pt_PKGCONFIG=$PKGCONFIG
  25810. # Extract the first word of "pkg-config", so it can be a program name with args.
  25811. set dummy pkg-config; ac_word=$2
  25812. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  25813. printf %s "checking for $ac_word... " >&6; }
  25814. if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
  25815. then :
  25816. printf %s "(cached) " >&6
  25817. else $as_nop
  25818. case $ac_pt_PKGCONFIG in
  25819. [\\/]* | ?:[\\/]*)
  25820. ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
  25821. ;;
  25822. *)
  25823. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25824. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  25825. for as_dir in $as_dummy
  25826. do
  25827. IFS=$as_save_IFS
  25828. case $as_dir in #(((
  25829. '') as_dir=./ ;;
  25830. */) ;;
  25831. *) as_dir=$as_dir/ ;;
  25832. esac
  25833. for ac_exec_ext in '' $ac_executable_extensions; do
  25834. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  25835. ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  25836. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  25837. break 2
  25838. fi
  25839. done
  25840. done
  25841. IFS=$as_save_IFS
  25842. ;;
  25843. esac
  25844. fi
  25845. ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
  25846. if test -n "$ac_pt_PKGCONFIG"; then
  25847. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
  25848. printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
  25849. else
  25850. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25851. printf "%s\n" "no" >&6; }
  25852. fi
  25853. if test "x$ac_pt_PKGCONFIG" = x; then
  25854. PKGCONFIG="no"
  25855. else
  25856. case $cross_compiling:$ac_tool_warned in
  25857. yes:)
  25858. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  25859. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  25860. ac_tool_warned=yes ;;
  25861. esac
  25862. PKGCONFIG=$ac_pt_PKGCONFIG
  25863. fi
  25864. else
  25865. PKGCONFIG="$ac_cv_path_PKGCONFIG"
  25866. fi
  25867. fi
  25868. if test "x$PKGCONFIG" != "xno"; then
  25869. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libngtcp2_crypto_openssl options with pkg-config" >&5
  25870. printf %s "checking for libngtcp2_crypto_openssl options with pkg-config... " >&6; }
  25871. itexists=`
  25872. if test -n "$want_tcp2_path"; then
  25873. PKG_CONFIG_LIBDIR="$want_tcp2_path"
  25874. export PKG_CONFIG_LIBDIR
  25875. fi
  25876. $PKGCONFIG --exists libngtcp2_crypto_openssl >/dev/null 2>&1 && echo 1`
  25877. if test -z "$itexists"; then
  25878. PKGCONFIG="no"
  25879. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25880. printf "%s\n" "no" >&6; }
  25881. else
  25882. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
  25883. printf "%s\n" "found" >&6; }
  25884. fi
  25885. fi
  25886. if test "$PKGCONFIG" != "no" ; then
  25887. LIB_NGTCP2_CRYPTO_OPENSSL=`
  25888. if test -n "$want_tcp2_path"; then
  25889. PKG_CONFIG_LIBDIR="$want_tcp2_path"
  25890. export PKG_CONFIG_LIBDIR
  25891. fi
  25892. $PKGCONFIG --libs-only-l libngtcp2_crypto_openssl`
  25893. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_NGTCP2_CRYPTO_OPENSSL" >&5
  25894. printf "%s\n" "$as_me: -l is $LIB_NGTCP2_CRYPTO_OPENSSL" >&6;}
  25895. CPP_NGTCP2_CRYPTO_OPENSSL=`
  25896. if test -n "$want_tcp2_path"; then
  25897. PKG_CONFIG_LIBDIR="$want_tcp2_path"
  25898. export PKG_CONFIG_LIBDIR
  25899. fi
  25900. $PKGCONFIG --cflags-only-I libngtcp2_crypto_openssl`
  25901. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_NGTCP2_CRYPTO_OPENSSL" >&5
  25902. printf "%s\n" "$as_me: -I is $CPP_NGTCP2_CRYPTO_OPENSSL" >&6;}
  25903. LD_NGTCP2_CRYPTO_OPENSSL=`
  25904. if test -n "$want_tcp2_path"; then
  25905. PKG_CONFIG_LIBDIR="$want_tcp2_path"
  25906. export PKG_CONFIG_LIBDIR
  25907. fi
  25908. $PKGCONFIG --libs-only-L libngtcp2_crypto_openssl`
  25909. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_NGTCP2_CRYPTO_OPENSSL" >&5
  25910. printf "%s\n" "$as_me: -L is $LD_NGTCP2_CRYPTO_OPENSSL" >&6;}
  25911. LDFLAGS="$LDFLAGS $LD_NGTCP2_CRYPTO_OPENSSL"
  25912. CPPFLAGS="$CPPFLAGS $CPP_NGTCP2_CRYPTO_OPENSSL"
  25913. LIBS="$LIB_NGTCP2_CRYPTO_OPENSSL $LIBS"
  25914. if test "x$cross_compiling" != "xyes"; then
  25915. DIR_NGTCP2_CRYPTO_OPENSSL=`echo $LD_NGTCP2_CRYPTO_OPENSSL | $SED -e 's/^-L//'`
  25916. fi
  25917. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ngtcp2_crypto_recv_client_initial_cb in -lngtcp2_crypto_openssl" >&5
  25918. printf %s "checking for ngtcp2_crypto_recv_client_initial_cb in -lngtcp2_crypto_openssl... " >&6; }
  25919. if test ${ac_cv_lib_ngtcp2_crypto_openssl_ngtcp2_crypto_recv_client_initial_cb+y}
  25920. then :
  25921. printf %s "(cached) " >&6
  25922. else $as_nop
  25923. ac_check_lib_save_LIBS=$LIBS
  25924. LIBS="-lngtcp2_crypto_openssl $LIBS"
  25925. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25926. /* end confdefs.h. */
  25927. #ifdef __cplusplus
  25928. extern "C"
  25929. #endif
  25930. char ngtcp2_crypto_recv_client_initial_cb ();
  25931. int main (void)
  25932. {
  25933. return ngtcp2_crypto_recv_client_initial_cb ();
  25934. ;
  25935. return 0;
  25936. }
  25937. _ACEOF
  25938. if ac_fn_c_try_link "$LINENO"
  25939. then :
  25940. ac_cv_lib_ngtcp2_crypto_openssl_ngtcp2_crypto_recv_client_initial_cb=yes
  25941. else $as_nop
  25942. ac_cv_lib_ngtcp2_crypto_openssl_ngtcp2_crypto_recv_client_initial_cb=no
  25943. fi
  25944. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  25945. conftest$ac_exeext conftest.$ac_ext
  25946. LIBS=$ac_check_lib_save_LIBS
  25947. fi
  25948. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ngtcp2_crypto_openssl_ngtcp2_crypto_recv_client_initial_cb" >&5
  25949. printf "%s\n" "$ac_cv_lib_ngtcp2_crypto_openssl_ngtcp2_crypto_recv_client_initial_cb" >&6; }
  25950. if test "x$ac_cv_lib_ngtcp2_crypto_openssl_ngtcp2_crypto_recv_client_initial_cb" = xyes
  25951. then :
  25952. for ac_header in ngtcp2/ngtcp2_crypto.h
  25953. do :
  25954. ac_fn_c_check_header_compile "$LINENO" "ngtcp2/ngtcp2_crypto.h" "ac_cv_header_ngtcp2_ngtcp2_crypto_h" "$ac_includes_default"
  25955. if test "x$ac_cv_header_ngtcp2_ngtcp2_crypto_h" = xyes
  25956. then :
  25957. printf "%s\n" "#define HAVE_NGTCP2_NGTCP2_CRYPTO_H 1" >>confdefs.h
  25958. NGTCP2_ENABLED=1
  25959. printf "%s\n" "#define USE_NGTCP2_CRYPTO_OPENSSL 1" >>confdefs.h
  25960. USE_NGTCP2_CRYPTO_OPENSSL=1
  25961. CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_NGTCP2_CRYPTO_OPENSSL"
  25962. export CURL_LIBRARY_PATH
  25963. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_NGTCP2_CRYPTO_OPENSSL to CURL_LIBRARY_PATH" >&5
  25964. printf "%s\n" "$as_me: Added $DIR_NGTCP2_CRYPTO_OPENSSL to CURL_LIBRARY_PATH" >&6;}
  25965. fi
  25966. done
  25967. else $as_nop
  25968. LDFLAGS=$CLEANLDFLAGS
  25969. CPPFLAGS=$CLEANCPPFLAGS
  25970. LIBS=$CLEANLIBS
  25971. fi
  25972. else
  25973. if test X"$want_tcp2" != Xdefault; then
  25974. as_fn_error $? "--with-ngtcp2 was specified but could not find ngtcp2_crypto_openssl pkg-config file." "$LINENO" 5
  25975. fi
  25976. fi
  25977. fi
  25978. if test "x$NGTCP2_ENABLED" = "x1" -a "x$GNUTLS_ENABLED" = "x1"; then
  25979. CLEANLDFLAGS="$LDFLAGS"
  25980. CLEANCPPFLAGS="$CPPFLAGS"
  25981. CLEANLIBS="$LIBS"
  25982. if test -n "$PKG_CONFIG"; then
  25983. PKGCONFIG="$PKG_CONFIG"
  25984. else
  25985. if test -n "$ac_tool_prefix"; then
  25986. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  25987. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  25988. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  25989. printf %s "checking for $ac_word... " >&6; }
  25990. if test ${ac_cv_path_PKGCONFIG+y}
  25991. then :
  25992. printf %s "(cached) " >&6
  25993. else $as_nop
  25994. case $PKGCONFIG in
  25995. [\\/]* | ?:[\\/]*)
  25996. ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
  25997. ;;
  25998. *)
  25999. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  26000. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  26001. for as_dir in $as_dummy
  26002. do
  26003. IFS=$as_save_IFS
  26004. case $as_dir in #(((
  26005. '') as_dir=./ ;;
  26006. */) ;;
  26007. *) as_dir=$as_dir/ ;;
  26008. esac
  26009. for ac_exec_ext in '' $ac_executable_extensions; do
  26010. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  26011. ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  26012. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  26013. break 2
  26014. fi
  26015. done
  26016. done
  26017. IFS=$as_save_IFS
  26018. ;;
  26019. esac
  26020. fi
  26021. PKGCONFIG=$ac_cv_path_PKGCONFIG
  26022. if test -n "$PKGCONFIG"; then
  26023. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
  26024. printf "%s\n" "$PKGCONFIG" >&6; }
  26025. else
  26026. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26027. printf "%s\n" "no" >&6; }
  26028. fi
  26029. fi
  26030. if test -z "$ac_cv_path_PKGCONFIG"; then
  26031. ac_pt_PKGCONFIG=$PKGCONFIG
  26032. # Extract the first word of "pkg-config", so it can be a program name with args.
  26033. set dummy pkg-config; ac_word=$2
  26034. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  26035. printf %s "checking for $ac_word... " >&6; }
  26036. if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
  26037. then :
  26038. printf %s "(cached) " >&6
  26039. else $as_nop
  26040. case $ac_pt_PKGCONFIG in
  26041. [\\/]* | ?:[\\/]*)
  26042. ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
  26043. ;;
  26044. *)
  26045. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  26046. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  26047. for as_dir in $as_dummy
  26048. do
  26049. IFS=$as_save_IFS
  26050. case $as_dir in #(((
  26051. '') as_dir=./ ;;
  26052. */) ;;
  26053. *) as_dir=$as_dir/ ;;
  26054. esac
  26055. for ac_exec_ext in '' $ac_executable_extensions; do
  26056. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  26057. ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  26058. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  26059. break 2
  26060. fi
  26061. done
  26062. done
  26063. IFS=$as_save_IFS
  26064. ;;
  26065. esac
  26066. fi
  26067. ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
  26068. if test -n "$ac_pt_PKGCONFIG"; then
  26069. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
  26070. printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
  26071. else
  26072. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26073. printf "%s\n" "no" >&6; }
  26074. fi
  26075. if test "x$ac_pt_PKGCONFIG" = x; then
  26076. PKGCONFIG="no"
  26077. else
  26078. case $cross_compiling:$ac_tool_warned in
  26079. yes:)
  26080. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  26081. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  26082. ac_tool_warned=yes ;;
  26083. esac
  26084. PKGCONFIG=$ac_pt_PKGCONFIG
  26085. fi
  26086. else
  26087. PKGCONFIG="$ac_cv_path_PKGCONFIG"
  26088. fi
  26089. fi
  26090. if test "x$PKGCONFIG" != "xno"; then
  26091. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libngtcp2_crypto_gnutls options with pkg-config" >&5
  26092. printf %s "checking for libngtcp2_crypto_gnutls options with pkg-config... " >&6; }
  26093. itexists=`
  26094. if test -n "$want_tcp2_path"; then
  26095. PKG_CONFIG_LIBDIR="$want_tcp2_path"
  26096. export PKG_CONFIG_LIBDIR
  26097. fi
  26098. $PKGCONFIG --exists libngtcp2_crypto_gnutls >/dev/null 2>&1 && echo 1`
  26099. if test -z "$itexists"; then
  26100. PKGCONFIG="no"
  26101. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26102. printf "%s\n" "no" >&6; }
  26103. else
  26104. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
  26105. printf "%s\n" "found" >&6; }
  26106. fi
  26107. fi
  26108. if test "$PKGCONFIG" != "no" ; then
  26109. LIB_NGTCP2_CRYPTO_GNUTLS=`
  26110. if test -n "$want_tcp2_path"; then
  26111. PKG_CONFIG_LIBDIR="$want_tcp2_path"
  26112. export PKG_CONFIG_LIBDIR
  26113. fi
  26114. $PKGCONFIG --libs-only-l libngtcp2_crypto_gnutls`
  26115. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_NGTCP2_CRYPTO_GNUTLS" >&5
  26116. printf "%s\n" "$as_me: -l is $LIB_NGTCP2_CRYPTO_GNUTLS" >&6;}
  26117. CPP_NGTCP2_CRYPTO_GNUTLS=`
  26118. if test -n "$want_tcp2_path"; then
  26119. PKG_CONFIG_LIBDIR="$want_tcp2_path"
  26120. export PKG_CONFIG_LIBDIR
  26121. fi
  26122. $PKGCONFIG --cflags-only-I libngtcp2_crypto_gnutls`
  26123. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_NGTCP2_CRYPTO_GNUTLS" >&5
  26124. printf "%s\n" "$as_me: -I is $CPP_NGTCP2_CRYPTO_GNUTLS" >&6;}
  26125. LD_NGTCP2_CRYPTO_GNUTLS=`
  26126. if test -n "$want_tcp2_path"; then
  26127. PKG_CONFIG_LIBDIR="$want_tcp2_path"
  26128. export PKG_CONFIG_LIBDIR
  26129. fi
  26130. $PKGCONFIG --libs-only-L libngtcp2_crypto_gnutls`
  26131. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_NGTCP2_CRYPTO_GNUTLS" >&5
  26132. printf "%s\n" "$as_me: -L is $LD_NGTCP2_CRYPTO_GNUTLS" >&6;}
  26133. LDFLAGS="$LDFLAGS $LD_NGTCP2_CRYPTO_GNUTLS"
  26134. CPPFLAGS="$CPPFLAGS $CPP_NGTCP2_CRYPTO_GNUTLS"
  26135. LIBS="$LIB_NGTCP2_CRYPTO_GNUTLS $LIBS"
  26136. if test "x$cross_compiling" != "xyes"; then
  26137. DIR_NGTCP2_CRYPTO_GNUTLS=`echo $LD_NGTCP2_CRYPTO_GNUTLS | $SED -e 's/^-L//'`
  26138. fi
  26139. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ngtcp2_crypto_recv_client_initial_cb in -lngtcp2_crypto_gnutls" >&5
  26140. printf %s "checking for ngtcp2_crypto_recv_client_initial_cb in -lngtcp2_crypto_gnutls... " >&6; }
  26141. if test ${ac_cv_lib_ngtcp2_crypto_gnutls_ngtcp2_crypto_recv_client_initial_cb+y}
  26142. then :
  26143. printf %s "(cached) " >&6
  26144. else $as_nop
  26145. ac_check_lib_save_LIBS=$LIBS
  26146. LIBS="-lngtcp2_crypto_gnutls $LIBS"
  26147. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26148. /* end confdefs.h. */
  26149. #ifdef __cplusplus
  26150. extern "C"
  26151. #endif
  26152. char ngtcp2_crypto_recv_client_initial_cb ();
  26153. int main (void)
  26154. {
  26155. return ngtcp2_crypto_recv_client_initial_cb ();
  26156. ;
  26157. return 0;
  26158. }
  26159. _ACEOF
  26160. if ac_fn_c_try_link "$LINENO"
  26161. then :
  26162. ac_cv_lib_ngtcp2_crypto_gnutls_ngtcp2_crypto_recv_client_initial_cb=yes
  26163. else $as_nop
  26164. ac_cv_lib_ngtcp2_crypto_gnutls_ngtcp2_crypto_recv_client_initial_cb=no
  26165. fi
  26166. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  26167. conftest$ac_exeext conftest.$ac_ext
  26168. LIBS=$ac_check_lib_save_LIBS
  26169. fi
  26170. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ngtcp2_crypto_gnutls_ngtcp2_crypto_recv_client_initial_cb" >&5
  26171. printf "%s\n" "$ac_cv_lib_ngtcp2_crypto_gnutls_ngtcp2_crypto_recv_client_initial_cb" >&6; }
  26172. if test "x$ac_cv_lib_ngtcp2_crypto_gnutls_ngtcp2_crypto_recv_client_initial_cb" = xyes
  26173. then :
  26174. for ac_header in ngtcp2/ngtcp2_crypto.h
  26175. do :
  26176. ac_fn_c_check_header_compile "$LINENO" "ngtcp2/ngtcp2_crypto.h" "ac_cv_header_ngtcp2_ngtcp2_crypto_h" "$ac_includes_default"
  26177. if test "x$ac_cv_header_ngtcp2_ngtcp2_crypto_h" = xyes
  26178. then :
  26179. printf "%s\n" "#define HAVE_NGTCP2_NGTCP2_CRYPTO_H 1" >>confdefs.h
  26180. NGTCP2_ENABLED=1
  26181. printf "%s\n" "#define USE_NGTCP2_CRYPTO_GNUTLS 1" >>confdefs.h
  26182. USE_NGTCP2_CRYPTO_GNUTLS=1
  26183. CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_NGTCP2_CRYPTO_GNUTLS"
  26184. export CURL_LIBRARY_PATH
  26185. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_NGTCP2_CRYPTO_GNUTLS to CURL_LIBRARY_PATH" >&5
  26186. printf "%s\n" "$as_me: Added $DIR_NGTCP2_CRYPTO_GNUTLS to CURL_LIBRARY_PATH" >&6;}
  26187. fi
  26188. done
  26189. else $as_nop
  26190. LDFLAGS=$CLEANLDFLAGS
  26191. CPPFLAGS=$CLEANCPPFLAGS
  26192. LIBS=$CLEANLIBS
  26193. fi
  26194. else
  26195. if test X"$want_tcp2" != Xdefault; then
  26196. as_fn_error $? "--with-ngtcp2 was specified but could not find ngtcp2_crypto_gnutls pkg-config file." "$LINENO" 5
  26197. fi
  26198. fi
  26199. fi
  26200. if test "x$NGTCP2_ENABLED" = "x1" -a "x$WOLFSSL_ENABLED" = "x1"; then
  26201. CLEANLDFLAGS="$LDFLAGS"
  26202. CLEANCPPFLAGS="$CPPFLAGS"
  26203. CLEANLIBS="$LIBS"
  26204. if test -n "$PKG_CONFIG"; then
  26205. PKGCONFIG="$PKG_CONFIG"
  26206. else
  26207. if test -n "$ac_tool_prefix"; then
  26208. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  26209. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  26210. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  26211. printf %s "checking for $ac_word... " >&6; }
  26212. if test ${ac_cv_path_PKGCONFIG+y}
  26213. then :
  26214. printf %s "(cached) " >&6
  26215. else $as_nop
  26216. case $PKGCONFIG in
  26217. [\\/]* | ?:[\\/]*)
  26218. ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
  26219. ;;
  26220. *)
  26221. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  26222. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  26223. for as_dir in $as_dummy
  26224. do
  26225. IFS=$as_save_IFS
  26226. case $as_dir in #(((
  26227. '') as_dir=./ ;;
  26228. */) ;;
  26229. *) as_dir=$as_dir/ ;;
  26230. esac
  26231. for ac_exec_ext in '' $ac_executable_extensions; do
  26232. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  26233. ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  26234. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  26235. break 2
  26236. fi
  26237. done
  26238. done
  26239. IFS=$as_save_IFS
  26240. ;;
  26241. esac
  26242. fi
  26243. PKGCONFIG=$ac_cv_path_PKGCONFIG
  26244. if test -n "$PKGCONFIG"; then
  26245. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
  26246. printf "%s\n" "$PKGCONFIG" >&6; }
  26247. else
  26248. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26249. printf "%s\n" "no" >&6; }
  26250. fi
  26251. fi
  26252. if test -z "$ac_cv_path_PKGCONFIG"; then
  26253. ac_pt_PKGCONFIG=$PKGCONFIG
  26254. # Extract the first word of "pkg-config", so it can be a program name with args.
  26255. set dummy pkg-config; ac_word=$2
  26256. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  26257. printf %s "checking for $ac_word... " >&6; }
  26258. if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
  26259. then :
  26260. printf %s "(cached) " >&6
  26261. else $as_nop
  26262. case $ac_pt_PKGCONFIG in
  26263. [\\/]* | ?:[\\/]*)
  26264. ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
  26265. ;;
  26266. *)
  26267. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  26268. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  26269. for as_dir in $as_dummy
  26270. do
  26271. IFS=$as_save_IFS
  26272. case $as_dir in #(((
  26273. '') as_dir=./ ;;
  26274. */) ;;
  26275. *) as_dir=$as_dir/ ;;
  26276. esac
  26277. for ac_exec_ext in '' $ac_executable_extensions; do
  26278. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  26279. ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  26280. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  26281. break 2
  26282. fi
  26283. done
  26284. done
  26285. IFS=$as_save_IFS
  26286. ;;
  26287. esac
  26288. fi
  26289. ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
  26290. if test -n "$ac_pt_PKGCONFIG"; then
  26291. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
  26292. printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
  26293. else
  26294. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26295. printf "%s\n" "no" >&6; }
  26296. fi
  26297. if test "x$ac_pt_PKGCONFIG" = x; then
  26298. PKGCONFIG="no"
  26299. else
  26300. case $cross_compiling:$ac_tool_warned in
  26301. yes:)
  26302. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  26303. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  26304. ac_tool_warned=yes ;;
  26305. esac
  26306. PKGCONFIG=$ac_pt_PKGCONFIG
  26307. fi
  26308. else
  26309. PKGCONFIG="$ac_cv_path_PKGCONFIG"
  26310. fi
  26311. fi
  26312. if test "x$PKGCONFIG" != "xno"; then
  26313. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libngtcp2_crypto_wolfssl options with pkg-config" >&5
  26314. printf %s "checking for libngtcp2_crypto_wolfssl options with pkg-config... " >&6; }
  26315. itexists=`
  26316. if test -n "$want_tcp2_path"; then
  26317. PKG_CONFIG_LIBDIR="$want_tcp2_path"
  26318. export PKG_CONFIG_LIBDIR
  26319. fi
  26320. $PKGCONFIG --exists libngtcp2_crypto_wolfssl >/dev/null 2>&1 && echo 1`
  26321. if test -z "$itexists"; then
  26322. PKGCONFIG="no"
  26323. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26324. printf "%s\n" "no" >&6; }
  26325. else
  26326. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
  26327. printf "%s\n" "found" >&6; }
  26328. fi
  26329. fi
  26330. if test "$PKGCONFIG" != "no" ; then
  26331. LIB_NGTCP2_CRYPTO_WOLFSSL=`
  26332. if test -n "$want_tcp2_path"; then
  26333. PKG_CONFIG_LIBDIR="$want_tcp2_path"
  26334. export PKG_CONFIG_LIBDIR
  26335. fi
  26336. $PKGCONFIG --libs-only-l libngtcp2_crypto_wolfssl`
  26337. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_NGTCP2_CRYPTO_WOLFSSL" >&5
  26338. printf "%s\n" "$as_me: -l is $LIB_NGTCP2_CRYPTO_WOLFSSL" >&6;}
  26339. CPP_NGTCP2_CRYPTO_WOLFSSL=`
  26340. if test -n "$want_tcp2_path"; then
  26341. PKG_CONFIG_LIBDIR="$want_tcp2_path"
  26342. export PKG_CONFIG_LIBDIR
  26343. fi
  26344. $PKGCONFIG --cflags-only-I libngtcp2_crypto_wolfssl`
  26345. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_NGTCP2_CRYPTO_WOLFSSL" >&5
  26346. printf "%s\n" "$as_me: -I is $CPP_NGTCP2_CRYPTO_WOLFSSL" >&6;}
  26347. LD_NGTCP2_CRYPTO_WOLFSSL=`
  26348. if test -n "$want_tcp2_path"; then
  26349. PKG_CONFIG_LIBDIR="$want_tcp2_path"
  26350. export PKG_CONFIG_LIBDIR
  26351. fi
  26352. $PKGCONFIG --libs-only-L libngtcp2_crypto_wolfssl`
  26353. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_NGTCP2_CRYPTO_WOLFSSL" >&5
  26354. printf "%s\n" "$as_me: -L is $LD_NGTCP2_CRYPTO_WOLFSSL" >&6;}
  26355. LDFLAGS="$LDFLAGS $LD_NGTCP2_CRYPTO_WOLFSSL"
  26356. CPPFLAGS="$CPPFLAGS $CPP_NGTCP2_CRYPTO_WOLFSSL"
  26357. LIBS="$LIB_NGTCP2_CRYPTO_WOLFSSL $LIBS"
  26358. if test "x$cross_compiling" != "xyes"; then
  26359. DIR_NGTCP2_CRYPTO_WOLFSSL=`echo $LD_NGTCP2_CRYPTO_WOLFSSL | $SED -e 's/^-L//'`
  26360. fi
  26361. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ngtcp2_crypto_recv_client_initial_cb in -lngtcp2_crypto_wolfssl" >&5
  26362. printf %s "checking for ngtcp2_crypto_recv_client_initial_cb in -lngtcp2_crypto_wolfssl... " >&6; }
  26363. if test ${ac_cv_lib_ngtcp2_crypto_wolfssl_ngtcp2_crypto_recv_client_initial_cb+y}
  26364. then :
  26365. printf %s "(cached) " >&6
  26366. else $as_nop
  26367. ac_check_lib_save_LIBS=$LIBS
  26368. LIBS="-lngtcp2_crypto_wolfssl $LIBS"
  26369. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26370. /* end confdefs.h. */
  26371. #ifdef __cplusplus
  26372. extern "C"
  26373. #endif
  26374. char ngtcp2_crypto_recv_client_initial_cb ();
  26375. int main (void)
  26376. {
  26377. return ngtcp2_crypto_recv_client_initial_cb ();
  26378. ;
  26379. return 0;
  26380. }
  26381. _ACEOF
  26382. if ac_fn_c_try_link "$LINENO"
  26383. then :
  26384. ac_cv_lib_ngtcp2_crypto_wolfssl_ngtcp2_crypto_recv_client_initial_cb=yes
  26385. else $as_nop
  26386. ac_cv_lib_ngtcp2_crypto_wolfssl_ngtcp2_crypto_recv_client_initial_cb=no
  26387. fi
  26388. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  26389. conftest$ac_exeext conftest.$ac_ext
  26390. LIBS=$ac_check_lib_save_LIBS
  26391. fi
  26392. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ngtcp2_crypto_wolfssl_ngtcp2_crypto_recv_client_initial_cb" >&5
  26393. printf "%s\n" "$ac_cv_lib_ngtcp2_crypto_wolfssl_ngtcp2_crypto_recv_client_initial_cb" >&6; }
  26394. if test "x$ac_cv_lib_ngtcp2_crypto_wolfssl_ngtcp2_crypto_recv_client_initial_cb" = xyes
  26395. then :
  26396. for ac_header in ngtcp2/ngtcp2_crypto.h
  26397. do :
  26398. ac_fn_c_check_header_compile "$LINENO" "ngtcp2/ngtcp2_crypto.h" "ac_cv_header_ngtcp2_ngtcp2_crypto_h" "$ac_includes_default"
  26399. if test "x$ac_cv_header_ngtcp2_ngtcp2_crypto_h" = xyes
  26400. then :
  26401. printf "%s\n" "#define HAVE_NGTCP2_NGTCP2_CRYPTO_H 1" >>confdefs.h
  26402. NGTCP2_ENABLED=1
  26403. printf "%s\n" "#define USE_NGTCP2_CRYPTO_WOLFSSL 1" >>confdefs.h
  26404. USE_NGTCP2_CRYPTO_WOLFSSL=1
  26405. CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_NGTCP2_CRYPTO_WOLFSSL"
  26406. export CURL_LIBRARY_PATH
  26407. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_NGTCP2_CRYPTO_WOLFSSL to CURL_LIBRARY_PATH" >&5
  26408. printf "%s\n" "$as_me: Added $DIR_NGTCP2_CRYPTO_WOLFSSL to CURL_LIBRARY_PATH" >&6;}
  26409. fi
  26410. done
  26411. else $as_nop
  26412. LDFLAGS=$CLEANLDFLAGS
  26413. CPPFLAGS=$CLEANCPPFLAGS
  26414. LIBS=$CLEANLIBS
  26415. fi
  26416. else
  26417. if test X"$want_tcp2" != Xdefault; then
  26418. as_fn_error $? "--with-ngtcp2 was specified but could not find ngtcp2_crypto_wolfssl pkg-config file." "$LINENO" 5
  26419. fi
  26420. fi
  26421. fi
  26422. OPT_NGHTTP3="yes"
  26423. if test "x$NGTCP2_ENABLED" = "x"; then
  26424. # without ngtcp2, nghttp3 is of no use for us
  26425. OPT_NGHTTP3="no"
  26426. fi
  26427. # Check whether --with-nghttp3 was given.
  26428. if test ${with_nghttp3+y}
  26429. then :
  26430. withval=$with_nghttp3; OPT_NGHTTP3=$withval
  26431. fi
  26432. case "$OPT_NGHTTP3" in
  26433. no)
  26434. want_nghttp3="no"
  26435. ;;
  26436. yes)
  26437. want_nghttp3="default"
  26438. want_nghttp3_path=""
  26439. ;;
  26440. *)
  26441. want_nghttp3="yes"
  26442. want_nghttp3_path="$withval/lib/pkgconfig"
  26443. ;;
  26444. esac
  26445. curl_http3_msg="no (--with-nghttp3)"
  26446. if test X"$want_nghttp3" != Xno; then
  26447. CLEANLDFLAGS="$LDFLAGS"
  26448. CLEANCPPFLAGS="$CPPFLAGS"
  26449. CLEANLIBS="$LIBS"
  26450. if test -n "$PKG_CONFIG"; then
  26451. PKGCONFIG="$PKG_CONFIG"
  26452. else
  26453. if test -n "$ac_tool_prefix"; then
  26454. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  26455. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  26456. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  26457. printf %s "checking for $ac_word... " >&6; }
  26458. if test ${ac_cv_path_PKGCONFIG+y}
  26459. then :
  26460. printf %s "(cached) " >&6
  26461. else $as_nop
  26462. case $PKGCONFIG in
  26463. [\\/]* | ?:[\\/]*)
  26464. ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
  26465. ;;
  26466. *)
  26467. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  26468. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  26469. for as_dir in $as_dummy
  26470. do
  26471. IFS=$as_save_IFS
  26472. case $as_dir in #(((
  26473. '') as_dir=./ ;;
  26474. */) ;;
  26475. *) as_dir=$as_dir/ ;;
  26476. esac
  26477. for ac_exec_ext in '' $ac_executable_extensions; do
  26478. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  26479. ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  26480. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  26481. break 2
  26482. fi
  26483. done
  26484. done
  26485. IFS=$as_save_IFS
  26486. ;;
  26487. esac
  26488. fi
  26489. PKGCONFIG=$ac_cv_path_PKGCONFIG
  26490. if test -n "$PKGCONFIG"; then
  26491. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
  26492. printf "%s\n" "$PKGCONFIG" >&6; }
  26493. else
  26494. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26495. printf "%s\n" "no" >&6; }
  26496. fi
  26497. fi
  26498. if test -z "$ac_cv_path_PKGCONFIG"; then
  26499. ac_pt_PKGCONFIG=$PKGCONFIG
  26500. # Extract the first word of "pkg-config", so it can be a program name with args.
  26501. set dummy pkg-config; ac_word=$2
  26502. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  26503. printf %s "checking for $ac_word... " >&6; }
  26504. if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
  26505. then :
  26506. printf %s "(cached) " >&6
  26507. else $as_nop
  26508. case $ac_pt_PKGCONFIG in
  26509. [\\/]* | ?:[\\/]*)
  26510. ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
  26511. ;;
  26512. *)
  26513. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  26514. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  26515. for as_dir in $as_dummy
  26516. do
  26517. IFS=$as_save_IFS
  26518. case $as_dir in #(((
  26519. '') as_dir=./ ;;
  26520. */) ;;
  26521. *) as_dir=$as_dir/ ;;
  26522. esac
  26523. for ac_exec_ext in '' $ac_executable_extensions; do
  26524. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  26525. ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  26526. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  26527. break 2
  26528. fi
  26529. done
  26530. done
  26531. IFS=$as_save_IFS
  26532. ;;
  26533. esac
  26534. fi
  26535. ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
  26536. if test -n "$ac_pt_PKGCONFIG"; then
  26537. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
  26538. printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
  26539. else
  26540. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26541. printf "%s\n" "no" >&6; }
  26542. fi
  26543. if test "x$ac_pt_PKGCONFIG" = x; then
  26544. PKGCONFIG="no"
  26545. else
  26546. case $cross_compiling:$ac_tool_warned in
  26547. yes:)
  26548. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  26549. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  26550. ac_tool_warned=yes ;;
  26551. esac
  26552. PKGCONFIG=$ac_pt_PKGCONFIG
  26553. fi
  26554. else
  26555. PKGCONFIG="$ac_cv_path_PKGCONFIG"
  26556. fi
  26557. fi
  26558. if test "x$PKGCONFIG" != "xno"; then
  26559. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libnghttp3 options with pkg-config" >&5
  26560. printf %s "checking for libnghttp3 options with pkg-config... " >&6; }
  26561. itexists=`
  26562. if test -n "$want_nghttp3_path"; then
  26563. PKG_CONFIG_LIBDIR="$want_nghttp3_path"
  26564. export PKG_CONFIG_LIBDIR
  26565. fi
  26566. $PKGCONFIG --exists libnghttp3 >/dev/null 2>&1 && echo 1`
  26567. if test -z "$itexists"; then
  26568. PKGCONFIG="no"
  26569. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26570. printf "%s\n" "no" >&6; }
  26571. else
  26572. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
  26573. printf "%s\n" "found" >&6; }
  26574. fi
  26575. fi
  26576. if test "$PKGCONFIG" != "no" ; then
  26577. LIB_NGHTTP3=`
  26578. if test -n "$want_nghttp3_path"; then
  26579. PKG_CONFIG_LIBDIR="$want_nghttp3_path"
  26580. export PKG_CONFIG_LIBDIR
  26581. fi
  26582. $PKGCONFIG --libs-only-l libnghttp3`
  26583. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_NGHTTP3" >&5
  26584. printf "%s\n" "$as_me: -l is $LIB_NGHTTP3" >&6;}
  26585. CPP_NGHTTP3=`
  26586. if test -n "$want_nghttp3_path"; then
  26587. PKG_CONFIG_LIBDIR="$want_nghttp3_path"
  26588. export PKG_CONFIG_LIBDIR
  26589. fi
  26590. $PKGCONFIG --cflags-only-I libnghttp3`
  26591. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_NGHTTP3" >&5
  26592. printf "%s\n" "$as_me: -I is $CPP_NGHTTP3" >&6;}
  26593. LD_NGHTTP3=`
  26594. if test -n "$want_nghttp3_path"; then
  26595. PKG_CONFIG_LIBDIR="$want_nghttp3_path"
  26596. export PKG_CONFIG_LIBDIR
  26597. fi
  26598. $PKGCONFIG --libs-only-L libnghttp3`
  26599. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_NGHTTP3" >&5
  26600. printf "%s\n" "$as_me: -L is $LD_NGHTTP3" >&6;}
  26601. LDFLAGS="$LDFLAGS $LD_NGHTTP3"
  26602. CPPFLAGS="$CPPFLAGS $CPP_NGHTTP3"
  26603. LIBS="$LIB_NGHTTP3 $LIBS"
  26604. if test "x$cross_compiling" != "xyes"; then
  26605. DIR_NGHTTP3=`echo $LD_NGHTTP3 | $SED -e 's/^-L//'`
  26606. fi
  26607. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nghttp3_conn_client_new_versioned in -lnghttp3" >&5
  26608. printf %s "checking for nghttp3_conn_client_new_versioned in -lnghttp3... " >&6; }
  26609. if test ${ac_cv_lib_nghttp3_nghttp3_conn_client_new_versioned+y}
  26610. then :
  26611. printf %s "(cached) " >&6
  26612. else $as_nop
  26613. ac_check_lib_save_LIBS=$LIBS
  26614. LIBS="-lnghttp3 $LIBS"
  26615. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26616. /* end confdefs.h. */
  26617. #ifdef __cplusplus
  26618. extern "C"
  26619. #endif
  26620. char nghttp3_conn_client_new_versioned ();
  26621. int main (void)
  26622. {
  26623. return nghttp3_conn_client_new_versioned ();
  26624. ;
  26625. return 0;
  26626. }
  26627. _ACEOF
  26628. if ac_fn_c_try_link "$LINENO"
  26629. then :
  26630. ac_cv_lib_nghttp3_nghttp3_conn_client_new_versioned=yes
  26631. else $as_nop
  26632. ac_cv_lib_nghttp3_nghttp3_conn_client_new_versioned=no
  26633. fi
  26634. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  26635. conftest$ac_exeext conftest.$ac_ext
  26636. LIBS=$ac_check_lib_save_LIBS
  26637. fi
  26638. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nghttp3_nghttp3_conn_client_new_versioned" >&5
  26639. printf "%s\n" "$ac_cv_lib_nghttp3_nghttp3_conn_client_new_versioned" >&6; }
  26640. if test "x$ac_cv_lib_nghttp3_nghttp3_conn_client_new_versioned" = xyes
  26641. then :
  26642. for ac_header in nghttp3/nghttp3.h
  26643. do :
  26644. ac_fn_c_check_header_compile "$LINENO" "nghttp3/nghttp3.h" "ac_cv_header_nghttp3_nghttp3_h" "$ac_includes_default"
  26645. if test "x$ac_cv_header_nghttp3_nghttp3_h" = xyes
  26646. then :
  26647. printf "%s\n" "#define HAVE_NGHTTP3_NGHTTP3_H 1" >>confdefs.h
  26648. curl_h3_msg="enabled (ngtcp2 + nghttp3)"
  26649. NGHTTP3_ENABLED=1
  26650. printf "%s\n" "#define USE_NGHTTP3 1" >>confdefs.h
  26651. USE_NGHTTP3=1
  26652. CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_NGHTTP3"
  26653. export CURL_LIBRARY_PATH
  26654. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_NGHTTP3 to CURL_LIBRARY_PATH" >&5
  26655. printf "%s\n" "$as_me: Added $DIR_NGHTTP3 to CURL_LIBRARY_PATH" >&6;}
  26656. experimental="$experimental HTTP3"
  26657. fi
  26658. done
  26659. else $as_nop
  26660. LDFLAGS=$CLEANLDFLAGS
  26661. CPPFLAGS=$CLEANCPPFLAGS
  26662. LIBS=$CLEANLIBS
  26663. fi
  26664. else
  26665. if test X"$want_nghttp3" != Xdefault; then
  26666. as_fn_error $? "--with-nghttp3 was specified but could not find nghttp3 pkg-config file." "$LINENO" 5
  26667. fi
  26668. fi
  26669. fi
  26670. OPT_QUICHE="no"
  26671. if test "x$disable_http" = "xyes" -o "x$USE_NGTCP" = "x1"; then
  26672. # without HTTP or with ngtcp2, quiche is no use
  26673. OPT_QUICHE="no"
  26674. fi
  26675. # Check whether --with-quiche was given.
  26676. if test ${with_quiche+y}
  26677. then :
  26678. withval=$with_quiche; OPT_QUICHE=$withval
  26679. fi
  26680. case "$OPT_QUICHE" in
  26681. no)
  26682. want_quiche="no"
  26683. ;;
  26684. yes)
  26685. want_quiche="default"
  26686. want_quiche_path=""
  26687. ;;
  26688. *)
  26689. want_quiche="yes"
  26690. want_quiche_path="$withval"
  26691. ;;
  26692. esac
  26693. if test X"$want_quiche" != Xno; then
  26694. if test "$NGHTTP3_ENABLED" = 1; then
  26695. as_fn_error $? "--with-quiche and --with-ngtcp2 are mutually exclusive" "$LINENO" 5
  26696. fi
  26697. CLEANLDFLAGS="$LDFLAGS"
  26698. CLEANCPPFLAGS="$CPPFLAGS"
  26699. CLEANLIBS="$LIBS"
  26700. if test -n "$PKG_CONFIG"; then
  26701. PKGCONFIG="$PKG_CONFIG"
  26702. else
  26703. if test -n "$ac_tool_prefix"; then
  26704. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  26705. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  26706. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  26707. printf %s "checking for $ac_word... " >&6; }
  26708. if test ${ac_cv_path_PKGCONFIG+y}
  26709. then :
  26710. printf %s "(cached) " >&6
  26711. else $as_nop
  26712. case $PKGCONFIG in
  26713. [\\/]* | ?:[\\/]*)
  26714. ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
  26715. ;;
  26716. *)
  26717. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  26718. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  26719. for as_dir in $as_dummy
  26720. do
  26721. IFS=$as_save_IFS
  26722. case $as_dir in #(((
  26723. '') as_dir=./ ;;
  26724. */) ;;
  26725. *) as_dir=$as_dir/ ;;
  26726. esac
  26727. for ac_exec_ext in '' $ac_executable_extensions; do
  26728. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  26729. ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  26730. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  26731. break 2
  26732. fi
  26733. done
  26734. done
  26735. IFS=$as_save_IFS
  26736. ;;
  26737. esac
  26738. fi
  26739. PKGCONFIG=$ac_cv_path_PKGCONFIG
  26740. if test -n "$PKGCONFIG"; then
  26741. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
  26742. printf "%s\n" "$PKGCONFIG" >&6; }
  26743. else
  26744. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26745. printf "%s\n" "no" >&6; }
  26746. fi
  26747. fi
  26748. if test -z "$ac_cv_path_PKGCONFIG"; then
  26749. ac_pt_PKGCONFIG=$PKGCONFIG
  26750. # Extract the first word of "pkg-config", so it can be a program name with args.
  26751. set dummy pkg-config; ac_word=$2
  26752. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  26753. printf %s "checking for $ac_word... " >&6; }
  26754. if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
  26755. then :
  26756. printf %s "(cached) " >&6
  26757. else $as_nop
  26758. case $ac_pt_PKGCONFIG in
  26759. [\\/]* | ?:[\\/]*)
  26760. ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
  26761. ;;
  26762. *)
  26763. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  26764. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  26765. for as_dir in $as_dummy
  26766. do
  26767. IFS=$as_save_IFS
  26768. case $as_dir in #(((
  26769. '') as_dir=./ ;;
  26770. */) ;;
  26771. *) as_dir=$as_dir/ ;;
  26772. esac
  26773. for ac_exec_ext in '' $ac_executable_extensions; do
  26774. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  26775. ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  26776. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  26777. break 2
  26778. fi
  26779. done
  26780. done
  26781. IFS=$as_save_IFS
  26782. ;;
  26783. esac
  26784. fi
  26785. ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
  26786. if test -n "$ac_pt_PKGCONFIG"; then
  26787. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
  26788. printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
  26789. else
  26790. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26791. printf "%s\n" "no" >&6; }
  26792. fi
  26793. if test "x$ac_pt_PKGCONFIG" = x; then
  26794. PKGCONFIG="no"
  26795. else
  26796. case $cross_compiling:$ac_tool_warned in
  26797. yes:)
  26798. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  26799. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  26800. ac_tool_warned=yes ;;
  26801. esac
  26802. PKGCONFIG=$ac_pt_PKGCONFIG
  26803. fi
  26804. else
  26805. PKGCONFIG="$ac_cv_path_PKGCONFIG"
  26806. fi
  26807. fi
  26808. if test "x$PKGCONFIG" != "xno"; then
  26809. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for quiche options with pkg-config" >&5
  26810. printf %s "checking for quiche options with pkg-config... " >&6; }
  26811. itexists=`
  26812. if test -n "$want_quiche_path"; then
  26813. PKG_CONFIG_LIBDIR="$want_quiche_path"
  26814. export PKG_CONFIG_LIBDIR
  26815. fi
  26816. $PKGCONFIG --exists quiche >/dev/null 2>&1 && echo 1`
  26817. if test -z "$itexists"; then
  26818. PKGCONFIG="no"
  26819. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26820. printf "%s\n" "no" >&6; }
  26821. else
  26822. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
  26823. printf "%s\n" "found" >&6; }
  26824. fi
  26825. fi
  26826. if test "$PKGCONFIG" != "no" ; then
  26827. LIB_QUICHE=`
  26828. if test -n "$want_quiche_path"; then
  26829. PKG_CONFIG_LIBDIR="$want_quiche_path"
  26830. export PKG_CONFIG_LIBDIR
  26831. fi
  26832. $PKGCONFIG --libs-only-l quiche`
  26833. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_QUICHE" >&5
  26834. printf "%s\n" "$as_me: -l is $LIB_QUICHE" >&6;}
  26835. CPP_QUICHE=`
  26836. if test -n "$want_quiche_path"; then
  26837. PKG_CONFIG_LIBDIR="$want_quiche_path"
  26838. export PKG_CONFIG_LIBDIR
  26839. fi
  26840. $PKGCONFIG --cflags-only-I quiche`
  26841. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_QUICHE" >&5
  26842. printf "%s\n" "$as_me: -I is $CPP_QUICHE" >&6;}
  26843. LD_QUICHE=`
  26844. if test -n "$want_quiche_path"; then
  26845. PKG_CONFIG_LIBDIR="$want_quiche_path"
  26846. export PKG_CONFIG_LIBDIR
  26847. fi
  26848. $PKGCONFIG --libs-only-L quiche`
  26849. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_QUICHE" >&5
  26850. printf "%s\n" "$as_me: -L is $LD_QUICHE" >&6;}
  26851. LDFLAGS="$LDFLAGS $LD_QUICHE"
  26852. CPPFLAGS="$CPPFLAGS $CPP_QUICHE"
  26853. LIBS="$LIB_QUICHE $LIBS"
  26854. if test "x$cross_compiling" != "xyes"; then
  26855. DIR_QUICHE=`echo $LD_QUICHE | $SED -e 's/^-L//'`
  26856. fi
  26857. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for quiche_connect in -lquiche" >&5
  26858. printf %s "checking for quiche_connect in -lquiche... " >&6; }
  26859. if test ${ac_cv_lib_quiche_quiche_connect+y}
  26860. then :
  26861. printf %s "(cached) " >&6
  26862. else $as_nop
  26863. ac_check_lib_save_LIBS=$LIBS
  26864. LIBS="-lquiche $LIBS"
  26865. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26866. /* end confdefs.h. */
  26867. #ifdef __cplusplus
  26868. extern "C"
  26869. #endif
  26870. char quiche_connect ();
  26871. int main (void)
  26872. {
  26873. return quiche_connect ();
  26874. ;
  26875. return 0;
  26876. }
  26877. _ACEOF
  26878. if ac_fn_c_try_link "$LINENO"
  26879. then :
  26880. ac_cv_lib_quiche_quiche_connect=yes
  26881. else $as_nop
  26882. ac_cv_lib_quiche_quiche_connect=no
  26883. fi
  26884. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  26885. conftest$ac_exeext conftest.$ac_ext
  26886. LIBS=$ac_check_lib_save_LIBS
  26887. fi
  26888. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_quiche_quiche_connect" >&5
  26889. printf "%s\n" "$ac_cv_lib_quiche_quiche_connect" >&6; }
  26890. if test "x$ac_cv_lib_quiche_quiche_connect" = xyes
  26891. then :
  26892. for ac_header in quiche.h
  26893. do :
  26894. ac_fn_c_check_header_compile "$LINENO" "quiche.h" "ac_cv_header_quiche_h" "
  26895. $ac_includes_default
  26896. #include <sys/socket.h>
  26897. "
  26898. if test "x$ac_cv_header_quiche_h" = xyes
  26899. then :
  26900. printf "%s\n" "#define HAVE_QUICHE_H 1" >>confdefs.h
  26901. experimental="$experimental HTTP3"
  26902. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: HTTP3 support is experimental" >&5
  26903. printf "%s\n" "$as_me: HTTP3 support is experimental" >&6;}
  26904. curl_h3_msg="enabled (quiche)"
  26905. QUICHE_ENABLED=1
  26906. printf "%s\n" "#define USE_QUICHE 1" >>confdefs.h
  26907. USE_QUICHE=1
  26908. ac_fn_c_check_func "$LINENO" "quiche_conn_set_qlog_fd" "ac_cv_func_quiche_conn_set_qlog_fd"
  26909. if test "x$ac_cv_func_quiche_conn_set_qlog_fd" = xyes
  26910. then :
  26911. printf "%s\n" "#define HAVE_QUICHE_CONN_SET_QLOG_FD 1" >>confdefs.h
  26912. fi
  26913. CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_QUICHE"
  26914. export CURL_LIBRARY_PATH
  26915. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_QUICHE to CURL_LIBRARY_PATH" >&5
  26916. printf "%s\n" "$as_me: Added $DIR_QUICHE to CURL_LIBRARY_PATH" >&6;}
  26917. fi
  26918. done
  26919. else $as_nop
  26920. as_fn_error $? "couldn't use quiche" "$LINENO" 5
  26921. fi
  26922. else
  26923. if test X"$want_quiche" != Xdefault; then
  26924. as_fn_error $? "--with-quiche was specified but could not find quiche pkg-config file." "$LINENO" 5
  26925. fi
  26926. fi
  26927. fi
  26928. OPT_MSH3="no"
  26929. if test "x$disable_http" = "xyes" -o "x$USE_NGTCP" = "x1"; then
  26930. # without HTTP or with ngtcp2, msh3 is no use
  26931. OPT_MSH3="no"
  26932. fi
  26933. # Check whether --with-msh3 was given.
  26934. if test ${with_msh3+y}
  26935. then :
  26936. withval=$with_msh3; OPT_MSH3=$withval
  26937. fi
  26938. case "$OPT_MSH3" in
  26939. no)
  26940. want_msh3="no"
  26941. ;;
  26942. yes)
  26943. want_msh3="default"
  26944. want_msh3_path=""
  26945. ;;
  26946. *)
  26947. want_msh3="yes"
  26948. want_msh3_path="$withval"
  26949. ;;
  26950. esac
  26951. if test X"$want_msh3" != Xno; then
  26952. if test "$NGHTTP3_ENABLED" = 1; then
  26953. as_fn_error $? "--with-msh3 and --with-ngtcp2 are mutually exclusive" "$LINENO" 5
  26954. fi
  26955. CLEANLDFLAGS="$LDFLAGS"
  26956. CLEANCPPFLAGS="$CPPFLAGS"
  26957. CLEANLIBS="$LIBS"
  26958. if test -n "$want_msh3_path"; then
  26959. LD_MSH3="-L$want_msh3_path/lib"
  26960. CPP_MSH3="-I$want_msh3_path/include"
  26961. DIR_MSH3="$want_msh3_path/lib"
  26962. LDFLAGS="$LDFLAGS $LD_MSH3"
  26963. CPPFLAGS="$CPPFLAGS $CPP_MSH3"
  26964. fi
  26965. LIBS="-lmsh3 $LIBS"
  26966. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MsH3ApiOpen in -lmsh3" >&5
  26967. printf %s "checking for MsH3ApiOpen in -lmsh3... " >&6; }
  26968. if test ${ac_cv_lib_msh3_MsH3ApiOpen+y}
  26969. then :
  26970. printf %s "(cached) " >&6
  26971. else $as_nop
  26972. ac_check_lib_save_LIBS=$LIBS
  26973. LIBS="-lmsh3 $LIBS"
  26974. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26975. /* end confdefs.h. */
  26976. #ifdef __cplusplus
  26977. extern "C"
  26978. #endif
  26979. char MsH3ApiOpen ();
  26980. int main (void)
  26981. {
  26982. return MsH3ApiOpen ();
  26983. ;
  26984. return 0;
  26985. }
  26986. _ACEOF
  26987. if ac_fn_c_try_link "$LINENO"
  26988. then :
  26989. ac_cv_lib_msh3_MsH3ApiOpen=yes
  26990. else $as_nop
  26991. ac_cv_lib_msh3_MsH3ApiOpen=no
  26992. fi
  26993. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  26994. conftest$ac_exeext conftest.$ac_ext
  26995. LIBS=$ac_check_lib_save_LIBS
  26996. fi
  26997. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_msh3_MsH3ApiOpen" >&5
  26998. printf "%s\n" "$ac_cv_lib_msh3_MsH3ApiOpen" >&6; }
  26999. if test "x$ac_cv_lib_msh3_MsH3ApiOpen" = xyes
  27000. then :
  27001. for ac_header in msh3.h
  27002. do :
  27003. ac_fn_c_check_header_compile "$LINENO" "msh3.h" "ac_cv_header_msh3_h" "$ac_includes_default"
  27004. if test "x$ac_cv_header_msh3_h" = xyes
  27005. then :
  27006. printf "%s\n" "#define HAVE_MSH3_H 1" >>confdefs.h
  27007. curl_h3_msg="enabled (msh3)"
  27008. MSH3_ENABLED=1
  27009. printf "%s\n" "#define USE_MSH3 1" >>confdefs.h
  27010. USE_MSH3=1
  27011. CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_MSH3"
  27012. export CURL_LIBRARY_PATH
  27013. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_MSH3 to CURL_LIBRARY_PATH" >&5
  27014. printf "%s\n" "$as_me: Added $DIR_MSH3 to CURL_LIBRARY_PATH" >&6;}
  27015. else $as_nop
  27016. experimental="$experimental HTTP3"
  27017. fi
  27018. done
  27019. else $as_nop
  27020. LDFLAGS=$CLEANLDFLAGS
  27021. CPPFLAGS=$CLEANCPPFLAGS
  27022. LIBS=$CLEANLIBS
  27023. fi
  27024. fi
  27025. OPT_ZSH_FPATH=default
  27026. # Check whether --with-zsh-functions-dir was given.
  27027. if test ${with_zsh_functions_dir+y}
  27028. then :
  27029. withval=$with_zsh_functions_dir; OPT_ZSH_FPATH=$withval
  27030. fi
  27031. case "$OPT_ZSH_FPATH" in
  27032. no)
  27033. ;;
  27034. default|yes)
  27035. ZSH_FUNCTIONS_DIR="$datarootdir/zsh/site-functions"
  27036. ;;
  27037. *)
  27038. ZSH_FUNCTIONS_DIR="$withval"
  27039. ;;
  27040. esac
  27041. OPT_FISH_FPATH=default
  27042. # Check whether --with-fish-functions-dir was given.
  27043. if test ${with_fish_functions_dir+y}
  27044. then :
  27045. withval=$with_fish_functions_dir; OPT_FISH_FPATH=$withval
  27046. fi
  27047. case "$OPT_FISH_FPATH" in
  27048. no)
  27049. ;;
  27050. default|yes)
  27051. if test -n "$PKG_CONFIG"; then
  27052. PKGCONFIG="$PKG_CONFIG"
  27053. else
  27054. if test -n "$ac_tool_prefix"; then
  27055. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  27056. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  27057. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  27058. printf %s "checking for $ac_word... " >&6; }
  27059. if test ${ac_cv_path_PKGCONFIG+y}
  27060. then :
  27061. printf %s "(cached) " >&6
  27062. else $as_nop
  27063. case $PKGCONFIG in
  27064. [\\/]* | ?:[\\/]*)
  27065. ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
  27066. ;;
  27067. *)
  27068. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  27069. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  27070. for as_dir in $as_dummy
  27071. do
  27072. IFS=$as_save_IFS
  27073. case $as_dir in #(((
  27074. '') as_dir=./ ;;
  27075. */) ;;
  27076. *) as_dir=$as_dir/ ;;
  27077. esac
  27078. for ac_exec_ext in '' $ac_executable_extensions; do
  27079. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  27080. ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  27081. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  27082. break 2
  27083. fi
  27084. done
  27085. done
  27086. IFS=$as_save_IFS
  27087. ;;
  27088. esac
  27089. fi
  27090. PKGCONFIG=$ac_cv_path_PKGCONFIG
  27091. if test -n "$PKGCONFIG"; then
  27092. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
  27093. printf "%s\n" "$PKGCONFIG" >&6; }
  27094. else
  27095. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27096. printf "%s\n" "no" >&6; }
  27097. fi
  27098. fi
  27099. if test -z "$ac_cv_path_PKGCONFIG"; then
  27100. ac_pt_PKGCONFIG=$PKGCONFIG
  27101. # Extract the first word of "pkg-config", so it can be a program name with args.
  27102. set dummy pkg-config; ac_word=$2
  27103. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  27104. printf %s "checking for $ac_word... " >&6; }
  27105. if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
  27106. then :
  27107. printf %s "(cached) " >&6
  27108. else $as_nop
  27109. case $ac_pt_PKGCONFIG in
  27110. [\\/]* | ?:[\\/]*)
  27111. ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
  27112. ;;
  27113. *)
  27114. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  27115. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  27116. for as_dir in $as_dummy
  27117. do
  27118. IFS=$as_save_IFS
  27119. case $as_dir in #(((
  27120. '') as_dir=./ ;;
  27121. */) ;;
  27122. *) as_dir=$as_dir/ ;;
  27123. esac
  27124. for ac_exec_ext in '' $ac_executable_extensions; do
  27125. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  27126. ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  27127. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  27128. break 2
  27129. fi
  27130. done
  27131. done
  27132. IFS=$as_save_IFS
  27133. ;;
  27134. esac
  27135. fi
  27136. ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
  27137. if test -n "$ac_pt_PKGCONFIG"; then
  27138. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
  27139. printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
  27140. else
  27141. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27142. printf "%s\n" "no" >&6; }
  27143. fi
  27144. if test "x$ac_pt_PKGCONFIG" = x; then
  27145. PKGCONFIG="no"
  27146. else
  27147. case $cross_compiling:$ac_tool_warned in
  27148. yes:)
  27149. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  27150. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  27151. ac_tool_warned=yes ;;
  27152. esac
  27153. PKGCONFIG=$ac_pt_PKGCONFIG
  27154. fi
  27155. else
  27156. PKGCONFIG="$ac_cv_path_PKGCONFIG"
  27157. fi
  27158. fi
  27159. if test "x$PKGCONFIG" != "xno"; then
  27160. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fish options with pkg-config" >&5
  27161. printf %s "checking for fish options with pkg-config... " >&6; }
  27162. itexists=`
  27163. if test -n ""; then
  27164. PKG_CONFIG_LIBDIR=""
  27165. export PKG_CONFIG_LIBDIR
  27166. fi
  27167. $PKGCONFIG --exists fish >/dev/null 2>&1 && echo 1`
  27168. if test -z "$itexists"; then
  27169. PKGCONFIG="no"
  27170. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27171. printf "%s\n" "no" >&6; }
  27172. else
  27173. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
  27174. printf "%s\n" "found" >&6; }
  27175. fi
  27176. fi
  27177. if test "$PKGCONFIG" != "no" ; then
  27178. FISH_FUNCTIONS_DIR="$($PKGCONFIG --variable completionsdir fish)"
  27179. else
  27180. FISH_FUNCTIONS_DIR="$datarootdir/fish/vendor_completions.d"
  27181. fi
  27182. ;;
  27183. *)
  27184. FISH_FUNCTIONS_DIR="$withval"
  27185. ;;
  27186. esac
  27187. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "
  27188. #ifdef HAVE_SYS_TYPES_H
  27189. #include <sys/types.h>
  27190. #endif
  27191. #ifdef HAVE_SYS_TIME_H
  27192. #include <sys/time.h>
  27193. #endif
  27194. #ifdef HAVE_SYS_SELECT_H
  27195. #include <sys/select.h>
  27196. #elif defined(HAVE_UNISTD_H)
  27197. #include <unistd.h>
  27198. #endif
  27199. #ifdef HAVE_SYS_SOCKET_H
  27200. #include <sys/socket.h>
  27201. #endif
  27202. #ifdef HAVE_NETINET_IN_H
  27203. #include <netinet/in.h>
  27204. #endif
  27205. #ifdef HAVE_NETINET_IN6_H
  27206. #include <netinet/in6.h>
  27207. #endif
  27208. #ifdef HAVE_SYS_UN_H
  27209. #include <sys/un.h>
  27210. #endif
  27211. "
  27212. if test "x$ac_cv_header_sys_types_h" = xyes
  27213. then :
  27214. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  27215. fi
  27216. ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "
  27217. #ifdef HAVE_SYS_TYPES_H
  27218. #include <sys/types.h>
  27219. #endif
  27220. #ifdef HAVE_SYS_TIME_H
  27221. #include <sys/time.h>
  27222. #endif
  27223. #ifdef HAVE_SYS_SELECT_H
  27224. #include <sys/select.h>
  27225. #elif defined(HAVE_UNISTD_H)
  27226. #include <unistd.h>
  27227. #endif
  27228. #ifdef HAVE_SYS_SOCKET_H
  27229. #include <sys/socket.h>
  27230. #endif
  27231. #ifdef HAVE_NETINET_IN_H
  27232. #include <netinet/in.h>
  27233. #endif
  27234. #ifdef HAVE_NETINET_IN6_H
  27235. #include <netinet/in6.h>
  27236. #endif
  27237. #ifdef HAVE_SYS_UN_H
  27238. #include <sys/un.h>
  27239. #endif
  27240. "
  27241. if test "x$ac_cv_header_sys_time_h" = xyes
  27242. then :
  27243. printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
  27244. fi
  27245. ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "
  27246. #ifdef HAVE_SYS_TYPES_H
  27247. #include <sys/types.h>
  27248. #endif
  27249. #ifdef HAVE_SYS_TIME_H
  27250. #include <sys/time.h>
  27251. #endif
  27252. #ifdef HAVE_SYS_SELECT_H
  27253. #include <sys/select.h>
  27254. #elif defined(HAVE_UNISTD_H)
  27255. #include <unistd.h>
  27256. #endif
  27257. #ifdef HAVE_SYS_SOCKET_H
  27258. #include <sys/socket.h>
  27259. #endif
  27260. #ifdef HAVE_NETINET_IN_H
  27261. #include <netinet/in.h>
  27262. #endif
  27263. #ifdef HAVE_NETINET_IN6_H
  27264. #include <netinet/in6.h>
  27265. #endif
  27266. #ifdef HAVE_SYS_UN_H
  27267. #include <sys/un.h>
  27268. #endif
  27269. "
  27270. if test "x$ac_cv_header_sys_select_h" = xyes
  27271. then :
  27272. printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
  27273. fi
  27274. ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "
  27275. #ifdef HAVE_SYS_TYPES_H
  27276. #include <sys/types.h>
  27277. #endif
  27278. #ifdef HAVE_SYS_TIME_H
  27279. #include <sys/time.h>
  27280. #endif
  27281. #ifdef HAVE_SYS_SELECT_H
  27282. #include <sys/select.h>
  27283. #elif defined(HAVE_UNISTD_H)
  27284. #include <unistd.h>
  27285. #endif
  27286. #ifdef HAVE_SYS_SOCKET_H
  27287. #include <sys/socket.h>
  27288. #endif
  27289. #ifdef HAVE_NETINET_IN_H
  27290. #include <netinet/in.h>
  27291. #endif
  27292. #ifdef HAVE_NETINET_IN6_H
  27293. #include <netinet/in6.h>
  27294. #endif
  27295. #ifdef HAVE_SYS_UN_H
  27296. #include <sys/un.h>
  27297. #endif
  27298. "
  27299. if test "x$ac_cv_header_sys_socket_h" = xyes
  27300. then :
  27301. printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
  27302. fi
  27303. ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "
  27304. #ifdef HAVE_SYS_TYPES_H
  27305. #include <sys/types.h>
  27306. #endif
  27307. #ifdef HAVE_SYS_TIME_H
  27308. #include <sys/time.h>
  27309. #endif
  27310. #ifdef HAVE_SYS_SELECT_H
  27311. #include <sys/select.h>
  27312. #elif defined(HAVE_UNISTD_H)
  27313. #include <unistd.h>
  27314. #endif
  27315. #ifdef HAVE_SYS_SOCKET_H
  27316. #include <sys/socket.h>
  27317. #endif
  27318. #ifdef HAVE_NETINET_IN_H
  27319. #include <netinet/in.h>
  27320. #endif
  27321. #ifdef HAVE_NETINET_IN6_H
  27322. #include <netinet/in6.h>
  27323. #endif
  27324. #ifdef HAVE_SYS_UN_H
  27325. #include <sys/un.h>
  27326. #endif
  27327. "
  27328. if test "x$ac_cv_header_sys_ioctl_h" = xyes
  27329. then :
  27330. printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
  27331. fi
  27332. ac_fn_c_check_header_compile "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "
  27333. #ifdef HAVE_SYS_TYPES_H
  27334. #include <sys/types.h>
  27335. #endif
  27336. #ifdef HAVE_SYS_TIME_H
  27337. #include <sys/time.h>
  27338. #endif
  27339. #ifdef HAVE_SYS_SELECT_H
  27340. #include <sys/select.h>
  27341. #elif defined(HAVE_UNISTD_H)
  27342. #include <unistd.h>
  27343. #endif
  27344. #ifdef HAVE_SYS_SOCKET_H
  27345. #include <sys/socket.h>
  27346. #endif
  27347. #ifdef HAVE_NETINET_IN_H
  27348. #include <netinet/in.h>
  27349. #endif
  27350. #ifdef HAVE_NETINET_IN6_H
  27351. #include <netinet/in6.h>
  27352. #endif
  27353. #ifdef HAVE_SYS_UN_H
  27354. #include <sys/un.h>
  27355. #endif
  27356. "
  27357. if test "x$ac_cv_header_sys_uio_h" = xyes
  27358. then :
  27359. printf "%s\n" "#define HAVE_SYS_UIO_H 1" >>confdefs.h
  27360. fi
  27361. ac_fn_c_check_header_compile "$LINENO" "assert.h" "ac_cv_header_assert_h" "
  27362. #ifdef HAVE_SYS_TYPES_H
  27363. #include <sys/types.h>
  27364. #endif
  27365. #ifdef HAVE_SYS_TIME_H
  27366. #include <sys/time.h>
  27367. #endif
  27368. #ifdef HAVE_SYS_SELECT_H
  27369. #include <sys/select.h>
  27370. #elif defined(HAVE_UNISTD_H)
  27371. #include <unistd.h>
  27372. #endif
  27373. #ifdef HAVE_SYS_SOCKET_H
  27374. #include <sys/socket.h>
  27375. #endif
  27376. #ifdef HAVE_NETINET_IN_H
  27377. #include <netinet/in.h>
  27378. #endif
  27379. #ifdef HAVE_NETINET_IN6_H
  27380. #include <netinet/in6.h>
  27381. #endif
  27382. #ifdef HAVE_SYS_UN_H
  27383. #include <sys/un.h>
  27384. #endif
  27385. "
  27386. if test "x$ac_cv_header_assert_h" = xyes
  27387. then :
  27388. printf "%s\n" "#define HAVE_ASSERT_H 1" >>confdefs.h
  27389. fi
  27390. ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "
  27391. #ifdef HAVE_SYS_TYPES_H
  27392. #include <sys/types.h>
  27393. #endif
  27394. #ifdef HAVE_SYS_TIME_H
  27395. #include <sys/time.h>
  27396. #endif
  27397. #ifdef HAVE_SYS_SELECT_H
  27398. #include <sys/select.h>
  27399. #elif defined(HAVE_UNISTD_H)
  27400. #include <unistd.h>
  27401. #endif
  27402. #ifdef HAVE_SYS_SOCKET_H
  27403. #include <sys/socket.h>
  27404. #endif
  27405. #ifdef HAVE_NETINET_IN_H
  27406. #include <netinet/in.h>
  27407. #endif
  27408. #ifdef HAVE_NETINET_IN6_H
  27409. #include <netinet/in6.h>
  27410. #endif
  27411. #ifdef HAVE_SYS_UN_H
  27412. #include <sys/un.h>
  27413. #endif
  27414. "
  27415. if test "x$ac_cv_header_unistd_h" = xyes
  27416. then :
  27417. printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
  27418. fi
  27419. ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "
  27420. #ifdef HAVE_SYS_TYPES_H
  27421. #include <sys/types.h>
  27422. #endif
  27423. #ifdef HAVE_SYS_TIME_H
  27424. #include <sys/time.h>
  27425. #endif
  27426. #ifdef HAVE_SYS_SELECT_H
  27427. #include <sys/select.h>
  27428. #elif defined(HAVE_UNISTD_H)
  27429. #include <unistd.h>
  27430. #endif
  27431. #ifdef HAVE_SYS_SOCKET_H
  27432. #include <sys/socket.h>
  27433. #endif
  27434. #ifdef HAVE_NETINET_IN_H
  27435. #include <netinet/in.h>
  27436. #endif
  27437. #ifdef HAVE_NETINET_IN6_H
  27438. #include <netinet/in6.h>
  27439. #endif
  27440. #ifdef HAVE_SYS_UN_H
  27441. #include <sys/un.h>
  27442. #endif
  27443. "
  27444. if test "x$ac_cv_header_stdlib_h" = xyes
  27445. then :
  27446. printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
  27447. fi
  27448. ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "
  27449. #ifdef HAVE_SYS_TYPES_H
  27450. #include <sys/types.h>
  27451. #endif
  27452. #ifdef HAVE_SYS_TIME_H
  27453. #include <sys/time.h>
  27454. #endif
  27455. #ifdef HAVE_SYS_SELECT_H
  27456. #include <sys/select.h>
  27457. #elif defined(HAVE_UNISTD_H)
  27458. #include <unistd.h>
  27459. #endif
  27460. #ifdef HAVE_SYS_SOCKET_H
  27461. #include <sys/socket.h>
  27462. #endif
  27463. #ifdef HAVE_NETINET_IN_H
  27464. #include <netinet/in.h>
  27465. #endif
  27466. #ifdef HAVE_NETINET_IN6_H
  27467. #include <netinet/in6.h>
  27468. #endif
  27469. #ifdef HAVE_SYS_UN_H
  27470. #include <sys/un.h>
  27471. #endif
  27472. "
  27473. if test "x$ac_cv_header_arpa_inet_h" = xyes
  27474. then :
  27475. printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h
  27476. fi
  27477. ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
  27478. #ifdef HAVE_SYS_TYPES_H
  27479. #include <sys/types.h>
  27480. #endif
  27481. #ifdef HAVE_SYS_TIME_H
  27482. #include <sys/time.h>
  27483. #endif
  27484. #ifdef HAVE_SYS_SELECT_H
  27485. #include <sys/select.h>
  27486. #elif defined(HAVE_UNISTD_H)
  27487. #include <unistd.h>
  27488. #endif
  27489. #ifdef HAVE_SYS_SOCKET_H
  27490. #include <sys/socket.h>
  27491. #endif
  27492. #ifdef HAVE_NETINET_IN_H
  27493. #include <netinet/in.h>
  27494. #endif
  27495. #ifdef HAVE_NETINET_IN6_H
  27496. #include <netinet/in6.h>
  27497. #endif
  27498. #ifdef HAVE_SYS_UN_H
  27499. #include <sys/un.h>
  27500. #endif
  27501. "
  27502. if test "x$ac_cv_header_net_if_h" = xyes
  27503. then :
  27504. printf "%s\n" "#define HAVE_NET_IF_H 1" >>confdefs.h
  27505. fi
  27506. ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "
  27507. #ifdef HAVE_SYS_TYPES_H
  27508. #include <sys/types.h>
  27509. #endif
  27510. #ifdef HAVE_SYS_TIME_H
  27511. #include <sys/time.h>
  27512. #endif
  27513. #ifdef HAVE_SYS_SELECT_H
  27514. #include <sys/select.h>
  27515. #elif defined(HAVE_UNISTD_H)
  27516. #include <unistd.h>
  27517. #endif
  27518. #ifdef HAVE_SYS_SOCKET_H
  27519. #include <sys/socket.h>
  27520. #endif
  27521. #ifdef HAVE_NETINET_IN_H
  27522. #include <netinet/in.h>
  27523. #endif
  27524. #ifdef HAVE_NETINET_IN6_H
  27525. #include <netinet/in6.h>
  27526. #endif
  27527. #ifdef HAVE_SYS_UN_H
  27528. #include <sys/un.h>
  27529. #endif
  27530. "
  27531. if test "x$ac_cv_header_netinet_in_h" = xyes
  27532. then :
  27533. printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
  27534. fi
  27535. ac_fn_c_check_header_compile "$LINENO" "netinet/in6.h" "ac_cv_header_netinet_in6_h" "
  27536. #ifdef HAVE_SYS_TYPES_H
  27537. #include <sys/types.h>
  27538. #endif
  27539. #ifdef HAVE_SYS_TIME_H
  27540. #include <sys/time.h>
  27541. #endif
  27542. #ifdef HAVE_SYS_SELECT_H
  27543. #include <sys/select.h>
  27544. #elif defined(HAVE_UNISTD_H)
  27545. #include <unistd.h>
  27546. #endif
  27547. #ifdef HAVE_SYS_SOCKET_H
  27548. #include <sys/socket.h>
  27549. #endif
  27550. #ifdef HAVE_NETINET_IN_H
  27551. #include <netinet/in.h>
  27552. #endif
  27553. #ifdef HAVE_NETINET_IN6_H
  27554. #include <netinet/in6.h>
  27555. #endif
  27556. #ifdef HAVE_SYS_UN_H
  27557. #include <sys/un.h>
  27558. #endif
  27559. "
  27560. if test "x$ac_cv_header_netinet_in6_h" = xyes
  27561. then :
  27562. printf "%s\n" "#define HAVE_NETINET_IN6_H 1" >>confdefs.h
  27563. fi
  27564. ac_fn_c_check_header_compile "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "
  27565. #ifdef HAVE_SYS_TYPES_H
  27566. #include <sys/types.h>
  27567. #endif
  27568. #ifdef HAVE_SYS_TIME_H
  27569. #include <sys/time.h>
  27570. #endif
  27571. #ifdef HAVE_SYS_SELECT_H
  27572. #include <sys/select.h>
  27573. #elif defined(HAVE_UNISTD_H)
  27574. #include <unistd.h>
  27575. #endif
  27576. #ifdef HAVE_SYS_SOCKET_H
  27577. #include <sys/socket.h>
  27578. #endif
  27579. #ifdef HAVE_NETINET_IN_H
  27580. #include <netinet/in.h>
  27581. #endif
  27582. #ifdef HAVE_NETINET_IN6_H
  27583. #include <netinet/in6.h>
  27584. #endif
  27585. #ifdef HAVE_SYS_UN_H
  27586. #include <sys/un.h>
  27587. #endif
  27588. "
  27589. if test "x$ac_cv_header_sys_un_h" = xyes
  27590. then :
  27591. printf "%s\n" "#define HAVE_SYS_UN_H 1" >>confdefs.h
  27592. fi
  27593. ac_fn_c_check_header_compile "$LINENO" "linux/tcp.h" "ac_cv_header_linux_tcp_h" "
  27594. #ifdef HAVE_SYS_TYPES_H
  27595. #include <sys/types.h>
  27596. #endif
  27597. #ifdef HAVE_SYS_TIME_H
  27598. #include <sys/time.h>
  27599. #endif
  27600. #ifdef HAVE_SYS_SELECT_H
  27601. #include <sys/select.h>
  27602. #elif defined(HAVE_UNISTD_H)
  27603. #include <unistd.h>
  27604. #endif
  27605. #ifdef HAVE_SYS_SOCKET_H
  27606. #include <sys/socket.h>
  27607. #endif
  27608. #ifdef HAVE_NETINET_IN_H
  27609. #include <netinet/in.h>
  27610. #endif
  27611. #ifdef HAVE_NETINET_IN6_H
  27612. #include <netinet/in6.h>
  27613. #endif
  27614. #ifdef HAVE_SYS_UN_H
  27615. #include <sys/un.h>
  27616. #endif
  27617. "
  27618. if test "x$ac_cv_header_linux_tcp_h" = xyes
  27619. then :
  27620. printf "%s\n" "#define HAVE_LINUX_TCP_H 1" >>confdefs.h
  27621. fi
  27622. ac_fn_c_check_header_compile "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "
  27623. #ifdef HAVE_SYS_TYPES_H
  27624. #include <sys/types.h>
  27625. #endif
  27626. #ifdef HAVE_SYS_TIME_H
  27627. #include <sys/time.h>
  27628. #endif
  27629. #ifdef HAVE_SYS_SELECT_H
  27630. #include <sys/select.h>
  27631. #elif defined(HAVE_UNISTD_H)
  27632. #include <unistd.h>
  27633. #endif
  27634. #ifdef HAVE_SYS_SOCKET_H
  27635. #include <sys/socket.h>
  27636. #endif
  27637. #ifdef HAVE_NETINET_IN_H
  27638. #include <netinet/in.h>
  27639. #endif
  27640. #ifdef HAVE_NETINET_IN6_H
  27641. #include <netinet/in6.h>
  27642. #endif
  27643. #ifdef HAVE_SYS_UN_H
  27644. #include <sys/un.h>
  27645. #endif
  27646. "
  27647. if test "x$ac_cv_header_netinet_tcp_h" = xyes
  27648. then :
  27649. printf "%s\n" "#define HAVE_NETINET_TCP_H 1" >>confdefs.h
  27650. fi
  27651. ac_fn_c_check_header_compile "$LINENO" "netinet/udp.h" "ac_cv_header_netinet_udp_h" "
  27652. #ifdef HAVE_SYS_TYPES_H
  27653. #include <sys/types.h>
  27654. #endif
  27655. #ifdef HAVE_SYS_TIME_H
  27656. #include <sys/time.h>
  27657. #endif
  27658. #ifdef HAVE_SYS_SELECT_H
  27659. #include <sys/select.h>
  27660. #elif defined(HAVE_UNISTD_H)
  27661. #include <unistd.h>
  27662. #endif
  27663. #ifdef HAVE_SYS_SOCKET_H
  27664. #include <sys/socket.h>
  27665. #endif
  27666. #ifdef HAVE_NETINET_IN_H
  27667. #include <netinet/in.h>
  27668. #endif
  27669. #ifdef HAVE_NETINET_IN6_H
  27670. #include <netinet/in6.h>
  27671. #endif
  27672. #ifdef HAVE_SYS_UN_H
  27673. #include <sys/un.h>
  27674. #endif
  27675. "
  27676. if test "x$ac_cv_header_netinet_udp_h" = xyes
  27677. then :
  27678. printf "%s\n" "#define HAVE_NETINET_UDP_H 1" >>confdefs.h
  27679. fi
  27680. ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "
  27681. #ifdef HAVE_SYS_TYPES_H
  27682. #include <sys/types.h>
  27683. #endif
  27684. #ifdef HAVE_SYS_TIME_H
  27685. #include <sys/time.h>
  27686. #endif
  27687. #ifdef HAVE_SYS_SELECT_H
  27688. #include <sys/select.h>
  27689. #elif defined(HAVE_UNISTD_H)
  27690. #include <unistd.h>
  27691. #endif
  27692. #ifdef HAVE_SYS_SOCKET_H
  27693. #include <sys/socket.h>
  27694. #endif
  27695. #ifdef HAVE_NETINET_IN_H
  27696. #include <netinet/in.h>
  27697. #endif
  27698. #ifdef HAVE_NETINET_IN6_H
  27699. #include <netinet/in6.h>
  27700. #endif
  27701. #ifdef HAVE_SYS_UN_H
  27702. #include <sys/un.h>
  27703. #endif
  27704. "
  27705. if test "x$ac_cv_header_netdb_h" = xyes
  27706. then :
  27707. printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h
  27708. fi
  27709. ac_fn_c_check_header_compile "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "
  27710. #ifdef HAVE_SYS_TYPES_H
  27711. #include <sys/types.h>
  27712. #endif
  27713. #ifdef HAVE_SYS_TIME_H
  27714. #include <sys/time.h>
  27715. #endif
  27716. #ifdef HAVE_SYS_SELECT_H
  27717. #include <sys/select.h>
  27718. #elif defined(HAVE_UNISTD_H)
  27719. #include <unistd.h>
  27720. #endif
  27721. #ifdef HAVE_SYS_SOCKET_H
  27722. #include <sys/socket.h>
  27723. #endif
  27724. #ifdef HAVE_NETINET_IN_H
  27725. #include <netinet/in.h>
  27726. #endif
  27727. #ifdef HAVE_NETINET_IN6_H
  27728. #include <netinet/in6.h>
  27729. #endif
  27730. #ifdef HAVE_SYS_UN_H
  27731. #include <sys/un.h>
  27732. #endif
  27733. "
  27734. if test "x$ac_cv_header_sys_sockio_h" = xyes
  27735. then :
  27736. printf "%s\n" "#define HAVE_SYS_SOCKIO_H 1" >>confdefs.h
  27737. fi
  27738. ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "
  27739. #ifdef HAVE_SYS_TYPES_H
  27740. #include <sys/types.h>
  27741. #endif
  27742. #ifdef HAVE_SYS_TIME_H
  27743. #include <sys/time.h>
  27744. #endif
  27745. #ifdef HAVE_SYS_SELECT_H
  27746. #include <sys/select.h>
  27747. #elif defined(HAVE_UNISTD_H)
  27748. #include <unistd.h>
  27749. #endif
  27750. #ifdef HAVE_SYS_SOCKET_H
  27751. #include <sys/socket.h>
  27752. #endif
  27753. #ifdef HAVE_NETINET_IN_H
  27754. #include <netinet/in.h>
  27755. #endif
  27756. #ifdef HAVE_NETINET_IN6_H
  27757. #include <netinet/in6.h>
  27758. #endif
  27759. #ifdef HAVE_SYS_UN_H
  27760. #include <sys/un.h>
  27761. #endif
  27762. "
  27763. if test "x$ac_cv_header_sys_stat_h" = xyes
  27764. then :
  27765. printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h
  27766. fi
  27767. ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "
  27768. #ifdef HAVE_SYS_TYPES_H
  27769. #include <sys/types.h>
  27770. #endif
  27771. #ifdef HAVE_SYS_TIME_H
  27772. #include <sys/time.h>
  27773. #endif
  27774. #ifdef HAVE_SYS_SELECT_H
  27775. #include <sys/select.h>
  27776. #elif defined(HAVE_UNISTD_H)
  27777. #include <unistd.h>
  27778. #endif
  27779. #ifdef HAVE_SYS_SOCKET_H
  27780. #include <sys/socket.h>
  27781. #endif
  27782. #ifdef HAVE_NETINET_IN_H
  27783. #include <netinet/in.h>
  27784. #endif
  27785. #ifdef HAVE_NETINET_IN6_H
  27786. #include <netinet/in6.h>
  27787. #endif
  27788. #ifdef HAVE_SYS_UN_H
  27789. #include <sys/un.h>
  27790. #endif
  27791. "
  27792. if test "x$ac_cv_header_sys_param_h" = xyes
  27793. then :
  27794. printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
  27795. fi
  27796. ac_fn_c_check_header_compile "$LINENO" "termios.h" "ac_cv_header_termios_h" "
  27797. #ifdef HAVE_SYS_TYPES_H
  27798. #include <sys/types.h>
  27799. #endif
  27800. #ifdef HAVE_SYS_TIME_H
  27801. #include <sys/time.h>
  27802. #endif
  27803. #ifdef HAVE_SYS_SELECT_H
  27804. #include <sys/select.h>
  27805. #elif defined(HAVE_UNISTD_H)
  27806. #include <unistd.h>
  27807. #endif
  27808. #ifdef HAVE_SYS_SOCKET_H
  27809. #include <sys/socket.h>
  27810. #endif
  27811. #ifdef HAVE_NETINET_IN_H
  27812. #include <netinet/in.h>
  27813. #endif
  27814. #ifdef HAVE_NETINET_IN6_H
  27815. #include <netinet/in6.h>
  27816. #endif
  27817. #ifdef HAVE_SYS_UN_H
  27818. #include <sys/un.h>
  27819. #endif
  27820. "
  27821. if test "x$ac_cv_header_termios_h" = xyes
  27822. then :
  27823. printf "%s\n" "#define HAVE_TERMIOS_H 1" >>confdefs.h
  27824. fi
  27825. ac_fn_c_check_header_compile "$LINENO" "termio.h" "ac_cv_header_termio_h" "
  27826. #ifdef HAVE_SYS_TYPES_H
  27827. #include <sys/types.h>
  27828. #endif
  27829. #ifdef HAVE_SYS_TIME_H
  27830. #include <sys/time.h>
  27831. #endif
  27832. #ifdef HAVE_SYS_SELECT_H
  27833. #include <sys/select.h>
  27834. #elif defined(HAVE_UNISTD_H)
  27835. #include <unistd.h>
  27836. #endif
  27837. #ifdef HAVE_SYS_SOCKET_H
  27838. #include <sys/socket.h>
  27839. #endif
  27840. #ifdef HAVE_NETINET_IN_H
  27841. #include <netinet/in.h>
  27842. #endif
  27843. #ifdef HAVE_NETINET_IN6_H
  27844. #include <netinet/in6.h>
  27845. #endif
  27846. #ifdef HAVE_SYS_UN_H
  27847. #include <sys/un.h>
  27848. #endif
  27849. "
  27850. if test "x$ac_cv_header_termio_h" = xyes
  27851. then :
  27852. printf "%s\n" "#define HAVE_TERMIO_H 1" >>confdefs.h
  27853. fi
  27854. ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "
  27855. #ifdef HAVE_SYS_TYPES_H
  27856. #include <sys/types.h>
  27857. #endif
  27858. #ifdef HAVE_SYS_TIME_H
  27859. #include <sys/time.h>
  27860. #endif
  27861. #ifdef HAVE_SYS_SELECT_H
  27862. #include <sys/select.h>
  27863. #elif defined(HAVE_UNISTD_H)
  27864. #include <unistd.h>
  27865. #endif
  27866. #ifdef HAVE_SYS_SOCKET_H
  27867. #include <sys/socket.h>
  27868. #endif
  27869. #ifdef HAVE_NETINET_IN_H
  27870. #include <netinet/in.h>
  27871. #endif
  27872. #ifdef HAVE_NETINET_IN6_H
  27873. #include <netinet/in6.h>
  27874. #endif
  27875. #ifdef HAVE_SYS_UN_H
  27876. #include <sys/un.h>
  27877. #endif
  27878. "
  27879. if test "x$ac_cv_header_fcntl_h" = xyes
  27880. then :
  27881. printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
  27882. fi
  27883. ac_fn_c_check_header_compile "$LINENO" "io.h" "ac_cv_header_io_h" "
  27884. #ifdef HAVE_SYS_TYPES_H
  27885. #include <sys/types.h>
  27886. #endif
  27887. #ifdef HAVE_SYS_TIME_H
  27888. #include <sys/time.h>
  27889. #endif
  27890. #ifdef HAVE_SYS_SELECT_H
  27891. #include <sys/select.h>
  27892. #elif defined(HAVE_UNISTD_H)
  27893. #include <unistd.h>
  27894. #endif
  27895. #ifdef HAVE_SYS_SOCKET_H
  27896. #include <sys/socket.h>
  27897. #endif
  27898. #ifdef HAVE_NETINET_IN_H
  27899. #include <netinet/in.h>
  27900. #endif
  27901. #ifdef HAVE_NETINET_IN6_H
  27902. #include <netinet/in6.h>
  27903. #endif
  27904. #ifdef HAVE_SYS_UN_H
  27905. #include <sys/un.h>
  27906. #endif
  27907. "
  27908. if test "x$ac_cv_header_io_h" = xyes
  27909. then :
  27910. printf "%s\n" "#define HAVE_IO_H 1" >>confdefs.h
  27911. fi
  27912. ac_fn_c_check_header_compile "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "
  27913. #ifdef HAVE_SYS_TYPES_H
  27914. #include <sys/types.h>
  27915. #endif
  27916. #ifdef HAVE_SYS_TIME_H
  27917. #include <sys/time.h>
  27918. #endif
  27919. #ifdef HAVE_SYS_SELECT_H
  27920. #include <sys/select.h>
  27921. #elif defined(HAVE_UNISTD_H)
  27922. #include <unistd.h>
  27923. #endif
  27924. #ifdef HAVE_SYS_SOCKET_H
  27925. #include <sys/socket.h>
  27926. #endif
  27927. #ifdef HAVE_NETINET_IN_H
  27928. #include <netinet/in.h>
  27929. #endif
  27930. #ifdef HAVE_NETINET_IN6_H
  27931. #include <netinet/in6.h>
  27932. #endif
  27933. #ifdef HAVE_SYS_UN_H
  27934. #include <sys/un.h>
  27935. #endif
  27936. "
  27937. if test "x$ac_cv_header_pwd_h" = xyes
  27938. then :
  27939. printf "%s\n" "#define HAVE_PWD_H 1" >>confdefs.h
  27940. fi
  27941. ac_fn_c_check_header_compile "$LINENO" "utime.h" "ac_cv_header_utime_h" "
  27942. #ifdef HAVE_SYS_TYPES_H
  27943. #include <sys/types.h>
  27944. #endif
  27945. #ifdef HAVE_SYS_TIME_H
  27946. #include <sys/time.h>
  27947. #endif
  27948. #ifdef HAVE_SYS_SELECT_H
  27949. #include <sys/select.h>
  27950. #elif defined(HAVE_UNISTD_H)
  27951. #include <unistd.h>
  27952. #endif
  27953. #ifdef HAVE_SYS_SOCKET_H
  27954. #include <sys/socket.h>
  27955. #endif
  27956. #ifdef HAVE_NETINET_IN_H
  27957. #include <netinet/in.h>
  27958. #endif
  27959. #ifdef HAVE_NETINET_IN6_H
  27960. #include <netinet/in6.h>
  27961. #endif
  27962. #ifdef HAVE_SYS_UN_H
  27963. #include <sys/un.h>
  27964. #endif
  27965. "
  27966. if test "x$ac_cv_header_utime_h" = xyes
  27967. then :
  27968. printf "%s\n" "#define HAVE_UTIME_H 1" >>confdefs.h
  27969. fi
  27970. ac_fn_c_check_header_compile "$LINENO" "sys/utime.h" "ac_cv_header_sys_utime_h" "
  27971. #ifdef HAVE_SYS_TYPES_H
  27972. #include <sys/types.h>
  27973. #endif
  27974. #ifdef HAVE_SYS_TIME_H
  27975. #include <sys/time.h>
  27976. #endif
  27977. #ifdef HAVE_SYS_SELECT_H
  27978. #include <sys/select.h>
  27979. #elif defined(HAVE_UNISTD_H)
  27980. #include <unistd.h>
  27981. #endif
  27982. #ifdef HAVE_SYS_SOCKET_H
  27983. #include <sys/socket.h>
  27984. #endif
  27985. #ifdef HAVE_NETINET_IN_H
  27986. #include <netinet/in.h>
  27987. #endif
  27988. #ifdef HAVE_NETINET_IN6_H
  27989. #include <netinet/in6.h>
  27990. #endif
  27991. #ifdef HAVE_SYS_UN_H
  27992. #include <sys/un.h>
  27993. #endif
  27994. "
  27995. if test "x$ac_cv_header_sys_utime_h" = xyes
  27996. then :
  27997. printf "%s\n" "#define HAVE_SYS_UTIME_H 1" >>confdefs.h
  27998. fi
  27999. ac_fn_c_check_header_compile "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "
  28000. #ifdef HAVE_SYS_TYPES_H
  28001. #include <sys/types.h>
  28002. #endif
  28003. #ifdef HAVE_SYS_TIME_H
  28004. #include <sys/time.h>
  28005. #endif
  28006. #ifdef HAVE_SYS_SELECT_H
  28007. #include <sys/select.h>
  28008. #elif defined(HAVE_UNISTD_H)
  28009. #include <unistd.h>
  28010. #endif
  28011. #ifdef HAVE_SYS_SOCKET_H
  28012. #include <sys/socket.h>
  28013. #endif
  28014. #ifdef HAVE_NETINET_IN_H
  28015. #include <netinet/in.h>
  28016. #endif
  28017. #ifdef HAVE_NETINET_IN6_H
  28018. #include <netinet/in6.h>
  28019. #endif
  28020. #ifdef HAVE_SYS_UN_H
  28021. #include <sys/un.h>
  28022. #endif
  28023. "
  28024. if test "x$ac_cv_header_sys_poll_h" = xyes
  28025. then :
  28026. printf "%s\n" "#define HAVE_SYS_POLL_H 1" >>confdefs.h
  28027. fi
  28028. ac_fn_c_check_header_compile "$LINENO" "poll.h" "ac_cv_header_poll_h" "
  28029. #ifdef HAVE_SYS_TYPES_H
  28030. #include <sys/types.h>
  28031. #endif
  28032. #ifdef HAVE_SYS_TIME_H
  28033. #include <sys/time.h>
  28034. #endif
  28035. #ifdef HAVE_SYS_SELECT_H
  28036. #include <sys/select.h>
  28037. #elif defined(HAVE_UNISTD_H)
  28038. #include <unistd.h>
  28039. #endif
  28040. #ifdef HAVE_SYS_SOCKET_H
  28041. #include <sys/socket.h>
  28042. #endif
  28043. #ifdef HAVE_NETINET_IN_H
  28044. #include <netinet/in.h>
  28045. #endif
  28046. #ifdef HAVE_NETINET_IN6_H
  28047. #include <netinet/in6.h>
  28048. #endif
  28049. #ifdef HAVE_SYS_UN_H
  28050. #include <sys/un.h>
  28051. #endif
  28052. "
  28053. if test "x$ac_cv_header_poll_h" = xyes
  28054. then :
  28055. printf "%s\n" "#define HAVE_POLL_H 1" >>confdefs.h
  28056. fi
  28057. ac_fn_c_check_header_compile "$LINENO" "socket.h" "ac_cv_header_socket_h" "
  28058. #ifdef HAVE_SYS_TYPES_H
  28059. #include <sys/types.h>
  28060. #endif
  28061. #ifdef HAVE_SYS_TIME_H
  28062. #include <sys/time.h>
  28063. #endif
  28064. #ifdef HAVE_SYS_SELECT_H
  28065. #include <sys/select.h>
  28066. #elif defined(HAVE_UNISTD_H)
  28067. #include <unistd.h>
  28068. #endif
  28069. #ifdef HAVE_SYS_SOCKET_H
  28070. #include <sys/socket.h>
  28071. #endif
  28072. #ifdef HAVE_NETINET_IN_H
  28073. #include <netinet/in.h>
  28074. #endif
  28075. #ifdef HAVE_NETINET_IN6_H
  28076. #include <netinet/in6.h>
  28077. #endif
  28078. #ifdef HAVE_SYS_UN_H
  28079. #include <sys/un.h>
  28080. #endif
  28081. "
  28082. if test "x$ac_cv_header_socket_h" = xyes
  28083. then :
  28084. printf "%s\n" "#define HAVE_SOCKET_H 1" >>confdefs.h
  28085. fi
  28086. ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "
  28087. #ifdef HAVE_SYS_TYPES_H
  28088. #include <sys/types.h>
  28089. #endif
  28090. #ifdef HAVE_SYS_TIME_H
  28091. #include <sys/time.h>
  28092. #endif
  28093. #ifdef HAVE_SYS_SELECT_H
  28094. #include <sys/select.h>
  28095. #elif defined(HAVE_UNISTD_H)
  28096. #include <unistd.h>
  28097. #endif
  28098. #ifdef HAVE_SYS_SOCKET_H
  28099. #include <sys/socket.h>
  28100. #endif
  28101. #ifdef HAVE_NETINET_IN_H
  28102. #include <netinet/in.h>
  28103. #endif
  28104. #ifdef HAVE_NETINET_IN6_H
  28105. #include <netinet/in6.h>
  28106. #endif
  28107. #ifdef HAVE_SYS_UN_H
  28108. #include <sys/un.h>
  28109. #endif
  28110. "
  28111. if test "x$ac_cv_header_sys_resource_h" = xyes
  28112. then :
  28113. printf "%s\n" "#define HAVE_SYS_RESOURCE_H 1" >>confdefs.h
  28114. fi
  28115. ac_fn_c_check_header_compile "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "
  28116. #ifdef HAVE_SYS_TYPES_H
  28117. #include <sys/types.h>
  28118. #endif
  28119. #ifdef HAVE_SYS_TIME_H
  28120. #include <sys/time.h>
  28121. #endif
  28122. #ifdef HAVE_SYS_SELECT_H
  28123. #include <sys/select.h>
  28124. #elif defined(HAVE_UNISTD_H)
  28125. #include <unistd.h>
  28126. #endif
  28127. #ifdef HAVE_SYS_SOCKET_H
  28128. #include <sys/socket.h>
  28129. #endif
  28130. #ifdef HAVE_NETINET_IN_H
  28131. #include <netinet/in.h>
  28132. #endif
  28133. #ifdef HAVE_NETINET_IN6_H
  28134. #include <netinet/in6.h>
  28135. #endif
  28136. #ifdef HAVE_SYS_UN_H
  28137. #include <sys/un.h>
  28138. #endif
  28139. "
  28140. if test "x$ac_cv_header_libgen_h" = xyes
  28141. then :
  28142. printf "%s\n" "#define HAVE_LIBGEN_H 1" >>confdefs.h
  28143. fi
  28144. ac_fn_c_check_header_compile "$LINENO" "locale.h" "ac_cv_header_locale_h" "
  28145. #ifdef HAVE_SYS_TYPES_H
  28146. #include <sys/types.h>
  28147. #endif
  28148. #ifdef HAVE_SYS_TIME_H
  28149. #include <sys/time.h>
  28150. #endif
  28151. #ifdef HAVE_SYS_SELECT_H
  28152. #include <sys/select.h>
  28153. #elif defined(HAVE_UNISTD_H)
  28154. #include <unistd.h>
  28155. #endif
  28156. #ifdef HAVE_SYS_SOCKET_H
  28157. #include <sys/socket.h>
  28158. #endif
  28159. #ifdef HAVE_NETINET_IN_H
  28160. #include <netinet/in.h>
  28161. #endif
  28162. #ifdef HAVE_NETINET_IN6_H
  28163. #include <netinet/in6.h>
  28164. #endif
  28165. #ifdef HAVE_SYS_UN_H
  28166. #include <sys/un.h>
  28167. #endif
  28168. "
  28169. if test "x$ac_cv_header_locale_h" = xyes
  28170. then :
  28171. printf "%s\n" "#define HAVE_LOCALE_H 1" >>confdefs.h
  28172. fi
  28173. ac_fn_c_check_header_compile "$LINENO" "errno.h" "ac_cv_header_errno_h" "
  28174. #ifdef HAVE_SYS_TYPES_H
  28175. #include <sys/types.h>
  28176. #endif
  28177. #ifdef HAVE_SYS_TIME_H
  28178. #include <sys/time.h>
  28179. #endif
  28180. #ifdef HAVE_SYS_SELECT_H
  28181. #include <sys/select.h>
  28182. #elif defined(HAVE_UNISTD_H)
  28183. #include <unistd.h>
  28184. #endif
  28185. #ifdef HAVE_SYS_SOCKET_H
  28186. #include <sys/socket.h>
  28187. #endif
  28188. #ifdef HAVE_NETINET_IN_H
  28189. #include <netinet/in.h>
  28190. #endif
  28191. #ifdef HAVE_NETINET_IN6_H
  28192. #include <netinet/in6.h>
  28193. #endif
  28194. #ifdef HAVE_SYS_UN_H
  28195. #include <sys/un.h>
  28196. #endif
  28197. "
  28198. if test "x$ac_cv_header_errno_h" = xyes
  28199. then :
  28200. printf "%s\n" "#define HAVE_ERRNO_H 1" >>confdefs.h
  28201. fi
  28202. ac_fn_c_check_header_compile "$LINENO" "stdbool.h" "ac_cv_header_stdbool_h" "
  28203. #ifdef HAVE_SYS_TYPES_H
  28204. #include <sys/types.h>
  28205. #endif
  28206. #ifdef HAVE_SYS_TIME_H
  28207. #include <sys/time.h>
  28208. #endif
  28209. #ifdef HAVE_SYS_SELECT_H
  28210. #include <sys/select.h>
  28211. #elif defined(HAVE_UNISTD_H)
  28212. #include <unistd.h>
  28213. #endif
  28214. #ifdef HAVE_SYS_SOCKET_H
  28215. #include <sys/socket.h>
  28216. #endif
  28217. #ifdef HAVE_NETINET_IN_H
  28218. #include <netinet/in.h>
  28219. #endif
  28220. #ifdef HAVE_NETINET_IN6_H
  28221. #include <netinet/in6.h>
  28222. #endif
  28223. #ifdef HAVE_SYS_UN_H
  28224. #include <sys/un.h>
  28225. #endif
  28226. "
  28227. if test "x$ac_cv_header_stdbool_h" = xyes
  28228. then :
  28229. printf "%s\n" "#define HAVE_STDBOOL_H 1" >>confdefs.h
  28230. fi
  28231. ac_fn_c_check_header_compile "$LINENO" "arpa/tftp.h" "ac_cv_header_arpa_tftp_h" "
  28232. #ifdef HAVE_SYS_TYPES_H
  28233. #include <sys/types.h>
  28234. #endif
  28235. #ifdef HAVE_SYS_TIME_H
  28236. #include <sys/time.h>
  28237. #endif
  28238. #ifdef HAVE_SYS_SELECT_H
  28239. #include <sys/select.h>
  28240. #elif defined(HAVE_UNISTD_H)
  28241. #include <unistd.h>
  28242. #endif
  28243. #ifdef HAVE_SYS_SOCKET_H
  28244. #include <sys/socket.h>
  28245. #endif
  28246. #ifdef HAVE_NETINET_IN_H
  28247. #include <netinet/in.h>
  28248. #endif
  28249. #ifdef HAVE_NETINET_IN6_H
  28250. #include <netinet/in6.h>
  28251. #endif
  28252. #ifdef HAVE_SYS_UN_H
  28253. #include <sys/un.h>
  28254. #endif
  28255. "
  28256. if test "x$ac_cv_header_arpa_tftp_h" = xyes
  28257. then :
  28258. printf "%s\n" "#define HAVE_ARPA_TFTP_H 1" >>confdefs.h
  28259. fi
  28260. ac_fn_c_check_header_compile "$LINENO" "sys/filio.h" "ac_cv_header_sys_filio_h" "
  28261. #ifdef HAVE_SYS_TYPES_H
  28262. #include <sys/types.h>
  28263. #endif
  28264. #ifdef HAVE_SYS_TIME_H
  28265. #include <sys/time.h>
  28266. #endif
  28267. #ifdef HAVE_SYS_SELECT_H
  28268. #include <sys/select.h>
  28269. #elif defined(HAVE_UNISTD_H)
  28270. #include <unistd.h>
  28271. #endif
  28272. #ifdef HAVE_SYS_SOCKET_H
  28273. #include <sys/socket.h>
  28274. #endif
  28275. #ifdef HAVE_NETINET_IN_H
  28276. #include <netinet/in.h>
  28277. #endif
  28278. #ifdef HAVE_NETINET_IN6_H
  28279. #include <netinet/in6.h>
  28280. #endif
  28281. #ifdef HAVE_SYS_UN_H
  28282. #include <sys/un.h>
  28283. #endif
  28284. "
  28285. if test "x$ac_cv_header_sys_filio_h" = xyes
  28286. then :
  28287. printf "%s\n" "#define HAVE_SYS_FILIO_H 1" >>confdefs.h
  28288. fi
  28289. ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "
  28290. #ifdef HAVE_SYS_TYPES_H
  28291. #include <sys/types.h>
  28292. #endif
  28293. #ifdef HAVE_SYS_TIME_H
  28294. #include <sys/time.h>
  28295. #endif
  28296. #ifdef HAVE_SYS_SELECT_H
  28297. #include <sys/select.h>
  28298. #elif defined(HAVE_UNISTD_H)
  28299. #include <unistd.h>
  28300. #endif
  28301. #ifdef HAVE_SYS_SOCKET_H
  28302. #include <sys/socket.h>
  28303. #endif
  28304. #ifdef HAVE_NETINET_IN_H
  28305. #include <netinet/in.h>
  28306. #endif
  28307. #ifdef HAVE_NETINET_IN6_H
  28308. #include <netinet/in6.h>
  28309. #endif
  28310. #ifdef HAVE_SYS_UN_H
  28311. #include <sys/un.h>
  28312. #endif
  28313. "
  28314. if test "x$ac_cv_header_sys_wait_h" = xyes
  28315. then :
  28316. printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
  28317. fi
  28318. ac_fn_c_check_header_compile "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "
  28319. #ifdef HAVE_SYS_TYPES_H
  28320. #include <sys/types.h>
  28321. #endif
  28322. #ifdef HAVE_SYS_TIME_H
  28323. #include <sys/time.h>
  28324. #endif
  28325. #ifdef HAVE_SYS_SELECT_H
  28326. #include <sys/select.h>
  28327. #elif defined(HAVE_UNISTD_H)
  28328. #include <unistd.h>
  28329. #endif
  28330. #ifdef HAVE_SYS_SOCKET_H
  28331. #include <sys/socket.h>
  28332. #endif
  28333. #ifdef HAVE_NETINET_IN_H
  28334. #include <netinet/in.h>
  28335. #endif
  28336. #ifdef HAVE_NETINET_IN6_H
  28337. #include <netinet/in6.h>
  28338. #endif
  28339. #ifdef HAVE_SYS_UN_H
  28340. #include <sys/un.h>
  28341. #endif
  28342. "
  28343. if test "x$ac_cv_header_setjmp_h" = xyes
  28344. then :
  28345. printf "%s\n" "#define HAVE_SETJMP_H 1" >>confdefs.h
  28346. fi
  28347. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  28348. printf %s "checking for an ANSI C-conforming const... " >&6; }
  28349. if test ${ac_cv_c_const+y}
  28350. then :
  28351. printf %s "(cached) " >&6
  28352. else $as_nop
  28353. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28354. /* end confdefs.h. */
  28355. int main (void)
  28356. {
  28357. #ifndef __cplusplus
  28358. /* Ultrix mips cc rejects this sort of thing. */
  28359. typedef int charset[2];
  28360. const charset cs = { 0, 0 };
  28361. /* SunOS 4.1.1 cc rejects this. */
  28362. char const *const *pcpcc;
  28363. char **ppc;
  28364. /* NEC SVR4.0.2 mips cc rejects this. */
  28365. struct point {int x, y;};
  28366. static struct point const zero = {0,0};
  28367. /* IBM XL C 1.02.0.0 rejects this.
  28368. It does not let you subtract one const X* pointer from another in
  28369. an arm of an if-expression whose if-part is not a constant
  28370. expression */
  28371. const char *g = "string";
  28372. pcpcc = &g + (g ? g-g : 0);
  28373. /* HPUX 7.0 cc rejects these. */
  28374. ++pcpcc;
  28375. ppc = (char**) pcpcc;
  28376. pcpcc = (char const *const *) ppc;
  28377. { /* SCO 3.2v4 cc rejects this sort of thing. */
  28378. char tx;
  28379. char *t = &tx;
  28380. char const *s = 0 ? (char *) 0 : (char const *) 0;
  28381. *t++ = 0;
  28382. if (s) return 0;
  28383. }
  28384. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  28385. int x[] = {25, 17};
  28386. const int *foo = &x[0];
  28387. ++foo;
  28388. }
  28389. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  28390. typedef const int *iptr;
  28391. iptr p = 0;
  28392. ++p;
  28393. }
  28394. { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
  28395. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  28396. struct s { int j; const int *ap[3]; } bx;
  28397. struct s *b = &bx; b->j = 5;
  28398. }
  28399. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  28400. const int foo = 10;
  28401. if (!foo) return 0;
  28402. }
  28403. return !cs[0] && !zero.x;
  28404. #endif
  28405. ;
  28406. return 0;
  28407. }
  28408. _ACEOF
  28409. if ac_fn_c_try_compile "$LINENO"
  28410. then :
  28411. ac_cv_c_const=yes
  28412. else $as_nop
  28413. ac_cv_c_const=no
  28414. fi
  28415. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  28416. fi
  28417. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  28418. printf "%s\n" "$ac_cv_c_const" >&6; }
  28419. if test $ac_cv_c_const = no; then
  28420. printf "%s\n" "#define const /**/" >>confdefs.h
  28421. fi
  28422. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler support of C99 variadic macro style" >&5
  28423. printf %s "checking for compiler support of C99 variadic macro style... " >&6; }
  28424. if test ${curl_cv_variadic_macros_c99+y}
  28425. then :
  28426. printf %s "(cached) " >&6
  28427. else $as_nop
  28428. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28429. /* end confdefs.h. */
  28430. #define c99_vmacro3(first, ...) fun3(first, __VA_ARGS__)
  28431. #define c99_vmacro2(first, ...) fun2(first, __VA_ARGS__)
  28432. int fun3(int arg1, int arg2, int arg3);
  28433. int fun2(int arg1, int arg2);
  28434. int fun3(int arg1, int arg2, int arg3)
  28435. { return arg1 + arg2 + arg3; }
  28436. int fun2(int arg1, int arg2)
  28437. { return arg1 + arg2; }
  28438. int main (void)
  28439. {
  28440. int res3 = c99_vmacro3(1, 2, 3);
  28441. int res2 = c99_vmacro2(1, 2);
  28442. ;
  28443. return 0;
  28444. }
  28445. _ACEOF
  28446. if ac_fn_c_try_compile "$LINENO"
  28447. then :
  28448. curl_cv_variadic_macros_c99="yes"
  28449. else $as_nop
  28450. curl_cv_variadic_macros_c99="no"
  28451. fi
  28452. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  28453. fi
  28454. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_c99" >&5
  28455. printf "%s\n" "$curl_cv_variadic_macros_c99" >&6; }
  28456. case "$curl_cv_variadic_macros_c99" in
  28457. yes)
  28458. printf "%s\n" "#define HAVE_VARIADIC_MACROS_C99 1" >>confdefs.h
  28459. ;;
  28460. esac
  28461. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler support of old gcc variadic macro style" >&5
  28462. printf %s "checking for compiler support of old gcc variadic macro style... " >&6; }
  28463. if test ${curl_cv_variadic_macros_gcc+y}
  28464. then :
  28465. printf %s "(cached) " >&6
  28466. else $as_nop
  28467. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28468. /* end confdefs.h. */
  28469. #define gcc_vmacro3(first, args...) fun3(first, args)
  28470. #define gcc_vmacro2(first, args...) fun2(first, args)
  28471. int fun3(int arg1, int arg2, int arg3);
  28472. int fun2(int arg1, int arg2);
  28473. int fun3(int arg1, int arg2, int arg3)
  28474. { return arg1 + arg2 + arg3; }
  28475. int fun2(int arg1, int arg2)
  28476. { return arg1 + arg2; }
  28477. int main (void)
  28478. {
  28479. int res3 = gcc_vmacro3(1, 2, 3);
  28480. int res2 = gcc_vmacro2(1, 2);
  28481. ;
  28482. return 0;
  28483. }
  28484. _ACEOF
  28485. if ac_fn_c_try_compile "$LINENO"
  28486. then :
  28487. curl_cv_variadic_macros_gcc="yes"
  28488. else $as_nop
  28489. curl_cv_variadic_macros_gcc="no"
  28490. fi
  28491. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  28492. fi
  28493. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_gcc" >&5
  28494. printf "%s\n" "$curl_cv_variadic_macros_gcc" >&6; }
  28495. case "$curl_cv_variadic_macros_gcc" in
  28496. yes)
  28497. printf "%s\n" "#define HAVE_VARIADIC_MACROS_GCC 1" >>confdefs.h
  28498. ;;
  28499. esac
  28500. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  28501. if test "x$ac_cv_type_size_t" = xyes
  28502. then :
  28503. else $as_nop
  28504. printf "%s\n" "#define size_t unsigned int" >>confdefs.h
  28505. fi
  28506. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
  28507. if test "x$ac_cv_header_sys_types_h" = xyes
  28508. then :
  28509. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  28510. fi
  28511. ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
  28512. if test "x$ac_cv_header_sys_time_h" = xyes
  28513. then :
  28514. printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
  28515. fi
  28516. ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
  28517. if test "x$ac_cv_header_sys_socket_h" = xyes
  28518. then :
  28519. printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
  28520. fi
  28521. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
  28522. printf %s "checking for struct timeval... " >&6; }
  28523. if test ${curl_cv_struct_timeval+y}
  28524. then :
  28525. printf %s "(cached) " >&6
  28526. else $as_nop
  28527. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28528. /* end confdefs.h. */
  28529. #undef inline
  28530. #ifdef HAVE_WINDOWS_H
  28531. #ifndef WIN32_LEAN_AND_MEAN
  28532. #define WIN32_LEAN_AND_MEAN
  28533. #endif
  28534. #include <windows.h>
  28535. #ifdef HAVE_WINSOCK2_H
  28536. #include <winsock2.h>
  28537. #endif
  28538. #endif
  28539. #ifdef HAVE_SYS_TYPES_H
  28540. #include <sys/types.h>
  28541. #endif
  28542. #ifdef HAVE_SYS_TIME_H
  28543. #include <sys/time.h>
  28544. #endif
  28545. #include <time.h>
  28546. #ifdef HAVE_SYS_SOCKET_H
  28547. #include <sys/socket.h>
  28548. #endif
  28549. int main (void)
  28550. {
  28551. struct timeval ts;
  28552. ts.tv_sec = 0;
  28553. ts.tv_usec = 0;
  28554. ;
  28555. return 0;
  28556. }
  28557. _ACEOF
  28558. if ac_fn_c_try_compile "$LINENO"
  28559. then :
  28560. curl_cv_struct_timeval="yes"
  28561. else $as_nop
  28562. curl_cv_struct_timeval="no"
  28563. fi
  28564. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  28565. fi
  28566. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_struct_timeval" >&5
  28567. printf "%s\n" "$curl_cv_struct_timeval" >&6; }
  28568. case "$curl_cv_struct_timeval" in
  28569. yes)
  28570. printf "%s\n" "#define HAVE_STRUCT_TIMEVAL 1" >>confdefs.h
  28571. ;;
  28572. esac
  28573. if test "x$cross_compiling" != xyes; then
  28574. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking run-time libs availability" >&5
  28575. printf %s "checking run-time libs availability... " >&6; }
  28576. case $host_os in
  28577. darwin*)
  28578. if test "$cross_compiling" = yes
  28579. then :
  28580. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  28581. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  28582. as_fn_error $? "cannot run test program while cross compiling
  28583. See \`config.log' for more details" "$LINENO" 5; }
  28584. else $as_nop
  28585. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28586. /* end confdefs.h. */
  28587. int main()
  28588. {
  28589. return 0;
  28590. }
  28591. _ACEOF
  28592. if ac_fn_c_try_run "$LINENO"
  28593. then :
  28594. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fine" >&5
  28595. printf "%s\n" "fine" >&6; }
  28596. else $as_nop
  28597. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  28598. printf "%s\n" "failed" >&6; }
  28599. as_fn_error $? "one or more libs available at link-time are not available run-time. Libs used at link-time: $LIBS" "$LINENO" 5
  28600. fi
  28601. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  28602. conftest.$ac_objext conftest.beam conftest.$ac_ext
  28603. fi
  28604. ;;
  28605. *)
  28606. old=$LD_LIBRARY_PATH
  28607. LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
  28608. export LD_LIBRARY_PATH
  28609. if test "$cross_compiling" = yes
  28610. then :
  28611. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  28612. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  28613. as_fn_error $? "cannot run test program while cross compiling
  28614. See \`config.log' for more details" "$LINENO" 5; }
  28615. else $as_nop
  28616. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28617. /* end confdefs.h. */
  28618. int main()
  28619. {
  28620. return 0;
  28621. }
  28622. _ACEOF
  28623. if ac_fn_c_try_run "$LINENO"
  28624. then :
  28625. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fine" >&5
  28626. printf "%s\n" "fine" >&6; }
  28627. else $as_nop
  28628. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  28629. printf "%s\n" "failed" >&6; }
  28630. as_fn_error $? "one or more libs available at link-time are not available run-time. Libs used at link-time: $LIBS" "$LINENO" 5
  28631. fi
  28632. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  28633. conftest.$ac_objext conftest.beam conftest.$ac_ext
  28634. fi
  28635. LD_LIBRARY_PATH=$old # restore
  28636. ;;
  28637. esac
  28638. fi
  28639. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
  28640. printf %s "checking size of size_t... " >&6; }
  28641. r=0
  28642. for typesize in 8 4 2 16 1; do
  28643. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28644. /* end confdefs.h. */
  28645. #include <sys/types.h>
  28646. int main (void)
  28647. {
  28648. switch(0) {
  28649. case 0:
  28650. case (sizeof(size_t) == $typesize):;
  28651. }
  28652. ;
  28653. return 0;
  28654. }
  28655. _ACEOF
  28656. if ac_fn_c_try_compile "$LINENO"
  28657. then :
  28658. r=$typesize
  28659. else $as_nop
  28660. r=0
  28661. fi
  28662. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  28663. if test $r -gt 0; then
  28664. break;
  28665. fi
  28666. done
  28667. if test $r -eq 0; then
  28668. as_fn_error $? "Failed to find size of size_t" "$LINENO" 5
  28669. fi
  28670. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r" >&5
  28671. printf "%s\n" "$r" >&6; }
  28672. tname=$(echo "ac_cv_sizeof_size_t" | tr A-Z a-z | tr " " "_")
  28673. eval "$tname=$r"
  28674. printf "%s\n" "#define SIZEOF_SIZE_T $r" >>confdefs.h
  28675. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  28676. printf %s "checking size of long... " >&6; }
  28677. r=0
  28678. for typesize in 8 4 2 16 1; do
  28679. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28680. /* end confdefs.h. */
  28681. #include <sys/types.h>
  28682. int main (void)
  28683. {
  28684. switch(0) {
  28685. case 0:
  28686. case (sizeof(long) == $typesize):;
  28687. }
  28688. ;
  28689. return 0;
  28690. }
  28691. _ACEOF
  28692. if ac_fn_c_try_compile "$LINENO"
  28693. then :
  28694. r=$typesize
  28695. else $as_nop
  28696. r=0
  28697. fi
  28698. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  28699. if test $r -gt 0; then
  28700. break;
  28701. fi
  28702. done
  28703. if test $r -eq 0; then
  28704. as_fn_error $? "Failed to find size of long" "$LINENO" 5
  28705. fi
  28706. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r" >&5
  28707. printf "%s\n" "$r" >&6; }
  28708. tname=$(echo "ac_cv_sizeof_long" | tr A-Z a-z | tr " " "_")
  28709. eval "$tname=$r"
  28710. printf "%s\n" "#define SIZEOF_LONG $r" >>confdefs.h
  28711. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  28712. printf %s "checking size of int... " >&6; }
  28713. r=0
  28714. for typesize in 8 4 2 16 1; do
  28715. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28716. /* end confdefs.h. */
  28717. #include <sys/types.h>
  28718. int main (void)
  28719. {
  28720. switch(0) {
  28721. case 0:
  28722. case (sizeof(int) == $typesize):;
  28723. }
  28724. ;
  28725. return 0;
  28726. }
  28727. _ACEOF
  28728. if ac_fn_c_try_compile "$LINENO"
  28729. then :
  28730. r=$typesize
  28731. else $as_nop
  28732. r=0
  28733. fi
  28734. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  28735. if test $r -gt 0; then
  28736. break;
  28737. fi
  28738. done
  28739. if test $r -eq 0; then
  28740. as_fn_error $? "Failed to find size of int" "$LINENO" 5
  28741. fi
  28742. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r" >&5
  28743. printf "%s\n" "$r" >&6; }
  28744. tname=$(echo "ac_cv_sizeof_int" | tr A-Z a-z | tr " " "_")
  28745. eval "$tname=$r"
  28746. printf "%s\n" "#define SIZEOF_INT $r" >>confdefs.h
  28747. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
  28748. printf %s "checking size of time_t... " >&6; }
  28749. r=0
  28750. for typesize in 8 4 2 16 1; do
  28751. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28752. /* end confdefs.h. */
  28753. #include <sys/types.h>
  28754. int main (void)
  28755. {
  28756. switch(0) {
  28757. case 0:
  28758. case (sizeof(time_t) == $typesize):;
  28759. }
  28760. ;
  28761. return 0;
  28762. }
  28763. _ACEOF
  28764. if ac_fn_c_try_compile "$LINENO"
  28765. then :
  28766. r=$typesize
  28767. else $as_nop
  28768. r=0
  28769. fi
  28770. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  28771. if test $r -gt 0; then
  28772. break;
  28773. fi
  28774. done
  28775. if test $r -eq 0; then
  28776. as_fn_error $? "Failed to find size of time_t" "$LINENO" 5
  28777. fi
  28778. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r" >&5
  28779. printf "%s\n" "$r" >&6; }
  28780. tname=$(echo "ac_cv_sizeof_time_t" | tr A-Z a-z | tr " " "_")
  28781. eval "$tname=$r"
  28782. printf "%s\n" "#define SIZEOF_TIME_T $r" >>confdefs.h
  28783. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
  28784. printf %s "checking size of off_t... " >&6; }
  28785. r=0
  28786. for typesize in 8 4 2 16 1; do
  28787. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28788. /* end confdefs.h. */
  28789. #include <sys/types.h>
  28790. int main (void)
  28791. {
  28792. switch(0) {
  28793. case 0:
  28794. case (sizeof(off_t) == $typesize):;
  28795. }
  28796. ;
  28797. return 0;
  28798. }
  28799. _ACEOF
  28800. if ac_fn_c_try_compile "$LINENO"
  28801. then :
  28802. r=$typesize
  28803. else $as_nop
  28804. r=0
  28805. fi
  28806. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  28807. if test $r -gt 0; then
  28808. break;
  28809. fi
  28810. done
  28811. if test $r -eq 0; then
  28812. as_fn_error $? "Failed to find size of off_t" "$LINENO" 5
  28813. fi
  28814. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r" >&5
  28815. printf "%s\n" "$r" >&6; }
  28816. tname=$(echo "ac_cv_sizeof_off_t" | tr A-Z a-z | tr " " "_")
  28817. eval "$tname=$r"
  28818. printf "%s\n" "#define SIZEOF_OFF_T $r" >>confdefs.h
  28819. o=$CPPFLAGS
  28820. CPPFLAGS="-I$srcdir/include $CPPFLAGS"
  28821. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of curl_off_t" >&5
  28822. printf %s "checking size of curl_off_t... " >&6; }
  28823. r=0
  28824. for typesize in 8 4 2 16 1; do
  28825. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28826. /* end confdefs.h. */
  28827. #include <sys/types.h>
  28828. #include <curl/system.h>
  28829. int main (void)
  28830. {
  28831. switch(0) {
  28832. case 0:
  28833. case (sizeof(curl_off_t) == $typesize):;
  28834. }
  28835. ;
  28836. return 0;
  28837. }
  28838. _ACEOF
  28839. if ac_fn_c_try_compile "$LINENO"
  28840. then :
  28841. r=$typesize
  28842. else $as_nop
  28843. r=0
  28844. fi
  28845. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  28846. if test $r -gt 0; then
  28847. break;
  28848. fi
  28849. done
  28850. if test $r -eq 0; then
  28851. as_fn_error $? "Failed to find size of curl_off_t" "$LINENO" 5
  28852. fi
  28853. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r" >&5
  28854. printf "%s\n" "$r" >&6; }
  28855. tname=$(echo "ac_cv_sizeof_curl_off_t" | tr A-Z a-z | tr " " "_")
  28856. eval "$tname=$r"
  28857. printf "%s\n" "#define SIZEOF_CURL_OFF_T $r" >>confdefs.h
  28858. CPPFLAGS=$o
  28859. ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
  28860. if test "x$ac_cv_type_long_long" = xyes
  28861. then :
  28862. printf "%s\n" "#define HAVE_LONGLONG 1" >>confdefs.h
  28863. longlong="yes"
  28864. fi
  28865. # check for ssize_t
  28866. ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
  28867. if test "x$ac_cv_type_ssize_t" = xyes
  28868. then :
  28869. else $as_nop
  28870. printf "%s\n" "#define ssize_t int" >>confdefs.h
  28871. fi
  28872. # check for bool type
  28873. ac_fn_c_check_type "$LINENO" "bool" "ac_cv_type_bool" "
  28874. #ifdef HAVE_SYS_TYPES_H
  28875. #include <sys/types.h>
  28876. #endif
  28877. #ifdef HAVE_STDBOOL_H
  28878. #include <stdbool.h>
  28879. #endif
  28880. "
  28881. if test "x$ac_cv_type_bool" = xyes
  28882. then :
  28883. printf "%s\n" "#define HAVE_BOOL_T 1" >>confdefs.h
  28884. fi
  28885. # check for sa_family_t
  28886. ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "
  28887. #ifdef HAVE_SYS_SOCKET_H
  28888. #include <sys/socket.h>
  28889. #endif
  28890. "
  28891. if test "x$ac_cv_type_sa_family_t" = xyes
  28892. then :
  28893. printf "%s\n" "#define CURL_SA_FAMILY_T sa_family_t" >>confdefs.h
  28894. else $as_nop
  28895. # The windows name?
  28896. ac_fn_c_check_type "$LINENO" "ADDRESS_FAMILY" "ac_cv_type_ADDRESS_FAMILY" "
  28897. #ifdef HAVE_SYS_SOCKET_H
  28898. #include <sys/socket.h>
  28899. #endif
  28900. "
  28901. if test "x$ac_cv_type_ADDRESS_FAMILY" = xyes
  28902. then :
  28903. printf "%s\n" "#define CURL_SA_FAMILY_T ADDRESS_FAMILY" >>confdefs.h
  28904. else $as_nop
  28905. printf "%s\n" "#define CURL_SA_FAMILY_T unsigned short" >>confdefs.h
  28906. fi
  28907. fi
  28908. # check for suseconds_t
  28909. ac_fn_c_check_type "$LINENO" "suseconds_t" "ac_cv_type_suseconds_t" "
  28910. #ifdef HAVE_SYS_TYPES_H
  28911. #include <sys/types.h>
  28912. #endif
  28913. #ifdef HAVE_SYS_TIME_H
  28914. #include <sys/time.h>
  28915. #endif
  28916. "
  28917. if test "x$ac_cv_type_suseconds_t" = xyes
  28918. then :
  28919. printf "%s\n" "#define HAVE_SUSECONDS_T 1" >>confdefs.h
  28920. fi
  28921. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if time_t is unsigned" >&5
  28922. printf %s "checking if time_t is unsigned... " >&6; }
  28923. case $host_os in
  28924. darwin*)
  28925. if test "$cross_compiling" = yes
  28926. then :
  28927. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28928. printf "%s\n" "no" >&6; }
  28929. else $as_nop
  28930. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28931. /* end confdefs.h. */
  28932. #include <time.h>
  28933. #include <limits.h>
  28934. time_t t = -1;
  28935. return (t > 0);
  28936. _ACEOF
  28937. if ac_fn_c_try_run "$LINENO"
  28938. then :
  28939. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28940. printf "%s\n" "yes" >&6; }
  28941. printf "%s\n" "#define HAVE_TIME_T_UNSIGNED 1" >>confdefs.h
  28942. else $as_nop
  28943. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28944. printf "%s\n" "no" >&6; }
  28945. fi
  28946. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  28947. conftest.$ac_objext conftest.beam conftest.$ac_ext
  28948. fi
  28949. ;;
  28950. *)
  28951. old=$LD_LIBRARY_PATH
  28952. LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
  28953. export LD_LIBRARY_PATH
  28954. if test "$cross_compiling" = yes
  28955. then :
  28956. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28957. printf "%s\n" "no" >&6; }
  28958. else $as_nop
  28959. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28960. /* end confdefs.h. */
  28961. #include <time.h>
  28962. #include <limits.h>
  28963. time_t t = -1;
  28964. return (t > 0);
  28965. _ACEOF
  28966. if ac_fn_c_try_run "$LINENO"
  28967. then :
  28968. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28969. printf "%s\n" "yes" >&6; }
  28970. printf "%s\n" "#define HAVE_TIME_T_UNSIGNED 1" >>confdefs.h
  28971. else $as_nop
  28972. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28973. printf "%s\n" "no" >&6; }
  28974. fi
  28975. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  28976. conftest.$ac_objext conftest.beam conftest.$ac_ext
  28977. fi
  28978. LD_LIBRARY_PATH=$old # restore
  28979. ;;
  28980. esac
  28981. curl_includes_poll="\
  28982. /* includes start */
  28983. #ifdef HAVE_SYS_TYPES_H
  28984. # include <sys/types.h>
  28985. #endif
  28986. #ifdef HAVE_POLL_H
  28987. # include <poll.h>
  28988. #endif
  28989. #ifdef HAVE_SYS_POLL_H
  28990. # include <sys/poll.h>
  28991. #endif
  28992. /* includes end */"
  28993. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_poll
  28994. "
  28995. if test "x$ac_cv_header_sys_types_h" = xyes
  28996. then :
  28997. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  28998. fi
  28999. ac_fn_c_check_header_compile "$LINENO" "poll.h" "ac_cv_header_poll_h" "$curl_includes_poll
  29000. "
  29001. if test "x$ac_cv_header_poll_h" = xyes
  29002. then :
  29003. printf "%s\n" "#define HAVE_POLL_H 1" >>confdefs.h
  29004. fi
  29005. ac_fn_c_check_header_compile "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "$curl_includes_poll
  29006. "
  29007. if test "x$ac_cv_header_sys_poll_h" = xyes
  29008. then :
  29009. printf "%s\n" "#define HAVE_SYS_POLL_H 1" >>confdefs.h
  29010. fi
  29011. #
  29012. tst_poll_events_macro_defined="unknown"
  29013. #
  29014. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29015. /* end confdefs.h. */
  29016. $curl_includes_poll
  29017. int main (void)
  29018. {
  29019. #if defined(events) || defined(revents)
  29020. return 0;
  29021. #else
  29022. force compilation error
  29023. #endif
  29024. ;
  29025. return 0;
  29026. }
  29027. _ACEOF
  29028. if ac_fn_c_try_compile "$LINENO"
  29029. then :
  29030. tst_poll_events_macro_defined="yes"
  29031. else $as_nop
  29032. tst_poll_events_macro_defined="no"
  29033. fi
  29034. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  29035. #
  29036. if test "$tst_poll_events_macro_defined" = "yes"; then
  29037. if test "x$ac_cv_header_sys_poll_h" = "xyes"; then
  29038. cat >>confdefs.h <<_EOF
  29039. #define CURL_PULL_SYS_POLL_H 1
  29040. _EOF
  29041. fi
  29042. fi
  29043. #
  29044. ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
  29045. #undef inline
  29046. #ifdef HAVE_WINDOWS_H
  29047. #ifndef WIN32_LEAN_AND_MEAN
  29048. #define WIN32_LEAN_AND_MEAN
  29049. #endif
  29050. #include <windows.h>
  29051. #ifdef HAVE_WINSOCK2_H
  29052. #include <winsock2.h>
  29053. #endif
  29054. #else
  29055. #ifdef HAVE_SYS_TYPES_H
  29056. #include <sys/types.h>
  29057. #endif
  29058. #ifdef HAVE_SYS_SOCKET_H
  29059. #include <sys/socket.h>
  29060. #endif
  29061. #ifdef HAVE_NETINET_IN_H
  29062. #include <netinet/in.h>
  29063. #endif
  29064. #ifdef HAVE_ARPA_INET_H
  29065. #include <arpa/inet.h>
  29066. #endif
  29067. #endif
  29068. "
  29069. if test "x$ac_cv_type_in_addr_t" = xyes
  29070. then :
  29071. else $as_nop
  29072. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for in_addr_t equivalent" >&5
  29073. printf %s "checking for in_addr_t equivalent... " >&6; }
  29074. if test ${curl_cv_in_addr_t_equiv+y}
  29075. then :
  29076. printf %s "(cached) " >&6
  29077. else $as_nop
  29078. curl_cv_in_addr_t_equiv="unknown"
  29079. for t in "unsigned long" int size_t unsigned long; do
  29080. if test "$curl_cv_in_addr_t_equiv" = "unknown"; then
  29081. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29082. /* end confdefs.h. */
  29083. #undef inline
  29084. #ifdef HAVE_WINDOWS_H
  29085. #ifndef WIN32_LEAN_AND_MEAN
  29086. #define WIN32_LEAN_AND_MEAN
  29087. #endif
  29088. #include <windows.h>
  29089. #ifdef HAVE_WINSOCK2_H
  29090. #include <winsock2.h>
  29091. #endif
  29092. #else
  29093. #ifdef HAVE_SYS_TYPES_H
  29094. #include <sys/types.h>
  29095. #endif
  29096. #ifdef HAVE_SYS_SOCKET_H
  29097. #include <sys/socket.h>
  29098. #endif
  29099. #ifdef HAVE_NETINET_IN_H
  29100. #include <netinet/in.h>
  29101. #endif
  29102. #ifdef HAVE_ARPA_INET_H
  29103. #include <arpa/inet.h>
  29104. #endif
  29105. #endif
  29106. int main (void)
  29107. {
  29108. $t data = inet_addr ("1.2.3.4");
  29109. ;
  29110. return 0;
  29111. }
  29112. _ACEOF
  29113. if ac_fn_c_try_link "$LINENO"
  29114. then :
  29115. curl_cv_in_addr_t_equiv="$t"
  29116. fi
  29117. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  29118. conftest$ac_exeext conftest.$ac_ext
  29119. fi
  29120. done
  29121. fi
  29122. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_in_addr_t_equiv" >&5
  29123. printf "%s\n" "$curl_cv_in_addr_t_equiv" >&6; }
  29124. case "$curl_cv_in_addr_t_equiv" in
  29125. unknown)
  29126. as_fn_error $? "Cannot find a type to use in place of in_addr_t" "$LINENO" 5
  29127. ;;
  29128. *)
  29129. printf "%s\n" "#define in_addr_t $curl_cv_in_addr_t_equiv" >>confdefs.h
  29130. ;;
  29131. esac
  29132. fi
  29133. ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
  29134. #undef inline
  29135. #ifdef HAVE_WINDOWS_H
  29136. #ifndef WIN32_LEAN_AND_MEAN
  29137. #define WIN32_LEAN_AND_MEAN
  29138. #endif
  29139. #include <windows.h>
  29140. #ifdef HAVE_WINSOCK2_H
  29141. #include <winsock2.h>
  29142. #endif
  29143. #else
  29144. #ifdef HAVE_SYS_TYPES_H
  29145. #include <sys/types.h>
  29146. #endif
  29147. #ifdef HAVE_SYS_SOCKET_H
  29148. #include <sys/socket.h>
  29149. #endif
  29150. #ifdef HAVE_NETINET_IN_H
  29151. #include <netinet/in.h>
  29152. #endif
  29153. #ifdef HAVE_ARPA_INET_H
  29154. #include <arpa/inet.h>
  29155. #endif
  29156. #endif
  29157. "
  29158. if test "x$ac_cv_type_struct_sockaddr_storage" = xyes
  29159. then :
  29160. printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
  29161. fi
  29162. ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
  29163. if test "x$ac_cv_header_sys_select_h" = xyes
  29164. then :
  29165. printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
  29166. fi
  29167. ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
  29168. if test "x$ac_cv_header_sys_socket_h" = xyes
  29169. then :
  29170. printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
  29171. fi
  29172. #
  29173. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for select" >&5
  29174. printf %s "checking for select... " >&6; }
  29175. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29176. /* end confdefs.h. */
  29177. #undef inline
  29178. #ifdef HAVE_WINDOWS_H
  29179. #ifndef WIN32_LEAN_AND_MEAN
  29180. #define WIN32_LEAN_AND_MEAN
  29181. #endif
  29182. #include <windows.h>
  29183. #ifdef HAVE_WINSOCK2_H
  29184. #include <winsock2.h>
  29185. #endif
  29186. #endif
  29187. #ifdef HAVE_SYS_TYPES_H
  29188. #include <sys/types.h>
  29189. #endif
  29190. #ifdef HAVE_SYS_TIME_H
  29191. #include <sys/time.h>
  29192. #endif
  29193. #include <time.h>
  29194. #ifndef HAVE_WINDOWS_H
  29195. #ifdef HAVE_SYS_SELECT_H
  29196. #include <sys/select.h>
  29197. #elif defined(HAVE_UNISTD_H)
  29198. #include <unistd.h>
  29199. #endif
  29200. #ifdef HAVE_SYS_SOCKET_H
  29201. #include <sys/socket.h>
  29202. #endif
  29203. $curl_includes_bsdsocket
  29204. #endif
  29205. int main (void)
  29206. {
  29207. select(0, 0, 0, 0, 0);
  29208. ;
  29209. return 0;
  29210. }
  29211. _ACEOF
  29212. if ac_fn_c_try_link "$LINENO"
  29213. then :
  29214. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29215. printf "%s\n" "yes" >&6; }
  29216. curl_cv_select="yes"
  29217. else $as_nop
  29218. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29219. printf "%s\n" "no" >&6; }
  29220. curl_cv_select="no"
  29221. fi
  29222. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  29223. conftest$ac_exeext conftest.$ac_ext
  29224. #
  29225. if test "$curl_cv_select" = "yes"; then
  29226. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking types of args and return type for select" >&5
  29227. printf %s "checking types of args and return type for select... " >&6; }
  29228. if test ${curl_cv_func_select_args+y}
  29229. then :
  29230. printf %s "(cached) " >&6
  29231. else $as_nop
  29232. curl_cv_func_select_args="unknown"
  29233. for sel_retv in 'int' 'ssize_t'; do
  29234. for sel_arg1 in 'int' 'ssize_t' 'size_t' 'unsigned long int' 'unsigned int'; do
  29235. for sel_arg234 in 'fd_set *' 'int *' 'void *'; do
  29236. for sel_arg5 in 'struct timeval *' 'const struct timeval *'; do
  29237. if test "$curl_cv_func_select_args" = "unknown"; then
  29238. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29239. /* end confdefs.h. */
  29240. #undef inline
  29241. #ifdef HAVE_WINDOWS_H
  29242. #ifndef WIN32_LEAN_AND_MEAN
  29243. #define WIN32_LEAN_AND_MEAN
  29244. #endif
  29245. #include <windows.h>
  29246. #ifdef HAVE_WINSOCK2_H
  29247. #include <winsock2.h>
  29248. #endif
  29249. #define SELECTCALLCONV PASCAL
  29250. #endif
  29251. #ifdef HAVE_SYS_TYPES_H
  29252. #include <sys/types.h>
  29253. #endif
  29254. #ifdef HAVE_SYS_TIME_H
  29255. #include <sys/time.h>
  29256. #endif
  29257. #include <time.h>
  29258. #ifndef HAVE_WINDOWS_H
  29259. #ifdef HAVE_SYS_SELECT_H
  29260. #include <sys/select.h>
  29261. #elif defined(HAVE_UNISTD_H)
  29262. #include <unistd.h>
  29263. #endif
  29264. #ifdef HAVE_SYS_SOCKET_H
  29265. #include <sys/socket.h>
  29266. #endif
  29267. $curl_includes_bsdsocket
  29268. #define SELECTCALLCONV
  29269. #endif
  29270. #ifndef HAVE_STRUCT_TIMEVAL
  29271. struct timeval {
  29272. long tv_sec;
  29273. long tv_usec;
  29274. };
  29275. #endif
  29276. #ifndef HAVE_PROTO_BSDSOCKET_H
  29277. extern $sel_retv SELECTCALLCONV
  29278. select($sel_arg1,
  29279. $sel_arg234,
  29280. $sel_arg234,
  29281. $sel_arg234,
  29282. $sel_arg5);
  29283. #endif
  29284. int main (void)
  29285. {
  29286. $sel_arg1 nfds=0;
  29287. $sel_arg234 rfds=0;
  29288. $sel_arg234 wfds=0;
  29289. $sel_arg234 efds=0;
  29290. $sel_retv res = select(nfds, rfds, wfds, efds, 0);
  29291. ;
  29292. return 0;
  29293. }
  29294. _ACEOF
  29295. if ac_fn_c_try_compile "$LINENO"
  29296. then :
  29297. curl_cv_func_select_args="$sel_arg1,$sel_arg234,$sel_arg5,$sel_retv"
  29298. fi
  29299. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  29300. fi
  29301. done
  29302. done
  29303. done
  29304. done
  29305. fi
  29306. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_select_args" >&5
  29307. printf "%s\n" "$curl_cv_func_select_args" >&6; } # AC-CACHE-CHECK
  29308. if test "$curl_cv_func_select_args" = "unknown"; then
  29309. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for select args" >&5
  29310. printf "%s\n" "$as_me: WARNING: Cannot find proper types to use for select args" >&2;}
  29311. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_SELECT will not be defined" >&5
  29312. printf "%s\n" "$as_me: WARNING: HAVE_SELECT will not be defined" >&2;}
  29313. else
  29314. select_prev_IFS=$IFS; IFS=','
  29315. set dummy `echo "$curl_cv_func_select_args" | sed 's/\*/\*/g'`
  29316. IFS=$select_prev_IFS
  29317. shift
  29318. #
  29319. sel_qual_type_arg5=$3
  29320. #
  29321. printf "%s\n" "#define SELECT_TYPE_ARG1 $1" >>confdefs.h
  29322. printf "%s\n" "#define SELECT_TYPE_ARG234 $2" >>confdefs.h
  29323. printf "%s\n" "#define SELECT_TYPE_RETV $4" >>confdefs.h
  29324. #
  29325. prev_sh_opts=$-
  29326. #
  29327. case $prev_sh_opts in
  29328. *f*)
  29329. ;;
  29330. *)
  29331. set -f
  29332. ;;
  29333. esac
  29334. #
  29335. case "$sel_qual_type_arg5" in
  29336. const*)
  29337. sel_qual_arg5=const
  29338. sel_type_arg5=`echo $sel_qual_type_arg5 | sed 's/^const //'`
  29339. ;;
  29340. *)
  29341. sel_qual_arg5=
  29342. sel_type_arg5=$sel_qual_type_arg5
  29343. ;;
  29344. esac
  29345. #
  29346. printf "%s\n" "#define SELECT_QUAL_ARG5 $sel_qual_arg5" >>confdefs.h
  29347. printf "%s\n" "#define SELECT_TYPE_ARG5 $sel_type_arg5" >>confdefs.h
  29348. #
  29349. case $prev_sh_opts in
  29350. *f*)
  29351. ;;
  29352. *)
  29353. set +f
  29354. ;;
  29355. esac
  29356. #
  29357. printf "%s\n" "#define HAVE_SELECT 1" >>confdefs.h
  29358. curl_cv_func_select="yes"
  29359. fi
  29360. fi
  29361. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
  29362. if test "x$ac_cv_header_sys_types_h" = xyes
  29363. then :
  29364. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  29365. fi
  29366. ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
  29367. if test "x$ac_cv_header_sys_socket_h" = xyes
  29368. then :
  29369. printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
  29370. fi
  29371. #
  29372. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for recv" >&5
  29373. printf %s "checking for recv... " >&6; }
  29374. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29375. /* end confdefs.h. */
  29376. #undef inline
  29377. #ifdef HAVE_WINDOWS_H
  29378. #ifndef WIN32_LEAN_AND_MEAN
  29379. #define WIN32_LEAN_AND_MEAN
  29380. #endif
  29381. #include <windows.h>
  29382. #ifdef HAVE_WINSOCK2_H
  29383. #include <winsock2.h>
  29384. #endif
  29385. #else
  29386. $curl_includes_bsdsocket
  29387. #ifdef HAVE_SYS_TYPES_H
  29388. #include <sys/types.h>
  29389. #endif
  29390. #ifdef HAVE_SYS_SOCKET_H
  29391. #include <sys/socket.h>
  29392. #endif
  29393. #endif
  29394. int main (void)
  29395. {
  29396. recv(0, 0, 0, 0);
  29397. ;
  29398. return 0;
  29399. }
  29400. _ACEOF
  29401. if ac_fn_c_try_link "$LINENO"
  29402. then :
  29403. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29404. printf "%s\n" "yes" >&6; }
  29405. curl_cv_recv="yes"
  29406. else $as_nop
  29407. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29408. printf "%s\n" "no" >&6; }
  29409. curl_cv_recv="no"
  29410. fi
  29411. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  29412. conftest$ac_exeext conftest.$ac_ext
  29413. #
  29414. if test "$curl_cv_recv" = "yes"; then
  29415. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking types of args and return type for recv" >&5
  29416. printf %s "checking types of args and return type for recv... " >&6; }
  29417. if test ${curl_cv_func_recv_args+y}
  29418. then :
  29419. printf %s "(cached) " >&6
  29420. else $as_nop
  29421. curl_cv_func_recv_args="unknown"
  29422. for recv_retv in 'int' 'ssize_t'; do
  29423. for recv_arg1 in 'int' 'ssize_t' 'SOCKET'; do
  29424. for recv_arg2 in 'char *' 'void *'; do
  29425. for recv_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
  29426. for recv_arg4 in 'int' 'unsigned int'; do
  29427. if test "$curl_cv_func_recv_args" = "unknown"; then
  29428. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29429. /* end confdefs.h. */
  29430. #undef inline
  29431. #ifdef HAVE_WINDOWS_H
  29432. #ifndef WIN32_LEAN_AND_MEAN
  29433. #define WIN32_LEAN_AND_MEAN
  29434. #endif
  29435. #include <windows.h>
  29436. #ifdef HAVE_WINSOCK2_H
  29437. #include <winsock2.h>
  29438. #endif
  29439. #define RECVCALLCONV PASCAL
  29440. #else
  29441. $curl_includes_bsdsocket
  29442. #ifdef HAVE_SYS_TYPES_H
  29443. #include <sys/types.h>
  29444. #endif
  29445. #ifdef HAVE_SYS_SOCKET_H
  29446. #include <sys/socket.h>
  29447. #endif
  29448. #define RECVCALLCONV
  29449. #endif
  29450. #ifndef HAVE_PROTO_BSDSOCKET_H
  29451. extern $recv_retv RECVCALLCONV
  29452. recv($recv_arg1, $recv_arg2, $recv_arg3, $recv_arg4);
  29453. #endif
  29454. int main (void)
  29455. {
  29456. $recv_arg1 s=0;
  29457. $recv_arg2 buf=0;
  29458. $recv_arg3 len=0;
  29459. $recv_arg4 flags=0;
  29460. $recv_retv res = recv(s, buf, len, flags);
  29461. ;
  29462. return 0;
  29463. }
  29464. _ACEOF
  29465. if ac_fn_c_try_compile "$LINENO"
  29466. then :
  29467. curl_cv_func_recv_args="$recv_arg1,$recv_arg2,$recv_arg3,$recv_arg4,$recv_retv"
  29468. fi
  29469. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  29470. fi
  29471. done
  29472. done
  29473. done
  29474. done
  29475. done
  29476. fi
  29477. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_recv_args" >&5
  29478. printf "%s\n" "$curl_cv_func_recv_args" >&6; } # AC-CACHE-CHECK
  29479. if test "$curl_cv_func_recv_args" = "unknown"; then
  29480. as_fn_error $? "Cannot find proper types to use for recv args" "$LINENO" 5
  29481. else
  29482. recv_prev_IFS=$IFS; IFS=','
  29483. set dummy `echo "$curl_cv_func_recv_args" | sed 's/\*/\*/g'`
  29484. IFS=$recv_prev_IFS
  29485. shift
  29486. #
  29487. printf "%s\n" "#define RECV_TYPE_ARG1 $1" >>confdefs.h
  29488. printf "%s\n" "#define RECV_TYPE_ARG2 $2" >>confdefs.h
  29489. printf "%s\n" "#define RECV_TYPE_ARG3 $3" >>confdefs.h
  29490. printf "%s\n" "#define RECV_TYPE_ARG4 $4" >>confdefs.h
  29491. printf "%s\n" "#define RECV_TYPE_RETV $5" >>confdefs.h
  29492. #
  29493. printf "%s\n" "#define HAVE_RECV 1" >>confdefs.h
  29494. curl_cv_func_recv="yes"
  29495. fi
  29496. else
  29497. as_fn_error $? "Unable to link function recv" "$LINENO" 5
  29498. fi
  29499. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
  29500. if test "x$ac_cv_header_sys_types_h" = xyes
  29501. then :
  29502. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  29503. fi
  29504. ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
  29505. if test "x$ac_cv_header_sys_socket_h" = xyes
  29506. then :
  29507. printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
  29508. fi
  29509. #
  29510. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for send" >&5
  29511. printf %s "checking for send... " >&6; }
  29512. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29513. /* end confdefs.h. */
  29514. #undef inline
  29515. #ifdef HAVE_WINDOWS_H
  29516. #ifndef WIN32_LEAN_AND_MEAN
  29517. #define WIN32_LEAN_AND_MEAN
  29518. #endif
  29519. #include <windows.h>
  29520. #ifdef HAVE_WINSOCK2_H
  29521. #include <winsock2.h>
  29522. #endif
  29523. #else
  29524. $curl_includes_bsdsocket
  29525. #ifdef HAVE_SYS_TYPES_H
  29526. #include <sys/types.h>
  29527. #endif
  29528. #ifdef HAVE_SYS_SOCKET_H
  29529. #include <sys/socket.h>
  29530. #endif
  29531. #endif
  29532. int main (void)
  29533. {
  29534. send(0, 0, 0, 0);
  29535. ;
  29536. return 0;
  29537. }
  29538. _ACEOF
  29539. if ac_fn_c_try_link "$LINENO"
  29540. then :
  29541. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29542. printf "%s\n" "yes" >&6; }
  29543. curl_cv_send="yes"
  29544. else $as_nop
  29545. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29546. printf "%s\n" "no" >&6; }
  29547. curl_cv_send="no"
  29548. fi
  29549. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  29550. conftest$ac_exeext conftest.$ac_ext
  29551. #
  29552. if test "$curl_cv_send" = "yes"; then
  29553. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking types of args and return type for send" >&5
  29554. printf %s "checking types of args and return type for send... " >&6; }
  29555. if test ${curl_cv_func_send_args+y}
  29556. then :
  29557. printf %s "(cached) " >&6
  29558. else $as_nop
  29559. curl_cv_func_send_args="unknown"
  29560. for send_retv in 'int' 'ssize_t'; do
  29561. for send_arg1 in 'int' 'ssize_t' 'SOCKET'; do
  29562. for send_arg2 in 'char *' 'void *' 'const char *' 'const void *'; do
  29563. for send_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
  29564. for send_arg4 in 'int' 'unsigned int'; do
  29565. if test "$curl_cv_func_send_args" = "unknown"; then
  29566. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29567. /* end confdefs.h. */
  29568. #undef inline
  29569. #ifdef HAVE_WINDOWS_H
  29570. #ifndef WIN32_LEAN_AND_MEAN
  29571. #define WIN32_LEAN_AND_MEAN
  29572. #endif
  29573. #include <windows.h>
  29574. #ifdef HAVE_WINSOCK2_H
  29575. #include <winsock2.h>
  29576. #endif
  29577. #define SENDCALLCONV PASCAL
  29578. #else
  29579. $curl_includes_bsdsocket
  29580. #ifdef HAVE_SYS_TYPES_H
  29581. #include <sys/types.h>
  29582. #endif
  29583. #ifdef HAVE_SYS_SOCKET_H
  29584. #include <sys/socket.h>
  29585. #endif
  29586. #define SENDCALLCONV
  29587. #endif
  29588. #ifndef HAVE_PROTO_BSDSOCKET_H
  29589. extern $send_retv SENDCALLCONV
  29590. send($send_arg1, $send_arg2, $send_arg3, $send_arg4);
  29591. #endif
  29592. int main (void)
  29593. {
  29594. $send_arg1 s=0;
  29595. $send_arg3 len=0;
  29596. $send_arg4 flags=0;
  29597. $send_retv res = send(s, 0, len, flags);
  29598. ;
  29599. return 0;
  29600. }
  29601. _ACEOF
  29602. if ac_fn_c_try_compile "$LINENO"
  29603. then :
  29604. curl_cv_func_send_args="$send_arg1,$send_arg2,$send_arg3,$send_arg4,$send_retv"
  29605. fi
  29606. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  29607. fi
  29608. done
  29609. done
  29610. done
  29611. done
  29612. done
  29613. fi
  29614. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_send_args" >&5
  29615. printf "%s\n" "$curl_cv_func_send_args" >&6; } # AC-CACHE-CHECK
  29616. if test "$curl_cv_func_send_args" = "unknown"; then
  29617. as_fn_error $? "Cannot find proper types to use for send args" "$LINENO" 5
  29618. else
  29619. send_prev_IFS=$IFS; IFS=','
  29620. set dummy `echo "$curl_cv_func_send_args" | sed 's/\*/\*/g'`
  29621. IFS=$send_prev_IFS
  29622. shift
  29623. #
  29624. send_qual_type_arg2=$2
  29625. #
  29626. printf "%s\n" "#define SEND_TYPE_ARG1 $1" >>confdefs.h
  29627. printf "%s\n" "#define SEND_TYPE_ARG3 $3" >>confdefs.h
  29628. printf "%s\n" "#define SEND_TYPE_ARG4 $4" >>confdefs.h
  29629. printf "%s\n" "#define SEND_TYPE_RETV $5" >>confdefs.h
  29630. #
  29631. prev_sh_opts=$-
  29632. #
  29633. case $prev_sh_opts in
  29634. *f*)
  29635. ;;
  29636. *)
  29637. set -f
  29638. ;;
  29639. esac
  29640. #
  29641. case "$send_qual_type_arg2" in
  29642. const*)
  29643. send_qual_arg2=const
  29644. send_type_arg2=`echo $send_qual_type_arg2 | sed 's/^const //'`
  29645. ;;
  29646. *)
  29647. send_qual_arg2=
  29648. send_type_arg2=$send_qual_type_arg2
  29649. ;;
  29650. esac
  29651. #
  29652. printf "%s\n" "#define SEND_QUAL_ARG2 $send_qual_arg2" >>confdefs.h
  29653. printf "%s\n" "#define SEND_TYPE_ARG2 $send_type_arg2" >>confdefs.h
  29654. #
  29655. case $prev_sh_opts in
  29656. *f*)
  29657. ;;
  29658. *)
  29659. set +f
  29660. ;;
  29661. esac
  29662. #
  29663. printf "%s\n" "#define HAVE_SEND 1" >>confdefs.h
  29664. curl_cv_func_send="yes"
  29665. fi
  29666. else
  29667. as_fn_error $? "Unable to link function send" "$LINENO" 5
  29668. fi
  29669. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
  29670. if test "x$ac_cv_header_sys_types_h" = xyes
  29671. then :
  29672. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  29673. fi
  29674. ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
  29675. if test "x$ac_cv_header_sys_socket_h" = xyes
  29676. then :
  29677. printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
  29678. fi
  29679. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MSG_NOSIGNAL" >&5
  29680. printf %s "checking for MSG_NOSIGNAL... " >&6; }
  29681. if test ${curl_cv_msg_nosignal+y}
  29682. then :
  29683. printf %s "(cached) " >&6
  29684. else $as_nop
  29685. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29686. /* end confdefs.h. */
  29687. #undef inline
  29688. #ifdef HAVE_WINDOWS_H
  29689. #ifndef WIN32_LEAN_AND_MEAN
  29690. #define WIN32_LEAN_AND_MEAN
  29691. #endif
  29692. #include <windows.h>
  29693. #ifdef HAVE_WINSOCK2_H
  29694. #include <winsock2.h>
  29695. #endif
  29696. #else
  29697. #ifdef HAVE_SYS_TYPES_H
  29698. #include <sys/types.h>
  29699. #endif
  29700. #ifdef HAVE_SYS_SOCKET_H
  29701. #include <sys/socket.h>
  29702. #endif
  29703. #endif
  29704. int main (void)
  29705. {
  29706. int flag=MSG_NOSIGNAL;
  29707. ;
  29708. return 0;
  29709. }
  29710. _ACEOF
  29711. if ac_fn_c_try_compile "$LINENO"
  29712. then :
  29713. curl_cv_msg_nosignal="yes"
  29714. else $as_nop
  29715. curl_cv_msg_nosignal="no"
  29716. fi
  29717. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  29718. fi
  29719. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_msg_nosignal" >&5
  29720. printf "%s\n" "$curl_cv_msg_nosignal" >&6; }
  29721. case "$curl_cv_msg_nosignal" in
  29722. yes)
  29723. printf "%s\n" "#define HAVE_MSG_NOSIGNAL 1" >>confdefs.h
  29724. ;;
  29725. esac
  29726. curl_includes_unistd="\
  29727. /* includes start */
  29728. #ifdef HAVE_SYS_TYPES_H
  29729. # include <sys/types.h>
  29730. #endif
  29731. #ifdef HAVE_UNISTD_H
  29732. # include <unistd.h>
  29733. #endif
  29734. /* includes end */"
  29735. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_unistd
  29736. "
  29737. if test "x$ac_cv_header_sys_types_h" = xyes
  29738. then :
  29739. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  29740. fi
  29741. ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$curl_includes_unistd
  29742. "
  29743. if test "x$ac_cv_header_unistd_h" = xyes
  29744. then :
  29745. printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
  29746. fi
  29747. #
  29748. tst_links_alarm="unknown"
  29749. tst_proto_alarm="unknown"
  29750. tst_compi_alarm="unknown"
  29751. tst_allow_alarm="unknown"
  29752. #
  29753. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if alarm can be linked" >&5
  29754. printf %s "checking if alarm can be linked... " >&6; }
  29755. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29756. /* end confdefs.h. */
  29757. #define alarm innocuous_alarm
  29758. #ifdef __STDC__
  29759. # include <limits.h>
  29760. #else
  29761. # include <assert.h>
  29762. #endif
  29763. #undef alarm
  29764. #ifdef __cplusplus
  29765. extern "C"
  29766. #endif
  29767. char alarm ();
  29768. #if defined __stub_alarm || defined __stub___alarm
  29769. choke me
  29770. #endif
  29771. int main (void)
  29772. {
  29773. return alarm ();
  29774. ;
  29775. return 0;
  29776. }
  29777. _ACEOF
  29778. if ac_fn_c_try_link "$LINENO"
  29779. then :
  29780. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29781. printf "%s\n" "yes" >&6; }
  29782. tst_links_alarm="yes"
  29783. else $as_nop
  29784. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29785. printf "%s\n" "no" >&6; }
  29786. tst_links_alarm="no"
  29787. fi
  29788. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  29789. conftest$ac_exeext conftest.$ac_ext
  29790. #
  29791. if test "$tst_links_alarm" = "yes"; then
  29792. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if alarm is prototyped" >&5
  29793. printf %s "checking if alarm is prototyped... " >&6; }
  29794. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29795. /* end confdefs.h. */
  29796. $curl_includes_unistd
  29797. _ACEOF
  29798. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  29799. $EGREP "alarm" >/dev/null 2>&1
  29800. then :
  29801. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29802. printf "%s\n" "yes" >&6; }
  29803. tst_proto_alarm="yes"
  29804. else $as_nop
  29805. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29806. printf "%s\n" "no" >&6; }
  29807. tst_proto_alarm="no"
  29808. fi
  29809. rm -rf conftest*
  29810. fi
  29811. #
  29812. if test "$tst_proto_alarm" = "yes"; then
  29813. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if alarm is compilable" >&5
  29814. printf %s "checking if alarm is compilable... " >&6; }
  29815. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29816. /* end confdefs.h. */
  29817. $curl_includes_unistd
  29818. int main (void)
  29819. {
  29820. if(0 != alarm(0))
  29821. return 1;
  29822. ;
  29823. return 0;
  29824. }
  29825. _ACEOF
  29826. if ac_fn_c_try_compile "$LINENO"
  29827. then :
  29828. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29829. printf "%s\n" "yes" >&6; }
  29830. tst_compi_alarm="yes"
  29831. else $as_nop
  29832. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29833. printf "%s\n" "no" >&6; }
  29834. tst_compi_alarm="no"
  29835. fi
  29836. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  29837. fi
  29838. #
  29839. if test "$tst_compi_alarm" = "yes"; then
  29840. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if alarm usage allowed" >&5
  29841. printf %s "checking if alarm usage allowed... " >&6; }
  29842. if test "x$curl_disallow_alarm" != "xyes"; then
  29843. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29844. printf "%s\n" "yes" >&6; }
  29845. tst_allow_alarm="yes"
  29846. else
  29847. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29848. printf "%s\n" "no" >&6; }
  29849. tst_allow_alarm="no"
  29850. fi
  29851. fi
  29852. #
  29853. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if alarm might be used" >&5
  29854. printf %s "checking if alarm might be used... " >&6; }
  29855. if test "$tst_links_alarm" = "yes" &&
  29856. test "$tst_proto_alarm" = "yes" &&
  29857. test "$tst_compi_alarm" = "yes" &&
  29858. test "$tst_allow_alarm" = "yes"; then
  29859. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29860. printf "%s\n" "yes" >&6; }
  29861. printf "%s\n" "#define HAVE_ALARM 1" >>confdefs.h
  29862. curl_cv_func_alarm="yes"
  29863. else
  29864. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29865. printf "%s\n" "no" >&6; }
  29866. curl_cv_func_alarm="no"
  29867. fi
  29868. curl_includes_string="\
  29869. /* includes start */
  29870. #ifdef HAVE_SYS_TYPES_H
  29871. # include <sys/types.h>
  29872. #endif
  29873. #ifdef HAVE_STRING_H
  29874. # include <string.h>
  29875. #endif
  29876. #ifdef HAVE_STRINGS_H
  29877. # include <strings.h>
  29878. #endif
  29879. /* includes end */"
  29880. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_string
  29881. "
  29882. if test "x$ac_cv_header_sys_types_h" = xyes
  29883. then :
  29884. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  29885. fi
  29886. ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$curl_includes_string
  29887. "
  29888. if test "x$ac_cv_header_string_h" = xyes
  29889. then :
  29890. printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
  29891. fi
  29892. ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "$curl_includes_string
  29893. "
  29894. if test "x$ac_cv_header_strings_h" = xyes
  29895. then :
  29896. printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h
  29897. fi
  29898. curl_includes_libgen="\
  29899. /* includes start */
  29900. #ifdef HAVE_SYS_TYPES_H
  29901. # include <sys/types.h>
  29902. #endif
  29903. #ifdef HAVE_LIBGEN_H
  29904. # include <libgen.h>
  29905. #endif
  29906. /* includes end */"
  29907. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_libgen
  29908. "
  29909. if test "x$ac_cv_header_sys_types_h" = xyes
  29910. then :
  29911. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  29912. fi
  29913. ac_fn_c_check_header_compile "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$curl_includes_libgen
  29914. "
  29915. if test "x$ac_cv_header_libgen_h" = xyes
  29916. then :
  29917. printf "%s\n" "#define HAVE_LIBGEN_H 1" >>confdefs.h
  29918. fi
  29919. #
  29920. tst_links_basename="unknown"
  29921. tst_proto_basename="unknown"
  29922. tst_compi_basename="unknown"
  29923. tst_allow_basename="unknown"
  29924. #
  29925. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if basename can be linked" >&5
  29926. printf %s "checking if basename can be linked... " >&6; }
  29927. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29928. /* end confdefs.h. */
  29929. #define basename innocuous_basename
  29930. #ifdef __STDC__
  29931. # include <limits.h>
  29932. #else
  29933. # include <assert.h>
  29934. #endif
  29935. #undef basename
  29936. #ifdef __cplusplus
  29937. extern "C"
  29938. #endif
  29939. char basename ();
  29940. #if defined __stub_basename || defined __stub___basename
  29941. choke me
  29942. #endif
  29943. int main (void)
  29944. {
  29945. return basename ();
  29946. ;
  29947. return 0;
  29948. }
  29949. _ACEOF
  29950. if ac_fn_c_try_link "$LINENO"
  29951. then :
  29952. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29953. printf "%s\n" "yes" >&6; }
  29954. tst_links_basename="yes"
  29955. else $as_nop
  29956. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29957. printf "%s\n" "no" >&6; }
  29958. tst_links_basename="no"
  29959. fi
  29960. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  29961. conftest$ac_exeext conftest.$ac_ext
  29962. #
  29963. if test "$tst_links_basename" = "yes"; then
  29964. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if basename is prototyped" >&5
  29965. printf %s "checking if basename is prototyped... " >&6; }
  29966. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29967. /* end confdefs.h. */
  29968. $curl_includes_string
  29969. $curl_includes_libgen
  29970. $curl_includes_unistd
  29971. _ACEOF
  29972. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  29973. $EGREP "basename" >/dev/null 2>&1
  29974. then :
  29975. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29976. printf "%s\n" "yes" >&6; }
  29977. tst_proto_basename="yes"
  29978. else $as_nop
  29979. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29980. printf "%s\n" "no" >&6; }
  29981. tst_proto_basename="no"
  29982. fi
  29983. rm -rf conftest*
  29984. fi
  29985. #
  29986. if test "$tst_proto_basename" = "yes"; then
  29987. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if basename is compilable" >&5
  29988. printf %s "checking if basename is compilable... " >&6; }
  29989. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29990. /* end confdefs.h. */
  29991. $curl_includes_string
  29992. $curl_includes_libgen
  29993. $curl_includes_unistd
  29994. int main (void)
  29995. {
  29996. if(0 != basename(0))
  29997. return 1;
  29998. ;
  29999. return 0;
  30000. }
  30001. _ACEOF
  30002. if ac_fn_c_try_compile "$LINENO"
  30003. then :
  30004. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30005. printf "%s\n" "yes" >&6; }
  30006. tst_compi_basename="yes"
  30007. else $as_nop
  30008. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30009. printf "%s\n" "no" >&6; }
  30010. tst_compi_basename="no"
  30011. fi
  30012. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  30013. fi
  30014. #
  30015. if test "$tst_compi_basename" = "yes"; then
  30016. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if basename usage allowed" >&5
  30017. printf %s "checking if basename usage allowed... " >&6; }
  30018. if test "x$curl_disallow_basename" != "xyes"; then
  30019. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30020. printf "%s\n" "yes" >&6; }
  30021. tst_allow_basename="yes"
  30022. else
  30023. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30024. printf "%s\n" "no" >&6; }
  30025. tst_allow_basename="no"
  30026. fi
  30027. fi
  30028. #
  30029. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if basename might be used" >&5
  30030. printf %s "checking if basename might be used... " >&6; }
  30031. if test "$tst_links_basename" = "yes" &&
  30032. test "$tst_proto_basename" = "yes" &&
  30033. test "$tst_compi_basename" = "yes" &&
  30034. test "$tst_allow_basename" = "yes"; then
  30035. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30036. printf "%s\n" "yes" >&6; }
  30037. printf "%s\n" "#define HAVE_BASENAME 1" >>confdefs.h
  30038. curl_cv_func_basename="yes"
  30039. else
  30040. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30041. printf "%s\n" "no" >&6; }
  30042. curl_cv_func_basename="no"
  30043. fi
  30044. curl_includes_socket="\
  30045. /* includes start */
  30046. #ifdef HAVE_SYS_TYPES_H
  30047. # include <sys/types.h>
  30048. #endif
  30049. #ifdef HAVE_SOCKET_H
  30050. # include <socket.h>
  30051. #endif
  30052. /* includes end */"
  30053. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_socket
  30054. "
  30055. if test "x$ac_cv_header_sys_types_h" = xyes
  30056. then :
  30057. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  30058. fi
  30059. ac_fn_c_check_header_compile "$LINENO" "socket.h" "ac_cv_header_socket_h" "$curl_includes_socket
  30060. "
  30061. if test "x$ac_cv_header_socket_h" = xyes
  30062. then :
  30063. printf "%s\n" "#define HAVE_SOCKET_H 1" >>confdefs.h
  30064. fi
  30065. #
  30066. tst_links_closesocket="unknown"
  30067. tst_proto_closesocket="unknown"
  30068. tst_compi_closesocket="unknown"
  30069. tst_allow_closesocket="unknown"
  30070. #
  30071. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if closesocket can be linked" >&5
  30072. printf %s "checking if closesocket can be linked... " >&6; }
  30073. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30074. /* end confdefs.h. */
  30075. $curl_includes_winsock2
  30076. $curl_includes_socket
  30077. int main (void)
  30078. {
  30079. if(0 != closesocket(0))
  30080. return 1;
  30081. ;
  30082. return 0;
  30083. }
  30084. _ACEOF
  30085. if ac_fn_c_try_link "$LINENO"
  30086. then :
  30087. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30088. printf "%s\n" "yes" >&6; }
  30089. tst_links_closesocket="yes"
  30090. else $as_nop
  30091. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30092. printf "%s\n" "no" >&6; }
  30093. tst_links_closesocket="no"
  30094. fi
  30095. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  30096. conftest$ac_exeext conftest.$ac_ext
  30097. #
  30098. if test "$tst_links_closesocket" = "yes"; then
  30099. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if closesocket is prototyped" >&5
  30100. printf %s "checking if closesocket is prototyped... " >&6; }
  30101. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30102. /* end confdefs.h. */
  30103. $curl_includes_winsock2
  30104. $curl_includes_socket
  30105. _ACEOF
  30106. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  30107. $EGREP "closesocket" >/dev/null 2>&1
  30108. then :
  30109. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30110. printf "%s\n" "yes" >&6; }
  30111. tst_proto_closesocket="yes"
  30112. else $as_nop
  30113. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30114. printf "%s\n" "no" >&6; }
  30115. tst_proto_closesocket="no"
  30116. fi
  30117. rm -rf conftest*
  30118. fi
  30119. #
  30120. if test "$tst_proto_closesocket" = "yes"; then
  30121. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if closesocket is compilable" >&5
  30122. printf %s "checking if closesocket is compilable... " >&6; }
  30123. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30124. /* end confdefs.h. */
  30125. $curl_includes_winsock2
  30126. $curl_includes_socket
  30127. int main (void)
  30128. {
  30129. if(0 != closesocket(0))
  30130. return 1;
  30131. ;
  30132. return 0;
  30133. }
  30134. _ACEOF
  30135. if ac_fn_c_try_compile "$LINENO"
  30136. then :
  30137. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30138. printf "%s\n" "yes" >&6; }
  30139. tst_compi_closesocket="yes"
  30140. else $as_nop
  30141. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30142. printf "%s\n" "no" >&6; }
  30143. tst_compi_closesocket="no"
  30144. fi
  30145. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  30146. fi
  30147. #
  30148. if test "$tst_compi_closesocket" = "yes"; then
  30149. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if closesocket usage allowed" >&5
  30150. printf %s "checking if closesocket usage allowed... " >&6; }
  30151. if test "x$curl_disallow_closesocket" != "xyes"; then
  30152. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30153. printf "%s\n" "yes" >&6; }
  30154. tst_allow_closesocket="yes"
  30155. else
  30156. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30157. printf "%s\n" "no" >&6; }
  30158. tst_allow_closesocket="no"
  30159. fi
  30160. fi
  30161. #
  30162. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if closesocket might be used" >&5
  30163. printf %s "checking if closesocket might be used... " >&6; }
  30164. if test "$tst_links_closesocket" = "yes" &&
  30165. test "$tst_proto_closesocket" = "yes" &&
  30166. test "$tst_compi_closesocket" = "yes" &&
  30167. test "$tst_allow_closesocket" = "yes"; then
  30168. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30169. printf "%s\n" "yes" >&6; }
  30170. printf "%s\n" "#define HAVE_CLOSESOCKET 1" >>confdefs.h
  30171. curl_cv_func_closesocket="yes"
  30172. else
  30173. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30174. printf "%s\n" "no" >&6; }
  30175. curl_cv_func_closesocket="no"
  30176. fi
  30177. curl_includes_sys_socket="\
  30178. /* includes start */
  30179. #ifdef HAVE_SYS_TYPES_H
  30180. # include <sys/types.h>
  30181. #endif
  30182. #ifdef HAVE_SYS_SOCKET_H
  30183. # include <sys/socket.h>
  30184. #endif
  30185. /* includes end */"
  30186. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_sys_socket
  30187. "
  30188. if test "x$ac_cv_header_sys_types_h" = xyes
  30189. then :
  30190. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  30191. fi
  30192. ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$curl_includes_sys_socket
  30193. "
  30194. if test "x$ac_cv_header_sys_socket_h" = xyes
  30195. then :
  30196. printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
  30197. fi
  30198. #
  30199. tst_links_closesocket_camel="unknown"
  30200. tst_proto_closesocket_camel="unknown"
  30201. tst_compi_closesocket_camel="unknown"
  30202. tst_allow_closesocket_camel="unknown"
  30203. #
  30204. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if CloseSocket can be linked" >&5
  30205. printf %s "checking if CloseSocket can be linked... " >&6; }
  30206. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30207. /* end confdefs.h. */
  30208. $curl_includes_bsdsocket
  30209. $curl_includes_sys_socket
  30210. int main (void)
  30211. {
  30212. if(0 != CloseSocket(0))
  30213. return 1;
  30214. ;
  30215. return 0;
  30216. }
  30217. _ACEOF
  30218. if ac_fn_c_try_link "$LINENO"
  30219. then :
  30220. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30221. printf "%s\n" "yes" >&6; }
  30222. tst_links_closesocket_camel="yes"
  30223. else $as_nop
  30224. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30225. printf "%s\n" "no" >&6; }
  30226. tst_links_closesocket_camel="no"
  30227. fi
  30228. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  30229. conftest$ac_exeext conftest.$ac_ext
  30230. #
  30231. if test "$tst_links_closesocket_camel" = "yes"; then
  30232. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is prototyped" >&5
  30233. printf %s "checking if CloseSocket is prototyped... " >&6; }
  30234. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30235. /* end confdefs.h. */
  30236. $curl_includes_bsdsocket
  30237. $curl_includes_sys_socket
  30238. _ACEOF
  30239. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  30240. $EGREP "CloseSocket" >/dev/null 2>&1
  30241. then :
  30242. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30243. printf "%s\n" "yes" >&6; }
  30244. tst_proto_closesocket_camel="yes"
  30245. else $as_nop
  30246. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30247. printf "%s\n" "no" >&6; }
  30248. tst_proto_closesocket_camel="no"
  30249. fi
  30250. rm -rf conftest*
  30251. fi
  30252. #
  30253. if test "$tst_proto_closesocket_camel" = "yes"; then
  30254. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is compilable" >&5
  30255. printf %s "checking if CloseSocket is compilable... " >&6; }
  30256. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30257. /* end confdefs.h. */
  30258. $curl_includes_bsdsocket
  30259. $curl_includes_sys_socket
  30260. int main (void)
  30261. {
  30262. if(0 != CloseSocket(0))
  30263. return 1;
  30264. ;
  30265. return 0;
  30266. }
  30267. _ACEOF
  30268. if ac_fn_c_try_compile "$LINENO"
  30269. then :
  30270. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30271. printf "%s\n" "yes" >&6; }
  30272. tst_compi_closesocket_camel="yes"
  30273. else $as_nop
  30274. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30275. printf "%s\n" "no" >&6; }
  30276. tst_compi_closesocket_camel="no"
  30277. fi
  30278. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  30279. fi
  30280. #
  30281. if test "$tst_compi_closesocket_camel" = "yes"; then
  30282. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if CloseSocket usage allowed" >&5
  30283. printf %s "checking if CloseSocket usage allowed... " >&6; }
  30284. if test "x$curl_disallow_closesocket_camel" != "xyes"; then
  30285. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30286. printf "%s\n" "yes" >&6; }
  30287. tst_allow_closesocket_camel="yes"
  30288. else
  30289. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30290. printf "%s\n" "no" >&6; }
  30291. tst_allow_closesocket_camel="no"
  30292. fi
  30293. fi
  30294. #
  30295. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if CloseSocket might be used" >&5
  30296. printf %s "checking if CloseSocket might be used... " >&6; }
  30297. if test "$tst_links_closesocket_camel" = "yes" &&
  30298. test "$tst_proto_closesocket_camel" = "yes" &&
  30299. test "$tst_compi_closesocket_camel" = "yes" &&
  30300. test "$tst_allow_closesocket_camel" = "yes"; then
  30301. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30302. printf "%s\n" "yes" >&6; }
  30303. printf "%s\n" "#define HAVE_CLOSESOCKET_CAMEL 1" >>confdefs.h
  30304. curl_cv_func_closesocket_camel="yes"
  30305. else
  30306. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30307. printf "%s\n" "no" >&6; }
  30308. curl_cv_func_closesocket_camel="no"
  30309. fi
  30310. #
  30311. tst_links_connect="unknown"
  30312. tst_proto_connect="unknown"
  30313. tst_compi_connect="unknown"
  30314. tst_allow_connect="unknown"
  30315. #
  30316. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if connect can be linked" >&5
  30317. printf %s "checking if connect can be linked... " >&6; }
  30318. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30319. /* end confdefs.h. */
  30320. $curl_includes_winsock2
  30321. $curl_includes_bsdsocket
  30322. $curl_includes_sys_socket
  30323. $curl_includes_socket
  30324. int main (void)
  30325. {
  30326. if(0 != connect(0, 0, 0))
  30327. return 1;
  30328. ;
  30329. return 0;
  30330. }
  30331. _ACEOF
  30332. if ac_fn_c_try_link "$LINENO"
  30333. then :
  30334. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30335. printf "%s\n" "yes" >&6; }
  30336. tst_links_connect="yes"
  30337. else $as_nop
  30338. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30339. printf "%s\n" "no" >&6; }
  30340. tst_links_connect="no"
  30341. fi
  30342. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  30343. conftest$ac_exeext conftest.$ac_ext
  30344. #
  30345. if test "$tst_links_connect" = "yes"; then
  30346. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if connect is prototyped" >&5
  30347. printf %s "checking if connect is prototyped... " >&6; }
  30348. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30349. /* end confdefs.h. */
  30350. $curl_includes_winsock2
  30351. $curl_includes_bsdsocket
  30352. $curl_includes_sys_socket
  30353. $curl_includes_socket
  30354. _ACEOF
  30355. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  30356. $EGREP "connect" >/dev/null 2>&1
  30357. then :
  30358. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30359. printf "%s\n" "yes" >&6; }
  30360. tst_proto_connect="yes"
  30361. else $as_nop
  30362. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30363. printf "%s\n" "no" >&6; }
  30364. tst_proto_connect="no"
  30365. fi
  30366. rm -rf conftest*
  30367. fi
  30368. #
  30369. if test "$tst_proto_connect" = "yes"; then
  30370. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if connect is compilable" >&5
  30371. printf %s "checking if connect is compilable... " >&6; }
  30372. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30373. /* end confdefs.h. */
  30374. $curl_includes_winsock2
  30375. $curl_includes_bsdsocket
  30376. $curl_includes_sys_socket
  30377. $curl_includes_socket
  30378. int main (void)
  30379. {
  30380. if(0 != connect(0, 0, 0))
  30381. return 1;
  30382. ;
  30383. return 0;
  30384. }
  30385. _ACEOF
  30386. if ac_fn_c_try_compile "$LINENO"
  30387. then :
  30388. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30389. printf "%s\n" "yes" >&6; }
  30390. tst_compi_connect="yes"
  30391. else $as_nop
  30392. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30393. printf "%s\n" "no" >&6; }
  30394. tst_compi_connect="no"
  30395. fi
  30396. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  30397. fi
  30398. #
  30399. if test "$tst_compi_connect" = "yes"; then
  30400. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if connect usage allowed" >&5
  30401. printf %s "checking if connect usage allowed... " >&6; }
  30402. if test "x$curl_disallow_connect" != "xyes"; then
  30403. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30404. printf "%s\n" "yes" >&6; }
  30405. tst_allow_connect="yes"
  30406. else
  30407. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30408. printf "%s\n" "no" >&6; }
  30409. tst_allow_connect="no"
  30410. fi
  30411. fi
  30412. #
  30413. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if connect might be used" >&5
  30414. printf %s "checking if connect might be used... " >&6; }
  30415. if test "$tst_links_connect" = "yes" &&
  30416. test "$tst_proto_connect" = "yes" &&
  30417. test "$tst_compi_connect" = "yes" &&
  30418. test "$tst_allow_connect" = "yes"; then
  30419. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30420. printf "%s\n" "yes" >&6; }
  30421. printf "%s\n" "#define HAVE_CONNECT 1" >>confdefs.h
  30422. curl_cv_func_connect="yes"
  30423. else
  30424. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30425. printf "%s\n" "no" >&6; }
  30426. curl_cv_func_connect="no"
  30427. fi
  30428. curl_includes_fcntl="\
  30429. /* includes start */
  30430. #ifdef HAVE_SYS_TYPES_H
  30431. # include <sys/types.h>
  30432. #endif
  30433. #ifdef HAVE_UNISTD_H
  30434. # include <unistd.h>
  30435. #endif
  30436. #ifdef HAVE_FCNTL_H
  30437. # include <fcntl.h>
  30438. #endif
  30439. /* includes end */"
  30440. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_fcntl
  30441. "
  30442. if test "x$ac_cv_header_sys_types_h" = xyes
  30443. then :
  30444. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  30445. fi
  30446. ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$curl_includes_fcntl
  30447. "
  30448. if test "x$ac_cv_header_unistd_h" = xyes
  30449. then :
  30450. printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
  30451. fi
  30452. ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$curl_includes_fcntl
  30453. "
  30454. if test "x$ac_cv_header_fcntl_h" = xyes
  30455. then :
  30456. printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
  30457. fi
  30458. #
  30459. tst_links_fcntl="unknown"
  30460. tst_proto_fcntl="unknown"
  30461. tst_compi_fcntl="unknown"
  30462. tst_allow_fcntl="unknown"
  30463. #
  30464. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl can be linked" >&5
  30465. printf %s "checking if fcntl can be linked... " >&6; }
  30466. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30467. /* end confdefs.h. */
  30468. #define fcntl innocuous_fcntl
  30469. #ifdef __STDC__
  30470. # include <limits.h>
  30471. #else
  30472. # include <assert.h>
  30473. #endif
  30474. #undef fcntl
  30475. #ifdef __cplusplus
  30476. extern "C"
  30477. #endif
  30478. char fcntl ();
  30479. #if defined __stub_fcntl || defined __stub___fcntl
  30480. choke me
  30481. #endif
  30482. int main (void)
  30483. {
  30484. return fcntl ();
  30485. ;
  30486. return 0;
  30487. }
  30488. _ACEOF
  30489. if ac_fn_c_try_link "$LINENO"
  30490. then :
  30491. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30492. printf "%s\n" "yes" >&6; }
  30493. tst_links_fcntl="yes"
  30494. else $as_nop
  30495. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30496. printf "%s\n" "no" >&6; }
  30497. tst_links_fcntl="no"
  30498. fi
  30499. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  30500. conftest$ac_exeext conftest.$ac_ext
  30501. #
  30502. if test "$tst_links_fcntl" = "yes"; then
  30503. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl is prototyped" >&5
  30504. printf %s "checking if fcntl is prototyped... " >&6; }
  30505. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30506. /* end confdefs.h. */
  30507. $curl_includes_fcntl
  30508. _ACEOF
  30509. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  30510. $EGREP "fcntl" >/dev/null 2>&1
  30511. then :
  30512. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30513. printf "%s\n" "yes" >&6; }
  30514. tst_proto_fcntl="yes"
  30515. else $as_nop
  30516. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30517. printf "%s\n" "no" >&6; }
  30518. tst_proto_fcntl="no"
  30519. fi
  30520. rm -rf conftest*
  30521. fi
  30522. #
  30523. if test "$tst_proto_fcntl" = "yes"; then
  30524. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl is compilable" >&5
  30525. printf %s "checking if fcntl is compilable... " >&6; }
  30526. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30527. /* end confdefs.h. */
  30528. $curl_includes_fcntl
  30529. int main (void)
  30530. {
  30531. if(0 != fcntl(0, 0, 0))
  30532. return 1;
  30533. ;
  30534. return 0;
  30535. }
  30536. _ACEOF
  30537. if ac_fn_c_try_compile "$LINENO"
  30538. then :
  30539. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30540. printf "%s\n" "yes" >&6; }
  30541. tst_compi_fcntl="yes"
  30542. else $as_nop
  30543. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30544. printf "%s\n" "no" >&6; }
  30545. tst_compi_fcntl="no"
  30546. fi
  30547. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  30548. fi
  30549. #
  30550. if test "$tst_compi_fcntl" = "yes"; then
  30551. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl usage allowed" >&5
  30552. printf %s "checking if fcntl usage allowed... " >&6; }
  30553. if test "x$curl_disallow_fcntl" != "xyes"; then
  30554. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30555. printf "%s\n" "yes" >&6; }
  30556. tst_allow_fcntl="yes"
  30557. else
  30558. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30559. printf "%s\n" "no" >&6; }
  30560. tst_allow_fcntl="no"
  30561. fi
  30562. fi
  30563. #
  30564. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl might be used" >&5
  30565. printf %s "checking if fcntl might be used... " >&6; }
  30566. if test "$tst_links_fcntl" = "yes" &&
  30567. test "$tst_proto_fcntl" = "yes" &&
  30568. test "$tst_compi_fcntl" = "yes" &&
  30569. test "$tst_allow_fcntl" = "yes"; then
  30570. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30571. printf "%s\n" "yes" >&6; }
  30572. printf "%s\n" "#define HAVE_FCNTL 1" >>confdefs.h
  30573. curl_cv_func_fcntl="yes"
  30574. #
  30575. tst_compi_fcntl_o_nonblock="unknown"
  30576. tst_allow_fcntl_o_nonblock="unknown"
  30577. #
  30578. case $host_os in
  30579. sunos4* | aix3*)
  30580. curl_disallow_fcntl_o_nonblock="yes"
  30581. ;;
  30582. esac
  30583. #
  30584. if test "$curl_cv_func_fcntl" = "yes"; then
  30585. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK is compilable" >&5
  30586. printf %s "checking if fcntl O_NONBLOCK is compilable... " >&6; }
  30587. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30588. /* end confdefs.h. */
  30589. $curl_includes_fcntl
  30590. int main (void)
  30591. {
  30592. int flags = 0;
  30593. if(0 != fcntl(0, F_SETFL, flags | O_NONBLOCK))
  30594. return 1;
  30595. ;
  30596. return 0;
  30597. }
  30598. _ACEOF
  30599. if ac_fn_c_try_compile "$LINENO"
  30600. then :
  30601. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30602. printf "%s\n" "yes" >&6; }
  30603. tst_compi_fcntl_o_nonblock="yes"
  30604. else $as_nop
  30605. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30606. printf "%s\n" "no" >&6; }
  30607. tst_compi_fcntl_o_nonblock="no"
  30608. fi
  30609. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  30610. fi
  30611. #
  30612. if test "$tst_compi_fcntl_o_nonblock" = "yes"; then
  30613. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK usage allowed" >&5
  30614. printf %s "checking if fcntl O_NONBLOCK usage allowed... " >&6; }
  30615. if test "x$curl_disallow_fcntl_o_nonblock" != "xyes"; then
  30616. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30617. printf "%s\n" "yes" >&6; }
  30618. tst_allow_fcntl_o_nonblock="yes"
  30619. else
  30620. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30621. printf "%s\n" "no" >&6; }
  30622. tst_allow_fcntl_o_nonblock="no"
  30623. fi
  30624. fi
  30625. #
  30626. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK might be used" >&5
  30627. printf %s "checking if fcntl O_NONBLOCK might be used... " >&6; }
  30628. if test "$tst_compi_fcntl_o_nonblock" = "yes" &&
  30629. test "$tst_allow_fcntl_o_nonblock" = "yes"; then
  30630. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30631. printf "%s\n" "yes" >&6; }
  30632. printf "%s\n" "#define HAVE_FCNTL_O_NONBLOCK 1" >>confdefs.h
  30633. curl_cv_func_fcntl_o_nonblock="yes"
  30634. else
  30635. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30636. printf "%s\n" "no" >&6; }
  30637. curl_cv_func_fcntl_o_nonblock="no"
  30638. fi
  30639. else
  30640. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30641. printf "%s\n" "no" >&6; }
  30642. curl_cv_func_fcntl="no"
  30643. fi
  30644. curl_includes_ws2tcpip="\
  30645. /* includes start */
  30646. #ifdef HAVE_WINDOWS_H
  30647. # ifndef WIN32_LEAN_AND_MEAN
  30648. # define WIN32_LEAN_AND_MEAN
  30649. # endif
  30650. # include <windows.h>
  30651. # ifdef HAVE_WINSOCK2_H
  30652. # include <winsock2.h>
  30653. # ifdef HAVE_WS2TCPIP_H
  30654. # include <ws2tcpip.h>
  30655. # endif
  30656. # endif
  30657. #endif
  30658. /* includes end */"
  30659. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
  30660. printf %s "checking for windows.h... " >&6; }
  30661. if test ${curl_cv_header_windows_h+y}
  30662. then :
  30663. printf %s "(cached) " >&6
  30664. else $as_nop
  30665. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30666. /* end confdefs.h. */
  30667. #undef inline
  30668. #ifndef WIN32_LEAN_AND_MEAN
  30669. #define WIN32_LEAN_AND_MEAN
  30670. #endif
  30671. #include <windows.h>
  30672. int main (void)
  30673. {
  30674. #if defined(__CYGWIN__) || defined(__CEGCC__)
  30675. HAVE_WINDOWS_H shall not be defined.
  30676. #else
  30677. int dummy=2*WINVER;
  30678. #endif
  30679. ;
  30680. return 0;
  30681. }
  30682. _ACEOF
  30683. if ac_fn_c_try_compile "$LINENO"
  30684. then :
  30685. curl_cv_header_windows_h="yes"
  30686. else $as_nop
  30687. curl_cv_header_windows_h="no"
  30688. fi
  30689. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  30690. fi
  30691. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
  30692. printf "%s\n" "$curl_cv_header_windows_h" >&6; }
  30693. case "$curl_cv_header_windows_h" in
  30694. yes)
  30695. printf "%s\n" "#define HAVE_WINDOWS_H 1" >>confdefs.h
  30696. ;;
  30697. esac
  30698. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
  30699. printf %s "checking for winsock2.h... " >&6; }
  30700. if test ${curl_cv_header_winsock2_h+y}
  30701. then :
  30702. printf %s "(cached) " >&6
  30703. else $as_nop
  30704. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30705. /* end confdefs.h. */
  30706. #undef inline
  30707. #ifndef WIN32_LEAN_AND_MEAN
  30708. #define WIN32_LEAN_AND_MEAN
  30709. #endif
  30710. #include <windows.h>
  30711. #include <winsock2.h>
  30712. int main (void)
  30713. {
  30714. #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
  30715. HAVE_WINSOCK2_H shall not be defined.
  30716. #else
  30717. int dummy=2*IPPROTO_ESP;
  30718. #endif
  30719. ;
  30720. return 0;
  30721. }
  30722. _ACEOF
  30723. if ac_fn_c_try_compile "$LINENO"
  30724. then :
  30725. curl_cv_header_winsock2_h="yes"
  30726. else $as_nop
  30727. curl_cv_header_winsock2_h="no"
  30728. fi
  30729. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  30730. fi
  30731. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
  30732. printf "%s\n" "$curl_cv_header_winsock2_h" >&6; }
  30733. case "$curl_cv_header_winsock2_h" in
  30734. yes)
  30735. printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h
  30736. ;;
  30737. esac
  30738. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
  30739. printf %s "checking for ws2tcpip.h... " >&6; }
  30740. if test ${curl_cv_header_ws2tcpip_h+y}
  30741. then :
  30742. printf %s "(cached) " >&6
  30743. else $as_nop
  30744. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30745. /* end confdefs.h. */
  30746. #undef inline
  30747. #ifndef WIN32_LEAN_AND_MEAN
  30748. #define WIN32_LEAN_AND_MEAN
  30749. #endif
  30750. #include <windows.h>
  30751. #include <winsock2.h>
  30752. #include <ws2tcpip.h>
  30753. int main (void)
  30754. {
  30755. #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
  30756. HAVE_WS2TCPIP_H shall not be defined.
  30757. #else
  30758. int dummy=2*IP_PKTINFO;
  30759. #endif
  30760. ;
  30761. return 0;
  30762. }
  30763. _ACEOF
  30764. if ac_fn_c_try_compile "$LINENO"
  30765. then :
  30766. curl_cv_header_ws2tcpip_h="yes"
  30767. else $as_nop
  30768. curl_cv_header_ws2tcpip_h="no"
  30769. fi
  30770. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  30771. fi
  30772. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ws2tcpip_h" >&5
  30773. printf "%s\n" "$curl_cv_header_ws2tcpip_h" >&6; }
  30774. case "$curl_cv_header_ws2tcpip_h" in
  30775. yes)
  30776. printf "%s\n" "#define HAVE_WS2TCPIP_H 1" >>confdefs.h
  30777. ;;
  30778. esac
  30779. curl_includes_netdb="\
  30780. /* includes start */
  30781. #ifdef HAVE_SYS_TYPES_H
  30782. # include <sys/types.h>
  30783. #endif
  30784. #ifdef HAVE_NETDB_H
  30785. # include <netdb.h>
  30786. #endif
  30787. /* includes end */"
  30788. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_netdb
  30789. "
  30790. if test "x$ac_cv_header_sys_types_h" = xyes
  30791. then :
  30792. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  30793. fi
  30794. ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$curl_includes_netdb
  30795. "
  30796. if test "x$ac_cv_header_netdb_h" = xyes
  30797. then :
  30798. printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h
  30799. fi
  30800. #
  30801. tst_links_freeaddrinfo="unknown"
  30802. tst_proto_freeaddrinfo="unknown"
  30803. tst_compi_freeaddrinfo="unknown"
  30804. tst_allow_freeaddrinfo="unknown"
  30805. #
  30806. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo can be linked" >&5
  30807. printf %s "checking if freeaddrinfo can be linked... " >&6; }
  30808. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30809. /* end confdefs.h. */
  30810. $curl_includes_ws2tcpip
  30811. $curl_includes_sys_socket
  30812. $curl_includes_netdb
  30813. int main (void)
  30814. {
  30815. freeaddrinfo(0);
  30816. ;
  30817. return 0;
  30818. }
  30819. _ACEOF
  30820. if ac_fn_c_try_link "$LINENO"
  30821. then :
  30822. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30823. printf "%s\n" "yes" >&6; }
  30824. tst_links_freeaddrinfo="yes"
  30825. else $as_nop
  30826. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30827. printf "%s\n" "no" >&6; }
  30828. tst_links_freeaddrinfo="no"
  30829. fi
  30830. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  30831. conftest$ac_exeext conftest.$ac_ext
  30832. #
  30833. if test "$tst_links_freeaddrinfo" = "yes"; then
  30834. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is prototyped" >&5
  30835. printf %s "checking if freeaddrinfo is prototyped... " >&6; }
  30836. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30837. /* end confdefs.h. */
  30838. $curl_includes_ws2tcpip
  30839. $curl_includes_sys_socket
  30840. $curl_includes_netdb
  30841. _ACEOF
  30842. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  30843. $EGREP "freeaddrinfo" >/dev/null 2>&1
  30844. then :
  30845. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30846. printf "%s\n" "yes" >&6; }
  30847. tst_proto_freeaddrinfo="yes"
  30848. else $as_nop
  30849. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30850. printf "%s\n" "no" >&6; }
  30851. tst_proto_freeaddrinfo="no"
  30852. fi
  30853. rm -rf conftest*
  30854. fi
  30855. #
  30856. if test "$tst_proto_freeaddrinfo" = "yes"; then
  30857. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is compilable" >&5
  30858. printf %s "checking if freeaddrinfo is compilable... " >&6; }
  30859. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30860. /* end confdefs.h. */
  30861. $curl_includes_ws2tcpip
  30862. $curl_includes_sys_socket
  30863. $curl_includes_netdb
  30864. int main (void)
  30865. {
  30866. freeaddrinfo(0);
  30867. ;
  30868. return 0;
  30869. }
  30870. _ACEOF
  30871. if ac_fn_c_try_compile "$LINENO"
  30872. then :
  30873. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30874. printf "%s\n" "yes" >&6; }
  30875. tst_compi_freeaddrinfo="yes"
  30876. else $as_nop
  30877. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30878. printf "%s\n" "no" >&6; }
  30879. tst_compi_freeaddrinfo="no"
  30880. fi
  30881. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  30882. fi
  30883. #
  30884. if test "$tst_compi_freeaddrinfo" = "yes"; then
  30885. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo usage allowed" >&5
  30886. printf %s "checking if freeaddrinfo usage allowed... " >&6; }
  30887. if test "x$curl_disallow_freeaddrinfo" != "xyes"; then
  30888. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30889. printf "%s\n" "yes" >&6; }
  30890. tst_allow_freeaddrinfo="yes"
  30891. else
  30892. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30893. printf "%s\n" "no" >&6; }
  30894. tst_allow_freeaddrinfo="no"
  30895. fi
  30896. fi
  30897. #
  30898. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo might be used" >&5
  30899. printf %s "checking if freeaddrinfo might be used... " >&6; }
  30900. if test "$tst_links_freeaddrinfo" = "yes" &&
  30901. test "$tst_proto_freeaddrinfo" = "yes" &&
  30902. test "$tst_compi_freeaddrinfo" = "yes" &&
  30903. test "$tst_allow_freeaddrinfo" = "yes"; then
  30904. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30905. printf "%s\n" "yes" >&6; }
  30906. printf "%s\n" "#define HAVE_FREEADDRINFO 1" >>confdefs.h
  30907. curl_cv_func_freeaddrinfo="yes"
  30908. else
  30909. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30910. printf "%s\n" "no" >&6; }
  30911. curl_cv_func_freeaddrinfo="no"
  30912. fi
  30913. curl_includes_sys_xattr="\
  30914. /* includes start */
  30915. #ifdef HAVE_SYS_TYPES_H
  30916. # include <sys/types.h>
  30917. #endif
  30918. #ifdef HAVE_SYS_XATTR_H
  30919. # include <sys/xattr.h>
  30920. #endif
  30921. /* includes end */"
  30922. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_sys_xattr
  30923. "
  30924. if test "x$ac_cv_header_sys_types_h" = xyes
  30925. then :
  30926. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  30927. fi
  30928. ac_fn_c_check_header_compile "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$curl_includes_sys_xattr
  30929. "
  30930. if test "x$ac_cv_header_sys_xattr_h" = xyes
  30931. then :
  30932. printf "%s\n" "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
  30933. fi
  30934. #
  30935. tst_links_fsetxattr="unknown"
  30936. tst_proto_fsetxattr="unknown"
  30937. tst_compi_fsetxattr="unknown"
  30938. tst_allow_fsetxattr="unknown"
  30939. tst_nargs_fsetxattr="unknown"
  30940. #
  30941. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr can be linked" >&5
  30942. printf %s "checking if fsetxattr can be linked... " >&6; }
  30943. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30944. /* end confdefs.h. */
  30945. #define fsetxattr innocuous_fsetxattr
  30946. #ifdef __STDC__
  30947. # include <limits.h>
  30948. #else
  30949. # include <assert.h>
  30950. #endif
  30951. #undef fsetxattr
  30952. #ifdef __cplusplus
  30953. extern "C"
  30954. #endif
  30955. char fsetxattr ();
  30956. #if defined __stub_fsetxattr || defined __stub___fsetxattr
  30957. choke me
  30958. #endif
  30959. int main (void)
  30960. {
  30961. return fsetxattr ();
  30962. ;
  30963. return 0;
  30964. }
  30965. _ACEOF
  30966. if ac_fn_c_try_link "$LINENO"
  30967. then :
  30968. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30969. printf "%s\n" "yes" >&6; }
  30970. tst_links_fsetxattr="yes"
  30971. else $as_nop
  30972. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30973. printf "%s\n" "no" >&6; }
  30974. tst_links_fsetxattr="no"
  30975. fi
  30976. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  30977. conftest$ac_exeext conftest.$ac_ext
  30978. #
  30979. if test "$tst_links_fsetxattr" = "yes"; then
  30980. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is prototyped" >&5
  30981. printf %s "checking if fsetxattr is prototyped... " >&6; }
  30982. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30983. /* end confdefs.h. */
  30984. $curl_includes_sys_xattr
  30985. _ACEOF
  30986. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  30987. $EGREP "fsetxattr" >/dev/null 2>&1
  30988. then :
  30989. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30990. printf "%s\n" "yes" >&6; }
  30991. tst_proto_fsetxattr="yes"
  30992. else $as_nop
  30993. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30994. printf "%s\n" "no" >&6; }
  30995. tst_proto_fsetxattr="no"
  30996. fi
  30997. rm -rf conftest*
  30998. fi
  30999. #
  31000. if test "$tst_proto_fsetxattr" = "yes"; then
  31001. if test "$tst_nargs_fsetxattr" = "unknown"; then
  31002. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 5 args." >&5
  31003. printf %s "checking if fsetxattr takes 5 args.... " >&6; }
  31004. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31005. /* end confdefs.h. */
  31006. $curl_includes_sys_xattr
  31007. int main (void)
  31008. {
  31009. if(0 != fsetxattr(0, 0, 0, 0, 0))
  31010. return 1;
  31011. ;
  31012. return 0;
  31013. }
  31014. _ACEOF
  31015. if ac_fn_c_try_compile "$LINENO"
  31016. then :
  31017. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31018. printf "%s\n" "yes" >&6; }
  31019. tst_compi_fsetxattr="yes"
  31020. tst_nargs_fsetxattr="5"
  31021. else $as_nop
  31022. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31023. printf "%s\n" "no" >&6; }
  31024. tst_compi_fsetxattr="no"
  31025. fi
  31026. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  31027. fi
  31028. if test "$tst_nargs_fsetxattr" = "unknown"; then
  31029. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 6 args." >&5
  31030. printf %s "checking if fsetxattr takes 6 args.... " >&6; }
  31031. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31032. /* end confdefs.h. */
  31033. $curl_includes_sys_xattr
  31034. int main (void)
  31035. {
  31036. if(0 != fsetxattr(0, 0, 0, 0, 0, 0))
  31037. return 1;
  31038. ;
  31039. return 0;
  31040. }
  31041. _ACEOF
  31042. if ac_fn_c_try_compile "$LINENO"
  31043. then :
  31044. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31045. printf "%s\n" "yes" >&6; }
  31046. tst_compi_fsetxattr="yes"
  31047. tst_nargs_fsetxattr="6"
  31048. else $as_nop
  31049. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31050. printf "%s\n" "no" >&6; }
  31051. tst_compi_fsetxattr="no"
  31052. fi
  31053. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  31054. fi
  31055. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is compilable" >&5
  31056. printf %s "checking if fsetxattr is compilable... " >&6; }
  31057. if test "$tst_compi_fsetxattr" = "yes"; then
  31058. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31059. printf "%s\n" "yes" >&6; }
  31060. else
  31061. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31062. printf "%s\n" "no" >&6; }
  31063. fi
  31064. fi
  31065. #
  31066. if test "$tst_compi_fsetxattr" = "yes"; then
  31067. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr usage allowed" >&5
  31068. printf %s "checking if fsetxattr usage allowed... " >&6; }
  31069. if test "x$curl_disallow_fsetxattr" != "xyes"; then
  31070. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31071. printf "%s\n" "yes" >&6; }
  31072. tst_allow_fsetxattr="yes"
  31073. else
  31074. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31075. printf "%s\n" "no" >&6; }
  31076. tst_allow_fsetxattr="no"
  31077. fi
  31078. fi
  31079. #
  31080. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr might be used" >&5
  31081. printf %s "checking if fsetxattr might be used... " >&6; }
  31082. if test "$tst_links_fsetxattr" = "yes" &&
  31083. test "$tst_proto_fsetxattr" = "yes" &&
  31084. test "$tst_compi_fsetxattr" = "yes" &&
  31085. test "$tst_allow_fsetxattr" = "yes"; then
  31086. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31087. printf "%s\n" "yes" >&6; }
  31088. printf "%s\n" "#define HAVE_FSETXATTR 1" >>confdefs.h
  31089. #
  31090. if test "$tst_nargs_fsetxattr" -eq "5"; then
  31091. printf "%s\n" "#define HAVE_FSETXATTR_5 1" >>confdefs.h
  31092. elif test "$tst_nargs_fsetxattr" -eq "6"; then
  31093. printf "%s\n" "#define HAVE_FSETXATTR_6 1" >>confdefs.h
  31094. fi
  31095. #
  31096. curl_cv_func_fsetxattr="yes"
  31097. else
  31098. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31099. printf "%s\n" "no" >&6; }
  31100. curl_cv_func_fsetxattr="no"
  31101. fi
  31102. #
  31103. tst_links_ftruncate="unknown"
  31104. tst_proto_ftruncate="unknown"
  31105. tst_compi_ftruncate="unknown"
  31106. tst_allow_ftruncate="unknown"
  31107. #
  31108. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ftruncate can be linked" >&5
  31109. printf %s "checking if ftruncate can be linked... " >&6; }
  31110. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31111. /* end confdefs.h. */
  31112. #define ftruncate innocuous_ftruncate
  31113. #ifdef __STDC__
  31114. # include <limits.h>
  31115. #else
  31116. # include <assert.h>
  31117. #endif
  31118. #undef ftruncate
  31119. #ifdef __cplusplus
  31120. extern "C"
  31121. #endif
  31122. char ftruncate ();
  31123. #if defined __stub_ftruncate || defined __stub___ftruncate
  31124. choke me
  31125. #endif
  31126. int main (void)
  31127. {
  31128. return ftruncate ();
  31129. ;
  31130. return 0;
  31131. }
  31132. _ACEOF
  31133. if ac_fn_c_try_link "$LINENO"
  31134. then :
  31135. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31136. printf "%s\n" "yes" >&6; }
  31137. tst_links_ftruncate="yes"
  31138. else $as_nop
  31139. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31140. printf "%s\n" "no" >&6; }
  31141. tst_links_ftruncate="no"
  31142. fi
  31143. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  31144. conftest$ac_exeext conftest.$ac_ext
  31145. #
  31146. if test "$tst_links_ftruncate" = "yes"; then
  31147. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ftruncate is prototyped" >&5
  31148. printf %s "checking if ftruncate is prototyped... " >&6; }
  31149. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31150. /* end confdefs.h. */
  31151. $curl_includes_unistd
  31152. _ACEOF
  31153. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  31154. $EGREP "ftruncate" >/dev/null 2>&1
  31155. then :
  31156. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31157. printf "%s\n" "yes" >&6; }
  31158. tst_proto_ftruncate="yes"
  31159. else $as_nop
  31160. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31161. printf "%s\n" "no" >&6; }
  31162. tst_proto_ftruncate="no"
  31163. fi
  31164. rm -rf conftest*
  31165. fi
  31166. #
  31167. if test "$tst_proto_ftruncate" = "yes"; then
  31168. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ftruncate is compilable" >&5
  31169. printf %s "checking if ftruncate is compilable... " >&6; }
  31170. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31171. /* end confdefs.h. */
  31172. $curl_includes_unistd
  31173. int main (void)
  31174. {
  31175. if(0 != ftruncate(0, 0))
  31176. return 1;
  31177. ;
  31178. return 0;
  31179. }
  31180. _ACEOF
  31181. if ac_fn_c_try_compile "$LINENO"
  31182. then :
  31183. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31184. printf "%s\n" "yes" >&6; }
  31185. tst_compi_ftruncate="yes"
  31186. else $as_nop
  31187. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31188. printf "%s\n" "no" >&6; }
  31189. tst_compi_ftruncate="no"
  31190. fi
  31191. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  31192. fi
  31193. #
  31194. if test "$tst_compi_ftruncate" = "yes"; then
  31195. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ftruncate usage allowed" >&5
  31196. printf %s "checking if ftruncate usage allowed... " >&6; }
  31197. if test "x$curl_disallow_ftruncate" != "xyes"; then
  31198. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31199. printf "%s\n" "yes" >&6; }
  31200. tst_allow_ftruncate="yes"
  31201. else
  31202. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31203. printf "%s\n" "no" >&6; }
  31204. tst_allow_ftruncate="no"
  31205. fi
  31206. fi
  31207. #
  31208. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ftruncate might be used" >&5
  31209. printf %s "checking if ftruncate might be used... " >&6; }
  31210. if test "$tst_links_ftruncate" = "yes" &&
  31211. test "$tst_proto_ftruncate" = "yes" &&
  31212. test "$tst_compi_ftruncate" = "yes" &&
  31213. test "$tst_allow_ftruncate" = "yes"; then
  31214. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31215. printf "%s\n" "yes" >&6; }
  31216. printf "%s\n" "#define HAVE_FTRUNCATE 1" >>confdefs.h
  31217. curl_cv_func_ftruncate="yes"
  31218. else
  31219. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31220. printf "%s\n" "no" >&6; }
  31221. curl_cv_func_ftruncate="no"
  31222. fi
  31223. curl_includes_stdlib="\
  31224. /* includes start */
  31225. #ifdef HAVE_SYS_TYPES_H
  31226. # include <sys/types.h>
  31227. #endif
  31228. #ifdef HAVE_STDLIB_H
  31229. # include <stdlib.h>
  31230. #endif
  31231. /* includes end */"
  31232. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_stdlib
  31233. "
  31234. if test "x$ac_cv_header_sys_types_h" = xyes
  31235. then :
  31236. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  31237. fi
  31238. ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$curl_includes_stdlib
  31239. "
  31240. if test "x$ac_cv_header_stdlib_h" = xyes
  31241. then :
  31242. printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
  31243. fi
  31244. #
  31245. tst_links_getaddrinfo="unknown"
  31246. tst_proto_getaddrinfo="unknown"
  31247. tst_compi_getaddrinfo="unknown"
  31248. tst_works_getaddrinfo="unknown"
  31249. tst_allow_getaddrinfo="unknown"
  31250. tst_tsafe_getaddrinfo="unknown"
  31251. #
  31252. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo can be linked" >&5
  31253. printf %s "checking if getaddrinfo can be linked... " >&6; }
  31254. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31255. /* end confdefs.h. */
  31256. $curl_includes_ws2tcpip
  31257. $curl_includes_sys_socket
  31258. $curl_includes_netdb
  31259. int main (void)
  31260. {
  31261. if(0 != getaddrinfo(0, 0, 0, 0))
  31262. return 1;
  31263. ;
  31264. return 0;
  31265. }
  31266. _ACEOF
  31267. if ac_fn_c_try_link "$LINENO"
  31268. then :
  31269. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31270. printf "%s\n" "yes" >&6; }
  31271. tst_links_getaddrinfo="yes"
  31272. else $as_nop
  31273. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31274. printf "%s\n" "no" >&6; }
  31275. tst_links_getaddrinfo="no"
  31276. fi
  31277. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  31278. conftest$ac_exeext conftest.$ac_ext
  31279. #
  31280. if test "$tst_links_getaddrinfo" = "yes"; then
  31281. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is prototyped" >&5
  31282. printf %s "checking if getaddrinfo is prototyped... " >&6; }
  31283. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31284. /* end confdefs.h. */
  31285. $curl_includes_ws2tcpip
  31286. $curl_includes_sys_socket
  31287. $curl_includes_netdb
  31288. _ACEOF
  31289. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  31290. $EGREP "getaddrinfo" >/dev/null 2>&1
  31291. then :
  31292. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31293. printf "%s\n" "yes" >&6; }
  31294. tst_proto_getaddrinfo="yes"
  31295. else $as_nop
  31296. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31297. printf "%s\n" "no" >&6; }
  31298. tst_proto_getaddrinfo="no"
  31299. fi
  31300. rm -rf conftest*
  31301. fi
  31302. #
  31303. if test "$tst_proto_getaddrinfo" = "yes"; then
  31304. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is compilable" >&5
  31305. printf %s "checking if getaddrinfo is compilable... " >&6; }
  31306. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31307. /* end confdefs.h. */
  31308. $curl_includes_ws2tcpip
  31309. $curl_includes_sys_socket
  31310. $curl_includes_netdb
  31311. int main (void)
  31312. {
  31313. if(0 != getaddrinfo(0, 0, 0, 0))
  31314. return 1;
  31315. ;
  31316. return 0;
  31317. }
  31318. _ACEOF
  31319. if ac_fn_c_try_compile "$LINENO"
  31320. then :
  31321. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31322. printf "%s\n" "yes" >&6; }
  31323. tst_compi_getaddrinfo="yes"
  31324. else $as_nop
  31325. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31326. printf "%s\n" "no" >&6; }
  31327. tst_compi_getaddrinfo="no"
  31328. fi
  31329. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  31330. fi
  31331. #
  31332. if test "x$cross_compiling" != "xyes" &&
  31333. test "$tst_compi_getaddrinfo" = "yes"; then
  31334. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
  31335. printf %s "checking if getaddrinfo seems to work... " >&6; }
  31336. case $host_os in
  31337. darwin*)
  31338. if test "$cross_compiling" = yes
  31339. then :
  31340. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  31341. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  31342. as_fn_error $? "cannot run test program while cross compiling
  31343. See \`config.log' for more details" "$LINENO" 5; }
  31344. else $as_nop
  31345. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31346. /* end confdefs.h. */
  31347. $curl_includes_ws2tcpip
  31348. $curl_includes_stdlib
  31349. $curl_includes_string
  31350. $curl_includes_sys_socket
  31351. $curl_includes_netdb
  31352. int main (void)
  31353. {
  31354. struct addrinfo hints;
  31355. struct addrinfo *ai = 0;
  31356. int error;
  31357. #ifdef HAVE_WINSOCK2_H
  31358. WSADATA wsa;
  31359. if (WSAStartup(MAKEWORD(2,2), &wsa))
  31360. exit(2);
  31361. #endif
  31362. memset(&hints, 0, sizeof(hints));
  31363. hints.ai_flags = AI_NUMERICHOST;
  31364. hints.ai_family = AF_UNSPEC;
  31365. hints.ai_socktype = SOCK_STREAM;
  31366. error = getaddrinfo("127.0.0.1", 0, &hints, &ai);
  31367. if(error || !ai)
  31368. exit(1); /* fail */
  31369. else
  31370. exit(0);
  31371. ;
  31372. return 0;
  31373. }
  31374. _ACEOF
  31375. if ac_fn_c_try_run "$LINENO"
  31376. then :
  31377. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31378. printf "%s\n" "yes" >&6; }
  31379. tst_works_getaddrinfo="yes"
  31380. else $as_nop
  31381. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31382. printf "%s\n" "no" >&6; }
  31383. tst_works_getaddrinfo="no"
  31384. fi
  31385. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  31386. conftest.$ac_objext conftest.beam conftest.$ac_ext
  31387. fi
  31388. ;;
  31389. *)
  31390. old=$LD_LIBRARY_PATH
  31391. LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
  31392. export LD_LIBRARY_PATH
  31393. if test "$cross_compiling" = yes
  31394. then :
  31395. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  31396. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  31397. as_fn_error $? "cannot run test program while cross compiling
  31398. See \`config.log' for more details" "$LINENO" 5; }
  31399. else $as_nop
  31400. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31401. /* end confdefs.h. */
  31402. $curl_includes_ws2tcpip
  31403. $curl_includes_stdlib
  31404. $curl_includes_string
  31405. $curl_includes_sys_socket
  31406. $curl_includes_netdb
  31407. int main (void)
  31408. {
  31409. struct addrinfo hints;
  31410. struct addrinfo *ai = 0;
  31411. int error;
  31412. #ifdef HAVE_WINSOCK2_H
  31413. WSADATA wsa;
  31414. if (WSAStartup(MAKEWORD(2,2), &wsa))
  31415. exit(2);
  31416. #endif
  31417. memset(&hints, 0, sizeof(hints));
  31418. hints.ai_flags = AI_NUMERICHOST;
  31419. hints.ai_family = AF_UNSPEC;
  31420. hints.ai_socktype = SOCK_STREAM;
  31421. error = getaddrinfo("127.0.0.1", 0, &hints, &ai);
  31422. if(error || !ai)
  31423. exit(1); /* fail */
  31424. else
  31425. exit(0);
  31426. ;
  31427. return 0;
  31428. }
  31429. _ACEOF
  31430. if ac_fn_c_try_run "$LINENO"
  31431. then :
  31432. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31433. printf "%s\n" "yes" >&6; }
  31434. tst_works_getaddrinfo="yes"
  31435. else $as_nop
  31436. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31437. printf "%s\n" "no" >&6; }
  31438. tst_works_getaddrinfo="no"
  31439. fi
  31440. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  31441. conftest.$ac_objext conftest.beam conftest.$ac_ext
  31442. fi
  31443. LD_LIBRARY_PATH=$old # restore
  31444. ;;
  31445. esac
  31446. fi
  31447. #
  31448. if test "$tst_compi_getaddrinfo" = "yes" &&
  31449. test "$tst_works_getaddrinfo" != "no"; then
  31450. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo usage allowed" >&5
  31451. printf %s "checking if getaddrinfo usage allowed... " >&6; }
  31452. if test "x$curl_disallow_getaddrinfo" != "xyes"; then
  31453. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31454. printf "%s\n" "yes" >&6; }
  31455. tst_allow_getaddrinfo="yes"
  31456. else
  31457. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31458. printf "%s\n" "no" >&6; }
  31459. tst_allow_getaddrinfo="no"
  31460. fi
  31461. fi
  31462. #
  31463. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo might be used" >&5
  31464. printf %s "checking if getaddrinfo might be used... " >&6; }
  31465. if test "$tst_links_getaddrinfo" = "yes" &&
  31466. test "$tst_proto_getaddrinfo" = "yes" &&
  31467. test "$tst_compi_getaddrinfo" = "yes" &&
  31468. test "$tst_allow_getaddrinfo" = "yes" &&
  31469. test "$tst_works_getaddrinfo" != "no"; then
  31470. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31471. printf "%s\n" "yes" >&6; }
  31472. printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h
  31473. curl_cv_func_getaddrinfo="yes"
  31474. else
  31475. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31476. printf "%s\n" "no" >&6; }
  31477. curl_cv_func_getaddrinfo="no"
  31478. curl_cv_func_getaddrinfo_threadsafe="no"
  31479. fi
  31480. #
  31481. if test "$curl_cv_func_getaddrinfo" = "yes"; then
  31482. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is threadsafe" >&5
  31483. printf %s "checking if getaddrinfo is threadsafe... " >&6; }
  31484. case $host_os in
  31485. aix[1234].* | aix5.[01].*)
  31486. tst_tsafe_getaddrinfo="no"
  31487. ;;
  31488. aix*)
  31489. tst_tsafe_getaddrinfo="yes"
  31490. ;;
  31491. darwin[12345].*)
  31492. tst_tsafe_getaddrinfo="no"
  31493. ;;
  31494. darwin*)
  31495. tst_tsafe_getaddrinfo="yes"
  31496. ;;
  31497. freebsd[1234].* | freebsd5.[1234]*)
  31498. tst_tsafe_getaddrinfo="no"
  31499. ;;
  31500. freebsd*)
  31501. tst_tsafe_getaddrinfo="yes"
  31502. ;;
  31503. hpux[123456789].* | hpux10.* | hpux11.0* | hpux11.10*)
  31504. tst_tsafe_getaddrinfo="no"
  31505. ;;
  31506. hpux*)
  31507. tst_tsafe_getaddrinfo="yes"
  31508. ;;
  31509. midnightbsd*)
  31510. tst_tsafe_getaddrinfo="yes"
  31511. ;;
  31512. netbsd[123].*)
  31513. tst_tsafe_getaddrinfo="no"
  31514. ;;
  31515. netbsd*)
  31516. tst_tsafe_getaddrinfo="yes"
  31517. ;;
  31518. *bsd*)
  31519. tst_tsafe_getaddrinfo="no"
  31520. ;;
  31521. solaris2*)
  31522. tst_tsafe_getaddrinfo="yes"
  31523. ;;
  31524. esac
  31525. if test "$tst_tsafe_getaddrinfo" = "unknown" &&
  31526. test "$curl_cv_native_windows" = "yes"; then
  31527. tst_tsafe_getaddrinfo="yes"
  31528. fi
  31529. if test "$tst_tsafe_getaddrinfo" = "unknown"; then
  31530. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31531. /* end confdefs.h. */
  31532. $curl_includes_sys_socket
  31533. $curl_includes_netdb
  31534. int main (void)
  31535. {
  31536. #ifdef h_errno
  31537. return 0;
  31538. #else
  31539. force compilation error
  31540. #endif
  31541. }
  31542. _ACEOF
  31543. if ac_fn_c_try_compile "$LINENO"
  31544. then :
  31545. tst_symbol_defined="yes"
  31546. else $as_nop
  31547. tst_symbol_defined="no"
  31548. fi
  31549. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  31550. if test "$tst_symbol_defined" = "yes"; then
  31551. curl_cv_have_def_h_errno=yes
  31552. else
  31553. curl_cv_have_def_h_errno=no
  31554. fi
  31555. if test "$curl_cv_have_def_h_errno" = "yes"; then
  31556. tst_h_errno_macro="yes"
  31557. else
  31558. tst_h_errno_macro="no"
  31559. fi
  31560. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31561. /* end confdefs.h. */
  31562. $curl_includes_sys_socket
  31563. $curl_includes_netdb
  31564. int main (void)
  31565. {
  31566. h_errno = 2;
  31567. if(0 != h_errno)
  31568. return 1;
  31569. ;
  31570. return 0;
  31571. }
  31572. _ACEOF
  31573. if ac_fn_c_try_compile "$LINENO"
  31574. then :
  31575. tst_h_errno_modifiable_lvalue="yes"
  31576. else $as_nop
  31577. tst_h_errno_modifiable_lvalue="no"
  31578. fi
  31579. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  31580. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31581. /* end confdefs.h. */
  31582. int main (void)
  31583. {
  31584. #if defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE >= 200809L)
  31585. return 0;
  31586. #elif defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 700)
  31587. return 0;
  31588. #else
  31589. force compilation error
  31590. #endif
  31591. ;
  31592. return 0;
  31593. }
  31594. _ACEOF
  31595. if ac_fn_c_try_compile "$LINENO"
  31596. then :
  31597. tst_h_errno_sbs_issue_7="yes"
  31598. else $as_nop
  31599. tst_h_errno_sbs_issue_7="no"
  31600. fi
  31601. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  31602. if test "$tst_h_errno_macro" = "no" &&
  31603. test "$tst_h_errno_modifiable_lvalue" = "no" &&
  31604. test "$tst_h_errno_sbs_issue_7" = "no"; then
  31605. tst_tsafe_getaddrinfo="no"
  31606. else
  31607. tst_tsafe_getaddrinfo="yes"
  31608. fi
  31609. fi
  31610. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_tsafe_getaddrinfo" >&5
  31611. printf "%s\n" "$tst_tsafe_getaddrinfo" >&6; }
  31612. if test "$tst_tsafe_getaddrinfo" = "yes"; then
  31613. printf "%s\n" "#define HAVE_GETADDRINFO_THREADSAFE 1" >>confdefs.h
  31614. curl_cv_func_getaddrinfo_threadsafe="yes"
  31615. else
  31616. curl_cv_func_getaddrinfo_threadsafe="no"
  31617. fi
  31618. fi
  31619. #
  31620. tst_links_gethostbyname="unknown"
  31621. tst_proto_gethostbyname="unknown"
  31622. tst_compi_gethostbyname="unknown"
  31623. tst_allow_gethostbyname="unknown"
  31624. #
  31625. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname can be linked" >&5
  31626. printf %s "checking if gethostbyname can be linked... " >&6; }
  31627. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31628. /* end confdefs.h. */
  31629. $curl_includes_winsock2
  31630. $curl_includes_bsdsocket
  31631. $curl_includes_netdb
  31632. int main (void)
  31633. {
  31634. if(0 != gethostbyname(0))
  31635. return 1;
  31636. ;
  31637. return 0;
  31638. }
  31639. _ACEOF
  31640. if ac_fn_c_try_link "$LINENO"
  31641. then :
  31642. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31643. printf "%s\n" "yes" >&6; }
  31644. tst_links_gethostbyname="yes"
  31645. else $as_nop
  31646. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31647. printf "%s\n" "no" >&6; }
  31648. tst_links_gethostbyname="no"
  31649. fi
  31650. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  31651. conftest$ac_exeext conftest.$ac_ext
  31652. #
  31653. if test "$tst_links_gethostbyname" = "yes"; then
  31654. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is prototyped" >&5
  31655. printf %s "checking if gethostbyname is prototyped... " >&6; }
  31656. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31657. /* end confdefs.h. */
  31658. $curl_includes_winsock2
  31659. $curl_includes_bsdsocket
  31660. $curl_includes_netdb
  31661. _ACEOF
  31662. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  31663. $EGREP "gethostbyname" >/dev/null 2>&1
  31664. then :
  31665. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31666. printf "%s\n" "yes" >&6; }
  31667. tst_proto_gethostbyname="yes"
  31668. else $as_nop
  31669. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31670. printf "%s\n" "no" >&6; }
  31671. tst_proto_gethostbyname="no"
  31672. fi
  31673. rm -rf conftest*
  31674. fi
  31675. #
  31676. if test "$tst_proto_gethostbyname" = "yes"; then
  31677. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is compilable" >&5
  31678. printf %s "checking if gethostbyname is compilable... " >&6; }
  31679. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31680. /* end confdefs.h. */
  31681. $curl_includes_winsock2
  31682. $curl_includes_bsdsocket
  31683. $curl_includes_netdb
  31684. int main (void)
  31685. {
  31686. if(0 != gethostbyname(0))
  31687. return 1;
  31688. ;
  31689. return 0;
  31690. }
  31691. _ACEOF
  31692. if ac_fn_c_try_compile "$LINENO"
  31693. then :
  31694. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31695. printf "%s\n" "yes" >&6; }
  31696. tst_compi_gethostbyname="yes"
  31697. else $as_nop
  31698. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31699. printf "%s\n" "no" >&6; }
  31700. tst_compi_gethostbyname="no"
  31701. fi
  31702. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  31703. fi
  31704. #
  31705. if test "$tst_compi_gethostbyname" = "yes"; then
  31706. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname usage allowed" >&5
  31707. printf %s "checking if gethostbyname usage allowed... " >&6; }
  31708. if test "x$curl_disallow_gethostbyname" != "xyes"; then
  31709. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31710. printf "%s\n" "yes" >&6; }
  31711. tst_allow_gethostbyname="yes"
  31712. else
  31713. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31714. printf "%s\n" "no" >&6; }
  31715. tst_allow_gethostbyname="no"
  31716. fi
  31717. fi
  31718. #
  31719. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname might be used" >&5
  31720. printf %s "checking if gethostbyname might be used... " >&6; }
  31721. if test "$tst_links_gethostbyname" = "yes" &&
  31722. test "$tst_proto_gethostbyname" = "yes" &&
  31723. test "$tst_compi_gethostbyname" = "yes" &&
  31724. test "$tst_allow_gethostbyname" = "yes"; then
  31725. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31726. printf "%s\n" "yes" >&6; }
  31727. printf "%s\n" "#define HAVE_GETHOSTBYNAME 1" >>confdefs.h
  31728. curl_cv_func_gethostbyname="yes"
  31729. else
  31730. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31731. printf "%s\n" "no" >&6; }
  31732. curl_cv_func_gethostbyname="no"
  31733. fi
  31734. #
  31735. tst_links_gethostbyname_r="unknown"
  31736. tst_proto_gethostbyname_r="unknown"
  31737. tst_compi_gethostbyname_r="unknown"
  31738. tst_allow_gethostbyname_r="unknown"
  31739. tst_nargs_gethostbyname_r="unknown"
  31740. #
  31741. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r can be linked" >&5
  31742. printf %s "checking if gethostbyname_r can be linked... " >&6; }
  31743. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31744. /* end confdefs.h. */
  31745. #define gethostbyname_r innocuous_gethostbyname_r
  31746. #ifdef __STDC__
  31747. # include <limits.h>
  31748. #else
  31749. # include <assert.h>
  31750. #endif
  31751. #undef gethostbyname_r
  31752. #ifdef __cplusplus
  31753. extern "C"
  31754. #endif
  31755. char gethostbyname_r ();
  31756. #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
  31757. choke me
  31758. #endif
  31759. int main (void)
  31760. {
  31761. return gethostbyname_r ();
  31762. ;
  31763. return 0;
  31764. }
  31765. _ACEOF
  31766. if ac_fn_c_try_link "$LINENO"
  31767. then :
  31768. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31769. printf "%s\n" "yes" >&6; }
  31770. tst_links_gethostbyname_r="yes"
  31771. else $as_nop
  31772. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31773. printf "%s\n" "no" >&6; }
  31774. tst_links_gethostbyname_r="no"
  31775. fi
  31776. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  31777. conftest$ac_exeext conftest.$ac_ext
  31778. #
  31779. if test "$tst_links_gethostbyname_r" = "yes"; then
  31780. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is prototyped" >&5
  31781. printf %s "checking if gethostbyname_r is prototyped... " >&6; }
  31782. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31783. /* end confdefs.h. */
  31784. $curl_includes_netdb
  31785. _ACEOF
  31786. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  31787. $EGREP "gethostbyname_r" >/dev/null 2>&1
  31788. then :
  31789. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31790. printf "%s\n" "yes" >&6; }
  31791. tst_proto_gethostbyname_r="yes"
  31792. else $as_nop
  31793. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31794. printf "%s\n" "no" >&6; }
  31795. tst_proto_gethostbyname_r="no"
  31796. fi
  31797. rm -rf conftest*
  31798. fi
  31799. #
  31800. if test "$tst_proto_gethostbyname_r" = "yes"; then
  31801. if test "$tst_nargs_gethostbyname_r" = "unknown"; then
  31802. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 3 args." >&5
  31803. printf %s "checking if gethostbyname_r takes 3 args.... " >&6; }
  31804. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31805. /* end confdefs.h. */
  31806. $curl_includes_netdb
  31807. $curl_includes_bsdsocket
  31808. int main (void)
  31809. {
  31810. if(0 != gethostbyname_r(0, 0, 0))
  31811. return 1;
  31812. ;
  31813. return 0;
  31814. }
  31815. _ACEOF
  31816. if ac_fn_c_try_compile "$LINENO"
  31817. then :
  31818. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31819. printf "%s\n" "yes" >&6; }
  31820. tst_compi_gethostbyname_r="yes"
  31821. tst_nargs_gethostbyname_r="3"
  31822. else $as_nop
  31823. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31824. printf "%s\n" "no" >&6; }
  31825. tst_compi_gethostbyname_r="no"
  31826. fi
  31827. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  31828. fi
  31829. if test "$tst_nargs_gethostbyname_r" = "unknown"; then
  31830. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 5 args." >&5
  31831. printf %s "checking if gethostbyname_r takes 5 args.... " >&6; }
  31832. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31833. /* end confdefs.h. */
  31834. $curl_includes_netdb
  31835. $curl_includes_bsdsocket
  31836. int main (void)
  31837. {
  31838. if(0 != gethostbyname_r(0, 0, 0, 0, 0))
  31839. return 1;
  31840. ;
  31841. return 0;
  31842. }
  31843. _ACEOF
  31844. if ac_fn_c_try_compile "$LINENO"
  31845. then :
  31846. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31847. printf "%s\n" "yes" >&6; }
  31848. tst_compi_gethostbyname_r="yes"
  31849. tst_nargs_gethostbyname_r="5"
  31850. else $as_nop
  31851. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31852. printf "%s\n" "no" >&6; }
  31853. tst_compi_gethostbyname_r="no"
  31854. fi
  31855. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  31856. fi
  31857. if test "$tst_nargs_gethostbyname_r" = "unknown"; then
  31858. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 6 args." >&5
  31859. printf %s "checking if gethostbyname_r takes 6 args.... " >&6; }
  31860. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31861. /* end confdefs.h. */
  31862. $curl_includes_netdb
  31863. $curl_includes_bsdsocket
  31864. int main (void)
  31865. {
  31866. if(0 != gethostbyname_r(0, 0, 0, 0, 0, 0))
  31867. return 1;
  31868. ;
  31869. return 0;
  31870. }
  31871. _ACEOF
  31872. if ac_fn_c_try_compile "$LINENO"
  31873. then :
  31874. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31875. printf "%s\n" "yes" >&6; }
  31876. tst_compi_gethostbyname_r="yes"
  31877. tst_nargs_gethostbyname_r="6"
  31878. else $as_nop
  31879. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31880. printf "%s\n" "no" >&6; }
  31881. tst_compi_gethostbyname_r="no"
  31882. fi
  31883. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  31884. fi
  31885. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is compilable" >&5
  31886. printf %s "checking if gethostbyname_r is compilable... " >&6; }
  31887. if test "$tst_compi_gethostbyname_r" = "yes"; then
  31888. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31889. printf "%s\n" "yes" >&6; }
  31890. else
  31891. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31892. printf "%s\n" "no" >&6; }
  31893. fi
  31894. fi
  31895. #
  31896. if test "$tst_compi_gethostbyname_r" = "yes"; then
  31897. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r usage allowed" >&5
  31898. printf %s "checking if gethostbyname_r usage allowed... " >&6; }
  31899. if test "x$curl_disallow_gethostbyname_r" != "xyes"; then
  31900. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31901. printf "%s\n" "yes" >&6; }
  31902. tst_allow_gethostbyname_r="yes"
  31903. else
  31904. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31905. printf "%s\n" "no" >&6; }
  31906. tst_allow_gethostbyname_r="no"
  31907. fi
  31908. fi
  31909. #
  31910. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r might be used" >&5
  31911. printf %s "checking if gethostbyname_r might be used... " >&6; }
  31912. if test "$tst_links_gethostbyname_r" = "yes" &&
  31913. test "$tst_proto_gethostbyname_r" = "yes" &&
  31914. test "$tst_compi_gethostbyname_r" = "yes" &&
  31915. test "$tst_allow_gethostbyname_r" = "yes"; then
  31916. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31917. printf "%s\n" "yes" >&6; }
  31918. printf "%s\n" "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
  31919. #
  31920. if test "$tst_nargs_gethostbyname_r" -eq "3"; then
  31921. printf "%s\n" "#define HAVE_GETHOSTBYNAME_R_3 1" >>confdefs.h
  31922. elif test "$tst_nargs_gethostbyname_r" -eq "5"; then
  31923. printf "%s\n" "#define HAVE_GETHOSTBYNAME_R_5 1" >>confdefs.h
  31924. elif test "$tst_nargs_gethostbyname_r" -eq "6"; then
  31925. printf "%s\n" "#define HAVE_GETHOSTBYNAME_R_6 1" >>confdefs.h
  31926. fi
  31927. #
  31928. curl_cv_func_gethostbyname_r="yes"
  31929. else
  31930. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31931. printf "%s\n" "no" >&6; }
  31932. curl_cv_func_gethostbyname_r="no"
  31933. fi
  31934. curl_preprocess_callconv="\
  31935. /* preprocess start */
  31936. #ifdef HAVE_WINDOWS_H
  31937. # define FUNCALLCONV __stdcall
  31938. #else
  31939. # define FUNCALLCONV
  31940. #endif
  31941. /* preprocess end */"
  31942. #
  31943. tst_links_gethostname="unknown"
  31944. tst_proto_gethostname="unknown"
  31945. tst_compi_gethostname="unknown"
  31946. tst_allow_gethostname="unknown"
  31947. #
  31948. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostname can be linked" >&5
  31949. printf %s "checking if gethostname can be linked... " >&6; }
  31950. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31951. /* end confdefs.h. */
  31952. $curl_includes_winsock2
  31953. $curl_includes_unistd
  31954. $curl_includes_bsdsocket
  31955. int main (void)
  31956. {
  31957. if(0 != gethostname(0, 0))
  31958. return 1;
  31959. ;
  31960. return 0;
  31961. }
  31962. _ACEOF
  31963. if ac_fn_c_try_link "$LINENO"
  31964. then :
  31965. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31966. printf "%s\n" "yes" >&6; }
  31967. tst_links_gethostname="yes"
  31968. else $as_nop
  31969. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31970. printf "%s\n" "no" >&6; }
  31971. tst_links_gethostname="no"
  31972. fi
  31973. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  31974. conftest$ac_exeext conftest.$ac_ext
  31975. #
  31976. if test "$tst_links_gethostname" = "yes"; then
  31977. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostname is prototyped" >&5
  31978. printf %s "checking if gethostname is prototyped... " >&6; }
  31979. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31980. /* end confdefs.h. */
  31981. $curl_includes_winsock2
  31982. $curl_includes_unistd
  31983. $curl_includes_bsdsocket
  31984. _ACEOF
  31985. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  31986. $EGREP "gethostname" >/dev/null 2>&1
  31987. then :
  31988. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31989. printf "%s\n" "yes" >&6; }
  31990. tst_proto_gethostname="yes"
  31991. else $as_nop
  31992. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31993. printf "%s\n" "no" >&6; }
  31994. tst_proto_gethostname="no"
  31995. fi
  31996. rm -rf conftest*
  31997. fi
  31998. #
  31999. if test "$tst_proto_gethostname" = "yes"; then
  32000. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostname is compilable" >&5
  32001. printf %s "checking if gethostname is compilable... " >&6; }
  32002. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32003. /* end confdefs.h. */
  32004. $curl_includes_winsock2
  32005. $curl_includes_unistd
  32006. $curl_includes_bsdsocket
  32007. int main (void)
  32008. {
  32009. if(0 != gethostname(0, 0))
  32010. return 1;
  32011. ;
  32012. return 0;
  32013. }
  32014. _ACEOF
  32015. if ac_fn_c_try_compile "$LINENO"
  32016. then :
  32017. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32018. printf "%s\n" "yes" >&6; }
  32019. tst_compi_gethostname="yes"
  32020. else $as_nop
  32021. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32022. printf "%s\n" "no" >&6; }
  32023. tst_compi_gethostname="no"
  32024. fi
  32025. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  32026. fi
  32027. #
  32028. if test "$tst_compi_gethostname" = "yes"; then
  32029. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostname arg 2 data type" >&5
  32030. printf %s "checking for gethostname arg 2 data type... " >&6; }
  32031. tst_gethostname_type_arg2="unknown"
  32032. for tst_arg1 in 'char *' 'unsigned char *' 'void *'; do
  32033. for tst_arg2 in 'int' 'unsigned int' 'size_t'; do
  32034. if test "$tst_gethostname_type_arg2" = "unknown"; then
  32035. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32036. /* end confdefs.h. */
  32037. $curl_includes_winsock2
  32038. $curl_includes_unistd
  32039. $curl_includes_bsdsocket
  32040. $curl_preprocess_callconv
  32041. extern int FUNCALLCONV gethostname($tst_arg1, $tst_arg2);
  32042. int main (void)
  32043. {
  32044. if(0 != gethostname(0, 0))
  32045. return 1;
  32046. ;
  32047. return 0;
  32048. }
  32049. _ACEOF
  32050. if ac_fn_c_try_compile "$LINENO"
  32051. then :
  32052. tst_gethostname_type_arg2="$tst_arg2"
  32053. fi
  32054. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  32055. fi
  32056. done
  32057. done
  32058. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_gethostname_type_arg2" >&5
  32059. printf "%s\n" "$tst_gethostname_type_arg2" >&6; }
  32060. if test "$tst_gethostname_type_arg2" != "unknown"; then
  32061. printf "%s\n" "#define GETHOSTNAME_TYPE_ARG2 $tst_gethostname_type_arg2" >>confdefs.h
  32062. fi
  32063. fi
  32064. #
  32065. if test "$tst_compi_gethostname" = "yes"; then
  32066. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostname usage allowed" >&5
  32067. printf %s "checking if gethostname usage allowed... " >&6; }
  32068. if test "x$curl_disallow_gethostname" != "xyes"; then
  32069. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32070. printf "%s\n" "yes" >&6; }
  32071. tst_allow_gethostname="yes"
  32072. else
  32073. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32074. printf "%s\n" "no" >&6; }
  32075. tst_allow_gethostname="no"
  32076. fi
  32077. fi
  32078. #
  32079. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostname might be used" >&5
  32080. printf %s "checking if gethostname might be used... " >&6; }
  32081. if test "$tst_links_gethostname" = "yes" &&
  32082. test "$tst_proto_gethostname" = "yes" &&
  32083. test "$tst_compi_gethostname" = "yes" &&
  32084. test "$tst_allow_gethostname" = "yes"; then
  32085. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32086. printf "%s\n" "yes" >&6; }
  32087. printf "%s\n" "#define HAVE_GETHOSTNAME 1" >>confdefs.h
  32088. curl_cv_func_gethostname="yes"
  32089. else
  32090. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32091. printf "%s\n" "no" >&6; }
  32092. curl_cv_func_gethostname="no"
  32093. fi
  32094. #
  32095. tst_links_getpeername="unknown"
  32096. tst_proto_getpeername="unknown"
  32097. tst_compi_getpeername="unknown"
  32098. tst_allow_getpeername="unknown"
  32099. #
  32100. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getpeername can be linked" >&5
  32101. printf %s "checking if getpeername can be linked... " >&6; }
  32102. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32103. /* end confdefs.h. */
  32104. $curl_includes_winsock2
  32105. $curl_includes_bsdsocket
  32106. $curl_includes_sys_socket
  32107. int main (void)
  32108. {
  32109. if(0 != getpeername(0, (void *)0, (void *)0))
  32110. return 1;
  32111. ;
  32112. return 0;
  32113. }
  32114. _ACEOF
  32115. if ac_fn_c_try_link "$LINENO"
  32116. then :
  32117. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32118. printf "%s\n" "yes" >&6; }
  32119. tst_links_getpeername="yes"
  32120. else $as_nop
  32121. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32122. printf "%s\n" "no" >&6; }
  32123. tst_links_getpeername="no"
  32124. fi
  32125. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  32126. conftest$ac_exeext conftest.$ac_ext
  32127. #
  32128. if test "$tst_links_getpeername" = "yes"; then
  32129. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getpeername is prototyped" >&5
  32130. printf %s "checking if getpeername is prototyped... " >&6; }
  32131. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32132. /* end confdefs.h. */
  32133. $curl_includes_winsock2
  32134. $curl_includes_bsdsocket
  32135. $curl_includes_sys_socket
  32136. _ACEOF
  32137. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  32138. $EGREP "getpeername" >/dev/null 2>&1
  32139. then :
  32140. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32141. printf "%s\n" "yes" >&6; }
  32142. tst_proto_getpeername="yes"
  32143. else $as_nop
  32144. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32145. printf "%s\n" "no" >&6; }
  32146. tst_proto_getpeername="no"
  32147. fi
  32148. rm -rf conftest*
  32149. fi
  32150. #
  32151. if test "$tst_proto_getpeername" = "yes"; then
  32152. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getpeername is compilable" >&5
  32153. printf %s "checking if getpeername is compilable... " >&6; }
  32154. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32155. /* end confdefs.h. */
  32156. $curl_includes_winsock2
  32157. $curl_includes_bsdsocket
  32158. $curl_includes_sys_socket
  32159. int main (void)
  32160. {
  32161. if(0 != getpeername(0, (void *)0, (void *)0))
  32162. return 1;
  32163. ;
  32164. return 0;
  32165. }
  32166. _ACEOF
  32167. if ac_fn_c_try_compile "$LINENO"
  32168. then :
  32169. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32170. printf "%s\n" "yes" >&6; }
  32171. tst_compi_getpeername="yes"
  32172. else $as_nop
  32173. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32174. printf "%s\n" "no" >&6; }
  32175. tst_compi_getpeername="no"
  32176. fi
  32177. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  32178. fi
  32179. #
  32180. if test "$tst_compi_getpeername" = "yes"; then
  32181. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getpeername usage allowed" >&5
  32182. printf %s "checking if getpeername usage allowed... " >&6; }
  32183. if test "x$curl_disallow_getpeername" != "xyes"; then
  32184. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32185. printf "%s\n" "yes" >&6; }
  32186. tst_allow_getpeername="yes"
  32187. else
  32188. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32189. printf "%s\n" "no" >&6; }
  32190. tst_allow_getpeername="no"
  32191. fi
  32192. fi
  32193. #
  32194. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getpeername might be used" >&5
  32195. printf %s "checking if getpeername might be used... " >&6; }
  32196. if test "$tst_links_getpeername" = "yes" &&
  32197. test "$tst_proto_getpeername" = "yes" &&
  32198. test "$tst_compi_getpeername" = "yes" &&
  32199. test "$tst_allow_getpeername" = "yes"; then
  32200. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32201. printf "%s\n" "yes" >&6; }
  32202. printf "%s\n" "#define HAVE_GETPEERNAME 1" >>confdefs.h
  32203. curl_cv_func_getpeername="yes"
  32204. else
  32205. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32206. printf "%s\n" "no" >&6; }
  32207. curl_cv_func_getpeername="no"
  32208. fi
  32209. #
  32210. tst_links_getsockname="unknown"
  32211. tst_proto_getsockname="unknown"
  32212. tst_compi_getsockname="unknown"
  32213. tst_allow_getsockname="unknown"
  32214. #
  32215. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getsockname can be linked" >&5
  32216. printf %s "checking if getsockname can be linked... " >&6; }
  32217. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32218. /* end confdefs.h. */
  32219. $curl_includes_winsock2
  32220. $curl_includes_bsdsocket
  32221. $curl_includes_sys_socket
  32222. int main (void)
  32223. {
  32224. if(0 != getsockname(0, (void *)0, (void *)0))
  32225. return 1;
  32226. ;
  32227. return 0;
  32228. }
  32229. _ACEOF
  32230. if ac_fn_c_try_link "$LINENO"
  32231. then :
  32232. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32233. printf "%s\n" "yes" >&6; }
  32234. tst_links_getsockname="yes"
  32235. else $as_nop
  32236. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32237. printf "%s\n" "no" >&6; }
  32238. tst_links_getsockname="no"
  32239. fi
  32240. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  32241. conftest$ac_exeext conftest.$ac_ext
  32242. #
  32243. if test "$tst_links_getsockname" = "yes"; then
  32244. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getsockname is prototyped" >&5
  32245. printf %s "checking if getsockname is prototyped... " >&6; }
  32246. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32247. /* end confdefs.h. */
  32248. $curl_includes_winsock2
  32249. $curl_includes_bsdsocket
  32250. $curl_includes_sys_socket
  32251. _ACEOF
  32252. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  32253. $EGREP "getsockname" >/dev/null 2>&1
  32254. then :
  32255. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32256. printf "%s\n" "yes" >&6; }
  32257. tst_proto_getsockname="yes"
  32258. else $as_nop
  32259. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32260. printf "%s\n" "no" >&6; }
  32261. tst_proto_getsockname="no"
  32262. fi
  32263. rm -rf conftest*
  32264. fi
  32265. #
  32266. if test "$tst_proto_getsockname" = "yes"; then
  32267. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getsockname is compilable" >&5
  32268. printf %s "checking if getsockname is compilable... " >&6; }
  32269. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32270. /* end confdefs.h. */
  32271. $curl_includes_winsock2
  32272. $curl_includes_bsdsocket
  32273. $curl_includes_sys_socket
  32274. int main (void)
  32275. {
  32276. if(0 != getsockname(0, (void *)0, (void *)0))
  32277. return 1;
  32278. ;
  32279. return 0;
  32280. }
  32281. _ACEOF
  32282. if ac_fn_c_try_compile "$LINENO"
  32283. then :
  32284. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32285. printf "%s\n" "yes" >&6; }
  32286. tst_compi_getsockname="yes"
  32287. else $as_nop
  32288. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32289. printf "%s\n" "no" >&6; }
  32290. tst_compi_getsockname="no"
  32291. fi
  32292. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  32293. fi
  32294. #
  32295. if test "$tst_compi_getsockname" = "yes"; then
  32296. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getsockname usage allowed" >&5
  32297. printf %s "checking if getsockname usage allowed... " >&6; }
  32298. if test "x$curl_disallow_getsockname" != "xyes"; then
  32299. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32300. printf "%s\n" "yes" >&6; }
  32301. tst_allow_getsockname="yes"
  32302. else
  32303. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32304. printf "%s\n" "no" >&6; }
  32305. tst_allow_getsockname="no"
  32306. fi
  32307. fi
  32308. #
  32309. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getsockname might be used" >&5
  32310. printf %s "checking if getsockname might be used... " >&6; }
  32311. if test "$tst_links_getsockname" = "yes" &&
  32312. test "$tst_proto_getsockname" = "yes" &&
  32313. test "$tst_compi_getsockname" = "yes" &&
  32314. test "$tst_allow_getsockname" = "yes"; then
  32315. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32316. printf "%s\n" "yes" >&6; }
  32317. printf "%s\n" "#define HAVE_GETSOCKNAME 1" >>confdefs.h
  32318. curl_cv_func_getsockname="yes"
  32319. else
  32320. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32321. printf "%s\n" "no" >&6; }
  32322. curl_cv_func_getsockname="no"
  32323. fi
  32324. curl_includes_netif="\
  32325. /* includes start */
  32326. #ifdef HAVE_NET_IF_H
  32327. # include <net/if.h>
  32328. #endif
  32329. /* includes end */"
  32330. ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$curl_includes_netif
  32331. "
  32332. if test "x$ac_cv_header_net_if_h" = xyes
  32333. then :
  32334. printf "%s\n" "#define HAVE_NET_IF_H 1" >>confdefs.h
  32335. fi
  32336. #
  32337. tst_links_if_nametoindex="unknown"
  32338. tst_proto_if_nametoindex="unknown"
  32339. tst_compi_if_nametoindex="unknown"
  32340. tst_allow_if_nametoindex="unknown"
  32341. #
  32342. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if if_nametoindex can be linked" >&5
  32343. printf %s "checking if if_nametoindex can be linked... " >&6; }
  32344. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32345. /* end confdefs.h. */
  32346. $curl_includes_winsock2
  32347. $curl_includes_bsdsocket
  32348. #include <net/if.h>
  32349. int main (void)
  32350. {
  32351. if(0 != if_nametoindex(""))
  32352. return 1;
  32353. ;
  32354. return 0;
  32355. }
  32356. _ACEOF
  32357. if ac_fn_c_try_link "$LINENO"
  32358. then :
  32359. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32360. printf "%s\n" "yes" >&6; }
  32361. tst_links_if_nametoindex="yes"
  32362. else $as_nop
  32363. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32364. printf "%s\n" "no" >&6; }
  32365. tst_links_if_nametoindex="no"
  32366. fi
  32367. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  32368. conftest$ac_exeext conftest.$ac_ext
  32369. #
  32370. if test "$tst_links_if_nametoindex" = "yes"; then
  32371. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if if_nametoindex is prototyped" >&5
  32372. printf %s "checking if if_nametoindex is prototyped... " >&6; }
  32373. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32374. /* end confdefs.h. */
  32375. $curl_includes_winsock2
  32376. $curl_includes_netif
  32377. _ACEOF
  32378. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  32379. $EGREP "if_nametoindex" >/dev/null 2>&1
  32380. then :
  32381. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32382. printf "%s\n" "yes" >&6; }
  32383. tst_proto_if_nametoindex="yes"
  32384. else $as_nop
  32385. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32386. printf "%s\n" "no" >&6; }
  32387. tst_proto_if_nametoindex="no"
  32388. fi
  32389. rm -rf conftest*
  32390. fi
  32391. #
  32392. if test "$tst_proto_if_nametoindex" = "yes"; then
  32393. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if if_nametoindex is compilable" >&5
  32394. printf %s "checking if if_nametoindex is compilable... " >&6; }
  32395. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32396. /* end confdefs.h. */
  32397. $curl_includes_winsock2
  32398. $curl_includes_netif
  32399. int main (void)
  32400. {
  32401. if(0 != if_nametoindex(""))
  32402. return 1;
  32403. ;
  32404. return 0;
  32405. }
  32406. _ACEOF
  32407. if ac_fn_c_try_compile "$LINENO"
  32408. then :
  32409. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32410. printf "%s\n" "yes" >&6; }
  32411. tst_compi_if_nametoindex="yes"
  32412. else $as_nop
  32413. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32414. printf "%s\n" "no" >&6; }
  32415. tst_compi_if_nametoindex="no"
  32416. fi
  32417. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  32418. fi
  32419. #
  32420. if test "$tst_compi_if_nametoindex" = "yes"; then
  32421. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if if_nametoindex usage allowed" >&5
  32422. printf %s "checking if if_nametoindex usage allowed... " >&6; }
  32423. if test "x$curl_disallow_if_nametoindex" != "xyes"; then
  32424. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32425. printf "%s\n" "yes" >&6; }
  32426. tst_allow_if_nametoindex="yes"
  32427. else
  32428. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32429. printf "%s\n" "no" >&6; }
  32430. tst_allow_if_nametoindex="no"
  32431. fi
  32432. fi
  32433. #
  32434. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if if_nametoindex might be used" >&5
  32435. printf %s "checking if if_nametoindex might be used... " >&6; }
  32436. if test "$tst_links_if_nametoindex" = "yes" &&
  32437. test "$tst_proto_if_nametoindex" = "yes" &&
  32438. test "$tst_compi_if_nametoindex" = "yes" &&
  32439. test "$tst_allow_if_nametoindex" = "yes"; then
  32440. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32441. printf "%s\n" "yes" >&6; }
  32442. printf "%s\n" "#define HAVE_IF_NAMETOINDEX 1" >>confdefs.h
  32443. curl_cv_func_if_nametoindex="yes"
  32444. else
  32445. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32446. printf "%s\n" "no" >&6; }
  32447. curl_cv_func_if_nametoindex="no"
  32448. fi
  32449. curl_includes_ifaddrs="\
  32450. /* includes start */
  32451. #ifdef HAVE_SYS_TYPES_H
  32452. # include <sys/types.h>
  32453. #endif
  32454. #ifdef HAVE_SYS_SOCKET_H
  32455. # include <sys/socket.h>
  32456. #endif
  32457. #ifdef HAVE_NETINET_IN_H
  32458. # include <netinet/in.h>
  32459. #endif
  32460. #ifdef HAVE_IFADDRS_H
  32461. # include <ifaddrs.h>
  32462. #endif
  32463. /* includes end */"
  32464. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_ifaddrs
  32465. "
  32466. if test "x$ac_cv_header_sys_types_h" = xyes
  32467. then :
  32468. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  32469. fi
  32470. ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$curl_includes_ifaddrs
  32471. "
  32472. if test "x$ac_cv_header_sys_socket_h" = xyes
  32473. then :
  32474. printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
  32475. fi
  32476. ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$curl_includes_ifaddrs
  32477. "
  32478. if test "x$ac_cv_header_netinet_in_h" = xyes
  32479. then :
  32480. printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
  32481. fi
  32482. ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$curl_includes_ifaddrs
  32483. "
  32484. if test "x$ac_cv_header_ifaddrs_h" = xyes
  32485. then :
  32486. printf "%s\n" "#define HAVE_IFADDRS_H 1" >>confdefs.h
  32487. fi
  32488. #
  32489. tst_links_getifaddrs="unknown"
  32490. tst_proto_getifaddrs="unknown"
  32491. tst_compi_getifaddrs="unknown"
  32492. tst_works_getifaddrs="unknown"
  32493. tst_allow_getifaddrs="unknown"
  32494. #
  32495. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getifaddrs can be linked" >&5
  32496. printf %s "checking if getifaddrs can be linked... " >&6; }
  32497. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32498. /* end confdefs.h. */
  32499. #define getifaddrs innocuous_getifaddrs
  32500. #ifdef __STDC__
  32501. # include <limits.h>
  32502. #else
  32503. # include <assert.h>
  32504. #endif
  32505. #undef getifaddrs
  32506. #ifdef __cplusplus
  32507. extern "C"
  32508. #endif
  32509. char getifaddrs ();
  32510. #if defined __stub_getifaddrs || defined __stub___getifaddrs
  32511. choke me
  32512. #endif
  32513. int main (void)
  32514. {
  32515. return getifaddrs ();
  32516. ;
  32517. return 0;
  32518. }
  32519. _ACEOF
  32520. if ac_fn_c_try_link "$LINENO"
  32521. then :
  32522. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32523. printf "%s\n" "yes" >&6; }
  32524. tst_links_getifaddrs="yes"
  32525. else $as_nop
  32526. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32527. printf "%s\n" "no" >&6; }
  32528. tst_links_getifaddrs="no"
  32529. fi
  32530. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  32531. conftest$ac_exeext conftest.$ac_ext
  32532. #
  32533. if test "$tst_links_getifaddrs" = "yes"; then
  32534. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is prototyped" >&5
  32535. printf %s "checking if getifaddrs is prototyped... " >&6; }
  32536. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32537. /* end confdefs.h. */
  32538. $curl_includes_ifaddrs
  32539. _ACEOF
  32540. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  32541. $EGREP "getifaddrs" >/dev/null 2>&1
  32542. then :
  32543. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32544. printf "%s\n" "yes" >&6; }
  32545. tst_proto_getifaddrs="yes"
  32546. else $as_nop
  32547. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32548. printf "%s\n" "no" >&6; }
  32549. tst_proto_getifaddrs="no"
  32550. fi
  32551. rm -rf conftest*
  32552. fi
  32553. #
  32554. if test "$tst_proto_getifaddrs" = "yes"; then
  32555. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is compilable" >&5
  32556. printf %s "checking if getifaddrs is compilable... " >&6; }
  32557. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32558. /* end confdefs.h. */
  32559. $curl_includes_ifaddrs
  32560. int main (void)
  32561. {
  32562. if(0 != getifaddrs(0))
  32563. return 1;
  32564. ;
  32565. return 0;
  32566. }
  32567. _ACEOF
  32568. if ac_fn_c_try_compile "$LINENO"
  32569. then :
  32570. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32571. printf "%s\n" "yes" >&6; }
  32572. tst_compi_getifaddrs="yes"
  32573. else $as_nop
  32574. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32575. printf "%s\n" "no" >&6; }
  32576. tst_compi_getifaddrs="no"
  32577. fi
  32578. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  32579. fi
  32580. #
  32581. if test "x$cross_compiling" != "xyes" &&
  32582. test "$tst_compi_getifaddrs" = "yes"; then
  32583. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getifaddrs seems to work" >&5
  32584. printf %s "checking if getifaddrs seems to work... " >&6; }
  32585. case $host_os in
  32586. darwin*)
  32587. if test "$cross_compiling" = yes
  32588. then :
  32589. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  32590. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  32591. as_fn_error $? "cannot run test program while cross compiling
  32592. See \`config.log' for more details" "$LINENO" 5; }
  32593. else $as_nop
  32594. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32595. /* end confdefs.h. */
  32596. $curl_includes_stdlib
  32597. $curl_includes_ifaddrs
  32598. int main (void)
  32599. {
  32600. struct ifaddrs *ifa = 0;
  32601. int error;
  32602. error = getifaddrs(&ifa);
  32603. if(error || !ifa)
  32604. exit(1); /* fail */
  32605. else
  32606. exit(0);
  32607. ;
  32608. return 0;
  32609. }
  32610. _ACEOF
  32611. if ac_fn_c_try_run "$LINENO"
  32612. then :
  32613. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32614. printf "%s\n" "yes" >&6; }
  32615. tst_works_getifaddrs="yes"
  32616. else $as_nop
  32617. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32618. printf "%s\n" "no" >&6; }
  32619. tst_works_getifaddrs="no"
  32620. fi
  32621. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  32622. conftest.$ac_objext conftest.beam conftest.$ac_ext
  32623. fi
  32624. ;;
  32625. *)
  32626. old=$LD_LIBRARY_PATH
  32627. LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
  32628. export LD_LIBRARY_PATH
  32629. if test "$cross_compiling" = yes
  32630. then :
  32631. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  32632. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  32633. as_fn_error $? "cannot run test program while cross compiling
  32634. See \`config.log' for more details" "$LINENO" 5; }
  32635. else $as_nop
  32636. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32637. /* end confdefs.h. */
  32638. $curl_includes_stdlib
  32639. $curl_includes_ifaddrs
  32640. int main (void)
  32641. {
  32642. struct ifaddrs *ifa = 0;
  32643. int error;
  32644. error = getifaddrs(&ifa);
  32645. if(error || !ifa)
  32646. exit(1); /* fail */
  32647. else
  32648. exit(0);
  32649. ;
  32650. return 0;
  32651. }
  32652. _ACEOF
  32653. if ac_fn_c_try_run "$LINENO"
  32654. then :
  32655. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32656. printf "%s\n" "yes" >&6; }
  32657. tst_works_getifaddrs="yes"
  32658. else $as_nop
  32659. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32660. printf "%s\n" "no" >&6; }
  32661. tst_works_getifaddrs="no"
  32662. fi
  32663. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  32664. conftest.$ac_objext conftest.beam conftest.$ac_ext
  32665. fi
  32666. LD_LIBRARY_PATH=$old # restore
  32667. ;;
  32668. esac
  32669. fi
  32670. #
  32671. if test "$tst_compi_getifaddrs" = "yes" &&
  32672. test "$tst_works_getifaddrs" != "no"; then
  32673. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getifaddrs usage allowed" >&5
  32674. printf %s "checking if getifaddrs usage allowed... " >&6; }
  32675. if test "x$curl_disallow_getifaddrs" != "xyes"; then
  32676. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32677. printf "%s\n" "yes" >&6; }
  32678. tst_allow_getifaddrs="yes"
  32679. else
  32680. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32681. printf "%s\n" "no" >&6; }
  32682. tst_allow_getifaddrs="no"
  32683. fi
  32684. fi
  32685. #
  32686. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getifaddrs might be used" >&5
  32687. printf %s "checking if getifaddrs might be used... " >&6; }
  32688. if test "$tst_links_getifaddrs" = "yes" &&
  32689. test "$tst_proto_getifaddrs" = "yes" &&
  32690. test "$tst_compi_getifaddrs" = "yes" &&
  32691. test "$tst_allow_getifaddrs" = "yes" &&
  32692. test "$tst_works_getifaddrs" != "no"; then
  32693. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32694. printf "%s\n" "yes" >&6; }
  32695. printf "%s\n" "#define HAVE_GETIFADDRS 1" >>confdefs.h
  32696. curl_cv_func_getifaddrs="yes"
  32697. else
  32698. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32699. printf "%s\n" "no" >&6; }
  32700. curl_cv_func_getifaddrs="no"
  32701. fi
  32702. curl_includes_time="\
  32703. /* includes start */
  32704. #ifdef HAVE_SYS_TYPES_H
  32705. # include <sys/types.h>
  32706. #endif
  32707. #ifdef HAVE_SYS_TIME_H
  32708. # include <sys/time.h>
  32709. #endif
  32710. #include <time.h>
  32711. /* includes end */"
  32712. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_time
  32713. "
  32714. if test "x$ac_cv_header_sys_types_h" = xyes
  32715. then :
  32716. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  32717. fi
  32718. ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$curl_includes_time
  32719. "
  32720. if test "x$ac_cv_header_sys_time_h" = xyes
  32721. then :
  32722. printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
  32723. fi
  32724. #
  32725. tst_links_gmtime_r="unknown"
  32726. tst_proto_gmtime_r="unknown"
  32727. tst_compi_gmtime_r="unknown"
  32728. tst_works_gmtime_r="unknown"
  32729. tst_allow_gmtime_r="unknown"
  32730. #
  32731. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmtime_r can be linked" >&5
  32732. printf %s "checking if gmtime_r can be linked... " >&6; }
  32733. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32734. /* end confdefs.h. */
  32735. #define gmtime_r innocuous_gmtime_r
  32736. #ifdef __STDC__
  32737. # include <limits.h>
  32738. #else
  32739. # include <assert.h>
  32740. #endif
  32741. #undef gmtime_r
  32742. #ifdef __cplusplus
  32743. extern "C"
  32744. #endif
  32745. char gmtime_r ();
  32746. #if defined __stub_gmtime_r || defined __stub___gmtime_r
  32747. choke me
  32748. #endif
  32749. int main (void)
  32750. {
  32751. return gmtime_r ();
  32752. ;
  32753. return 0;
  32754. }
  32755. _ACEOF
  32756. if ac_fn_c_try_link "$LINENO"
  32757. then :
  32758. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32759. printf "%s\n" "yes" >&6; }
  32760. tst_links_gmtime_r="yes"
  32761. else $as_nop
  32762. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32763. printf "%s\n" "no" >&6; }
  32764. tst_links_gmtime_r="no"
  32765. fi
  32766. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  32767. conftest$ac_exeext conftest.$ac_ext
  32768. #
  32769. if test "$tst_links_gmtime_r" = "yes"; then
  32770. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is prototyped" >&5
  32771. printf %s "checking if gmtime_r is prototyped... " >&6; }
  32772. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32773. /* end confdefs.h. */
  32774. $curl_includes_time
  32775. _ACEOF
  32776. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  32777. $EGREP "gmtime_r" >/dev/null 2>&1
  32778. then :
  32779. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32780. printf "%s\n" "yes" >&6; }
  32781. tst_proto_gmtime_r="yes"
  32782. else $as_nop
  32783. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32784. printf "%s\n" "no" >&6; }
  32785. tst_proto_gmtime_r="no"
  32786. fi
  32787. rm -rf conftest*
  32788. fi
  32789. #
  32790. if test "$tst_proto_gmtime_r" = "yes"; then
  32791. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is compilable" >&5
  32792. printf %s "checking if gmtime_r is compilable... " >&6; }
  32793. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32794. /* end confdefs.h. */
  32795. $curl_includes_time
  32796. int main (void)
  32797. {
  32798. if(0 != gmtime_r(0, 0))
  32799. return 1;
  32800. ;
  32801. return 0;
  32802. }
  32803. _ACEOF
  32804. if ac_fn_c_try_compile "$LINENO"
  32805. then :
  32806. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32807. printf "%s\n" "yes" >&6; }
  32808. tst_compi_gmtime_r="yes"
  32809. else $as_nop
  32810. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32811. printf "%s\n" "no" >&6; }
  32812. tst_compi_gmtime_r="no"
  32813. fi
  32814. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  32815. fi
  32816. #
  32817. if test "x$cross_compiling" != "xyes" &&
  32818. test "$tst_compi_gmtime_r" = "yes"; then
  32819. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmtime_r seems to work" >&5
  32820. printf %s "checking if gmtime_r seems to work... " >&6; }
  32821. case $host_os in
  32822. darwin*)
  32823. if test "$cross_compiling" = yes
  32824. then :
  32825. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  32826. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  32827. as_fn_error $? "cannot run test program while cross compiling
  32828. See \`config.log' for more details" "$LINENO" 5; }
  32829. else $as_nop
  32830. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32831. /* end confdefs.h. */
  32832. $curl_includes_stdlib
  32833. $curl_includes_time
  32834. int main (void)
  32835. {
  32836. time_t local = 1170352587;
  32837. struct tm *gmt = 0;
  32838. struct tm result;
  32839. gmt = gmtime_r(&local, &result);
  32840. if(gmt)
  32841. exit(0);
  32842. else
  32843. exit(1);
  32844. ;
  32845. return 0;
  32846. }
  32847. _ACEOF
  32848. if ac_fn_c_try_run "$LINENO"
  32849. then :
  32850. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32851. printf "%s\n" "yes" >&6; }
  32852. tst_works_gmtime_r="yes"
  32853. else $as_nop
  32854. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32855. printf "%s\n" "no" >&6; }
  32856. tst_works_gmtime_r="no"
  32857. fi
  32858. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  32859. conftest.$ac_objext conftest.beam conftest.$ac_ext
  32860. fi
  32861. ;;
  32862. *)
  32863. old=$LD_LIBRARY_PATH
  32864. LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
  32865. export LD_LIBRARY_PATH
  32866. if test "$cross_compiling" = yes
  32867. then :
  32868. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  32869. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  32870. as_fn_error $? "cannot run test program while cross compiling
  32871. See \`config.log' for more details" "$LINENO" 5; }
  32872. else $as_nop
  32873. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32874. /* end confdefs.h. */
  32875. $curl_includes_stdlib
  32876. $curl_includes_time
  32877. int main (void)
  32878. {
  32879. time_t local = 1170352587;
  32880. struct tm *gmt = 0;
  32881. struct tm result;
  32882. gmt = gmtime_r(&local, &result);
  32883. if(gmt)
  32884. exit(0);
  32885. else
  32886. exit(1);
  32887. ;
  32888. return 0;
  32889. }
  32890. _ACEOF
  32891. if ac_fn_c_try_run "$LINENO"
  32892. then :
  32893. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32894. printf "%s\n" "yes" >&6; }
  32895. tst_works_gmtime_r="yes"
  32896. else $as_nop
  32897. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32898. printf "%s\n" "no" >&6; }
  32899. tst_works_gmtime_r="no"
  32900. fi
  32901. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  32902. conftest.$ac_objext conftest.beam conftest.$ac_ext
  32903. fi
  32904. LD_LIBRARY_PATH=$old # restore
  32905. ;;
  32906. esac
  32907. fi
  32908. #
  32909. if test "$tst_compi_gmtime_r" = "yes" &&
  32910. test "$tst_works_gmtime_r" != "no"; then
  32911. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmtime_r usage allowed" >&5
  32912. printf %s "checking if gmtime_r usage allowed... " >&6; }
  32913. if test "x$curl_disallow_gmtime_r" != "xyes"; then
  32914. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32915. printf "%s\n" "yes" >&6; }
  32916. tst_allow_gmtime_r="yes"
  32917. else
  32918. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32919. printf "%s\n" "no" >&6; }
  32920. tst_allow_gmtime_r="no"
  32921. fi
  32922. fi
  32923. #
  32924. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmtime_r might be used" >&5
  32925. printf %s "checking if gmtime_r might be used... " >&6; }
  32926. if test "$tst_links_gmtime_r" = "yes" &&
  32927. test "$tst_proto_gmtime_r" = "yes" &&
  32928. test "$tst_compi_gmtime_r" = "yes" &&
  32929. test "$tst_allow_gmtime_r" = "yes" &&
  32930. test "$tst_works_gmtime_r" != "no"; then
  32931. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32932. printf "%s\n" "yes" >&6; }
  32933. printf "%s\n" "#define HAVE_GMTIME_R 1" >>confdefs.h
  32934. curl_cv_func_gmtime_r="yes"
  32935. else
  32936. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32937. printf "%s\n" "no" >&6; }
  32938. curl_cv_func_gmtime_r="no"
  32939. fi
  32940. curl_includes_arpa_inet="\
  32941. /* includes start */
  32942. #ifdef HAVE_SYS_TYPES_H
  32943. # include <sys/types.h>
  32944. #endif
  32945. #ifdef HAVE_SYS_SOCKET_H
  32946. # include <sys/socket.h>
  32947. #endif
  32948. #ifdef HAVE_NETINET_IN_H
  32949. # include <netinet/in.h>
  32950. #endif
  32951. #ifdef HAVE_ARPA_INET_H
  32952. # include <arpa/inet.h>
  32953. #endif
  32954. #ifdef HAVE_WINSOCK2_H
  32955. #include <winsock2.h>
  32956. #include <ws2tcpip.h>
  32957. #endif
  32958. /* includes end */"
  32959. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_arpa_inet
  32960. "
  32961. if test "x$ac_cv_header_sys_types_h" = xyes
  32962. then :
  32963. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  32964. fi
  32965. ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$curl_includes_arpa_inet
  32966. "
  32967. if test "x$ac_cv_header_sys_socket_h" = xyes
  32968. then :
  32969. printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
  32970. fi
  32971. ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$curl_includes_arpa_inet
  32972. "
  32973. if test "x$ac_cv_header_netinet_in_h" = xyes
  32974. then :
  32975. printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
  32976. fi
  32977. ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$curl_includes_arpa_inet
  32978. "
  32979. if test "x$ac_cv_header_arpa_inet_h" = xyes
  32980. then :
  32981. printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h
  32982. fi
  32983. #
  32984. tst_links_inet_ntop="unknown"
  32985. tst_proto_inet_ntop="unknown"
  32986. tst_compi_inet_ntop="unknown"
  32987. tst_works_inet_ntop="unknown"
  32988. tst_allow_inet_ntop="unknown"
  32989. #
  32990. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop can be linked" >&5
  32991. printf %s "checking if inet_ntop can be linked... " >&6; }
  32992. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32993. /* end confdefs.h. */
  32994. #define inet_ntop innocuous_inet_ntop
  32995. #ifdef __STDC__
  32996. # include <limits.h>
  32997. #else
  32998. # include <assert.h>
  32999. #endif
  33000. #undef inet_ntop
  33001. #ifdef __cplusplus
  33002. extern "C"
  33003. #endif
  33004. char inet_ntop ();
  33005. #if defined __stub_inet_ntop || defined __stub___inet_ntop
  33006. choke me
  33007. #endif
  33008. int main (void)
  33009. {
  33010. return inet_ntop ();
  33011. ;
  33012. return 0;
  33013. }
  33014. _ACEOF
  33015. if ac_fn_c_try_link "$LINENO"
  33016. then :
  33017. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  33018. printf "%s\n" "yes" >&6; }
  33019. tst_links_inet_ntop="yes"
  33020. else $as_nop
  33021. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  33022. printf "%s\n" "no" >&6; }
  33023. tst_links_inet_ntop="no"
  33024. fi
  33025. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  33026. conftest$ac_exeext conftest.$ac_ext
  33027. #
  33028. if test "$tst_links_inet_ntop" = "yes"; then
  33029. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is prototyped" >&5
  33030. printf %s "checking if inet_ntop is prototyped... " >&6; }
  33031. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  33032. /* end confdefs.h. */
  33033. $curl_includes_arpa_inet
  33034. _ACEOF
  33035. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  33036. $EGREP "inet_ntop" >/dev/null 2>&1
  33037. then :
  33038. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  33039. printf "%s\n" "yes" >&6; }
  33040. tst_proto_inet_ntop="yes"
  33041. else $as_nop
  33042. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  33043. printf "%s\n" "no" >&6; }
  33044. tst_proto_inet_ntop="no"
  33045. fi
  33046. rm -rf conftest*
  33047. fi
  33048. #
  33049. if test "$tst_proto_inet_ntop" = "yes"; then
  33050. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is compilable" >&5
  33051. printf %s "checking if inet_ntop is compilable... " >&6; }
  33052. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  33053. /* end confdefs.h. */
  33054. $curl_includes_arpa_inet
  33055. int main (void)
  33056. {
  33057. if(0 != inet_ntop(0, 0, 0, 0))
  33058. return 1;
  33059. ;
  33060. return 0;
  33061. }
  33062. _ACEOF
  33063. if ac_fn_c_try_compile "$LINENO"
  33064. then :
  33065. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  33066. printf "%s\n" "yes" >&6; }
  33067. tst_compi_inet_ntop="yes"
  33068. else $as_nop
  33069. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  33070. printf "%s\n" "no" >&6; }
  33071. tst_compi_inet_ntop="no"
  33072. fi
  33073. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  33074. fi
  33075. #
  33076. if test "x$cross_compiling" != "xyes" &&
  33077. test "$tst_compi_inet_ntop" = "yes"; then
  33078. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop seems to work" >&5
  33079. printf %s "checking if inet_ntop seems to work... " >&6; }
  33080. case $host_os in
  33081. darwin*)
  33082. if test "$cross_compiling" = yes
  33083. then :
  33084. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  33085. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  33086. as_fn_error $? "cannot run test program while cross compiling
  33087. See \`config.log' for more details" "$LINENO" 5; }
  33088. else $as_nop
  33089. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  33090. /* end confdefs.h. */
  33091. $curl_includes_stdlib
  33092. $curl_includes_arpa_inet
  33093. $curl_includes_string
  33094. int main (void)
  33095. {
  33096. char ipv6res[sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255")];
  33097. char ipv4res[sizeof "255.255.255.255"];
  33098. unsigned char ipv6a[26];
  33099. unsigned char ipv4a[5];
  33100. char *ipv6ptr = 0;
  33101. char *ipv4ptr = 0;
  33102. /* - */
  33103. ipv4res[0] = '\0';
  33104. ipv4a[0] = 0xc0;
  33105. ipv4a[1] = 0xa8;
  33106. ipv4a[2] = 0x64;
  33107. ipv4a[3] = 0x01;
  33108. ipv4a[4] = 0x01;
  33109. /* - */
  33110. ipv4ptr = inet_ntop(AF_INET, ipv4a, ipv4res, sizeof(ipv4res));
  33111. if(!ipv4ptr)
  33112. exit(1); /* fail */
  33113. if(ipv4ptr != ipv4res)
  33114. exit(1); /* fail */
  33115. if(!ipv4ptr[0])
  33116. exit(1); /* fail */
  33117. if(memcmp(ipv4res, "192.168.100.1", 13) != 0)
  33118. exit(1); /* fail */
  33119. /* - */
  33120. ipv6res[0] = '\0';
  33121. memset(ipv6a, 0, sizeof(ipv6a));
  33122. ipv6a[0] = 0xfe;
  33123. ipv6a[1] = 0x80;
  33124. ipv6a[8] = 0x02;
  33125. ipv6a[9] = 0x14;
  33126. ipv6a[10] = 0x4f;
  33127. ipv6a[11] = 0xff;
  33128. ipv6a[12] = 0xfe;
  33129. ipv6a[13] = 0x0b;
  33130. ipv6a[14] = 0x76;
  33131. ipv6a[15] = 0xc8;
  33132. ipv6a[25] = 0x01;
  33133. /* - */
  33134. ipv6ptr = inet_ntop(AF_INET6, ipv6a, ipv6res, sizeof(ipv6res));
  33135. if(!ipv6ptr)
  33136. exit(1); /* fail */
  33137. if(ipv6ptr != ipv6res)
  33138. exit(1); /* fail */
  33139. if(!ipv6ptr[0])
  33140. exit(1); /* fail */
  33141. if(memcmp(ipv6res, "fe80::214:4fff:fe0b:76c8", 24) != 0)
  33142. exit(1); /* fail */
  33143. /* - */
  33144. exit(0);
  33145. ;
  33146. return 0;
  33147. }
  33148. _ACEOF
  33149. if ac_fn_c_try_run "$LINENO"
  33150. then :
  33151. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  33152. printf "%s\n" "yes" >&6; }
  33153. tst_works_inet_ntop="yes"
  33154. else $as_nop
  33155. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  33156. printf "%s\n" "no" >&6; }
  33157. tst_works_inet_ntop="no"
  33158. fi
  33159. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  33160. conftest.$ac_objext conftest.beam conftest.$ac_ext
  33161. fi
  33162. ;;
  33163. *)
  33164. old=$LD_LIBRARY_PATH
  33165. LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
  33166. export LD_LIBRARY_PATH
  33167. if test "$cross_compiling" = yes
  33168. then :
  33169. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  33170. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  33171. as_fn_error $? "cannot run test program while cross compiling
  33172. See \`config.log' for more details" "$LINENO" 5; }
  33173. else $as_nop
  33174. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  33175. /* end confdefs.h. */
  33176. $curl_includes_stdlib
  33177. $curl_includes_arpa_inet
  33178. $curl_includes_string
  33179. int main (void)
  33180. {
  33181. char ipv6res[sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255")];
  33182. char ipv4res[sizeof "255.255.255.255"];
  33183. unsigned char ipv6a[26];
  33184. unsigned char ipv4a[5];
  33185. char *ipv6ptr = 0;
  33186. char *ipv4ptr = 0;
  33187. /* - */
  33188. ipv4res[0] = '\0';
  33189. ipv4a[0] = 0xc0;
  33190. ipv4a[1] = 0xa8;
  33191. ipv4a[2] = 0x64;
  33192. ipv4a[3] = 0x01;
  33193. ipv4a[4] = 0x01;
  33194. /* - */
  33195. ipv4ptr = inet_ntop(AF_INET, ipv4a, ipv4res, sizeof(ipv4res));
  33196. if(!ipv4ptr)
  33197. exit(1); /* fail */
  33198. if(ipv4ptr != ipv4res)
  33199. exit(1); /* fail */
  33200. if(!ipv4ptr[0])
  33201. exit(1); /* fail */
  33202. if(memcmp(ipv4res, "192.168.100.1", 13) != 0)
  33203. exit(1); /* fail */
  33204. /* - */
  33205. ipv6res[0] = '\0';
  33206. memset(ipv6a, 0, sizeof(ipv6a));
  33207. ipv6a[0] = 0xfe;
  33208. ipv6a[1] = 0x80;
  33209. ipv6a[8] = 0x02;
  33210. ipv6a[9] = 0x14;
  33211. ipv6a[10] = 0x4f;
  33212. ipv6a[11] = 0xff;
  33213. ipv6a[12] = 0xfe;
  33214. ipv6a[13] = 0x0b;
  33215. ipv6a[14] = 0x76;
  33216. ipv6a[15] = 0xc8;
  33217. ipv6a[25] = 0x01;
  33218. /* - */
  33219. ipv6ptr = inet_ntop(AF_INET6, ipv6a, ipv6res, sizeof(ipv6res));
  33220. if(!ipv6ptr)
  33221. exit(1); /* fail */
  33222. if(ipv6ptr != ipv6res)
  33223. exit(1); /* fail */
  33224. if(!ipv6ptr[0])
  33225. exit(1); /* fail */
  33226. if(memcmp(ipv6res, "fe80::214:4fff:fe0b:76c8", 24) != 0)
  33227. exit(1); /* fail */
  33228. /* - */
  33229. exit(0);
  33230. ;
  33231. return 0;
  33232. }
  33233. _ACEOF
  33234. if ac_fn_c_try_run "$LINENO"
  33235. then :
  33236. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  33237. printf "%s\n" "yes" >&6; }
  33238. tst_works_inet_ntop="yes"
  33239. else $as_nop
  33240. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  33241. printf "%s\n" "no" >&6; }
  33242. tst_works_inet_ntop="no"
  33243. fi
  33244. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  33245. conftest.$ac_objext conftest.beam conftest.$ac_ext
  33246. fi
  33247. LD_LIBRARY_PATH=$old # restore
  33248. ;;
  33249. esac
  33250. fi
  33251. #
  33252. if test "$tst_compi_inet_ntop" = "yes" &&
  33253. test "$tst_works_inet_ntop" != "no"; then
  33254. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop usage allowed" >&5
  33255. printf %s "checking if inet_ntop usage allowed... " >&6; }
  33256. if test "x$curl_disallow_inet_ntop" != "xyes"; then
  33257. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  33258. printf "%s\n" "yes" >&6; }
  33259. tst_allow_inet_ntop="yes"
  33260. else
  33261. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  33262. printf "%s\n" "no" >&6; }
  33263. tst_allow_inet_ntop="no"
  33264. fi
  33265. fi
  33266. #
  33267. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop might be used" >&5
  33268. printf %s "checking if inet_ntop might be used... " >&6; }
  33269. if test "$tst_links_inet_ntop" = "yes" &&
  33270. test "$tst_proto_inet_ntop" = "yes" &&
  33271. test "$tst_compi_inet_ntop" = "yes" &&
  33272. test "$tst_allow_inet_ntop" = "yes" &&
  33273. test "$tst_works_inet_ntop" != "no"; then
  33274. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  33275. printf "%s\n" "yes" >&6; }
  33276. printf "%s\n" "#define HAVE_INET_NTOP 1" >>confdefs.h
  33277. curl_cv_func_inet_ntop="yes"
  33278. else
  33279. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  33280. printf "%s\n" "no" >&6; }
  33281. curl_cv_func_inet_ntop="no"
  33282. fi
  33283. #
  33284. tst_links_inet_pton="unknown"
  33285. tst_proto_inet_pton="unknown"
  33286. tst_compi_inet_pton="unknown"
  33287. tst_works_inet_pton="unknown"
  33288. tst_allow_inet_pton="unknown"
  33289. #
  33290. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton can be linked" >&5
  33291. printf %s "checking if inet_pton can be linked... " >&6; }
  33292. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  33293. /* end confdefs.h. */
  33294. #define inet_pton innocuous_inet_pton
  33295. #ifdef __STDC__
  33296. # include <limits.h>
  33297. #else
  33298. # include <assert.h>
  33299. #endif
  33300. #undef inet_pton
  33301. #ifdef __cplusplus
  33302. extern "C"
  33303. #endif
  33304. char inet_pton ();
  33305. #if defined __stub_inet_pton || defined __stub___inet_pton
  33306. choke me
  33307. #endif
  33308. int main (void)
  33309. {
  33310. return inet_pton ();
  33311. ;
  33312. return 0;
  33313. }
  33314. _ACEOF
  33315. if ac_fn_c_try_link "$LINENO"
  33316. then :
  33317. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  33318. printf "%s\n" "yes" >&6; }
  33319. tst_links_inet_pton="yes"
  33320. else $as_nop
  33321. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  33322. printf "%s\n" "no" >&6; }
  33323. tst_links_inet_pton="no"
  33324. fi
  33325. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  33326. conftest$ac_exeext conftest.$ac_ext
  33327. #
  33328. if test "$tst_links_inet_pton" = "yes"; then
  33329. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton is prototyped" >&5
  33330. printf %s "checking if inet_pton is prototyped... " >&6; }
  33331. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  33332. /* end confdefs.h. */
  33333. $curl_includes_arpa_inet
  33334. _ACEOF
  33335. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  33336. $EGREP "inet_pton" >/dev/null 2>&1
  33337. then :
  33338. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  33339. printf "%s\n" "yes" >&6; }
  33340. tst_proto_inet_pton="yes"
  33341. else $as_nop
  33342. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  33343. printf "%s\n" "no" >&6; }
  33344. tst_proto_inet_pton="no"
  33345. fi
  33346. rm -rf conftest*
  33347. fi
  33348. #
  33349. if test "$tst_proto_inet_pton" = "yes"; then
  33350. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton is compilable" >&5
  33351. printf %s "checking if inet_pton is compilable... " >&6; }
  33352. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  33353. /* end confdefs.h. */
  33354. $curl_includes_arpa_inet
  33355. int main (void)
  33356. {
  33357. if(0 != inet_pton(0, 0, 0))
  33358. return 1;
  33359. ;
  33360. return 0;
  33361. }
  33362. _ACEOF
  33363. if ac_fn_c_try_compile "$LINENO"
  33364. then :
  33365. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  33366. printf "%s\n" "yes" >&6; }
  33367. tst_compi_inet_pton="yes"
  33368. else $as_nop
  33369. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  33370. printf "%s\n" "no" >&6; }
  33371. tst_compi_inet_pton="no"
  33372. fi
  33373. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  33374. fi
  33375. #
  33376. if test "x$cross_compiling" != "xyes" &&
  33377. test "$tst_compi_inet_pton" = "yes"; then
  33378. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton seems to work" >&5
  33379. printf %s "checking if inet_pton seems to work... " >&6; }
  33380. case $host_os in
  33381. darwin*)
  33382. if test "$cross_compiling" = yes
  33383. then :
  33384. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  33385. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  33386. as_fn_error $? "cannot run test program while cross compiling
  33387. See \`config.log' for more details" "$LINENO" 5; }
  33388. else $as_nop
  33389. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  33390. /* end confdefs.h. */
  33391. $curl_includes_stdlib
  33392. $curl_includes_arpa_inet
  33393. $curl_includes_string
  33394. int main (void)
  33395. {
  33396. unsigned char ipv6a[16+1];
  33397. unsigned char ipv4a[4+1];
  33398. const char *ipv6src = "fe80::214:4fff:fe0b:76c8";
  33399. const char *ipv4src = "192.168.100.1";
  33400. /* - */
  33401. memset(ipv4a, 1, sizeof(ipv4a));
  33402. if(1 != inet_pton(AF_INET, ipv4src, ipv4a))
  33403. exit(1); /* fail */
  33404. /* - */
  33405. if( (ipv4a[0] != 0xc0) ||
  33406. (ipv4a[1] != 0xa8) ||
  33407. (ipv4a[2] != 0x64) ||
  33408. (ipv4a[3] != 0x01) ||
  33409. (ipv4a[4] != 0x01) )
  33410. exit(1); /* fail */
  33411. /* - */
  33412. memset(ipv6a, 1, sizeof(ipv6a));
  33413. if(1 != inet_pton(AF_INET6, ipv6src, ipv6a))
  33414. exit(1); /* fail */
  33415. /* - */
  33416. if( (ipv6a[0] != 0xfe) ||
  33417. (ipv6a[1] != 0x80) ||
  33418. (ipv6a[8] != 0x02) ||
  33419. (ipv6a[9] != 0x14) ||
  33420. (ipv6a[10] != 0x4f) ||
  33421. (ipv6a[11] != 0xff) ||
  33422. (ipv6a[12] != 0xfe) ||
  33423. (ipv6a[13] != 0x0b) ||
  33424. (ipv6a[14] != 0x76) ||
  33425. (ipv6a[15] != 0xc8) ||
  33426. (ipv6a[16] != 0x01) )
  33427. exit(1); /* fail */
  33428. /* - */
  33429. if( (ipv6a[2] != 0x0) ||
  33430. (ipv6a[3] != 0x0) ||
  33431. (ipv6a[4] != 0x0) ||
  33432. (ipv6a[5] != 0x0) ||
  33433. (ipv6a[6] != 0x0) ||
  33434. (ipv6a[7] != 0x0) )
  33435. exit(1); /* fail */
  33436. /* - */
  33437. exit(0);
  33438. ;
  33439. return 0;
  33440. }
  33441. _ACEOF
  33442. if ac_fn_c_try_run "$LINENO"
  33443. then :
  33444. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  33445. printf "%s\n" "yes" >&6; }
  33446. tst_works_inet_pton="yes"
  33447. else $as_nop
  33448. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  33449. printf "%s\n" "no" >&6; }
  33450. tst_works_inet_pton="no"
  33451. fi
  33452. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  33453. conftest.$ac_objext conftest.beam conftest.$ac_ext
  33454. fi
  33455. ;;
  33456. *)
  33457. old=$LD_LIBRARY_PATH
  33458. LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
  33459. export LD_LIBRARY_PATH
  33460. if test "$cross_compiling" = yes
  33461. then :
  33462. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  33463. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  33464. as_fn_error $? "cannot run test program while cross compiling
  33465. See \`config.log' for more details" "$LINENO" 5; }
  33466. else $as_nop
  33467. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  33468. /* end confdefs.h. */
  33469. $curl_includes_stdlib
  33470. $curl_includes_arpa_inet
  33471. $curl_includes_string
  33472. int main (void)
  33473. {
  33474. unsigned char ipv6a[16+1];
  33475. unsigned char ipv4a[4+1];
  33476. const char *ipv6src = "fe80::214:4fff:fe0b:76c8";
  33477. const char *ipv4src = "192.168.100.1";
  33478. /* - */
  33479. memset(ipv4a, 1, sizeof(ipv4a));
  33480. if(1 != inet_pton(AF_INET, ipv4src, ipv4a))
  33481. exit(1); /* fail */
  33482. /* - */
  33483. if( (ipv4a[0] != 0xc0) ||
  33484. (ipv4a[1] != 0xa8) ||
  33485. (ipv4a[2] != 0x64) ||
  33486. (ipv4a[3] != 0x01) ||
  33487. (ipv4a[4] != 0x01) )
  33488. exit(1); /* fail */
  33489. /* - */
  33490. memset(ipv6a, 1, sizeof(ipv6a));
  33491. if(1 != inet_pton(AF_INET6, ipv6src, ipv6a))
  33492. exit(1); /* fail */
  33493. /* - */
  33494. if( (ipv6a[0] != 0xfe) ||
  33495. (ipv6a[1] != 0x80) ||
  33496. (ipv6a[8] != 0x02) ||
  33497. (ipv6a[9] != 0x14) ||
  33498. (ipv6a[10] != 0x4f) ||
  33499. (ipv6a[11] != 0xff) ||
  33500. (ipv6a[12] != 0xfe) ||
  33501. (ipv6a[13] != 0x0b) ||
  33502. (ipv6a[14] != 0x76) ||
  33503. (ipv6a[15] != 0xc8) ||
  33504. (ipv6a[16] != 0x01) )
  33505. exit(1); /* fail */
  33506. /* - */
  33507. if( (ipv6a[2] != 0x0) ||
  33508. (ipv6a[3] != 0x0) ||
  33509. (ipv6a[4] != 0x0) ||
  33510. (ipv6a[5] != 0x0) ||
  33511. (ipv6a[6] != 0x0) ||
  33512. (ipv6a[7] != 0x0) )
  33513. exit(1); /* fail */
  33514. /* - */
  33515. exit(0);
  33516. ;
  33517. return 0;
  33518. }
  33519. _ACEOF
  33520. if ac_fn_c_try_run "$LINENO"
  33521. then :
  33522. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  33523. printf "%s\n" "yes" >&6; }
  33524. tst_works_inet_pton="yes"
  33525. else $as_nop
  33526. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  33527. printf "%s\n" "no" >&6; }
  33528. tst_works_inet_pton="no"
  33529. fi
  33530. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  33531. conftest.$ac_objext conftest.beam conftest.$ac_ext
  33532. fi
  33533. LD_LIBRARY_PATH=$old # restore
  33534. ;;
  33535. esac
  33536. fi
  33537. #
  33538. if test "$tst_compi_inet_pton" = "yes" &&
  33539. test "$tst_works_inet_pton" != "no"; then
  33540. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton usage allowed" >&5
  33541. printf %s "checking if inet_pton usage allowed... " >&6; }
  33542. if test "x$curl_disallow_inet_pton" != "xyes"; then
  33543. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  33544. printf "%s\n" "yes" >&6; }
  33545. tst_allow_inet_pton="yes"
  33546. else
  33547. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  33548. printf "%s\n" "no" >&6; }
  33549. tst_allow_inet_pton="no"
  33550. fi
  33551. fi
  33552. #
  33553. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton might be used" >&5
  33554. printf %s "checking if inet_pton might be used... " >&6; }
  33555. if test "$tst_links_inet_pton" = "yes" &&
  33556. test "$tst_proto_inet_pton" = "yes" &&
  33557. test "$tst_compi_inet_pton" = "yes" &&
  33558. test "$tst_allow_inet_pton" = "yes" &&
  33559. test "$tst_works_inet_pton" != "no"; then
  33560. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  33561. printf "%s\n" "yes" >&6; }
  33562. printf "%s\n" "#define HAVE_INET_PTON 1" >>confdefs.h
  33563. curl_cv_func_inet_pton="yes"
  33564. else
  33565. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  33566. printf "%s\n" "no" >&6; }
  33567. curl_cv_func_inet_pton="no"
  33568. fi
  33569. #
  33570. tst_links_ioctlsocket="unknown"
  33571. tst_proto_ioctlsocket="unknown"
  33572. tst_compi_ioctlsocket="unknown"
  33573. tst_allow_ioctlsocket="unknown"
  33574. #
  33575. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket can be linked" >&5
  33576. printf %s "checking if ioctlsocket can be linked... " >&6; }
  33577. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  33578. /* end confdefs.h. */
  33579. $curl_includes_winsock2
  33580. int main (void)
  33581. {
  33582. if(0 != ioctlsocket(0, 0, 0))
  33583. return 1;
  33584. ;
  33585. return 0;
  33586. }
  33587. _ACEOF
  33588. if ac_fn_c_try_link "$LINENO"
  33589. then :
  33590. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  33591. printf "%s\n" "yes" >&6; }
  33592. tst_links_ioctlsocket="yes"
  33593. else $as_nop
  33594. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  33595. printf "%s\n" "no" >&6; }
  33596. tst_links_ioctlsocket="no"
  33597. fi
  33598. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  33599. conftest$ac_exeext conftest.$ac_ext
  33600. #
  33601. if test "$tst_links_ioctlsocket" = "yes"; then
  33602. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is prototyped" >&5
  33603. printf %s "checking if ioctlsocket is prototyped... " >&6; }
  33604. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  33605. /* end confdefs.h. */
  33606. $curl_includes_winsock2
  33607. _ACEOF
  33608. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  33609. $EGREP "ioctlsocket" >/dev/null 2>&1
  33610. then :
  33611. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  33612. printf "%s\n" "yes" >&6; }
  33613. tst_proto_ioctlsocket="yes"
  33614. else $as_nop
  33615. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  33616. printf "%s\n" "no" >&6; }
  33617. tst_proto_ioctlsocket="no"
  33618. fi
  33619. rm -rf conftest*
  33620. fi
  33621. #
  33622. if test "$tst_proto_ioctlsocket" = "yes"; then
  33623. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is compilable" >&5
  33624. printf %s "checking if ioctlsocket is compilable... " >&6; }
  33625. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  33626. /* end confdefs.h. */
  33627. $curl_includes_winsock2
  33628. int main (void)
  33629. {
  33630. if(0 != ioctlsocket(0, 0, 0))
  33631. return 1;
  33632. ;
  33633. return 0;
  33634. }
  33635. _ACEOF
  33636. if ac_fn_c_try_compile "$LINENO"
  33637. then :
  33638. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  33639. printf "%s\n" "yes" >&6; }
  33640. tst_compi_ioctlsocket="yes"
  33641. else $as_nop
  33642. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  33643. printf "%s\n" "no" >&6; }
  33644. tst_compi_ioctlsocket="no"
  33645. fi
  33646. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  33647. fi
  33648. #
  33649. if test "$tst_compi_ioctlsocket" = "yes"; then
  33650. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket usage allowed" >&5
  33651. printf %s "checking if ioctlsocket usage allowed... " >&6; }
  33652. if test "x$curl_disallow_ioctlsocket" != "xyes"; then
  33653. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  33654. printf "%s\n" "yes" >&6; }
  33655. tst_allow_ioctlsocket="yes"
  33656. else
  33657. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  33658. printf "%s\n" "no" >&6; }
  33659. tst_allow_ioctlsocket="no"
  33660. fi
  33661. fi
  33662. #
  33663. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket might be used" >&5
  33664. printf %s "checking if ioctlsocket might be used... " >&6; }
  33665. if test "$tst_links_ioctlsocket" = "yes" &&
  33666. test "$tst_proto_ioctlsocket" = "yes" &&
  33667. test "$tst_compi_ioctlsocket" = "yes" &&
  33668. test "$tst_allow_ioctlsocket" = "yes"; then
  33669. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  33670. printf "%s\n" "yes" >&6; }
  33671. printf "%s\n" "#define HAVE_IOCTLSOCKET 1" >>confdefs.h
  33672. curl_cv_func_ioctlsocket="yes"
  33673. #
  33674. tst_compi_ioctlsocket_fionbio="unknown"
  33675. tst_allow_ioctlsocket_fionbio="unknown"
  33676. #
  33677. if test "$curl_cv_func_ioctlsocket" = "yes"; then
  33678. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO is compilable" >&5
  33679. printf %s "checking if ioctlsocket FIONBIO is compilable... " >&6; }
  33680. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  33681. /* end confdefs.h. */
  33682. $curl_includes_winsock2
  33683. int main (void)
  33684. {
  33685. int flags = 0;
  33686. if(0 != ioctlsocket(0, FIONBIO, &flags))
  33687. return 1;
  33688. ;
  33689. return 0;
  33690. }
  33691. _ACEOF
  33692. if ac_fn_c_try_compile "$LINENO"
  33693. then :
  33694. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  33695. printf "%s\n" "yes" >&6; }
  33696. tst_compi_ioctlsocket_fionbio="yes"
  33697. else $as_nop
  33698. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  33699. printf "%s\n" "no" >&6; }
  33700. tst_compi_ioctlsocket_fionbio="no"
  33701. fi
  33702. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  33703. fi
  33704. #
  33705. if test "$tst_compi_ioctlsocket_fionbio" = "yes"; then
  33706. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO usage allowed" >&5
  33707. printf %s "checking if ioctlsocket FIONBIO usage allowed... " >&6; }
  33708. if test "x$curl_disallow_ioctlsocket_fionbio" != "xyes"; then
  33709. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  33710. printf "%s\n" "yes" >&6; }
  33711. tst_allow_ioctlsocket_fionbio="yes"
  33712. else
  33713. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  33714. printf "%s\n" "no" >&6; }
  33715. tst_allow_ioctlsocket_fionbio="no"
  33716. fi
  33717. fi
  33718. #
  33719. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO might be used" >&5
  33720. printf %s "checking if ioctlsocket FIONBIO might be used... " >&6; }
  33721. if test "$tst_compi_ioctlsocket_fionbio" = "yes" &&
  33722. test "$tst_allow_ioctlsocket_fionbio" = "yes"; then
  33723. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  33724. printf "%s\n" "yes" >&6; }
  33725. printf "%s\n" "#define HAVE_IOCTLSOCKET_FIONBIO 1" >>confdefs.h
  33726. curl_cv_func_ioctlsocket_fionbio="yes"
  33727. else
  33728. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  33729. printf "%s\n" "no" >&6; }
  33730. curl_cv_func_ioctlsocket_fionbio="no"
  33731. fi
  33732. else
  33733. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  33734. printf "%s\n" "no" >&6; }
  33735. curl_cv_func_ioctlsocket="no"
  33736. fi
  33737. #
  33738. tst_links_ioctlsocket_camel="unknown"
  33739. tst_proto_ioctlsocket_camel="unknown"
  33740. tst_compi_ioctlsocket_camel="unknown"
  33741. tst_allow_ioctlsocket_camel="unknown"
  33742. #
  33743. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket can be linked" >&5
  33744. printf %s "checking if IoctlSocket can be linked... " >&6; }
  33745. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  33746. /* end confdefs.h. */
  33747. $curl_includes_bsdsocket
  33748. int main (void)
  33749. {
  33750. IoctlSocket(0, 0, 0);
  33751. ;
  33752. return 0;
  33753. }
  33754. _ACEOF
  33755. if ac_fn_c_try_link "$LINENO"
  33756. then :
  33757. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  33758. printf "%s\n" "yes" >&6; }
  33759. tst_links_ioctlsocket_camel="yes"
  33760. else $as_nop
  33761. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  33762. printf "%s\n" "no" >&6; }
  33763. tst_links_ioctlsocket_camel="no"
  33764. fi
  33765. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  33766. conftest$ac_exeext conftest.$ac_ext
  33767. #
  33768. if test "$tst_links_ioctlsocket_camel" = "yes"; then
  33769. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is prototyped" >&5
  33770. printf %s "checking if IoctlSocket is prototyped... " >&6; }
  33771. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  33772. /* end confdefs.h. */
  33773. $curl_includes_bsdsocket
  33774. _ACEOF
  33775. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  33776. $EGREP "IoctlSocket" >/dev/null 2>&1
  33777. then :
  33778. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  33779. printf "%s\n" "yes" >&6; }
  33780. tst_proto_ioctlsocket_camel="yes"
  33781. else $as_nop
  33782. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  33783. printf "%s\n" "no" >&6; }
  33784. tst_proto_ioctlsocket_camel="no"
  33785. fi
  33786. rm -rf conftest*
  33787. fi
  33788. #
  33789. if test "$tst_proto_ioctlsocket_camel" = "yes"; then
  33790. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is compilable" >&5
  33791. printf %s "checking if IoctlSocket is compilable... " >&6; }
  33792. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  33793. /* end confdefs.h. */
  33794. $curl_includes_bsdsocket
  33795. int main (void)
  33796. {
  33797. if(0 != IoctlSocket(0, 0, 0))
  33798. return 1;
  33799. ;
  33800. return 0;
  33801. }
  33802. _ACEOF
  33803. if ac_fn_c_try_compile "$LINENO"
  33804. then :
  33805. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  33806. printf "%s\n" "yes" >&6; }
  33807. tst_compi_ioctlsocket_camel="yes"
  33808. else $as_nop
  33809. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  33810. printf "%s\n" "no" >&6; }
  33811. tst_compi_ioctlsocket_camel="no"
  33812. fi
  33813. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  33814. fi
  33815. #
  33816. if test "$tst_compi_ioctlsocket_camel" = "yes"; then
  33817. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket usage allowed" >&5
  33818. printf %s "checking if IoctlSocket usage allowed... " >&6; }
  33819. if test "x$curl_disallow_ioctlsocket_camel" != "xyes"; then
  33820. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  33821. printf "%s\n" "yes" >&6; }
  33822. tst_allow_ioctlsocket_camel="yes"
  33823. else
  33824. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  33825. printf "%s\n" "no" >&6; }
  33826. tst_allow_ioctlsocket_camel="no"
  33827. fi
  33828. fi
  33829. #
  33830. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket might be used" >&5
  33831. printf %s "checking if IoctlSocket might be used... " >&6; }
  33832. if test "$tst_links_ioctlsocket_camel" = "yes" &&
  33833. test "$tst_proto_ioctlsocket_camel" = "yes" &&
  33834. test "$tst_compi_ioctlsocket_camel" = "yes" &&
  33835. test "$tst_allow_ioctlsocket_camel" = "yes"; then
  33836. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  33837. printf "%s\n" "yes" >&6; }
  33838. printf "%s\n" "#define HAVE_IOCTLSOCKET_CAMEL 1" >>confdefs.h
  33839. curl_cv_func_ioctlsocket_camel="yes"
  33840. #
  33841. tst_compi_ioctlsocket_camel_fionbio="unknown"
  33842. tst_allow_ioctlsocket_camel_fionbio="unknown"
  33843. #
  33844. if test "$curl_cv_func_ioctlsocket_camel" = "yes"; then
  33845. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO is compilable" >&5
  33846. printf %s "checking if IoctlSocket FIONBIO is compilable... " >&6; }
  33847. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  33848. /* end confdefs.h. */
  33849. $curl_includes_bsdsocket
  33850. int main (void)
  33851. {
  33852. long flags = 0;
  33853. if(0 != IoctlSocket(0, FIONBIO, &flags))
  33854. return 1;
  33855. ;
  33856. return 0;
  33857. }
  33858. _ACEOF
  33859. if ac_fn_c_try_compile "$LINENO"
  33860. then :
  33861. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  33862. printf "%s\n" "yes" >&6; }
  33863. tst_compi_ioctlsocket_camel_fionbio="yes"
  33864. else $as_nop
  33865. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  33866. printf "%s\n" "no" >&6; }
  33867. tst_compi_ioctlsocket_camel_fionbio="no"
  33868. fi
  33869. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  33870. fi
  33871. #
  33872. if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes"; then
  33873. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO usage allowed" >&5
  33874. printf %s "checking if IoctlSocket FIONBIO usage allowed... " >&6; }
  33875. if test "x$curl_disallow_ioctlsocket_camel_fionbio" != "xyes"; then
  33876. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  33877. printf "%s\n" "yes" >&6; }
  33878. tst_allow_ioctlsocket_camel_fionbio="yes"
  33879. else
  33880. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  33881. printf "%s\n" "no" >&6; }
  33882. tst_allow_ioctlsocket_camel_fionbio="no"
  33883. fi
  33884. fi
  33885. #
  33886. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO might be used" >&5
  33887. printf %s "checking if IoctlSocket FIONBIO might be used... " >&6; }
  33888. if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes" &&
  33889. test "$tst_allow_ioctlsocket_camel_fionbio" = "yes"; then
  33890. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  33891. printf "%s\n" "yes" >&6; }
  33892. printf "%s\n" "#define HAVE_IOCTLSOCKET_CAMEL_FIONBIO 1" >>confdefs.h
  33893. curl_cv_func_ioctlsocket_camel_fionbio="yes"
  33894. else
  33895. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  33896. printf "%s\n" "no" >&6; }
  33897. curl_cv_func_ioctlsocket_camel_fionbio="no"
  33898. fi
  33899. else
  33900. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  33901. printf "%s\n" "no" >&6; }
  33902. curl_cv_func_ioctlsocket_camel="no"
  33903. fi
  33904. #
  33905. tst_links_memrchr="unknown"
  33906. tst_macro_memrchr="unknown"
  33907. tst_proto_memrchr="unknown"
  33908. tst_compi_memrchr="unknown"
  33909. tst_allow_memrchr="unknown"
  33910. #
  33911. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if memrchr can be linked" >&5
  33912. printf %s "checking if memrchr can be linked... " >&6; }
  33913. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  33914. /* end confdefs.h. */
  33915. #define memrchr innocuous_memrchr
  33916. #ifdef __STDC__
  33917. # include <limits.h>
  33918. #else
  33919. # include <assert.h>
  33920. #endif
  33921. #undef memrchr
  33922. #ifdef __cplusplus
  33923. extern "C"
  33924. #endif
  33925. char memrchr ();
  33926. #if defined __stub_memrchr || defined __stub___memrchr
  33927. choke me
  33928. #endif
  33929. int main (void)
  33930. {
  33931. return memrchr ();
  33932. ;
  33933. return 0;
  33934. }
  33935. _ACEOF
  33936. if ac_fn_c_try_link "$LINENO"
  33937. then :
  33938. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  33939. printf "%s\n" "yes" >&6; }
  33940. tst_links_memrchr="yes"
  33941. else $as_nop
  33942. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  33943. printf "%s\n" "no" >&6; }
  33944. tst_links_memrchr="no"
  33945. fi
  33946. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  33947. conftest$ac_exeext conftest.$ac_ext
  33948. #
  33949. if test "$tst_links_memrchr" = "no"; then
  33950. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if memrchr seems a macro" >&5
  33951. printf %s "checking if memrchr seems a macro... " >&6; }
  33952. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  33953. /* end confdefs.h. */
  33954. $curl_includes_string
  33955. int main (void)
  33956. {
  33957. if(0 != memrchr(0, 0, 0))
  33958. return 1;
  33959. ;
  33960. return 0;
  33961. }
  33962. _ACEOF
  33963. if ac_fn_c_try_link "$LINENO"
  33964. then :
  33965. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  33966. printf "%s\n" "yes" >&6; }
  33967. tst_macro_memrchr="yes"
  33968. else $as_nop
  33969. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  33970. printf "%s\n" "no" >&6; }
  33971. tst_macro_memrchr="no"
  33972. fi
  33973. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  33974. conftest$ac_exeext conftest.$ac_ext
  33975. fi
  33976. #
  33977. if test "$tst_links_memrchr" = "yes"; then
  33978. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if memrchr is prototyped" >&5
  33979. printf %s "checking if memrchr is prototyped... " >&6; }
  33980. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  33981. /* end confdefs.h. */
  33982. $curl_includes_string
  33983. _ACEOF
  33984. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  33985. $EGREP "memrchr" >/dev/null 2>&1
  33986. then :
  33987. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  33988. printf "%s\n" "yes" >&6; }
  33989. tst_proto_memrchr="yes"
  33990. else $as_nop
  33991. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  33992. printf "%s\n" "no" >&6; }
  33993. tst_proto_memrchr="no"
  33994. fi
  33995. rm -rf conftest*
  33996. fi
  33997. #
  33998. if test "$tst_proto_memrchr" = "yes" ||
  33999. test "$tst_macro_memrchr" = "yes"; then
  34000. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if memrchr is compilable" >&5
  34001. printf %s "checking if memrchr is compilable... " >&6; }
  34002. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34003. /* end confdefs.h. */
  34004. $curl_includes_string
  34005. int main (void)
  34006. {
  34007. if(0 != memrchr(0, 0, 0))
  34008. return 1;
  34009. ;
  34010. return 0;
  34011. }
  34012. _ACEOF
  34013. if ac_fn_c_try_compile "$LINENO"
  34014. then :
  34015. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  34016. printf "%s\n" "yes" >&6; }
  34017. tst_compi_memrchr="yes"
  34018. else $as_nop
  34019. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  34020. printf "%s\n" "no" >&6; }
  34021. tst_compi_memrchr="no"
  34022. fi
  34023. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  34024. fi
  34025. #
  34026. if test "$tst_compi_memrchr" = "yes"; then
  34027. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if memrchr usage allowed" >&5
  34028. printf %s "checking if memrchr usage allowed... " >&6; }
  34029. if test "x$curl_disallow_memrchr" != "xyes"; then
  34030. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  34031. printf "%s\n" "yes" >&6; }
  34032. tst_allow_memrchr="yes"
  34033. else
  34034. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  34035. printf "%s\n" "no" >&6; }
  34036. tst_allow_memrchr="no"
  34037. fi
  34038. fi
  34039. #
  34040. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if memrchr might be used" >&5
  34041. printf %s "checking if memrchr might be used... " >&6; }
  34042. if (test "$tst_proto_memrchr" = "yes" ||
  34043. test "$tst_macro_memrchr" = "yes") &&
  34044. test "$tst_compi_memrchr" = "yes" &&
  34045. test "$tst_allow_memrchr" = "yes"; then
  34046. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  34047. printf "%s\n" "yes" >&6; }
  34048. printf "%s\n" "#define HAVE_MEMRCHR 1" >>confdefs.h
  34049. curl_cv_func_memrchr="yes"
  34050. else
  34051. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  34052. printf "%s\n" "no" >&6; }
  34053. curl_cv_func_memrchr="no"
  34054. fi
  34055. #
  34056. tst_links_poll="unknown"
  34057. tst_proto_poll="unknown"
  34058. tst_compi_poll="unknown"
  34059. tst_works_poll="unknown"
  34060. tst_allow_poll="unknown"
  34061. #
  34062. case $host_os in
  34063. darwin*|interix*)
  34064. curl_disallow_poll="yes"
  34065. tst_compi_poll="no"
  34066. ;;
  34067. esac
  34068. #
  34069. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if poll can be linked" >&5
  34070. printf %s "checking if poll can be linked... " >&6; }
  34071. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34072. /* end confdefs.h. */
  34073. $curl_includes_poll
  34074. int main (void)
  34075. {
  34076. if(0 != poll(0, 0, 0))
  34077. return 1;
  34078. ;
  34079. return 0;
  34080. }
  34081. _ACEOF
  34082. if ac_fn_c_try_link "$LINENO"
  34083. then :
  34084. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  34085. printf "%s\n" "yes" >&6; }
  34086. tst_links_poll="yes"
  34087. else $as_nop
  34088. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  34089. printf "%s\n" "no" >&6; }
  34090. tst_links_poll="no"
  34091. fi
  34092. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  34093. conftest$ac_exeext conftest.$ac_ext
  34094. #
  34095. if test "$tst_links_poll" = "yes"; then
  34096. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if poll is prototyped" >&5
  34097. printf %s "checking if poll is prototyped... " >&6; }
  34098. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34099. /* end confdefs.h. */
  34100. $curl_includes_poll
  34101. _ACEOF
  34102. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  34103. $EGREP "poll" >/dev/null 2>&1
  34104. then :
  34105. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  34106. printf "%s\n" "yes" >&6; }
  34107. tst_proto_poll="yes"
  34108. else $as_nop
  34109. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  34110. printf "%s\n" "no" >&6; }
  34111. tst_proto_poll="no"
  34112. fi
  34113. rm -rf conftest*
  34114. fi
  34115. #
  34116. if test "$tst_proto_poll" = "yes"; then
  34117. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if poll is compilable" >&5
  34118. printf %s "checking if poll is compilable... " >&6; }
  34119. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34120. /* end confdefs.h. */
  34121. $curl_includes_poll
  34122. int main (void)
  34123. {
  34124. if(0 != poll(0, 0, 0))
  34125. return 1;
  34126. ;
  34127. return 0;
  34128. }
  34129. _ACEOF
  34130. if ac_fn_c_try_compile "$LINENO"
  34131. then :
  34132. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  34133. printf "%s\n" "yes" >&6; }
  34134. tst_compi_poll="yes"
  34135. else $as_nop
  34136. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  34137. printf "%s\n" "no" >&6; }
  34138. tst_compi_poll="no"
  34139. fi
  34140. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  34141. fi
  34142. #
  34143. if test "x$cross_compiling" != "xyes" &&
  34144. test "$tst_compi_poll" = "yes"; then
  34145. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if poll seems to work" >&5
  34146. printf %s "checking if poll seems to work... " >&6; }
  34147. case $host_os in
  34148. darwin*)
  34149. if test "$cross_compiling" = yes
  34150. then :
  34151. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  34152. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  34153. as_fn_error $? "cannot run test program while cross compiling
  34154. See \`config.log' for more details" "$LINENO" 5; }
  34155. else $as_nop
  34156. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34157. /* end confdefs.h. */
  34158. $curl_includes_stdlib
  34159. $curl_includes_poll
  34160. $curl_includes_time
  34161. int main (void)
  34162. {
  34163. /* detect the original poll() breakage */
  34164. if(0 != poll(0, 0, 10))
  34165. exit(1); /* fail */
  34166. else {
  34167. /* detect the 10.12 poll() breakage */
  34168. struct timeval before, after;
  34169. int rc;
  34170. size_t us;
  34171. gettimeofday(&before, NULL);
  34172. rc = poll(NULL, 0, 500);
  34173. gettimeofday(&after, NULL);
  34174. us = (after.tv_sec - before.tv_sec) * 1000000 +
  34175. (after.tv_usec - before.tv_usec);
  34176. if(us < 400000)
  34177. exit(1);
  34178. }
  34179. ;
  34180. return 0;
  34181. }
  34182. _ACEOF
  34183. if ac_fn_c_try_run "$LINENO"
  34184. then :
  34185. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  34186. printf "%s\n" "yes" >&6; }
  34187. tst_works_poll="yes"
  34188. else $as_nop
  34189. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  34190. printf "%s\n" "no" >&6; }
  34191. tst_works_poll="no"
  34192. fi
  34193. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  34194. conftest.$ac_objext conftest.beam conftest.$ac_ext
  34195. fi
  34196. ;;
  34197. *)
  34198. old=$LD_LIBRARY_PATH
  34199. LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
  34200. export LD_LIBRARY_PATH
  34201. if test "$cross_compiling" = yes
  34202. then :
  34203. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  34204. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  34205. as_fn_error $? "cannot run test program while cross compiling
  34206. See \`config.log' for more details" "$LINENO" 5; }
  34207. else $as_nop
  34208. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34209. /* end confdefs.h. */
  34210. $curl_includes_stdlib
  34211. $curl_includes_poll
  34212. $curl_includes_time
  34213. int main (void)
  34214. {
  34215. /* detect the original poll() breakage */
  34216. if(0 != poll(0, 0, 10))
  34217. exit(1); /* fail */
  34218. else {
  34219. /* detect the 10.12 poll() breakage */
  34220. struct timeval before, after;
  34221. int rc;
  34222. size_t us;
  34223. gettimeofday(&before, NULL);
  34224. rc = poll(NULL, 0, 500);
  34225. gettimeofday(&after, NULL);
  34226. us = (after.tv_sec - before.tv_sec) * 1000000 +
  34227. (after.tv_usec - before.tv_usec);
  34228. if(us < 400000)
  34229. exit(1);
  34230. }
  34231. ;
  34232. return 0;
  34233. }
  34234. _ACEOF
  34235. if ac_fn_c_try_run "$LINENO"
  34236. then :
  34237. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  34238. printf "%s\n" "yes" >&6; }
  34239. tst_works_poll="yes"
  34240. else $as_nop
  34241. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  34242. printf "%s\n" "no" >&6; }
  34243. tst_works_poll="no"
  34244. fi
  34245. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  34246. conftest.$ac_objext conftest.beam conftest.$ac_ext
  34247. fi
  34248. LD_LIBRARY_PATH=$old # restore
  34249. ;;
  34250. esac
  34251. fi
  34252. #
  34253. if test "$tst_compi_poll" = "yes" &&
  34254. test "$tst_works_poll" != "no"; then
  34255. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if poll usage allowed" >&5
  34256. printf %s "checking if poll usage allowed... " >&6; }
  34257. if test "x$curl_disallow_poll" != "xyes"; then
  34258. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  34259. printf "%s\n" "yes" >&6; }
  34260. tst_allow_poll="yes"
  34261. else
  34262. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  34263. printf "%s\n" "no" >&6; }
  34264. tst_allow_poll="no"
  34265. fi
  34266. fi
  34267. #
  34268. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if poll might be used" >&5
  34269. printf %s "checking if poll might be used... " >&6; }
  34270. if test "$tst_links_poll" = "yes" &&
  34271. test "$tst_proto_poll" = "yes" &&
  34272. test "$tst_compi_poll" = "yes" &&
  34273. test "$tst_allow_poll" = "yes" &&
  34274. test "$tst_works_poll" != "no"; then
  34275. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  34276. printf "%s\n" "yes" >&6; }
  34277. printf "%s\n" "#define HAVE_POLL_FINE 1" >>confdefs.h
  34278. curl_cv_func_poll="yes"
  34279. else
  34280. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  34281. printf "%s\n" "no" >&6; }
  34282. curl_cv_func_poll="no"
  34283. fi
  34284. curl_includes_signal="\
  34285. /* includes start */
  34286. #ifdef HAVE_SYS_TYPES_H
  34287. # include <sys/types.h>
  34288. #endif
  34289. #ifdef HAVE_SIGNAL_H
  34290. # include <signal.h>
  34291. #endif
  34292. /* includes end */"
  34293. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_signal
  34294. "
  34295. if test "x$ac_cv_header_sys_types_h" = xyes
  34296. then :
  34297. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  34298. fi
  34299. ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$curl_includes_signal
  34300. "
  34301. if test "x$ac_cv_header_signal_h" = xyes
  34302. then :
  34303. printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h
  34304. fi
  34305. #
  34306. tst_links_sigaction="unknown"
  34307. tst_proto_sigaction="unknown"
  34308. tst_compi_sigaction="unknown"
  34309. tst_allow_sigaction="unknown"
  34310. #
  34311. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigaction can be linked" >&5
  34312. printf %s "checking if sigaction can be linked... " >&6; }
  34313. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34314. /* end confdefs.h. */
  34315. #define sigaction innocuous_sigaction
  34316. #ifdef __STDC__
  34317. # include <limits.h>
  34318. #else
  34319. # include <assert.h>
  34320. #endif
  34321. #undef sigaction
  34322. #ifdef __cplusplus
  34323. extern "C"
  34324. #endif
  34325. char sigaction ();
  34326. #if defined __stub_sigaction || defined __stub___sigaction
  34327. choke me
  34328. #endif
  34329. int main (void)
  34330. {
  34331. return sigaction ();
  34332. ;
  34333. return 0;
  34334. }
  34335. _ACEOF
  34336. if ac_fn_c_try_link "$LINENO"
  34337. then :
  34338. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  34339. printf "%s\n" "yes" >&6; }
  34340. tst_links_sigaction="yes"
  34341. else $as_nop
  34342. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  34343. printf "%s\n" "no" >&6; }
  34344. tst_links_sigaction="no"
  34345. fi
  34346. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  34347. conftest$ac_exeext conftest.$ac_ext
  34348. #
  34349. if test "$tst_links_sigaction" = "yes"; then
  34350. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigaction is prototyped" >&5
  34351. printf %s "checking if sigaction is prototyped... " >&6; }
  34352. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34353. /* end confdefs.h. */
  34354. $curl_includes_signal
  34355. _ACEOF
  34356. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  34357. $EGREP "sigaction" >/dev/null 2>&1
  34358. then :
  34359. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  34360. printf "%s\n" "yes" >&6; }
  34361. tst_proto_sigaction="yes"
  34362. else $as_nop
  34363. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  34364. printf "%s\n" "no" >&6; }
  34365. tst_proto_sigaction="no"
  34366. fi
  34367. rm -rf conftest*
  34368. fi
  34369. #
  34370. if test "$tst_proto_sigaction" = "yes"; then
  34371. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigaction is compilable" >&5
  34372. printf %s "checking if sigaction is compilable... " >&6; }
  34373. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34374. /* end confdefs.h. */
  34375. $curl_includes_signal
  34376. int main (void)
  34377. {
  34378. if(0 != sigaction(0, 0, 0))
  34379. return 1;
  34380. ;
  34381. return 0;
  34382. }
  34383. _ACEOF
  34384. if ac_fn_c_try_compile "$LINENO"
  34385. then :
  34386. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  34387. printf "%s\n" "yes" >&6; }
  34388. tst_compi_sigaction="yes"
  34389. else $as_nop
  34390. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  34391. printf "%s\n" "no" >&6; }
  34392. tst_compi_sigaction="no"
  34393. fi
  34394. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  34395. fi
  34396. #
  34397. if test "$tst_compi_sigaction" = "yes"; then
  34398. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigaction usage allowed" >&5
  34399. printf %s "checking if sigaction usage allowed... " >&6; }
  34400. if test "x$curl_disallow_sigaction" != "xyes"; then
  34401. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  34402. printf "%s\n" "yes" >&6; }
  34403. tst_allow_sigaction="yes"
  34404. else
  34405. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  34406. printf "%s\n" "no" >&6; }
  34407. tst_allow_sigaction="no"
  34408. fi
  34409. fi
  34410. #
  34411. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigaction might be used" >&5
  34412. printf %s "checking if sigaction might be used... " >&6; }
  34413. if test "$tst_links_sigaction" = "yes" &&
  34414. test "$tst_proto_sigaction" = "yes" &&
  34415. test "$tst_compi_sigaction" = "yes" &&
  34416. test "$tst_allow_sigaction" = "yes"; then
  34417. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  34418. printf "%s\n" "yes" >&6; }
  34419. printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h
  34420. curl_cv_func_sigaction="yes"
  34421. else
  34422. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  34423. printf "%s\n" "no" >&6; }
  34424. curl_cv_func_sigaction="no"
  34425. fi
  34426. #
  34427. tst_links_siginterrupt="unknown"
  34428. tst_proto_siginterrupt="unknown"
  34429. tst_compi_siginterrupt="unknown"
  34430. tst_allow_siginterrupt="unknown"
  34431. #
  34432. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if siginterrupt can be linked" >&5
  34433. printf %s "checking if siginterrupt can be linked... " >&6; }
  34434. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34435. /* end confdefs.h. */
  34436. #define siginterrupt innocuous_siginterrupt
  34437. #ifdef __STDC__
  34438. # include <limits.h>
  34439. #else
  34440. # include <assert.h>
  34441. #endif
  34442. #undef siginterrupt
  34443. #ifdef __cplusplus
  34444. extern "C"
  34445. #endif
  34446. char siginterrupt ();
  34447. #if defined __stub_siginterrupt || defined __stub___siginterrupt
  34448. choke me
  34449. #endif
  34450. int main (void)
  34451. {
  34452. return siginterrupt ();
  34453. ;
  34454. return 0;
  34455. }
  34456. _ACEOF
  34457. if ac_fn_c_try_link "$LINENO"
  34458. then :
  34459. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  34460. printf "%s\n" "yes" >&6; }
  34461. tst_links_siginterrupt="yes"
  34462. else $as_nop
  34463. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  34464. printf "%s\n" "no" >&6; }
  34465. tst_links_siginterrupt="no"
  34466. fi
  34467. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  34468. conftest$ac_exeext conftest.$ac_ext
  34469. #
  34470. if test "$tst_links_siginterrupt" = "yes"; then
  34471. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is prototyped" >&5
  34472. printf %s "checking if siginterrupt is prototyped... " >&6; }
  34473. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34474. /* end confdefs.h. */
  34475. $curl_includes_signal
  34476. _ACEOF
  34477. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  34478. $EGREP "siginterrupt" >/dev/null 2>&1
  34479. then :
  34480. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  34481. printf "%s\n" "yes" >&6; }
  34482. tst_proto_siginterrupt="yes"
  34483. else $as_nop
  34484. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  34485. printf "%s\n" "no" >&6; }
  34486. tst_proto_siginterrupt="no"
  34487. fi
  34488. rm -rf conftest*
  34489. fi
  34490. #
  34491. if test "$tst_proto_siginterrupt" = "yes"; then
  34492. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is compilable" >&5
  34493. printf %s "checking if siginterrupt is compilable... " >&6; }
  34494. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34495. /* end confdefs.h. */
  34496. $curl_includes_signal
  34497. int main (void)
  34498. {
  34499. if(0 != siginterrupt(0, 0))
  34500. return 1;
  34501. ;
  34502. return 0;
  34503. }
  34504. _ACEOF
  34505. if ac_fn_c_try_compile "$LINENO"
  34506. then :
  34507. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  34508. printf "%s\n" "yes" >&6; }
  34509. tst_compi_siginterrupt="yes"
  34510. else $as_nop
  34511. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  34512. printf "%s\n" "no" >&6; }
  34513. tst_compi_siginterrupt="no"
  34514. fi
  34515. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  34516. fi
  34517. #
  34518. if test "$tst_compi_siginterrupt" = "yes"; then
  34519. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if siginterrupt usage allowed" >&5
  34520. printf %s "checking if siginterrupt usage allowed... " >&6; }
  34521. if test "x$curl_disallow_siginterrupt" != "xyes"; then
  34522. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  34523. printf "%s\n" "yes" >&6; }
  34524. tst_allow_siginterrupt="yes"
  34525. else
  34526. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  34527. printf "%s\n" "no" >&6; }
  34528. tst_allow_siginterrupt="no"
  34529. fi
  34530. fi
  34531. #
  34532. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if siginterrupt might be used" >&5
  34533. printf %s "checking if siginterrupt might be used... " >&6; }
  34534. if test "$tst_links_siginterrupt" = "yes" &&
  34535. test "$tst_proto_siginterrupt" = "yes" &&
  34536. test "$tst_compi_siginterrupt" = "yes" &&
  34537. test "$tst_allow_siginterrupt" = "yes"; then
  34538. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  34539. printf "%s\n" "yes" >&6; }
  34540. printf "%s\n" "#define HAVE_SIGINTERRUPT 1" >>confdefs.h
  34541. curl_cv_func_siginterrupt="yes"
  34542. else
  34543. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  34544. printf "%s\n" "no" >&6; }
  34545. curl_cv_func_siginterrupt="no"
  34546. fi
  34547. #
  34548. tst_links_signal="unknown"
  34549. tst_proto_signal="unknown"
  34550. tst_compi_signal="unknown"
  34551. tst_allow_signal="unknown"
  34552. #
  34553. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if signal can be linked" >&5
  34554. printf %s "checking if signal can be linked... " >&6; }
  34555. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34556. /* end confdefs.h. */
  34557. #define signal innocuous_signal
  34558. #ifdef __STDC__
  34559. # include <limits.h>
  34560. #else
  34561. # include <assert.h>
  34562. #endif
  34563. #undef signal
  34564. #ifdef __cplusplus
  34565. extern "C"
  34566. #endif
  34567. char signal ();
  34568. #if defined __stub_signal || defined __stub___signal
  34569. choke me
  34570. #endif
  34571. int main (void)
  34572. {
  34573. return signal ();
  34574. ;
  34575. return 0;
  34576. }
  34577. _ACEOF
  34578. if ac_fn_c_try_link "$LINENO"
  34579. then :
  34580. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  34581. printf "%s\n" "yes" >&6; }
  34582. tst_links_signal="yes"
  34583. else $as_nop
  34584. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  34585. printf "%s\n" "no" >&6; }
  34586. tst_links_signal="no"
  34587. fi
  34588. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  34589. conftest$ac_exeext conftest.$ac_ext
  34590. #
  34591. if test "$tst_links_signal" = "yes"; then
  34592. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if signal is prototyped" >&5
  34593. printf %s "checking if signal is prototyped... " >&6; }
  34594. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34595. /* end confdefs.h. */
  34596. $curl_includes_signal
  34597. _ACEOF
  34598. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  34599. $EGREP "signal" >/dev/null 2>&1
  34600. then :
  34601. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  34602. printf "%s\n" "yes" >&6; }
  34603. tst_proto_signal="yes"
  34604. else $as_nop
  34605. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  34606. printf "%s\n" "no" >&6; }
  34607. tst_proto_signal="no"
  34608. fi
  34609. rm -rf conftest*
  34610. fi
  34611. #
  34612. if test "$tst_proto_signal" = "yes"; then
  34613. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if signal is compilable" >&5
  34614. printf %s "checking if signal is compilable... " >&6; }
  34615. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34616. /* end confdefs.h. */
  34617. $curl_includes_signal
  34618. int main (void)
  34619. {
  34620. if(0 != signal(0, 0))
  34621. return 1;
  34622. ;
  34623. return 0;
  34624. }
  34625. _ACEOF
  34626. if ac_fn_c_try_compile "$LINENO"
  34627. then :
  34628. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  34629. printf "%s\n" "yes" >&6; }
  34630. tst_compi_signal="yes"
  34631. else $as_nop
  34632. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  34633. printf "%s\n" "no" >&6; }
  34634. tst_compi_signal="no"
  34635. fi
  34636. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  34637. fi
  34638. #
  34639. if test "$tst_compi_signal" = "yes"; then
  34640. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if signal usage allowed" >&5
  34641. printf %s "checking if signal usage allowed... " >&6; }
  34642. if test "x$curl_disallow_signal" != "xyes"; then
  34643. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  34644. printf "%s\n" "yes" >&6; }
  34645. tst_allow_signal="yes"
  34646. else
  34647. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  34648. printf "%s\n" "no" >&6; }
  34649. tst_allow_signal="no"
  34650. fi
  34651. fi
  34652. #
  34653. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if signal might be used" >&5
  34654. printf %s "checking if signal might be used... " >&6; }
  34655. if test "$tst_links_signal" = "yes" &&
  34656. test "$tst_proto_signal" = "yes" &&
  34657. test "$tst_compi_signal" = "yes" &&
  34658. test "$tst_allow_signal" = "yes"; then
  34659. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  34660. printf "%s\n" "yes" >&6; }
  34661. printf "%s\n" "#define HAVE_SIGNAL 1" >>confdefs.h
  34662. curl_cv_func_signal="yes"
  34663. else
  34664. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  34665. printf "%s\n" "no" >&6; }
  34666. curl_cv_func_signal="no"
  34667. fi
  34668. curl_includes_setjmp="\
  34669. /* includes start */
  34670. #ifdef HAVE_SYS_TYPES_H
  34671. # include <sys/types.h>
  34672. #endif
  34673. #ifdef HAVE_SETJMP_H
  34674. # include <setjmp.h>
  34675. #endif
  34676. /* includes end */"
  34677. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_setjmp
  34678. "
  34679. if test "x$ac_cv_header_sys_types_h" = xyes
  34680. then :
  34681. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  34682. fi
  34683. ac_fn_c_check_header_compile "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$curl_includes_setjmp
  34684. "
  34685. if test "x$ac_cv_header_setjmp_h" = xyes
  34686. then :
  34687. printf "%s\n" "#define HAVE_SETJMP_H 1" >>confdefs.h
  34688. fi
  34689. #
  34690. tst_links_sigsetjmp="unknown"
  34691. tst_macro_sigsetjmp="unknown"
  34692. tst_proto_sigsetjmp="unknown"
  34693. tst_compi_sigsetjmp="unknown"
  34694. tst_allow_sigsetjmp="unknown"
  34695. #
  34696. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp can be linked" >&5
  34697. printf %s "checking if sigsetjmp can be linked... " >&6; }
  34698. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34699. /* end confdefs.h. */
  34700. #define sigsetjmp innocuous_sigsetjmp
  34701. #ifdef __STDC__
  34702. # include <limits.h>
  34703. #else
  34704. # include <assert.h>
  34705. #endif
  34706. #undef sigsetjmp
  34707. #ifdef __cplusplus
  34708. extern "C"
  34709. #endif
  34710. char sigsetjmp ();
  34711. #if defined __stub_sigsetjmp || defined __stub___sigsetjmp
  34712. choke me
  34713. #endif
  34714. int main (void)
  34715. {
  34716. return sigsetjmp ();
  34717. ;
  34718. return 0;
  34719. }
  34720. _ACEOF
  34721. if ac_fn_c_try_link "$LINENO"
  34722. then :
  34723. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  34724. printf "%s\n" "yes" >&6; }
  34725. tst_links_sigsetjmp="yes"
  34726. else $as_nop
  34727. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  34728. printf "%s\n" "no" >&6; }
  34729. tst_links_sigsetjmp="no"
  34730. fi
  34731. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  34732. conftest$ac_exeext conftest.$ac_ext
  34733. #
  34734. if test "$tst_links_sigsetjmp" = "no"; then
  34735. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp seems a macro" >&5
  34736. printf %s "checking if sigsetjmp seems a macro... " >&6; }
  34737. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34738. /* end confdefs.h. */
  34739. $curl_includes_setjmp
  34740. int main (void)
  34741. {
  34742. sigjmp_buf env;
  34743. if(0 != sigsetjmp(env, 0))
  34744. return 1;
  34745. ;
  34746. return 0;
  34747. }
  34748. _ACEOF
  34749. if ac_fn_c_try_link "$LINENO"
  34750. then :
  34751. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  34752. printf "%s\n" "yes" >&6; }
  34753. tst_macro_sigsetjmp="yes"
  34754. else $as_nop
  34755. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  34756. printf "%s\n" "no" >&6; }
  34757. tst_macro_sigsetjmp="no"
  34758. fi
  34759. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  34760. conftest$ac_exeext conftest.$ac_ext
  34761. fi
  34762. #
  34763. if test "$tst_links_sigsetjmp" = "yes"; then
  34764. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is prototyped" >&5
  34765. printf %s "checking if sigsetjmp is prototyped... " >&6; }
  34766. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34767. /* end confdefs.h. */
  34768. $curl_includes_setjmp
  34769. _ACEOF
  34770. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  34771. $EGREP "sigsetjmp" >/dev/null 2>&1
  34772. then :
  34773. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  34774. printf "%s\n" "yes" >&6; }
  34775. tst_proto_sigsetjmp="yes"
  34776. else $as_nop
  34777. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  34778. printf "%s\n" "no" >&6; }
  34779. tst_proto_sigsetjmp="no"
  34780. fi
  34781. rm -rf conftest*
  34782. fi
  34783. #
  34784. if test "$tst_proto_sigsetjmp" = "yes" ||
  34785. test "$tst_macro_sigsetjmp" = "yes"; then
  34786. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is compilable" >&5
  34787. printf %s "checking if sigsetjmp is compilable... " >&6; }
  34788. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34789. /* end confdefs.h. */
  34790. $curl_includes_setjmp
  34791. int main (void)
  34792. {
  34793. sigjmp_buf env;
  34794. if(0 != sigsetjmp(env, 0))
  34795. return 1;
  34796. ;
  34797. return 0;
  34798. }
  34799. _ACEOF
  34800. if ac_fn_c_try_compile "$LINENO"
  34801. then :
  34802. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  34803. printf "%s\n" "yes" >&6; }
  34804. tst_compi_sigsetjmp="yes"
  34805. else $as_nop
  34806. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  34807. printf "%s\n" "no" >&6; }
  34808. tst_compi_sigsetjmp="no"
  34809. fi
  34810. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  34811. fi
  34812. #
  34813. if test "$tst_compi_sigsetjmp" = "yes"; then
  34814. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp usage allowed" >&5
  34815. printf %s "checking if sigsetjmp usage allowed... " >&6; }
  34816. if test "x$curl_disallow_sigsetjmp" != "xyes"; then
  34817. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  34818. printf "%s\n" "yes" >&6; }
  34819. tst_allow_sigsetjmp="yes"
  34820. else
  34821. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  34822. printf "%s\n" "no" >&6; }
  34823. tst_allow_sigsetjmp="no"
  34824. fi
  34825. fi
  34826. #
  34827. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp might be used" >&5
  34828. printf %s "checking if sigsetjmp might be used... " >&6; }
  34829. if (test "$tst_proto_sigsetjmp" = "yes" ||
  34830. test "$tst_macro_sigsetjmp" = "yes") &&
  34831. test "$tst_compi_sigsetjmp" = "yes" &&
  34832. test "$tst_allow_sigsetjmp" = "yes"; then
  34833. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  34834. printf "%s\n" "yes" >&6; }
  34835. printf "%s\n" "#define HAVE_SIGSETJMP 1" >>confdefs.h
  34836. curl_cv_func_sigsetjmp="yes"
  34837. else
  34838. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  34839. printf "%s\n" "no" >&6; }
  34840. curl_cv_func_sigsetjmp="no"
  34841. fi
  34842. #
  34843. tst_links_socket="unknown"
  34844. tst_proto_socket="unknown"
  34845. tst_compi_socket="unknown"
  34846. tst_allow_socket="unknown"
  34847. #
  34848. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socket can be linked" >&5
  34849. printf %s "checking if socket can be linked... " >&6; }
  34850. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34851. /* end confdefs.h. */
  34852. $curl_includes_winsock2
  34853. $curl_includes_bsdsocket
  34854. $curl_includes_sys_socket
  34855. $curl_includes_socket
  34856. int main (void)
  34857. {
  34858. if(0 != socket(0, 0, 0))
  34859. return 1;
  34860. ;
  34861. return 0;
  34862. }
  34863. _ACEOF
  34864. if ac_fn_c_try_link "$LINENO"
  34865. then :
  34866. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  34867. printf "%s\n" "yes" >&6; }
  34868. tst_links_socket="yes"
  34869. else $as_nop
  34870. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  34871. printf "%s\n" "no" >&6; }
  34872. tst_links_socket="no"
  34873. fi
  34874. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  34875. conftest$ac_exeext conftest.$ac_ext
  34876. #
  34877. if test "$tst_links_socket" = "yes"; then
  34878. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socket is prototyped" >&5
  34879. printf %s "checking if socket is prototyped... " >&6; }
  34880. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34881. /* end confdefs.h. */
  34882. $curl_includes_winsock2
  34883. $curl_includes_bsdsocket
  34884. $curl_includes_sys_socket
  34885. $curl_includes_socket
  34886. _ACEOF
  34887. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  34888. $EGREP "socket" >/dev/null 2>&1
  34889. then :
  34890. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  34891. printf "%s\n" "yes" >&6; }
  34892. tst_proto_socket="yes"
  34893. else $as_nop
  34894. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  34895. printf "%s\n" "no" >&6; }
  34896. tst_proto_socket="no"
  34897. fi
  34898. rm -rf conftest*
  34899. fi
  34900. #
  34901. if test "$tst_proto_socket" = "yes"; then
  34902. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socket is compilable" >&5
  34903. printf %s "checking if socket is compilable... " >&6; }
  34904. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34905. /* end confdefs.h. */
  34906. $curl_includes_winsock2
  34907. $curl_includes_bsdsocket
  34908. $curl_includes_sys_socket
  34909. $curl_includes_socket
  34910. int main (void)
  34911. {
  34912. if(0 != socket(0, 0, 0))
  34913. return 1;
  34914. ;
  34915. return 0;
  34916. }
  34917. _ACEOF
  34918. if ac_fn_c_try_compile "$LINENO"
  34919. then :
  34920. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  34921. printf "%s\n" "yes" >&6; }
  34922. tst_compi_socket="yes"
  34923. else $as_nop
  34924. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  34925. printf "%s\n" "no" >&6; }
  34926. tst_compi_socket="no"
  34927. fi
  34928. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  34929. fi
  34930. #
  34931. if test "$tst_compi_socket" = "yes"; then
  34932. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socket usage allowed" >&5
  34933. printf %s "checking if socket usage allowed... " >&6; }
  34934. if test "x$curl_disallow_socket" != "xyes"; then
  34935. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  34936. printf "%s\n" "yes" >&6; }
  34937. tst_allow_socket="yes"
  34938. else
  34939. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  34940. printf "%s\n" "no" >&6; }
  34941. tst_allow_socket="no"
  34942. fi
  34943. fi
  34944. #
  34945. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socket might be used" >&5
  34946. printf %s "checking if socket might be used... " >&6; }
  34947. if test "$tst_links_socket" = "yes" &&
  34948. test "$tst_proto_socket" = "yes" &&
  34949. test "$tst_compi_socket" = "yes" &&
  34950. test "$tst_allow_socket" = "yes"; then
  34951. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  34952. printf "%s\n" "yes" >&6; }
  34953. printf "%s\n" "#define HAVE_SOCKET 1" >>confdefs.h
  34954. curl_cv_func_socket="yes"
  34955. else
  34956. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  34957. printf "%s\n" "no" >&6; }
  34958. curl_cv_func_socket="no"
  34959. fi
  34960. #
  34961. tst_links_socketpair="unknown"
  34962. tst_proto_socketpair="unknown"
  34963. tst_compi_socketpair="unknown"
  34964. tst_allow_socketpair="unknown"
  34965. #
  34966. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socketpair can be linked" >&5
  34967. printf %s "checking if socketpair can be linked... " >&6; }
  34968. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34969. /* end confdefs.h. */
  34970. #define socketpair innocuous_socketpair
  34971. #ifdef __STDC__
  34972. # include <limits.h>
  34973. #else
  34974. # include <assert.h>
  34975. #endif
  34976. #undef socketpair
  34977. #ifdef __cplusplus
  34978. extern "C"
  34979. #endif
  34980. char socketpair ();
  34981. #if defined __stub_socketpair || defined __stub___socketpair
  34982. choke me
  34983. #endif
  34984. int main (void)
  34985. {
  34986. return socketpair ();
  34987. ;
  34988. return 0;
  34989. }
  34990. _ACEOF
  34991. if ac_fn_c_try_link "$LINENO"
  34992. then :
  34993. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  34994. printf "%s\n" "yes" >&6; }
  34995. tst_links_socketpair="yes"
  34996. else $as_nop
  34997. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  34998. printf "%s\n" "no" >&6; }
  34999. tst_links_socketpair="no"
  35000. fi
  35001. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  35002. conftest$ac_exeext conftest.$ac_ext
  35003. #
  35004. if test "$tst_links_socketpair" = "yes"; then
  35005. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socketpair is prototyped" >&5
  35006. printf %s "checking if socketpair is prototyped... " >&6; }
  35007. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35008. /* end confdefs.h. */
  35009. $curl_includes_sys_socket
  35010. $curl_includes_socket
  35011. _ACEOF
  35012. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  35013. $EGREP "socketpair" >/dev/null 2>&1
  35014. then :
  35015. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  35016. printf "%s\n" "yes" >&6; }
  35017. tst_proto_socketpair="yes"
  35018. else $as_nop
  35019. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  35020. printf "%s\n" "no" >&6; }
  35021. tst_proto_socketpair="no"
  35022. fi
  35023. rm -rf conftest*
  35024. fi
  35025. #
  35026. if test "$tst_proto_socketpair" = "yes"; then
  35027. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socketpair is compilable" >&5
  35028. printf %s "checking if socketpair is compilable... " >&6; }
  35029. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35030. /* end confdefs.h. */
  35031. $curl_includes_sys_socket
  35032. $curl_includes_socket
  35033. int main (void)
  35034. {
  35035. int sv[2];
  35036. if(0 != socketpair(0, 0, 0, sv))
  35037. return 1;
  35038. ;
  35039. return 0;
  35040. }
  35041. _ACEOF
  35042. if ac_fn_c_try_compile "$LINENO"
  35043. then :
  35044. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  35045. printf "%s\n" "yes" >&6; }
  35046. tst_compi_socketpair="yes"
  35047. else $as_nop
  35048. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  35049. printf "%s\n" "no" >&6; }
  35050. tst_compi_socketpair="no"
  35051. fi
  35052. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  35053. fi
  35054. #
  35055. if test "$tst_compi_socketpair" = "yes"; then
  35056. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socketpair usage allowed" >&5
  35057. printf %s "checking if socketpair usage allowed... " >&6; }
  35058. if test "x$curl_disallow_socketpair" != "xyes"; then
  35059. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  35060. printf "%s\n" "yes" >&6; }
  35061. tst_allow_socketpair="yes"
  35062. else
  35063. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  35064. printf "%s\n" "no" >&6; }
  35065. tst_allow_socketpair="no"
  35066. fi
  35067. fi
  35068. #
  35069. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socketpair might be used" >&5
  35070. printf %s "checking if socketpair might be used... " >&6; }
  35071. if test "$tst_links_socketpair" = "yes" &&
  35072. test "$tst_proto_socketpair" = "yes" &&
  35073. test "$tst_compi_socketpair" = "yes" &&
  35074. test "$tst_allow_socketpair" = "yes"; then
  35075. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  35076. printf "%s\n" "yes" >&6; }
  35077. printf "%s\n" "#define HAVE_SOCKETPAIR 1" >>confdefs.h
  35078. curl_cv_func_socketpair="yes"
  35079. else
  35080. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  35081. printf "%s\n" "no" >&6; }
  35082. curl_cv_func_socketpair="no"
  35083. fi
  35084. #
  35085. tst_links_strcasecmp="unknown"
  35086. tst_proto_strcasecmp="unknown"
  35087. tst_compi_strcasecmp="unknown"
  35088. tst_allow_strcasecmp="unknown"
  35089. #
  35090. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcasecmp can be linked" >&5
  35091. printf %s "checking if strcasecmp can be linked... " >&6; }
  35092. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35093. /* end confdefs.h. */
  35094. #define strcasecmp innocuous_strcasecmp
  35095. #ifdef __STDC__
  35096. # include <limits.h>
  35097. #else
  35098. # include <assert.h>
  35099. #endif
  35100. #undef strcasecmp
  35101. #ifdef __cplusplus
  35102. extern "C"
  35103. #endif
  35104. char strcasecmp ();
  35105. #if defined __stub_strcasecmp || defined __stub___strcasecmp
  35106. choke me
  35107. #endif
  35108. int main (void)
  35109. {
  35110. return strcasecmp ();
  35111. ;
  35112. return 0;
  35113. }
  35114. _ACEOF
  35115. if ac_fn_c_try_link "$LINENO"
  35116. then :
  35117. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  35118. printf "%s\n" "yes" >&6; }
  35119. tst_links_strcasecmp="yes"
  35120. else $as_nop
  35121. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  35122. printf "%s\n" "no" >&6; }
  35123. tst_links_strcasecmp="no"
  35124. fi
  35125. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  35126. conftest$ac_exeext conftest.$ac_ext
  35127. #
  35128. if test "$tst_links_strcasecmp" = "yes"; then
  35129. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is prototyped" >&5
  35130. printf %s "checking if strcasecmp is prototyped... " >&6; }
  35131. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35132. /* end confdefs.h. */
  35133. $curl_includes_string
  35134. _ACEOF
  35135. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  35136. $EGREP "strcasecmp" >/dev/null 2>&1
  35137. then :
  35138. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  35139. printf "%s\n" "yes" >&6; }
  35140. tst_proto_strcasecmp="yes"
  35141. else $as_nop
  35142. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  35143. printf "%s\n" "no" >&6; }
  35144. tst_proto_strcasecmp="no"
  35145. fi
  35146. rm -rf conftest*
  35147. fi
  35148. #
  35149. if test "$tst_proto_strcasecmp" = "yes"; then
  35150. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is compilable" >&5
  35151. printf %s "checking if strcasecmp is compilable... " >&6; }
  35152. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35153. /* end confdefs.h. */
  35154. $curl_includes_string
  35155. int main (void)
  35156. {
  35157. if(0 != strcasecmp(0, 0))
  35158. return 1;
  35159. ;
  35160. return 0;
  35161. }
  35162. _ACEOF
  35163. if ac_fn_c_try_compile "$LINENO"
  35164. then :
  35165. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  35166. printf "%s\n" "yes" >&6; }
  35167. tst_compi_strcasecmp="yes"
  35168. else $as_nop
  35169. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  35170. printf "%s\n" "no" >&6; }
  35171. tst_compi_strcasecmp="no"
  35172. fi
  35173. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  35174. fi
  35175. #
  35176. if test "$tst_compi_strcasecmp" = "yes"; then
  35177. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcasecmp usage allowed" >&5
  35178. printf %s "checking if strcasecmp usage allowed... " >&6; }
  35179. if test "x$curl_disallow_strcasecmp" != "xyes"; then
  35180. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  35181. printf "%s\n" "yes" >&6; }
  35182. tst_allow_strcasecmp="yes"
  35183. else
  35184. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  35185. printf "%s\n" "no" >&6; }
  35186. tst_allow_strcasecmp="no"
  35187. fi
  35188. fi
  35189. #
  35190. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcasecmp might be used" >&5
  35191. printf %s "checking if strcasecmp might be used... " >&6; }
  35192. if test "$tst_links_strcasecmp" = "yes" &&
  35193. test "$tst_proto_strcasecmp" = "yes" &&
  35194. test "$tst_compi_strcasecmp" = "yes" &&
  35195. test "$tst_allow_strcasecmp" = "yes"; then
  35196. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  35197. printf "%s\n" "yes" >&6; }
  35198. printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
  35199. curl_cv_func_strcasecmp="yes"
  35200. else
  35201. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  35202. printf "%s\n" "no" >&6; }
  35203. curl_cv_func_strcasecmp="no"
  35204. fi
  35205. #
  35206. tst_links_strcmpi="unknown"
  35207. tst_proto_strcmpi="unknown"
  35208. tst_compi_strcmpi="unknown"
  35209. tst_allow_strcmpi="unknown"
  35210. #
  35211. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcmpi can be linked" >&5
  35212. printf %s "checking if strcmpi can be linked... " >&6; }
  35213. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35214. /* end confdefs.h. */
  35215. #define strcmpi innocuous_strcmpi
  35216. #ifdef __STDC__
  35217. # include <limits.h>
  35218. #else
  35219. # include <assert.h>
  35220. #endif
  35221. #undef strcmpi
  35222. #ifdef __cplusplus
  35223. extern "C"
  35224. #endif
  35225. char strcmpi ();
  35226. #if defined __stub_strcmpi || defined __stub___strcmpi
  35227. choke me
  35228. #endif
  35229. int main (void)
  35230. {
  35231. return strcmpi ();
  35232. ;
  35233. return 0;
  35234. }
  35235. _ACEOF
  35236. if ac_fn_c_try_link "$LINENO"
  35237. then :
  35238. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  35239. printf "%s\n" "yes" >&6; }
  35240. tst_links_strcmpi="yes"
  35241. else $as_nop
  35242. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  35243. printf "%s\n" "no" >&6; }
  35244. tst_links_strcmpi="no"
  35245. fi
  35246. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  35247. conftest$ac_exeext conftest.$ac_ext
  35248. #
  35249. if test "$tst_links_strcmpi" = "yes"; then
  35250. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcmpi is prototyped" >&5
  35251. printf %s "checking if strcmpi is prototyped... " >&6; }
  35252. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35253. /* end confdefs.h. */
  35254. $curl_includes_string
  35255. _ACEOF
  35256. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  35257. $EGREP "strcmpi" >/dev/null 2>&1
  35258. then :
  35259. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  35260. printf "%s\n" "yes" >&6; }
  35261. tst_proto_strcmpi="yes"
  35262. else $as_nop
  35263. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  35264. printf "%s\n" "no" >&6; }
  35265. tst_proto_strcmpi="no"
  35266. fi
  35267. rm -rf conftest*
  35268. fi
  35269. #
  35270. if test "$tst_proto_strcmpi" = "yes"; then
  35271. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcmpi is compilable" >&5
  35272. printf %s "checking if strcmpi is compilable... " >&6; }
  35273. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35274. /* end confdefs.h. */
  35275. $curl_includes_string
  35276. int main (void)
  35277. {
  35278. if(0 != strcmpi(0, 0))
  35279. return 1;
  35280. ;
  35281. return 0;
  35282. }
  35283. _ACEOF
  35284. if ac_fn_c_try_compile "$LINENO"
  35285. then :
  35286. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  35287. printf "%s\n" "yes" >&6; }
  35288. tst_compi_strcmpi="yes"
  35289. else $as_nop
  35290. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  35291. printf "%s\n" "no" >&6; }
  35292. tst_compi_strcmpi="no"
  35293. fi
  35294. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  35295. fi
  35296. #
  35297. if test "$tst_compi_strcmpi" = "yes"; then
  35298. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcmpi usage allowed" >&5
  35299. printf %s "checking if strcmpi usage allowed... " >&6; }
  35300. if test "x$curl_disallow_strcmpi" != "xyes"; then
  35301. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  35302. printf "%s\n" "yes" >&6; }
  35303. tst_allow_strcmpi="yes"
  35304. else
  35305. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  35306. printf "%s\n" "no" >&6; }
  35307. tst_allow_strcmpi="no"
  35308. fi
  35309. fi
  35310. #
  35311. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcmpi might be used" >&5
  35312. printf %s "checking if strcmpi might be used... " >&6; }
  35313. if test "$tst_links_strcmpi" = "yes" &&
  35314. test "$tst_proto_strcmpi" = "yes" &&
  35315. test "$tst_compi_strcmpi" = "yes" &&
  35316. test "$tst_allow_strcmpi" = "yes"; then
  35317. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  35318. printf "%s\n" "yes" >&6; }
  35319. printf "%s\n" "#define HAVE_STRCMPI 1" >>confdefs.h
  35320. curl_cv_func_strcmpi="yes"
  35321. else
  35322. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  35323. printf "%s\n" "no" >&6; }
  35324. curl_cv_func_strcmpi="no"
  35325. fi
  35326. #
  35327. tst_links_strdup="unknown"
  35328. tst_proto_strdup="unknown"
  35329. tst_compi_strdup="unknown"
  35330. tst_allow_strdup="unknown"
  35331. #
  35332. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strdup can be linked" >&5
  35333. printf %s "checking if strdup can be linked... " >&6; }
  35334. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35335. /* end confdefs.h. */
  35336. #define strdup innocuous_strdup
  35337. #ifdef __STDC__
  35338. # include <limits.h>
  35339. #else
  35340. # include <assert.h>
  35341. #endif
  35342. #undef strdup
  35343. #ifdef __cplusplus
  35344. extern "C"
  35345. #endif
  35346. char strdup ();
  35347. #if defined __stub_strdup || defined __stub___strdup
  35348. choke me
  35349. #endif
  35350. int main (void)
  35351. {
  35352. return strdup ();
  35353. ;
  35354. return 0;
  35355. }
  35356. _ACEOF
  35357. if ac_fn_c_try_link "$LINENO"
  35358. then :
  35359. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  35360. printf "%s\n" "yes" >&6; }
  35361. tst_links_strdup="yes"
  35362. else $as_nop
  35363. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  35364. printf "%s\n" "no" >&6; }
  35365. tst_links_strdup="no"
  35366. fi
  35367. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  35368. conftest$ac_exeext conftest.$ac_ext
  35369. #
  35370. if test "$tst_links_strdup" = "yes"; then
  35371. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strdup is prototyped" >&5
  35372. printf %s "checking if strdup is prototyped... " >&6; }
  35373. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35374. /* end confdefs.h. */
  35375. $curl_includes_string
  35376. _ACEOF
  35377. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  35378. $EGREP "strdup" >/dev/null 2>&1
  35379. then :
  35380. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  35381. printf "%s\n" "yes" >&6; }
  35382. tst_proto_strdup="yes"
  35383. else $as_nop
  35384. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  35385. printf "%s\n" "no" >&6; }
  35386. tst_proto_strdup="no"
  35387. fi
  35388. rm -rf conftest*
  35389. fi
  35390. #
  35391. if test "$tst_proto_strdup" = "yes"; then
  35392. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strdup is compilable" >&5
  35393. printf %s "checking if strdup is compilable... " >&6; }
  35394. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35395. /* end confdefs.h. */
  35396. $curl_includes_string
  35397. int main (void)
  35398. {
  35399. if(0 != strdup(0))
  35400. return 1;
  35401. ;
  35402. return 0;
  35403. }
  35404. _ACEOF
  35405. if ac_fn_c_try_compile "$LINENO"
  35406. then :
  35407. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  35408. printf "%s\n" "yes" >&6; }
  35409. tst_compi_strdup="yes"
  35410. else $as_nop
  35411. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  35412. printf "%s\n" "no" >&6; }
  35413. tst_compi_strdup="no"
  35414. fi
  35415. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  35416. fi
  35417. #
  35418. if test "$tst_compi_strdup" = "yes"; then
  35419. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strdup usage allowed" >&5
  35420. printf %s "checking if strdup usage allowed... " >&6; }
  35421. if test "x$curl_disallow_strdup" != "xyes"; then
  35422. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  35423. printf "%s\n" "yes" >&6; }
  35424. tst_allow_strdup="yes"
  35425. else
  35426. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  35427. printf "%s\n" "no" >&6; }
  35428. tst_allow_strdup="no"
  35429. fi
  35430. fi
  35431. #
  35432. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strdup might be used" >&5
  35433. printf %s "checking if strdup might be used... " >&6; }
  35434. if test "$tst_links_strdup" = "yes" &&
  35435. test "$tst_proto_strdup" = "yes" &&
  35436. test "$tst_compi_strdup" = "yes" &&
  35437. test "$tst_allow_strdup" = "yes"; then
  35438. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  35439. printf "%s\n" "yes" >&6; }
  35440. printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h
  35441. curl_cv_func_strdup="yes"
  35442. else
  35443. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  35444. printf "%s\n" "no" >&6; }
  35445. curl_cv_func_strdup="no"
  35446. fi
  35447. #
  35448. tst_links_strerror_r="unknown"
  35449. tst_proto_strerror_r="unknown"
  35450. tst_compi_strerror_r="unknown"
  35451. tst_glibc_strerror_r="unknown"
  35452. tst_posix_strerror_r="unknown"
  35453. tst_allow_strerror_r="unknown"
  35454. tst_works_glibc_strerror_r="unknown"
  35455. tst_works_posix_strerror_r="unknown"
  35456. tst_glibc_strerror_r_type_arg3="unknown"
  35457. tst_posix_strerror_r_type_arg3="unknown"
  35458. #
  35459. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r can be linked" >&5
  35460. printf %s "checking if strerror_r can be linked... " >&6; }
  35461. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35462. /* end confdefs.h. */
  35463. #define strerror_r innocuous_strerror_r
  35464. #ifdef __STDC__
  35465. # include <limits.h>
  35466. #else
  35467. # include <assert.h>
  35468. #endif
  35469. #undef strerror_r
  35470. #ifdef __cplusplus
  35471. extern "C"
  35472. #endif
  35473. char strerror_r ();
  35474. #if defined __stub_strerror_r || defined __stub___strerror_r
  35475. choke me
  35476. #endif
  35477. int main (void)
  35478. {
  35479. return strerror_r ();
  35480. ;
  35481. return 0;
  35482. }
  35483. _ACEOF
  35484. if ac_fn_c_try_link "$LINENO"
  35485. then :
  35486. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  35487. printf "%s\n" "yes" >&6; }
  35488. tst_links_strerror_r="yes"
  35489. else $as_nop
  35490. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  35491. printf "%s\n" "no" >&6; }
  35492. tst_links_strerror_r="no"
  35493. fi
  35494. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  35495. conftest$ac_exeext conftest.$ac_ext
  35496. #
  35497. if test "$tst_links_strerror_r" = "yes"; then
  35498. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r is prototyped" >&5
  35499. printf %s "checking if strerror_r is prototyped... " >&6; }
  35500. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35501. /* end confdefs.h. */
  35502. $curl_includes_string
  35503. _ACEOF
  35504. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  35505. $EGREP "strerror_r" >/dev/null 2>&1
  35506. then :
  35507. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  35508. printf "%s\n" "yes" >&6; }
  35509. tst_proto_strerror_r="yes"
  35510. else $as_nop
  35511. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  35512. printf "%s\n" "no" >&6; }
  35513. tst_proto_strerror_r="no"
  35514. fi
  35515. rm -rf conftest*
  35516. fi
  35517. #
  35518. if test "$tst_proto_strerror_r" = "yes"; then
  35519. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r is compilable" >&5
  35520. printf %s "checking if strerror_r is compilable... " >&6; }
  35521. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35522. /* end confdefs.h. */
  35523. $curl_includes_string
  35524. int main (void)
  35525. {
  35526. if(0 != strerror_r(0, 0, 0))
  35527. return 1;
  35528. ;
  35529. return 0;
  35530. }
  35531. _ACEOF
  35532. if ac_fn_c_try_compile "$LINENO"
  35533. then :
  35534. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  35535. printf "%s\n" "yes" >&6; }
  35536. tst_compi_strerror_r="yes"
  35537. else $as_nop
  35538. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  35539. printf "%s\n" "no" >&6; }
  35540. tst_compi_strerror_r="no"
  35541. fi
  35542. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  35543. fi
  35544. #
  35545. if test "$tst_compi_strerror_r" = "yes"; then
  35546. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r is glibc like" >&5
  35547. printf %s "checking if strerror_r is glibc like... " >&6; }
  35548. tst_glibc_strerror_r_type_arg3="unknown"
  35549. for arg3 in 'size_t' 'int' 'unsigned int'; do
  35550. if test "$tst_glibc_strerror_r_type_arg3" = "unknown"; then
  35551. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35552. /* end confdefs.h. */
  35553. $curl_includes_string
  35554. char *strerror_r(int errnum, char *workbuf, $arg3 bufsize);
  35555. int main (void)
  35556. {
  35557. if(0 != strerror_r(0, 0, 0))
  35558. return 1;
  35559. ;
  35560. return 0;
  35561. }
  35562. _ACEOF
  35563. if ac_fn_c_try_compile "$LINENO"
  35564. then :
  35565. tst_glibc_strerror_r_type_arg3="$arg3"
  35566. fi
  35567. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  35568. fi
  35569. done
  35570. case "$tst_glibc_strerror_r_type_arg3" in
  35571. unknown)
  35572. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  35573. printf "%s\n" "no" >&6; }
  35574. tst_glibc_strerror_r="no"
  35575. ;;
  35576. *)
  35577. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  35578. printf "%s\n" "yes" >&6; }
  35579. tst_glibc_strerror_r="yes"
  35580. ;;
  35581. esac
  35582. fi
  35583. #
  35584. if test "x$cross_compiling" != "xyes" &&
  35585. test "$tst_glibc_strerror_r" = "yes"; then
  35586. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
  35587. printf %s "checking if strerror_r seems to work... " >&6; }
  35588. case $host_os in
  35589. darwin*)
  35590. if test "$cross_compiling" = yes
  35591. then :
  35592. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  35593. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  35594. as_fn_error $? "cannot run test program while cross compiling
  35595. See \`config.log' for more details" "$LINENO" 5; }
  35596. else $as_nop
  35597. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35598. /* end confdefs.h. */
  35599. $curl_includes_stdlib
  35600. $curl_includes_string
  35601. # include <errno.h>
  35602. int main (void)
  35603. {
  35604. char buffer[1024];
  35605. char *string = 0;
  35606. buffer[0] = '\0';
  35607. string = strerror_r(EACCES, buffer, sizeof(buffer));
  35608. if(!string)
  35609. exit(1); /* fail */
  35610. if(!string[0])
  35611. exit(1); /* fail */
  35612. else
  35613. exit(0);
  35614. ;
  35615. return 0;
  35616. }
  35617. _ACEOF
  35618. if ac_fn_c_try_run "$LINENO"
  35619. then :
  35620. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  35621. printf "%s\n" "yes" >&6; }
  35622. tst_works_glibc_strerror_r="yes"
  35623. else $as_nop
  35624. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  35625. printf "%s\n" "no" >&6; }
  35626. tst_works_glibc_strerror_r="no"
  35627. fi
  35628. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  35629. conftest.$ac_objext conftest.beam conftest.$ac_ext
  35630. fi
  35631. ;;
  35632. *)
  35633. old=$LD_LIBRARY_PATH
  35634. LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
  35635. export LD_LIBRARY_PATH
  35636. if test "$cross_compiling" = yes
  35637. then :
  35638. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  35639. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  35640. as_fn_error $? "cannot run test program while cross compiling
  35641. See \`config.log' for more details" "$LINENO" 5; }
  35642. else $as_nop
  35643. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35644. /* end confdefs.h. */
  35645. $curl_includes_stdlib
  35646. $curl_includes_string
  35647. # include <errno.h>
  35648. int main (void)
  35649. {
  35650. char buffer[1024];
  35651. char *string = 0;
  35652. buffer[0] = '\0';
  35653. string = strerror_r(EACCES, buffer, sizeof(buffer));
  35654. if(!string)
  35655. exit(1); /* fail */
  35656. if(!string[0])
  35657. exit(1); /* fail */
  35658. else
  35659. exit(0);
  35660. ;
  35661. return 0;
  35662. }
  35663. _ACEOF
  35664. if ac_fn_c_try_run "$LINENO"
  35665. then :
  35666. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  35667. printf "%s\n" "yes" >&6; }
  35668. tst_works_glibc_strerror_r="yes"
  35669. else $as_nop
  35670. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  35671. printf "%s\n" "no" >&6; }
  35672. tst_works_glibc_strerror_r="no"
  35673. fi
  35674. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  35675. conftest.$ac_objext conftest.beam conftest.$ac_ext
  35676. fi
  35677. LD_LIBRARY_PATH=$old # restore
  35678. ;;
  35679. esac
  35680. fi
  35681. #
  35682. if test "$tst_compi_strerror_r" = "yes" &&
  35683. test "$tst_works_glibc_strerror_r" != "yes"; then
  35684. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r is POSIX like" >&5
  35685. printf %s "checking if strerror_r is POSIX like... " >&6; }
  35686. tst_posix_strerror_r_type_arg3="unknown"
  35687. for arg3 in 'size_t' 'int' 'unsigned int'; do
  35688. if test "$tst_posix_strerror_r_type_arg3" = "unknown"; then
  35689. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35690. /* end confdefs.h. */
  35691. $curl_includes_string
  35692. int strerror_r(int errnum, char *resultbuf, $arg3 bufsize);
  35693. int main (void)
  35694. {
  35695. if(0 != strerror_r(0, 0, 0))
  35696. return 1;
  35697. ;
  35698. return 0;
  35699. }
  35700. _ACEOF
  35701. if ac_fn_c_try_compile "$LINENO"
  35702. then :
  35703. tst_posix_strerror_r_type_arg3="$arg3"
  35704. fi
  35705. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  35706. fi
  35707. done
  35708. case "$tst_posix_strerror_r_type_arg3" in
  35709. unknown)
  35710. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  35711. printf "%s\n" "no" >&6; }
  35712. tst_posix_strerror_r="no"
  35713. ;;
  35714. *)
  35715. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  35716. printf "%s\n" "yes" >&6; }
  35717. tst_posix_strerror_r="yes"
  35718. ;;
  35719. esac
  35720. fi
  35721. #
  35722. if test "x$cross_compiling" != "xyes" &&
  35723. test "$tst_posix_strerror_r" = "yes"; then
  35724. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
  35725. printf %s "checking if strerror_r seems to work... " >&6; }
  35726. case $host_os in
  35727. darwin*)
  35728. if test "$cross_compiling" = yes
  35729. then :
  35730. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  35731. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  35732. as_fn_error $? "cannot run test program while cross compiling
  35733. See \`config.log' for more details" "$LINENO" 5; }
  35734. else $as_nop
  35735. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35736. /* end confdefs.h. */
  35737. $curl_includes_stdlib
  35738. $curl_includes_string
  35739. # include <errno.h>
  35740. int main (void)
  35741. {
  35742. char buffer[1024];
  35743. int error = 1;
  35744. buffer[0] = '\0';
  35745. error = strerror_r(EACCES, buffer, sizeof(buffer));
  35746. if(error)
  35747. exit(1); /* fail */
  35748. if(buffer[0] == '\0')
  35749. exit(1); /* fail */
  35750. else
  35751. exit(0);
  35752. ;
  35753. return 0;
  35754. }
  35755. _ACEOF
  35756. if ac_fn_c_try_run "$LINENO"
  35757. then :
  35758. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  35759. printf "%s\n" "yes" >&6; }
  35760. tst_works_posix_strerror_r="yes"
  35761. else $as_nop
  35762. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  35763. printf "%s\n" "no" >&6; }
  35764. tst_works_posix_strerror_r="no"
  35765. fi
  35766. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  35767. conftest.$ac_objext conftest.beam conftest.$ac_ext
  35768. fi
  35769. ;;
  35770. *)
  35771. old=$LD_LIBRARY_PATH
  35772. LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
  35773. export LD_LIBRARY_PATH
  35774. if test "$cross_compiling" = yes
  35775. then :
  35776. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  35777. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  35778. as_fn_error $? "cannot run test program while cross compiling
  35779. See \`config.log' for more details" "$LINENO" 5; }
  35780. else $as_nop
  35781. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35782. /* end confdefs.h. */
  35783. $curl_includes_stdlib
  35784. $curl_includes_string
  35785. # include <errno.h>
  35786. int main (void)
  35787. {
  35788. char buffer[1024];
  35789. int error = 1;
  35790. buffer[0] = '\0';
  35791. error = strerror_r(EACCES, buffer, sizeof(buffer));
  35792. if(error)
  35793. exit(1); /* fail */
  35794. if(buffer[0] == '\0')
  35795. exit(1); /* fail */
  35796. else
  35797. exit(0);
  35798. ;
  35799. return 0;
  35800. }
  35801. _ACEOF
  35802. if ac_fn_c_try_run "$LINENO"
  35803. then :
  35804. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  35805. printf "%s\n" "yes" >&6; }
  35806. tst_works_posix_strerror_r="yes"
  35807. else $as_nop
  35808. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  35809. printf "%s\n" "no" >&6; }
  35810. tst_works_posix_strerror_r="no"
  35811. fi
  35812. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  35813. conftest.$ac_objext conftest.beam conftest.$ac_ext
  35814. fi
  35815. LD_LIBRARY_PATH=$old # restore
  35816. ;;
  35817. esac
  35818. fi
  35819. #
  35820. if test "$tst_works_glibc_strerror_r" = "yes"; then
  35821. tst_posix_strerror_r="no"
  35822. fi
  35823. if test "$tst_works_posix_strerror_r" = "yes"; then
  35824. tst_glibc_strerror_r="no"
  35825. fi
  35826. if test "$tst_glibc_strerror_r" = "yes" &&
  35827. test "$tst_works_glibc_strerror_r" != "no" &&
  35828. test "$tst_posix_strerror_r" != "yes"; then
  35829. tst_allow_strerror_r="check"
  35830. fi
  35831. if test "$tst_posix_strerror_r" = "yes" &&
  35832. test "$tst_works_posix_strerror_r" != "no" &&
  35833. test "$tst_glibc_strerror_r" != "yes"; then
  35834. tst_allow_strerror_r="check"
  35835. fi
  35836. if test "$tst_allow_strerror_r" = "check"; then
  35837. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r usage allowed" >&5
  35838. printf %s "checking if strerror_r usage allowed... " >&6; }
  35839. if test "x$curl_disallow_strerror_r" != "xyes"; then
  35840. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  35841. printf "%s\n" "yes" >&6; }
  35842. tst_allow_strerror_r="yes"
  35843. else
  35844. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  35845. printf "%s\n" "no" >&6; }
  35846. tst_allow_strerror_r="no"
  35847. fi
  35848. fi
  35849. #
  35850. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r might be used" >&5
  35851. printf %s "checking if strerror_r might be used... " >&6; }
  35852. if test "$tst_links_strerror_r" = "yes" &&
  35853. test "$tst_proto_strerror_r" = "yes" &&
  35854. test "$tst_compi_strerror_r" = "yes" &&
  35855. test "$tst_allow_strerror_r" = "yes"; then
  35856. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  35857. printf "%s\n" "yes" >&6; }
  35858. if test "$tst_glibc_strerror_r" = "yes"; then
  35859. printf "%s\n" "#define HAVE_STRERROR_R 1" >>confdefs.h
  35860. printf "%s\n" "#define HAVE_GLIBC_STRERROR_R 1" >>confdefs.h
  35861. fi
  35862. if test "$tst_posix_strerror_r" = "yes"; then
  35863. printf "%s\n" "#define HAVE_STRERROR_R 1" >>confdefs.h
  35864. printf "%s\n" "#define HAVE_POSIX_STRERROR_R 1" >>confdefs.h
  35865. fi
  35866. curl_cv_func_strerror_r="yes"
  35867. else
  35868. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  35869. printf "%s\n" "no" >&6; }
  35870. curl_cv_func_strerror_r="no"
  35871. fi
  35872. #
  35873. if test "$tst_compi_strerror_r" = "yes" &&
  35874. test "$tst_allow_strerror_r" = "unknown"; then
  35875. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&5
  35876. printf "%s\n" "$as_me: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&2;}
  35877. fi
  35878. #
  35879. #
  35880. tst_links_stricmp="unknown"
  35881. tst_proto_stricmp="unknown"
  35882. tst_compi_stricmp="unknown"
  35883. tst_allow_stricmp="unknown"
  35884. #
  35885. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if stricmp can be linked" >&5
  35886. printf %s "checking if stricmp can be linked... " >&6; }
  35887. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35888. /* end confdefs.h. */
  35889. #define stricmp innocuous_stricmp
  35890. #ifdef __STDC__
  35891. # include <limits.h>
  35892. #else
  35893. # include <assert.h>
  35894. #endif
  35895. #undef stricmp
  35896. #ifdef __cplusplus
  35897. extern "C"
  35898. #endif
  35899. char stricmp ();
  35900. #if defined __stub_stricmp || defined __stub___stricmp
  35901. choke me
  35902. #endif
  35903. int main (void)
  35904. {
  35905. return stricmp ();
  35906. ;
  35907. return 0;
  35908. }
  35909. _ACEOF
  35910. if ac_fn_c_try_link "$LINENO"
  35911. then :
  35912. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  35913. printf "%s\n" "yes" >&6; }
  35914. tst_links_stricmp="yes"
  35915. else $as_nop
  35916. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  35917. printf "%s\n" "no" >&6; }
  35918. tst_links_stricmp="no"
  35919. fi
  35920. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  35921. conftest$ac_exeext conftest.$ac_ext
  35922. #
  35923. if test "$tst_links_stricmp" = "yes"; then
  35924. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if stricmp is prototyped" >&5
  35925. printf %s "checking if stricmp is prototyped... " >&6; }
  35926. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35927. /* end confdefs.h. */
  35928. $curl_includes_string
  35929. _ACEOF
  35930. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  35931. $EGREP "stricmp" >/dev/null 2>&1
  35932. then :
  35933. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  35934. printf "%s\n" "yes" >&6; }
  35935. tst_proto_stricmp="yes"
  35936. else $as_nop
  35937. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  35938. printf "%s\n" "no" >&6; }
  35939. tst_proto_stricmp="no"
  35940. fi
  35941. rm -rf conftest*
  35942. fi
  35943. #
  35944. if test "$tst_proto_stricmp" = "yes"; then
  35945. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if stricmp is compilable" >&5
  35946. printf %s "checking if stricmp is compilable... " >&6; }
  35947. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35948. /* end confdefs.h. */
  35949. $curl_includes_string
  35950. int main (void)
  35951. {
  35952. if(0 != stricmp(0, 0))
  35953. return 1;
  35954. ;
  35955. return 0;
  35956. }
  35957. _ACEOF
  35958. if ac_fn_c_try_compile "$LINENO"
  35959. then :
  35960. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  35961. printf "%s\n" "yes" >&6; }
  35962. tst_compi_stricmp="yes"
  35963. else $as_nop
  35964. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  35965. printf "%s\n" "no" >&6; }
  35966. tst_compi_stricmp="no"
  35967. fi
  35968. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  35969. fi
  35970. #
  35971. if test "$tst_compi_stricmp" = "yes"; then
  35972. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if stricmp usage allowed" >&5
  35973. printf %s "checking if stricmp usage allowed... " >&6; }
  35974. if test "x$curl_disallow_stricmp" != "xyes"; then
  35975. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  35976. printf "%s\n" "yes" >&6; }
  35977. tst_allow_stricmp="yes"
  35978. else
  35979. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  35980. printf "%s\n" "no" >&6; }
  35981. tst_allow_stricmp="no"
  35982. fi
  35983. fi
  35984. #
  35985. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if stricmp might be used" >&5
  35986. printf %s "checking if stricmp might be used... " >&6; }
  35987. if test "$tst_links_stricmp" = "yes" &&
  35988. test "$tst_proto_stricmp" = "yes" &&
  35989. test "$tst_compi_stricmp" = "yes" &&
  35990. test "$tst_allow_stricmp" = "yes"; then
  35991. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  35992. printf "%s\n" "yes" >&6; }
  35993. printf "%s\n" "#define HAVE_STRICMP 1" >>confdefs.h
  35994. curl_cv_func_stricmp="yes"
  35995. else
  35996. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  35997. printf "%s\n" "no" >&6; }
  35998. curl_cv_func_stricmp="no"
  35999. fi
  36000. #
  36001. tst_links_strtok_r="unknown"
  36002. tst_proto_strtok_r="unknown"
  36003. tst_compi_strtok_r="unknown"
  36004. tst_allow_strtok_r="unknown"
  36005. #
  36006. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtok_r can be linked" >&5
  36007. printf %s "checking if strtok_r can be linked... " >&6; }
  36008. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36009. /* end confdefs.h. */
  36010. #define strtok_r innocuous_strtok_r
  36011. #ifdef __STDC__
  36012. # include <limits.h>
  36013. #else
  36014. # include <assert.h>
  36015. #endif
  36016. #undef strtok_r
  36017. #ifdef __cplusplus
  36018. extern "C"
  36019. #endif
  36020. char strtok_r ();
  36021. #if defined __stub_strtok_r || defined __stub___strtok_r
  36022. choke me
  36023. #endif
  36024. int main (void)
  36025. {
  36026. return strtok_r ();
  36027. ;
  36028. return 0;
  36029. }
  36030. _ACEOF
  36031. if ac_fn_c_try_link "$LINENO"
  36032. then :
  36033. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  36034. printf "%s\n" "yes" >&6; }
  36035. tst_links_strtok_r="yes"
  36036. else $as_nop
  36037. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  36038. printf "%s\n" "no" >&6; }
  36039. tst_links_strtok_r="no"
  36040. fi
  36041. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  36042. conftest$ac_exeext conftest.$ac_ext
  36043. #
  36044. if test "$tst_links_strtok_r" = "yes"; then
  36045. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtok_r is prototyped" >&5
  36046. printf %s "checking if strtok_r is prototyped... " >&6; }
  36047. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36048. /* end confdefs.h. */
  36049. $curl_includes_string
  36050. _ACEOF
  36051. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  36052. $EGREP "strtok_r" >/dev/null 2>&1
  36053. then :
  36054. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  36055. printf "%s\n" "yes" >&6; }
  36056. tst_proto_strtok_r="yes"
  36057. else $as_nop
  36058. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  36059. printf "%s\n" "no" >&6; }
  36060. tst_proto_strtok_r="no"
  36061. fi
  36062. rm -rf conftest*
  36063. fi
  36064. #
  36065. if test "$tst_proto_strtok_r" = "yes"; then
  36066. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtok_r is compilable" >&5
  36067. printf %s "checking if strtok_r is compilable... " >&6; }
  36068. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36069. /* end confdefs.h. */
  36070. $curl_includes_string
  36071. int main (void)
  36072. {
  36073. if(0 != strtok_r(0, 0, 0))
  36074. return 1;
  36075. ;
  36076. return 0;
  36077. }
  36078. _ACEOF
  36079. if ac_fn_c_try_compile "$LINENO"
  36080. then :
  36081. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  36082. printf "%s\n" "yes" >&6; }
  36083. tst_compi_strtok_r="yes"
  36084. else $as_nop
  36085. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  36086. printf "%s\n" "no" >&6; }
  36087. tst_compi_strtok_r="no"
  36088. fi
  36089. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  36090. fi
  36091. #
  36092. if test "$tst_compi_strtok_r" = "yes"; then
  36093. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtok_r usage allowed" >&5
  36094. printf %s "checking if strtok_r usage allowed... " >&6; }
  36095. if test "x$curl_disallow_strtok_r" != "xyes"; then
  36096. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  36097. printf "%s\n" "yes" >&6; }
  36098. tst_allow_strtok_r="yes"
  36099. else
  36100. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  36101. printf "%s\n" "no" >&6; }
  36102. tst_allow_strtok_r="no"
  36103. fi
  36104. fi
  36105. #
  36106. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtok_r might be used" >&5
  36107. printf %s "checking if strtok_r might be used... " >&6; }
  36108. if test "$tst_links_strtok_r" = "yes" &&
  36109. test "$tst_proto_strtok_r" = "yes" &&
  36110. test "$tst_compi_strtok_r" = "yes" &&
  36111. test "$tst_allow_strtok_r" = "yes"; then
  36112. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  36113. printf "%s\n" "yes" >&6; }
  36114. printf "%s\n" "#define HAVE_STRTOK_R 1" >>confdefs.h
  36115. curl_cv_func_strtok_r="yes"
  36116. else
  36117. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  36118. printf "%s\n" "no" >&6; }
  36119. curl_cv_func_strtok_r="no"
  36120. fi
  36121. #
  36122. tst_links_strtoll="unknown"
  36123. tst_proto_strtoll="unknown"
  36124. tst_compi_strtoll="unknown"
  36125. tst_allow_strtoll="unknown"
  36126. #
  36127. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtoll can be linked" >&5
  36128. printf %s "checking if strtoll can be linked... " >&6; }
  36129. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36130. /* end confdefs.h. */
  36131. #define strtoll innocuous_strtoll
  36132. #ifdef __STDC__
  36133. # include <limits.h>
  36134. #else
  36135. # include <assert.h>
  36136. #endif
  36137. #undef strtoll
  36138. #ifdef __cplusplus
  36139. extern "C"
  36140. #endif
  36141. char strtoll ();
  36142. #if defined __stub_strtoll || defined __stub___strtoll
  36143. choke me
  36144. #endif
  36145. int main (void)
  36146. {
  36147. return strtoll ();
  36148. ;
  36149. return 0;
  36150. }
  36151. _ACEOF
  36152. if ac_fn_c_try_link "$LINENO"
  36153. then :
  36154. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  36155. printf "%s\n" "yes" >&6; }
  36156. tst_links_strtoll="yes"
  36157. else $as_nop
  36158. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  36159. printf "%s\n" "no" >&6; }
  36160. tst_links_strtoll="no"
  36161. fi
  36162. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  36163. conftest$ac_exeext conftest.$ac_ext
  36164. #
  36165. if test "$tst_links_strtoll" = "yes"; then
  36166. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtoll is prototyped" >&5
  36167. printf %s "checking if strtoll is prototyped... " >&6; }
  36168. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36169. /* end confdefs.h. */
  36170. $curl_includes_stdlib
  36171. _ACEOF
  36172. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  36173. $EGREP "strtoll" >/dev/null 2>&1
  36174. then :
  36175. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  36176. printf "%s\n" "yes" >&6; }
  36177. tst_proto_strtoll="yes"
  36178. else $as_nop
  36179. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  36180. printf "%s\n" "no" >&6; }
  36181. tst_proto_strtoll="no"
  36182. fi
  36183. rm -rf conftest*
  36184. fi
  36185. #
  36186. if test "$tst_proto_strtoll" = "yes"; then
  36187. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtoll is compilable" >&5
  36188. printf %s "checking if strtoll is compilable... " >&6; }
  36189. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36190. /* end confdefs.h. */
  36191. $curl_includes_stdlib
  36192. int main (void)
  36193. {
  36194. if(0 != strtoll(0, 0, 0))
  36195. return 1;
  36196. ;
  36197. return 0;
  36198. }
  36199. _ACEOF
  36200. if ac_fn_c_try_compile "$LINENO"
  36201. then :
  36202. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  36203. printf "%s\n" "yes" >&6; }
  36204. tst_compi_strtoll="yes"
  36205. else $as_nop
  36206. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  36207. printf "%s\n" "no" >&6; }
  36208. tst_compi_strtoll="no"
  36209. fi
  36210. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  36211. fi
  36212. #
  36213. if test "$tst_compi_strtoll" = "yes"; then
  36214. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtoll usage allowed" >&5
  36215. printf %s "checking if strtoll usage allowed... " >&6; }
  36216. if test "x$curl_disallow_strtoll" != "xyes"; then
  36217. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  36218. printf "%s\n" "yes" >&6; }
  36219. tst_allow_strtoll="yes"
  36220. else
  36221. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  36222. printf "%s\n" "no" >&6; }
  36223. tst_allow_strtoll="no"
  36224. fi
  36225. fi
  36226. #
  36227. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtoll might be used" >&5
  36228. printf %s "checking if strtoll might be used... " >&6; }
  36229. if test "$tst_links_strtoll" = "yes" &&
  36230. test "$tst_proto_strtoll" = "yes" &&
  36231. test "$tst_compi_strtoll" = "yes" &&
  36232. test "$tst_allow_strtoll" = "yes"; then
  36233. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  36234. printf "%s\n" "yes" >&6; }
  36235. printf "%s\n" "#define HAVE_STRTOLL 1" >>confdefs.h
  36236. curl_cv_func_strtoll="yes"
  36237. else
  36238. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  36239. printf "%s\n" "no" >&6; }
  36240. curl_cv_func_strtoll="no"
  36241. fi
  36242. case $host in
  36243. *msdosdjgpp)
  36244. ac_cv_func_pipe=no
  36245. skipcheck_pipe=yes
  36246. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: skip check for pipe on msdosdjgpp" >&5
  36247. printf "%s\n" "$as_me: skip check for pipe on msdosdjgpp" >&6;}
  36248. ;;
  36249. esac
  36250. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
  36251. printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
  36252. if test ${ac_cv_c_undeclared_builtin_options+y}
  36253. then :
  36254. printf %s "(cached) " >&6
  36255. else $as_nop
  36256. ac_save_CFLAGS=$CFLAGS
  36257. ac_cv_c_undeclared_builtin_options='cannot detect'
  36258. for ac_arg in '' -fno-builtin; do
  36259. CFLAGS="$ac_save_CFLAGS $ac_arg"
  36260. # This test program should *not* compile successfully.
  36261. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36262. /* end confdefs.h. */
  36263. int main (void)
  36264. {
  36265. (void) strchr;
  36266. ;
  36267. return 0;
  36268. }
  36269. _ACEOF
  36270. if ac_fn_c_try_compile "$LINENO"
  36271. then :
  36272. else $as_nop
  36273. # This test program should compile successfully.
  36274. # No library function is consistently available on
  36275. # freestanding implementations, so test against a dummy
  36276. # declaration. Include always-available headers on the
  36277. # off chance that they somehow elicit warnings.
  36278. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36279. /* end confdefs.h. */
  36280. #include <float.h>
  36281. #include <limits.h>
  36282. #include <stdarg.h>
  36283. #include <stddef.h>
  36284. extern void ac_decl (int, char *);
  36285. int main (void)
  36286. {
  36287. (void) ac_decl (0, (char *) 0);
  36288. (void) ac_decl;
  36289. ;
  36290. return 0;
  36291. }
  36292. _ACEOF
  36293. if ac_fn_c_try_compile "$LINENO"
  36294. then :
  36295. if test x"$ac_arg" = x
  36296. then :
  36297. ac_cv_c_undeclared_builtin_options='none needed'
  36298. else $as_nop
  36299. ac_cv_c_undeclared_builtin_options=$ac_arg
  36300. fi
  36301. break
  36302. fi
  36303. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  36304. fi
  36305. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  36306. done
  36307. CFLAGS=$ac_save_CFLAGS
  36308. fi
  36309. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
  36310. printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
  36311. case $ac_cv_c_undeclared_builtin_options in #(
  36312. 'cannot detect') :
  36313. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  36314. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  36315. as_fn_error $? "cannot make $CC report undeclared builtins
  36316. See \`config.log' for more details" "$LINENO" 5; } ;; #(
  36317. 'none needed') :
  36318. ac_c_undeclared_builtin_options='' ;; #(
  36319. *) :
  36320. ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
  36321. esac
  36322. ac_fn_check_decl "$LINENO" "getpwuid_r" "ac_cv_have_decl_getpwuid_r" "#include <pwd.h>
  36323. #include <sys/types.h>
  36324. " "$ac_c_undeclared_builtin_options" "CFLAGS"
  36325. if test "x$ac_cv_have_decl_getpwuid_r" = xyes
  36326. then :
  36327. ac_have_decl=1
  36328. else $as_nop
  36329. ac_have_decl=0
  36330. fi
  36331. printf "%s\n" "#define HAVE_DECL_GETPWUID_R $ac_have_decl" >>confdefs.h
  36332. if test $ac_have_decl = 1
  36333. then :
  36334. else $as_nop
  36335. printf "%s\n" "#define HAVE_DECL_GETPWUID_R_MISSING 1" >>confdefs.h
  36336. fi
  36337. for ac_func in fnmatch fchmod geteuid getpass_r getppid getpwuid getpwuid_r getrlimit gettimeofday if_nametoindex mach_absolute_time pipe sched_yield sendmsg setlocale setmode setrlimit utime utimes
  36338. do :
  36339. as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh`
  36340. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  36341. if eval test \"x\$"$as_ac_var"\" = x"yes"
  36342. then :
  36343. cat >>confdefs.h <<_ACEOF
  36344. #define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1
  36345. _ACEOF
  36346. else $as_nop
  36347. func="$ac_func"
  36348. eval skipcheck=\$skipcheck_$func
  36349. if test "x$skipcheck" != "xyes"; then
  36350. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking deeper for $func" >&5
  36351. printf %s "checking deeper for $func... " >&6; }
  36352. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36353. /* end confdefs.h. */
  36354. int main (void)
  36355. {
  36356. $func ();
  36357. ;
  36358. return 0;
  36359. }
  36360. _ACEOF
  36361. if ac_fn_c_try_link "$LINENO"
  36362. then :
  36363. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  36364. printf "%s\n" "yes" >&6; }
  36365. eval "ac_cv_func_$func=yes"
  36366. cat >>confdefs.h <<_ACEOF
  36367. #define `echo "HAVE_$func" | sed 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' | sed 's/^A-Z0-9_/_/g'` 1
  36368. _ACEOF
  36369. else $as_nop
  36370. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
  36371. printf "%s\n" "but still no" >&6; }
  36372. fi
  36373. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  36374. conftest$ac_exeext conftest.$ac_ext
  36375. fi
  36376. fi
  36377. done
  36378. #
  36379. tst_method="unknown"
  36380. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to set a socket into non-blocking mode" >&5
  36381. printf %s "checking how to set a socket into non-blocking mode... " >&6; }
  36382. if test "x$curl_cv_func_fcntl_o_nonblock" = "xyes"; then
  36383. tst_method="fcntl O_NONBLOCK"
  36384. elif test "x$curl_cv_func_ioctl_fionbio" = "xyes"; then
  36385. tst_method="ioctl FIONBIO"
  36386. elif test "x$curl_cv_func_ioctlsocket_fionbio" = "xyes"; then
  36387. tst_method="ioctlsocket FIONBIO"
  36388. elif test "x$curl_cv_func_ioctlsocket_camel_fionbio" = "xyes"; then
  36389. tst_method="IoctlSocket FIONBIO"
  36390. elif test "x$curl_cv_func_setsockopt_so_nonblock" = "xyes"; then
  36391. tst_method="setsockopt SO_NONBLOCK"
  36392. fi
  36393. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_method" >&5
  36394. printf "%s\n" "$tst_method" >&6; }
  36395. if test "$tst_method" = "unknown"; then
  36396. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine non-blocking socket method." >&5
  36397. printf "%s\n" "$as_me: WARNING: cannot determine non-blocking socket method." >&2;}
  36398. fi
  36399. # Extract the first word of "perl", so it can be a program name with args.
  36400. set dummy perl; ac_word=$2
  36401. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  36402. printf %s "checking for $ac_word... " >&6; }
  36403. if test ${ac_cv_path_PERL+y}
  36404. then :
  36405. printf %s "(cached) " >&6
  36406. else $as_nop
  36407. case $PERL in
  36408. [\\/]* | ?:[\\/]*)
  36409. ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
  36410. ;;
  36411. *)
  36412. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  36413. as_dummy="$PATH:/usr/local/bin/perl:/usr/bin/:/usr/local/bin "
  36414. for as_dir in $as_dummy
  36415. do
  36416. IFS=$as_save_IFS
  36417. case $as_dir in #(((
  36418. '') as_dir=./ ;;
  36419. */) ;;
  36420. *) as_dir=$as_dir/ ;;
  36421. esac
  36422. for ac_exec_ext in '' $ac_executable_extensions; do
  36423. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  36424. ac_cv_path_PERL="$as_dir$ac_word$ac_exec_ext"
  36425. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  36426. break 2
  36427. fi
  36428. done
  36429. done
  36430. IFS=$as_save_IFS
  36431. ;;
  36432. esac
  36433. fi
  36434. PERL=$ac_cv_path_PERL
  36435. if test -n "$PERL"; then
  36436. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
  36437. printf "%s\n" "$PERL" >&6; }
  36438. else
  36439. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  36440. printf "%s\n" "no" >&6; }
  36441. fi
  36442. for ac_prog in gnroff nroff
  36443. do
  36444. # Extract the first word of "$ac_prog", so it can be a program name with args.
  36445. set dummy $ac_prog; ac_word=$2
  36446. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  36447. printf %s "checking for $ac_word... " >&6; }
  36448. if test ${ac_cv_path_NROFF+y}
  36449. then :
  36450. printf %s "(cached) " >&6
  36451. else $as_nop
  36452. case $NROFF in
  36453. [\\/]* | ?:[\\/]*)
  36454. ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
  36455. ;;
  36456. *)
  36457. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  36458. as_dummy="$PATH:/usr/bin/:/usr/local/bin "
  36459. for as_dir in $as_dummy
  36460. do
  36461. IFS=$as_save_IFS
  36462. case $as_dir in #(((
  36463. '') as_dir=./ ;;
  36464. */) ;;
  36465. *) as_dir=$as_dir/ ;;
  36466. esac
  36467. for ac_exec_ext in '' $ac_executable_extensions; do
  36468. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  36469. ac_cv_path_NROFF="$as_dir$ac_word$ac_exec_ext"
  36470. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  36471. break 2
  36472. fi
  36473. done
  36474. done
  36475. IFS=$as_save_IFS
  36476. ;;
  36477. esac
  36478. fi
  36479. NROFF=$ac_cv_path_NROFF
  36480. if test -n "$NROFF"; then
  36481. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
  36482. printf "%s\n" "$NROFF" >&6; }
  36483. else
  36484. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  36485. printf "%s\n" "no" >&6; }
  36486. fi
  36487. test -n "$NROFF" && break
  36488. done
  36489. if test -n "$NROFF"; then
  36490. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to use *nroff to get plain text from man pages" >&5
  36491. printf %s "checking how to use *nroff to get plain text from man pages... " >&6; }
  36492. MANOPT="-man"
  36493. mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
  36494. if test -z "$mancheck"; then
  36495. MANOPT="-mandoc"
  36496. mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
  36497. if test -z "$mancheck"; then
  36498. MANOPT=""
  36499. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  36500. printf "%s\n" "failed" >&6; }
  36501. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: found no *nroff option to get plaintext from man pages" >&5
  36502. printf "%s\n" "$as_me: WARNING: found no *nroff option to get plaintext from man pages" >&2;}
  36503. else
  36504. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
  36505. printf "%s\n" "$MANOPT" >&6; }
  36506. fi
  36507. else
  36508. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
  36509. printf "%s\n" "$MANOPT" >&6; }
  36510. fi
  36511. fi
  36512. if test -z "$MANOPT"
  36513. then
  36514. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: disabling built-in manual" >&5
  36515. printf "%s\n" "$as_me: WARNING: disabling built-in manual" >&2;}
  36516. USE_MANUAL="no";
  36517. fi
  36518. if test "$USE_MANUAL" = "1"; then
  36519. printf "%s\n" "#define USE_MANUAL 1" >>confdefs.h
  36520. curl_manual_msg="enabled"
  36521. fi
  36522. if test x"$USE_MANUAL" = x1; then
  36523. USE_MANUAL_TRUE=
  36524. USE_MANUAL_FALSE='#'
  36525. else
  36526. USE_MANUAL_TRUE='#'
  36527. USE_MANUAL_FALSE=
  36528. fi
  36529. #
  36530. if test "$want_ares" = "yes"; then
  36531. clean_CPPFLAGS="$CPPFLAGS"
  36532. clean_LDFLAGS="$LDFLAGS"
  36533. clean_LIBS="$LIBS"
  36534. configure_runpath=`pwd`
  36535. if test -n "$want_ares_path"; then
  36536. ARES_PCDIR="$want_ares_path/lib/pkgconfig"
  36537. if test -n "$PKG_CONFIG"; then
  36538. PKGCONFIG="$PKG_CONFIG"
  36539. else
  36540. if test -n "$ac_tool_prefix"; then
  36541. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  36542. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  36543. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  36544. printf %s "checking for $ac_word... " >&6; }
  36545. if test ${ac_cv_path_PKGCONFIG+y}
  36546. then :
  36547. printf %s "(cached) " >&6
  36548. else $as_nop
  36549. case $PKGCONFIG in
  36550. [\\/]* | ?:[\\/]*)
  36551. ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
  36552. ;;
  36553. *)
  36554. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  36555. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  36556. for as_dir in $as_dummy
  36557. do
  36558. IFS=$as_save_IFS
  36559. case $as_dir in #(((
  36560. '') as_dir=./ ;;
  36561. */) ;;
  36562. *) as_dir=$as_dir/ ;;
  36563. esac
  36564. for ac_exec_ext in '' $ac_executable_extensions; do
  36565. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  36566. ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  36567. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  36568. break 2
  36569. fi
  36570. done
  36571. done
  36572. IFS=$as_save_IFS
  36573. ;;
  36574. esac
  36575. fi
  36576. PKGCONFIG=$ac_cv_path_PKGCONFIG
  36577. if test -n "$PKGCONFIG"; then
  36578. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
  36579. printf "%s\n" "$PKGCONFIG" >&6; }
  36580. else
  36581. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  36582. printf "%s\n" "no" >&6; }
  36583. fi
  36584. fi
  36585. if test -z "$ac_cv_path_PKGCONFIG"; then
  36586. ac_pt_PKGCONFIG=$PKGCONFIG
  36587. # Extract the first word of "pkg-config", so it can be a program name with args.
  36588. set dummy pkg-config; ac_word=$2
  36589. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  36590. printf %s "checking for $ac_word... " >&6; }
  36591. if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
  36592. then :
  36593. printf %s "(cached) " >&6
  36594. else $as_nop
  36595. case $ac_pt_PKGCONFIG in
  36596. [\\/]* | ?:[\\/]*)
  36597. ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
  36598. ;;
  36599. *)
  36600. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  36601. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  36602. for as_dir in $as_dummy
  36603. do
  36604. IFS=$as_save_IFS
  36605. case $as_dir in #(((
  36606. '') as_dir=./ ;;
  36607. */) ;;
  36608. *) as_dir=$as_dir/ ;;
  36609. esac
  36610. for ac_exec_ext in '' $ac_executable_extensions; do
  36611. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  36612. ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  36613. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  36614. break 2
  36615. fi
  36616. done
  36617. done
  36618. IFS=$as_save_IFS
  36619. ;;
  36620. esac
  36621. fi
  36622. ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
  36623. if test -n "$ac_pt_PKGCONFIG"; then
  36624. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
  36625. printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
  36626. else
  36627. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  36628. printf "%s\n" "no" >&6; }
  36629. fi
  36630. if test "x$ac_pt_PKGCONFIG" = x; then
  36631. PKGCONFIG="no"
  36632. else
  36633. case $cross_compiling:$ac_tool_warned in
  36634. yes:)
  36635. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  36636. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  36637. ac_tool_warned=yes ;;
  36638. esac
  36639. PKGCONFIG=$ac_pt_PKGCONFIG
  36640. fi
  36641. else
  36642. PKGCONFIG="$ac_cv_path_PKGCONFIG"
  36643. fi
  36644. fi
  36645. if test "x$PKGCONFIG" != "xno"; then
  36646. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcares options with pkg-config" >&5
  36647. printf %s "checking for libcares options with pkg-config... " >&6; }
  36648. itexists=`
  36649. if test -n "$ARES_PCDIR"; then
  36650. PKG_CONFIG_LIBDIR="$ARES_PCDIR"
  36651. export PKG_CONFIG_LIBDIR
  36652. fi
  36653. $PKGCONFIG --exists libcares >/dev/null 2>&1 && echo 1`
  36654. if test -z "$itexists"; then
  36655. PKGCONFIG="no"
  36656. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  36657. printf "%s\n" "no" >&6; }
  36658. else
  36659. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
  36660. printf "%s\n" "found" >&6; }
  36661. fi
  36662. fi
  36663. if test "$PKGCONFIG" != "no" ; then
  36664. ares_LIBS=`
  36665. if test -n "$ARES_PCDIR"; then
  36666. PKG_CONFIG_LIBDIR="$ARES_PCDIR"
  36667. export PKG_CONFIG_LIBDIR
  36668. fi
  36669. $PKGCONFIG --libs-only-l libcares`
  36670. ares_LDFLAGS=`
  36671. if test -n "$ARES_PCDIR"; then
  36672. PKG_CONFIG_LIBDIR="$ARES_PCDIR"
  36673. export PKG_CONFIG_LIBDIR
  36674. fi
  36675. $PKGCONFIG --libs-only-L libcares`
  36676. ares_CPPFLAGS=`
  36677. if test -n "$ARES_PCDIR"; then
  36678. PKG_CONFIG_LIBDIR="$ARES_PCDIR"
  36679. export PKG_CONFIG_LIBDIR
  36680. fi
  36681. $PKGCONFIG --cflags-only-I libcares`
  36682. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: ares LIBS: \"$ares_LIBS\"" >&5
  36683. printf "%s\n" "$as_me: pkg-config: ares LIBS: \"$ares_LIBS\"" >&6;}
  36684. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: ares LDFLAGS: \"$ares_LDFLAGS\"" >&5
  36685. printf "%s\n" "$as_me: pkg-config: ares LDFLAGS: \"$ares_LDFLAGS\"" >&6;}
  36686. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: ares CPPFLAGS: \"$ares_CPPFLAGS\"" >&5
  36687. printf "%s\n" "$as_me: pkg-config: ares CPPFLAGS: \"$ares_CPPFLAGS\"" >&6;}
  36688. else
  36689. ares_CPPFLAGS="-I$want_ares_path/include"
  36690. ares_LDFLAGS="-L$want_ares_path/lib"
  36691. ares_LIBS="-lcares"
  36692. fi
  36693. else
  36694. if test -n "$PKG_CONFIG"; then
  36695. PKGCONFIG="$PKG_CONFIG"
  36696. else
  36697. if test -n "$ac_tool_prefix"; then
  36698. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  36699. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  36700. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  36701. printf %s "checking for $ac_word... " >&6; }
  36702. if test ${ac_cv_path_PKGCONFIG+y}
  36703. then :
  36704. printf %s "(cached) " >&6
  36705. else $as_nop
  36706. case $PKGCONFIG in
  36707. [\\/]* | ?:[\\/]*)
  36708. ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
  36709. ;;
  36710. *)
  36711. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  36712. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  36713. for as_dir in $as_dummy
  36714. do
  36715. IFS=$as_save_IFS
  36716. case $as_dir in #(((
  36717. '') as_dir=./ ;;
  36718. */) ;;
  36719. *) as_dir=$as_dir/ ;;
  36720. esac
  36721. for ac_exec_ext in '' $ac_executable_extensions; do
  36722. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  36723. ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  36724. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  36725. break 2
  36726. fi
  36727. done
  36728. done
  36729. IFS=$as_save_IFS
  36730. ;;
  36731. esac
  36732. fi
  36733. PKGCONFIG=$ac_cv_path_PKGCONFIG
  36734. if test -n "$PKGCONFIG"; then
  36735. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
  36736. printf "%s\n" "$PKGCONFIG" >&6; }
  36737. else
  36738. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  36739. printf "%s\n" "no" >&6; }
  36740. fi
  36741. fi
  36742. if test -z "$ac_cv_path_PKGCONFIG"; then
  36743. ac_pt_PKGCONFIG=$PKGCONFIG
  36744. # Extract the first word of "pkg-config", so it can be a program name with args.
  36745. set dummy pkg-config; ac_word=$2
  36746. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  36747. printf %s "checking for $ac_word... " >&6; }
  36748. if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
  36749. then :
  36750. printf %s "(cached) " >&6
  36751. else $as_nop
  36752. case $ac_pt_PKGCONFIG in
  36753. [\\/]* | ?:[\\/]*)
  36754. ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
  36755. ;;
  36756. *)
  36757. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  36758. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  36759. for as_dir in $as_dummy
  36760. do
  36761. IFS=$as_save_IFS
  36762. case $as_dir in #(((
  36763. '') as_dir=./ ;;
  36764. */) ;;
  36765. *) as_dir=$as_dir/ ;;
  36766. esac
  36767. for ac_exec_ext in '' $ac_executable_extensions; do
  36768. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  36769. ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  36770. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  36771. break 2
  36772. fi
  36773. done
  36774. done
  36775. IFS=$as_save_IFS
  36776. ;;
  36777. esac
  36778. fi
  36779. ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
  36780. if test -n "$ac_pt_PKGCONFIG"; then
  36781. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
  36782. printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
  36783. else
  36784. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  36785. printf "%s\n" "no" >&6; }
  36786. fi
  36787. if test "x$ac_pt_PKGCONFIG" = x; then
  36788. PKGCONFIG="no"
  36789. else
  36790. case $cross_compiling:$ac_tool_warned in
  36791. yes:)
  36792. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  36793. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  36794. ac_tool_warned=yes ;;
  36795. esac
  36796. PKGCONFIG=$ac_pt_PKGCONFIG
  36797. fi
  36798. else
  36799. PKGCONFIG="$ac_cv_path_PKGCONFIG"
  36800. fi
  36801. fi
  36802. if test "x$PKGCONFIG" != "xno"; then
  36803. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcares options with pkg-config" >&5
  36804. printf %s "checking for libcares options with pkg-config... " >&6; }
  36805. itexists=`
  36806. if test -n ""; then
  36807. PKG_CONFIG_LIBDIR=""
  36808. export PKG_CONFIG_LIBDIR
  36809. fi
  36810. $PKGCONFIG --exists libcares >/dev/null 2>&1 && echo 1`
  36811. if test -z "$itexists"; then
  36812. PKGCONFIG="no"
  36813. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  36814. printf "%s\n" "no" >&6; }
  36815. else
  36816. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
  36817. printf "%s\n" "found" >&6; }
  36818. fi
  36819. fi
  36820. if test "$PKGCONFIG" != "no" ; then
  36821. ares_LIBS=`$PKGCONFIG --libs-only-l libcares`
  36822. ares_LDFLAGS=`$PKGCONFIG --libs-only-L libcares`
  36823. ares_CPPFLAGS=`$PKGCONFIG --cflags-only-I libcares`
  36824. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: ares_LIBS: \"$ares_LIBS\"" >&5
  36825. printf "%s\n" "$as_me: pkg-config: ares_LIBS: \"$ares_LIBS\"" >&6;}
  36826. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: ares_LDFLAGS: \"$ares_LDFLAGS\"" >&5
  36827. printf "%s\n" "$as_me: pkg-config: ares_LDFLAGS: \"$ares_LDFLAGS\"" >&6;}
  36828. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: ares_CPPFLAGS: \"$ares_CPPFLAGS\"" >&5
  36829. printf "%s\n" "$as_me: pkg-config: ares_CPPFLAGS: \"$ares_CPPFLAGS\"" >&6;}
  36830. else
  36831. ares_CPPFLAGS=""
  36832. ares_LDFLAGS=""
  36833. ares_LIBS="-lcares"
  36834. fi
  36835. fi
  36836. #
  36837. CPPFLAGS="$clean_CPPFLAGS $ares_CPPFLAGS"
  36838. LDFLAGS="$clean_LDFLAGS $ares_LDFLAGS"
  36839. LIBS="$ares_LIBS $clean_LIBS"
  36840. #
  36841. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that c-ares is good and recent enough" >&5
  36842. printf %s "checking that c-ares is good and recent enough... " >&6; }
  36843. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36844. /* end confdefs.h. */
  36845. #include <ares.h>
  36846. /* set of dummy functions in case c-ares was built with debug */
  36847. void curl_dofree() { }
  36848. void curl_sclose() { }
  36849. void curl_domalloc() { }
  36850. void curl_docalloc() { }
  36851. void curl_socket() { }
  36852. int main (void)
  36853. {
  36854. ares_channel channel;
  36855. ares_cancel(channel); /* added in 1.2.0 */
  36856. ares_process_fd(channel, 0, 0); /* added in 1.4.0 */
  36857. ares_dup(&channel, channel); /* added in 1.6.0 */
  36858. ;
  36859. return 0;
  36860. }
  36861. _ACEOF
  36862. if ac_fn_c_try_link "$LINENO"
  36863. then :
  36864. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  36865. printf "%s\n" "yes" >&6; }
  36866. else $as_nop
  36867. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  36868. printf "%s\n" "no" >&6; }
  36869. as_fn_error $? "c-ares library defective or too old" "$LINENO" 5
  36870. CPPFLAGS="$clean_CPPFLAGS"
  36871. LDFLAGS="$clean_LDFLAGS"
  36872. LIBS="$clean_LIBS"
  36873. # prevent usage
  36874. want_ares="no"
  36875. fi
  36876. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  36877. conftest$ac_exeext conftest.$ac_ext
  36878. if test "$want_ares" = "yes"; then
  36879. printf "%s\n" "#define USE_ARES 1" >>confdefs.h
  36880. USE_ARES=1
  36881. curl_res_msg="c-ares"
  36882. fi
  36883. fi
  36884. if test "x$curl_cv_native_windows" != "xyes" &&
  36885. test "x$enable_shared" = "xyes"; then
  36886. build_libhostname=yes
  36887. else
  36888. build_libhostname=no
  36889. fi
  36890. if test x$build_libhostname = xyes; then
  36891. BUILD_LIBHOSTNAME_TRUE=
  36892. BUILD_LIBHOSTNAME_FALSE='#'
  36893. else
  36894. BUILD_LIBHOSTNAME_TRUE='#'
  36895. BUILD_LIBHOSTNAME_FALSE=
  36896. fi
  36897. if test "x$want_ares" != xyes; then
  36898. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable the threaded resolver" >&5
  36899. printf %s "checking whether to enable the threaded resolver... " >&6; }
  36900. OPT_THRES="default"
  36901. # Check whether --enable-threaded_resolver was given.
  36902. if test ${enable_threaded_resolver+y}
  36903. then :
  36904. enableval=$enable_threaded_resolver; OPT_THRES=$enableval
  36905. fi
  36906. case "$OPT_THRES" in
  36907. no)
  36908. want_thres="no"
  36909. ;;
  36910. *)
  36911. want_thres="yes"
  36912. ;;
  36913. esac
  36914. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_thres" >&5
  36915. printf "%s\n" "$want_thres" >&6; }
  36916. fi
  36917. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use POSIX threads for threaded resolver" >&5
  36918. printf %s "checking whether to use POSIX threads for threaded resolver... " >&6; }
  36919. # Check whether --enable-pthreads was given.
  36920. if test ${enable_pthreads+y}
  36921. then :
  36922. enableval=$enable_pthreads; case "$enableval" in
  36923. no) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  36924. printf "%s\n" "no" >&6; }
  36925. want_pthreads=no
  36926. ;;
  36927. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  36928. printf "%s\n" "yes" >&6; }
  36929. want_pthreads=yes
  36930. ;;
  36931. esac
  36932. else $as_nop
  36933. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: auto" >&5
  36934. printf "%s\n" "auto" >&6; }
  36935. want_pthreads=auto
  36936. fi
  36937. if test "$want_pthreads" != "no"; then
  36938. if test "$want_pthreads" = "yes" && test "$dontwant_rt" = "yes"; then
  36939. as_fn_error $? "options --enable-pthreads and --disable-rt are mutually exclusive" "$LINENO" 5
  36940. fi
  36941. if test "$dontwant_rt" != "no"; then
  36942. if test "$want_pthreads" = "yes"; then
  36943. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-pthreads Ignored since librt is disabled." >&5
  36944. printf "%s\n" "$as_me: WARNING: --enable-pthreads Ignored since librt is disabled." >&2;}
  36945. fi
  36946. want_pthreads=no
  36947. fi
  36948. fi
  36949. if test "$want_pthreads" != "no" && test "$want_thres" != "yes"; then
  36950. want_pthreads=no
  36951. fi
  36952. if test "$want_pthreads" != "no"; then
  36953. ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
  36954. if test "x$ac_cv_header_pthread_h" = xyes
  36955. then :
  36956. printf "%s\n" "#define HAVE_PTHREAD_H 1" >>confdefs.h
  36957. save_CFLAGS="$CFLAGS"
  36958. save_LIBS="$LIBS"
  36959. LIBS=
  36960. ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
  36961. if test "x$ac_cv_func_pthread_create" = xyes
  36962. then :
  36963. USE_THREADS_POSIX=1
  36964. fi
  36965. LIBS="$save_LIBS"
  36966. case $host in
  36967. *-hp-hpux*)
  36968. USE_THREADS_POSIX=""
  36969. ;;
  36970. *)
  36971. ;;
  36972. esac
  36973. if test "$USE_THREADS_POSIX" != "1"
  36974. then
  36975. # assign PTHREAD for pkg-config use
  36976. PTHREAD=" -pthread"
  36977. case $host in
  36978. *-ibm-aix*)
  36979. COMPILER_VERSION=`"$CC" -qversion 2>/dev/null`
  36980. if test x"$COMPILER_VERSION" = "x"; then
  36981. CFLAGS="$CFLAGS -pthread"
  36982. else
  36983. CFLAGS="$CFLAGS -qthreaded"
  36984. fi
  36985. ;;
  36986. powerpc-*amigaos*)
  36987. PTHREAD=" -lpthread"
  36988. ;;
  36989. *)
  36990. CFLAGS="$CFLAGS -pthread"
  36991. ;;
  36992. esac
  36993. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
  36994. printf %s "checking for pthread_create in -lpthread... " >&6; }
  36995. if test ${ac_cv_lib_pthread_pthread_create+y}
  36996. then :
  36997. printf %s "(cached) " >&6
  36998. else $as_nop
  36999. ac_check_lib_save_LIBS=$LIBS
  37000. LIBS="-lpthread $LIBS"
  37001. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  37002. /* end confdefs.h. */
  37003. #ifdef __cplusplus
  37004. extern "C"
  37005. #endif
  37006. char pthread_create ();
  37007. int main (void)
  37008. {
  37009. return pthread_create ();
  37010. ;
  37011. return 0;
  37012. }
  37013. _ACEOF
  37014. if ac_fn_c_try_link "$LINENO"
  37015. then :
  37016. ac_cv_lib_pthread_pthread_create=yes
  37017. else $as_nop
  37018. ac_cv_lib_pthread_pthread_create=no
  37019. fi
  37020. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  37021. conftest$ac_exeext conftest.$ac_ext
  37022. LIBS=$ac_check_lib_save_LIBS
  37023. fi
  37024. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
  37025. printf "%s\n" "$ac_cv_lib_pthread_pthread_create" >&6; }
  37026. if test "x$ac_cv_lib_pthread_pthread_create" = xyes
  37027. then :
  37028. USE_THREADS_POSIX=1
  37029. else $as_nop
  37030. CFLAGS="$save_CFLAGS"
  37031. fi
  37032. fi
  37033. if test "x$USE_THREADS_POSIX" = "x1"
  37034. then
  37035. printf "%s\n" "#define USE_THREADS_POSIX 1" >>confdefs.h
  37036. curl_res_msg="POSIX threaded"
  37037. fi
  37038. fi
  37039. fi
  37040. if test "$want_thres" = "yes" && test "x$USE_THREADS_POSIX" != "x1"; then
  37041. if test "$want_pthreads" = "yes"; then
  37042. as_fn_error $? "--enable-pthreads but pthreads was not found" "$LINENO" 5
  37043. fi
  37044. if test "$curl_cv_native_windows" = "yes"; then
  37045. USE_THREADS_WIN32=1
  37046. printf "%s\n" "#define USE_THREADS_WIN32 1" >>confdefs.h
  37047. curl_res_msg="Win32 threaded"
  37048. else
  37049. as_fn_error $? "Threaded resolver enabled but no thread library found" "$LINENO" 5
  37050. fi
  37051. fi
  37052. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking convert -I options to -isystem" >&5
  37053. printf %s "checking convert -I options to -isystem... " >&6; }
  37054. if test "$compiler_id" = "GNU_C" ||
  37055. test "$compiler_id" = "CLANG"; then
  37056. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  37057. printf "%s\n" "yes" >&6; }
  37058. tmp_has_include="no"
  37059. tmp_chg_FLAGS="$CFLAGS"
  37060. for word1 in $tmp_chg_FLAGS; do
  37061. case "$word1" in
  37062. -I*)
  37063. tmp_has_include="yes"
  37064. ;;
  37065. esac
  37066. done
  37067. if test "$tmp_has_include" = "yes"; then
  37068. tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
  37069. tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
  37070. CFLAGS="$tmp_chg_FLAGS"
  37071. squeeze CFLAGS
  37072. fi
  37073. tmp_has_include="no"
  37074. tmp_chg_FLAGS="$CPPFLAGS"
  37075. for word1 in $tmp_chg_FLAGS; do
  37076. case "$word1" in
  37077. -I*)
  37078. tmp_has_include="yes"
  37079. ;;
  37080. esac
  37081. done
  37082. if test "$tmp_has_include" = "yes"; then
  37083. tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
  37084. tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
  37085. CPPFLAGS="$tmp_chg_FLAGS"
  37086. squeeze CPPFLAGS
  37087. fi
  37088. else
  37089. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  37090. printf "%s\n" "no" >&6; }
  37091. fi
  37092. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable verbose strings" >&5
  37093. printf %s "checking whether to enable verbose strings... " >&6; }
  37094. # Check whether --enable-verbose was given.
  37095. if test ${enable_verbose+y}
  37096. then :
  37097. enableval=$enable_verbose; case "$enableval" in
  37098. no)
  37099. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  37100. printf "%s\n" "no" >&6; }
  37101. printf "%s\n" "#define CURL_DISABLE_VERBOSE_STRINGS 1" >>confdefs.h
  37102. curl_verbose_msg="no"
  37103. ;;
  37104. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  37105. printf "%s\n" "yes" >&6; }
  37106. ;;
  37107. esac
  37108. else $as_nop
  37109. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  37110. printf "%s\n" "yes" >&6; }
  37111. fi
  37112. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable SSPI support (Windows native builds only)" >&5
  37113. printf %s "checking whether to enable SSPI support (Windows native builds only)... " >&6; }
  37114. # Check whether --enable-sspi was given.
  37115. if test ${enable_sspi+y}
  37116. then :
  37117. enableval=$enable_sspi; case "$enableval" in
  37118. yes)
  37119. if test "$curl_cv_native_windows" = "yes"; then
  37120. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  37121. printf "%s\n" "yes" >&6; }
  37122. printf "%s\n" "#define USE_WINDOWS_SSPI 1" >>confdefs.h
  37123. USE_WINDOWS_SSPI=1
  37124. curl_sspi_msg="enabled"
  37125. else
  37126. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  37127. printf "%s\n" "no" >&6; }
  37128. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&5
  37129. printf "%s\n" "$as_me: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&2;}
  37130. fi
  37131. ;;
  37132. *)
  37133. if test "x$SCHANNEL_ENABLED" = "x1"; then
  37134. # --with-schannel implies --enable-sspi
  37135. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  37136. printf "%s\n" "yes" >&6; }
  37137. else
  37138. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  37139. printf "%s\n" "no" >&6; }
  37140. fi
  37141. ;;
  37142. esac
  37143. else $as_nop
  37144. if test "x$SCHANNEL_ENABLED" = "x1"; then
  37145. # --with-schannel implies --enable-sspi
  37146. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  37147. printf "%s\n" "yes" >&6; }
  37148. else
  37149. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  37150. printf "%s\n" "no" >&6; }
  37151. fi
  37152. fi
  37153. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable cryptographic authentication methods" >&5
  37154. printf %s "checking whether to enable cryptographic authentication methods... " >&6; }
  37155. # Check whether --enable-crypto-auth was given.
  37156. if test ${enable_crypto_auth+y}
  37157. then :
  37158. enableval=$enable_crypto_auth; case "$enableval" in
  37159. no)
  37160. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  37161. printf "%s\n" "no" >&6; }
  37162. printf "%s\n" "#define CURL_DISABLE_CRYPTO_AUTH 1" >>confdefs.h
  37163. CURL_DISABLE_CRYPTO_AUTH=1
  37164. ;;
  37165. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  37166. printf "%s\n" "yes" >&6; }
  37167. ;;
  37168. esac
  37169. else $as_nop
  37170. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  37171. printf "%s\n" "yes" >&6; }
  37172. fi
  37173. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support NTLM" >&5
  37174. printf %s "checking whether to support NTLM... " >&6; }
  37175. # Check whether --enable-ntlm was given.
  37176. if test ${enable_ntlm+y}
  37177. then :
  37178. enableval=$enable_ntlm; case "$enableval" in
  37179. no)
  37180. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  37181. printf "%s\n" "no" >&6; }
  37182. printf "%s\n" "#define CURL_DISABLE_NTLM 1" >>confdefs.h
  37183. CURL_DISABLE_NTLM=1
  37184. ;;
  37185. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  37186. printf "%s\n" "yes" >&6; }
  37187. ;;
  37188. esac
  37189. else $as_nop
  37190. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  37191. printf "%s\n" "yes" >&6; }
  37192. fi
  37193. OPT_NTLM_WB="default"
  37194. # Check whether --enable-ntlm-wb was given.
  37195. if test ${enable_ntlm_wb+y}
  37196. then :
  37197. enableval=$enable_ntlm_wb; OPT_NTLM_WB=$enableval
  37198. fi
  37199. want_ntlm_wb_file="/usr/bin/ntlm_auth"
  37200. case "$OPT_NTLM_WB" in
  37201. no)
  37202. want_ntlm_wb="no"
  37203. ;;
  37204. default)
  37205. want_ntlm_wb="yes"
  37206. ;;
  37207. *)
  37208. want_ntlm_wb="yes"
  37209. if test -n "$enableval" && test "$enableval" != "yes"; then
  37210. want_ntlm_wb_file="$enableval"
  37211. fi
  37212. ;;
  37213. esac
  37214. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable NTLM delegation to winbind's helper" >&5
  37215. printf %s "checking whether to enable NTLM delegation to winbind's helper... " >&6; }
  37216. if test "$curl_cv_native_windows" = "yes" ||
  37217. test "x$SSL_ENABLED" = "x"; then
  37218. want_ntlm_wb_file=""
  37219. want_ntlm_wb="no"
  37220. fi
  37221. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_ntlm_wb" >&5
  37222. printf "%s\n" "$want_ntlm_wb" >&6; }
  37223. if test "$want_ntlm_wb" = "yes"; then
  37224. printf "%s\n" "#define NTLM_WB_ENABLED 1" >>confdefs.h
  37225. printf "%s\n" "#define NTLM_WB_FILE \"$want_ntlm_wb_file\"" >>confdefs.h
  37226. NTLM_WB_ENABLED=1
  37227. fi
  37228. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable TLS-SRP authentication" >&5
  37229. printf %s "checking whether to enable TLS-SRP authentication... " >&6; }
  37230. # Check whether --enable-tls-srp was given.
  37231. if test ${enable_tls_srp+y}
  37232. then :
  37233. enableval=$enable_tls_srp; case "$enableval" in
  37234. no)
  37235. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  37236. printf "%s\n" "no" >&6; }
  37237. want_tls_srp=no
  37238. ;;
  37239. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  37240. printf "%s\n" "yes" >&6; }
  37241. want_tls_srp=yes
  37242. ;;
  37243. esac
  37244. else $as_nop
  37245. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  37246. printf "%s\n" "yes" >&6; }
  37247. want_tls_srp=yes
  37248. fi
  37249. if test "$want_tls_srp" = "yes" && ( test "x$HAVE_GNUTLS_SRP" = "x1" || test "x$HAVE_OPENSSL_SRP" = "x1") ; then
  37250. printf "%s\n" "#define USE_TLS_SRP 1" >>confdefs.h
  37251. USE_TLS_SRP=1
  37252. curl_tls_srp_msg="enabled"
  37253. fi
  37254. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable Unix domain sockets" >&5
  37255. printf %s "checking whether to enable Unix domain sockets... " >&6; }
  37256. # Check whether --enable-unix-sockets was given.
  37257. if test ${enable_unix_sockets+y}
  37258. then :
  37259. enableval=$enable_unix_sockets; case "$enableval" in
  37260. no) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  37261. printf "%s\n" "no" >&6; }
  37262. want_unix_sockets=no
  37263. ;;
  37264. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  37265. printf "%s\n" "yes" >&6; }
  37266. want_unix_sockets=yes
  37267. ;;
  37268. esac
  37269. else $as_nop
  37270. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: auto" >&5
  37271. printf "%s\n" "auto" >&6; }
  37272. want_unix_sockets=auto
  37273. fi
  37274. if test "x$want_unix_sockets" != "xno"; then
  37275. ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_path" "ac_cv_member_struct_sockaddr_un_sun_path" "
  37276. #include <sys/un.h>
  37277. "
  37278. if test "x$ac_cv_member_struct_sockaddr_un_sun_path" = xyes
  37279. then :
  37280. printf "%s\n" "#define USE_UNIX_SOCKETS 1" >>confdefs.h
  37281. USE_UNIX_SOCKETS=1
  37282. curl_unix_sockets_msg="enabled"
  37283. else $as_nop
  37284. if test "x$want_unix_sockets" = "xyes"; then
  37285. as_fn_error $? "--enable-unix-sockets is not available on this platform!" "$LINENO" 5
  37286. fi
  37287. fi
  37288. fi
  37289. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support cookies" >&5
  37290. printf %s "checking whether to support cookies... " >&6; }
  37291. # Check whether --enable-cookies was given.
  37292. if test ${enable_cookies+y}
  37293. then :
  37294. enableval=$enable_cookies; case "$enableval" in
  37295. no)
  37296. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  37297. printf "%s\n" "no" >&6; }
  37298. printf "%s\n" "#define CURL_DISABLE_COOKIES 1" >>confdefs.h
  37299. ;;
  37300. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  37301. printf "%s\n" "yes" >&6; }
  37302. ;;
  37303. esac
  37304. else $as_nop
  37305. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  37306. printf "%s\n" "yes" >&6; }
  37307. fi
  37308. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support socketpair" >&5
  37309. printf %s "checking whether to support socketpair... " >&6; }
  37310. # Check whether --enable-socketpair was given.
  37311. if test ${enable_socketpair+y}
  37312. then :
  37313. enableval=$enable_socketpair; case "$enableval" in
  37314. no)
  37315. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  37316. printf "%s\n" "no" >&6; }
  37317. printf "%s\n" "#define CURL_DISABLE_SOCKETPAIR 1" >>confdefs.h
  37318. ;;
  37319. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  37320. printf "%s\n" "yes" >&6; }
  37321. ;;
  37322. esac
  37323. else $as_nop
  37324. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  37325. printf "%s\n" "yes" >&6; }
  37326. fi
  37327. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support HTTP authentication" >&5
  37328. printf %s "checking whether to support HTTP authentication... " >&6; }
  37329. # Check whether --enable-http-auth was given.
  37330. if test ${enable_http_auth+y}
  37331. then :
  37332. enableval=$enable_http_auth; case "$enableval" in
  37333. no)
  37334. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  37335. printf "%s\n" "no" >&6; }
  37336. printf "%s\n" "#define CURL_DISABLE_HTTP_AUTH 1" >>confdefs.h
  37337. ;;
  37338. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  37339. printf "%s\n" "yes" >&6; }
  37340. ;;
  37341. esac
  37342. else $as_nop
  37343. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  37344. printf "%s\n" "yes" >&6; }
  37345. fi
  37346. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support DoH" >&5
  37347. printf %s "checking whether to support DoH... " >&6; }
  37348. # Check whether --enable-doh was given.
  37349. if test ${enable_doh+y}
  37350. then :
  37351. enableval=$enable_doh; case "$enableval" in
  37352. no)
  37353. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  37354. printf "%s\n" "no" >&6; }
  37355. printf "%s\n" "#define CURL_DISABLE_DOH 1" >>confdefs.h
  37356. ;;
  37357. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  37358. printf "%s\n" "yes" >&6; }
  37359. ;;
  37360. esac
  37361. else $as_nop
  37362. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  37363. printf "%s\n" "yes" >&6; }
  37364. fi
  37365. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support the MIME API" >&5
  37366. printf %s "checking whether to support the MIME API... " >&6; }
  37367. # Check whether --enable-mime was given.
  37368. if test ${enable_mime+y}
  37369. then :
  37370. enableval=$enable_mime; case "$enableval" in
  37371. no)
  37372. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  37373. printf "%s\n" "no" >&6; }
  37374. printf "%s\n" "#define CURL_DISABLE_MIME 1" >>confdefs.h
  37375. ;;
  37376. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  37377. printf "%s\n" "yes" >&6; }
  37378. ;;
  37379. esac
  37380. else $as_nop
  37381. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  37382. printf "%s\n" "yes" >&6; }
  37383. fi
  37384. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support date parsing" >&5
  37385. printf %s "checking whether to support date parsing... " >&6; }
  37386. # Check whether --enable-dateparse was given.
  37387. if test ${enable_dateparse+y}
  37388. then :
  37389. enableval=$enable_dateparse; case "$enableval" in
  37390. no)
  37391. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  37392. printf "%s\n" "no" >&6; }
  37393. printf "%s\n" "#define CURL_DISABLE_PARSEDATE 1" >>confdefs.h
  37394. ;;
  37395. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  37396. printf "%s\n" "yes" >&6; }
  37397. ;;
  37398. esac
  37399. else $as_nop
  37400. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  37401. printf "%s\n" "yes" >&6; }
  37402. fi
  37403. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support netrc parsing" >&5
  37404. printf %s "checking whether to support netrc parsing... " >&6; }
  37405. # Check whether --enable-netrc was given.
  37406. if test ${enable_netrc+y}
  37407. then :
  37408. enableval=$enable_netrc; case "$enableval" in
  37409. no)
  37410. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  37411. printf "%s\n" "no" >&6; }
  37412. printf "%s\n" "#define CURL_DISABLE_NETRC 1" >>confdefs.h
  37413. ;;
  37414. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  37415. printf "%s\n" "yes" >&6; }
  37416. ;;
  37417. esac
  37418. else $as_nop
  37419. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  37420. printf "%s\n" "yes" >&6; }
  37421. fi
  37422. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support progress-meter" >&5
  37423. printf %s "checking whether to support progress-meter... " >&6; }
  37424. # Check whether --enable-progress-meter was given.
  37425. if test ${enable_progress_meter+y}
  37426. then :
  37427. enableval=$enable_progress_meter; case "$enableval" in
  37428. no)
  37429. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  37430. printf "%s\n" "no" >&6; }
  37431. printf "%s\n" "#define CURL_DISABLE_PROGRESS_METER 1" >>confdefs.h
  37432. ;;
  37433. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  37434. printf "%s\n" "yes" >&6; }
  37435. ;;
  37436. esac
  37437. else $as_nop
  37438. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  37439. printf "%s\n" "yes" >&6; }
  37440. fi
  37441. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support DNS shuffling" >&5
  37442. printf %s "checking whether to support DNS shuffling... " >&6; }
  37443. # Check whether --enable-dnsshuffle was given.
  37444. if test ${enable_dnsshuffle+y}
  37445. then :
  37446. enableval=$enable_dnsshuffle; case "$enableval" in
  37447. no)
  37448. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  37449. printf "%s\n" "no" >&6; }
  37450. printf "%s\n" "#define CURL_DISABLE_SHUFFLE_DNS 1" >>confdefs.h
  37451. ;;
  37452. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  37453. printf "%s\n" "yes" >&6; }
  37454. ;;
  37455. esac
  37456. else $as_nop
  37457. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  37458. printf "%s\n" "yes" >&6; }
  37459. fi
  37460. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support curl_easy_option*" >&5
  37461. printf %s "checking whether to support curl_easy_option*... " >&6; }
  37462. # Check whether --enable-get-easy-options was given.
  37463. if test ${enable_get_easy_options+y}
  37464. then :
  37465. enableval=$enable_get_easy_options; case "$enableval" in
  37466. no)
  37467. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  37468. printf "%s\n" "no" >&6; }
  37469. printf "%s\n" "#define CURL_DISABLE_GETOPTIONS 1" >>confdefs.h
  37470. ;;
  37471. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  37472. printf "%s\n" "yes" >&6; }
  37473. ;;
  37474. esac
  37475. else $as_nop
  37476. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  37477. printf "%s\n" "yes" >&6; }
  37478. fi
  37479. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support alt-svc" >&5
  37480. printf %s "checking whether to support alt-svc... " >&6; }
  37481. # Check whether --enable-alt-svc was given.
  37482. if test ${enable_alt_svc+y}
  37483. then :
  37484. enableval=$enable_alt_svc; case "$enableval" in
  37485. no)
  37486. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  37487. printf "%s\n" "no" >&6; }
  37488. printf "%s\n" "#define CURL_DISABLE_ALTSVC 1" >>confdefs.h
  37489. curl_altsvc_msg="no";
  37490. enable_altsvc="no"
  37491. ;;
  37492. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  37493. printf "%s\n" "yes" >&6; }
  37494. ;;
  37495. esac
  37496. else $as_nop
  37497. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  37498. printf "%s\n" "yes" >&6; }
  37499. fi
  37500. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support headers-api" >&5
  37501. printf %s "checking whether to support headers-api... " >&6; }
  37502. # Check whether --enable-headers-api was given.
  37503. if test ${enable_headers_api+y}
  37504. then :
  37505. enableval=$enable_headers_api; case "$enableval" in
  37506. no) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  37507. printf "%s\n" "no" >&6; }
  37508. curl_headers_msg="no (--enable-headers-api)"
  37509. printf "%s\n" "#define CURL_DISABLE_HEADERS_API 1" >>confdefs.h
  37510. ;;
  37511. *)
  37512. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  37513. printf "%s\n" "yes" >&6; }
  37514. ;;
  37515. esac
  37516. else $as_nop
  37517. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  37518. printf "%s\n" "yes" >&6; }
  37519. fi
  37520. if test -n "$SSL_ENABLED"; then
  37521. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support HSTS" >&5
  37522. printf %s "checking whether to support HSTS... " >&6; }
  37523. # Check whether --enable-hsts was given.
  37524. if test ${enable_hsts+y}
  37525. then :
  37526. enableval=$enable_hsts; case "$enableval" in
  37527. no)
  37528. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  37529. printf "%s\n" "no" >&6; }
  37530. hsts="no"
  37531. ;;
  37532. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  37533. printf "%s\n" "yes" >&6; }
  37534. ;;
  37535. esac
  37536. else $as_nop
  37537. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hsts" >&5
  37538. printf "%s\n" "$hsts" >&6; }
  37539. fi
  37540. else
  37541. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: disables HSTS due to lack of SSL" >&5
  37542. printf "%s\n" "$as_me: disables HSTS due to lack of SSL" >&6;}
  37543. hsts="no"
  37544. fi
  37545. if test "x$hsts" != "xyes"; then
  37546. curl_hsts_msg="no (--enable-hsts)";
  37547. printf "%s\n" "#define CURL_DISABLE_HSTS 1" >>confdefs.h
  37548. fi
  37549. if test "x$want_ech" != "xno"; then
  37550. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ECH support is available" >&5
  37551. printf %s "checking whether ECH support is available... " >&6; }
  37552. ECH_ENABLED=0
  37553. ECH_SUPPORT=''
  37554. if test "x$OPENSSL_ENABLED" = "x1"; then
  37555. for ac_func in SSL_get_ech_status
  37556. do :
  37557. ac_fn_c_check_func "$LINENO" "SSL_get_ech_status" "ac_cv_func_SSL_get_ech_status"
  37558. if test "x$ac_cv_func_SSL_get_ech_status" = xyes
  37559. then :
  37560. printf "%s\n" "#define HAVE_SSL_GET_ECH_STATUS 1" >>confdefs.h
  37561. ECH_SUPPORT="ECH support available (OpenSSL with SSL_get_ech_status)"
  37562. ECH_ENABLED=1
  37563. fi
  37564. done
  37565. fi
  37566. if test "x$ECH_ENABLED" = "x1"; then
  37567. printf "%s\n" "#define USE_ECH 1" >>confdefs.h
  37568. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ECH_SUPPORT" >&5
  37569. printf "%s\n" "$ECH_SUPPORT" >&6; }
  37570. experimental="$experimental ECH"
  37571. else
  37572. as_fn_error $? "--enable-ech ignored: No ECH support found" "$LINENO" 5
  37573. fi
  37574. fi
  37575. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether hiding of library internal symbols will actually happen" >&5
  37576. printf %s "checking whether hiding of library internal symbols will actually happen... " >&6; }
  37577. CFLAG_CURL_SYMBOL_HIDING=""
  37578. doing_symbol_hiding="no"
  37579. if test x"$curl_cv_native_windows" != "xyes" &&
  37580. test "$want_symbol_hiding" = "yes" &&
  37581. test "$supports_symbol_hiding" = "yes"; then
  37582. doing_symbol_hiding="yes"
  37583. CFLAG_CURL_SYMBOL_HIDING="$symbol_hiding_CFLAGS"
  37584. printf "%s\n" "#define CURL_EXTERN_SYMBOL $symbol_hiding_EXTERN" >>confdefs.h
  37585. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  37586. printf "%s\n" "yes" >&6; }
  37587. else
  37588. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  37589. printf "%s\n" "no" >&6; }
  37590. fi
  37591. if test x$doing_symbol_hiding = xyes; then
  37592. DOING_CURL_SYMBOL_HIDING_TRUE=
  37593. DOING_CURL_SYMBOL_HIDING_FALSE='#'
  37594. else
  37595. DOING_CURL_SYMBOL_HIDING_TRUE='#'
  37596. DOING_CURL_SYMBOL_HIDING_FALSE=
  37597. fi
  37598. LIBCURL_LIBS="$LIBS$PTHREAD"
  37599. BLANK_AT_MAKETIME=
  37600. if test x$cross_compiling = xyes; then
  37601. CROSSCOMPILING_TRUE=
  37602. CROSSCOMPILING_FALSE='#'
  37603. else
  37604. CROSSCOMPILING_TRUE='#'
  37605. CROSSCOMPILING_FALSE=
  37606. fi
  37607. ENABLE_SHARED="$enable_shared"
  37608. ENABLE_STATIC="$enable_static"
  37609. if test "x$enable_shared" = "xno"; then
  37610. LIBCURL_NO_SHARED=$LIBCURL_LIBS
  37611. else
  37612. LIBCURL_NO_SHARED=
  37613. fi
  37614. if test "x$OPENSSL_ENABLED" = "x1"; then
  37615. SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
  37616. elif test -n "$SSL_ENABLED"; then
  37617. SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
  37618. fi
  37619. if test "x$IPV6_ENABLED" = "x1"; then
  37620. SUPPORT_FEATURES="$SUPPORT_FEATURES IPv6"
  37621. fi
  37622. if test "x$USE_UNIX_SOCKETS" = "x1"; then
  37623. SUPPORT_FEATURES="$SUPPORT_FEATURES UnixSockets"
  37624. fi
  37625. if test "x$HAVE_LIBZ" = "x1"; then
  37626. SUPPORT_FEATURES="$SUPPORT_FEATURES libz"
  37627. fi
  37628. if test "x$HAVE_BROTLI" = "x1"; then
  37629. SUPPORT_FEATURES="$SUPPORT_FEATURES brotli"
  37630. fi
  37631. if test "x$HAVE_ZSTD" = "x1"; then
  37632. SUPPORT_FEATURES="$SUPPORT_FEATURES zstd"
  37633. fi
  37634. if test "x$USE_ARES" = "x1" -o "x$USE_THREADS_POSIX" = "x1" \
  37635. -o "x$USE_THREADS_WIN32" = "x1"; then
  37636. SUPPORT_FEATURES="$SUPPORT_FEATURES AsynchDNS"
  37637. fi
  37638. if test "x$IDN_ENABLED" = "x1"; then
  37639. SUPPORT_FEATURES="$SUPPORT_FEATURES IDN"
  37640. fi
  37641. if test "x$USE_WINDOWS_SSPI" = "x1"; then
  37642. SUPPORT_FEATURES="$SUPPORT_FEATURES SSPI"
  37643. fi
  37644. if test "x$HAVE_GSSAPI" = "x1"; then
  37645. SUPPORT_FEATURES="$SUPPORT_FEATURES GSS-API"
  37646. fi
  37647. if test "x$curl_psl_msg" = "xenabled"; then
  37648. SUPPORT_FEATURES="$SUPPORT_FEATURES PSL"
  37649. fi
  37650. if test "x$curl_gsasl_msg" = "xenabled"; then
  37651. SUPPORT_FEATURES="$SUPPORT_FEATURES GSASL"
  37652. fi
  37653. if test "x$enable_altsvc" = "xyes"; then
  37654. SUPPORT_FEATURES="$SUPPORT_FEATURES alt-svc"
  37655. fi
  37656. if test "x$hsts" = "xyes"; then
  37657. SUPPORT_FEATURES="$SUPPORT_FEATURES HSTS"
  37658. fi
  37659. if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" -a \
  37660. \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then
  37661. SUPPORT_FEATURES="$SUPPORT_FEATURES SPNEGO"
  37662. fi
  37663. if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" -a \
  37664. \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then
  37665. SUPPORT_FEATURES="$SUPPORT_FEATURES Kerberos"
  37666. fi
  37667. use_curl_ntlm_core=no
  37668. if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" -a \
  37669. "x$CURL_DISABLE_NTLM" != "x1"; then
  37670. if test "x$OPENSSL_ENABLED" = "x1" -o "x$MBEDTLS_ENABLED" = "x1" \
  37671. -o "x$GNUTLS_ENABLED" = "x1" -o "x$NSS_ENABLED" = "x1" \
  37672. -o "x$SECURETRANSPORT_ENABLED" = "x1" \
  37673. -o "x$USE_WIN32_CRYPTO" = "x1" \
  37674. -o "x$WOLFSSL_NTLM" = "x1"; then
  37675. use_curl_ntlm_core=yes
  37676. fi
  37677. if test "x$use_curl_ntlm_core" = "xyes" \
  37678. -o "x$USE_WINDOWS_SSPI" = "x1"; then
  37679. SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM"
  37680. if test "x$CURL_DISABLE_HTTP" != "x1" -a \
  37681. "x$NTLM_WB_ENABLED" = "x1"; then
  37682. SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM_WB"
  37683. fi
  37684. fi
  37685. fi
  37686. if test "x$USE_TLS_SRP" = "x1"; then
  37687. SUPPORT_FEATURES="$SUPPORT_FEATURES TLS-SRP"
  37688. fi
  37689. if test "x$USE_NGHTTP2" = "x1" -o "x$USE_HYPER" = "x1"; then
  37690. SUPPORT_FEATURES="$SUPPORT_FEATURES HTTP2"
  37691. fi
  37692. if test "x$USE_NGTCP2" = "x1" -o "x$USE_QUICHE" = "x1" \
  37693. -o "x$USE_MSH3" = "x1"; then
  37694. SUPPORT_FEATURES="$SUPPORT_FEATURES HTTP3"
  37695. fi
  37696. if test "x$CURL_WITH_MULTI_SSL" = "x1"; then
  37697. SUPPORT_FEATURES="$SUPPORT_FEATURES MultiSSL"
  37698. fi
  37699. if test "x$https_proxy" != "xno"; then
  37700. if test "x$OPENSSL_ENABLED" = "x1" -o "x$GNUTLS_ENABLED" = "x1" \
  37701. -o "x$NSS_ENABLED" = "x1"; then
  37702. SUPPORT_FEATURES="$SUPPORT_FEATURES HTTPS-proxy"
  37703. fi
  37704. fi
  37705. if test "x$ECH_ENABLED" = "x1"; then
  37706. SUPPORT_FEATURES="$SUPPORT_FEATURES ECH"
  37707. fi
  37708. if test ${ac_cv_sizeof_curl_off_t} -gt 4; then
  37709. if test ${ac_cv_sizeof_off_t} -gt 4 -o \
  37710. "$curl_win32_file_api" = "win32_large_files"; then
  37711. SUPPORT_FEATURES="$SUPPORT_FEATURES Largefile"
  37712. fi
  37713. fi
  37714. if test "$tst_atomic" = "yes"; then
  37715. SUPPORT_FEATURES="$SUPPORT_FEATURES threadsafe"
  37716. else
  37717. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  37718. /* end confdefs.h. */
  37719. #include <windows.h>
  37720. int main (void)
  37721. {
  37722. #if (WINVER < 0x600) && (_WIN32_WINNT < 0x600)
  37723. #error
  37724. #endif
  37725. ;
  37726. return 0;
  37727. }
  37728. _ACEOF
  37729. if ac_fn_c_try_compile "$LINENO"
  37730. then :
  37731. SUPPORT_FEATURES="$SUPPORT_FEATURES threadsafe"
  37732. fi
  37733. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  37734. fi
  37735. SUPPORT_FEATURES=`echo $SUPPORT_FEATURES | tr ' ' '\012' | sort | tr '\012' ' '`
  37736. if test "x$CURL_DISABLE_HTTP" != "x1"; then
  37737. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTP"
  37738. if test "x$SSL_ENABLED" = "x1"; then
  37739. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTPS"
  37740. fi
  37741. fi
  37742. if test "x$CURL_DISABLE_FTP" != "x1"; then
  37743. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTP"
  37744. if test "x$SSL_ENABLED" = "x1"; then
  37745. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTPS"
  37746. fi
  37747. fi
  37748. if test "x$CURL_DISABLE_FILE" != "x1"; then
  37749. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FILE"
  37750. fi
  37751. if test "x$CURL_DISABLE_TELNET" != "x1"; then
  37752. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TELNET"
  37753. fi
  37754. if test "x$CURL_DISABLE_LDAP" != "x1"; then
  37755. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAP"
  37756. if test "x$CURL_DISABLE_LDAPS" != "x1"; then
  37757. if (test "x$USE_OPENLDAP" = "x1" && test "x$SSL_ENABLED" = "x1") ||
  37758. (test "x$USE_OPENLDAP" != "x1" && test "x$HAVE_LDAP_SSL" = "x1"); then
  37759. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAPS"
  37760. fi
  37761. fi
  37762. fi
  37763. if test "x$CURL_DISABLE_DICT" != "x1"; then
  37764. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS DICT"
  37765. fi
  37766. if test "x$CURL_DISABLE_TFTP" != "x1"; then
  37767. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TFTP"
  37768. fi
  37769. if test "x$CURL_DISABLE_GOPHER" != "x1"; then
  37770. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS GOPHER"
  37771. if test "x$SSL_ENABLED" = "x1"; then
  37772. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS GOPHERS"
  37773. fi
  37774. fi
  37775. if test "x$CURL_DISABLE_MQTT" != "x1"; then
  37776. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS MQTT"
  37777. fi
  37778. if test "x$CURL_DISABLE_POP3" != "x1"; then
  37779. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3"
  37780. if test "x$SSL_ENABLED" = "x1"; then
  37781. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3S"
  37782. fi
  37783. fi
  37784. if test "x$CURL_DISABLE_IMAP" != "x1"; then
  37785. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAP"
  37786. if test "x$SSL_ENABLED" = "x1"; then
  37787. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAPS"
  37788. fi
  37789. fi
  37790. if test "x$CURL_DISABLE_SMB" != "x1" \
  37791. -a "x$use_curl_ntlm_core" = "xyes"; then
  37792. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMB"
  37793. if test "x$SSL_ENABLED" = "x1"; then
  37794. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMBS"
  37795. fi
  37796. fi
  37797. if test "x$CURL_DISABLE_SMTP" != "x1"; then
  37798. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTP"
  37799. if test "x$SSL_ENABLED" = "x1"; then
  37800. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTPS"
  37801. fi
  37802. fi
  37803. if test "x$USE_LIBSSH2" = "x1"; then
  37804. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SCP"
  37805. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
  37806. fi
  37807. if test "x$USE_LIBSSH" = "x1"; then
  37808. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SCP"
  37809. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
  37810. fi
  37811. if test "x$USE_WOLFSSH" = "x1"; then
  37812. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
  37813. fi
  37814. if test "x$CURL_DISABLE_RTSP" != "x1"; then
  37815. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTSP"
  37816. fi
  37817. if test "x$USE_LIBRTMP" = "x1"; then
  37818. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTMP"
  37819. fi
  37820. SUPPORT_PROTOCOLS=`echo $SUPPORT_PROTOCOLS | tr ' ' '\012' | sort | tr '\012' ' '`
  37821. squeeze CFLAGS
  37822. squeeze CPPFLAGS
  37823. squeeze DEFS
  37824. squeeze LDFLAGS
  37825. squeeze LIBS
  37826. squeeze LIBCURL_LIBS
  37827. squeeze CURL_NETWORK_LIBS
  37828. squeeze CURL_NETWORK_AND_TIME_LIBS
  37829. squeeze SUPPORT_FEATURES
  37830. squeeze SUPPORT_PROTOCOLS
  37831. xc_bad_var_libs=no
  37832. for xc_word in $LIBS; do
  37833. case "$xc_word" in
  37834. -l* | --library=*)
  37835. :
  37836. ;;
  37837. *)
  37838. xc_bad_var_libs=yes
  37839. ;;
  37840. esac
  37841. done
  37842. if test $xc_bad_var_libs = yes; then
  37843. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
  37844. printf "%s\n" "$as_me: using LIBS: $LIBS" >&6;}
  37845. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5
  37846. printf "%s\n" "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;}
  37847. fi
  37848. xc_bad_var_ldflags=no
  37849. for xc_word in $LDFLAGS; do
  37850. case "$xc_word" in
  37851. -D*)
  37852. xc_bad_var_ldflags=yes
  37853. ;;
  37854. -U*)
  37855. xc_bad_var_ldflags=yes
  37856. ;;
  37857. -I*)
  37858. xc_bad_var_ldflags=yes
  37859. ;;
  37860. -l* | --library=*)
  37861. xc_bad_var_ldflags=yes
  37862. ;;
  37863. esac
  37864. done
  37865. if test $xc_bad_var_ldflags = yes; then
  37866. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
  37867. printf "%s\n" "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
  37868. xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
  37869. for xc_word in $LDFLAGS; do
  37870. case "$xc_word" in
  37871. -D*)
  37872. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
  37873. printf "%s\n" "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
  37874. ;;
  37875. -U*)
  37876. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
  37877. printf "%s\n" "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
  37878. ;;
  37879. -I*)
  37880. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
  37881. printf "%s\n" "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
  37882. ;;
  37883. -l* | --library=*)
  37884. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
  37885. printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
  37886. ;;
  37887. esac
  37888. done
  37889. fi
  37890. xc_bad_var_cppflags=no
  37891. for xc_word in $CPPFLAGS; do
  37892. case "$xc_word" in
  37893. -rpath*)
  37894. xc_bad_var_cppflags=yes
  37895. ;;
  37896. -L* | --library-path=*)
  37897. xc_bad_var_cppflags=yes
  37898. ;;
  37899. -l* | --library=*)
  37900. xc_bad_var_cppflags=yes
  37901. ;;
  37902. esac
  37903. done
  37904. if test $xc_bad_var_cppflags = yes; then
  37905. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
  37906. printf "%s\n" "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
  37907. xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
  37908. for xc_word in $CPPFLAGS; do
  37909. case "$xc_word" in
  37910. -rpath*)
  37911. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
  37912. printf "%s\n" "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
  37913. ;;
  37914. -L* | --library-path=*)
  37915. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
  37916. printf "%s\n" "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
  37917. ;;
  37918. -l* | --library=*)
  37919. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
  37920. printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
  37921. ;;
  37922. esac
  37923. done
  37924. fi
  37925. xc_bad_var_cflags=no
  37926. for xc_word in $CFLAGS; do
  37927. case "$xc_word" in
  37928. -D*)
  37929. xc_bad_var_cflags=yes
  37930. ;;
  37931. -U*)
  37932. xc_bad_var_cflags=yes
  37933. ;;
  37934. -I*)
  37935. xc_bad_var_cflags=yes
  37936. ;;
  37937. -rpath*)
  37938. xc_bad_var_cflags=yes
  37939. ;;
  37940. -L* | --library-path=*)
  37941. xc_bad_var_cflags=yes
  37942. ;;
  37943. -l* | --library=*)
  37944. xc_bad_var_cflags=yes
  37945. ;;
  37946. esac
  37947. done
  37948. if test $xc_bad_var_cflags = yes; then
  37949. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
  37950. printf "%s\n" "$as_me: using CFLAGS: $CFLAGS" >&6;}
  37951. xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
  37952. for xc_word in $CFLAGS; do
  37953. case "$xc_word" in
  37954. -D*)
  37955. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
  37956. printf "%s\n" "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
  37957. ;;
  37958. -U*)
  37959. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
  37960. printf "%s\n" "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
  37961. ;;
  37962. -I*)
  37963. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
  37964. printf "%s\n" "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
  37965. ;;
  37966. -rpath*)
  37967. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
  37968. printf "%s\n" "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
  37969. ;;
  37970. -L* | --library-path=*)
  37971. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
  37972. printf "%s\n" "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
  37973. ;;
  37974. -l* | --library=*)
  37975. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
  37976. printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
  37977. ;;
  37978. esac
  37979. done
  37980. fi
  37981. if test $xc_bad_var_libs = yes ||
  37982. test $xc_bad_var_cflags = yes ||
  37983. test $xc_bad_var_ldflags = yes ||
  37984. test $xc_bad_var_cppflags = yes; then
  37985. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
  37986. printf "%s\n" "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
  37987. fi
  37988. SSL_BACKENDS=${ssl_backends}
  37989. if test "x$want_curldebug_assumed" = "xyes" &&
  37990. test "x$want_curldebug" = "xyes" && test "x$USE_ARES" = "x1"; then
  37991. ac_configure_args="$ac_configure_args --enable-curldebug"
  37992. fi
  37993. ac_config_files="$ac_config_files Makefile docs/Makefile docs/examples/Makefile docs/libcurl/Makefile docs/libcurl/opts/Makefile docs/cmdline-opts/Makefile include/Makefile include/curl/Makefile src/Makefile lib/Makefile scripts/Makefile lib/libcurl.vers lib/libcurl.plist tests/Makefile tests/certs/Makefile tests/certs/scripts/Makefile tests/data/Makefile tests/server/Makefile tests/libtest/Makefile tests/unit/Makefile packages/Makefile packages/vms/Makefile curl-config libcurl.pc"
  37994. cat >confcache <<\_ACEOF
  37995. # This file is a shell script that caches the results of configure
  37996. # tests run on this system so they can be shared between configure
  37997. # scripts and configure runs, see configure's option --config-cache.
  37998. # It is not useful on other systems. If it contains results you don't
  37999. # want to keep, you may remove or edit it.
  38000. #
  38001. # config.status only pays attention to the cache file if you give it
  38002. # the --recheck option to rerun configure.
  38003. #
  38004. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  38005. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  38006. # following values.
  38007. _ACEOF
  38008. # The following way of writing the cache mishandles newlines in values,
  38009. # but we know of no workaround that is simple, portable, and efficient.
  38010. # So, we kill variables containing newlines.
  38011. # Ultrix sh set writes to stderr and can't be redirected directly,
  38012. # and sets the high bit in the cache file unless we assign to the vars.
  38013. (
  38014. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  38015. eval ac_val=\$$ac_var
  38016. case $ac_val in #(
  38017. *${as_nl}*)
  38018. case $ac_var in #(
  38019. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  38020. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  38021. esac
  38022. case $ac_var in #(
  38023. _ | IFS | as_nl) ;; #(
  38024. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  38025. *) { eval $ac_var=; unset $ac_var;} ;;
  38026. esac ;;
  38027. esac
  38028. done
  38029. (set) 2>&1 |
  38030. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  38031. *${as_nl}ac_space=\ *)
  38032. # `set' does not quote correctly, so add quotes: double-quote
  38033. # substitution turns \\\\ into \\, and sed turns \\ into \.
  38034. sed -n \
  38035. "s/'/'\\\\''/g;
  38036. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  38037. ;; #(
  38038. *)
  38039. # `set' quotes correctly as required by POSIX, so do not add quotes.
  38040. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  38041. ;;
  38042. esac |
  38043. sort
  38044. ) |
  38045. sed '
  38046. /^ac_cv_env_/b end
  38047. t clear
  38048. :clear
  38049. s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
  38050. t end
  38051. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  38052. :end' >>confcache
  38053. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  38054. if test -w "$cache_file"; then
  38055. if test "x$cache_file" != "x/dev/null"; then
  38056. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  38057. printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
  38058. if test ! -f "$cache_file" || test -h "$cache_file"; then
  38059. cat confcache >"$cache_file"
  38060. else
  38061. case $cache_file in #(
  38062. */* | ?:*)
  38063. mv -f confcache "$cache_file"$$ &&
  38064. mv -f "$cache_file"$$ "$cache_file" ;; #(
  38065. *)
  38066. mv -f confcache "$cache_file" ;;
  38067. esac
  38068. fi
  38069. fi
  38070. else
  38071. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  38072. printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
  38073. fi
  38074. fi
  38075. rm -f confcache
  38076. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  38077. # Let make expand exec_prefix.
  38078. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  38079. DEFS=-DHAVE_CONFIG_H
  38080. ac_libobjs=
  38081. ac_ltlibobjs=
  38082. U=
  38083. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  38084. # 1. Remove the extension, and $U if already installed.
  38085. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  38086. ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
  38087. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  38088. # will be set to the directory where LIBOBJS objects are built.
  38089. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  38090. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  38091. done
  38092. LIBOBJS=$ac_libobjs
  38093. LTLIBOBJS=$ac_ltlibobjs
  38094. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  38095. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  38096. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  38097. fi
  38098. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  38099. printf %s "checking that generated files are newer than configure... " >&6; }
  38100. if test -n "$am_sleep_pid"; then
  38101. # Hide warnings about reused PIDs.
  38102. wait $am_sleep_pid 2>/dev/null
  38103. fi
  38104. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
  38105. printf "%s\n" "done" >&6; }
  38106. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  38107. as_fn_error $? "conditional \"AMDEP\" was never defined.
  38108. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  38109. fi
  38110. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  38111. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  38112. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  38113. fi
  38114. if test -n "$EXEEXT"; then
  38115. am__EXEEXT_TRUE=
  38116. am__EXEEXT_FALSE='#'
  38117. else
  38118. am__EXEEXT_TRUE='#'
  38119. am__EXEEXT_FALSE=
  38120. fi
  38121. if test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_FALSE}"; then
  38122. as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSION_INFO\" was never defined.
  38123. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  38124. fi
  38125. if test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE}" && test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE}"; then
  38126. as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_NO_UNDEFINED\" was never defined.
  38127. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  38128. fi
  38129. if test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE}" && test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE}"; then
  38130. as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_MIMPURE_TEXT\" was never defined.
  38131. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  38132. fi
  38133. if test -z "${USE_CPPFLAG_CURL_STATICLIB_TRUE}" && test -z "${USE_CPPFLAG_CURL_STATICLIB_FALSE}"; then
  38134. as_fn_error $? "conditional \"USE_CPPFLAG_CURL_STATICLIB\" was never defined.
  38135. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  38136. fi
  38137. if test -z "${USE_EXPLICIT_LIB_DEPS_TRUE}" && test -z "${USE_EXPLICIT_LIB_DEPS_FALSE}"; then
  38138. as_fn_error $? "conditional \"USE_EXPLICIT_LIB_DEPS\" was never defined.
  38139. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  38140. fi
  38141. if test -z "${CURLDEBUG_TRUE}" && test -z "${CURLDEBUG_FALSE}"; then
  38142. as_fn_error $? "conditional \"CURLDEBUG\" was never defined.
  38143. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  38144. fi
  38145. if test -z "${BUILD_UNITTESTS_TRUE}" && test -z "${BUILD_UNITTESTS_FALSE}"; then
  38146. as_fn_error $? "conditional \"BUILD_UNITTESTS\" was never defined.
  38147. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  38148. fi
  38149. if test -z "${DOING_NATIVE_WINDOWS_TRUE}" && test -z "${DOING_NATIVE_WINDOWS_FALSE}"; then
  38150. as_fn_error $? "conditional \"DOING_NATIVE_WINDOWS\" was never defined.
  38151. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  38152. fi
  38153. if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
  38154. as_fn_error $? "conditional \"HAVE_LIBZ\" was never defined.
  38155. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  38156. fi
  38157. if test -z "${BUILD_STUB_GSS_TRUE}" && test -z "${BUILD_STUB_GSS_FALSE}"; then
  38158. as_fn_error $? "conditional \"BUILD_STUB_GSS\" was never defined.
  38159. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  38160. fi
  38161. if test -z "${USE_LIBPSL_TRUE}" && test -z "${USE_LIBPSL_FALSE}"; then
  38162. as_fn_error $? "conditional \"USE_LIBPSL\" was never defined.
  38163. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  38164. fi
  38165. if test -z "${USE_GSASL_TRUE}" && test -z "${USE_GSASL_FALSE}"; then
  38166. as_fn_error $? "conditional \"USE_GSASL\" was never defined.
  38167. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  38168. fi
  38169. if test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE}"; then
  38170. as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS\" was never defined.
  38171. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  38172. fi
  38173. if test -z "${USE_MANUAL_TRUE}" && test -z "${USE_MANUAL_FALSE}"; then
  38174. as_fn_error $? "conditional \"USE_MANUAL\" was never defined.
  38175. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  38176. fi
  38177. if test -z "${BUILD_LIBHOSTNAME_TRUE}" && test -z "${BUILD_LIBHOSTNAME_FALSE}"; then
  38178. as_fn_error $? "conditional \"BUILD_LIBHOSTNAME\" was never defined.
  38179. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  38180. fi
  38181. if test -z "${DOING_CURL_SYMBOL_HIDING_TRUE}" && test -z "${DOING_CURL_SYMBOL_HIDING_FALSE}"; then
  38182. as_fn_error $? "conditional \"DOING_CURL_SYMBOL_HIDING\" was never defined.
  38183. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  38184. fi
  38185. if test -z "${CROSSCOMPILING_TRUE}" && test -z "${CROSSCOMPILING_FALSE}"; then
  38186. as_fn_error $? "conditional \"CROSSCOMPILING\" was never defined.
  38187. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  38188. fi
  38189. : "${CONFIG_STATUS=./config.status}"
  38190. ac_write_fail=0
  38191. ac_clean_files_save=$ac_clean_files
  38192. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  38193. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  38194. printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
  38195. as_write_fail=0
  38196. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  38197. #! $SHELL
  38198. # Generated by $as_me.
  38199. # Run this file to recreate the current configuration.
  38200. # Compiler output produced by configure, useful for debugging
  38201. # configure, is in config.log if it exists.
  38202. debug=false
  38203. ac_cs_recheck=false
  38204. ac_cs_silent=false
  38205. SHELL=\${CONFIG_SHELL-$SHELL}
  38206. export SHELL
  38207. _ASEOF
  38208. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  38209. ## -------------------- ##
  38210. ## M4sh Initialization. ##
  38211. ## -------------------- ##
  38212. # Be more Bourne compatible
  38213. DUALCASE=1; export DUALCASE # for MKS sh
  38214. as_nop=:
  38215. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  38216. then :
  38217. emulate sh
  38218. NULLCMD=:
  38219. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  38220. # is contrary to our usage. Disable this feature.
  38221. alias -g '${1+"$@"}'='"$@"'
  38222. setopt NO_GLOB_SUBST
  38223. else $as_nop
  38224. case `(set -o) 2>/dev/null` in #(
  38225. *posix*) :
  38226. set -o posix ;; #(
  38227. *) :
  38228. ;;
  38229. esac
  38230. fi
  38231. # Reset variables that may have inherited troublesome values from
  38232. # the environment.
  38233. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  38234. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  38235. # side effect of setting IFS to empty, thus disabling word splitting.)
  38236. # Quoting is to prevent editors from complaining about space-tab.
  38237. as_nl='
  38238. '
  38239. export as_nl
  38240. IFS=" "" $as_nl"
  38241. PS1='$ '
  38242. PS2='> '
  38243. PS4='+ '
  38244. # Ensure predictable behavior from utilities with locale-dependent output.
  38245. LC_ALL=C
  38246. export LC_ALL
  38247. LANGUAGE=C
  38248. export LANGUAGE
  38249. # We cannot yet rely on "unset" to work, but we need these variables
  38250. # to be unset--not just set to an empty or harmless value--now, to
  38251. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  38252. # also avoids known problems related to "unset" and subshell syntax
  38253. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  38254. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  38255. do eval test \${$as_var+y} \
  38256. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  38257. done
  38258. # Ensure that fds 0, 1, and 2 are open.
  38259. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  38260. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  38261. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  38262. # Find who we are. Look in the path if we contain no directory separator.
  38263. as_myself=
  38264. case $0 in #((
  38265. *[\\/]* ) as_myself=$0 ;;
  38266. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  38267. for as_dir in $PATH
  38268. do
  38269. IFS=$as_save_IFS
  38270. case $as_dir in #(((
  38271. '') as_dir=./ ;;
  38272. */) ;;
  38273. *) as_dir=$as_dir/ ;;
  38274. esac
  38275. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  38276. done
  38277. IFS=$as_save_IFS
  38278. ;;
  38279. esac
  38280. # We did not find ourselves, most probably we were run as `sh COMMAND'
  38281. # in which case we are not to be found in the path.
  38282. if test "x$as_myself" = x; then
  38283. as_myself=$0
  38284. fi
  38285. if test ! -f "$as_myself"; then
  38286. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  38287. exit 1
  38288. fi
  38289. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  38290. # ----------------------------------------
  38291. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  38292. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  38293. # script with STATUS, using 1 if that was 0.
  38294. as_fn_error ()
  38295. {
  38296. as_status=$1; test $as_status -eq 0 && as_status=1
  38297. if test "$4"; then
  38298. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  38299. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  38300. fi
  38301. printf "%s\n" "$as_me: error: $2" >&2
  38302. as_fn_exit $as_status
  38303. } # as_fn_error
  38304. # as_fn_set_status STATUS
  38305. # -----------------------
  38306. # Set $? to STATUS, without forking.
  38307. as_fn_set_status ()
  38308. {
  38309. return $1
  38310. } # as_fn_set_status
  38311. # as_fn_exit STATUS
  38312. # -----------------
  38313. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  38314. as_fn_exit ()
  38315. {
  38316. set +e
  38317. as_fn_set_status $1
  38318. exit $1
  38319. } # as_fn_exit
  38320. # as_fn_unset VAR
  38321. # ---------------
  38322. # Portably unset VAR.
  38323. as_fn_unset ()
  38324. {
  38325. { eval $1=; unset $1;}
  38326. }
  38327. as_unset=as_fn_unset
  38328. # as_fn_append VAR VALUE
  38329. # ----------------------
  38330. # Append the text in VALUE to the end of the definition contained in VAR. Take
  38331. # advantage of any shell optimizations that allow amortized linear growth over
  38332. # repeated appends, instead of the typical quadratic growth present in naive
  38333. # implementations.
  38334. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  38335. then :
  38336. eval 'as_fn_append ()
  38337. {
  38338. eval $1+=\$2
  38339. }'
  38340. else $as_nop
  38341. as_fn_append ()
  38342. {
  38343. eval $1=\$$1\$2
  38344. }
  38345. fi # as_fn_append
  38346. # as_fn_arith ARG...
  38347. # ------------------
  38348. # Perform arithmetic evaluation on the ARGs, and store the result in the
  38349. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  38350. # must be portable across $(()) and expr.
  38351. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  38352. then :
  38353. eval 'as_fn_arith ()
  38354. {
  38355. as_val=$(( $* ))
  38356. }'
  38357. else $as_nop
  38358. as_fn_arith ()
  38359. {
  38360. as_val=`expr "$@" || test $? -eq 1`
  38361. }
  38362. fi # as_fn_arith
  38363. if expr a : '\(a\)' >/dev/null 2>&1 &&
  38364. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  38365. as_expr=expr
  38366. else
  38367. as_expr=false
  38368. fi
  38369. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  38370. as_basename=basename
  38371. else
  38372. as_basename=false
  38373. fi
  38374. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  38375. as_dirname=dirname
  38376. else
  38377. as_dirname=false
  38378. fi
  38379. as_me=`$as_basename -- "$0" ||
  38380. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  38381. X"$0" : 'X\(//\)$' \| \
  38382. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  38383. printf "%s\n" X/"$0" |
  38384. sed '/^.*\/\([^/][^/]*\)\/*$/{
  38385. s//\1/
  38386. q
  38387. }
  38388. /^X\/\(\/\/\)$/{
  38389. s//\1/
  38390. q
  38391. }
  38392. /^X\/\(\/\).*/{
  38393. s//\1/
  38394. q
  38395. }
  38396. s/.*/./; q'`
  38397. # Avoid depending upon Character Ranges.
  38398. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  38399. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  38400. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  38401. as_cr_digits='0123456789'
  38402. as_cr_alnum=$as_cr_Letters$as_cr_digits
  38403. # Determine whether it's possible to make 'echo' print without a newline.
  38404. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  38405. # for compatibility with existing Makefiles.
  38406. ECHO_C= ECHO_N= ECHO_T=
  38407. case `echo -n x` in #(((((
  38408. -n*)
  38409. case `echo 'xy\c'` in
  38410. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  38411. xy) ECHO_C='\c';;
  38412. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  38413. ECHO_T=' ';;
  38414. esac;;
  38415. *)
  38416. ECHO_N='-n';;
  38417. esac
  38418. # For backward compatibility with old third-party macros, we provide
  38419. # the shell variables $as_echo and $as_echo_n. New code should use
  38420. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  38421. as_echo='printf %s\n'
  38422. as_echo_n='printf %s'
  38423. rm -f conf$$ conf$$.exe conf$$.file
  38424. if test -d conf$$.dir; then
  38425. rm -f conf$$.dir/conf$$.file
  38426. else
  38427. rm -f conf$$.dir
  38428. mkdir conf$$.dir 2>/dev/null
  38429. fi
  38430. if (echo >conf$$.file) 2>/dev/null; then
  38431. if ln -s conf$$.file conf$$ 2>/dev/null; then
  38432. as_ln_s='ln -s'
  38433. # ... but there are two gotchas:
  38434. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  38435. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  38436. # In both cases, we have to default to `cp -pR'.
  38437. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  38438. as_ln_s='cp -pR'
  38439. elif ln conf$$.file conf$$ 2>/dev/null; then
  38440. as_ln_s=ln
  38441. else
  38442. as_ln_s='cp -pR'
  38443. fi
  38444. else
  38445. as_ln_s='cp -pR'
  38446. fi
  38447. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  38448. rmdir conf$$.dir 2>/dev/null
  38449. # as_fn_mkdir_p
  38450. # -------------
  38451. # Create "$as_dir" as a directory, including parents if necessary.
  38452. as_fn_mkdir_p ()
  38453. {
  38454. case $as_dir in #(
  38455. -*) as_dir=./$as_dir;;
  38456. esac
  38457. test -d "$as_dir" || eval $as_mkdir_p || {
  38458. as_dirs=
  38459. while :; do
  38460. case $as_dir in #(
  38461. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  38462. *) as_qdir=$as_dir;;
  38463. esac
  38464. as_dirs="'$as_qdir' $as_dirs"
  38465. as_dir=`$as_dirname -- "$as_dir" ||
  38466. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  38467. X"$as_dir" : 'X\(//\)[^/]' \| \
  38468. X"$as_dir" : 'X\(//\)$' \| \
  38469. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  38470. printf "%s\n" X"$as_dir" |
  38471. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  38472. s//\1/
  38473. q
  38474. }
  38475. /^X\(\/\/\)[^/].*/{
  38476. s//\1/
  38477. q
  38478. }
  38479. /^X\(\/\/\)$/{
  38480. s//\1/
  38481. q
  38482. }
  38483. /^X\(\/\).*/{
  38484. s//\1/
  38485. q
  38486. }
  38487. s/.*/./; q'`
  38488. test -d "$as_dir" && break
  38489. done
  38490. test -z "$as_dirs" || eval "mkdir $as_dirs"
  38491. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  38492. } # as_fn_mkdir_p
  38493. if mkdir -p . 2>/dev/null; then
  38494. as_mkdir_p='mkdir -p "$as_dir"'
  38495. else
  38496. test -d ./-p && rmdir ./-p
  38497. as_mkdir_p=false
  38498. fi
  38499. # as_fn_executable_p FILE
  38500. # -----------------------
  38501. # Test if FILE is an executable regular file.
  38502. as_fn_executable_p ()
  38503. {
  38504. test -f "$1" && test -x "$1"
  38505. } # as_fn_executable_p
  38506. as_test_x='test -x'
  38507. as_executable_p=as_fn_executable_p
  38508. # Sed expression to map a string onto a valid CPP name.
  38509. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  38510. # Sed expression to map a string onto a valid variable name.
  38511. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  38512. exec 6>&1
  38513. ## ----------------------------------- ##
  38514. ## Main body of $CONFIG_STATUS script. ##
  38515. ## ----------------------------------- ##
  38516. _ASEOF
  38517. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  38518. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  38519. # Save the log message, to keep $0 and so on meaningful, and to
  38520. # report actual input values of CONFIG_FILES etc. instead of their
  38521. # values after options handling.
  38522. ac_log="
  38523. This file was extended by curl $as_me -, which was
  38524. generated by GNU Autoconf 2.71. Invocation command line was
  38525. CONFIG_FILES = $CONFIG_FILES
  38526. CONFIG_HEADERS = $CONFIG_HEADERS
  38527. CONFIG_LINKS = $CONFIG_LINKS
  38528. CONFIG_COMMANDS = $CONFIG_COMMANDS
  38529. $ $0 $@
  38530. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  38531. "
  38532. _ACEOF
  38533. case $ac_config_files in *"
  38534. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  38535. esac
  38536. case $ac_config_headers in *"
  38537. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  38538. esac
  38539. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  38540. # Files that config.status was made for.
  38541. config_files="$ac_config_files"
  38542. config_headers="$ac_config_headers"
  38543. config_commands="$ac_config_commands"
  38544. _ACEOF
  38545. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  38546. ac_cs_usage="\
  38547. \`$as_me' instantiates files and other configuration actions
  38548. from templates according to the current configuration. Unless the files
  38549. and actions are specified as TAGs, all are instantiated by default.
  38550. Usage: $0 [OPTION]... [TAG]...
  38551. -h, --help print this help, then exit
  38552. -V, --version print version number and configuration settings, then exit
  38553. --config print configuration, then exit
  38554. -q, --quiet, --silent
  38555. do not print progress messages
  38556. -d, --debug don't remove temporary files
  38557. --recheck update $as_me by reconfiguring in the same conditions
  38558. --file=FILE[:TEMPLATE]
  38559. instantiate the configuration file FILE
  38560. --header=FILE[:TEMPLATE]
  38561. instantiate the configuration header FILE
  38562. Configuration files:
  38563. $config_files
  38564. Configuration headers:
  38565. $config_headers
  38566. Configuration commands:
  38567. $config_commands
  38568. Report bugs to <a suitable curl mailing list: https://curl.se/mail/>."
  38569. _ACEOF
  38570. ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
  38571. ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
  38572. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  38573. ac_cs_config='$ac_cs_config_escaped'
  38574. ac_cs_version="\\
  38575. curl config.status -
  38576. configured by $0, generated by GNU Autoconf 2.71,
  38577. with options \\"\$ac_cs_config\\"
  38578. Copyright (C) 2021 Free Software Foundation, Inc.
  38579. This config.status script is free software; the Free Software Foundation
  38580. gives unlimited permission to copy, distribute and modify it."
  38581. ac_pwd='$ac_pwd'
  38582. srcdir='$srcdir'
  38583. INSTALL='$INSTALL'
  38584. MKDIR_P='$MKDIR_P'
  38585. AWK='$AWK'
  38586. test -n "\$AWK" || AWK=awk
  38587. _ACEOF
  38588. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  38589. # The default lists apply if the user does not specify any file.
  38590. ac_need_defaults=:
  38591. while test $# != 0
  38592. do
  38593. case $1 in
  38594. --*=?*)
  38595. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  38596. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  38597. ac_shift=:
  38598. ;;
  38599. --*=)
  38600. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  38601. ac_optarg=
  38602. ac_shift=:
  38603. ;;
  38604. *)
  38605. ac_option=$1
  38606. ac_optarg=$2
  38607. ac_shift=shift
  38608. ;;
  38609. esac
  38610. case $ac_option in
  38611. # Handling of the options.
  38612. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  38613. ac_cs_recheck=: ;;
  38614. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  38615. printf "%s\n" "$ac_cs_version"; exit ;;
  38616. --config | --confi | --conf | --con | --co | --c )
  38617. printf "%s\n" "$ac_cs_config"; exit ;;
  38618. --debug | --debu | --deb | --de | --d | -d )
  38619. debug=: ;;
  38620. --file | --fil | --fi | --f )
  38621. $ac_shift
  38622. case $ac_optarg in
  38623. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  38624. '') as_fn_error $? "missing file argument" ;;
  38625. esac
  38626. as_fn_append CONFIG_FILES " '$ac_optarg'"
  38627. ac_need_defaults=false;;
  38628. --header | --heade | --head | --hea )
  38629. $ac_shift
  38630. case $ac_optarg in
  38631. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  38632. esac
  38633. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  38634. ac_need_defaults=false;;
  38635. --he | --h)
  38636. # Conflict between --help and --header
  38637. as_fn_error $? "ambiguous option: \`$1'
  38638. Try \`$0 --help' for more information.";;
  38639. --help | --hel | -h )
  38640. printf "%s\n" "$ac_cs_usage"; exit ;;
  38641. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  38642. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  38643. ac_cs_silent=: ;;
  38644. # This is an error.
  38645. -*) as_fn_error $? "unrecognized option: \`$1'
  38646. Try \`$0 --help' for more information." ;;
  38647. *) as_fn_append ac_config_targets " $1"
  38648. ac_need_defaults=false ;;
  38649. esac
  38650. shift
  38651. done
  38652. ac_configure_extra_args=
  38653. if $ac_cs_silent; then
  38654. exec 6>/dev/null
  38655. ac_configure_extra_args="$ac_configure_extra_args --silent"
  38656. fi
  38657. _ACEOF
  38658. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  38659. if \$ac_cs_recheck; then
  38660. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  38661. shift
  38662. \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
  38663. CONFIG_SHELL='$SHELL'
  38664. export CONFIG_SHELL
  38665. exec "\$@"
  38666. fi
  38667. _ACEOF
  38668. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  38669. exec 5>>config.log
  38670. {
  38671. echo
  38672. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  38673. ## Running $as_me. ##
  38674. _ASBOX
  38675. printf "%s\n" "$ac_log"
  38676. } >&5
  38677. _ACEOF
  38678. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  38679. #
  38680. # INIT-COMMANDS
  38681. #
  38682. AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
  38683. # The HP-UX ksh and POSIX shell print the target directory to stdout
  38684. # if CDPATH is set.
  38685. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  38686. sed_quote_subst='$sed_quote_subst'
  38687. double_quote_subst='$double_quote_subst'
  38688. delay_variable_subst='$delay_variable_subst'
  38689. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  38690. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  38691. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  38692. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  38693. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  38694. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  38695. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  38696. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  38697. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  38698. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  38699. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  38700. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  38701. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  38702. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  38703. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  38704. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  38705. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  38706. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  38707. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  38708. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  38709. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  38710. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  38711. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  38712. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  38713. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  38714. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  38715. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  38716. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  38717. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  38718. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  38719. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  38720. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  38721. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  38722. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  38723. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  38724. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  38725. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  38726. FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
  38727. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  38728. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  38729. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  38730. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  38731. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  38732. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  38733. lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
  38734. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  38735. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  38736. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  38737. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  38738. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  38739. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  38740. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  38741. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  38742. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  38743. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  38744. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  38745. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  38746. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  38747. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  38748. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  38749. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  38750. 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"`'
  38751. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  38752. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  38753. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  38754. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  38755. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  38756. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  38757. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  38758. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  38759. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  38760. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  38761. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  38762. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  38763. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  38764. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  38765. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  38766. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  38767. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  38768. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  38769. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  38770. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  38771. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  38772. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  38773. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  38774. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  38775. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  38776. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  38777. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  38778. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  38779. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  38780. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  38781. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  38782. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  38783. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  38784. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  38785. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  38786. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  38787. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  38788. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  38789. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  38790. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  38791. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  38792. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  38793. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  38794. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  38795. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  38796. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  38797. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  38798. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  38799. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  38800. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  38801. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  38802. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  38803. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  38804. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  38805. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  38806. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  38807. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  38808. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  38809. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  38810. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  38811. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  38812. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  38813. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  38814. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  38815. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  38816. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  38817. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  38818. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  38819. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  38820. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  38821. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  38822. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  38823. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  38824. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  38825. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  38826. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  38827. LTCC='$LTCC'
  38828. LTCFLAGS='$LTCFLAGS'
  38829. compiler='$compiler_DEFAULT'
  38830. # A function that is used when there is no print builtin or printf.
  38831. func_fallback_echo ()
  38832. {
  38833. eval 'cat <<_LTECHO_EOF
  38834. \$1
  38835. _LTECHO_EOF'
  38836. }
  38837. # Quote evaled strings.
  38838. for var in AS \
  38839. DLLTOOL \
  38840. OBJDUMP \
  38841. SHELL \
  38842. ECHO \
  38843. PATH_SEPARATOR \
  38844. SED \
  38845. GREP \
  38846. EGREP \
  38847. FGREP \
  38848. LD \
  38849. NM \
  38850. LN_S \
  38851. lt_SP2NL \
  38852. lt_NL2SP \
  38853. reload_flag \
  38854. FILECMD \
  38855. deplibs_check_method \
  38856. file_magic_cmd \
  38857. file_magic_glob \
  38858. want_nocaseglob \
  38859. sharedlib_from_linklib_cmd \
  38860. AR \
  38861. archiver_list_spec \
  38862. STRIP \
  38863. RANLIB \
  38864. CC \
  38865. CFLAGS \
  38866. compiler \
  38867. lt_cv_sys_global_symbol_pipe \
  38868. lt_cv_sys_global_symbol_to_cdecl \
  38869. lt_cv_sys_global_symbol_to_import \
  38870. lt_cv_sys_global_symbol_to_c_name_address \
  38871. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  38872. lt_cv_nm_interface \
  38873. nm_file_list_spec \
  38874. lt_cv_truncate_bin \
  38875. lt_prog_compiler_no_builtin_flag \
  38876. lt_prog_compiler_pic \
  38877. lt_prog_compiler_wl \
  38878. lt_prog_compiler_static \
  38879. lt_cv_prog_compiler_c_o \
  38880. need_locks \
  38881. MANIFEST_TOOL \
  38882. DSYMUTIL \
  38883. NMEDIT \
  38884. LIPO \
  38885. OTOOL \
  38886. OTOOL64 \
  38887. shrext_cmds \
  38888. export_dynamic_flag_spec \
  38889. whole_archive_flag_spec \
  38890. compiler_needs_object \
  38891. with_gnu_ld \
  38892. allow_undefined_flag \
  38893. no_undefined_flag \
  38894. hardcode_libdir_flag_spec \
  38895. hardcode_libdir_separator \
  38896. exclude_expsyms \
  38897. include_expsyms \
  38898. file_list_spec \
  38899. variables_saved_for_relink \
  38900. libname_spec \
  38901. library_names_spec \
  38902. soname_spec \
  38903. install_override_mode \
  38904. finish_eval \
  38905. old_striplib \
  38906. striplib; do
  38907. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  38908. *[\\\\\\\`\\"\\\$]*)
  38909. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  38910. ;;
  38911. *)
  38912. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  38913. ;;
  38914. esac
  38915. done
  38916. # Double-quote double-evaled strings.
  38917. for var in reload_cmds \
  38918. old_postinstall_cmds \
  38919. old_postuninstall_cmds \
  38920. old_archive_cmds \
  38921. extract_expsyms_cmds \
  38922. old_archive_from_new_cmds \
  38923. old_archive_from_expsyms_cmds \
  38924. archive_cmds \
  38925. archive_expsym_cmds \
  38926. module_cmds \
  38927. module_expsym_cmds \
  38928. export_symbols_cmds \
  38929. prelink_cmds \
  38930. postlink_cmds \
  38931. postinstall_cmds \
  38932. postuninstall_cmds \
  38933. finish_cmds \
  38934. sys_lib_search_path_spec \
  38935. configure_time_dlsearch_path \
  38936. configure_time_lt_sys_library_path; do
  38937. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  38938. *[\\\\\\\`\\"\\\$]*)
  38939. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  38940. ;;
  38941. *)
  38942. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  38943. ;;
  38944. esac
  38945. done
  38946. ac_aux_dir='$ac_aux_dir'
  38947. # See if we are running on zsh, and set the options that allow our
  38948. # commands through without removal of \ escapes INIT.
  38949. if test -n "\${ZSH_VERSION+set}"; then
  38950. setopt NO_GLOB_SUBST
  38951. fi
  38952. PACKAGE='$PACKAGE'
  38953. VERSION='$VERSION'
  38954. RM='$RM'
  38955. ofile='$ofile'
  38956. _ACEOF
  38957. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  38958. # Handling of arguments.
  38959. for ac_config_target in $ac_config_targets
  38960. do
  38961. case $ac_config_target in
  38962. "lib/curl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/curl_config.h" ;;
  38963. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  38964. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  38965. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  38966. "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
  38967. "docs/examples/Makefile") CONFIG_FILES="$CONFIG_FILES docs/examples/Makefile" ;;
  38968. "docs/libcurl/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/Makefile" ;;
  38969. "docs/libcurl/opts/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/opts/Makefile" ;;
  38970. "docs/cmdline-opts/Makefile") CONFIG_FILES="$CONFIG_FILES docs/cmdline-opts/Makefile" ;;
  38971. "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
  38972. "include/curl/Makefile") CONFIG_FILES="$CONFIG_FILES include/curl/Makefile" ;;
  38973. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  38974. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  38975. "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
  38976. "lib/libcurl.vers") CONFIG_FILES="$CONFIG_FILES lib/libcurl.vers" ;;
  38977. "lib/libcurl.plist") CONFIG_FILES="$CONFIG_FILES lib/libcurl.plist" ;;
  38978. "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
  38979. "tests/certs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/Makefile" ;;
  38980. "tests/certs/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/scripts/Makefile" ;;
  38981. "tests/data/Makefile") CONFIG_FILES="$CONFIG_FILES tests/data/Makefile" ;;
  38982. "tests/server/Makefile") CONFIG_FILES="$CONFIG_FILES tests/server/Makefile" ;;
  38983. "tests/libtest/Makefile") CONFIG_FILES="$CONFIG_FILES tests/libtest/Makefile" ;;
  38984. "tests/unit/Makefile") CONFIG_FILES="$CONFIG_FILES tests/unit/Makefile" ;;
  38985. "packages/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;;
  38986. "packages/vms/Makefile") CONFIG_FILES="$CONFIG_FILES packages/vms/Makefile" ;;
  38987. "curl-config") CONFIG_FILES="$CONFIG_FILES curl-config" ;;
  38988. "libcurl.pc") CONFIG_FILES="$CONFIG_FILES libcurl.pc" ;;
  38989. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  38990. esac
  38991. done
  38992. # If the user did not use the arguments to specify the items to instantiate,
  38993. # then the envvar interface is used. Set only those that are not.
  38994. # We use the long form for the default assignment because of an extremely
  38995. # bizarre bug on SunOS 4.1.3.
  38996. if $ac_need_defaults; then
  38997. test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
  38998. test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
  38999. test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
  39000. fi
  39001. # Have a temporary directory for convenience. Make it in the build tree
  39002. # simply because there is no reason against having it here, and in addition,
  39003. # creating and moving files from /tmp can sometimes cause problems.
  39004. # Hook for its removal unless debugging.
  39005. # Note that there is a small window in which the directory will not be cleaned:
  39006. # after its creation but before its name has been assigned to `$tmp'.
  39007. $debug ||
  39008. {
  39009. tmp= ac_tmp=
  39010. trap 'exit_status=$?
  39011. : "${ac_tmp:=$tmp}"
  39012. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  39013. ' 0
  39014. trap 'as_fn_exit 1' 1 2 13 15
  39015. }
  39016. # Create a (secure) tmp directory for tmp files.
  39017. {
  39018. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  39019. test -d "$tmp"
  39020. } ||
  39021. {
  39022. tmp=./conf$$-$RANDOM
  39023. (umask 077 && mkdir "$tmp")
  39024. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  39025. ac_tmp=$tmp
  39026. # Set up the scripts for CONFIG_FILES section.
  39027. # No need to generate them if there are no CONFIG_FILES.
  39028. # This happens for instance with `./config.status config.h'.
  39029. if test -n "$CONFIG_FILES"; then
  39030. ac_cr=`echo X | tr X '\015'`
  39031. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  39032. # But we know of no other shell where ac_cr would be empty at this
  39033. # point, so we can use a bashism as a fallback.
  39034. if test "x$ac_cr" = x; then
  39035. eval ac_cr=\$\'\\r\'
  39036. fi
  39037. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  39038. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  39039. ac_cs_awk_cr='\\r'
  39040. else
  39041. ac_cs_awk_cr=$ac_cr
  39042. fi
  39043. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  39044. _ACEOF
  39045. {
  39046. echo "cat >conf$$subs.awk <<_ACEOF" &&
  39047. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  39048. echo "_ACEOF"
  39049. } >conf$$subs.sh ||
  39050. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  39051. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  39052. ac_delim='%!_!# '
  39053. for ac_last_try in false false false false false :; do
  39054. . ./conf$$subs.sh ||
  39055. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  39056. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  39057. if test $ac_delim_n = $ac_delim_num; then
  39058. break
  39059. elif $ac_last_try; then
  39060. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  39061. else
  39062. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  39063. fi
  39064. done
  39065. rm -f conf$$subs.sh
  39066. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  39067. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  39068. _ACEOF
  39069. sed -n '
  39070. h
  39071. s/^/S["/; s/!.*/"]=/
  39072. p
  39073. g
  39074. s/^[^!]*!//
  39075. :repl
  39076. t repl
  39077. s/'"$ac_delim"'$//
  39078. t delim
  39079. :nl
  39080. h
  39081. s/\(.\{148\}\)..*/\1/
  39082. t more1
  39083. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  39084. p
  39085. n
  39086. b repl
  39087. :more1
  39088. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  39089. p
  39090. g
  39091. s/.\{148\}//
  39092. t nl
  39093. :delim
  39094. h
  39095. s/\(.\{148\}\)..*/\1/
  39096. t more2
  39097. s/["\\]/\\&/g; s/^/"/; s/$/"/
  39098. p
  39099. b
  39100. :more2
  39101. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  39102. p
  39103. g
  39104. s/.\{148\}//
  39105. t delim
  39106. ' <conf$$subs.awk | sed '
  39107. /^[^""]/{
  39108. N
  39109. s/\n//
  39110. }
  39111. ' >>$CONFIG_STATUS || ac_write_fail=1
  39112. rm -f conf$$subs.awk
  39113. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  39114. _ACAWK
  39115. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  39116. for (key in S) S_is_set[key] = 1
  39117. FS = ""
  39118. }
  39119. {
  39120. line = $ 0
  39121. nfields = split(line, field, "@")
  39122. substed = 0
  39123. len = length(field[1])
  39124. for (i = 2; i < nfields; i++) {
  39125. key = field[i]
  39126. keylen = length(key)
  39127. if (S_is_set[key]) {
  39128. value = S[key]
  39129. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  39130. len += length(value) + length(field[++i])
  39131. substed = 1
  39132. } else
  39133. len += 1 + keylen
  39134. }
  39135. print line
  39136. }
  39137. _ACAWK
  39138. _ACEOF
  39139. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  39140. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  39141. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  39142. else
  39143. cat
  39144. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  39145. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  39146. _ACEOF
  39147. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  39148. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  39149. # trailing colons and then remove the whole line if VPATH becomes empty
  39150. # (actually we leave an empty line to preserve line numbers).
  39151. if test "x$srcdir" = x.; then
  39152. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  39153. h
  39154. s///
  39155. s/^/:/
  39156. s/[ ]*$/:/
  39157. s/:\$(srcdir):/:/g
  39158. s/:\${srcdir}:/:/g
  39159. s/:@srcdir@:/:/g
  39160. s/^:*//
  39161. s/:*$//
  39162. x
  39163. s/\(=[ ]*\).*/\1/
  39164. G
  39165. s/\n//
  39166. s/^[^=]*=[ ]*$//
  39167. }'
  39168. fi
  39169. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  39170. fi # test -n "$CONFIG_FILES"
  39171. # Set up the scripts for CONFIG_HEADERS section.
  39172. # No need to generate them if there are no CONFIG_HEADERS.
  39173. # This happens for instance with `./config.status Makefile'.
  39174. if test -n "$CONFIG_HEADERS"; then
  39175. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  39176. BEGIN {
  39177. _ACEOF
  39178. # Transform confdefs.h into an awk script `defines.awk', embedded as
  39179. # here-document in config.status, that substitutes the proper values into
  39180. # config.h.in to produce config.h.
  39181. # Create a delimiter string that does not exist in confdefs.h, to ease
  39182. # handling of long lines.
  39183. ac_delim='%!_!# '
  39184. for ac_last_try in false false :; do
  39185. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  39186. if test -z "$ac_tt"; then
  39187. break
  39188. elif $ac_last_try; then
  39189. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  39190. else
  39191. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  39192. fi
  39193. done
  39194. # For the awk script, D is an array of macro values keyed by name,
  39195. # likewise P contains macro parameters if any. Preserve backslash
  39196. # newline sequences.
  39197. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  39198. sed -n '
  39199. s/.\{148\}/&'"$ac_delim"'/g
  39200. t rset
  39201. :rset
  39202. s/^[ ]*#[ ]*define[ ][ ]*/ /
  39203. t def
  39204. d
  39205. :def
  39206. s/\\$//
  39207. t bsnl
  39208. s/["\\]/\\&/g
  39209. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  39210. D["\1"]=" \3"/p
  39211. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  39212. d
  39213. :bsnl
  39214. s/["\\]/\\&/g
  39215. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  39216. D["\1"]=" \3\\\\\\n"\\/p
  39217. t cont
  39218. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  39219. t cont
  39220. d
  39221. :cont
  39222. n
  39223. s/.\{148\}/&'"$ac_delim"'/g
  39224. t clear
  39225. :clear
  39226. s/\\$//
  39227. t bsnlc
  39228. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  39229. d
  39230. :bsnlc
  39231. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  39232. b cont
  39233. ' <confdefs.h | sed '
  39234. s/'"$ac_delim"'/"\\\
  39235. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  39236. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  39237. for (key in D) D_is_set[key] = 1
  39238. FS = ""
  39239. }
  39240. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  39241. line = \$ 0
  39242. split(line, arg, " ")
  39243. if (arg[1] == "#") {
  39244. defundef = arg[2]
  39245. mac1 = arg[3]
  39246. } else {
  39247. defundef = substr(arg[1], 2)
  39248. mac1 = arg[2]
  39249. }
  39250. split(mac1, mac2, "(") #)
  39251. macro = mac2[1]
  39252. prefix = substr(line, 1, index(line, defundef) - 1)
  39253. if (D_is_set[macro]) {
  39254. # Preserve the white space surrounding the "#".
  39255. print prefix "define", macro P[macro] D[macro]
  39256. next
  39257. } else {
  39258. # Replace #undef with comments. This is necessary, for example,
  39259. # in the case of _POSIX_SOURCE, which is predefined and required
  39260. # on some systems where configure will not decide to define it.
  39261. if (defundef == "undef") {
  39262. print "/*", prefix defundef, macro, "*/"
  39263. next
  39264. }
  39265. }
  39266. }
  39267. { print }
  39268. _ACAWK
  39269. _ACEOF
  39270. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  39271. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  39272. fi # test -n "$CONFIG_HEADERS"
  39273. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  39274. shift
  39275. for ac_tag
  39276. do
  39277. case $ac_tag in
  39278. :[FHLC]) ac_mode=$ac_tag; continue;;
  39279. esac
  39280. case $ac_mode$ac_tag in
  39281. :[FHL]*:*);;
  39282. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  39283. :[FH]-) ac_tag=-:-;;
  39284. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  39285. esac
  39286. ac_save_IFS=$IFS
  39287. IFS=:
  39288. set x $ac_tag
  39289. IFS=$ac_save_IFS
  39290. shift
  39291. ac_file=$1
  39292. shift
  39293. case $ac_mode in
  39294. :L) ac_source=$1;;
  39295. :[FH])
  39296. ac_file_inputs=
  39297. for ac_f
  39298. do
  39299. case $ac_f in
  39300. -) ac_f="$ac_tmp/stdin";;
  39301. *) # Look for the file first in the build tree, then in the source tree
  39302. # (if the path is not absolute). The absolute path cannot be DOS-style,
  39303. # because $ac_f cannot contain `:'.
  39304. test -f "$ac_f" ||
  39305. case $ac_f in
  39306. [\\/$]*) false;;
  39307. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  39308. esac ||
  39309. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  39310. esac
  39311. case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  39312. as_fn_append ac_file_inputs " '$ac_f'"
  39313. done
  39314. # Let's still pretend it is `configure' which instantiates (i.e., don't
  39315. # use $as_me), people would be surprised to read:
  39316. # /* config.h. Generated by config.status. */
  39317. configure_input='Generated from '`
  39318. printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  39319. `' by configure.'
  39320. if test x"$ac_file" != x-; then
  39321. configure_input="$ac_file. $configure_input"
  39322. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  39323. printf "%s\n" "$as_me: creating $ac_file" >&6;}
  39324. fi
  39325. # Neutralize special characters interpreted by sed in replacement strings.
  39326. case $configure_input in #(
  39327. *\&* | *\|* | *\\* )
  39328. ac_sed_conf_input=`printf "%s\n" "$configure_input" |
  39329. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  39330. *) ac_sed_conf_input=$configure_input;;
  39331. esac
  39332. case $ac_tag in
  39333. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  39334. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  39335. esac
  39336. ;;
  39337. esac
  39338. ac_dir=`$as_dirname -- "$ac_file" ||
  39339. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  39340. X"$ac_file" : 'X\(//\)[^/]' \| \
  39341. X"$ac_file" : 'X\(//\)$' \| \
  39342. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  39343. printf "%s\n" X"$ac_file" |
  39344. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  39345. s//\1/
  39346. q
  39347. }
  39348. /^X\(\/\/\)[^/].*/{
  39349. s//\1/
  39350. q
  39351. }
  39352. /^X\(\/\/\)$/{
  39353. s//\1/
  39354. q
  39355. }
  39356. /^X\(\/\).*/{
  39357. s//\1/
  39358. q
  39359. }
  39360. s/.*/./; q'`
  39361. as_dir="$ac_dir"; as_fn_mkdir_p
  39362. ac_builddir=.
  39363. case "$ac_dir" in
  39364. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  39365. *)
  39366. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  39367. # A ".." for each directory in $ac_dir_suffix.
  39368. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  39369. case $ac_top_builddir_sub in
  39370. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  39371. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  39372. esac ;;
  39373. esac
  39374. ac_abs_top_builddir=$ac_pwd
  39375. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  39376. # for backward compatibility:
  39377. ac_top_builddir=$ac_top_build_prefix
  39378. case $srcdir in
  39379. .) # We are building in place.
  39380. ac_srcdir=.
  39381. ac_top_srcdir=$ac_top_builddir_sub
  39382. ac_abs_top_srcdir=$ac_pwd ;;
  39383. [\\/]* | ?:[\\/]* ) # Absolute name.
  39384. ac_srcdir=$srcdir$ac_dir_suffix;
  39385. ac_top_srcdir=$srcdir
  39386. ac_abs_top_srcdir=$srcdir ;;
  39387. *) # Relative name.
  39388. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  39389. ac_top_srcdir=$ac_top_build_prefix$srcdir
  39390. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  39391. esac
  39392. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  39393. case $ac_mode in
  39394. :F)
  39395. #
  39396. # CONFIG_FILE
  39397. #
  39398. case $INSTALL in
  39399. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  39400. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  39401. esac
  39402. ac_MKDIR_P=$MKDIR_P
  39403. case $MKDIR_P in
  39404. [\\/$]* | ?:[\\/]* ) ;;
  39405. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  39406. esac
  39407. _ACEOF
  39408. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  39409. # If the template does not know about datarootdir, expand it.
  39410. # FIXME: This hack should be removed a few years after 2.60.
  39411. ac_datarootdir_hack=; ac_datarootdir_seen=
  39412. ac_sed_dataroot='
  39413. /datarootdir/ {
  39414. p
  39415. q
  39416. }
  39417. /@datadir@/p
  39418. /@docdir@/p
  39419. /@infodir@/p
  39420. /@localedir@/p
  39421. /@mandir@/p'
  39422. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  39423. *datarootdir*) ac_datarootdir_seen=yes;;
  39424. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  39425. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  39426. printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  39427. _ACEOF
  39428. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  39429. ac_datarootdir_hack='
  39430. s&@datadir@&$datadir&g
  39431. s&@docdir@&$docdir&g
  39432. s&@infodir@&$infodir&g
  39433. s&@localedir@&$localedir&g
  39434. s&@mandir@&$mandir&g
  39435. s&\\\${datarootdir}&$datarootdir&g' ;;
  39436. esac
  39437. _ACEOF
  39438. # Neutralize VPATH when `$srcdir' = `.'.
  39439. # Shell code in configure.ac might set extrasub.
  39440. # FIXME: do we really want to maintain this feature?
  39441. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  39442. ac_sed_extra="$ac_vpsub
  39443. $extrasub
  39444. _ACEOF
  39445. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  39446. :t
  39447. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  39448. s|@configure_input@|$ac_sed_conf_input|;t t
  39449. s&@top_builddir@&$ac_top_builddir_sub&;t t
  39450. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  39451. s&@srcdir@&$ac_srcdir&;t t
  39452. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  39453. s&@top_srcdir@&$ac_top_srcdir&;t t
  39454. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  39455. s&@builddir@&$ac_builddir&;t t
  39456. s&@abs_builddir@&$ac_abs_builddir&;t t
  39457. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  39458. s&@INSTALL@&$ac_INSTALL&;t t
  39459. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  39460. $ac_datarootdir_hack
  39461. "
  39462. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  39463. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  39464. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  39465. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  39466. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  39467. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  39468. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  39469. which seems to be undefined. Please make sure it is defined" >&5
  39470. printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  39471. which seems to be undefined. Please make sure it is defined" >&2;}
  39472. rm -f "$ac_tmp/stdin"
  39473. case $ac_file in
  39474. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  39475. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  39476. esac \
  39477. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  39478. ;;
  39479. :H)
  39480. #
  39481. # CONFIG_HEADER
  39482. #
  39483. if test x"$ac_file" != x-; then
  39484. {
  39485. printf "%s\n" "/* $configure_input */" >&1 \
  39486. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  39487. } >"$ac_tmp/config.h" \
  39488. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  39489. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  39490. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  39491. printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
  39492. else
  39493. rm -f "$ac_file"
  39494. mv "$ac_tmp/config.h" "$ac_file" \
  39495. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  39496. fi
  39497. else
  39498. printf "%s\n" "/* $configure_input */" >&1 \
  39499. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  39500. || as_fn_error $? "could not create -" "$LINENO" 5
  39501. fi
  39502. # Compute "$ac_file"'s index in $config_headers.
  39503. _am_arg="$ac_file"
  39504. _am_stamp_count=1
  39505. for _am_header in $config_headers :; do
  39506. case $_am_header in
  39507. $_am_arg | $_am_arg:* )
  39508. break ;;
  39509. * )
  39510. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  39511. esac
  39512. done
  39513. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  39514. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  39515. X"$_am_arg" : 'X\(//\)[^/]' \| \
  39516. X"$_am_arg" : 'X\(//\)$' \| \
  39517. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  39518. printf "%s\n" X"$_am_arg" |
  39519. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  39520. s//\1/
  39521. q
  39522. }
  39523. /^X\(\/\/\)[^/].*/{
  39524. s//\1/
  39525. q
  39526. }
  39527. /^X\(\/\/\)$/{
  39528. s//\1/
  39529. q
  39530. }
  39531. /^X\(\/\).*/{
  39532. s//\1/
  39533. q
  39534. }
  39535. s/.*/./; q'`/stamp-h$_am_stamp_count
  39536. ;;
  39537. :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  39538. printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
  39539. ;;
  39540. esac
  39541. case $ac_file$ac_mode in
  39542. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  39543. # Older Autoconf quotes --file arguments for eval, but not when files
  39544. # are listed without --file. Let's play safe and only enable the eval
  39545. # if we detect the quoting.
  39546. # TODO: see whether this extra hack can be removed once we start
  39547. # requiring Autoconf 2.70 or later.
  39548. case $CONFIG_FILES in #(
  39549. *\'*) :
  39550. eval set x "$CONFIG_FILES" ;; #(
  39551. *) :
  39552. set x $CONFIG_FILES ;; #(
  39553. *) :
  39554. ;;
  39555. esac
  39556. shift
  39557. # Used to flag and report bootstrapping failures.
  39558. am_rc=0
  39559. for am_mf
  39560. do
  39561. # Strip MF so we end up with the name of the file.
  39562. am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
  39563. # Check whether this is an Automake generated Makefile which includes
  39564. # dependency-tracking related rules and includes.
  39565. # Grep'ing the whole file directly is not great: AIX grep has a line
  39566. # limit of 2048, but all sed's we know have understand at least 4000.
  39567. sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
  39568. || continue
  39569. am_dirpart=`$as_dirname -- "$am_mf" ||
  39570. $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  39571. X"$am_mf" : 'X\(//\)[^/]' \| \
  39572. X"$am_mf" : 'X\(//\)$' \| \
  39573. X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
  39574. printf "%s\n" X"$am_mf" |
  39575. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  39576. s//\1/
  39577. q
  39578. }
  39579. /^X\(\/\/\)[^/].*/{
  39580. s//\1/
  39581. q
  39582. }
  39583. /^X\(\/\/\)$/{
  39584. s//\1/
  39585. q
  39586. }
  39587. /^X\(\/\).*/{
  39588. s//\1/
  39589. q
  39590. }
  39591. s/.*/./; q'`
  39592. am_filepart=`$as_basename -- "$am_mf" ||
  39593. $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
  39594. X"$am_mf" : 'X\(//\)$' \| \
  39595. X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
  39596. printf "%s\n" X/"$am_mf" |
  39597. sed '/^.*\/\([^/][^/]*\)\/*$/{
  39598. s//\1/
  39599. q
  39600. }
  39601. /^X\/\(\/\/\)$/{
  39602. s//\1/
  39603. q
  39604. }
  39605. /^X\/\(\/\).*/{
  39606. s//\1/
  39607. q
  39608. }
  39609. s/.*/./; q'`
  39610. { echo "$as_me:$LINENO: cd "$am_dirpart" \
  39611. && sed -e '/# am--include-marker/d' "$am_filepart" \
  39612. | $MAKE -f - am--depfiles" >&5
  39613. (cd "$am_dirpart" \
  39614. && sed -e '/# am--include-marker/d' "$am_filepart" \
  39615. | $MAKE -f - am--depfiles) >&5 2>&5
  39616. ac_status=$?
  39617. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39618. (exit $ac_status); } || am_rc=$?
  39619. done
  39620. if test $am_rc -ne 0; then
  39621. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  39622. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  39623. as_fn_error $? "Something went wrong bootstrapping makefile fragments
  39624. for automatic dependency tracking. If GNU make was not used, consider
  39625. re-running the configure script with MAKE=\"gmake\" (or whatever is
  39626. necessary). You can also try re-running configure with the
  39627. '--disable-dependency-tracking' option to at least be able to build
  39628. the package (albeit without support for automatic dependency tracking).
  39629. See \`config.log' for more details" "$LINENO" 5; }
  39630. fi
  39631. { am_dirpart=; unset am_dirpart;}
  39632. { am_filepart=; unset am_filepart;}
  39633. { am_mf=; unset am_mf;}
  39634. { am_rc=; unset am_rc;}
  39635. rm -f conftest-deps.mk
  39636. }
  39637. ;;
  39638. "libtool":C)
  39639. # See if we are running on zsh, and set the options that allow our
  39640. # commands through without removal of \ escapes.
  39641. if test -n "${ZSH_VERSION+set}"; then
  39642. setopt NO_GLOB_SUBST
  39643. fi
  39644. cfgfile=${ofile}T
  39645. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  39646. $RM "$cfgfile"
  39647. cat <<_LT_EOF >> "$cfgfile"
  39648. #! $SHELL
  39649. # Generated automatically by $as_me ($PACKAGE) $VERSION
  39650. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  39651. # Provide generalized library-building support services.
  39652. # Written by Gordon Matzigkeit, 1996
  39653. # Copyright (C) 2014 Free Software Foundation, Inc.
  39654. # This is free software; see the source for copying conditions. There is NO
  39655. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  39656. # GNU Libtool is free software; you can redistribute it and/or modify
  39657. # it under the terms of the GNU General Public License as published by
  39658. # the Free Software Foundation; either version 2 of of the License, or
  39659. # (at your option) any later version.
  39660. #
  39661. # As a special exception to the GNU General Public License, if you
  39662. # distribute this file as part of a program or library that is built
  39663. # using GNU Libtool, you may include this file under the same
  39664. # distribution terms that you use for the rest of that program.
  39665. #
  39666. # GNU Libtool is distributed in the hope that it will be useful, but
  39667. # WITHOUT ANY WARRANTY; without even the implied warranty of
  39668. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  39669. # GNU General Public License for more details.
  39670. #
  39671. # You should have received a copy of the GNU General Public License
  39672. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  39673. # The names of the tagged configurations supported by this script.
  39674. available_tags=''
  39675. # Configured defaults for sys_lib_dlsearch_path munging.
  39676. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  39677. # ### BEGIN LIBTOOL CONFIG
  39678. # Which release of libtool.m4 was used?
  39679. macro_version=$macro_version
  39680. macro_revision=$macro_revision
  39681. # Assembler program.
  39682. AS=$lt_AS
  39683. # DLL creation program.
  39684. DLLTOOL=$lt_DLLTOOL
  39685. # Object dumper program.
  39686. OBJDUMP=$lt_OBJDUMP
  39687. # Whether or not to build shared libraries.
  39688. build_libtool_libs=$enable_shared
  39689. # Whether or not to build static libraries.
  39690. build_old_libs=$enable_static
  39691. # What type of objects to build.
  39692. pic_mode=$pic_mode
  39693. # Whether or not to optimize for fast installation.
  39694. fast_install=$enable_fast_install
  39695. # Shared archive member basename,for filename based shared library versioning on AIX.
  39696. shared_archive_member_spec=$shared_archive_member_spec
  39697. # Shell to use when invoking shell scripts.
  39698. SHELL=$lt_SHELL
  39699. # An echo program that protects backslashes.
  39700. ECHO=$lt_ECHO
  39701. # The PATH separator for the build system.
  39702. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  39703. # The host system.
  39704. host_alias=$host_alias
  39705. host=$host
  39706. host_os=$host_os
  39707. # The build system.
  39708. build_alias=$build_alias
  39709. build=$build
  39710. build_os=$build_os
  39711. # A sed program that does not truncate output.
  39712. SED=$lt_SED
  39713. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  39714. Xsed="\$SED -e 1s/^X//"
  39715. # A grep program that handles long lines.
  39716. GREP=$lt_GREP
  39717. # An ERE matcher.
  39718. EGREP=$lt_EGREP
  39719. # A literal string matcher.
  39720. FGREP=$lt_FGREP
  39721. # A BSD- or MS-compatible name lister.
  39722. NM=$lt_NM
  39723. # Whether we need soft or hard links.
  39724. LN_S=$lt_LN_S
  39725. # What is the maximum length of a command?
  39726. max_cmd_len=$max_cmd_len
  39727. # Object file suffix (normally "o").
  39728. objext=$ac_objext
  39729. # Executable file suffix (normally "").
  39730. exeext=$exeext
  39731. # whether the shell understands "unset".
  39732. lt_unset=$lt_unset
  39733. # turn spaces into newlines.
  39734. SP2NL=$lt_lt_SP2NL
  39735. # turn newlines into spaces.
  39736. NL2SP=$lt_lt_NL2SP
  39737. # convert \$build file names to \$host format.
  39738. to_host_file_cmd=$lt_cv_to_host_file_cmd
  39739. # convert \$build files to toolchain format.
  39740. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  39741. # A file(cmd) program that detects file types.
  39742. FILECMD=$lt_FILECMD
  39743. # Method to check whether dependent libraries are shared objects.
  39744. deplibs_check_method=$lt_deplibs_check_method
  39745. # Command to use when deplibs_check_method = "file_magic".
  39746. file_magic_cmd=$lt_file_magic_cmd
  39747. # How to find potential files when deplibs_check_method = "file_magic".
  39748. file_magic_glob=$lt_file_magic_glob
  39749. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  39750. want_nocaseglob=$lt_want_nocaseglob
  39751. # Command to associate shared and link libraries.
  39752. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  39753. # The archiver.
  39754. AR=$lt_AR
  39755. # Flags to create an archive (by configure).
  39756. lt_ar_flags=$lt_ar_flags
  39757. # Flags to create an archive.
  39758. AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
  39759. # How to feed a file listing to the archiver.
  39760. archiver_list_spec=$lt_archiver_list_spec
  39761. # A symbol stripping program.
  39762. STRIP=$lt_STRIP
  39763. # Commands used to install an old-style archive.
  39764. RANLIB=$lt_RANLIB
  39765. old_postinstall_cmds=$lt_old_postinstall_cmds
  39766. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  39767. # Whether to use a lock for old archive extraction.
  39768. lock_old_archive_extraction=$lock_old_archive_extraction
  39769. # A C compiler.
  39770. LTCC=$lt_CC
  39771. # LTCC compiler flags.
  39772. LTCFLAGS=$lt_CFLAGS
  39773. # Take the output of nm and produce a listing of raw symbols and C names.
  39774. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  39775. # Transform the output of nm in a proper C declaration.
  39776. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  39777. # Transform the output of nm into a list of symbols to manually relocate.
  39778. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  39779. # Transform the output of nm in a C name address pair.
  39780. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  39781. # Transform the output of nm in a C name address pair when lib prefix is needed.
  39782. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  39783. # The name lister interface.
  39784. nm_interface=$lt_lt_cv_nm_interface
  39785. # Specify filename containing input files for \$NM.
  39786. nm_file_list_spec=$lt_nm_file_list_spec
  39787. # The root where to search for dependent libraries,and where our libraries should be installed.
  39788. lt_sysroot=$lt_sysroot
  39789. # Command to truncate a binary pipe.
  39790. lt_truncate_bin=$lt_lt_cv_truncate_bin
  39791. # The name of the directory that contains temporary libtool files.
  39792. objdir=$objdir
  39793. # Used to examine libraries when file_magic_cmd begins with "file".
  39794. MAGIC_CMD=$MAGIC_CMD
  39795. # Must we lock files when doing compilation?
  39796. need_locks=$lt_need_locks
  39797. # Manifest tool.
  39798. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  39799. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  39800. DSYMUTIL=$lt_DSYMUTIL
  39801. # Tool to change global to local symbols on Mac OS X.
  39802. NMEDIT=$lt_NMEDIT
  39803. # Tool to manipulate fat objects and archives on Mac OS X.
  39804. LIPO=$lt_LIPO
  39805. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  39806. OTOOL=$lt_OTOOL
  39807. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  39808. OTOOL64=$lt_OTOOL64
  39809. # Old archive suffix (normally "a").
  39810. libext=$libext
  39811. # Shared library suffix (normally ".so").
  39812. shrext_cmds=$lt_shrext_cmds
  39813. # The commands to extract the exported symbol list from a shared archive.
  39814. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  39815. # Variables whose values should be saved in libtool wrapper scripts and
  39816. # restored at link time.
  39817. variables_saved_for_relink=$lt_variables_saved_for_relink
  39818. # Do we need the "lib" prefix for modules?
  39819. need_lib_prefix=$need_lib_prefix
  39820. # Do we need a version for libraries?
  39821. need_version=$need_version
  39822. # Library versioning type.
  39823. version_type=$version_type
  39824. # Shared library runtime path variable.
  39825. runpath_var=$runpath_var
  39826. # Shared library path variable.
  39827. shlibpath_var=$shlibpath_var
  39828. # Is shlibpath searched before the hard-coded library search path?
  39829. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  39830. # Format of library name prefix.
  39831. libname_spec=$lt_libname_spec
  39832. # List of archive names. First name is the real one, the rest are links.
  39833. # The last name is the one that the linker finds with -lNAME
  39834. library_names_spec=$lt_library_names_spec
  39835. # The coded name of the library, if different from the real name.
  39836. soname_spec=$lt_soname_spec
  39837. # Permission mode override for installation of shared libraries.
  39838. install_override_mode=$lt_install_override_mode
  39839. # Command to use after installation of a shared archive.
  39840. postinstall_cmds=$lt_postinstall_cmds
  39841. # Command to use after uninstallation of a shared archive.
  39842. postuninstall_cmds=$lt_postuninstall_cmds
  39843. # Commands used to finish a libtool library installation in a directory.
  39844. finish_cmds=$lt_finish_cmds
  39845. # As "finish_cmds", except a single script fragment to be evaled but
  39846. # not shown.
  39847. finish_eval=$lt_finish_eval
  39848. # Whether we should hardcode library paths into libraries.
  39849. hardcode_into_libs=$hardcode_into_libs
  39850. # Compile-time system search path for libraries.
  39851. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  39852. # Detected run-time system search path for libraries.
  39853. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  39854. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  39855. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  39856. # Whether dlopen is supported.
  39857. dlopen_support=$enable_dlopen
  39858. # Whether dlopen of programs is supported.
  39859. dlopen_self=$enable_dlopen_self
  39860. # Whether dlopen of statically linked programs is supported.
  39861. dlopen_self_static=$enable_dlopen_self_static
  39862. # Commands to strip libraries.
  39863. old_striplib=$lt_old_striplib
  39864. striplib=$lt_striplib
  39865. # The linker used to build libraries.
  39866. LD=$lt_LD
  39867. # How to create reloadable object files.
  39868. reload_flag=$lt_reload_flag
  39869. reload_cmds=$lt_reload_cmds
  39870. # Commands used to build an old-style archive.
  39871. old_archive_cmds=$lt_old_archive_cmds
  39872. # A language specific compiler.
  39873. CC=$lt_compiler
  39874. # Is the compiler the GNU compiler?
  39875. with_gcc=$GCC
  39876. # Compiler flag to turn off builtin functions.
  39877. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  39878. # Additional compiler flags for building library objects.
  39879. pic_flag=$lt_lt_prog_compiler_pic
  39880. # How to pass a linker flag through the compiler.
  39881. wl=$lt_lt_prog_compiler_wl
  39882. # Compiler flag to prevent dynamic linking.
  39883. link_static_flag=$lt_lt_prog_compiler_static
  39884. # Does compiler simultaneously support -c and -o options?
  39885. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  39886. # Whether or not to add -lc for building shared libraries.
  39887. build_libtool_need_lc=$archive_cmds_need_lc
  39888. # Whether or not to disallow shared libs when runtime libs are static.
  39889. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  39890. # Compiler flag to allow reflexive dlopens.
  39891. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  39892. # Compiler flag to generate shared objects directly from archives.
  39893. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  39894. # Whether the compiler copes with passing no objects directly.
  39895. compiler_needs_object=$lt_compiler_needs_object
  39896. # Create an old-style archive from a shared archive.
  39897. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  39898. # Create a temporary old-style archive to link instead of a shared archive.
  39899. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  39900. # Commands used to build a shared archive.
  39901. archive_cmds=$lt_archive_cmds
  39902. archive_expsym_cmds=$lt_archive_expsym_cmds
  39903. # Commands used to build a loadable module if different from building
  39904. # a shared archive.
  39905. module_cmds=$lt_module_cmds
  39906. module_expsym_cmds=$lt_module_expsym_cmds
  39907. # Whether we are building with GNU ld or not.
  39908. with_gnu_ld=$lt_with_gnu_ld
  39909. # Flag that allows shared libraries with undefined symbols to be built.
  39910. allow_undefined_flag=$lt_allow_undefined_flag
  39911. # Flag that enforces no undefined symbols.
  39912. no_undefined_flag=$lt_no_undefined_flag
  39913. # Flag to hardcode \$libdir into a binary during linking.
  39914. # This must work even if \$libdir does not exist
  39915. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  39916. # Whether we need a single "-rpath" flag with a separated argument.
  39917. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  39918. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  39919. # DIR into the resulting binary.
  39920. hardcode_direct=$hardcode_direct
  39921. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  39922. # DIR into the resulting binary and the resulting library dependency is
  39923. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  39924. # library is relocated.
  39925. hardcode_direct_absolute=$hardcode_direct_absolute
  39926. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  39927. # into the resulting binary.
  39928. hardcode_minus_L=$hardcode_minus_L
  39929. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  39930. # into the resulting binary.
  39931. hardcode_shlibpath_var=$hardcode_shlibpath_var
  39932. # Set to "yes" if building a shared library automatically hardcodes DIR
  39933. # into the library and all subsequent libraries and executables linked
  39934. # against it.
  39935. hardcode_automatic=$hardcode_automatic
  39936. # Set to yes if linker adds runtime paths of dependent libraries
  39937. # to runtime path list.
  39938. inherit_rpath=$inherit_rpath
  39939. # Whether libtool must link a program against all its dependency libraries.
  39940. link_all_deplibs=$link_all_deplibs
  39941. # Set to "yes" if exported symbols are required.
  39942. always_export_symbols=$always_export_symbols
  39943. # The commands to list exported symbols.
  39944. export_symbols_cmds=$lt_export_symbols_cmds
  39945. # Symbols that should not be listed in the preloaded symbols.
  39946. exclude_expsyms=$lt_exclude_expsyms
  39947. # Symbols that must always be exported.
  39948. include_expsyms=$lt_include_expsyms
  39949. # Commands necessary for linking programs (against libraries) with templates.
  39950. prelink_cmds=$lt_prelink_cmds
  39951. # Commands necessary for finishing linking programs.
  39952. postlink_cmds=$lt_postlink_cmds
  39953. # Specify filename containing input files.
  39954. file_list_spec=$lt_file_list_spec
  39955. # How to hardcode a shared library path into an executable.
  39956. hardcode_action=$hardcode_action
  39957. # ### END LIBTOOL CONFIG
  39958. _LT_EOF
  39959. cat <<'_LT_EOF' >> "$cfgfile"
  39960. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  39961. # func_munge_path_list VARIABLE PATH
  39962. # -----------------------------------
  39963. # VARIABLE is name of variable containing _space_ separated list of
  39964. # directories to be munged by the contents of PATH, which is string
  39965. # having a format:
  39966. # "DIR[:DIR]:"
  39967. # string "DIR[ DIR]" will be prepended to VARIABLE
  39968. # ":DIR[:DIR]"
  39969. # string "DIR[ DIR]" will be appended to VARIABLE
  39970. # "DIRP[:DIRP]::[DIRA:]DIRA"
  39971. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  39972. # "DIRA[ DIRA]" will be appended to VARIABLE
  39973. # "DIR[:DIR]"
  39974. # VARIABLE will be replaced by "DIR[ DIR]"
  39975. func_munge_path_list ()
  39976. {
  39977. case x$2 in
  39978. x)
  39979. ;;
  39980. *:)
  39981. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  39982. ;;
  39983. x:*)
  39984. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  39985. ;;
  39986. *::*)
  39987. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  39988. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  39989. ;;
  39990. *)
  39991. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  39992. ;;
  39993. esac
  39994. }
  39995. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  39996. func_cc_basename ()
  39997. {
  39998. for cc_temp in $*""; do
  39999. case $cc_temp in
  40000. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  40001. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  40002. \-*) ;;
  40003. *) break;;
  40004. esac
  40005. done
  40006. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  40007. }
  40008. # ### END FUNCTIONS SHARED WITH CONFIGURE
  40009. _LT_EOF
  40010. case $host_os in
  40011. aix3*)
  40012. cat <<\_LT_EOF >> "$cfgfile"
  40013. # AIX sometimes has problems with the GCC collect2 program. For some
  40014. # reason, if we set the COLLECT_NAMES environment variable, the problems
  40015. # vanish in a puff of smoke.
  40016. if test set != "${COLLECT_NAMES+set}"; then
  40017. COLLECT_NAMES=
  40018. export COLLECT_NAMES
  40019. fi
  40020. _LT_EOF
  40021. ;;
  40022. esac
  40023. ltmain=$ac_aux_dir/ltmain.sh
  40024. # We use sed instead of cat because bash on DJGPP gets confused if
  40025. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  40026. # text mode, it properly converts lines to CR/LF. This bash problem
  40027. # is reportedly fixed, but why not run on old versions too?
  40028. $SED '$q' "$ltmain" >> "$cfgfile" \
  40029. || (rm -f "$cfgfile"; exit 1)
  40030. mv -f "$cfgfile" "$ofile" ||
  40031. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  40032. chmod +x "$ofile"
  40033. ;;
  40034. esac
  40035. done # for ac_tag
  40036. as_fn_exit 0
  40037. _ACEOF
  40038. ac_clean_files=$ac_clean_files_save
  40039. test $ac_write_fail = 0 ||
  40040. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  40041. # configure is writing to config.log, and then calls config.status.
  40042. # config.status does its own redirection, appending to config.log.
  40043. # Unfortunately, on DOS this fails, as config.log is still kept open
  40044. # by configure, so config.status won't be able to write to it; its
  40045. # output is simply discarded. So we exec the FD to /dev/null,
  40046. # effectively closing config.log, so it can be properly (re)opened and
  40047. # appended to by config.status. When coming back to configure, we
  40048. # need to make the FD available again.
  40049. if test "$no_create" != yes; then
  40050. ac_cs_success=:
  40051. ac_config_status_args=
  40052. test "$silent" = yes &&
  40053. ac_config_status_args="$ac_config_status_args --quiet"
  40054. exec 5>/dev/null
  40055. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  40056. exec 5>>config.log
  40057. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  40058. # would make configure fail if this is the last instruction.
  40059. $ac_cs_success || as_fn_exit 1
  40060. fi
  40061. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  40062. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  40063. printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  40064. fi
  40065. tmp_cpp=`eval echo "$ac_cpp" 2>/dev/null`
  40066. if test -z "$tmp_cpp"; then
  40067. tmp_cpp='cpp'
  40068. fi
  40069. cat >./tests/configurehelp.pm <<_EOF
  40070. # This is a generated file. Do not edit.
  40071. package configurehelp;
  40072. use strict;
  40073. use warnings;
  40074. use Exporter;
  40075. use vars qw(
  40076. @ISA
  40077. @EXPORT_OK
  40078. \$Cpreprocessor
  40079. );
  40080. @ISA = qw(Exporter);
  40081. @EXPORT_OK = qw(
  40082. \$Cpreprocessor
  40083. );
  40084. \$Cpreprocessor = '$tmp_cpp';
  40085. 1;
  40086. _EOF
  40087. ## ---------------------------------- ##
  40088. ## Start of distclean amending code ##
  40089. ## ---------------------------------- ##
  40090. for xc_subdir in lib src tests/unit tests/server tests/libtest docs/examples
  40091. do
  40092. if test ! -f "$xc_subdir/Makefile"; then
  40093. echo "$xc_msg_err $xc_subdir/Makefile file not found. $xc_msg_abrt" >&2
  40094. exit 1
  40095. fi
  40096. # Fetch dependency tracking file list from Makefile include lines.
  40097. xc_inc_lines=`grep '^include .*(DEPDIR)' "$xc_subdir/Makefile" 2>/dev/null`
  40098. xc_cnt_words=`echo "$xc_inc_lines" | wc -w | tr -d "$xc_space$xc_tab"`
  40099. # --disable-dependency-tracking might have been used, consequently
  40100. # there is nothing to amend without a dependency tracking file list.
  40101. if test $xc_cnt_words -gt 0; then
  40102. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: amending $xc_subdir/Makefile" >&5
  40103. printf "%s\n" "$as_me: amending $xc_subdir/Makefile" >&6;}
  40104. # Build Makefile specific patch hunk.
  40105. xc_p="$xc_subdir/xc_patch.tmp"
  40106. xc_rm_depfiles=`echo "$xc_inc_lines" \
  40107. | $SED 's%include% -rm -f%' 2>/dev/null`
  40108. xc_dep_subdirs=`echo "$xc_inc_lines" \
  40109. | $SED 's%include[ ][ ]*%%' 2>/dev/null \
  40110. | $SED 's%(DEPDIR)/.*%(DEPDIR)%' 2>/dev/null \
  40111. | sort | uniq`
  40112. echo "$xc_rm_depfiles" >$xc_p
  40113. for xc_dep_dir in $xc_dep_subdirs; do
  40114. echo "${xc_tab}@xm_dep_cnt=\`ls $xc_dep_dir | wc -l 2>/dev/null\`; \\" >>$xc_p
  40115. echo "${xc_tab}if test \$\$xm_dep_cnt -eq 0 && test -d $xc_dep_dir; then \\" >>$xc_p
  40116. echo "${xc_tab} rm -rf $xc_dep_dir; \\" >>$xc_p
  40117. echo "${xc_tab}fi" >>$xc_p
  40118. done
  40119. # Build Makefile patching sed scripts.
  40120. xc_s1="$xc_subdir/xc_script_1.tmp"
  40121. xc_s2="$xc_subdir/xc_script_2.tmp"
  40122. xc_s3="$xc_subdir/xc_script_3.tmp"
  40123. cat >$xc_s1 <<\_EOT
  40124. /^distclean[ ]*:/,/^[^ ][^ ]*:/{
  40125. s/^.*(DEPDIR)/___xc_depdir_line___/
  40126. }
  40127. /^maintainer-clean[ ]*:/,/^[^ ][^ ]*:/{
  40128. s/^.*(DEPDIR)/___xc_depdir_line___/
  40129. }
  40130. _EOT
  40131. cat >$xc_s2 <<\_EOT
  40132. /___xc_depdir_line___$/{
  40133. N
  40134. /___xc_depdir_line___$/D
  40135. }
  40136. _EOT
  40137. cat >$xc_s3 <<_EOT
  40138. /^___xc_depdir_line___/{
  40139. r $xc_p
  40140. d
  40141. }
  40142. _EOT
  40143. # Apply patch to Makefile and cleanup.
  40144. $SED -f "$xc_s1" "$xc_subdir/Makefile" >"$xc_subdir/Makefile.tmp1"
  40145. $SED -f "$xc_s2" "$xc_subdir/Makefile.tmp1" >"$xc_subdir/Makefile.tmp2"
  40146. $SED -f "$xc_s3" "$xc_subdir/Makefile.tmp2" >"$xc_subdir/Makefile.tmp3"
  40147. if test -f "$xc_subdir/Makefile.tmp3"; then
  40148. mv -f "$xc_subdir/Makefile.tmp3" "$xc_subdir/Makefile"
  40149. fi
  40150. test -f "$xc_subdir/Makefile.tmp1" && rm -f "$xc_subdir/Makefile.tmp1"
  40151. test -f "$xc_subdir/Makefile.tmp2" && rm -f "$xc_subdir/Makefile.tmp2"
  40152. test -f "$xc_subdir/Makefile.tmp3" && rm -f "$xc_subdir/Makefile.tmp3"
  40153. test -f "$xc_p" && rm -f "$xc_p"
  40154. test -f "$xc_s1" && rm -f "$xc_s1"
  40155. test -f "$xc_s2" && rm -f "$xc_s2"
  40156. test -f "$xc_s3" && rm -f "$xc_s3"
  40157. fi
  40158. done
  40159. ## -------------------------------- ##
  40160. ## End of distclean amending code ##
  40161. ## -------------------------------- ##
  40162. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Configured to build curl/libcurl:
  40163. Host setup: ${host}
  40164. Install prefix: ${prefix}
  40165. Compiler: ${CC}
  40166. CFLAGS: ${CFLAGS}
  40167. CPPFLAGS: ${CPPFLAGS}
  40168. LDFLAGS: ${LDFLAGS}
  40169. LIBS: ${LIBS}
  40170. curl version: ${CURLVERSION}
  40171. SSL: ${curl_ssl_msg}
  40172. SSH: ${curl_ssh_msg}
  40173. zlib: ${curl_zlib_msg}
  40174. brotli: ${curl_brotli_msg}
  40175. zstd: ${curl_zstd_msg}
  40176. GSS-API: ${curl_gss_msg}
  40177. GSASL: ${curl_gsasl_msg}
  40178. TLS-SRP: ${curl_tls_srp_msg}
  40179. resolver: ${curl_res_msg}
  40180. IPv6: ${curl_ipv6_msg}
  40181. Unix sockets: ${curl_unix_sockets_msg}
  40182. IDN: ${curl_idn_msg}
  40183. Build libcurl: Shared=${enable_shared}, Static=${enable_static}
  40184. Built-in manual: ${curl_manual_msg}
  40185. --libcurl option: ${curl_libcurl_msg}
  40186. Verbose errors: ${curl_verbose_msg}
  40187. Code coverage: ${curl_coverage_msg}
  40188. SSPI: ${curl_sspi_msg}
  40189. ca cert bundle: ${ca}${ca_warning}
  40190. ca cert path: ${capath}${capath_warning}
  40191. ca fallback: ${with_ca_fallback}
  40192. LDAP: ${curl_ldap_msg}
  40193. LDAPS: ${curl_ldaps_msg}
  40194. RTSP: ${curl_rtsp_msg}
  40195. RTMP: ${curl_rtmp_msg}
  40196. PSL: ${curl_psl_msg}
  40197. Alt-svc: ${curl_altsvc_msg}
  40198. Headers API: ${curl_headers_msg}
  40199. HSTS: ${curl_hsts_msg}
  40200. HTTP1: ${curl_h1_msg}
  40201. HTTP2: ${curl_h2_msg}
  40202. HTTP3: ${curl_h3_msg}
  40203. ECH: ${curl_ech_msg}
  40204. Protocols: ${SUPPORT_PROTOCOLS}
  40205. Features: ${SUPPORT_FEATURES}
  40206. " >&5
  40207. printf "%s\n" "$as_me: Configured to build curl/libcurl:
  40208. Host setup: ${host}
  40209. Install prefix: ${prefix}
  40210. Compiler: ${CC}
  40211. CFLAGS: ${CFLAGS}
  40212. CPPFLAGS: ${CPPFLAGS}
  40213. LDFLAGS: ${LDFLAGS}
  40214. LIBS: ${LIBS}
  40215. curl version: ${CURLVERSION}
  40216. SSL: ${curl_ssl_msg}
  40217. SSH: ${curl_ssh_msg}
  40218. zlib: ${curl_zlib_msg}
  40219. brotli: ${curl_brotli_msg}
  40220. zstd: ${curl_zstd_msg}
  40221. GSS-API: ${curl_gss_msg}
  40222. GSASL: ${curl_gsasl_msg}
  40223. TLS-SRP: ${curl_tls_srp_msg}
  40224. resolver: ${curl_res_msg}
  40225. IPv6: ${curl_ipv6_msg}
  40226. Unix sockets: ${curl_unix_sockets_msg}
  40227. IDN: ${curl_idn_msg}
  40228. Build libcurl: Shared=${enable_shared}, Static=${enable_static}
  40229. Built-in manual: ${curl_manual_msg}
  40230. --libcurl option: ${curl_libcurl_msg}
  40231. Verbose errors: ${curl_verbose_msg}
  40232. Code coverage: ${curl_coverage_msg}
  40233. SSPI: ${curl_sspi_msg}
  40234. ca cert bundle: ${ca}${ca_warning}
  40235. ca cert path: ${capath}${capath_warning}
  40236. ca fallback: ${with_ca_fallback}
  40237. LDAP: ${curl_ldap_msg}
  40238. LDAPS: ${curl_ldaps_msg}
  40239. RTSP: ${curl_rtsp_msg}
  40240. RTMP: ${curl_rtmp_msg}
  40241. PSL: ${curl_psl_msg}
  40242. Alt-svc: ${curl_altsvc_msg}
  40243. Headers API: ${curl_headers_msg}
  40244. HSTS: ${curl_hsts_msg}
  40245. HTTP1: ${curl_h1_msg}
  40246. HTTP2: ${curl_h2_msg}
  40247. HTTP3: ${curl_h3_msg}
  40248. ECH: ${curl_ech_msg}
  40249. Protocols: ${SUPPORT_PROTOCOLS}
  40250. Features: ${SUPPORT_FEATURES}
  40251. " >&6;}
  40252. if test -n "$experimental"; then
  40253. cat >&2 << _EOF
  40254. WARNING: $experimental enabled but marked EXPERIMENTAL. Use with caution!
  40255. _EOF
  40256. fi